/* IT Creative — Yangi yil bezagi (landing + boş sahifa).
   Ranglar sahifaning öz tokenlaridan olinadi (--ink, --muted, --line, --solid): ikkala sahifada ham bir xil nomlangan.
   Bosqiç: [data-ny-phase="before"] — sanoq, "after" — tabrik (JS 00:00 da almaştiradi). */

[data-ny-phase="before"] .ny-after,
[data-ny-phase="after"] .ny-before { display: none !important; }

/* ───────── Qor va salyut (JS yaratadi) ───────── */
#nySnow, #nyFireworks { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; display: block; }
#nySnow { z-index: 40; }
#nyFireworks { z-index: 1060; }
@media print { #nySnow, #nyFireworks, .ny-garland, .ny-page-garland { display: none !important; } }

/* ───────── Girlyanda ───────── */
.ny-garland, .ny-page-garland { pointer-events: none; height: 46px; overflow: visible; }
.ny-garland svg, .ny-page-garland svg { display: block; width: 100%; height: 46px; overflow: visible; }
.ny-page-garland { position: absolute; top: 0; left: 0; right: 0; z-index: 3; }
.ny-wire { fill: none; stroke: #3b4a3f; stroke-width: 1.6; stroke-linecap: round; }
.ny-cap { fill: #6b7280; }
.ny-bulb .ny-halo { opacity: .5; animation: nyHalo 2.6s ease-in-out infinite; animation-delay: calc(var(--i) * -0.43s); }
.ny-bulb .ny-glass { animation: nyGlass 2.6s ease-in-out infinite; animation-delay: calc(var(--i) * -0.43s); }
@keyframes nyHalo { 0%, 100% { opacity: .12; } 45%, 60% { opacity: .75; } }
@keyframes nyGlass { 0%, 100% { opacity: .55; } 45%, 60% { opacity: 1; } }

/* ───────── Umumiy bölaklar ───────── */
.ny-kicker { display: inline-flex; align-items: center; gap: 8px; font: 600 12px 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--gold, #fbbf24); }
.ny-chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line, rgba(255,255,255,.12));
  background: color-mix(in srgb, var(--solid, #10131c) 70%, transparent); color: var(--muted, #8b93a7); font-family: inherit; font-size: 12px; font-weight: 600; line-height: 1; cursor: pointer; text-decoration: none; transition: color .25s, border-color .25s, transform .25s; }
.ny-chip:hover { color: var(--ink, #eef1f7); border-color: var(--gold, #fbbf24); transform: translateY(-1px); }
.ny-chip:focus-visible { outline: 2px solid var(--gold, #fbbf24); outline-offset: 2px; }
.ny-chip[hidden] { display: none; }
.ny-snow[aria-pressed="false"] { opacity: .6; }
.ny-snow[aria-pressed="false"] i { text-decoration: line-through; }

.ny-cd { display: flex; gap: 10px; }
.ny-cd > div { min-width: 68px; padding: 12px 8px 10px; border-radius: 16px; text-align: center; border: 1px solid var(--line, rgba(255,255,255,.1));
  background: linear-gradient(180deg, color-mix(in srgb, var(--solid, #10131c) 82%, transparent), color-mix(in srgb, var(--solid, #10131c) 55%, transparent)); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.ny-cd b { display: block; font: 700 clamp(24px, 3.4vw, 34px)/1 'JetBrains Mono', ui-monospace, monospace; color: var(--ink, #eef1f7); font-variant-numeric: tabular-nums; }
.ny-cd small { display: block; margin-top: 6px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted, #8b93a7); }
.ny-cd > div:last-child b { color: var(--gold, #fbbf24); }
.ny-cd b.ny-tick { animation: nyTick .45s cubic-bezier(.22, 1, .36, 1); }
@keyframes nyTick { from { transform: translateY(-22%); opacity: .35; } }

/* ───────── Landing hero ───────── */
.ny-hero { margin-top: 34px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.ny-hero .ny-before, .ny-hero .ny-after { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.ny-hero .ny-note { color: var(--muted, #8b93a7); font-size: 15px; max-width: 460px; margin: 0; }
.ny-wish { font-size: clamp(30px, 5vw, 54px); line-height: 1.05; font-weight: 700;
  background: linear-gradient(100deg, #fde68a, #fbbf24 30%, #f472b6 65%, #a78bfa); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ───────── Boş sahifa kartasi ───────── */
.ny-card { position: relative; margin-top: 18px; padding: 58px 28px 26px; border-radius: 26px; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; align-items: center;
  border: 1px solid color-mix(in srgb, var(--gold, #fbbf24) 30%, var(--line, rgba(255,255,255,.1)));
  background:
    radial-gradient(520px 260px at 0% 0%, rgba(239, 68, 68, .20), transparent 70%),
    radial-gradient(520px 300px at 100% 100%, rgba(34, 197, 94, .16), transparent 70%),
    radial-gradient(420px 240px at 70% 0%, rgba(251, 191, 36, .16), transparent 70%),
    var(--solid, #10131c);
  animation: nyRise .8s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes nyRise { from { opacity: 0; transform: translateY(16px); } }
.ny-card .ny-garland { position: absolute; top: 0; left: 0; right: 0; }
.ny-card h2 { margin: 10px 0 0; font-size: clamp(22px, 3vw, 34px); line-height: 1.15; font-weight: 700; color: var(--ink, #eef1f7); overflow-wrap: anywhere; }
.ny-card p { margin: 10px 0 0; max-width: 560px; font-size: 15px; color: var(--muted, #8b93a7); }
.ny-card .ny-r { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; min-width: 0; }
.ny-card .ny-r .ny-before { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.ny-cd-t { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted, #8b93a7); }
.ny-acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.ny-year { font: 700 clamp(56px, 9vw, 104px)/.95 'Space Grotesk', system-ui, sans-serif; letter-spacing: -.03em;
  background: linear-gradient(120deg, #fde68a, #fbbf24 35%, #f472b6 70%, #a78bfa); -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: nyShine 5s ease-in-out infinite; background-size: 200% 100%; }
@keyframes nyShine { 50% { background-position: 100% 0; } }

.ny-recap { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; align-items: stretch; }
.ny-recap-t { flex-basis: 100%; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted, #8b93a7); }
.ny-recap > div { display: grid; grid-template-columns: auto auto; column-gap: 10px; align-items: center; padding: 10px 16px; border-radius: 16px;
  border: 1px solid var(--line, rgba(255,255,255,.1)); background: color-mix(in srgb, var(--solid, #10131c) 60%, transparent); }
.ny-recap > div i { grid-row: span 2; font-size: 20px; color: var(--gold, #fbbf24); }
.ny-recap b { font: 700 20px/1.1 'JetBrains Mono', ui-monospace, monospace; color: var(--ink, #eef1f7); font-variant-numeric: tabular-nums; }
.ny-recap small { font-size: 12px; color: var(--muted, #8b93a7); }
.ny-start { margin-top: 16px; color: var(--ink, #eef1f7); border-color: color-mix(in srgb, var(--gold, #fbbf24) 50%, transparent); }

/* Miltillovçi yulduzçalar */
.ny-sparks { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.ny-sparks i { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: #fde68a; box-shadow: 0 0 10px 2px rgba(253, 230, 138, .7); animation: nySpark 3.4s ease-in-out infinite; }
.ny-sparks i:nth-child(1) { left: 8%; top: 62%; animation-delay: -.3s; }
.ny-sparks i:nth-child(2) { left: 31%; top: 86%; animation-delay: -1.2s; width: 3px; height: 3px; }
.ny-sparks i:nth-child(3) { left: 52%; top: 30%; animation-delay: -2.1s; width: 4px; height: 4px; }
.ny-sparks i:nth-child(4) { left: 68%; top: 78%; animation-delay: -.8s; }
.ny-sparks i:nth-child(5) { left: 86%; top: 40%; animation-delay: -2.7s; width: 3px; height: 3px; }
.ny-sparks i:nth-child(6) { left: 95%; top: 84%; animation-delay: -1.7s; width: 4px; height: 4px; }
@keyframes nySpark { 0%, 100% { opacity: 0; transform: scale(.4); } 50% { opacity: 1; transform: scale(1); } }

/* ───────── Yoruğ mavzu ───────── */
[data-theme="light"] .ny-wire, [data-bs-theme="light"] .ny-wire { stroke: #56695b; }
[data-theme="light"] .ny-bulb .ny-halo, [data-bs-theme="light"] .ny-bulb .ny-halo { animation-name: nyHaloLight; }
@keyframes nyHaloLight { 0%, 100% { opacity: .1; } 45%, 60% { opacity: .5; } }
[data-bs-theme="light"] .ny-card {
  background:
    radial-gradient(520px 260px at 0% 0%, rgba(239, 68, 68, .13), transparent 70%),
    radial-gradient(520px 300px at 100% 100%, rgba(34, 197, 94, .13), transparent 70%),
    radial-gradient(420px 240px at 70% 0%, rgba(251, 191, 36, .2), transparent 70%),
    var(--solid, #ffffff); }
[data-bs-theme="light"] .ny-sparks i { background: #f59e0b; box-shadow: 0 0 10px 2px rgba(245, 158, 11, .5); }
[data-theme="light"] .ny-wish, [data-bs-theme="light"] .ny-year { background-image: linear-gradient(110deg, #b45309, #db2777 55%, #7c3aed); }

/* ───────── Kiçik ekran ───────── */
@media (max-width: 860px) {
  .ny-card { grid-template-columns: minmax(0, 1fr); padding: 56px 18px 20px; gap: 18px; }
  .ny-card .ny-r, .ny-card .ny-r .ny-before { align-items: flex-start; }
  .ny-acts { justify-content: flex-start; }
}
@media (max-width: 480px) {
  .ny-cd { gap: 6px; width: 100%; }
  .ny-cd > div { min-width: 0; flex: 1; padding: 10px 4px 8px; }
  .ny-recap > div { flex: 1 1 100%; }
  .ny-hero { margin-top: 26px; width: 100%; }
  .ny-hero .ny-before { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .ny-bulb .ny-halo, .ny-bulb .ny-glass, .ny-sparks i, .ny-year, .ny-card, .ny-cd b.ny-tick { animation: none !important; }
  .ny-bulb .ny-halo { opacity: .45; }
  .ny-sparks i { opacity: .7; }
}

/* ═════════ Navbar girlyandasi (barça sahifalarda) ═════════ */
.ny-nav-garland { position: absolute; left: 18px; right: 18px; top: 100%; height: 34px; pointer-events: none; }
.ny-nav-garland svg { display: block; width: 100%; height: 34px; overflow: visible; }

/* ═════════ Çanada uçayotgan Qorbobo (JS yaratadi) ═════════ */
#nySleighLayer { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 39; }
#nySleighLayer.ny-behind { z-index: 1; }
/* Siluet: töq şakl, çetida oy yoruği; mo'yna va qöngiroqlargina oçiq rangda */
.ny-sleigh { position: absolute; left: 0; top: 0; visibility: hidden; will-change: transform;
  --ny-sil: #0a1124; --ny-rim: rgba(206, 223, 255, .85); --ny-fur: #dfe8fb; --ny-coat: #1c0b18; --ny-gold: #f5d27a; }
[data-theme="light"] .ny-sleigh, [data-bs-theme="light"] .ny-sleigh {
  --ny-sil: #1b2440; --ny-rim: rgba(27, 36, 64, 0); --ny-fur: #c9d3ea; --ny-coat: #33162a; --ny-gold: #d99a1c; }
.ny-sleigh svg { position: relative; display: block; width: 100%; height: auto; overflow: visible; }
/* Oy şu'lasi: qorong'i fonda siluet şu yoruğlik ustida körinadi */
.ny-halo-moon { position: absolute; left: -6%; right: -6%; top: -38%; bottom: -38%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 214, 140, .22), rgba(255, 190, 110, .08) 55%, rgba(255, 190, 110, 0)); }
.ny-sleigh svg { filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .35)) drop-shadow(0 0 6px rgba(255, 220, 160, .25)); }
.ny-nose-glow { animation: nyNose 1.2s ease-in-out infinite alternate; }
@keyframes nyNose { from { opacity: .25; } to { opacity: .7; } }
.ny-sack { fill: #2b1d17; }
[data-theme="light"] .ny-sack, [data-bs-theme="light"] .ny-sack { fill: #3d2a20; }
.ny-face { fill: #c79f83; }
.ny-eye { fill: #1a1208; }
[data-theme="light"] .ny-halo-moon, [data-bs-theme="light"] .ny-halo-moon { background: radial-gradient(closest-side, rgba(255, 214, 140, .30), rgba(255, 214, 140, 0)); }
.ny-sil { fill: var(--ny-sil); stroke: var(--ny-rim); stroke-width: 1.1; stroke-linejoin: round; paint-order: stroke; }
.ny-coat { fill: var(--ny-coat); }
.ny-fur { fill: var(--ny-fur); stroke: var(--ny-fur); }
.ny-limb { fill: none; stroke: var(--ny-coat); stroke-linecap: round; }
.ny-antler { fill: none; stroke: var(--ny-sil); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; filter: none; }
[data-theme="dark"] .ny-antler, [data-bs-theme="dark"] .ny-antler { stroke: rgba(206, 223, 255, .72); stroke-width: 2; }
.ny-rein { fill: none; stroke: var(--ny-gold); stroke-width: 1; opacity: .7; }
.ny-strap { fill: none; stroke: var(--ny-gold); stroke-width: 2.4; stroke-linecap: round; }
.ny-bell { fill: var(--ny-gold); }
.ny-trim { fill: none; stroke: var(--ny-gold); stroke-width: 2.6; stroke-linecap: round; }
.ny-runner { fill: none; stroke: var(--ny-gold); stroke-width: 3.6; stroke-linecap: round; }
.ny-rig { animation: nyRig 2.4s ease-in-out infinite; }
@keyframes nyRig { 50% { transform: translateY(-3px); } }
/* Çopiş: old va orqa oyoqlar qarama-qarşi, har buğu öz kechikişi bilan (--d) */
.ny-deer { animation: nyDeerBob .56s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes nyDeerBob { 0%, 100% { transform: translateY(2.5px) rotate(1.6deg); } 50% { transform: translateY(-3px) rotate(-1.6deg); } }
/* Ikki böğimli oyoq: son (.ny-leg) va boldir (.ny-shin) öz g elementining (0,0) nuqtasi atrofida aylanadi */
.ny-leg, .ny-shin, .ny-neck, .ny-head, .ny-arm-wave, .ny-arm-rein { transform-origin: 0 0; }
.ny-leg, .ny-shin { animation: .56s linear infinite; animation-delay: var(--d, 0s); }
.ny-leg-2, .ny-leg-2 .ny-shin { animation-delay: calc(var(--d, 0s) - .08s); }
.ny-leg-f { animation-name: nyLegF; }
.ny-leg-f .ny-shin { animation-name: nyShinF; }
.ny-leg-h { animation-name: nyLegH; }
.ny-leg-h .ny-shin { animation-name: nyShinH; }
@keyframes nyLegF { 0%, 100% { transform: rotate(-56deg); } 45% { transform: rotate(30deg); } 70% { transform: rotate(-6deg); } }
@keyframes nyShinF { 0%, 100% { transform: rotate(14deg); } 35% { transform: rotate(0deg); } 50% { transform: rotate(24deg); } 72% { transform: rotate(82deg); } 90% { transform: rotate(34deg); } }
@keyframes nyLegH { 0%, 100% { transform: rotate(42deg); } 50% { transform: rotate(-34deg); } }
@keyframes nyShinH { 0%, 100% { transform: rotate(4deg); } 30% { transform: rotate(58deg); } 55% { transform: rotate(46deg); } 80% { transform: rotate(8deg); } }
.ny-neck { transform-origin: 24px -12px; animation: nyNeck .56s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes nyNeck { 0%, 100% { transform: rotate(2.5deg); } 50% { transform: rotate(-3.5deg); } }
/* Qorbobo harakatlari: qöl silkiş, jilovni silkitiş, atrofga qaraş */
.ny-arm-wave { animation: nyArmWave 8s ease-in-out infinite; }
@keyframes nyArmWave { 0%, 52%, 90%, 100% { transform: rotate(168deg); } 60% { transform: rotate(-4deg); } 64% { transform: rotate(24deg); } 68% { transform: rotate(-10deg); } 72% { transform: rotate(24deg); } 76% { transform: rotate(-10deg); } 81% { transform: rotate(8deg); } }
.ny-arm-rein { animation: nyArmRein 5.2s ease-in-out infinite; }
@keyframes nyArmRein { 0%, 78%, 100% { transform: rotate(0deg); } 82% { transform: rotate(-26deg); } 86% { transform: rotate(9deg); } 90% { transform: rotate(-12deg); } 95% { transform: rotate(3deg); } }
.ny-head { animation: nyHead 11s ease-in-out infinite; }
@keyframes nyHead { 0%, 30%, 100% { transform: rotate(0deg); } 36%, 46% { transform: rotate(-16deg); } 52%, 60% { transform: rotate(9deg); } 68% { transform: rotate(0deg); } }
/* Tuşib ketgan sovğa */
.ny-drop { position: absolute; width: 15px; height: 15px; margin: -7px; border-radius: 2.5px;
  background: linear-gradient(90deg, transparent 40%, #f5d27a 40% 60%, transparent 60%), linear-gradient(0deg, transparent 40%, #f5d27a 40% 60%, transparent 60%), #141d3a;
  box-shadow: 0 0 0 1px rgba(206, 223, 255, .55), 0 0 12px rgba(245, 210, 122, .45); animation: nyDrop 3.4s cubic-bezier(.3, 0, .7, .6) forwards; }
[data-theme="light"] .ny-drop, [data-bs-theme="light"] .ny-drop { box-shadow: 0 0 10px rgba(217, 154, 28, .35); }
@keyframes nyDrop { 80% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); } }
.ny-sleigh-img img { display: block; width: 100%; height: auto; }
.ny-arm { transform-box: fill-box; transform-origin: 100% 100%; animation: nyWave 1.1s ease-in-out infinite alternate; }
@keyframes nyWave { from { transform: rotate(-16deg); } to { transform: rotate(22deg); } }
.ny-trail { position: absolute; border-radius: 50%; background: radial-gradient(circle, #fff, #fde68a 45%, rgba(253, 230, 138, 0) 72%); animation: nyTrail 1.3s ease-out forwards; }
@keyframes nyTrail { to { transform: translateY(28px) scale(.2); opacity: 0; } }
[data-theme="light"] .ny-trail, [data-bs-theme="light"] .ny-trail { background: radial-gradient(circle, #fbbf24, #f59e0b 45%, rgba(245, 158, 11, 0) 72%); }
@media print { #nySleighLayer { display: none !important; } }

/* ═════════ Qorbobo sovğasi ═════════ */
#nyFireworks { z-index: 1090; }

/* Sovğa qutisi (CSS bilan çizilgan) */
.ny-box { position: relative; display: inline-block; width: 124px; height: 112px; flex-shrink: 0; }
.ny-box .ny-body { position: absolute; left: 8px; right: 8px; bottom: 0; height: 74px; border-radius: 8px 8px 12px 12px;
  background: linear-gradient(90deg, transparent 42%, #fcd34d 42% 58%, transparent 58%), linear-gradient(160deg, #ef4444, #b91c1c);
  box-shadow: inset 0 -10px 18px rgba(0, 0, 0, .22), 0 14px 26px -10px rgba(185, 28, 28, .7); }
.ny-box .ny-lid { position: absolute; left: 0; right: 0; top: 14px; height: 30px; border-radius: 8px; z-index: 2; transform-origin: 20% 100%;
  background: linear-gradient(90deg, transparent 42%, #fde68a 42% 58%, transparent 58%), linear-gradient(160deg, #f87171, #dc2626);
  box-shadow: 0 6px 10px -4px rgba(0, 0, 0, .35); }
/* Bant: ikki halqa */
.ny-box .ny-lid::before, .ny-box .ny-lid::after { content: ""; position: absolute; bottom: 100%; width: 26px; height: 20px; border: 5px solid #fcd34d; border-radius: 60% 60% 10% 60%; }
.ny-box .ny-lid::before { right: 50%; transform: rotate(-12deg); transform-origin: bottom right; }
.ny-box .ny-lid::after { left: 50%; border-radius: 60% 60% 60% 10%; transform: rotate(12deg); transform-origin: bottom left; }
.ny-box .ny-glow { position: absolute; left: 50%; top: 40px; width: 20px; height: 20px; margin: -10px; border-radius: 50%; opacity: 0;
  background: radial-gradient(circle, #fff7c2, #fbbf24 45%, transparent 70%); }
.ny-coins { position: absolute; left: 50%; top: 44px; width: 0; height: 0; }
.ny-coins i { position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; border-radius: 50%; opacity: 0;
  background: radial-gradient(circle at 35% 30%, #fff3b0, #fbbf24 55%, #b45309); box-shadow: inset 0 0 0 2px rgba(180, 83, 9, .55); }
.ny-box-sm { width: 46px; height: 42px; }
.ny-box-sm .ny-body { left: 3px; right: 3px; height: 28px; border-radius: 4px 4px 6px 6px; box-shadow: inset 0 -4px 8px rgba(0, 0, 0, .2); }
.ny-box-sm .ny-lid { top: 5px; height: 12px; border-radius: 4px; }
.ny-box-sm .ny-lid::before, .ny-box-sm .ny-lid::after { width: 11px; height: 8px; border-width: 2.5px; }

/* Kartadagi sovğa bloki */
.ny-gift { margin-top: 18px; }
.ny-gift-btn, .ny-gift-done { display: inline-flex; align-items: center; gap: 14px; padding: 12px 20px 12px 14px; border-radius: 20px; text-align: left; font-family: inherit;
  border: 1px solid color-mix(in srgb, var(--gold, #fbbf24) 55%, transparent); color: var(--ink, #eef1f7);
  background: linear-gradient(120deg, color-mix(in srgb, var(--gold, #fbbf24) 22%, transparent), color-mix(in srgb, #ef4444 14%, transparent)); }
.ny-gift[data-state="ready"] .ny-gift-done, .ny-gift[data-state="done"] .ny-gift-btn { display: none; }
.ny-gift-btn { cursor: pointer; transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), box-shadow .3s; box-shadow: 0 14px 30px -16px rgba(251, 191, 36, .9); }
.ny-gift-btn:hover { transform: translateY(-2px) scale(1.02); }
.ny-gift-btn:focus-visible { outline: 2px solid var(--gold, #fbbf24); outline-offset: 3px; }
.ny-gift-btn .ny-box { animation: nyWiggle 2.6s ease-in-out infinite; }
.ny-gift-tx { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ny-gift-tx b { font-size: 15px; font-weight: 700; }
.ny-gift-tx small { font-size: 12.5px; color: var(--muted, #8b93a7); }
.ny-gift-done > i { font-size: 24px; color: var(--gold, #fbbf24); }
.ny-gift-done { border-style: dashed; background: color-mix(in srgb, var(--solid, #10131c) 55%, transparent); }
@keyframes nyWiggle { 0%, 70%, 100% { transform: rotate(0); } 76% { transform: rotate(-9deg) scale(1.06); } 82% { transform: rotate(8deg) scale(1.06); } 88% { transform: rotate(-5deg); } 94% { transform: rotate(3deg); } }
.ny-card .ny-promo { margin-top: 12px; font-size: 13.5px; display: flex; gap: 8px; align-items: baseline; }
.ny-promo i { color: var(--gold, #fbbf24); }
.ny-prize { display: inline-flex; align-items: center; gap: 12px; margin-top: 16px; padding: 12px 18px; border-radius: 18px; color: #1a1033;
  background: linear-gradient(110deg, #fde68a, #fbbf24 40%, #f472b6); box-shadow: 0 14px 30px -14px rgba(244, 114, 182, .8); }
.ny-prize i { font-size: 24px; }
.ny-prize span { display: flex; flex-direction: column; }
.ny-prize small { font-size: 12.5px; opacity: .8; }

/* Qorbobo oynasi */
.ny-santa { position: fixed; inset: 0; z-index: 1080; display: grid; place-items: center; padding: 18px;
  background: radial-gradient(circle at 50% 40%, rgba(30, 20, 60, .55), rgba(3, 5, 12, .82)); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  animation: nyFade .35s ease both; }
.ny-santa[hidden] { display: none; }
@keyframes nyFade { from { opacity: 0; } }
.ny-santa-card { position: relative; width: min(420px, 100%); padding: 30px 26px 26px; border-radius: 28px; text-align: center; color: #f4f1ff;
  border: 1px solid rgba(253, 230, 138, .35);
  background: radial-gradient(300px 200px at 50% 0%, rgba(251, 191, 36, .22), transparent 70%), linear-gradient(170deg, #1b1740, #0d1024 70%);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .08);
  animation: nyPop .6s cubic-bezier(.34, 1.56, .64, 1) both; overflow: hidden; isolation: isolate; }
@keyframes nyPop { from { opacity: 0; transform: translateY(26px) scale(.9); } }
/* Bayram muhiti: orqada xira girlyanda çiroqlari (bokeh) va pastda qor uyumi */
.ny-santa-card::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(22px 22px at 12% 18%, rgba(255, 90, 95, .55), transparent 70%),
    radial-gradient(16px 16px at 26% 9%, rgba(255, 201, 60, .5), transparent 70%),
    radial-gradient(26px 26px at 84% 14%, rgba(61, 220, 132, .4), transparent 70%),
    radial-gradient(18px 18px at 70% 6%, rgba(76, 201, 240, .45), transparent 70%),
    radial-gradient(20px 20px at 93% 34%, rgba(179, 136, 255, .45), transparent 70%),
    radial-gradient(14px 14px at 6% 42%, rgba(255, 201, 60, .45), transparent 70%),
    radial-gradient(260px 160px at 50% 46%, rgba(255, 170, 70, .28), transparent 70%);
  filter: blur(1.5px); animation: nyBokeh 4s ease-in-out infinite alternate; }
@keyframes nyBokeh { from { opacity: .65; } to { opacity: 1; } }
.ny-santa-card::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: -34px; height: 70px; z-index: -1; pointer-events: none; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(236, 243, 255, .16), rgba(236, 243, 255, 0)); }
/* Uçgan coinlar sönganidan keyin ham joyida qoladi — bosişni tösib qölmasin */
.ny-stage, .ny-stage * { pointer-events: none; }
.ny-santa-x { position: absolute; top: 14px; right: 14px; z-index: 10; width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  color: #cfcbe6; background: rgba(255, 255, 255, .08); transition: background .2s; }
.ny-santa-x i { pointer-events: none; }
.ny-santa-x:hover { background: rgba(255, 255, 255, .18); }
.ny-santa-x:focus-visible, .ny-santa-go:focus-visible { outline: 2px solid #fde68a; outline-offset: 3px; }
.ny-stage { display: flex; align-items: flex-end; justify-content: center; gap: 2px; height: 196px; margin-bottom: 14px; }
.ny-santa-fig { line-height: 0; transform-origin: 50% 100%; animation: nySantaIn .9s cubic-bezier(.34, 1.56, .64, 1) .15s both; }
@keyframes nySantaIn { from { opacity: 0; transform: translateX(-90px) rotate(-16deg); } }
.ny-santa-svg { display: block; width: 172px; height: auto; overflow: visible; }

/* Qorbobo qismlari (partials/new_year/_santa.html). Aylaniş markazlari — viewBox birliklarida. */
.s-body { transform-origin: 120px 270px; animation: sBreath 4.2s ease-in-out infinite; }
@keyframes sBreath { 50% { transform: scale(1.012, 1.018); } }
.s-head { transform-origin: 120px 152px; animation: sHead 6.5s ease-in-out infinite; }
@keyframes sHead { 0%, 100% { transform: rotate(0deg); } 30% { transform: rotate(-2.4deg); } 65% { transform: rotate(3deg) translateY(1px); } }
.s-pom { transform-origin: 186px 70px; animation: sPom 2.6s ease-in-out infinite; }
@keyframes sPom { 50% { transform: rotate(5deg); } }
.s-beard { transform-origin: 120px 120px; animation: sBeard 4.2s ease-in-out infinite; }
@keyframes sBeard { 50% { transform: scaleY(1.02); } }
.s-brows { animation: sBrows 5.2s ease-in-out infinite; }
@keyframes sBrows { 0%, 70%, 100% { transform: translateY(0); } 78%, 88% { transform: translateY(-3px); } }
.s-eyes-open { transform-origin: 120px 97px; animation: sBlink 4.6s infinite; }
@keyframes sBlink { 0%, 91%, 100% { transform: scaleY(1); } 94.5% { transform: scaleY(.08); } }
.s-pupils { animation: sLook 7s ease-in-out infinite; }
@keyframes sLook { 0%, 40%, 100% { transform: translateX(0); } 48%, 62% { transform: translateX(2.6px); } 70%, 80% { transform: translateX(-1.6px); } }
.s-arm-r { transform-origin: 166px 178px; animation: sOffer 2.6s ease-in-out infinite; }
@keyframes sOffer { 0%, 100% { transform: rotate(3deg); } 50% { transform: rotate(-5deg); } }
.s-arm-l { transform-origin: 66px 176px; }
/* Yuz ifodasi kadrlari: tayyor — tabassum; oçilmoqda — hayrat; oçildi — qah-qaha */
.s-eyes-happy, .s-mouth-o, .s-mouth-laugh { display: none; }
.ny-santa[data-state="opening"] .s-mouth-smile, .ny-santa[data-state="open"] .s-mouth-smile, .ny-santa[data-state="open"] .s-eyes-open { display: none; }
.ny-santa[data-state="opening"] .s-mouth-o, .ny-santa[data-state="open"] .s-mouth-laugh, .ny-santa[data-state="open"] .s-eyes-happy { display: inline; }
.ny-santa[data-state="opening"] .s-brows { animation: none; transform: translateY(-5px); }
.ny-santa[data-state="opening"] .s-head { animation: sLean .5s ease-in-out infinite alternate; }
@keyframes sLean { from { transform: rotate(5deg) translate(3px, 2px); } to { transform: rotate(7deg) translate(4px, 3px); } }
.ny-santa[data-state="opening"] .s-arm-r { animation: sShake .16s linear infinite alternate; }
@keyframes sShake { from { transform: rotate(-6deg); } to { transform: rotate(2deg); } }
/* Qah-qaha: yelka va soqol silkinadi, çap qöl kötarilib silkiydi */
.ny-santa[data-state="open"] .s-body { animation: sHoHo .3s ease-in-out infinite alternate; }
@keyframes sHoHo { from { transform: translateY(0) scale(1, 1); } to { transform: translateY(-3px) scale(1.01, 1.03); } }
.ny-santa[data-state="open"] .s-head { animation: sHoHoHead .3s ease-in-out infinite alternate; }
@keyframes sHoHoHead { from { transform: rotate(-3deg) translateY(0); } to { transform: rotate(-5deg) translateY(-4px); } }
.ny-santa[data-state="open"] .s-mouth-laugh { transform-origin: 120px 132px; animation: sLaugh .3s ease-in-out infinite alternate; }
@keyframes sLaugh { from { transform: scaleY(.75); } to { transform: scaleY(1.12); } }
.ny-santa[data-state="open"] .s-arm-l { animation: sWaveUp 1.1s cubic-bezier(.34, 1.4, .64, 1) forwards, sWave .5s ease-in-out 1.1s infinite alternate; }
@keyframes sWaveUp { to { transform: rotate(142deg); } }
@keyframes sWave { from { transform: rotate(142deg); } to { transform: rotate(118deg); } }
.ny-santa[data-state="open"] .s-arm-r { animation: sOffer 1.2s ease-in-out infinite; }
@keyframes nySantaBob { 50% { transform: translateY(-5px) rotate(3deg); } }
.ny-stage .ny-box { animation: nyBoxIn .8s cubic-bezier(.34, 1.56, .64, 1) .45s both; }
@keyframes nyBoxIn { from { opacity: 0; transform: translateY(-70px) rotate(14deg) scale(.6); } }
.ny-santa h3 { margin: 0; font-size: 24px; font-weight: 700; line-height: 1.2; color: #fff; overflow-wrap: anywhere; }
.ny-santa p { margin: 10px 0 0; font-size: 15px; line-height: 1.5; color: #bdb8d8; }
.ny-santa .ny-s-error { color: #fca5a5; }
.ny-santa-go { margin-top: 20px; width: 100%; padding: 14px 18px; border: 0; border-radius: 999px; cursor: pointer; font-family: inherit; font-size: 16px; font-weight: 700; color: #2a1500;
  display: inline-flex; gap: 9px; align-items: center; justify-content: center;
  background: linear-gradient(110deg, #fde68a, #fbbf24 55%, #f59e0b); box-shadow: 0 16px 34px -14px rgba(251, 191, 36, .95); transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), filter .2s; }
.ny-santa-go:hover { transform: translateY(-2px) scale(1.02); }
.ny-santa-go:disabled { filter: saturate(.5) brightness(.85); cursor: progress; transform: none; }
.ny-won { margin-top: 8px; font: 700 clamp(44px, 12vw, 64px)/1 'JetBrains Mono', ui-monospace, monospace; font-variant-numeric: tabular-nums;
  background: linear-gradient(110deg, #fde68a, #fbbf24 45%, #f472b6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ny-won span { margin-left: 10px; font-size: .38em; letter-spacing: .08em; text-transform: uppercase; }

/* Holatlar: ready → opening → open */
.ny-santa[data-state="ready"] .ny-s-open, .ny-santa[data-state="opening"] .ny-s-open, .ny-santa[data-state="open"] .ny-s-ready { display: none; }
.ny-santa[data-state="opening"] .ny-stage .ny-box { animation: nyShake .5s ease-in-out infinite; }
@keyframes nyShake { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-7deg) translateY(-3px); } 40% { transform: rotate(6deg); } 60% { transform: rotate(-5deg) translateY(-2px); } 80% { transform: rotate(4deg); } }
.ny-santa[data-state="open"] .ny-stage .ny-box { animation: none; }
.ny-santa[data-state="open"] .ny-lid { animation: nyLid .9s cubic-bezier(.22, 1, .36, 1) forwards; }
@keyframes nyLid { to { transform: translate(-46px, -78px) rotate(-38deg); opacity: 0; } }
.ny-santa[data-state="open"] .ny-glow { animation: nyGlow 1.2s ease-out forwards; }
@keyframes nyGlow { 0% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(16); } }
.ny-santa[data-state="open"] .ny-coins i { animation: nyCoin 1.25s cubic-bezier(.2, .8, .3, 1) both; animation-delay: calc(var(--n) * 45ms); }
@keyframes nyCoin { 0% { opacity: 0; transform: translate(0, 0) scale(.4); } 15% { opacity: 1; } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--x), var(--y)) scale(1) rotate(260deg); } }
.ny-coins i:nth-child(1) { --n: 0; --x: -118px; --y: -86px; } .ny-coins i:nth-child(2) { --n: 1; --x: 104px; --y: -98px; }
.ny-coins i:nth-child(3) { --n: 2; --x: -62px; --y: -128px; } .ny-coins i:nth-child(4) { --n: 3; --x: 58px; --y: -136px; }
.ny-coins i:nth-child(5) { --n: 4; --x: -146px; --y: -30px; } .ny-coins i:nth-child(6) { --n: 5; --x: 140px; --y: -40px; }
.ny-coins i:nth-child(7) { --n: 6; --x: -12px; --y: -150px; } .ny-coins i:nth-child(8) { --n: 7; --x: 92px; --y: -52px; }
.ny-coins i:nth-child(9) { --n: 8; --x: -96px; --y: -44px; } .ny-coins i:nth-child(10) { --n: 9; --x: 26px; --y: -108px; }
.ny-coins i:nth-child(11) { --n: 10; --x: -34px; --y: -92px; } .ny-coins i:nth-child(12) { --n: 11; --x: 126px; --y: -112px; }
.ny-santa[data-state="open"] .ny-won { animation: nyPop .7s cubic-bezier(.34, 1.56, .64, 1) .25s both; }
/* 1-yanvar: oltin quti */
.ny-santa[data-kind="new_year"] .ny-body, .ny-gift[data-kind="new_year"] .ny-body { background: linear-gradient(90deg, transparent 42%, #ef4444 42% 58%, transparent 58%), linear-gradient(160deg, #fde68a, #f59e0b); box-shadow: inset 0 -10px 18px rgba(120, 53, 15, .3), 0 14px 30px -8px rgba(251, 191, 36, .8); }
.ny-santa[data-kind="new_year"] .ny-lid, .ny-gift[data-kind="new_year"] .ny-lid { background: linear-gradient(90deg, transparent 42%, #f87171 42% 58%, transparent 58%), linear-gradient(160deg, #fef3c7, #fbbf24); }
.ny-santa[data-kind="new_year"] .ny-lid::before, .ny-santa[data-kind="new_year"] .ny-lid::after,
.ny-gift[data-kind="new_year"] .ny-lid::before, .ny-gift[data-kind="new_year"] .ny-lid::after { border-color: #ef4444; }

@media (max-width: 480px) {
  .ny-gift-btn, .ny-gift-done { display: flex; width: 100%; }
  .ny-gift[data-state="ready"] .ny-gift-done, .ny-gift[data-state="done"] .ny-gift-btn { display: none; }
  .ny-santa-card { padding: 26px 18px 20px; }
  .ny-santa-svg { width: 138px; }
  .ny-stage { height: 160px; }
  .ny-stage .ny-box { zoom: .82; margin-left: -6px; }
}
@media (prefers-reduced-motion: reduce) {
  .ny-santa, .ny-santa-card, .ny-santa-fig, .ny-stage .ny-box, .ny-gift-btn .ny-box, .ny-santa[data-state] .ny-won { animation: none !important; }
  .ny-santa[data-state="open"] .ny-lid { animation: none; opacity: 0; }
  .ny-santa[data-state="open"] .ny-glow, .ny-santa[data-state="open"] .ny-coins i { animation: none; }
  .ny-santa-svg * { animation: none !important; }
}

/* ═════════ Qişki manzara: qor uyumi ustidagi bolalar, qor odam, arça (JS yaratadi) ═════════ */
#nyScene { position: fixed; inset: 0; z-index: 41; pointer-events: none; overflow: hidden; }
#nyScene * { pointer-events: none; }
.ny-actor { position: absolute; left: 0; top: 0; will-change: transform; }
.ny-actor svg { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 3px 4px rgba(10, 20, 40, .25)); }
.ny-face-left svg { transform: scaleX(-1); }
.ny-actor svg * { transform-box: view-box; }
/* Bola: tinç turganda yengil tebranadi, kiprik qoqadi */
.ny-kid .k-body { transform-origin: 30px 86px; animation: kIdle 1.8s ease-in-out infinite; }
@keyframes kIdle { 50% { transform: scale(1.01, .985); } }
.ny-kid-small .k-body { animation: kHop 1.1s ease-in-out infinite; }
@keyframes kHop { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-7px); } }
.ny-kid .k-eye { transform-origin: 30px 21.5px; animation: kBlink 3.8s infinite; }
@keyframes kBlink { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }
.ny-kid .k-oh { display: none; }
.ny-kid .k-arm { transform-origin: 36px 40px; }
.ny-kid .k-arm-b { transform-origin: 24px 40px; }
.ny-kid .k-head { transform-origin: 30px 31px; }
.ny-kid .k-scarf { transform-origin: 33px 37px; animation: kScarf 1.4s ease-in-out infinite alternate; }
@keyframes kScarf { from { transform: rotate(-6deg); } to { transform: rotate(10deg); } }
.ny-kid .k-pom { transform-origin: 30px 8px; animation: kScarf 1.1s ease-in-out infinite alternate; }
/* Qor otiş: qöl orqaga, keyin oldinga siltaydi; qor koptok qöldan uçadi */
.ny-kid.throw .k-arm { animation: kThrow .75s cubic-bezier(.3, .7, .4, 1) forwards; }
@keyframes kThrow { 0% { transform: rotate(0); } 45% { transform: rotate(125deg); } 62% { transform: rotate(-115deg); } 100% { transform: rotate(-20deg); } }
.ny-kid.throw .k-ball { animation: kBall .75s steps(1) forwards; }
@keyframes kBall { 52% { opacity: 1; } 53%, 100% { opacity: 0; } }
.ny-kid.throw .k-body { animation: kLean .75s ease-in-out; }
@keyframes kLean { 40% { transform: rotate(-6deg); } 65% { transform: rotate(7deg); } }
/* Zarba: orqaga silkinadi, oğzi "o" böladi */
.ny-kid.hit .k-body { animation: kHit .6s ease-out; }
@keyframes kHit { 20% { transform: rotate(-11deg) translateX(-3px); } 45% { transform: rotate(6deg); } 70% { transform: rotate(-3deg); } }
.ny-kid.hit .k-smile { display: none; }
.ny-kid.hit .k-oh { display: inline; }
/* Qöl silkiş (çana tepadan ötayotganda) */
.ny-kid.wave .k-arm { animation: kWave .45s ease-in-out infinite alternate; }
@keyframes kWave { from { transform: rotate(-165deg); } to { transform: rotate(-125deg); } }
.ny-kid.wave .k-head { transform: rotate(-12deg); }
/* Xursandçilik: sakraydi, ikki qöli tepada */
.ny-kid.cheer .k-body { animation: kJump .5s cubic-bezier(.3, .8, .4, 1) infinite; }
@keyframes kJump { 0%, 100% { transform: translateY(0) scale(1.03, .96); } 45% { transform: translateY(-16px) scale(.98, 1.03); } }
.ny-kid.cheer .k-arm { animation: kWave .25s ease-in-out infinite alternate; }
.ny-kid.cheer .k-arm-b { animation: kArmUp .25s ease-in-out infinite alternate; }
@keyframes kArmUp { from { transform: rotate(150deg); } to { transform: rotate(125deg); } }
.ny-kid.cheer .k-ball, .ny-kid.wave .k-ball { opacity: 0; }
/* Qor odam: şarfi hilpiraydi, sovğa tuşganda qöllarini silkitadi */
.ny-snowman .sm-scarf { transform-origin: 41px 40px; animation: kScarf 1.6s ease-in-out infinite alternate; }
.ny-snowman .sm-arm-l { transform-origin: 20px 46px; }
.ny-snowman .sm-arm-r { transform-origin: 50px 46px; }
.ny-snowman.cheer .sm-arm-l { animation: smArmL .3s ease-in-out infinite alternate; }
.ny-snowman.cheer .sm-arm-r { animation: smArmR .3s ease-in-out infinite alternate; }
@keyframes smArmL { to { transform: rotate(28deg); } }
@keyframes smArmR { to { transform: rotate(-28deg); } }
/* Arça: çiroqlar navbat bilan yonadi, yulduz nur soçadi */
.ny-tree .tr-light { animation: trBlink 1.6s ease-in-out infinite; animation-delay: calc(var(--i) * -.35s); }
@keyframes trBlink { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.ny-tree .tr-star { transform-origin: 30px 11px; animation: trStar 2.4s ease-in-out infinite; }
@keyframes trStar { 50% { transform: scale(1.18); } }
/* Uçayotgan qor koptok, qor çanği, uçqun, yurak */
.ny-ball { position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #e3ebf7 60%, #b9c8e0); box-shadow: 0 2px 4px rgba(20, 40, 80, .3); }
.ny-puff { position: absolute; width: 7px; height: 7px; margin: -3.5px; border-radius: 50%; background: #fff; box-shadow: 0 0 6px rgba(255, 255, 255, .8);
  animation: nyBurst .55s ease-out forwards; }
.ny-spark { position: absolute; width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: radial-gradient(circle, #fff, #ffd76a 50%, rgba(255, 215, 106, 0) 75%);
  animation: nyBurst .9s ease-out forwards; }
@keyframes nyBurst { from { transform: translate(0, 0) scale(1.2); opacity: 1; } to { transform: translate(var(--x), var(--y)) scale(.3); opacity: 0; } }
.ny-heart { position: absolute; font-style: normal; font-size: 18px; line-height: 1; color: #ff4d6d; text-shadow: 0 0 8px rgba(255, 77, 109, .6);
  opacity: 0; animation: nyHeart 1.8s ease-out forwards; }
@keyframes nyHeart { 0% { opacity: 0; transform: translate(0, 0) scale(.4); } 20% { opacity: 1; transform: translate(0, -10px) scale(1.1); } 100% { opacity: 0; transform: translate(var(--x), -80px) scale(.8); } }
/* Qorbobo taşlagan sovğa qutilari */
.ny-gbox { position: absolute; left: 0; top: 0; border-radius: 3px; will-change: transform; transition: opacity .9s;
  box-shadow: inset 0 -3px 5px rgba(0, 0, 0, .25), 0 3px 6px rgba(0, 0, 0, .25), 0 0 12px rgba(255, 215, 120, .45); }
.ny-gbox::before { content: ""; position: absolute; left: 50%; top: -5px; width: 12px; height: 7px; margin-left: -6px; border: 2.5px solid var(--rib); border-bottom: 0; border-radius: 50% 50% 0 0; }
.ny-gbox-0 { --rib: #ffd34d; background: linear-gradient(90deg, transparent 40%, #ffd34d 40% 60%, transparent 60%), linear-gradient(160deg, #ff4d55, #b3121f); }
.ny-gbox-1 { --rib: #ff4d55; background: linear-gradient(90deg, transparent 40%, #ff4d55 40% 60%, transparent 60%), linear-gradient(160deg, #3ddc84, #14703f); }
.ny-gbox-2 { --rib: #fff3b0; background: linear-gradient(90deg, transparent 40%, #fff3b0 40% 60%, transparent 60%), linear-gradient(160deg, #5aa7ff, #1f4fb3); }
.ny-gbox-3 { --rib: #ff4d55; background: linear-gradient(90deg, transparent 40%, #ff4d55 40% 60%, transparent 60%), linear-gradient(160deg, #ffe08a, #d99a1c); }
.ny-gbox.ny-gone { opacity: 0; }
@media print { #nyScene { display: none !important; } }

/* Tayyor Qorbobo portreti (static/effects/santa-portrait.*) qöyilganda */
.ny-santa-photo { display: block; width: 180px; height: 190px; object-fit: contain; object-position: bottom; transform-origin: 50% 100%;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .5)); animation: sBreath 4.2s ease-in-out infinite; }
.ny-santa[data-state="opening"] .ny-santa-photo { animation: sLean .5s ease-in-out infinite alternate; }
.ny-santa[data-state="open"] .ny-santa-photo { animation: sHoHo .3s ease-in-out infinite alternate; }
@media (max-width: 480px) { .ny-santa-photo { width: 140px; height: 150px; } }

/* Tayyor çana rasmi: yengil tebraniş va iliq şu'la (qorong'i fonda körinib tursin) */
.ny-sleigh-img img { animation: nyRig 1.4s ease-in-out infinite;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .35)) drop-shadow(0 0 10px rgba(255, 214, 140, .35)); }
[data-theme="light"] .ny-sleigh-img img, [data-bs-theme="light"] .ny-sleigh-img img { filter: drop-shadow(0 8px 12px rgba(30, 40, 70, .28)); }

/* ═════════ Jonlantirilgan haqiqiy çana surati ═════════ */
.ny-sleigh-cut { position: relative; width: 100%; aspect-ratio: 612 / 251;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .35)) drop-shadow(0 0 10px rgba(255, 214, 140, .3)); }
[data-theme="light"] .ny-sleigh-cut, [data-bs-theme="light"] .ny-sleigh-cut { filter: drop-shadow(0 8px 12px rgba(30, 40, 70, .28)); }
.ny-cut { position: absolute; top: 0; height: 100%; background-repeat: no-repeat; will-change: transform; }
/* Buğular: galop — oldinga intilib kötariladi, keyin yerga "tayanadi"; har juft öz kechikişi bilan (old tomondan orqaga to'lqin) */
.ny-cut-deer { transform-origin: 50% 85%; animation: nyGallopCut .54s cubic-bezier(.45, 0, .55, 1) infinite; animation-delay: var(--d, 0s); }
@keyframes nyGallopCut {
  0%, 100% { transform: translateY(2%) rotate(1.6deg); }
  35% { transform: translateY(-4.5%) rotate(-2.6deg); }
  65% { transform: translateY(-1%) rotate(.4deg); } }
/* Çana: buğular tortişiga qarab tebranib boradi */
.ny-cut-sleigh { transform-origin: 85% 75%; animation: nySleighPull 1.08s ease-in-out infinite; }
@keyframes nySleighPull { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-2.2%) rotate(-1.6deg); } }

/* ═════════ Haqiqiy fotosuratdagi bolalar va qor odam ═════════ */
.ny-photo img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; transform-origin: 50% 100%;
  filter: drop-shadow(0 4px 5px rgba(10, 20, 40, .35)); animation: phIdle 2.6s ease-in-out infinite; -webkit-user-drag: none; }
.ny-photo { --s: 1; }
.ny-face-l { --s: -1; }
@keyframes phIdle { 50% { transform: scale(1.012, .99) rotate(calc(var(--s) * .8deg)); } }
/* Qor otiş: orqaga egilib kuç yiğadi, keyin oldinga siltanadi */
.ny-photo.throw img { animation: phThrow .75s cubic-bezier(.3, .7, .4, 1); }
@keyframes phThrow { 0% { transform: none; } 42% { transform: rotate(calc(var(--s) * -10deg)) translateX(calc(var(--s) * -3px)); }
  62% { transform: rotate(calc(var(--s) * 12deg)) translateX(calc(var(--s) * 4px)) translateY(-3px); } 100% { transform: none; } }
/* Qor tegdi: silkinadi */
.ny-photo.hit img { animation: phHit .6s ease-out; }
@keyframes phHit { 15% { transform: rotate(calc(var(--s) * -9deg)) translateX(calc(var(--s) * -5px)); } 40% { transform: rotate(calc(var(--s) * 5deg)); }
  65% { transform: rotate(calc(var(--s) * -3deg)); } 100% { transform: none; } }
/* Çanaga qöl silkiş: u yoq-bu yoqqa çayqaladi, oyoq uçida kötariladi */
.ny-photo.wave img { animation: phWave .5s ease-in-out infinite alternate; }
@keyframes phWave { from { transform: rotate(-4deg) translateY(0); } to { transform: rotate(4deg) translateY(-5px); } }
/* Sovğa tuşdi: sakraydi */
.ny-photo.cheer img { animation: phJump .52s cubic-bezier(.3, .8, .4, 1) infinite; }
@keyframes phJump { 0%, 100% { transform: translateY(0) scale(1.04, .95); } 45% { transform: translateY(-22px) scale(.97, 1.04); } }
.ny-snowman.cheer img { animation: phWobble .45s ease-in-out infinite alternate; }
@keyframes phWobble { from { transform: rotate(-5deg); } to { transform: rotate(5deg); } }
@media (prefers-reduced-motion: reduce) { .ny-cut, .ny-photo img { animation: none !important; } }

/* ═════════ Çana bölaklari: guruhlar (juft buğu / çana) va ular içidagi qismlar ═════════ */
.ny-cut-group { position: absolute; top: 0; height: 100%; will-change: transform; }
.ny-cut-group .ny-cut { position: absolute; background-repeat: no-repeat; }
/* Galop: oyoqlar son böğimidan (bölak tepasi) silkinadi — old oyoqlar oldinga uzatilganda orqa oyoqlar orqaga itaradi */
.ny-leg-front, .ny-leg-hind { transform-origin: 50% 0; will-change: transform; animation: .54s cubic-bezier(.45, 0, .55, 1) infinite; animation-delay: var(--d, 0s); }
.ny-leg-front { animation-name: nyLegFront; }
.ny-leg-hind { animation-name: nyLegHind; }
@keyframes nyLegFront { 0%, 100% { transform: rotate(14deg); } 35% { transform: rotate(-16deg) scaleY(.96); } 65% { transform: rotate(-4deg); } }
@keyframes nyLegHind { 0%, 100% { transform: rotate(-12deg) scaleY(.97); } 35% { transform: rotate(13deg); } 65% { transform: rotate(4deg); } }
/* Buğu boşi bilan böyni çopiş maromida biroz "egiladi" */
.ny-deer-top { transform-origin: 40% 90%; animation: nyDeerNod .54s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes nyDeerNod { 0%, 100% { transform: rotate(.6deg); } 40% { transform: rotate(-1.4deg); } }
/* Qorbobo qöl silkiydi: yelkasi (bölakning öng-past burçagi) atrofida */
.ny-cut-hand { transform-origin: 92% 96%; animation: nySantaWave .7s ease-in-out infinite alternate; }
@keyframes nySantaWave { from { transform: rotate(-13deg); } to { transform: rotate(9deg); } }

/* ═════════ Foto bolalar: oyoq ostidagi soya, yuriş, qor kuraş ═════════ */
.ny-photo::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: -3px; height: 9px; border-radius: 50%; z-index: -1;
  background: radial-gradient(closest-side, rgba(20, 35, 70, .45), rgba(20, 35, 70, 0)); }
.ny-photo.cheer::after { animation: phShadow .52s cubic-bezier(.3, .8, .4, 1) infinite; }
@keyframes phShadow { 45% { transform: scale(.6); opacity: .5; } }
.ny-photo.walk:not(.throw):not(.hit) img { animation: phWalk .34s ease-in-out infinite alternate; }
@keyframes phWalk { from { transform: translateY(0) rotate(-2.5deg); } to { transform: translateY(-4px) rotate(2.5deg); } }
.ny-photo.scoop img { animation: phScoop .9s ease-in-out; }
@keyframes phScoop { 0%, 100% { transform: none; } 30% { transform: rotate(calc(var(--s) * 7deg)) scaleY(.94); } 55% { transform: rotate(calc(var(--s) * -4deg)) translateY(-4px); } }
/* Çana bölaklari harakati kamaytirilganda töxtaydi */
@media (prefers-reduced-motion: reduce) { .ny-cut-group, .ny-cut-group .ny-cut { animation: none !important; } }

/* Tuzatiş: oyoqlar aylantirilmaydi, qiyşaytiriladi (yuqori qirra joyida qoladi — bölaklar orasida böşliq oçilmaydi),
   juftlar orasidagi farq kamaytirildi — kesik çiziqlar sezilmaydi */
.ny-leg-front, .ny-leg-hind { transform-origin: 50% 0; }
@keyframes nyLegFront { 0%, 100% { transform: skewX(-15deg); } 40% { transform: skewX(13deg) scaleY(.97); } 70% { transform: skewX(2deg); } }
@keyframes nyLegHind { 0%, 100% { transform: skewX(12deg) scaleY(.97); } 40% { transform: skewX(-14deg); } 70% { transform: skewX(-3deg); } }
@keyframes nyGallopCut { 0%, 100% { transform: translateY(1.2%); } 38% { transform: translateY(-2.8%); } 68% { transform: translateY(-.4%); } }
.ny-deer-top { animation-name: nyDeerNodSoft; }
@keyframes nyDeerNodSoft { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-.8%); } }
/* Bölaklar alohida soya olmasin — soya butun çanaga bir marta */
.ny-sleigh-cut { filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .35)); }

/* ═════════ It, tyubing, çetga qoçiş ═════════ */
/* It çopganda: galop — oldinga-orqaga tebranib sakraydi */
.ny-dog.run img { animation: dogRun .36s ease-in-out infinite; }
@keyframes dogRun { 0%, 100% { transform: translateY(0) rotate(2deg) scaleY(.97); } 50% { transform: translateY(-6px) rotate(-4deg) scaleY(1.02); } }
.ny-dog:not(.run) img { animation: dogPant .5s ease-in-out infinite alternate; }
@keyframes dogPant { to { transform: scale(1.015, .985); } }
.ny-dog.cheer img, .ny-dog.cheer::after { animation: none; }
/* Koptok kelayotganda bola çetga egilib, çönqayib qoçadi */
.ny-photo.duck img { animation: phDuck .7s cubic-bezier(.3, .8, .4, 1); }
@keyframes phDuck { 0%, 100% { transform: none; } 30%, 60% { transform: translateX(calc(var(--s) * -10px)) rotate(calc(var(--s) * -14deg)) scaleY(.86); } }
/* Tyubing: qizça qöllarini kötarib quvonadi */
.ny-kid-tube img { animation: tubeJoy .6s ease-in-out infinite alternate; }
@keyframes tubeJoy { to { transform: scale(1.02, .98) rotate(-2deg); } }
.ny-kid-tube::after { bottom: 2px; }
