/* NY27 — Yeni il 2027 kampanya sayfaları (çark /carx, sonuç /carx/{code}, vitrin).
   Görünüm onaylı önizlemeden (.claude/designs/new-year-2027/carx.html, vitrin.html)
   taşındı; telefon çerçevesi yerine sayfa içi "sahne" kartı kullanılır. */
:root {
  --ny-night-1: #060b1f;
  --ny-night-2: #101d48;
  --ny-night-3: #1b2f6b;
  --ny-gold: #f6c453;
  --ny-gold-2: #ffe29a;
  --ny-red: #e6394f;
  --ny-green: #19a974;
  --ny-snow: #f4f8ff;
  --ny-ink: #0b1430;
  --ny-muted: rgba(244, 248, 255, .68);
}

/* Layout'un mor hero'su yerine gece gökyüzü. `:has` yoksa hero moru kalır, sayfa bozulmaz. */
.hero:has(.ny-hero) { background: linear-gradient(180deg, #040818 0%, #101C4C 52%, #2A2F78 100%); padding-bottom: 48px; }
.hero:has(.ny-hero)::before, .hero:has(.ny-hero)::after { display: none; }
.hero-inner:has(.ny-hero) { max-width: 960px; }
/* R4 M4: üst çubuksuz sayfa (layout `$hideTopBar`, NY27 kampanya sayfaları). Kural layout'ta
   değil burada: yalnız NY27 sayfaları bu dosyayı yükler, diğer sayfaların HTML'i R4 öncesiyle
   bayt bayt aynı kalır. Dosya hero'nun ilk öğesi olarak yüklenir (sahneden önce) → sahne
   boyanmadan kural hazır. `.hero.hero--bare` özgüllüğü layout'un `.hero` dolgusunu yener.
   Geniş ekranda (tablet/masaüstü, >520 px) sahne yuvarlak köşeli bir kart → tepeye
   yapışmasın, 20 px üst boşluk; ≤520 px mobilde aşağıdaki medya bloğu 0'a çeker (sahne
   ekranın tepesine yapışık, üst köşeler 0). */
.hero.hero--bare { padding-top: 20px; }

.ny-hero { width: 100%; color: var(--ny-snow); text-align: left; }
.ny-hero *, .ny-hero *::before, .ny-hero *::after { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
.ny-preview {
  max-width: 440px; margin: 0 auto 10px; padding: 8px 12px; border-radius: 12px; text-align: center;
  background: rgba(246, 196, 83, .18); border: 1px dashed var(--ny-gold); color: var(--ny-gold-2); font-size: 13px; font-weight: 700;
}

/* Sahne: önizlemedeki telefon ekranının sayfa içi karşılığı. */
.ny-stage {
  position: relative; width: 100%; max-width: 440px; margin: 0 auto; overflow: hidden; isolation: isolate;
  height: min(86vh, 780px); height: min(86svh, 780px); min-height: 620px; border-radius: 28px;
  background: linear-gradient(180deg, var(--ny-night-1), var(--ny-night-2) 60%, var(--ny-night-3));
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .08);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; line-height: 1.3;
  -webkit-user-select: none; user-select: none;
}
.ny-stage.ny-style-bayram { background: radial-gradient(80% 50% at 50% 42%, #3a1630 0%, #1a0f2e 50%, #08081a 100%); }
.ny-stage.ny-style-ulduz { background: radial-gradient(90% 60% at 50% 40%, #3a2380 0%, #170f45 50%, #06051a 100%); }
.ny-stage--result { min-height: 560px; }
.ny-layer { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ny-bg { z-index: 0; pointer-events: none; }
/* Dikey kaydırma sayfanın kalır; yatay fırlatma çarkı çevirir. */
.ny-wheel { z-index: 2; touch-action: pan-y; }
/* R2: çarka dokunmak = çevir (yalnız /carx sayfasında; sonuç sayfasında çark yok). */
[data-ny27-page="wheel"] .ny-wheel { cursor: pointer; }
.ny-fx { z-index: 36; pointer-events: none; }

.w-head { position: absolute; left: 0; right: 0; top: 30px; text-align: center; z-index: 5; padding: 0 24px; pointer-events: none; }
/* R2: stil anahtarı tepede → başlık aşağı kayar (çark yerleşimi başlığın altından ölçülür). */
[data-ny27-page="wheel"] .w-head { top: 66px; }
.w-head h1 { margin: 0; font-size: 27px; font-weight: 900; line-height: 1.2; color: #fff; }
.w-head p { margin: 6px 0 0; font-size: 14px; color: var(--ny-muted); }
.fade-out { transition: opacity .5s; opacity: 0 !important; }

.w-form { position: absolute; left: 24px; right: 24px; bottom: 44px; z-index: 6; display: flex; flex-direction: column; gap: 10px; transition: opacity .4s; }
.w-form[hidden] { display: none; }
.w-form input[type="text"] {
  border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .08); color: #fff; border-radius: 14px;
  padding: 13px 14px; font: inherit; font-size: 16px; outline: none; width: 100%; -webkit-user-select: text; user-select: text;
}
.w-form input[type="text"]::placeholder { color: rgba(255, 255, 255, .45); }
.w-form input[type="text"]:focus { border-color: var(--ny-gold); }
.ny-style-ulduz .w-form input[type="text"] { border-color: rgba(190, 170, 255, .35); background: rgba(120, 90, 255, .12); }
.w-note { text-align: center; font-size: 10px; color: rgba(255, 255, 255, .5); }
.ny-error { margin: 0; text-align: center; font-size: 13.5px; font-weight: 700; color: #ffb3bf; }
.ny-error[hidden] { display: none; }
.ny-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Stil seçimi: 🎄 Bayram / ✨ Ulduz */
.ny-styles { display: flex; gap: 6px; padding: 4px; border-radius: 999px; background: rgba(0, 0, 0, .3); border: 1px solid rgba(255, 255, 255, .14); align-self: center; }
.ny-style-opt { position: relative; padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 700; cursor: pointer; color: rgba(255, 255, 255, .8); }
.ny-style-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ny-style-opt:has(input:checked) { background: linear-gradient(180deg, var(--ny-gold-2), var(--ny-gold)); color: var(--ny-ink); }
.ny-style-ulduz .ny-style-opt:has(input:checked) { background: linear-gradient(180deg, #e9ddff, #a98bff); color: #140b3a; }
.ny-style-opt:has(input:focus-visible) { outline: 2px solid #fff; outline-offset: 2px; }
/* R2: anahtar formun dışında; sonuç katmanının (z 35) üstünde, sessiz düğmesinin (z 45) altında. */
.w-styles { position: absolute; left: 60px; right: 60px; top: 14px; z-index: 40; display: flex; flex-direction: column; align-items: center; gap: 4px; pointer-events: none; }
.w-styles .ny-styles { pointer-events: auto; }
.ny-styles.is-locked { opacity: .55; }
.ny-styles.is-locked .ny-style-opt, .ny-styles.is-locked .ny-style-opt input { cursor: not-allowed; }
.w-style-note { margin: 0; padding: 3px 10px; border-radius: 999px; background: rgba(0, 0, 0, .45); font-size: 12px; font-weight: 700; color: var(--ny-gold-2); }
.w-style-note[hidden] { display: none; }

.cta {
  display: block; width: 100%; margin-top: 16px; border: 0; border-radius: 16px; padding: 15px 16px; cursor: pointer; text-align: center; text-decoration: none;
  font: inherit; font-size: 16px; font-weight: 800; color: var(--ny-ink);
  background: linear-gradient(180deg, #ffe7a6, var(--ny-gold) 60%, #e7a92c);
  box-shadow: 0 10px 26px rgba(246, 196, 83, .35), inset 0 -2px 0 rgba(0, 0, 0, .15);
}
.cta.ghost { background: rgba(255, 255, 255, .1); color: var(--ny-snow); box-shadow: none; border: 1px solid rgba(255, 255, 255, .2); font-weight: 700; }
.cta[disabled] { opacity: .6; cursor: progress; }
.w-form .cta { margin-top: 0; }
.w-spin { font-size: 18px !important; letter-spacing: 1px; }
.ny-style-ulduz .cta:not(.ghost) { background: linear-gradient(180deg, #e9ddff, #a98bff 60%, #7a5cf0); color: #140b3a; box-shadow: 0 10px 30px rgba(140, 110, 255, .45); }

.ny-brand { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; z-index: 40; font-size: 11.5px; color: rgba(255, 255, 255, .6); letter-spacing: .3px; pointer-events: none; }
.ny-brand b { color: var(--ny-gold-2); font-weight: 700; }
.mute { position: absolute; top: 14px; right: 14px; z-index: 45; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); background: rgba(0, 0, 0, .3); color: #fff; font-size: 17px; cursor: pointer; padding: 0; }
.mute[hidden] { display: none; }

/* Sonuç katmanı */
.w-result {
  position: absolute; inset: 0; z-index: 35; padding: 64px 20px 44px; overflow-y: auto; touch-action: pan-y; opacity: 0; transition: opacity .5s;
  background: linear-gradient(180deg, rgba(5, 9, 22, .45), rgba(5, 9, 22, .85) 40%, rgba(5, 9, 22, .92)); pointer-events: none;
  -webkit-overflow-scrolling: touch; -webkit-user-select: text; user-select: text;
}
.w-result[hidden] { display: none; }
/* R2: /carx'ta tepedeki stil anahtarı + not sonuç kartının üstünde kalsın. */
[data-ny27-page="wheel"] .w-result { padding-top: 84px; }
/* R4 M4: «Bu günlük haqqın bitdi» notu gizliyken anahtarın altı ~56 px'te biter →
   kart yukarı alınır. `:has` yoksa kural düşer, güvenli 84 px kalır. */
[data-ny27-page="wheel"] .ny-stage:has(.w-style-note[hidden]) .w-result { padding-top: 64px; }
.w-result.show { opacity: 1; pointer-events: auto; }
.ny-stage--result .w-result { background: transparent; }
.res-card { border-radius: 26px; padding: 22px 18px 18px; text-align: center; position: relative; overflow: hidden; border: 1px solid rgba(255, 255, 255, .22); box-shadow: 0 20px 60px rgba(0, 0, 0, .5); color: #fff; }
.res-card .emo { font-size: 64px; line-height: 1.1; }
.res-card .who { font-size: 14px; opacity: .85; margin-top: 4px; }
.res-card .title { font-size: 25px; font-weight: 900; line-height: 1.22; margin: 6px 0 6px; }
.res-card .sub { font-size: 15px; opacity: .85; line-height: 1.5; max-width: 34em; margin: 0 auto; overflow-wrap: anywhere; }
.res-card .sub[hidden] { display: none; }
/* R3-C1: uzun dilek (≤240 simvol) dar ekranda sığsın; katman zaten kaydırılır. */
@media (max-width: 360px) {
  .res-card { padding: 18px 14px 14px; }
  .res-card .emo { font-size: 52px; }
  .res-card .title { font-size: 22px; }
  .res-card .sub { font-size: 14.5px; }
}
/* R4 M1: sorumluluk notu karttan çıktı → sonuç katmanının en altında küçük dipnot. */
.w-disc { margin: 18px 0 0; text-align: center; font-size: 10px; line-height: 1.4; color: #fff; opacity: .45; }
.res-card .stamp { margin-top: 8px; font-size: 11.5px; opacity: .75; }
.row2 { display: flex; gap: 10px; }
.row2 .cta { margin-top: 14px; }

/* 1 — Bayram kartı: alttan zıplar */
.ny-card--bayram .res-card { background: linear-gradient(160deg, #c42840, #7d0d22 70%); transform: translateY(40px) scale(.9); transition: transform .7s cubic-bezier(.2, 1.4, .3, 1); }
.w-result.show .ny-card--bayram .res-card { transform: none; }
.ny-card--bayram .res-card::before { content: ""; position: absolute; inset: 6px; border-radius: 20px; border: 2px dashed rgba(255, 226, 154, .45); pointer-events: none; }
.ny-card--bayram .card-back { display: none; }

/* 2 — Ulduz kartı: tarot kartı gibi çevrilir */
.ny-card--ulduz .ny-flip { perspective: 1000px; }
.ny-card--ulduz .ny-flip-in { position: relative; transform-style: preserve-3d; transition: transform 1.1s cubic-bezier(.3, 1.3, .4, 1); transform: rotateY(180deg) scale(.9); }
.w-result.show .ny-card--ulduz .ny-flip-in { transform: rotateY(0) scale(1); }
.ny-card--ulduz .res-card { background: radial-gradient(120% 90% at 50% 0%, #4b2a9a, #1a1046 60%, #0b0826); -webkit-backface-visibility: hidden; backface-visibility: hidden; border-color: rgba(190, 170, 255, .4); box-shadow: 0 0 40px rgba(140, 110, 255, .35), 0 20px 60px rgba(0, 0, 0, .5); }
.ny-card--ulduz .res-card .title { background: linear-gradient(180deg, #fff, #d8c8ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ny-card--ulduz .card-back {
  position: absolute; inset: 0; border-radius: 26px; -webkit-backface-visibility: hidden; backface-visibility: hidden; transform: rotateY(180deg);
  background: radial-gradient(circle at 50% 50%, #f6c453 0 26px, transparent 27px), repeating-radial-gradient(circle at 50% 50%, #2a1a6a 0 12px, #1a1046 12px 24px);
  border: 2px solid #f6c453;
}
.ny-card--ulduz ~ .ny-actions .cta:not(.ghost), .ny-stage.ny-style-ulduz .w-result .cta:not(.ghost) { background: linear-gradient(180deg, #e9ddff, #a98bff 60%, #7a5cf0); color: #140b3a; box-shadow: 0 10px 30px rgba(140, 110, 255, .45); }

.ny-again { margin: 14px 0 0; text-align: center; font-size: 14px; font-weight: 700; color: var(--ny-gold-2); }
.ny-again[hidden] { display: none; }
.ny-friend { margin-top: 14px; padding: 14px; border-radius: 18px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); }
.ny-friend[hidden] { display: none; }
.ny-friend label { display: block; font-size: 13px; color: var(--ny-muted); margin-bottom: 6px; }
.ny-friend input { width: 100%; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .08); color: #fff; border-radius: 12px; padding: 12px; font: inherit; font-size: 16px; outline: none; }
.ny-friend .cta { margin-top: 10px; }
.ny-friend-note { margin: 8px 0 0; font-size: 12px; color: var(--ny-muted); text-align: center; }
.ny-links { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: center; margin-top: 14px; font-size: 13px; }
.ny-links a, .ny-links button { color: var(--ny-gold-2); text-decoration: underline; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.ny-toast { margin: 10px 0 0; text-align: center; font-size: 13px; color: #c9f5dc; }
.ny-toast[hidden] { display: none; }

/* Sayfa alt metni (layout'un beyaz kartı içinde) */
.ny-about h2 { font-size: 20px; margin-bottom: 8px; }
.ny-about p { margin: 0 0 10px; line-height: 1.55; color: #374151; }
.ny-disclaimer { font-size: 13px; color: #6b7280 !important; }

/* R3-G «Necə işləyir?» (_how_it_works.blade.php) — layout'un beyaz kartında açılır kapanır
   4 adım. Ağaç sayfası bu dosyayı yüklemez (`.cta` çakışması); aynı kurallar oradaki
   <style>'da kopyadır — biri değişirse öbürü de. */
.ny-how { margin: 0 0 16px; }
.ny-how-box { border: 1px solid #e5e7f0; border-radius: 16px; background: #fbfaff; overflow: hidden; }
.ny-how-sum {
  display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 12px 16px;
  font-size: 17px; font-weight: 800; color: var(--ny-ink); cursor: pointer; list-style: none;
}
.ny-how-sum::-webkit-details-marker { display: none; }
.ny-how-sum::before {
  content: "?"; flex: 0 0 auto; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--ny-night-2); color: var(--ny-gold-2); font-size: 15px; font-weight: 900;
}
.ny-how-sum::after { content: ""; margin-left: auto; width: 9px; height: 9px; border-right: 2px solid #6b7280; border-bottom: 2px solid #6b7280; transform: rotate(45deg); transition: transform .2s; }
.ny-how-box[open] > .ny-how-sum::after { transform: rotate(-135deg); }
.ny-how-sum:focus-visible { outline: 2px solid var(--ny-night-3); outline-offset: -2px; border-radius: 16px; }
.ny-how-steps { margin: 0; padding: 0 16px 14px; list-style: none; counter-reset: ny-how; }
.ny-how-steps li {
  position: relative; counter-increment: ny-how; padding: 0 0 12px 40px; min-height: 28px;
  font-size: 15px; line-height: 1.5; color: #374151; overflow-wrap: anywhere;
}
.ny-how-steps li:last-child { padding-bottom: 0; }
.ny-how-steps li::before {
  content: counter(ny-how); position: absolute; left: 0; top: 0; display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%; background: var(--ny-gold); color: var(--ny-ink); font-size: 14px; font-weight: 900;
}
@media (max-width: 360px) {
  .ny-how-sum { padding: 10px 12px; font-size: 16px; }
  .ny-how-steps { padding: 0 12px 12px; }
  .ny-how-steps li { padding-left: 36px; font-size: 14.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .ny-how-sum::after { transition: none; }
}

@media (max-width: 520px) {
  .hero:has(.ny-hero) { padding-left: 0; padding-right: 0; }
  .ny-stage { border-radius: 22px; }
  /* R4 M4: üst çubuksuz sayfada sahne ekranın tepesine yapışık, tam genişlik. */
  .hero--bare .ny-stage { border-top-left-radius: 0; border-top-right-radius: 0; }
  .hero.hero--bare { padding-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .ny-card--bayram .res-card, .ny-card--ulduz .ny-flip-in { transition: none; transform: none; }
  .w-result, .w-form, .fade-out { transition: none; }
}

/* ---------- Tətbiq vitrini (Karusel, vitrin.html V1) ---------- */
.ny-show { margin: 0 0 28px; }
.ny-show-title { margin: 0 2px 12px; font-size: 20px; font-weight: 900; line-height: 1.2; color: #111827; }
.ny-show-title small { display: block; font-size: 13px; font-weight: 500; color: #6b7280; margin-top: 3px; }
.ny-car {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 12px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.ny-car::-webkit-scrollbar { display: none; }
.ny-tile {
  flex: 0 0 168px; height: 214px; border-radius: 22px; scroll-snap-align: start; position: relative; overflow: hidden;
  padding: 12px; display: flex; flex-direction: column; justify-content: flex-end; text-decoration: none; color: #fff;
  background: linear-gradient(165deg, var(--c1), var(--c2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 10px 24px rgba(15, 23, 42, .22);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a.ny-tile:focus-visible { outline: 3px solid #7A6BE8; outline-offset: 3px; }
.ny-tile .ny-tag { position: absolute; top: 10px; left: 10px; font-size: 10.5px; font-weight: 800; letter-spacing: .4px; background: rgba(0, 0, 0, .28); padding: 4px 8px; border-radius: 999px; }
.ny-tile .ny-soon { position: absolute; top: 10px; right: 10px; font-size: 10.5px; font-weight: 800; background: rgba(255, 255, 255, .9); color: #0b1430; padding: 4px 8px; border-radius: 999px; }
.ny-tile .ny-art { position: absolute; top: 30px; left: 0; right: 0; height: 110px; display: grid; place-items: center; }
.ny-tile .ny-grid4 { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; width: 104px; }
.ny-tile .ny-grid4 img { width: 50px; height: 50px; object-fit: contain; }
.ny-tile .ny-art-img { width: 96px; height: 96px; object-fit: contain; border-radius: 14px; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .3)); }
.ny-tile .ny-big { font-size: 66px; line-height: 1; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .3)); }
.ny-tile b { font-size: 15.5px; line-height: 1.2; }
.ny-tile small { font-size: 12px; opacity: .8; margin-top: 2px; }
.ny-tile--soon { opacity: .82; }
.ny-show-stores { margin-top: 10px; }

/* ---------- Sürpriz qutu /qutu/{code} (qutu.html A «Şaxtalı şüşə» + B «Sehrli hədiyyə») ---------- */
.ny-stage.ny-box { background: radial-gradient(80% 50% at 50% 42%, #2b1a52 0%, #141236 50%, #070a1f 100%); touch-action: manipulation; }
.ny-box .box-fx { z-index: 1; overflow: hidden; }
.ny-box--gone { min-height: 460px; height: auto; }
.ny-box--gone .box-intro { position: relative; inset: auto; padding: 60px 24px 70px; }
/* Silinmiş / kapalı grup-qutu sayfasında «Öz … yarat/göndər» düğmesi (R3 madde 12). */
.box-gone-cta { max-width: 320px; margin-top: 22px; }

/* Karşılama */
.box-intro {
  position: absolute; inset: 0; z-index: 30; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 24px; text-align: center; transition: opacity .5s;
  background: radial-gradient(70% 50% at 50% 40%, rgba(246, 196, 83, .16), transparent 70%);
}
.box-intro[hidden] { display: none; }
/* Üst boşluk düzeltmesi (R3 madde 9a): sahne 86svh iken ortalı giriş hediyenin
   üstünde ~190 px boş bırakıyor, düğmenin altı ekran dışına taşıyordu. Sahne
   kısalır (header + sahne tek ekrana sığar), giriş üst üçte birden başlar.
   Kapalı (gone) sayfanın kendi yüksekliği/dolgusu var → hariç. */
.ny-stage.ny-box:not(.ny-box--gone) { height: min(78vh, 700px); height: min(78svh, 700px); min-height: 540px; }
/* R4 M4: üst çubuk kalktı → giriş üst boşluğu da daraltıldı (eski clamp(28px, 8svh, 72px)). */
.ny-box:not(.ny-box--gone) .box-intro { justify-content: flex-start; padding-top: clamp(16px, 4vh, 40px); padding-top: clamp(16px, 4svh, 40px); }
.box-intro-art { position: relative; display: inline-block; line-height: 0; }
.box-intro-gift { width: 150px; height: 150px; object-fit: contain; filter: drop-shadow(0 14px 30px rgba(0, 0, 0, .45)); animation: box-bob 3s ease-in-out infinite; }
/* «Şaxtalı şüşə» girişi: hediye buzlu camın arkasında (yalnız CSS). */
.box-intro--glass { background: radial-gradient(70% 50% at 50% 40%, rgba(185, 224, 255, .2), transparent 70%); }
.box-intro--glass .box-intro-art { padding: 14px; border-radius: 30px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .45);
  background: linear-gradient(150deg, rgba(235, 246, 255, .34), rgba(170, 210, 245, .14)); box-shadow: 0 14px 34px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .6); }
.box-intro--glass .box-intro-gift { filter: blur(2.5px) saturate(.75) brightness(1.08); animation: none; }
.box-intro--glass .box-intro-art::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 22% 18%, rgba(255, 255, 255, .75) 0 2px, transparent 3px), radial-gradient(circle at 78% 30%, rgba(255, 255, 255, .6) 0 1.5px, transparent 3px),
    radial-gradient(circle at 35% 80%, rgba(255, 255, 255, .55) 0 1.5px, transparent 3px), linear-gradient(135deg, rgba(255, 255, 255, .35), rgba(255, 255, 255, 0) 45%, rgba(255, 255, 255, .22) 70%, rgba(255, 255, 255, 0)); }
.box-intro--glass .box-intro-big span { color: #bfe3ff; }
.box-intro-small { margin: 14px 0 0; font-size: 14px; color: var(--ny-muted); }
.box-intro-big { margin: 6px 0 0; font-size: 26px; font-weight: 900; line-height: 1.2; color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, .5); }
.box-intro-big span { color: var(--ny-gold-2); }
.box-start { max-width: 320px; margin-top: 22px; font-size: 18px; }
@keyframes box-bob { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-8px) rotate(3deg); } }

/* Efekt üstü ipuçları */
.box-hint { position: absolute; left: 0; right: 0; top: 56px; z-index: 30; padding: 0 28px; text-align: center; pointer-events: none; transition: opacity .5s; }
.box-hint[hidden], .box-pill[hidden], .box-skip[hidden], .box-fps[hidden], .box-fallback-note[hidden] { display: none; }
.box-fallback-note {
  position: absolute; left: 60px; right: 60px; top: 14px; z-index: 44; margin: 0; padding: 7px 12px; border-radius: 14px; text-align: center;
  background: rgba(0, 0, 0, .45); border: 1px solid rgba(255, 255, 255, .18); color: #fff; font-size: 12.5px; line-height: 1.3; pointer-events: none;
}
.box-hint-small { font-size: 13px; color: var(--ny-muted); }
.box-hint-big { margin-top: 4px; font-size: 25px; font-weight: 800; line-height: 1.2; color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, .5); }
.box-hint-big em { font-style: normal; color: var(--ny-gold-2); }
.ny-box--glass .box-hint-small, .ny-box--glass .box-hint-big { color: #1b2f5e; text-shadow: 0 1px 0 rgba(255, 255, 255, .6); }
.ny-box--glass .box-hint-big em { color: #c4233c; }
.box-pill {
  position: absolute; left: 50%; bottom: 58px; transform: translateX(-50%); z-index: 30; white-space: nowrap; pointer-events: none;
  background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .15); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  padding: 9px 16px; border-radius: 999px; font-size: 13.5px; color: #fff; animation: box-pulse 1.8s ease-in-out infinite;
}
@keyframes box-pulse { 0%, 100% { opacity: .75; transform: translateX(-50%) scale(1); } 50% { opacity: 1; transform: translateX(-50%) scale(1.04); } }
.box-skip {
  position: absolute; left: 50%; bottom: 104px; transform: translateX(-50%); z-index: 31; border: 1px solid rgba(255, 255, 255, .5);
  background: rgba(11, 20, 48, .55); color: #fff; border-radius: 999px; padding: 9px 18px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
}
.box-skip:focus-visible, .box-start:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.box-fps { position: absolute; left: 10px; top: 10px; z-index: 50; padding: 3px 7px; border-radius: 8px; background: rgba(0, 0, 0, .6); color: #9ff59f; font: 12px/1.2 ui-monospace, Menlo, monospace; pointer-events: none; }

/* A — Şaxtalı şüşə */
.box-under { position: absolute; inset: 0; background: radial-gradient(70% 45% at 50% 46%, #ffd77a 0%, #f39a3d 28%, #b8283f 60%, #2a0b26 100%); transition: filter 1s; }
.box-under .bk { position: absolute; border-radius: 50%; filter: blur(8px); mix-blend-mode: screen; animation: box-tw 3s ease-in-out infinite; }
@keyframes box-tw { 0%, 100% { opacity: .35; } 50% { opacity: .9; } }
.box-under .gift { position: absolute; left: 50%; top: 47%; width: 190px; height: 190px; object-fit: contain; transform: translate(-50%, -50%); filter: drop-shadow(0 14px 30px rgba(0, 0, 0, .45)); }
.box-under .yr { position: absolute; left: 0; right: 0; top: 66%; text-align: center; font-size: 64px; font-weight: 900; color: #fff3cf; text-shadow: 0 0 30px #ffb347; letter-spacing: 2px; }
.box-frost { z-index: 5; touch-action: none; cursor: crosshair; transition: opacity .8s; }
.box-sparks { z-index: 6; pointer-events: none; }
.box-flash { position: absolute; inset: 0; z-index: 34; background: #fff; opacity: 0; pointer-events: none; }

/* B — Sehrli hədiyyə (three.js tuvali + CSS ışık katmanları) */
.ny-box--gift { background: radial-gradient(60% 40% at 50% 52%, #3b2a7a 0%, #1a1747 45%, #070a1f 100%); }
.box-rays {
  position: absolute; left: 50%; top: 52%; width: 900px; height: 900px; margin: -450px 0 0 -450px; opacity: .22; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, rgba(255, 226, 154, .55) 0 6deg, transparent 6deg 18deg);
  -webkit-mask: radial-gradient(circle, #000 0, transparent 60%); mask: radial-gradient(circle, #000 0, transparent 60%);
  animation: box-spin 40s linear infinite; transition: opacity .6s;
}
@keyframes box-spin { to { transform: rotate(360deg); } }
.box-glow { position: absolute; left: 50%; top: 66%; width: 300px; height: 90px; margin-left: -150px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 210, 120, .75), transparent); filter: blur(6px); opacity: .35; transition: opacity .4s, transform .4s; }
.box-beam { position: absolute; left: 50%; bottom: 46%; width: 260px; height: 560px; margin-left: -130px; transform-origin: 50% 100%; transform: scaleY(0); pointer-events: none;
  background: linear-gradient(to top, rgba(255, 244, 200, .95), rgba(255, 220, 140, .35) 45%, transparent 85%);
  clip-path: polygon(40% 100%, 60% 100%, 100% 0, 0 0); filter: blur(5px); mix-blend-mode: screen; transition: transform 1s cubic-bezier(.2, .9, .3, 1), opacity 1.2s; }
.box-gl { z-index: 3; touch-action: manipulation; cursor: pointer; }
.box-snow { z-index: 2; pointer-events: none; }
.box-count { position: absolute; left: 0; right: 0; bottom: 106px; z-index: 30; text-align: center; font-size: 15px; letter-spacing: 6px; color: var(--ny-gold-2); pointer-events: none; transition: opacity .5s; }
.box-fly { position: absolute; width: 64px; height: 64px; margin: -32px; z-index: 20; pointer-events: none; transition: transform 2.4s cubic-bezier(.15, .8, .3, 1), opacity 2.4s; }

/* Açılış sonrası mesaj kartı */
.box-reveal {
  position: absolute; inset: 0; z-index: 35; display: flex; flex-direction: column; align-items: center; padding: 100px 20px 44px;
  overflow-y: auto; touch-action: pan-y; opacity: 0; transition: opacity .6s; -webkit-overflow-scrolling: touch;
  background: linear-gradient(180deg, rgba(5, 9, 22, .35), rgba(5, 9, 22, .72) 45%, rgba(5, 9, 22, .85));
  -webkit-user-select: text; user-select: text;
}
.box-reveal[hidden] { display: none; }
.box-reveal.show { opacity: 1; }
.box-card {
  width: 100%; border-radius: 26px; padding: 22px 20px 18px; position: relative; text-align: center; color: #fff;
  background: linear-gradient(160deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .06));
  border: 1px solid rgba(255, 255, 255, .22); box-shadow: 0 20px 60px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .25);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transform: translateY(30px) scale(.94); transition: transform .8s cubic-bezier(.2, 1.4, .3, 1);
}
.box-reveal.show .box-card { transform: none; }
.box-card-sticker { width: 128px; height: 128px; object-fit: contain; margin: -70px auto 6px; display: block; filter: drop-shadow(0 10px 22px rgba(0, 0, 0, .45)); animation: box-bob 3s ease-in-out infinite; }
/* R1d-B4: resimli kart — resim büyük, stiker mesajın yanında küçük. */
.box-card-image { display: block; width: 100%; height: auto; max-height: min(46vh, 360px); object-fit: contain; margin: 0 auto 14px; border-radius: 18px; }
.box-card-image[hidden], .box-card-replay[hidden] { display: none; }
.box-card--image { padding-top: 16px; }
.box-card--image .box-card-sticker { float: left; width: 64px; height: 64px; margin: 0 10px 4px 0; animation: none; }
.box-card--image .box-card-to, .box-card--image .box-card-text { text-align: left; }
.box-card--image .box-card-from { clear: both; }
.box-reveal.show .box-card-image { animation: box-image-in .7s cubic-bezier(.2, 1.2, .3, 1) both; }
@keyframes box-image-in { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
.box-card-replay { margin-top: 12px; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .1); color: #fff; border-radius: 999px; padding: 8px 16px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.box-card-replay:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.box-card-to { font-size: 14px; color: var(--ny-muted); }
.box-card-to b { color: var(--ny-gold-2); }
.box-card-text { font-size: 21px; font-weight: 700; line-height: 1.3; margin: 10px 0 12px; white-space: pre-line; overflow-wrap: anywhere; }
.box-card-from { font-size: 13.5px; color: var(--ny-muted); }
.box-card-from b { color: var(--ny-snow); }
/* R3 madde 9b: «🎬 Videonu paylaş» + durum satırı */
/* R4 M5: festival kırmızısı geniş düğme — altın daire ▶ + iki satır; hazırlanırken
   dönen halka + ince ilerleme şeridi (hareketi azalt: animasyonsuz). */
.cta.box-video {
  position: relative; display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 10px 16px 10px 12px;
  border-radius: 18px; text-align: left; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, #e6394f, #a3122d); border: 1px solid rgba(255, 226, 154, .55);
  box-shadow: 0 10px 26px rgba(163, 18, 45, .4), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.box-video-ico {
  position: relative; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(180deg, #ffe7a6, var(--ny-gold) 60%, #e7a92c); box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}
.box-video-ico::before {
  content: ""; position: absolute; left: 13px; top: 10px; width: 0; height: 0;
  border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent #a3122d;
}
.box-video-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.box-video-label { font-size: 16px; font-weight: 800; }
.box-video-sub { margin-top: 3px; font-size: 12.5px; font-weight: 600; opacity: .8; }
.box-video-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; overflow: hidden; background: rgba(255, 226, 154, .22); opacity: 0; }
.box-video-bar::after { content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 40%; border-radius: 3px; background: var(--ny-gold-2); }
.cta.box-video[aria-busy="true"] { opacity: .94; cursor: progress; }
.box-video[aria-busy="true"] .box-video-ico::before {
  left: 7px; top: 7px; width: 20px; height: 20px; border-width: 3px; border-radius: 50%;
  border-color: rgba(163, 18, 45, .25); border-top-color: #a3122d; animation: box-video-spin .8s linear infinite;
}
.box-video[aria-busy="true"] .box-video-bar { opacity: 1; }
.box-video[aria-busy="true"] .box-video-bar::after { animation: box-video-bar 1.4s ease-in-out infinite; }
@keyframes box-video-spin { to { transform: rotate(360deg); } }
@keyframes box-video-bar { to { transform: translateX(350%); } }
/* 320 px: alt satır («Səsli video · WhatsApp, Instagram») tek satırda kalsın. */
@media (max-width: 340px) {
  .cta.box-video { gap: 10px; padding-right: 12px; }
  .box-video-sub { font-size: 11.5px; }
}
/* `.cta.box-video` display:flex'ten SONRA: gizliyken görünmesin. */
.box-video[hidden], .cta.box-video[hidden], .box-video-status[hidden] { display: none; }
.box-video-status { margin: 8px 0 0; font-size: 13.5px; line-height: 1.35; color: var(--ny-muted); text-align: center; }
.box-video-status.is-error { color: #ffb3b3; }
.box-made { margin: 14px 0 0; font-size: 12px; color: rgba(255, 255, 255, .6); }
.box-made b { color: var(--ny-gold-2); }
.box-reveal ~ .ny-brand { transition: opacity .4s; }
.box-report { width: 100%; margin-top: 10px; text-align: center; }
.box-report-link { background: none; border: 0; padding: 4px; font: inherit; font-size: 12px; color: rgba(255, 255, 255, .5); text-decoration: underline; cursor: pointer; }
.box-report-form { margin-top: 8px; padding: 12px; border-radius: 16px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); text-align: left; }
.box-report-form[hidden] { display: none; }
.box-report-form fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.box-report-form legend { font-size: 13px; color: var(--ny-muted); margin-bottom: 6px; }
.box-report-form textarea { width: 100%; margin-top: 10px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .08); color: #fff; border-radius: 12px; padding: 10px; font: inherit; font-size: 15px; resize: vertical; }
.box-report-form .cta { margin-top: 10px; padding: 11px; font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
  .box-intro-gift, .box-card-sticker, .box-pill, .box-under .bk, .box-rays, .box-reveal.show .box-card-image { animation: none; }
  .box-card, .box-reveal { transition: none; transform: none; }
  /* R4 M5: halka durur, şerit sabit dolu görünür. */
  .box-video[aria-busy="true"] .box-video-ico::before { animation: none; }
  .box-video[aria-busy="true"] .box-video-bar::after { animation: none; left: 0; width: 100%; opacity: .6; }
}

/* ---------- Gizli Şaxta Baba /saxta/{code} (saxta2.html: Hərf qutuları, Ulduz ovu, Qartopu) ---------- */
.ny-stage.ny-santa { background: radial-gradient(90% 60% at 50% 20%, #24326e 0%, #0f1640 55%, #050818 100%); touch-action: manipulation; }
.ny-santa .santa-panel { position: absolute; inset: 0; z-index: 10; overflow-y: auto; -webkit-overflow-scrolling: touch; touch-action: pan-y; padding: 64px 20px 56px; text-align: center; transition: opacity .5s; }
.ny-santa .santa-panel[hidden] { display: none; }
/* R4 M4: üst boşluk qutu girişiyle aynı ölçü (eski 64 px). Panelin başındaki
   uyarı / onay kutusu sağ üstteki 🔊 düğmesinin altına girmesin diye yanlardan daralır. */
.ny-santa .santa-panel { padding-top: clamp(16px, 4vh, 40px); padding-top: clamp(16px, 4svh, 40px); }
.ny-santa .santa-panel > .ny-error, .ny-santa .santa-panel > .santa-confirm { margin-left: 40px; margin-right: 40px; }
.santa-hero-img { display: block; width: 112px; height: 112px; margin: 0 auto 6px; object-fit: contain; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .45)); }
.santa-grp { display: inline-flex; gap: 8px; align-items: center; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; padding: 6px 12px; font-size: 12.5px; color: var(--ny-muted); max-width: 100%; }
.santa-title { margin: 10px 0 4px; font-size: 25px; line-height: 1.2; font-weight: 900; color: #fff; overflow-wrap: anywhere; }
.santa-title em { font-style: normal; color: var(--ny-gold-2); }
.santa-sub { margin: 0 0 12px; font-size: 14.5px; color: var(--ny-muted); }
.santa-facts { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin: 8px 0 14px; padding: 0; list-style: none; }
.santa-facts li, .santa-chip { font-size: 12.5px; background: rgba(255, 255, 255, .12); border-radius: 999px; padding: 5px 10px; }
.santa-form { display: flex; flex-direction: column; gap: 10px; text-align: left; margin-top: 6px; }
.santa-form label { font-size: 13px; color: var(--ny-muted); }
.santa-form input[type="text"], .santa-form textarea {
  width: 100%; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .08); color: #fff; border-radius: 14px;
  padding: 12px 14px; font: inherit; font-size: 16px; outline: none; -webkit-user-select: text; user-select: text; resize: none;
}
.santa-form input::placeholder, .santa-form textarea::placeholder { color: rgba(255, 255, 255, .45); }
.santa-form input:focus, .santa-form textarea:focus { border-color: var(--ny-gold); }
.santa-form .cta { margin-top: 4px; }
.santa-count { font-size: 12px; color: rgba(255, 255, 255, .5); text-align: right; margin-top: -6px; }
.santa-box { margin-top: 14px; padding: 14px; border-radius: 18px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); text-align: left; }
.santa-box h2 { margin: 0 0 6px; font-size: 15px; font-weight: 800; color: #fff; }
.santa-box p { margin: 0 0 8px; font-size: 13px; color: var(--ny-muted); }
.santa-link { display: flex; gap: 8px; }
.santa-link input { flex: 1 1 auto; min-width: 0; border: 1px solid rgba(255, 255, 255, .22); background: rgba(0, 0, 0, .25); color: #fff; border-radius: 12px; padding: 10px; font: inherit; font-size: 13px; -webkit-user-select: all; user-select: all; }
.santa-link .cta { width: auto; margin: 0; padding: 10px 14px; font-size: 14px; }
.santa-me { margin: 0 0 6px; font-size: 15px; color: #fff; }
.santa-me b { color: var(--ny-gold-2); }
.santa-leave { margin-top: 14px; background: none; border: 0; color: rgba(255, 255, 255, .6); text-decoration: underline; font: inherit; font-size: 13px; cursor: pointer; }
.santa-picks { display: grid; gap: 10px; margin-top: 12px; }
.santa-pick { display: flex; gap: 12px; align-items: center; text-align: left; width: 100%; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .08); color: #fff; border-radius: 18px; padding: 14px; font: inherit; cursor: pointer; }
.santa-pick:focus-visible { outline: 2px solid var(--ny-gold); outline-offset: 2px; }
.santa-pick .ico { font-size: 30px; line-height: 1; }
.santa-pick b { display: block; font-size: 16px; }
.santa-pick small { display: block; font-size: 12.5px; color: var(--ny-muted); margin-top: 2px; }
.santa-confirm { margin: 0 0 14px; text-align: center; border-color: var(--ny-gold); }
.santa-confirm[hidden] { display: none; }
.santa-confirm p { color: #fff; font-size: 14.5px; font-weight: 700; }
.santa-confirm .cta { margin-top: 6px; }
.santa-made { margin: 16px 0 0; text-align: center; font-size: 12px; color: rgba(255, 255, 255, .55); }
.santa-made b { color: var(--ny-gold-2); }

/* Oyun katmanı */
.ny-santa .santa-game { position: absolute; inset: 0; z-index: 12; overflow: hidden; touch-action: none; -webkit-user-select: none; user-select: none; }
.ny-santa .santa-game[hidden] { display: none; }
.santa-game .sg-layer { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sg-head { position: absolute; left: 0; right: 0; top: 52px; z-index: 6; text-align: center; padding: 0 20px; transition: opacity .5s; pointer-events: none; }
.sg-head h2 { margin: 8px 0 0; font-size: 23px; line-height: 1.2; font-weight: 900; color: #fff; }
.sg-head h2 em { font-style: normal; color: var(--ny-gold-2); }
.sg-pill { position: absolute; left: 50%; bottom: 58px; transform: translateX(-50%); z-index: 30; background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .15); padding: 9px 16px; border-radius: 999px; font-size: 13.5px; white-space: nowrap; pointer-events: none; color: #fff; animation: sg-pulse 1.8s ease-in-out infinite; }
@keyframes sg-pulse { 0%, 100% { opacity: .75; transform: translateX(-50%) scale(1); } 50% { opacity: 1; transform: translateX(-50%) scale(1.04); } }
.sg-counter { position: absolute; left: 50%; transform: translateX(-50%); top: 246px; z-index: 7; pointer-events: none; white-space: nowrap; font-weight: 800; font-size: 15px; color: #fff; background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; padding: 6px 12px; }
.sg-brand { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; z-index: 40; font-size: 11.5px; color: rgba(255, 255, 255, .6); pointer-events: none; }
.sg-brand b { color: var(--ny-gold-2); }
.sg-float { position: absolute; z-index: 30; font-weight: 900; font-size: 18px; pointer-events: none; transform: translate(-50%, -50%); text-shadow: 0 2px 10px rgba(0, 0, 0, .6); animation: sg-ft 1s ease-out forwards; color: #fff; white-space: nowrap; }
@keyframes sg-ft { from { opacity: 1; margin-top: 0; } to { opacity: 0; margin-top: -50px; } }
.sg-shake { animation: sg-scr .3s; }
@keyframes sg-scr { 25% { transform: translate(4px, -2px); } 50% { transform: translate(-4px, 2px); } 75% { transform: translate(2px, 1px); } }

.sg-skip { position: absolute; top: 14px; left: 14px; z-index: 46; border: 1px solid rgba(255, 255, 255, .3); background: rgba(0, 0, 0, .4); color: #fff; border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.sg-skip[hidden] { display: none; }
.sg-skip:focus-visible { outline: 2px solid var(--ny-gold); outline-offset: 2px; }

/* Hərf qutuları */
.sg-lslot { position: absolute; width: 46px; height: 58px; margin-left: -23px; border-radius: 12px; background: rgba(255, 255, 255, .08); border: 2px dashed rgba(255, 255, 255, .25); display: grid; place-items: center; font-size: 30px; font-weight: 900; z-index: 5; transition: all .4s; color: #5a1020; }
.sg-lslot.sg-two { font-size: 22px; }
.sg-lslot.on { background: linear-gradient(180deg, #fff6d6, #f6c453); border: 2px solid #fff3c4; box-shadow: 0 0 20px rgba(246, 196, 83, .5); animation: sg-popin .45s cubic-bezier(.2, 1.8, .3, 1); }
.sg-lslot.wave { animation: sg-wave .6s ease-in-out; }
@keyframes sg-popin { from { transform: scale(.4); } to { transform: none; } }
@keyframes sg-wave { 50% { transform: translateY(-14px) scale(1.12); box-shadow: 0 0 34px #ffd34d; } }
.sg-shelf { position: absolute; left: 18px; right: 18px; height: 14px; border-radius: 7px; background: linear-gradient(180deg, #8a5a2a, #5a3418); box-shadow: 0 10px 20px rgba(0, 0, 0, .4); z-index: 5; }
.sg-gbox { position: absolute; width: 56px; height: 56px; margin-left: -28px; z-index: 6; cursor: pointer; animation: sg-bob 2.4s ease-in-out infinite; border: 0; padding: 0; background: none; }
@keyframes sg-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.sg-gbox .body { position: absolute; left: 4px; right: 4px; bottom: 0; height: 40px; border-radius: 6px; background: linear-gradient(90deg, transparent 42%, #ffe08a 42%, #f2b33d 58%, transparent 58%), linear-gradient(180deg, var(--b1), var(--b2)); box-shadow: 0 8px 16px rgba(0, 0, 0, .35); }
.sg-gbox .lid { position: absolute; left: 0; right: 0; top: 6px; height: 15px; border-radius: 5px; background: linear-gradient(90deg, transparent 42%, #ffe08a 42%, #f2b33d 58%, transparent 58%), linear-gradient(180deg, var(--b1), var(--b2)); filter: brightness(1.15); transition: transform .6s cubic-bezier(.2, .8, .3, 1), opacity .6s; }
.sg-gbox .lid::before { content: ""; position: absolute; left: 50%; top: -12px; width: 26px; height: 14px; margin-left: -13px; border-radius: 50% 50% 0 0; border: 4px solid #f6c453; border-bottom: 0; }
.sg-gbox .q { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; font-weight: 900; color: rgba(255, 255, 255, .9); font-size: 15px; }
.sg-gbox.wig { animation: sg-wig .35s; }
@keyframes sg-wig { 25% { transform: rotate(-12deg) scale(1.08); } 50% { transform: rotate(10deg) scale(1.1); } 75% { transform: rotate(-6deg); } }
.sg-gbox.open { animation: none; cursor: default; }
.sg-gbox.open .lid { transform: translate(-24px, -70px) rotate(-50deg); opacity: 0; }
.sg-gbox.open .q { opacity: 0; }
.sg-gbox:focus-visible { outline: 2px solid #fff; outline-offset: 4px; border-radius: 8px; }
.sg-fly { position: absolute; z-index: 25; font-size: 30px; font-weight: 900; color: #fff6d6; text-shadow: 0 0 16px #ffd34d; transform: translate(-50%, -50%); transition: left .7s cubic-bezier(.3, .1, .3, 1), top .7s cubic-bezier(.5, -.6, .6, 1), transform .7s; pointer-events: none; }
.sg-guess { position: absolute; left: 12px; right: 12px; bottom: 40px; z-index: 32; border-radius: 26px; padding: 18px 16px 14px; background: linear-gradient(180deg, #24306b, #141c48); border: 1px solid rgba(255, 255, 255, .2); box-shadow: 0 -10px 40px rgba(0, 0, 0, .5); transform: translateY(120%); transition: transform .5s cubic-bezier(.2, 1.2, .3, 1); text-align: center; color: #fff; }
.sg-guess.show { transform: none; }
.sg-guess h3 { margin: 0 0 4px; font-size: 20px; }
.sg-guess .pat { font-size: 24px; font-weight: 900; letter-spacing: 6px; color: var(--ny-gold-2); margin: 4px 0 12px; overflow-wrap: anywhere; }
.sg-guess .opts { display: grid; gap: 8px; }
.sg-guess .opts button { border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .1); color: #fff; border-radius: 14px; padding: 12px 4px; font: inherit; font-weight: 800; font-size: 15px; cursor: pointer; overflow-wrap: anywhere; }
.sg-guess .opts button.ok { background: #19a974; border-color: #7ff0c0; }
.sg-guess .opts button.no { background: #a3122d; border-color: #ff8f9b; animation: sg-wig .35s; }
.sg-guess .skip { margin-top: 10px; font-size: 13.5px; color: var(--ny-muted); text-decoration: underline; cursor: pointer; background: none; border: 0; font-family: inherit; }
.sg-guess .say { min-height: 22px; margin-top: 8px; font-weight: 800; }

/* Ulduz ovu */
.sg-slot { position: absolute; width: 46px; height: 62px; margin-left: -23px; text-align: center; z-index: 5; pointer-events: none; }
.sg-slot .dot { width: 14px; height: 14px; margin: 0 auto; border-radius: 50%; border: 2px dashed rgba(255, 255, 255, .35); transition: all .4s; }
.sg-slot.on .dot { border: 0; background: #fff6c0; box-shadow: 0 0 14px #ffd34d, 0 0 30px #f6c453; transform: scale(1.3); }
.sg-slot .ch { font-size: 32px; font-weight: 900; line-height: 1.15; margin-top: 4px; color: #fff6d6; text-shadow: 0 0 18px rgba(246, 196, 83, .8); opacity: 0; transform: scale(.3); transition: all .5s cubic-bezier(.2, 1.6, .3, 1); }
.sg-slot.sg-two .ch { font-size: 22px; }
.sg-slot.on .ch { opacity: 1; transform: none; }
.sg-slot.final .ch { color: #fff; text-shadow: 0 0 24px #ffd34d, 0 0 50px #f39a3d; }

/* Qartopu */
.sg-gname { position: absolute; left: 50%; z-index: 26; transform: translate(-50%, -50%) scale(.2); opacity: 0; text-align: center; transition: transform .8s cubic-bezier(.2, 1.6, .3, 1), opacity .4s; pointer-events: none; width: 90%; }
.sg-gname.show { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.sg-gname small { display: block; font-size: 12px; font-weight: 800; letter-spacing: 1px; color: #ffe29a; }
.sg-gname b { font-size: 44px; font-weight: 900; color: #fff6d6; text-shadow: 0 0 20px #ffd34d, 0 0 40px #f39a3d; overflow-wrap: anywhere; }

/* Sonuç kartı */
.ny-santa .santa-result { position: absolute; inset: 0; z-index: 35; padding: 70px 18px 48px; overflow-y: auto; -webkit-overflow-scrolling: touch; touch-action: pan-y; opacity: 0; transition: opacity .6s; pointer-events: none; background: linear-gradient(180deg, rgba(5, 9, 22, .4), rgba(5, 9, 22, .85) 40%, rgba(5, 9, 22, .94)); }
.ny-santa .santa-result[hidden] { display: none; }
.ny-santa .santa-result.show { opacity: 1; pointer-events: auto; }
.santa-card { border-radius: 26px; padding: 20px 18px; text-align: center; color: #fff; background: linear-gradient(160deg, #1f7a55, #0b4a33 70%); border: 1px solid rgba(255, 255, 255, .22); box-shadow: 0 20px 60px rgba(0, 0, 0, .5); transform: translateY(30px) scale(.94); transition: transform .8s cubic-bezier(.2, 1.4, .3, 1); }
.santa-result.show .santa-card { transform: none; }
.santa-card .k { font-size: 14px; opacity: .85; }
.santa-card .nm { font-size: 40px; font-weight: 900; line-height: 1.15; margin: 4px 0 2px; color: #fff6d6; text-shadow: 0 0 24px rgba(246, 196, 83, .6); overflow-wrap: anywhere; }
.santa-card .sh { font-size: 13.5px; opacity: .85; }
.santa-card .wish { margin-top: 12px; text-align: left; background: rgba(0, 0, 0, .2); border-radius: 16px; padding: 12px 14px; font-size: 14px; white-space: pre-line; overflow-wrap: anywhere; }
.santa-card .wish b { display: block; margin-bottom: 4px; }
.santa-card .wish[hidden], .santa-card .santa-chip[hidden], .santa-badge[hidden] { display: none; }
.santa-card .chips { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.santa-badge { display: inline-block; margin-bottom: 8px; font-size: 12.5px; font-weight: 800; background: var(--ny-gold); color: var(--ny-ink); padding: 5px 10px; border-radius: 999px; }
.santa-result .cta small { display: block; font-size: 11.5px; font-weight: 600; opacity: .7; }
/* R4-B «📤 Paylaş» — festival kırmızısı (R4 M5 «Videonu paylaş» ailesi); altın
   «qutu» CTA'sından ayrışır. Yedek «Şəkli yüklə» linki + durum satırı. */
.cta.santa-share {
  min-height: 58px; border-radius: 18px; color: #fff;
  background: linear-gradient(135deg, #e6394f, #a3122d); border: 1px solid rgba(255, 226, 154, .55);
  box-shadow: 0 10px 26px rgba(163, 18, 45, .4), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.santa-result .cta.santa-share small { margin-top: 2px; opacity: .85; }
.santa-share-dl {
  display: block; width: max-content; max-width: 100%; margin: 10px auto 0; padding: 6px 10px;
  font-size: 14px; font-weight: 700; color: var(--ny-gold-2); text-decoration: underline; text-underline-offset: 3px;
}
.santa-share-status { margin: 8px 0 0; font-size: 13.5px; line-height: 1.35; color: var(--ny-muted); text-align: center; overflow-wrap: anywhere; }
.cta.santa-share[hidden], .santa-share-dl[hidden], .santa-share-status[hidden] { display: none; }
.santa-result .row2 .cta { font-size: 14px; padding: 13px 8px; }
.santa-result .box-report, .santa-panel .box-report { text-align: center; }

@media (prefers-reduced-motion: reduce) {
  .sg-pill, .sg-gbox, .sg-lslot.on, .sg-lslot.wave { animation: none; }
  .ny-santa .santa-result, .santa-card, .santa-panel { transition: opacity .3s; }
  .santa-card { transform: none; }
}

/* ---------- R5-A (03.12.2026): sonuç katmanlarında üst şerit + kart içi düzen ----------
   Şikâyet: çark / qutu / Şaxta sonucunda kartın üstünde yalnız 🔊'nin durduğu boş şerit,
   qutu kartında resmin iki yanında boşluk ve metnin altına sarılan küçük stiker.
   Tümü `:has` desteğine bağlı: desteklemeyen tarayıcı R4 görünümünde kalır; yukarıdaki
   kurallar (R4 kilit dizeleri) DEĞİŞMEDİ, burası yalnız üstüne yazar. */
@supports selector(:has(*)) {
  .ny-stage { --ny-ov-top: 16px; --ny-ov-x: 16px; }
  /* Sonuç katmanı açıkken 🔊 sahnenin sağ ALTINA iner → katman üstünde ona yer ayırmaz.
     Ortadaki marka satırıyla 320 px'te de çakışmaz (yalnız /carx'ta görünür). */
  .ny-stage:has(> .box-reveal.show) > .mute,
  .ny-stage:has(> .w-result.show) > .mute,
  .ny-stage:has(> .santa-result.show) > .mute { top: auto; bottom: 8px; right: 8px; }
  /* 🔊'nin altından kayan içerik alt kenarda soluklaşır → durağan hâlde düğme bir düğmenin
     ya da metnin üstüne binmez (yalnız 🔊 görünürken; /carx/{kod}'da 🔊 yok). */
  .ny-stage:has(> .mute:not([hidden])) > .box-reveal.show,
  .ny-stage:has(> .mute:not([hidden])) > .w-result.show,
  .ny-stage:has(> .mute:not([hidden])) > .santa-result.show {
    -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 56px), transparent calc(100% - 8px));
    mask-image: linear-gradient(180deg, #000 calc(100% - 56px), transparent calc(100% - 8px));
  }
  /* Kaydırma sonunda son satır 🔊'nin ve soluklaşan alt kenarın üstünde kalsın (60 ≥ 56). */
  .box-reveal { padding: 80px var(--ny-ov-x) 60px; }
  .w-result { padding-right: var(--ny-ov-x); padding-bottom: 60px; padding-left: var(--ny-ov-x); }
  .ny-santa .santa-result { padding: var(--ny-ov-top) var(--ny-ov-x) 60px; }
  /* Resimsiz qutu 80 px'i korur: büyük stiker kartın 56 px üstüne taşar. Resimli kart
     ve /carx/{kod} (🔊 / stil anahtarı yok) tepeden başlar. /carx 84/64 aynen (anahtar). */
  .box-reveal:has(.box-card--image) { padding-top: var(--ny-ov-top); }
  [data-ny27-page="result"] .w-result { padding-top: var(--ny-ov-top); }

  .res-card, .santa-card { padding: 18px var(--ny-ov-x) 16px; }

  /* Qutu kartı: resim kendi oranında ortalı (yanlarda boş kutu yok), stiker resmin sağ
     alt köşesine taşan rozet; ad + mesaj tam genişlik, ortalı. */
  .box-card, .box-card--image { padding: 14px; }
  .box-card-media { position: relative; }
  .box-card--image .box-card-media { width: fit-content; max-width: 100%; margin: 0 auto 18px; }
  .box-card--image .box-card-image { width: auto; max-width: 100%; margin: 0 auto; }
  .box-card--image .box-card-sticker { position: absolute; right: -10px; bottom: -14px; float: none; width: 68px; height: 68px; margin: 0; }
  .box-card--image .box-card-to, .box-card--image .box-card-text { text-align: center; }
  .box-card-text { margin: 8px 0 10px; }

  @media (max-width: 360px) {
    .res-card, .santa-card { padding: 16px 14px 14px; }
    .box-card, .box-card--image { padding: 12px; }
    .box-card-text { font-size: 19px; }
  }
}
