/* MEDVID WEB Christmas Card — робоча версія:
   1) поки завантажуються дані листівки, видно лише нічне тло першого екрана (без нових анімацій);
   2) сторінка «Привітання недоступне» — затверджений макет 8 листопада (шрифт і кольори листівки). */

/* 1. очікування даних: тло першого екрана є, вміст з'являється, коли дані готові */
.mw-wait .stage > *{ visibility: hidden !important; }

/* 2. сторінка «недоступне»: листівку не показуємо зовсім */
.mw-na .stage, .mw-na .film, .mw-na .finale, .mw-na .t-ui, .mw-na .watch-again{ display: none !important; }

.na{
  --na-gold: rgba(214,180,112,.72);
  position: fixed; inset: 0; z-index: 50; overflow: hidden;
  background: radial-gradient(120% 70% at 50% 38%, var(--bg2) 0%, var(--bg1) 42%, var(--bg0) 100%);
  display: flex; align-items: center; justify-content: center;
  padding: calc(env(safe-area-inset-top) + 24px) 28px calc(env(safe-area-inset-bottom) + 24px);
  color: var(--ink); font-family: 'MW Card Serif', Georgia, serif;
}
.na::before{
  content: ""; position: absolute; left: 50%; top: 38%; width: 520px; height: 520px; transform: translate(-50%,-50%);
  background: radial-gradient(circle, rgba(255,196,120,.10) 0%, rgba(255,196,120,.04) 38%, rgba(255,196,120,0) 68%);
  pointer-events: none;
}
.na-box{ position: relative; width: 100%; max-width: 360px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.na-emb{
  width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--na-gold);
  box-shadow: inset 0 0 0 4px #0e1a35, inset 0 0 0 4.7px rgba(214,180,112,.35), 0 0 30px rgba(255,196,120,.10);
  color: rgba(226,192,120,.92); margin-bottom: 30px;
}
.na-emb svg{ width: 22px; height: 22px; }
.na-title{ font-weight: 500; font-size: 29px; line-height: 1.18; letter-spacing: .005em; color: #f3e8d0; margin: 0; }
.na-orn{ display: flex; align-items: center; gap: 8px; width: 128px; margin: 22px auto 20px; color: rgba(226,192,120,.85); }
.na-orn i{ flex: 1; height: 1px; background: linear-gradient(90deg, rgba(214,180,112,0), rgba(214,180,112,.7)); }
.na-orn i:last-child{ background: linear-gradient(270deg, rgba(214,180,112,0), rgba(214,180,112,.7)); }
.na-orn svg{ width: 9px; height: 9px; flex: none; }
.na-text{ font-style: italic; font-size: 19px; line-height: 1.45; color: rgba(236,222,192,.80); max-width: 320px; margin: 0; }
.na-wish{ margin: 34px 0 0; font-size: 12px; letter-spacing: .30em; padding-left: .30em; text-transform: uppercase; color: rgba(226,192,120,.70); line-height: 1.6; }
.na-btn{
  margin-top: 30px; font: inherit; font-size: 18px; letter-spacing: .06em; color: #f3e8d0;
  padding: 13px 30px; border-radius: 999px; white-space: nowrap; cursor: pointer;
  border: 1px solid rgba(236,212,166,.55);
  background: linear-gradient(180deg, rgba(40,46,70,.55), rgba(18,24,44,.65));
  box-shadow: 0 8px 26px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,240,210,.12);
  -webkit-tap-highlight-color: transparent;
}
.na-btn[hidden]{ display: none; }
.na-btn:focus-visible{ outline: 2px solid rgba(236,212,166,.8); outline-offset: 3px; }
.na-box{ animation: naIn 1.1s cubic-bezier(.2,.7,.2,1) both; }
@keyframes naIn{ from{ opacity: 0; transform: translateY(8px); } to{ opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce){ .na-box{ animation: naFade .6s ease both; } @keyframes naFade{ from{ opacity: 0; } to{ opacity: 1; } } }
@media (max-height: 640px){ .na-emb{ margin-bottom: 20px; } .na-title{ font-size: 26px; } .na-orn{ margin: 16px auto 14px; } .na-wish{ margin-top: 24px; } }
@media (min-width: 700px){ .na-box{ max-width: 440px; } .na-title{ font-size: 34px; } .na-text{ font-size: 20px; max-width: 380px; } }
