/* =====================================================================
   Erkatoy — Qishki sarguzasht: dizayn tizimi (asos + "Qish" mavzusi)
   - Tokenlar :root da (ranglar, bo'shliq, radius, soya, z-index, harakat).
   - O'yin sahifasi (body.app): butun sahifa bo'ylab qishki manzara — .winter-bg
     (osmon, yulduzlar, muz naqshi, archalar, qor tepaliklari, mayin qor).
     U position:fixed va faqat transform/opacity bilan harakatlanadi — scroll arzon.
   - Admin (body.admin) o'z yorug' fonida qoladi; bu faylning komponentlaridan foydalanadi.
   - "Yangi yil finali" — alohida fayl: css/themes/newyear-final.css.
   - Animatsiyalar prefers-reduced-motion, [data-motion="off"] va sekin qurilmada o'chadi.
   - Tashqi rasm/shrift/kutubxona yo'q — bezaklar CSS va inline SVG.
   ===================================================================== */

:root {
  /* Qishki palitra (brend ko'rsatmasi asosida, kontrast bo'yicha aniqlangan) */
  --navy-950: #081a33;
  --navy-900: #0b2142;
  --navy-800: #102d54;
  --winter-700: #1f639b;
  --winter-600: #2a74b0;
  --sky-400: #61b8e8;
  --sky-200: #bfe4f8;
  --ice-25: #f7fbff;
  --ice-50: #eef8fe;
  --ice-100: #e1f0fa;
  --ice-200: #c6e0f5;
  --ice-300: #9fcbec;
  --ice-500: #3d8fcb;
  --ice-700: #1d5f91;
  --ice-800: #154a73;
  --ice-900: #10304a;

  /* Erkatoy iliq to'q sariq aksent (tulki), Qorbobo qizil, Qorqiz ko'k, oltin */
  --fox-50: #fff6ec;
  --fox-100: #ffe8cf;
  --fox-300: #ffbe73;
  --fox-400: #f9a23f;
  --fox-500: #f38b23;
  --fox-600: #d9700a;
  --fox-ink: #2a1300;
  --santa-red: #d63a2f;
  --gold: #ffd166;

  --ok-bg: #e5f5ec;   --ok-ink: #0f5e3b;   --ok-line: #8fd3b0;
  --warn-bg: #fff4e0; --warn-ink: #7a3d00; --warn-line: #f6c27a;
  --bad-bg: #fdecea;  --bad-ink: #8f2316;  --bad-line: #f2a99f;
  --rev-bg: #f1ebfb;  --rev-ink: #563590;  --rev-line: #c9b5ee;
  --mute-bg: #eef1f5; --mute-ink: #4a5361; --mute-line: #d3d9e1;

  --text: #10304a;
  --text-soft: #3f5a72;
  --on-dark: #ffffff;
  --on-dark-soft: #d3e9fa;
  --surface: #ffffff;
  --surface-2: var(--ice-25);
  --glass: rgba(255, 255, 255, 0.9);
  --glass-line: rgba(255, 255, 255, 0.75);
  --line: var(--ice-200);
  --bg: linear-gradient(180deg, var(--ice-50) 0%, #f9fcff 45%, var(--ice-100) 100%);
  --hero-ink: #ffffff;
  --accent: var(--fox-500);
  --accent-2: var(--fox-300);
  --accent-ink: var(--fox-ink);
  --focus: #ffd166;
  --focus-on-light: #0a66c2;

  /* Bo'shliq shkalasi */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px;
  --radius-s: 10px;
  --radius: 18px;
  --radius-l: 28px;
  --shadow-sm: 0 1px 2px rgba(13, 47, 76, 0.06), 0 2px 8px rgba(13, 47, 76, 0.05);
  --shadow: 0 8px 26px rgba(13, 47, 76, 0.08), 0 1px 3px rgba(13, 47, 76, 0.06);
  --shadow-lift: 0 16px 38px rgba(13, 47, 76, 0.16);
  --shadow-glass: 0 14px 34px rgba(3, 18, 38, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --z-header: 40; --z-nav: 40; --z-fab: 60; --z-dialog: 90; --z-toast: 100;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --dur: 0.25s;

  --font: "Nunito", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-xs: 0.8125rem;
  --fs-s: 0.9375rem;
  --fs-m: 1rem;
  --fs-l: clamp(1.125rem, 1rem + 0.6vw, 1.375rem);
  --fs-xl: clamp(1.375rem, 1.1rem + 1.4vw, 2rem);
  --fs-xxl: clamp(2rem, 1.2rem + 3.4vw, 3.6rem);

  --gap: clamp(12px, 2.5vw, 22px);
  --page-max: 1240px;
  --tap: 48px;
  --nav-h: 66px;

  color-scheme: light;
}

/* ---------- Asos ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh;
  font-family: var(--font); font-size: var(--fs-m); line-height: 1.55;
  color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.01em; }
p { margin: 0 0 0.75em; }
a { color: var(--ice-700); text-underline-offset: 3px; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus-on-light); outline-offset: 2px; border-radius: 6px; }
body.app :focus-visible { outline-color: var(--focus); }
body.app .card :focus-visible, body.app dialog :focus-visible { outline-color: var(--focus-on-light); }
[hidden] { display: none !important; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--surface); color: var(--text); padding: 10px 16px; border-radius: var(--radius-s); box-shadow: var(--shadow);
}
.skip-link:focus { top: 12px; }

/* =====================================================================
   QISHKI MANZARA (faqat o'yin sahifasi)
   ===================================================================== */
body.app { background: var(--navy-800); color: var(--on-dark); }
/* To'q osmon ustidagi ikkinchi darajali matn va havolalar — och; o'z oq foni bor elementlar ichida — to'q (kontrast >= 4.5). */
body.app main .muted { color: var(--on-dark-soft); }
body.app main a:not([class]) { color: #fff; }
body.app main :is(.card, .stat, .board-row, .day-card, .badge-card, .rules, .notice, .podium-item, .check, .option, .wish, .letter-paper) .muted { color: var(--text-soft); }
body.app main :is(.card, .stat, .board-row, .rules, .notice, .letter-paper, .check) a:not([class]) { color: var(--ice-700); }
.winter-bg {
  position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(70% 55% at 12% -5%, rgba(97, 184, 232, 0.38) 0%, rgba(97, 184, 232, 0) 62%),
    radial-gradient(45% 40% at 92% 8%, rgba(243, 139, 35, 0.14) 0%, rgba(243, 139, 35, 0) 60%),
    linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 34%, #17497c 68%, var(--winter-600) 100%);
  transform: translateZ(0);
}
.winter-bg > span { position: absolute; left: 0; right: 0; display: block; }
/* Mayin yulduzlar — faqat osmonning yuqori qismida */
.wb-stars {
  top: 0; height: 52%;
  background-image:
    radial-gradient(1.4px 1.4px at 8% 14%, #fff 50%, transparent 52%),
    radial-gradient(1px 1px at 19% 32%, #fff 50%, transparent 52%),
    radial-gradient(1.6px 1.6px at 31% 9%, #fff 50%, transparent 52%),
    radial-gradient(1px 1px at 44% 26%, #fff 50%, transparent 52%),
    radial-gradient(1.8px 1.8px at 57% 12%, #ffe9b0 50%, transparent 52%),
    radial-gradient(1px 1px at 66% 38%, #fff 50%, transparent 52%),
    radial-gradient(1.4px 1.4px at 78% 18%, #fff 50%, transparent 52%),
    radial-gradient(1px 1px at 88% 34%, #fff 50%, transparent 52%),
    radial-gradient(1.6px 1.6px at 95% 8%, #fff 50%, transparent 52%);
  background-size: 100% 100%; opacity: 0.8;
  animation: twinkle 5s ease-in-out infinite alternate;
}
/* Nozik muz naqshi (qor parchasi uchqunlari) */
.wb-ice {
  top: 0; bottom: 0; opacity: 0.07;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1.2' stroke-linecap='round'%3E%3Cpath d='M40 20v40M22 30l36 20M22 50l36-20M34 22l6 6 6-6M34 58l6-6 6 6'/%3E%3Cpath d='M135 110v28M122 117l26 14M122 131l26-14'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 180px 180px repeat;
}
/* Uzoqdagi qor bosgan archalar silueti (ikki qatlam) */
.wb-trees-far {
  bottom: clamp(48px, 9vh, 96px); height: clamp(70px, 14vh, 150px); opacity: 0.55;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 150' preserveAspectRatio='none'%3E%3Cg fill='%23356d9e'%3E%3Cpath d='M18 150 40 70 62 150Z'/%3E%3Cpath d='M70 150 96 52 122 150Z'/%3E%3Cpath d='M130 150 150 88 170 150Z'/%3E%3Cpath d='M178 150 206 40 234 150Z'/%3E%3Cpath d='M240 150 262 80 284 150Z'/%3E%3Cpath d='M292 150 318 58 344 150Z'/%3E%3Cpath d='M350 150 372 92 394 150Z'/%3E%3C/g%3E%3Cg fill='%23dff1ff' opacity='.7'%3E%3Cpath d='M36 84 40 70 44 84Z'/%3E%3Cpath d='M91 70 96 52 101 70Z'/%3E%3Cpath d='M201 58 206 40 211 58Z'/%3E%3Cpath d='M313 75 318 58 323 75Z'/%3E%3C/g%3E%3C/svg%3E") bottom / 400px 100% repeat-x;
}
.wb-trees-near {
  bottom: clamp(30px, 6vh, 64px); height: clamp(80px, 16vh, 170px); opacity: 0.9;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 520 170' preserveAspectRatio='none'%3E%3Cg fill='%23123a66'%3E%3Cpath d='M30 170 62 60 94 170Z'/%3E%3Cpath d='M44 118 62 40 80 118Z'/%3E%3Cpath d='M150 170 176 90 202 170Z'/%3E%3Cpath d='M270 170 306 46 342 170Z'/%3E%3Cpath d='M286 112 306 24 326 112Z'/%3E%3Cpath d='M420 170 448 80 476 170Z'/%3E%3C/g%3E%3Cg fill='%23e8f7ff'%3E%3Cpath d='M55 64 62 40 69 64Z'/%3E%3Cpath d='M171 104 176 90 181 104Z'/%3E%3Cpath d='M298 50 306 24 314 50Z'/%3E%3Cpath d='M442 98 448 80 454 98Z'/%3E%3C/g%3E%3C/svg%3E") bottom / 520px 100% repeat-x;
}
/* Yumshoq qor qatlamlari va tepaliklar */
.wb-hills {
  bottom: 0; height: clamp(60px, 11vh, 120px);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0 46 C160 10 330 70 520 40 S860 8 1040 44 S1160 60 1200 40 V120 H0Z' fill='%23cfe9fb' fill-opacity='.55'/%3E%3Cpath d='M0 78 C220 46 400 98 640 72 S1010 52 1200 76 V120 H0Z' fill='%23eaf7ff' fill-opacity='.85'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
}
/* Mayin qor yog'ishi: ikki qatlam, faqat transform */
.wb-snow { top: -100%; height: 200%; }
.wb-snow::before, .wb-snow::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(2px 2px at 30px 40px, rgba(255, 255, 255, 0.95) 50%, transparent 52%),
    radial-gradient(3px 3px at 110px 140px, rgba(255, 255, 255, 0.85) 50%, transparent 52%),
    radial-gradient(2px 2px at 190px 70px, rgba(255, 255, 255, 0.9) 50%, transparent 52%),
    radial-gradient(2.5px 2.5px at 260px 190px, rgba(255, 255, 255, 0.8) 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 320px 20px, rgba(255, 255, 255, 0.9) 50%, transparent 52%);
  background-size: 360px 240px;
  animation: snowfall 22s linear infinite; will-change: transform;
}
.wb-snow::after { background-size: 240px 170px; opacity: 0.55; animation-duration: 34s; }
@keyframes snowfall { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-30px, 50%, 0); } }
@keyframes twinkle { from { opacity: 0.45; } to { opacity: 0.95; } }
[data-snow="off"] .wb-snow, [data-motion="off"] .wb-snow { display: none; }
/* Kadr himoyasi (app.js snowFpsGuard): sekin chiziladigan qurilmada qor va yulduzlar HARAKATSIZ (zarralar joyida qoladi) */
[data-snow-perf="off"] .wb-snow::before, [data-snow-perf="off"] .wb-snow::after, [data-snow-perf="off"] .wb-stars { animation: none !important; will-change: auto; }

/* ---------- Sarlavha (header) ---------- */
.app-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgba(255, 255, 255, 0.97); border-bottom: 1px solid var(--line);
}
body.app .app-header {
  background: rgba(8, 26, 51, 0.82); border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
@supports (backdrop-filter: blur(1px)) {
  body.app .app-header { background: rgba(8, 26, 51, 0.6); backdrop-filter: blur(14px) saturate(140%); }
  [data-motion="off"] body.app .app-header, body.app[data-lowend] .app-header { backdrop-filter: none; background: rgba(8, 26, 51, 0.9); }
}
.header-inner { max-width: var(--page-max); margin: 0 auto; padding: 8px 16px; display: flex; align-items: center; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 900; letter-spacing: -0.01em; flex: none; }
body.app .brand { color: #fff; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; flex: none;
  background: linear-gradient(145deg, var(--fox-300), var(--fox-500) 55%, var(--fox-600)); color: #fff;
  box-shadow: 0 4px 14px rgba(217, 112, 10, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.brand-mark svg { width: 24px; height: 24px; }
.brand small { display: block; font-weight: 700; font-size: var(--fs-xs); color: var(--text-soft); letter-spacing: 0; }
body.app .brand small { color: var(--on-dark-soft); }
.top-nav { margin-left: auto; display: flex; gap: 2px; }
.top-nav a {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 6px 12px;
  border-radius: 999px; text-decoration: none; color: var(--text-soft); font-weight: 800; font-size: var(--fs-s);
  transition: background-color var(--dur) ease, color var(--dur) ease;
}
.top-nav a svg { width: 18px; height: 18px; }
body.app .top-nav a { color: #d8ecfd; }
body.app .top-nav a:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
body.app .top-nav a[aria-current="page"] { background: #fff; color: var(--navy-800); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18); }
.header-tools { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--ice-800);
  transition: transform 0.15s var(--ease), background-color var(--dur) ease;
}
.icon-btn:active { transform: scale(0.95); }
.icon-btn svg { width: 20px; height: 20px; }
body.app .icon-btn { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.22); color: #fff; }
body.app .icon-btn:hover { background: rgba(255, 255, 255, 0.18); }
body.app .icon-btn[aria-pressed="true"] { background: #fff; color: var(--navy-800); }

.bottom-nav { display: none; }
main { max-width: var(--page-max); margin: 0 auto; padding: var(--gap) 16px calc(var(--gap) * 2); min-height: 60vh; }
main:focus { outline: none; }

.top-nav .nav-short { display: none; }
.user-btn span { font-weight: 900; font-size: 1.05rem; }
body.app .user-btn { background: linear-gradient(145deg, var(--sky-400), var(--winter-700)); border-color: rgba(255, 255, 255, 0.5); text-decoration: none; }
@media (max-width: 1180px) {
  .top-nav a { padding: 6px 10px; }
  .top-nav .nav-full { display: none; }
  .top-nav .nav-short { display: inline; }
}
@media (max-width: 900px) {
  .top-nav { display: none; }
  .header-tools { margin-left: auto; }
  .bottom-nav {
    display: grid; grid-template-columns: repeat(6, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-nav);
    height: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px)); padding: 0 4px env(safe-area-inset-bottom, 0px);
    background: rgba(8, 26, 51, 0.94); border-top: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 -8px 24px rgba(3, 14, 30, 0.3);
  }
  .bottom-nav a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 0;
    text-decoration: none; color: #c2dcf2; font-size: 0.7rem; font-weight: 800; min-height: var(--tap);
  }
  .bottom-nav a svg { width: 22px; height: 22px; }
  .bottom-nav .nav-ico { padding: 3px 12px; border-radius: 999px; display: grid; place-items: center; transition: background-color var(--dur) ease; }
  .bottom-nav a[aria-current="page"] { color: #fff; }
  .bottom-nav a[aria-current="page"] .nav-ico { background: var(--accent); color: var(--accent-ink); }
  .bottom-nav .nav-text { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  main { padding-bottom: calc(var(--nav-h) + 40px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- Matn ierarxiyasi ---------- */
.page-title { font-size: var(--fs-xl); font-weight: 900; margin: 4px 0 4px; }
.page-lead { color: var(--text-soft); margin-bottom: var(--gap); max-width: 70ch; }
body.app main > .page-title, body.app main > .page-lead,
body.app main > .section-title, body.app .on-bg { color: #fff; text-shadow: 0 2px 10px rgba(3, 14, 30, 0.5); }
body.app main > .page-lead, body.app .on-bg-soft { color: var(--on-dark-soft); }
.section { margin-top: calc(var(--gap) * 1.5); }
.section-title { font-size: var(--fs-l); font-weight: 900; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.section-title > svg { width: 34px; height: 34px; padding: 7px; border-radius: 11px; flex: none; background: var(--ice-100); color: var(--ice-700); }
body.app :not(.card) > .section-title { color: #fff; text-shadow: 0 2px 10px rgba(3, 14, 30, 0.5); }
body.app :not(.card) > .section-title > svg { background: rgba(255, 255, 255, 0.14); color: #fff; }
.stack { display: grid; gap: var(--gap); }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.grid-2 { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid-3 { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
/* Tor ekran (280 px, 400 % zoom): grid bolalari o'z kontenti eniga cho'zilib sahifani toshirmasin; uzun so'z/ID/@username qatorga bo'linadi. */
.stack > *, .grid-2 > *, .grid-3 > *, main > * { min-width: 0; }
main { overflow-wrap: break-word; }
.muted { color: var(--text-soft); }
.small { font-size: var(--fs-s); }
.xs { font-size: var(--fs-xs); }

/* ---------- Kartalar (o'yin sahifasida — oq "glass") ---------- */
.card {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: clamp(16px, 3vw, 26px); color: var(--text);
}
body.app .card { background: var(--glass); border-color: var(--glass-line); box-shadow: var(--shadow-glass); }
.card h2, .card h3 { font-size: var(--fs-l); }
.card-accent { border-color: var(--fox-300); background: linear-gradient(180deg, var(--fox-50), #fff 65%); }
body.app .card-accent { background: linear-gradient(180deg, rgba(255, 246, 236, 0.96), rgba(255, 255, 255, 0.92) 65%); }
.card-ice { background: linear-gradient(180deg, var(--ice-50), #fff 70%); }
.card-link { text-decoration: none; color: var(--text); display: grid; gap: 6px; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
@media (hover: hover) { .card-link:hover { transform: translateY(-4px); box-shadow: 0 22px 44px rgba(3, 18, 38, 0.32); } }

/* ---------- Tugmalar: hover va press animatsiyasi ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap); padding: 10px 22px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 900; font-size: var(--fs-m); text-decoration: none; cursor: pointer;
  transition: transform 0.16s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s ease, filter 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px) scale(0.97); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-primary {
  background: linear-gradient(180deg, #ffc57e 0%, var(--accent) 55%, #e8780f 100%); color: var(--accent-ink);
  box-shadow: 0 4px 0 rgba(122, 61, 0, 0.28), 0 10px 24px rgba(243, 139, 35, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
@media (hover: hover) {
  .btn-primary:not([disabled]):hover { transform: translateY(-2px); filter: brightness(1.05); box-shadow: 0 6px 0 rgba(122, 61, 0, 0.26), 0 16px 30px rgba(243, 139, 35, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.6); }
}
.btn-secondary { background: var(--surface); color: var(--ice-800); border-color: var(--ice-300); }
.btn-secondary:hover { background: var(--ice-50); }
@media (hover: hover) { .btn-secondary:not([disabled]):hover { transform: translateY(-1px); } }
.btn-glass { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.btn-glass:hover { background: rgba(255, 255, 255, 0.22); }
.btn-ghost { background: transparent; color: var(--ice-800); }
.btn-ghost:hover { background: var(--ice-100); }
body.app main > nav .btn-ghost, body.app .on-bg .btn-ghost { color: #fff; }
body.app main > nav .btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn-danger { background: var(--bad-bg); color: var(--bad-ink); border-color: var(--bad-line); }
.btn-block { width: 100%; }
.btn-lg { min-height: 58px; font-size: var(--fs-l); padding: 12px 30px; }
.btn-sm { min-height: 40px; padding: 6px 14px; font-size: var(--fs-s); }
.btn svg { width: 20px; height: 20px; flex: none; }
.link-btn { background: none; border: 0; padding: 0; color: var(--ice-700); text-decoration: underline; cursor: pointer; min-height: 32px; }

/* ---------- Chip / belgi ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px;
  font-size: var(--fs-xs); font-weight: 900; border: 1px solid transparent; white-space: nowrap;
}
.chip svg { width: 14px; height: 14px; }
.st-completed { background: var(--ok-bg); color: var(--ok-ink); border-color: var(--ok-line); }
.st-today { background: var(--fox-100); color: var(--warn-ink); border-color: var(--fox-400); }
.st-missed { background: var(--mute-bg); color: var(--mute-ink); border-color: var(--mute-line); }
.st-locked { background: var(--ice-100); color: var(--ice-800); border-color: var(--ice-200); }
.st-review { background: var(--rev-bg); color: var(--rev-ink); border-color: var(--rev-line); }
.st-maintenance { background: var(--bad-bg); color: var(--bad-ink); border-color: var(--bad-line); }
.badge-demo { background: #fff3c4; color: #5c4400; border: 1px dashed #c9a227; }
.badge-ad { background: var(--mute-bg); color: var(--mute-ink); border-color: var(--mute-line); text-transform: uppercase; letter-spacing: 0.04em; }
.chip-glass { background: rgba(255, 255, 255, 0.14); color: #fff; border-color: rgba(255, 255, 255, 0.32); }

/* =====================================================================
   HERO — qishki manzara ichida, ikki tulki va markazda sarlavha
   ===================================================================== */
.hero { position: relative; color: var(--hero-ink); padding: clamp(12px, 3vw, 36px) 0 clamp(16px, 3vw, 30px); }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 14px; align-items: center; position: relative; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: minmax(200px, 300px) minmax(0, 1fr) minmax(200px, 300px); gap: 24px; } }
.hero h1 {
  font-size: var(--fs-xxl); font-weight: 900; letter-spacing: -0.025em; margin: 0;
  text-shadow: 0 4px 24px rgba(3, 14, 30, 0.55), 0 0 40px rgba(97, 184, 232, 0.35);
}
.hero h1 .accent { background: linear-gradient(180deg, #ffffff 0%, #e4f4ff 45%, #8fd0f5 100%); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 4px 14px rgba(3, 14, 30, 0.5)); }
.hero p { color: var(--on-dark-soft); font-size: var(--fs-l); max-width: 44ch; margin: 0; }
.hero-center { text-align: center; display: grid; justify-items: center; gap: 14px; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.28); font-weight: 800; font-size: var(--fs-s);
}
.hero-kicker svg { width: 16px; height: 16px; color: var(--gold); }
.hero-meta { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.28); font-weight: 800; font-size: var(--fs-s);
}
.hero-pill svg { width: 16px; height: 16px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* Mobil: ikki qahramon yonma-yon yuqorida; desktop: qahramon | matn | qahramon */
.foxes { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.foxes > .hero-center { order: 3; flex: 1 1 100%; }
@media (min-width: 900px) {
  .foxes { display: contents; }
  .foxes > .hero-center { order: 0; }
}
.fox-frame {
  position: relative; margin: 0; width: min(calc(50% - 6px), 190px); aspect-ratio: 4 / 5;
  display: grid; place-items: end center;
}
@media (min-width: 900px) { .fox-frame { width: 100%; } }
/* Qahramon ostidagi yumshoq yorug'lik va qor do'ngligi */
.fox-frame::before {
  content: ""; position: absolute; left: 6%; right: 6%; bottom: 2%; height: 16%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(232, 247, 255, 0.85), rgba(232, 247, 255, 0)); z-index: 0;
}
.fox-frame picture, .fox-frame img, .fox-frame svg.hero-art { position: relative; z-index: 1; width: 100%; height: 100%; }
.fox-frame img { object-fit: contain; filter: drop-shadow(0 14px 22px rgba(3, 14, 30, 0.45)); }
.fox-frame svg.hero-art { filter: drop-shadow(0 12px 18px rgba(3, 14, 30, 0.35)); }
/* Piksel renderer (core/pixels.js): canvas ramka balandligiga moslanadi, eni — manifestdagi asl nisbat (aspect-ratio). */
/* Asl <img> bilan bir xil quti: width/height 100% (balandlik aniqlanmasa — aspect-ratio'dan, JS darhol qo'yadi, CLS yo'q);
   rasm canvas ichida object-fit: contain geometriyasi bilan chiziladi (core/pixels.js paintContain). */
.fox-frame canvas.fox-px { position: relative; z-index: 1; display: block; width: 100%; height: 100%; filter: drop-shadow(0 14px 22px rgba(3, 14, 30, 0.45)); opacity: 0; transition: opacity 0.35s var(--ease); }
.fox-frame canvas.fox-px[data-px-state="ok"] { opacity: 1; }
/* Bezakli fallback (tasdiqlangan rasm yo'q): mobilda kichikroq, LCP sarlavhani pastga surmasin */
@media (max-width: 899px) { .fox-frame.is-decor { width: min(calc(50% - 6px), 132px); } }
.hero-art .orn { animation: orn-glow 2.6s ease-in-out infinite alternate; }
.hero-art .o1 { animation-delay: 0.9s; }
.hero-art .o2 { animation-delay: 1.7s; }
.hero-art .decor-star { transform-origin: 100px 24px; animation: star-glow 3.2s ease-in-out infinite alternate; }
@keyframes orn-glow { from { opacity: 0.55; } to { opacity: 1; } }
@keyframes star-glow { from { transform: scale(0.94); opacity: 0.85; } to { transform: scale(1.06); opacity: 1; } }
.fox-arrive-l { animation: arrive-l 1.1s var(--ease) both; }
.fox-arrive-r { animation: arrive-r 1.1s var(--ease) 0.15s both; }
.float-slow { animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -6px, 0); } }
@keyframes arrive-l { from { opacity: 0; transform: translate3d(-40px, 30px, 0) scale(0.92); } to { opacity: 1; transform: none; } }
@keyframes arrive-r { from { opacity: 0; transform: translate3d(40px, 30px, 0) scale(0.92); } to { opacity: 1; transform: none; } }

/* Countdown — premium qishki "muz" bloklari */
.countdown { display: flex; gap: clamp(6px, 1.5vw, 12px); justify-content: center; flex-wrap: nowrap; }
.cd-box {
  position: relative; min-width: clamp(54px, 16vw, 96px); padding: clamp(8px, 1.6vw, 14px) 6px clamp(6px, 1.2vw, 10px); border-radius: 18px; text-align: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.07));
  border: 1px solid rgba(255, 255, 255, 0.38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 10px 24px rgba(3, 14, 30, 0.28);
  overflow: hidden;
}
.cd-box::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 45%; background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0)); pointer-events: none; }
@supports (backdrop-filter: blur(1px)) { body.app .hero .cd-box { backdrop-filter: blur(8px); } [data-motion="off"] body.app .hero .cd-box { backdrop-filter: none; } }
.cd-num { display: block; font-size: clamp(1.7rem, 1.1rem + 2.6vw, 3rem); font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1.05; text-shadow: 0 2px 12px rgba(97, 184, 232, 0.45); }
.cd-unit { font-size: var(--fs-xs); font-weight: 800; color: var(--on-dark-soft); text-transform: lowercase; letter-spacing: 0.02em; }
.countdown-light .cd-box { background: linear-gradient(180deg, #fff, var(--ice-50)); border-color: var(--ice-200); box-shadow: var(--shadow-sm); }
.countdown-light .cd-box::before { display: none; }
.countdown-light .cd-num { color: var(--ice-800); text-shadow: none; }
.countdown-light .cd-unit { color: var(--text-soft); }
.cd-label { font-weight: 900; letter-spacing: 0.04em; text-transform: uppercase; font-size: var(--fs-xs); }
.hero .cd-label { color: var(--gold); }

/* Mayin, ketma-ket paydo bo'lish */
.rise { animation: rise 0.55s var(--ease) both; animation-delay: calc(var(--i, 0) * 40ms); }
@keyframes rise { from { opacity: 0; transform: translate3d(0, 12px, 0); } to { opacity: 1; transform: none; } }

/* ---------- Bugungi topshiriq (katta interaktiv karta) ---------- */
.today-card { display: grid; gap: 16px; }
@media (min-width: 720px) { .today-card { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; } }
.today-ico {
  width: 72px; height: 72px; border-radius: 22px; display: grid; place-items: center; flex: none;
  background: linear-gradient(145deg, var(--fox-100), #fff); color: var(--fox-600); box-shadow: inset 0 0 0 1px var(--fox-300);
}
.today-ico svg { width: 36px; height: 36px; }
/* Kichik matn: oq/och fonda kamida 4.5:1 (#a65300 ≈ 5.7:1); tunda — och to'q sariq. */
.today-kicker { font-size: var(--fs-xs); font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; color: #a65300; }
:root[data-scheme="dark"] .today-kicker { color: var(--fox-600); }
.today-title { font-size: var(--fs-xl); font-weight: 900; margin: 2px 0 6px; overflow-wrap: anywhere; }
.today-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; color: var(--text-soft); font-weight: 700; font-size: var(--fs-s); }
.today-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--ice-300); }
.today-foot { grid-column: 1 / -1; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px dashed var(--ice-200); }

.ico-inline { width: 15px; height: 15px; vertical-align: -2px; }
.tick-list { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.tick-list li::marker { color: var(--fox-500); }

/* 30 kunlik qisqa ko'rinish (mini xarita) */
.mini-map { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; }
@media (min-width: 720px) { .mini-map { grid-template-columns: repeat(15, minmax(0, 1fr)); } }
.mini-day {
  aspect-ratio: 1; border-radius: 9px; display: grid; place-items: center; font-size: 0.72rem; font-weight: 900; text-decoration: none;
  background: var(--ice-100); color: var(--ice-800); border: 1px solid var(--ice-200);
}
.mini-day.is-completed { background: var(--ok-bg); color: var(--ok-ink); border-color: var(--ok-line); }
.mini-day.is-today { background: var(--accent); color: var(--accent-ink); border-color: var(--fox-600); box-shadow: 0 0 0 3px rgba(243, 139, 35, 0.3); }
.mini-day.is-missed { background: var(--mute-bg); color: var(--mute-ink); border-color: var(--mute-line); }
.mini-day.is-review { background: var(--rev-bg); color: var(--rev-ink); border-color: var(--rev-line); }
.mini-day.kind-final { background: var(--navy-800); color: var(--gold); border-color: var(--gold); }

/* ---------- Statistik plitkalar ---------- */
.stats { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); }
.stat { background: linear-gradient(180deg, #fff, var(--ice-25)); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow-sm); color: var(--text); }
body.app .stat { background: var(--glass); border-color: var(--glass-line); box-shadow: var(--shadow-glass); }
.stat-num { font-size: var(--fs-xl); font-weight: 900; color: var(--ice-800); font-variant-numeric: tabular-nums; line-height: 1.15; }
.stat-label { font-size: var(--fs-xs); color: var(--text-soft); font-weight: 800; }

/* ---------- Profil ---------- */
.profile-card { display: grid; gap: 16px; align-items: center; grid-template-columns: auto minmax(0, 1fr); }
.profile-card > div { min-width: 0; }
.profile-meta .chip { white-space: normal; }
@media (min-width: 760px) { .profile-card { grid-template-columns: auto 1fr minmax(240px, 320px); } }
.avatar {
  width: 76px; height: 76px; border-radius: 26px; display: grid; place-items: center; flex: none;
  font-size: 2rem; font-weight: 900; color: #fff; text-transform: uppercase;
  background: linear-gradient(145deg, var(--sky-400), var(--winter-700) 60%, var(--navy-800));
  box-shadow: 0 10px 24px rgba(21, 74, 115, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.profile-name { font-size: var(--fs-xl); font-weight: 900; margin: 0; overflow-wrap: anywhere; }
.profile-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.level { grid-column: 1 / -1; }
@media (min-width: 760px) { .level { grid-column: auto; } }
.level-bar { height: 12px; border-radius: 999px; background: var(--ice-100); overflow: hidden; box-shadow: inset 0 1px 2px rgba(13, 47, 76, 0.1); }
.level-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--sky-400), var(--winter-700)); }
.level-text { display: flex; justify-content: space-between; font-size: var(--fs-xs); font-weight: 800; color: var(--text-soft); margin-top: 6px; }
.next-badge { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; }
.next-badge .b-ico { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: var(--ice-100); color: var(--ice-700); }
.next-badge .b-ico svg { width: 24px; height: 24px; }

/* =====================================================================
   30 KUNLIK XARITA
   ===================================================================== */
.legend { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
body.app .legend .chip { box-shadow: 0 2px 8px rgba(3, 14, 30, 0.2); }
/* minmax(0, 1fr): ustun chip kengligi tufayli kengayib, gorizontal scroll yaratmasin. */
.cal-grid { display: grid; gap: 10px; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; padding: 0; margin: 0; }
@media (min-width: 600px) { .cal-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; } }
@media (min-width: 900px) { .cal-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .cal-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; } }
/* Kalendar kartasi: raqam + ikonka, sana, nom (yoki ochilish vaqti), holat (ikonka + matn) va «Haqida».
   Barcha kartalar bir xil balandlikda (grid-auto-rows: 1fr); matn kesilmaydi — kerak bo'lsa o'raladi. */
.cal-grid { grid-auto-rows: 1fr; }
.day-card {
  position: relative; display: flex; flex-direction: column; gap: 4px; min-height: 150px; height: 100%; overflow: hidden; width: 100%;
  padding: 12px 12px 10px; border-radius: var(--radius); text-decoration: none; color: var(--text); text-align: left; cursor: pointer; font: inherit;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.97) 0%, rgba(238, 248, 254, 0.94) 100%); border: 2px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 8px 22px rgba(3, 18, 38, 0.18), inset 0 1px 0 #fff;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
@media (hover: hover) { .day-card:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(3, 18, 38, 0.26); } }
.day-card:active { transform: scale(0.98); }
.day-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; }
.day-num { font-size: 1.75rem; font-weight: 900; line-height: 1; color: var(--ice-800); font-variant-numeric: tabular-nums; }
.day-ico { color: var(--ice-500); flex: none; }
.day-ico svg { width: 22px; height: 22px; }
.day-date { font-size: var(--fs-xs); font-weight: 800; color: var(--text-soft); }
.day-title { font-size: var(--fs-s); font-weight: 800; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.day-title.muted { font-weight: 700; font-style: italic; }
.day-open { font-size: var(--fs-xs); font-weight: 800; color: var(--text-soft); display: inline-flex; gap: 4px; align-items: center; }
.day-open svg { width: 13px; height: 13px; flex: none; }
.day-score { font-size: var(--fs-xs); font-weight: 800; color: var(--ok-ink); }
.day-foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 4px 8px; padding-top: 6px; }
.day-status {
  display: inline-flex; align-items: flex-start; gap: 5px; max-width: 100%; padding: 3px 8px; border-radius: 10px; border: 1px solid transparent;
  font-size: 0.74rem; font-weight: 900; line-height: 1.2; white-space: normal; overflow-wrap: anywhere;
}
.day-status svg { width: 13px; height: 13px; flex: none; margin-top: 1px; }
.day-about { display: inline-flex; align-items: center; gap: 1px; font-size: 0.72rem; font-weight: 800; color: var(--ice-700); white-space: nowrap; }
.day-about svg { width: 13px; height: 13px; }
.day-card::after {
  content: ""; position: absolute; right: -18px; bottom: -18px; width: 76px; height: 76px; border-radius: 50%;
  background: radial-gradient(circle, rgba(97, 184, 232, 0.22) 0%, rgba(97, 184, 232, 0) 70%); pointer-events: none;
}
.day-card.is-completed { border-color: var(--ok-line); background: linear-gradient(160deg, #f1fbf5, #fff); }
.day-card.is-completed .day-ico { color: var(--ok-ink); }
.day-card.is-today { border-color: var(--fox-500); background: linear-gradient(160deg, #fff4e6, #fff 70%); box-shadow: 0 0 0 4px rgba(243, 139, 35, 0.28), 0 14px 30px rgba(3, 18, 38, 0.24); }
.day-card.is-today .day-num, .day-card.is-today .day-ico { color: var(--fox-600); }
.day-card.is-missed { background: rgba(240, 243, 247, 0.94); border-color: rgba(211, 217, 225, 0.9); }
.day-card.is-missed .day-num, .day-card.is-missed .day-title, .day-card.is-missed .day-ico { color: var(--mute-ink); }
.day-card.is-locked { background: linear-gradient(160deg, rgba(255, 255, 255, 0.86), rgba(225, 240, 250, 0.82)); border-style: dashed; border-color: rgba(159, 203, 236, 0.95); }
.day-card.is-locked .day-ico { color: var(--ice-700); }
.day-card.is-review { border-color: var(--rev-line); }
.day-card.is-maintenance { border-color: var(--bad-line); }
.day-card.kind-final { background: linear-gradient(160deg, #1b4672, #0b2142); color: #fff; border-color: var(--gold); }
.day-card.kind-final .day-num, .day-card.kind-final .day-title { color: #fff; }
.day-card.kind-final .day-date, .day-card.kind-final .day-about { color: #cfe3f7; }
.day-card.kind-final .day-ico { color: var(--gold); }
body.app main .day-card.kind-final .muted { color: #cfe3f7; }
.day-card.kind-wish { border-color: #c9b5ee; background: linear-gradient(160deg, #f6f1ff, #fff); }
@media (max-width: 599px) {
  .cal-grid { gap: 8px; }
  .day-card { padding: 9px 8px 8px; min-height: 142px; gap: 3px; }
  .day-num { font-size: 1.45rem; }
  .day-ico svg { width: 18px; height: 18px; }
  .day-status { padding: 2px 6px; font-size: 0.68rem; gap: 3px; }
  .day-about { font-size: 0.68rem; }
  .day-open-tail { display: none; }   /* mobil: faqat "🕛 00:00" — to'liq matn aria-label va «Haqida» da */
}

/* ---------- Dialog / pastki varaq (kalendar kuni, DEMO paneli) ---------- */
dialog.sheet {
  border: 0; padding: 0; color: var(--text); background: #fff; border-radius: 24px;
  width: min(520px, calc(100vw - 24px)); max-height: min(86vh, 720px); box-shadow: 0 30px 60px rgba(3, 14, 30, 0.45);
}
dialog.sheet::backdrop { background: rgba(3, 14, 30, 0.55); }
dialog.sheet[open] { animation: sheet-in 0.28s var(--ease) both; }
@keyframes sheet-in { from { opacity: 0; transform: translate3d(0, 18px, 0) scale(0.98); } to { opacity: 1; transform: none; } }
@media (max-width: 600px) {
  dialog.sheet { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 24px 24px 0 0; max-height: 86vh; padding-bottom: env(safe-area-inset-bottom, 0px); }
}
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px 8px; }
.sheet-head h2 { margin: 0; font-size: var(--fs-l); }
.sheet-body { padding: 8px 18px 18px; display: grid; gap: 14px; overflow-y: auto; }
.sheet-close { width: 44px; height: 44px; border-radius: 14px; border: 1px solid var(--line); background: var(--ice-50); display: grid; place-items: center; cursor: pointer; color: var(--ice-800); }
.sheet-close svg { width: 20px; height: 20px; }

/* ---------- Kun sahifasi / o'yin maydoni ---------- */
.day-hero { display: grid; gap: 10px; }
body.app .day-hero .page-title { color: #fff; text-shadow: 0 2px 10px rgba(3, 14, 30, 0.5); }
body.app .day-hero .page-lead { color: var(--on-dark-soft); }
.story { font-size: var(--fs-l); line-height: 1.6; }
.rules { background: linear-gradient(180deg, var(--ice-50), #fff); border: 1px solid var(--ice-200); border-radius: var(--radius); padding: 16px 18px; color: var(--text); }
body.app .rules { background: var(--glass); border-color: var(--glass-line); box-shadow: var(--shadow-glass); }
.rules h3 { font-size: var(--fs-m); margin-bottom: 6px; }
.play-area { min-height: 240px; }
.timer-bar { height: 10px; border-radius: 999px; background: var(--ice-100); overflow: hidden; }
.timer-fill { height: 100%; width: 100%; background: linear-gradient(90deg, var(--ok-line), var(--fox-400)); transform-origin: left; transition: transform 0.5s linear; }
.timer-text { font-variant-numeric: tabular-nums; font-weight: 900; }
.q-dots { display: flex; gap: 6px; flex-wrap: wrap; }
.q-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--ice-200); transition: background-color 0.2s ease, transform 0.2s var(--ease); }
.q-dot.is-current { background: var(--fox-500); transform: scale(1.25); }
.q-dot.is-done { background: var(--ice-700); }
.q-text { font-size: var(--fs-xl); font-weight: 900; margin: 12px 0 16px; }
.options { display: grid; gap: 10px; }
@media (min-width: 700px) { .options { grid-template-columns: 1fr 1fr; } }
.option {
  display: flex; align-items: center; gap: 12px; text-align: left; width: 100%;
  min-height: 58px; padding: 12px 16px; border-radius: var(--radius); cursor: pointer;
  background: #fff; border: 2px solid var(--ice-200); font-weight: 800; font-size: var(--fs-l); color: var(--text);
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s var(--ease);
}
.option:hover { border-color: var(--ice-500); }
.option:active { transform: scale(0.985); }
.option[aria-pressed="true"] { border-color: var(--fox-500); background: var(--fox-50); box-shadow: 0 0 0 3px rgba(243, 139, 35, 0.18); }
.option .opt-key { width: 34px; height: 34px; border-radius: 11px; flex: none; display: grid; place-items: center; background: var(--ice-100); color: var(--ice-800); font-weight: 900; }
.option[aria-pressed="true"] .opt-key { background: var(--accent); color: var(--accent-ink); }
.wish-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.wish {
  display: grid; gap: 8px; justify-items: center; text-align: center; padding: 16px 12px; min-height: 124px; color: var(--text);
  border-radius: var(--radius); border: 2px solid var(--rev-line); background: #fff; cursor: pointer; font-weight: 800;
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s var(--ease);
}
.wish svg { width: 32px; height: 32px; color: var(--rev-ink); }
.wish[aria-pressed="true"] { border-color: var(--fox-500); background: var(--fox-50); transform: translateY(-2px); }
.result { text-align: center; display: grid; gap: 12px; justify-items: center; padding: 8px 0; }
.result-ico { width: 90px; height: 90px; border-radius: 50%; display: grid; place-items: center; }
.result-ico svg { width: 46px; height: 46px; }
.result-ok .result-ico { background: var(--ok-bg); color: var(--ok-ink); box-shadow: 0 0 0 8px rgba(143, 211, 176, 0.25); }
.result-fail .result-ico { background: var(--warn-bg); color: var(--warn-ink); }
/* Boshlangan, lekin bajarilmagan kun (8-muammo): «Boshlandi · topshiriq hali bajarilmadi» — «Bajarildi» bilan adashmasin */
.day-state { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-weight: 700; }
.day-state-started { color: var(--warn-ink); background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: 999px; padding: 4px 12px; }
.day-state-started .ico { width: 14px; height: 14px; }
.result-big { font-size: var(--fs-xxl); font-weight: 900; color: var(--ice-800); font-variant-numeric: tabular-nums; }

/* Final (29-dekabr) — muz g'ori sahnasi */
.final-hero {
  position: relative; overflow: hidden; border-radius: var(--radius-l); color: #fff; padding: clamp(24px, 5vw, 48px);
  background: radial-gradient(80% 90% at 50% 110%, rgba(120, 200, 255, 0.35), transparent 60%), linear-gradient(170deg, #12304f 0%, #081a33 75%);
  border: 1px solid rgba(255, 255, 255, 0.16); box-shadow: 0 24px 50px rgba(3, 14, 30, 0.45);
  text-align: center; display: grid; gap: 12px; justify-items: center;
}
.final-hero::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 48px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 48' preserveAspectRatio='none'%3E%3Cpath d='M0 0H240V6L228 30 216 8 204 40 190 6 176 26 162 4 148 36 134 8 120 30 106 6 92 42 78 8 64 28 50 6 36 34 22 6 10 24 0 6Z' fill='%23d8efff' fill-opacity='.55'/%3E%3C/svg%3E") top / 100% 100% no-repeat;
}
.final-hero h2 { font-size: var(--fs-xl); margin: 0; }
.final-hero p { color: #cfe6ff; max-width: 50ch; margin: 0; }
.final-hero .state-ico { background: rgba(255, 255, 255, 0.12); color: var(--gold); box-shadow: none; }

/* ---------- Reyting ---------- */
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--ice-100); flex-wrap: wrap; }
body.app .tabs { background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.25); }
.tab { min-height: 42px; padding: 6px 16px; border-radius: 999px; border: 0; background: transparent; font-weight: 900; cursor: pointer; color: var(--text-soft); transition: background-color var(--dur) ease; }
body.app .tab { color: #e1f0fb; }
.tab[aria-selected="true"] { background: #fff; color: var(--ice-800); box-shadow: var(--shadow); }
.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: end; margin: 6px 0 14px; list-style: none; padding: 0; }
.podium-item {
  display: grid; justify-items: center; gap: 4px; text-align: center; padding: 14px 8px; border-radius: var(--radius); min-width: 0; color: var(--text);
  background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--shadow-glass);
}
.podium-item.p1 { order: 2; padding-top: 24px; border-color: #f2cf6a; background: linear-gradient(180deg, #fff8dc, rgba(255, 255, 255, 0.95)); }
.podium-item.p2 { order: 1; }
.podium-item.p3 { order: 3; }
.podium-item .medal { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; }
.podium-item.p1 .medal { background: linear-gradient(145deg, #ffe08a, #f2b632); color: #5a3d00; width: 54px; height: 54px; font-size: 1.2rem; }
.podium-item.p2 .medal { background: linear-gradient(145deg, #eef2f6, #c5ced8); color: #39434e; }
.podium-item.p3 .medal { background: linear-gradient(145deg, #f8dcc0, #d99a62); color: #5a2e08; }
.podium-name { font-weight: 900; font-size: var(--fs-s); overflow-wrap: anywhere; }
.podium-score { font-weight: 900; color: var(--ice-800); font-variant-numeric: tabular-nums; }
.board { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.board-row {
  display: grid; grid-template-columns: 48px 1fr auto; gap: 10px; align-items: center; color: var(--text);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; box-shadow: var(--shadow-sm);
}
body.app .board-row { background: var(--glass); border-color: var(--glass-line); box-shadow: 0 6px 18px rgba(3, 18, 38, 0.2); }
.board-row.is-me { border: 2px solid var(--fox-500); background: #fff6ec; }
.rank { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 900; background: var(--ice-100); color: var(--ice-800); font-variant-numeric: tabular-nums; }
.rank-1 { background: #ffe9a8; color: #6b4b00; }
.rank-2 { background: #e5eaf0; color: #3b4652; }
.rank-3 { background: #f6d6b8; color: #6a3a10; }
.board-name { font-weight: 900; overflow-wrap: anywhere; }
.board-meta { display: flex; gap: 12px; color: var(--text-soft); font-size: var(--fs-xs); font-weight: 800; flex-wrap: wrap; }
.board-meta svg { width: 14px; height: 14px; vertical-align: -2px; }
.board-score { text-align: right; font-weight: 900; color: var(--ice-800); font-variant-numeric: tabular-nums; }
.board-score small { display: block; font-weight: 800; color: var(--text-soft); font-size: var(--fs-xs); }

/* ---------- Nishonlar ---------- */
.badges { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); }
.badge-card { text-align: center; padding: 14px 10px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, #fff, var(--ice-25)); box-shadow: var(--shadow-sm); color: var(--text); }
body.app .badge-card { background: var(--glass); border-color: var(--glass-line); box-shadow: var(--shadow-glass); }
.badge-card .b-ico { width: 58px; height: 58px; margin: 0 auto 8px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(145deg, var(--fox-100), #fff); color: var(--fox-600); box-shadow: inset 0 0 0 2px var(--fox-300); }
.badge-card.is-locked .b-ico { background: var(--mute-bg); color: var(--mute-ink); box-shadow: inset 0 0 0 2px var(--mute-line); }
.badge-card.is-locked strong { color: var(--text-soft); }
.badge-card .b-ico svg { width: 28px; height: 28px; }
.badge-card strong { display: block; font-size: var(--fs-s); }

/* ---------- Sovg'a ---------- */
.gift-box { width: 150px; height: 150px; margin: 0 auto; position: relative; }
.gift-box .box { position: absolute; left: 10px; right: 10px; bottom: 0; height: 96px; border-radius: 16px; background: linear-gradient(180deg, var(--fox-400), var(--fox-600)); box-shadow: inset 0 -10px 0 rgba(0, 0, 0, 0.1), 0 14px 26px rgba(217, 112, 10, 0.35); }
.gift-box .lid { position: absolute; left: 0; right: 0; top: 30px; height: 32px; border-radius: 11px; background: linear-gradient(180deg, var(--fox-300), var(--fox-500)); }
.gift-box .ribbon-v { position: absolute; left: calc(50% - 10px); top: 30px; bottom: 0; width: 20px; background: #fff; opacity: 0.92; }
.gift-box .bow { position: absolute; left: calc(50% - 26px); top: 6px; width: 52px; height: 28px; border-radius: 50% 50% 8px 8px; border: 8px solid #fff; border-bottom: 0; }
.gift-box .lock { position: absolute; left: calc(50% - 18px); bottom: 24px; width: 36px; height: 36px; border-radius: 10px; background: var(--ice-900); color: #fff; display: grid; place-items: center; }
.gift-box .lock svg { width: 20px; height: 20px; }
.gift-box.is-open .lid { animation: lid-pop 0.9s ease forwards; }
@keyframes lid-pop { 0% { transform: none; } 50% { transform: translateY(-34px) rotate(-12deg); } 100% { transform: translateY(-46px) rotate(-18deg); opacity: 0; } }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps > li { counter-increment: step; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; align-items: start; overflow-wrap: anywhere; }
.steps > li::before { content: counter(step); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--ice-800); color: #fff; font-weight: 900; }
.steps > li.is-done::before { content: "✓"; background: var(--ok-ink); }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 60; overflow: hidden; }
.confetti i { position: absolute; top: -12px; width: 10px; height: 14px; border-radius: 3px; animation: confetti-fall 2.6s ease-in forwards; }
@keyframes confetti-fall { to { transform: translate3d(var(--dx, 0), 105vh, 0) rotate(540deg); opacity: 0.9; } }

/* Bayram chiroqlari va salyut (31-dekabr kechasi) */
.garland { position: absolute; left: 0; right: 0; top: 0; height: 40px; z-index: 1; pointer-events: none; display: flex; justify-content: space-around; padding: 0 3%; }
.garland::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 34px; border-bottom: 2px solid rgba(255, 255, 255, 0.35); border-radius: 0 0 50% 50%; }
.garland i { width: 10px; height: 14px; margin-top: 16px; border-radius: 50% 50% 45% 45%; background: var(--c, #f4c34e); box-shadow: 0 0 10px var(--c, #f4c34e); animation: bulb 1.6s ease-in-out infinite alternate; animation-delay: var(--d, 0s); }
@keyframes bulb { from { opacity: 0.35; } to { opacity: 1; } }
.fireworks { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.fireworks i { position: absolute; width: 4px; height: 4px; border-radius: 50%; left: var(--x); top: var(--y); color: var(--c); animation: burst 2.8s ease-out infinite; animation-delay: var(--d, 0s);
  box-shadow: 0 -36px 0 currentColor, 25px -25px 0 currentColor, 36px 0 0 currentColor, 25px 25px 0 currentColor, 0 36px 0 currentColor, -25px 25px 0 currentColor, -36px 0 0 currentColor, -25px -25px 0 currentColor; }
@keyframes burst { 0% { transform: scale(0.1); opacity: 0; } 15% { opacity: 1; } 70% { transform: scale(1); opacity: 0.85; } 100% { transform: scale(1.15); opacity: 0; } }

/* ---------- Xat (maktub qog'ozi) ---------- */
.letter-paper {
  position: relative; border-radius: 20px; padding: clamp(18px, 4vw, 30px); color: var(--text);
  background:
    linear-gradient(90deg, transparent 38px, rgba(214, 58, 47, 0.25) 38px, rgba(214, 58, 47, 0.25) 40px, transparent 40px),
    repeating-linear-gradient(180deg, #fffdf7 0, #fffdf7 31px, #e6eef7 31px, #e6eef7 32px);
  box-shadow: var(--shadow-glass); border: 1px solid #efe6d2;
}
.letter-paper .stamp {
  position: absolute; right: 16px; top: 16px; width: 64px; height: 76px; border-radius: 6px; display: grid; place-items: center;
  background: #fff; border: 3px dashed var(--santa-red); color: var(--santa-red); transform: rotate(6deg);
}
.letter-paper .stamp svg { width: 30px; height: 30px; }
.letter-paper .textarea { background: rgba(255, 255, 255, 0.7); }

/* ---------- Formalar ---------- */
.field { display: grid; gap: 6px; }
.field label { font-weight: 900; }
.input, .textarea, .select { width: 100%; min-height: var(--tap); padding: 10px 14px; border-radius: 12px; border: 2px solid var(--ice-200); background: #fff; color: var(--text); }
.textarea { min-height: 160px; resize: vertical; line-height: 1.5; }
.input:focus, .textarea:focus, .select:focus { border-color: var(--ice-500); outline: none; box-shadow: 0 0 0 4px rgba(61, 143, 203, 0.2); }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); cursor: pointer; color: var(--text); }
.check input { width: 24px; height: 24px; flex: none; margin-top: 2px; accent-color: var(--fox-600); }
.counter { font-size: var(--fs-xs); color: var(--text-soft); text-align: right; font-variant-numeric: tabular-nums; }
.price-tag { display: inline-flex; align-items: baseline; gap: 8px; font-size: var(--fs-xl); font-weight: 900; color: var(--ice-900); }

/* ---------- Xabar qutilari va holatlar ---------- */
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius); border: 1px solid; }
.notice svg { width: 22px; height: 22px; flex: none; margin-top: 1px; }
.notice-info { background: var(--ice-50); border-color: var(--ice-200); color: var(--ice-900); }
.notice-ok { background: var(--ok-bg); border-color: var(--ok-line); color: var(--ok-ink); }
.notice-warn { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn-ink); }
.notice-bad { background: var(--bad-bg); border-color: var(--bad-line); color: var(--bad-ink); }
.notice p:last-child { margin-bottom: 0; }
body.app main > .notice, body.app .stack > .notice { box-shadow: 0 6px 18px rgba(3, 18, 38, 0.2); }

.state { text-align: center; display: grid; gap: 12px; justify-items: center; padding: clamp(24px, 6vw, 48px) 16px; }
.state-ico { width: 80px; height: 80px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(145deg, var(--ice-100), #fff); color: var(--ice-700); box-shadow: inset 0 0 0 1px var(--ice-200); }
.state-ico svg { width: 38px; height: 38px; }
.state h2 { font-size: var(--fs-l); margin: 0; }
.state p { color: var(--text-soft); max-width: 44ch; margin: 0; }

.skeleton { display: grid; gap: 12px; }
.sk { border-radius: 12px; background: linear-gradient(90deg, var(--ice-100) 0%, var(--ice-50) 50%, var(--ice-100) 100%); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; }
body.app .sk { background: linear-gradient(90deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.26) 50%, rgba(255, 255, 255, 0.14) 100%); background-size: 200% 100%; }
.sk-title { height: 30px; width: 55%; }
.sk-line { height: 16px; }
.sk-card { height: 120px; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.net-banner {
  position: fixed; left: 50%; transform: translateX(-50%); top: 74px; z-index: var(--z-toast);
  padding: 10px 16px; border-radius: 999px; font-weight: 800; box-shadow: var(--shadow-lift);
  background: var(--ice-900); color: #fff; display: flex; gap: 8px; align-items: center; max-width: calc(100% - 32px);
}
.net-banner svg { width: 18px; height: 18px; }
.toast-wrap { position: fixed; left: 0; right: 0; bottom: calc(var(--nav-h) + 16px); z-index: var(--z-toast); display: grid; justify-items: center; pointer-events: none; padding: 0 16px; }
@media (min-width: 901px) { .toast-wrap { bottom: 24px; } }
.toast { pointer-events: auto; padding: 12px 18px; border-radius: 14px; background: var(--ice-900); color: #fff; font-weight: 800; box-shadow: var(--shadow-lift); max-width: 520px; }
.toast-ok { background: var(--ok-ink); }
.toast-bad { background: var(--bad-ink); }

/* ---------- FAQ va pastki qism ---------- */
.faq { display: grid; gap: 8px; }
.faq details { border-radius: 14px; background: var(--ice-25); border: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 12px 14px; font-weight: 900; display: flex; justify-content: space-between; gap: 12px; align-items: center; min-height: var(--tap); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--ice-700); transition: transform var(--dur) var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 14px 14px; color: var(--text-soft); }
.app-footer { max-width: var(--page-max); margin: 0 auto; padding: 8px 16px calc(var(--nav-h) + 30px); text-align: center; color: var(--on-dark-soft); font-size: var(--fs-xs); }
@media (min-width: 901px) { .app-footer { padding-bottom: 40px; } }
.app-footer a { color: #fff; }

.sponsor { display: grid; gap: 8px; grid-template-columns: auto 1fr; align-items: center; }
.sponsor img { width: 64px; height: 64px; object-fit: contain; border-radius: 12px; background: #fff; }

/* ---------- DEMO (faqat Development): kichik tugma + pastki varaq ---------- */
.demo-fab {
  position: fixed; right: 12px; bottom: calc(var(--nav-h) + 14px + env(safe-area-inset-bottom, 0px)); z-index: var(--z-fab);
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 12px; border-radius: 999px; cursor: pointer;
  background: #1b1b1b; color: #fff; border: 1px solid rgba(255, 255, 255, 0.2); font-weight: 900; font-size: 0.8rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35); opacity: 0.88;
}
.demo-fab:hover { opacity: 1; }
.demo-fab svg { width: 16px; height: 16px; }
@media (min-width: 901px) { .demo-fab { bottom: 16px; } }
.dev-tag { background: #ffd23f; color: #222; border-radius: 6px; padding: 1px 6px; font-weight: 900; }
.demo-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
.demo-grid .btn { min-height: 42px; padding: 6px 10px; font-size: var(--fs-s); }
.demo-users { display: grid; gap: 8px; }
.demo-user { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; border: 2px solid var(--line); background: #fff; cursor: pointer; text-align: left; min-height: var(--tap); }
.demo-user[aria-pressed="true"] { border-color: var(--fox-500); background: var(--fox-50); }
.demo-user .who { font-weight: 900; }
.demo-user .role { margin-left: auto; }

/* ---------- Harakat (motion) ---------- */
.pulse { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(243, 139, 35, 0.25), 0 10px 26px rgba(3, 18, 38, 0.28); } 50% { box-shadow: 0 0 0 10px rgba(243, 139, 35, 0.1), 0 10px 26px rgba(3, 18, 38, 0.28); } }
.fade-in { animation: fade-in 0.3s var(--ease) both; }
@keyframes fade-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

[data-motion="off"] *, [data-motion="off"] *::before, [data-motion="off"] *::after { animation: none !important; transition: none !important; }
[data-motion="off"] .fireworks { display: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .wb-snow, .confetti, .fireworks { display: none !important; }
}
@media print {
  .app-header, .bottom-nav, .demo-fab, .winter-bg, .fireworks, .garland { display: none !important; }
  body.app { background: #fff; color: #000; }
}

/* ---------- Xat: murojaat va imzo ---------- */
.letter-greet { font-size: var(--fs-l); font-weight: 900; color: var(--santa-red); font-style: italic; letter-spacing: 0.01em; }
.letter-sign { margin: 6px 0 0; text-align: right; font-style: italic; color: var(--text-soft); }
.letter-paper .textarea { border-color: transparent; border-bottom: 2px dashed var(--ice-200); border-radius: 8px; line-height: 32px; min-height: 200px; }
.letter-paper .textarea:focus { border-color: var(--ice-500); }

/* CLS: footer birinchi ekrandan pastda boshlansin — kontent yuklanganda ko'rinadigan siljish bo'lmaydi */
body.app main { min-height: calc(100vh - 65px); }   /* header: 64 + 1px chiziq */
@supports (min-height: 100svh) { body.app main { min-height: calc(100svh - 65px); } }

/* Uzunroq rasmiy nom ("Invest Erkatoy — Yangi yil"): tor ekranda header sig'ishi uchun */
.brand { min-width: 0; flex: 0 1 auto; }
.brand > span:last-child { min-width: 0; overflow: hidden; }
.brand small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 400px) {
  .brand { gap: 8px; font-size: 0.95rem; }
  .brand-mark { width: 36px; height: 36px; border-radius: 12px; }
  .header-inner { gap: 8px; padding-left: 12px; padding-right: 12px; }
}

.st-paused { background: var(--warn-bg); color: var(--warn-ink); border-color: var(--warn-line); }
.day-card.is-nomodule { border-style: dashed; }
.day-card.is-paused { border-color: var(--warn-line); }
.day-card.is-opened { border-color: var(--fox-500); }
.season-banner { display: flex; gap: 12px; align-items: center; }

/* ---------- Qahramon kartalari (Qorbobo — qizil, Qorqiz — moviy) ---------- */
.char-grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.char-card {
  position: relative; overflow: hidden; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center;
  border-radius: var(--radius-l); padding: clamp(16px, 3vw, 22px); color: #fff; box-shadow: var(--shadow-glass);
}
.char-card.qorbobo { background: linear-gradient(150deg, #e2473a 0%, #b42318 55%, #7f1410 100%); }
.char-card.qorqiz { background: linear-gradient(150deg, #5fb3ee 0%, #2f80c8 55%, #123b6a 100%); }
.char-card::after { content: ""; position: absolute; right: -40px; bottom: -50px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 70%); pointer-events: none; }
.char-ava {
  width: clamp(84px, 22vw, 112px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; flex: none;
  background: radial-gradient(circle at 50% 35%, #fff 0%, #ffe9d6 60%, #ffd6b0 100%); border: 3px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}
.char-card.qorqiz .char-ava { background: radial-gradient(circle at 50% 35%, #fff 0%, #e6f5ff 60%, #c8e8ff 100%); }
.char-ava img, .char-ava canvas.ava-px { display: block; width: 100%; height: 100%; object-fit: cover; }
.char-ava canvas.ava-px { opacity: 0; transition: opacity 0.35s var(--ease); }
.char-ava canvas.ava-px[data-px-state="ok"] { opacity: 1; }
.char-ava .fallback { width: 100%; height: 100%; display: grid; place-items: center; color: var(--fox-600); }
.char-ava .fallback svg { width: 44%; height: 44%; }
.char-card h3 { margin: 0 0 4px; font-size: var(--fs-l); color: #fff; }
.char-card p { margin: 0; color: rgba(255, 255, 255, 0.92); font-size: var(--fs-s); }
.char-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.char-tags .chip { background: rgba(255, 255, 255, 0.16); color: #fff; border-color: rgba(255, 255, 255, 0.35); }

/* ---------- 29-dekabr final: 4 bosqich ---------- */
.final-stages { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); width: 100%; }
.final-stage { display: grid; gap: 6px; justify-items: center; text-align: center; padding: 12px 10px; border-radius: 16px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.2); }
.final-stage .n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; background: rgba(255, 209, 102, 0.18); color: var(--gold); }
.final-stage strong { font-size: var(--fs-s); }
.final-stage small { color: #cfe6ff; font-size: var(--fs-xs); }
.final-progress { width: min(420px, 100%); }
.hero-sub2 { font-size: var(--fs-s) !important; color: #e8f4ff !important; font-weight: 700; margin-top: -6px !important; }

/* =====================================================================
   KUNDUZ / TUN REJIMI — <html data-scheme="light|dark"> (js/theme-boot.js, birinchi chizishdan oldin)
   Semantik tokenlar qayta aniqlanadi; qattiq yozilgan oq fonlar shu yerda tokenga o'tkaziladi.
   - Tun: tungi qishki osmon (asl manzara) + to'q "muz" kartalar, och matn.
   - Kunduz: yorug' qishki kun osmoni + oq kartalar, to'q matn.
   Admin paneli (body.admin) bu atributni olmaydi — unga ta'sir qilmaydi.
   Kontrast: asosiy matn >= 7:1, ikkinchi darajali >= 4.5:1 (WCAG AA).
   ===================================================================== */

/* ---------- TUN ---------- */
:root[data-scheme="dark"] {
  color-scheme: dark;
  --text: #e6f2fc;
  --text-soft: #b3cbe0;
  --surface: #183659;
  --surface-2: #14304f;
  --glass: rgba(26, 56, 94, 0.94);
  --glass-line: rgba(150, 196, 232, 0.24);
  --line: #24476f;
  --ice-25: #15304f;
  --ice-50: #193759;
  --ice-100: #1f4068;
  --ice-200: #2d5480;
  --ice-300: #3c6795;
  --ice-500: #6db3e6;
  --ice-700: #9fd0f4;
  --ice-800: #c7e4f8;
  --ice-900: #e8f4fd;
  --fox-50: #2e1f10;
  --fox-100: #3d2813;
  --fox-600: #ffb062;
  --ok-bg: #0f3a2a;   --ok-ink: #9fe6c2;   --ok-line: #2f7d5a;
  --warn-bg: #3d2a0c; --warn-ink: #ffd79c; --warn-line: #8f611e;
  --bad-bg: #431a16;  --bad-ink: #ffbdb4;  --bad-line: #94433a;
  --rev-bg: #2c2148;  --rev-ink: #d9c8ff;  --rev-line: #5f4d92;
  --mute-bg: #1e2b3b; --mute-ink: #c3cedb; --mute-line: #3b495b;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow: 0 8px 26px rgba(0, 0, 0, 0.35), 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-glass: 0 14px 34px rgba(0, 8, 20, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --focus-on-light: #8ccbff;
}
:root[data-scheme="dark"] body.app .card-accent { background: linear-gradient(180deg, rgba(61, 40, 19, 0.96), rgba(15, 37, 68, 0.94) 65%); border-color: rgba(249, 162, 63, 0.55); }
:root[data-scheme="dark"] .today-ico { background: linear-gradient(145deg, var(--fox-100), var(--surface)); }
:root[data-scheme="dark"] .state-ico { background: linear-gradient(145deg, var(--ice-100), var(--surface)); }
:root[data-scheme="dark"] .badge-card .b-ico { background: linear-gradient(145deg, var(--fox-100), var(--surface)); }
:root[data-scheme="dark"] .day-card { background: linear-gradient(160deg, rgba(32, 66, 108, 0.96), rgba(22, 48, 84, 0.95)); border-color: rgba(150, 196, 232, 0.22); box-shadow: 0 8px 22px rgba(0, 8, 20, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05); }
:root[data-scheme="dark"] .day-card.is-completed { background: linear-gradient(160deg, #123d31, #0f2847); border-color: var(--ok-line); }
:root[data-scheme="dark"] .day-card.is-today { background: linear-gradient(160deg, #3d2813, #11294a 70%); border-color: var(--fox-500); }
:root[data-scheme="dark"] .day-card.is-missed { background: rgba(37, 52, 72, 0.95); border-color: var(--mute-line); }
:root[data-scheme="dark"] .day-card.is-locked { background: linear-gradient(160deg, rgba(28, 60, 100, 0.88), rgba(19, 44, 78, 0.88)); border-color: rgba(150, 196, 232, 0.3); }
:root[data-scheme="dark"] .day-card.kind-wish { background: linear-gradient(160deg, #2a2046, #11294a); border-color: var(--rev-line); }
:root[data-scheme="dark"] .day-card.is-test { background: linear-gradient(160deg, #3a3210, #11294a 70%); }
:root[data-scheme="dark"] .day-card.kind-final { background: linear-gradient(160deg, #1b4672, #071730); }
:root[data-scheme="dark"] dialog.sheet { background: var(--surface); border: 1px solid var(--glass-line); }
:root[data-scheme="dark"] dialog.sheet::backdrop { background: rgba(0, 6, 16, 0.7); }
:root[data-scheme="dark"] :is(.option, .wish, .demo-user) { background: var(--surface); }
:root[data-scheme="dark"] :is(.input, .textarea, .select) { background: var(--surface-2); }
:root[data-scheme="dark"] .tab[aria-selected="true"] { color: var(--navy-800); }
:root[data-scheme="dark"] .podium-item.p1 { background: linear-gradient(180deg, #3a3110, var(--glass)); }
:root[data-scheme="dark"] .board-row.is-me { background: #3d2813; }
:root[data-scheme="dark"] .countdown-light .cd-box { background: linear-gradient(180deg, var(--ice-100), var(--ice-50)); border-color: var(--ice-200); }
:root[data-scheme="dark"] .steps > li::before { background: #2a5d8f; color: #fff; }
:root[data-scheme="dark"] .steps > li.is-done::before { background: #1f7a52; }
:root[data-scheme="dark"] .gift-box .lock { background: #0b2142; }
:root[data-scheme="dark"] :is(.net-banner, .toast) { background: #0b1d36; border: 1px solid rgba(150, 196, 232, 0.3); color: #fff; }
:root[data-scheme="dark"] .toast-ok { background: #17694a; }
:root[data-scheme="dark"] .toast-bad { background: #a3352a; }
/* Xat qog'ozi tunda ham "qog'oz" bo'lib qoladi (o'z yorug' tokenlari bilan). */
:root[data-scheme="dark"] .letter-paper { --text: #10304a; --text-soft: #3f5a72; --ice-200: #c6e0f5; --ice-500: #3d8fcb; --ice-700: #1d5f91; --surface: #fff; --surface-2: #f7fbff; color: #10304a; }

/* ---------- KUNDUZ ---------- */
:root[data-scheme="light"] {
  color-scheme: light;
  --on-dark: #0b2142;
  --on-dark-soft: #29496a;
  --hero-ink: #0b2142;
  --focus: #0a66c2;
  --glass: rgba(255, 255, 255, 0.95);
  --glass-line: rgba(198, 224, 245, 0.95);
  --shadow-glass: 0 12px 30px rgba(31, 99, 155, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
:root[data-scheme="light"] body.app { background: #dff0fb; }
:root[data-scheme="light"] .winter-bg {
  background:
    radial-gradient(55% 45% at 86% -8%, rgba(255, 214, 140, 0.55) 0%, rgba(255, 214, 140, 0) 60%),
    radial-gradient(70% 55% at 10% -5%, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0) 62%),
    linear-gradient(180deg, #a9d8f5 0%, #c9e7fa 30%, #e2f2fc 62%, #f4faff 100%);
}
:root[data-scheme="light"] .wb-stars { display: none; }
:root[data-scheme="light"] .wb-ice { opacity: 0.35; }
:root[data-scheme="light"] .wb-trees-far { opacity: 0.32; }
:root[data-scheme="light"] .wb-trees-near { opacity: 0.5; }
:root[data-scheme="light"] .wb-snow::before, :root[data-scheme="light"] .wb-snow::after { filter: drop-shadow(0 0 1px rgba(61, 143, 203, 0.55)); }

:root[data-scheme="light"] body.app .app-header { background: rgba(255, 255, 255, 0.94); border-bottom-color: var(--ice-200); }
@supports (backdrop-filter: blur(1px)) { :root[data-scheme="light"] body.app .app-header { background: rgba(255, 255, 255, 0.76); } }
:root[data-scheme="light"][data-motion="off"] body.app .app-header, :root[data-scheme="light"] body.app[data-lowend] .app-header { background: rgba(255, 255, 255, 0.97); }
:root[data-scheme="light"] body.app .brand { color: var(--navy-900); }
:root[data-scheme="light"] body.app .brand small { color: var(--text-soft); }
:root[data-scheme="light"] body.app .top-nav a { color: #29496a; }
:root[data-scheme="light"] body.app .top-nav a:hover { background: var(--ice-100); color: var(--navy-900); }
:root[data-scheme="light"] body.app .top-nav a[aria-current="page"] { background: var(--navy-800); color: #fff; }
:root[data-scheme="light"] body.app .icon-btn { background: #fff; border-color: var(--ice-200); color: var(--ice-800); }
:root[data-scheme="light"] body.app .icon-btn:hover { background: var(--ice-50); }
:root[data-scheme="light"] body.app .icon-btn[aria-pressed="true"], :root[data-scheme="light"] body.app .icon-btn[aria-expanded="true"] { background: var(--navy-800); color: #fff; }
:root[data-scheme="light"] body.app .user-btn { background: linear-gradient(145deg, var(--sky-400), var(--winter-700)); color: #fff; border-color: var(--ice-300); }
@media (max-width: 900px) {
  :root[data-scheme="light"] .bottom-nav { background: rgba(255, 255, 255, 0.97); border-top-color: var(--ice-200); box-shadow: 0 -8px 24px rgba(31, 99, 155, 0.14); }
  :root[data-scheme="light"] .bottom-nav a { color: #3f5a72; }
  :root[data-scheme="light"] .bottom-nav a[aria-current="page"] { color: var(--navy-900); }
}
:root[data-scheme="light"] body.app main a:not([class]) { color: var(--ice-700); }
:root[data-scheme="light"] body.app main > .page-title, :root[data-scheme="light"] body.app main > .section-title,
:root[data-scheme="light"] body.app .on-bg, :root[data-scheme="light"] body.app :not(.card) > .section-title,
:root[data-scheme="light"] body.app .day-hero .page-title { color: var(--navy-900); text-shadow: none; }
:root[data-scheme="light"] body.app :not(.card) > .section-title > svg { background: rgba(255, 255, 255, 0.85); color: var(--ice-700); box-shadow: inset 0 0 0 1px var(--ice-200); }
:root[data-scheme="light"] .hero h1 { text-shadow: 0 2px 0 rgba(255, 255, 255, 0.55); }
:root[data-scheme="light"] .hero h1 .accent { background: linear-gradient(180deg, #154a73 0%, #1f639b 60%, #2a74b0 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: none; }
:root[data-scheme="light"] :is(.hero-kicker, .hero-pill) { background: rgba(255, 255, 255, 0.8); border-color: var(--ice-200); color: var(--navy-900); }
:root[data-scheme="light"] .hero-kicker svg { color: #b85d00; }
:root[data-scheme="light"] .hero-sub2 { color: #1d3f5e !important; }
:root[data-scheme="light"] .hero .cd-box { background: rgba(255, 255, 255, 0.86); border-color: var(--ice-200); box-shadow: 0 8px 20px rgba(31, 99, 155, 0.14), inset 0 1px 0 #fff; }
:root[data-scheme="light"] .hero .cd-num { color: #154a73; text-shadow: none; }
:root[data-scheme="light"] .hero .cd-unit { color: var(--text-soft); }
:root[data-scheme="light"] .hero .cd-label { color: #8a4500; }
:root[data-scheme="light"] .fox-frame img, :root[data-scheme="light"] .fox-frame canvas.fox-px { filter: drop-shadow(0 12px 18px rgba(16, 48, 74, 0.28)); }
:root[data-scheme="light"] .btn-glass { background: rgba(255, 255, 255, 0.82); color: var(--ice-800); border-color: var(--ice-300); }
:root[data-scheme="light"] .btn-glass:hover { background: #fff; }
:root[data-scheme="light"] body.app main > nav .btn-ghost, :root[data-scheme="light"] body.app .on-bg .btn-ghost { color: var(--navy-900); }
:root[data-scheme="light"] body.app main > nav .btn-ghost:hover { background: rgba(255, 255, 255, 0.7); }
:root[data-scheme="light"] .chip-glass { background: rgba(255, 255, 255, 0.85); color: var(--navy-900); border-color: var(--ice-200); }
:root[data-scheme="light"] body.app .tabs { background: rgba(255, 255, 255, 0.72); border-color: var(--ice-200); }
:root[data-scheme="light"] body.app .tab { color: #29496a; }
:root[data-scheme="light"] .app-footer a { color: var(--ice-700); }
:root[data-scheme="light"] body.app .sk { background: linear-gradient(90deg, var(--ice-100) 0%, #fff 50%, var(--ice-100) 100%); background-size: 200% 100%; }

/* ---------- "Ko'rinish" menyusi (Avtomatik / Kunduz / Tun + animatsiya) ---------- */
.view-menu-wrap { position: relative; }
.view-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: var(--z-dialog); width: min(260px, calc(100vw - 24px));
  padding: 8px; border-radius: 18px; background: var(--surface); color: var(--text);
  border: 1px solid var(--line); box-shadow: var(--shadow-lift); display: grid; gap: 4px;
}
.view-menu .vm-title { font-size: var(--fs-xs); font-weight: 900; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-soft); padding: 4px 8px 2px; margin: 0; }
.view-menu button {
  display: grid; grid-template-columns: 22px minmax(0, 1fr) 18px; gap: 10px; align-items: center; width: 100%;
  min-height: 48px; padding: 6px 10px; border-radius: 12px; border: 0; background: transparent; color: inherit;
  cursor: pointer; font-weight: 800; text-align: left;
}
.view-menu button small { display: block; font-weight: 600; color: var(--text-soft); font-size: var(--fs-xs); }
.view-menu button:hover { background: var(--ice-50); }
.view-menu button[aria-pressed="true"] { background: var(--ice-100); }
.view-menu button[aria-pressed="true"]::after { content: "✓"; font-weight: 900; color: var(--ice-700); }
.view-menu button svg { width: 20px; height: 20px; }
.view-menu hr { border: 0; border-top: 1px solid var(--line); margin: 4px 2px; }
body.app .view-menu :focus-visible { outline-color: var(--focus-on-light); }

/* ---------- Hero: "Yangi yilgacha" mini hisoblagich (1-dekabrdan keyin) ---------- */
.mini-ny {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-weight: 800; font-size: var(--fs-s);
  background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.28); font-variant-numeric: tabular-nums;
}
.mini-ny svg { width: 16px; height: 16px; color: var(--gold); }
:root[data-scheme="light"] .mini-ny { background: rgba(255, 255, 255, 0.8); border-color: var(--ice-200); color: var(--navy-900); }
:root[data-scheme="light"] .mini-ny svg { color: #b85d00; }


/* ---------- Telegram majburiy obuna oynasi ---------- */
.tg-steps { display: grid; gap: 12px; list-style: none; margin: 0; padding: 0; }
.tg-step { display: grid; gap: 8px; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface-2); }
.tg-step h3 { margin: 0; font-size: var(--fs-m); display: flex; gap: 8px; align-items: center; }
.tg-step h3 .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: var(--fs-xs); background: var(--ice-800); color: var(--surface); flex: none; }
.tg-step.is-done h3 .n { background: var(--ok-ink); }
.tg-channel { display: flex; gap: 8px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.tg-channel a { font-weight: 900; overflow-wrap: anywhere; }
.tg-status { min-height: 1.5em; }
.tg-status.ok { color: var(--ok-ink); font-weight: 800; }
.tg-status.warn { color: var(--warn-ink); font-weight: 800; }
.tg-status.bad { color: var(--bad-ink); font-weight: 800; }

/* Mobil hero: hisoblagich va asosiy tugma birinchi ekranda ko'rinsin (sarlavhadan keyin darhol). */
.hero-timer { display: grid; justify-items: center; }
@media (max-width: 899px) {
  .fox-frame:not(.is-decor) { width: min(calc(50% - 6px), 160px); }
  .hero-center > * { order: 3; }
  .hero-center > .hero-kicker { order: 0; }
  .hero-center > h1 { order: 1; }
  .hero-center > .hero-timer { order: 1; }
  .hero-center > .hero-actions { order: 2; }
}

/* Dialog ochiq — fon sahifa aylanmaydi (scroll lock). */
/* Faqat o'yin sahifalari (theme-boot data-scheme qo'yadi; admin'da yo'q): dialog ochilganda kenglik o'zgarmasin. */
:root[data-scheme] { scrollbar-gutter: stable; }
html.sheet-open { overflow: hidden; }

/* Tab/ilova ko'rinmayotganda bezak animatsiyalari to'xtaydi (batareya va CPU tejaladi). */
html[data-hidden] .wb-snow::before, html[data-hidden] .wb-snow::after, html[data-hidden] .wb-stars,
html[data-hidden] .float-slow, html[data-hidden] .pulse, html[data-hidden] .garland i, html[data-hidden] .fireworks i { animation-play-state: paused; }

/* ---------- TOP 10 + "Sizning o'rningiz" ---------- */
.top10 { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.top-row {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; align-items: center; color: var(--text);
  background: var(--glass); border: 1px solid var(--glass-line); border-radius: 14px; padding: 8px 12px; box-shadow: 0 4px 14px rgba(3, 18, 38, 0.12);
}
.top-row.is-me { border: 2px solid var(--fox-500); background: var(--fox-50); }
.top-row .rank { width: 34px; height: 34px; border-radius: 11px; font-size: 0.95rem; }
.top-name { font-weight: 900; overflow-wrap: anywhere; line-height: 1.2; }
.top-id { display: inline-block; margin-top: 2px; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.04em; color: var(--text-soft); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.top-stats { display: grid; grid-auto-flow: column; gap: 12px; text-align: right; font-variant-numeric: tabular-nums; }
.top-stats b { display: block; font-size: var(--fs-m); color: var(--ice-800); line-height: 1.1; }
.top-stats small { font-size: 0.68rem; font-weight: 800; color: var(--text-soft); }
.my-place { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; }
.my-place .rank { width: 42px; height: 42px; font-size: 1rem; background: var(--accent); color: var(--accent-ink); }
.my-place-title { font-size: var(--fs-xs); font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fox-600); margin: 0 0 2px; }
@media (max-width: 420px) {
  .top-row { grid-template-columns: 34px minmax(0, 1fr) auto; gap: 8px; padding: 8px 10px; }
  .top-stats { gap: 8px; }
}

/* ---------- Profil: holat bloki ---------- */
.status-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.status-list li { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.status-list li:last-child { border-bottom: 0; }
.status-list svg { width: 20px; height: 20px; color: var(--ice-700); }
.status-list li > span { min-width: 0; overflow-wrap: anywhere; }
.status-list .st-label { font-weight: 800; }
.status-list .st-sub { display: block; font-size: var(--fs-xs); color: var(--text-soft); font-weight: 600; }
.next-day { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; }
.next-day .today-ico { width: 52px; height: 52px; border-radius: 16px; }
.next-day .today-ico svg { width: 26px; height: 26px; }
.badges.compact { grid-template-columns: repeat(auto-fill, minmax(min(100%, 118px), 1fr)); }
.badges.compact .badge-card { padding: 10px 8px; }
.badges.compact .badge-card .b-ico { width: 44px; height: 44px; margin-bottom: 6px; }
.badges.compact .badge-card .b-ico svg { width: 22px; height: 22px; }
details.more { border-radius: var(--radius); }
details.more > summary { cursor: pointer; list-style: none; min-height: var(--tap); display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 900; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::after { content: "+"; font-size: 1.3rem; color: var(--ice-700); }
details.more[open] > summary::after { content: "−"; }

/* =====================================================================
   BOSH SAHIFA ANIMATSIYALARI (faqat transform/opacity — GPU'da arzon, layout siljimaydi)
   O'chadi: prefers-reduced-motion, «Animatsiyani kamaytirish» (data-motion=off); tab ko'rinmasa — pauza.
   Tulki rasmlari faqat siljiydi/tebranadi — yuzi, rangi va shakli o'zgarmaydi.
   ===================================================================== */
/* Tulkilar: ikki tomondan kirib keladi, keyin mayin suzadi / tebranadi (opacity'siz — LCP kechikmaydi) */
/* Kirish → keyin bitta cheksiz tebranish (.settled, home.js). Ikkalasi bir vaqtda bo'lsa Chromium ularni kompozitorga bera
   olmaydi (TargetHasIncompatibleAnimations) va bo'sh turganda ham har kadrda asosiy oqim ishlaydi (o'lchandi: ~150 ms/s). */
.hero-enter-l { animation: fox-in-l 0.9s var(--ease) backwards; }
.hero-enter-r { animation: fox-in-r 0.9s var(--ease) 0.12s backwards; transform-origin: 50% 100%; }
.hero-enter-l.settled { animation: float 6s ease-in-out infinite; }
.hero-enter-r.settled { animation: sway 7s ease-in-out 0.08s infinite; }
@keyframes fox-in-l { from { transform: translate3d(-36px, 22px, 0) scale(0.94); } to { transform: none; } }
@keyframes fox-in-r { from { transform: translate3d(36px, 22px, 0) scale(0.94); } to { transform: none; } }
@keyframes sway { 0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); } 30% { transform: translate3d(0, -5px, 0) rotate(-1.4deg); } 70% { transform: translate3d(0, -3px, 0) rotate(1.2deg); } }
@media (hover: hover) {
  .home-anim .fox-frame img, .home-anim .fox-frame canvas.fox-px { transition: transform 0.35s var(--ease), opacity 0.35s var(--ease); }
  .home-anim .fox-frame:hover img, .home-anim .fox-frame:hover canvas.fox-px { transform: translate3d(0, -6px, 0) scale(1.03); }
}

/* Markaziy matn ketma-ket ko'tariladi (sarlavha — faqat transform, LCP xavfsiz) */
.home-anim .hero-center > * { animation: hero-up 0.65s var(--ease) both; }
.home-anim .hero-center > h1 { animation-name: hero-up-solid; animation-delay: 0.08s; }
.home-anim .hero-center > :nth-child(1) { animation-delay: 0s; }
.home-anim .hero-center > :nth-child(3) { animation-delay: 0.16s; }
.home-anim .hero-center > :nth-child(4) { animation-delay: 0.22s; }
.home-anim .hero-center > :nth-child(5) { animation-delay: 0.28s; }
.home-anim .hero-center > :nth-child(6) { animation-delay: 0.34s; }
.home-anim .hero-center > :nth-child(7) { animation-delay: 0.42s; }
@keyframes hero-up { from { opacity: 0; transform: translate3d(0, 18px, 0); } to { opacity: 1; transform: none; } }
@keyframes hero-up-solid { from { transform: translate3d(0, 18px, 0) scale(0.98); } to { transform: none; } }

/* Hisoblagich kataklari birin-ketin "sakraydi" */
.home-anim .cd-box { animation: cd-pop 0.55s var(--ease) both; }
.home-anim .cd-box:nth-child(1) { animation-delay: 0.35s; }
.home-anim .cd-box:nth-child(2) { animation-delay: 0.43s; }
.home-anim .cd-box:nth-child(3) { animation-delay: 0.51s; }
.home-anim .cd-box:nth-child(4) { animation-delay: 0.59s; }
@keyframes cd-pop { 0% { opacity: 0; transform: translate3d(0, 14px, 0) scale(0.9); } 70% { opacity: 1; transform: translate3d(0, -2px, 0) scale(1.03); } 100% { opacity: 1; transform: none; } }
.cd-num { display: block; will-change: auto; }

/* Mayin uchqunlar (yulduzchalar) — hero fonida miltillaydi */
.hero-sparkles { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.hero-sparkles i {
  position: absolute; width: 10px; height: 10px; opacity: 0;
  background: radial-gradient(circle, #fff 0 22%, rgba(255, 255, 255, 0) 60%);
  animation: sparkle 3.6s ease-in-out infinite;
}
.hero-sparkles i::before, .hero-sparkles i::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 2px; height: 14px; margin: -7px 0 0 -1px; border-radius: 2px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff, rgba(255, 255, 255, 0));
}
.hero-sparkles i::after { transform: rotate(90deg); }
:root[data-scheme="light"] .hero-sparkles i { background: radial-gradient(circle, #ffd166 0 22%, rgba(255, 209, 102, 0) 60%); }
:root[data-scheme="light"] .hero-sparkles i::before, :root[data-scheme="light"] .hero-sparkles i::after { background: linear-gradient(180deg, rgba(255, 190, 80, 0), #f4b13d, rgba(255, 190, 80, 0)); }
.hero-sparkles i:nth-child(1) { left: 8%; top: 18%; animation-delay: 0.2s; }
.hero-sparkles i:nth-child(2) { left: 22%; top: 8%; animation-delay: 1.4s; transform: scale(0.7); }
.hero-sparkles i:nth-child(3) { left: 31%; top: 62%; animation-delay: 2.3s; }
.hero-sparkles i:nth-child(4) { left: 44%; top: 12%; animation-delay: 0.8s; transform: scale(0.8); }
.hero-sparkles i:nth-child(5) { left: 57%; top: 70%; animation-delay: 2.9s; transform: scale(0.6); }
.hero-sparkles i:nth-child(6) { left: 66%; top: 6%; animation-delay: 1.9s; }
.hero-sparkles i:nth-child(7) { left: 78%; top: 40%; animation-delay: 0.5s; transform: scale(0.75); }
.hero-sparkles i:nth-child(8) { left: 90%; top: 16%; animation-delay: 2.6s; }
.hero-sparkles i:nth-child(9) { left: 14%; top: 82%; animation-delay: 3.2s; transform: scale(0.65); }
.hero-sparkles i:nth-child(10) { left: 51%; top: 38%; animation-delay: 1.1s; transform: scale(0.55); }
.hero-sparkles i:nth-child(11) { left: 86%; top: 74%; animation-delay: 1.6s; transform: scale(0.8); }
.hero-sparkles i:nth-child(12) { left: 4%; top: 46%; animation-delay: 2.1s; transform: scale(0.6); }
@keyframes sparkle { 0%, 100% { opacity: 0; scale: 0.4; rotate: 0deg; } 45% { opacity: 1; scale: 1.15; rotate: 45deg; } 60% { opacity: 0.8; scale: 1; } }
.home-anim .hero-grid { position: relative; z-index: 1; }
/* Tulkilar yon tomondan kirib kelganda gorizontal scroll paydo bo'lmasin (clip — scroll konteyner yaratmaydi). */
.home-anim { overflow-x: clip; }

/* Asosiy tugma ustidan yaltirash (har ~4.5 s) */
.btn.shine { overflow: hidden; isolation: isolate; }
.btn.shine::after {
  content: ""; position: absolute; top: -20%; bottom: -20%; left: 0; width: 40%; z-index: -1; pointer-events: none;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.55) 50%, rgba(255, 255, 255, 0) 100%);
  transform: translate3d(-160%, 0, 0) skewX(-18deg);
  animation: shine 4.5s ease-in-out 1.6s infinite;
}
@keyframes shine { 0%, 62% { transform: translate3d(-160%, 0, 0) skewX(-18deg); } 100% { transform: translate3d(340%, 0, 0) skewX(-18deg); } }

/* Pastdagi bo'limlar ekranga kirganda paydo bo'ladi (JS faqat animatsiya yoqiq bo'lsa .reveal qo'shadi) */
.reveal { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in-view { opacity: 1; transform: none; }
.reveal .char-card { transition: transform 0.8s var(--ease), box-shadow var(--dur) var(--ease); }
.reveal:not(.in-view) .char-card { transform: translate3d(0, 22px, 0) scale(0.97); }
.reveal .char-card.qorqiz { transition-delay: 0.12s; }

/* Bugungi sarguzasht ikonkasi va qahramon avatarlari — mayin harakat */
.home-anim ~ .section .today-ico svg, .section .today-card .today-ico svg { animation: bob 3.2s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); } 50% { transform: translate3d(0, -3px, 0) rotate(-6deg); } }
.char-ava { animation: float 5.5s ease-in-out infinite; }
.char-card.qorqiz .char-ava { animation-delay: 1.3s; }
@media (hover: hover) {
  .char-card { transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
  .char-card:hover { transform: translate3d(0, -4px, 0); box-shadow: 0 20px 40px rgba(3, 18, 38, 0.3); }
  .char-card:hover .char-ava { animation-play-state: paused; transform: rotate(-4deg) scale(1.05); transition: transform 0.3s var(--ease); }
}

/* Tab ko'rinmasa — barcha bezak animatsiyalari pauza */
html[data-hidden] .hero-enter-l, html[data-hidden] .hero-enter-r, html[data-hidden] .hero-sparkles i,
html[data-hidden] .btn.shine::after, html[data-hidden] .char-ava, html[data-hidden] .today-ico svg { animation-play-state: paused; }
/* Animatsiya kamaytirilgan: uchqunlar va yaltirash umuman ko'rinmaydi (global qoida animatsiyani o'chiradi) */
[data-motion="off"] .hero-sparkles, [data-motion="off"] .btn.shine::after { display: none; }
@media (prefers-reduced-motion: reduce) { .hero-sparkles, .btn.shine::after { display: none !important; } .reveal { opacity: 1; transform: none; } }

/* =====================================================================
   30 KUNLIK KALENDAR — 3 BOSQICH (1–10 / 11–20 / 21–30), ILON IZI YO'LI
   Yo'l SVG'si JS'da kartalarning haqiqiy joylashuvidan chiziladi (calendar.js → drawPath).
   Animatsiyalar faqat transform/opacity; [data-motion=off], prefers-reduced-motion va
   ko'rinmaydigan tab/ekrandan tashqarida — to'xtaydi.
   ===================================================================== */
.cal-page { display: grid; gap: clamp(12px, 2vw, 18px); }

/* ---------- Sarlavha: belgi + nom + progress ---------- */
.cal-head { display: grid; gap: 16px; align-items: center; grid-template-columns: auto minmax(0, 1fr); }
@media (min-width: 980px) { .cal-head { grid-template-columns: auto minmax(0, 1fr) auto; } }
.cal-badge {
  position: relative; width: 78px; height: 84px; border-radius: 18px; display: grid; justify-items: center; align-content: end;
  padding-bottom: 8px; background: linear-gradient(180deg, #fff, #eaf6fe); color: var(--winter-700);
  box-shadow: 0 10px 24px rgba(3, 18, 38, 0.22), inset 0 -3px 0 rgba(31, 99, 155, 0.12); overflow: hidden;
}
.cal-badge-top { position: absolute; inset: 0 0 auto; height: 24px; background: linear-gradient(180deg, #3d8fcb, #1f639b); display: grid; place-items: center; color: #fff; }
.cal-badge-top svg { width: 14px; height: 14px; }
.cal-badge b { font-size: 2rem; line-height: 1; font-weight: 900; }
.cal-badge small { font-weight: 800; font-size: 0.8rem; color: var(--ice-700); }
.cal-head-text { min-width: 0; }
.cal-title { margin: 0; font-size: clamp(1.6rem, 1.1rem + 2.2vw, 2.6rem); line-height: 1.1; font-weight: 900; color: var(--on-dark); text-shadow: 0 2px 10px rgba(3, 14, 30, 0.35); }
.cal-title:focus { outline: none; }
.cal-title span { color: var(--sky-200); }
:root[data-scheme="light"] .cal-title { text-shadow: none; }
:root[data-scheme="light"] .cal-title span { color: var(--winter-700); }
.cal-stage-pill {
  display: inline-flex; align-items: center; gap: 8px; margin: 8px 0 4px; padding: 4px 14px; border-radius: 999px;
  background: linear-gradient(180deg, #3d8fcb, #1f639b); color: #fff; font-weight: 900; font-size: var(--fs-s);
  box-shadow: 0 6px 16px rgba(31, 99, 155, 0.3);
}
.cal-stage-pill svg { width: 14px; height: 14px; opacity: 0.85; }
.cal-sub { margin: 0; color: var(--on-dark-soft); font-size: var(--fs-s); }
.cal-progress {
  grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-around; gap: 14px; flex-wrap: wrap;
  padding: 12px 18px; border-radius: 20px; background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--shadow-glass); color: var(--text);
}
@media (min-width: 980px) { .cal-progress { grid-column: auto; min-width: 380px; } }
.cal-stat { display: flex; align-items: center; gap: 10px; }
.cal-stat small { display: block; color: var(--text-soft); font-weight: 800; font-size: var(--fs-xs); }
.cal-stat strong { font-size: 1.15rem; font-weight: 900; }
.cal-stat-ico { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.cal-stat-ico svg { width: 20px; height: 20px; }
.cal-stat.ok .cal-stat-ico { background: var(--ok-bg); color: var(--ok-ink); box-shadow: inset 0 0 0 1px var(--ok-line); }
.cal-stat.left .cal-stat-ico { background: var(--ice-100); color: var(--ice-700); box-shadow: inset 0 0 0 1px var(--ice-200); }
.cal-ring {
  --p: 0; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: conic-gradient(#22a565 calc(var(--p) * 1%), var(--ice-200) 0);
}
.cal-ring span { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); font-weight: 900; font-size: 0.95rem; color: var(--text); }

/* ---------- Ma'lumot satri ---------- */
.cal-strip {
  margin: 0; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 10px; text-align: center;
  padding: 10px 16px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-line); color: var(--text); font-size: var(--fs-s);
  box-shadow: var(--shadow-sm);
}
.cal-strip svg { width: 18px; height: 18px; color: var(--ice-700); flex: none; }
.cal-strip strong { color: var(--fox-600); }
.cal-strip.is-warn strong { color: var(--warn-ink); }
.cal-strip .spark { color: var(--sky-400); font-size: 0.8rem; }
@media (max-width: 560px) { .cal-strip { border-radius: 18px; } .cal-strip .spark { display: none; } }

/* ---------- Bosqich tablari ---------- */
.stage-nav { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.stage-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--shadow-sm); }
.stage-tab {
  display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 6px 16px; border-radius: 999px; border: 0; cursor: pointer;
  background: transparent; color: var(--ice-800); font: inherit; font-weight: 900; font-size: var(--fs-s); white-space: nowrap;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.stage-tab svg { width: 14px; height: 14px; }
.stage-tab:hover { background: var(--ice-100); }
.stage-tab[aria-selected="true"] { background: linear-gradient(180deg, #3d8fcb, #1f639b); color: #fff; box-shadow: 0 6px 16px rgba(31, 99, 155, 0.35); }
.stage-tab:focus-visible, .stage-arrow:focus-visible, .trail-card:focus-visible, .trail-end.next:focus-visible { outline: 3px solid var(--focus-on-light); outline-offset: 3px; }
.stage-arrow {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: var(--glass); border: 1px solid var(--glass-line); color: var(--ice-800); box-shadow: var(--shadow-sm);
}
.stage-arrow svg { width: 20px; height: 20px; }
.stage-arrow[disabled] { opacity: 0.4; cursor: default; }
.stage-dots { display: inline-flex; align-items: center; gap: 6px; font-weight: 900; font-size: var(--fs-xs); color: var(--on-dark-soft); }
.stage-dots-i { display: inline-flex; gap: 6px; }
.stage-dots i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: 0.35; }
.stage-dots i.on { opacity: 1; width: 20px; border-radius: 4px; background: var(--sky-400); }
@media (max-width: 560px) {
  /* Telefonda: faqat tablar (surish ham ishlaydi) — strelkalar qatorni buzmasin */
  .stage-nav { gap: 8px; }
  .stage-arrow { display: none; }
  .stage-tabs { width: 100%; }
  .stage-tab { flex: 1 1 0; justify-content: center; padding: 6px 8px; font-size: var(--fs-xs); }
  .stage-tab svg { display: none; }
  .stage-dots { width: 100%; justify-content: center; }
}
.stage-nav { scroll-margin-top: 84px; }

/* ---------- Ilon izi paneli ---------- */
.trail-host { touch-action: pan-y; overflow-x: clip; overflow-clip-margin: 12px; }   /* kirish animatsiyasi (translateX) gorizontal scroll yaratmasin */
.trail {
  position: relative; isolation: isolate; overflow: clip;
  padding: 64px clamp(30px, 4vw, 48px) 118px; border-radius: 28px;
  background:
    radial-gradient(120% 60% at 50% 115%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0) 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.78) 0%, rgba(232, 245, 253, 0.9) 100%);
  border: 1px solid var(--glass-line); box-shadow: var(--shadow-glass);
}
/* Qor uyumlari (pastda) — bitta psevdo-element, rasm emas */
.trail::after {
  content: ''; position: absolute; inset: auto 0 0; height: 56px; z-index: 0; pointer-events: none;
  background:
    radial-gradient(40% 70% at 12% 100%, #fff 60%, rgba(255, 255, 255, 0) 62%),
    radial-gradient(34% 60% at 52% 100%, #f4fbff 60%, rgba(255, 255, 255, 0) 62%),
    radial-gradient(38% 80% at 92% 100%, #fff 60%, rgba(255, 255, 255, 0) 62%);
  opacity: 0.9;
}
.trail.enter-next { animation: trail-in-r 0.42s var(--ease) both; }
.trail.enter-prev { animation: trail-in-l 0.42s var(--ease) both; }
@keyframes trail-in-r { from { opacity: 0; transform: translate3d(28px, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes trail-in-l { from { opacity: 0; transform: translate3d(-28px, 0, 0); } to { opacity: 1; transform: none; } }

.trail-svg { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: visible; }
.trail-svg path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.tp-glow { stroke: rgba(97, 184, 232, 0.28); stroke-width: 26; }
.tp-core { stroke-width: 10; }
.tp-dots { stroke: rgba(255, 255, 255, 0.95); stroke-width: 3; stroke-dasharray: 0.5 16; }
.trail-chevrons { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.chev { position: absolute; transform: translate(-50%, -50%); color: #fff; display: grid; place-items: center; filter: drop-shadow(0 1px 2px rgba(31, 99, 155, 0.45)); }
.chev svg { width: 18px; height: 18px; stroke-width: 3; }
.chev.rev svg { transform: rotate(180deg); }
.trail-runner {
  display: none; position: absolute; left: 0; top: 0; z-index: 2; width: 14px; height: 14px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, #fff 0 35%, rgba(140, 230, 255, 0.9) 36% 60%, rgba(140, 230, 255, 0) 70%);
  offset-rotate: 0deg; offset-distance: 0%;
}
.trail-runner.on { display: block; animation: trail-run 16s linear infinite; }
@keyframes trail-run { from { offset-distance: 0%; opacity: 0; } 4% { opacity: 1; } 94% { opacity: 1; } to { offset-distance: 100%; opacity: 0; } }
.trail-start {
  position: absolute; z-index: 3; width: 30px; height: 30px; border-radius: 50%; transform: translate(-50%, -50%);
  display: grid; place-items: center; background: linear-gradient(180deg, #ffe08a, #f6b73c); color: #7a3d00;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.85), 0 6px 14px rgba(122, 61, 0, 0.3);
}
.trail-start svg { width: 16px; height: 16px; }

.trail-grid {
  --cols: 5; position: relative; z-index: 3; list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); column-gap: clamp(18px, 3vw, 40px); row-gap: clamp(44px, 6vw, 70px);
}
.trail-cell { display: flex; justify-content: center; min-width: 0; }

/* ---------- Kun kartasi ---------- */
.trail-card {
  position: relative; width: min(100%, 176px); min-width: 0; aspect-ratio: 1 / 1; display: grid; align-content: center; justify-items: center; gap: 2px;
  padding: 12px 8px 10px; border-radius: 24px; border: 2px solid rgba(159, 203, 236, 0.9); cursor: pointer; font: inherit; color: var(--text); text-align: center;
  background: linear-gradient(165deg, #ffffff 0%, #eef8fe 100%);
  box-shadow: 0 10px 24px rgba(31, 99, 155, 0.16), inset 0 1px 0 #fff;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) { .trail-card:hover { transform: translate3d(0, -4px, 0); box-shadow: 0 18px 34px rgba(31, 99, 155, 0.24), inset 0 1px 0 #fff; } }
.trail-card:active { transform: scale(0.97); }
.tc-num { font-size: clamp(2.1rem, 1.5rem + 1.8vw, 3.1rem); font-weight: 900; line-height: 1; color: var(--ice-800); }
.tc-date { font-size: var(--fs-xs); font-weight: 800; color: var(--text-soft); }
.tc-score { font-size: var(--fs-xs); font-weight: 900; color: var(--ok-ink); }
.tc-status {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px; margin-top: 6px; padding: 3px 9px; border-radius: 999px; max-width: 100%;
  font-size: 0.72rem; font-weight: 900; line-height: 1.2; background: var(--ice-100); color: var(--ice-800); overflow-wrap: break-word;
}
.tc-status svg { width: 12px; height: 12px; flex: none; }
.tc-badge {
  position: absolute; top: -11px; right: -9px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ice-500); color: #fff; box-shadow: 0 0 0 3px #fff, 0 6px 12px rgba(3, 18, 38, 0.2);
}
.tc-badge svg { width: 17px; height: 17px; }

/* Holatlar — rang + ikonka + matn */
.trail-card.is-completed { border-color: #7fd3a6; background: linear-gradient(165deg, #f1fbf5 0%, #ffffff 100%); opacity: 0.92; }
.trail-card.is-completed .tc-num { color: var(--ok-ink); }
.trail-card.is-completed .tc-badge { background: #22a565; }
.trail-card.is-completed .tc-status { background: var(--ok-bg); color: var(--ok-ink); }

.trail-card.st-today { border-color: var(--fox-500); background: linear-gradient(165deg, #fff3e2 0%, #ffffff 75%); box-shadow: 0 0 0 4px rgba(243, 139, 35, 0.22), 0 16px 34px rgba(243, 139, 35, 0.3); }
.trail-card.st-today .tc-num { color: var(--fox-600); }
.trail-card.st-today .tc-badge { background: linear-gradient(180deg, #ffb35c, var(--fox-600)); }
.trail-card.st-today .tc-status { background: var(--fox-100); color: #7a3d00; }
/* Bugungi kun: bitta yumshoq "nafas oluvchi" halqa (faqat transform/opacity) */
.trail-card.is-today::before {
  content: ''; position: absolute; inset: -9px; border-radius: 30px; border: 3px solid rgba(249, 162, 63, 0.75); pointer-events: none;
  animation: today-breathe 2.8s ease-in-out infinite;
}
@keyframes today-breathe { 0%, 100% { opacity: 0.25; transform: scale(0.98); } 50% { opacity: 1; transform: scale(1.03); } }


.trail-card.is-locked { border-style: dashed; background: linear-gradient(165deg, rgba(255, 255, 255, 0.96) 0%, #e3f2fc 100%); }
.trail-card.is-locked .tc-num { color: var(--ice-700); }
.trail-card.is-locked .tc-badge { background: linear-gradient(180deg, #7cc4ee, var(--ice-500)); }

.trail-card.is-missed { border-color: var(--mute-line); background: linear-gradient(165deg, #f3f5f8 0%, #e9edf2 100%); opacity: 0.82; }
.trail-card.is-missed .tc-num { color: var(--mute-ink); }
.trail-card.is-missed .tc-badge { background: #8b97a6; }
.trail-card.is-missed .tc-status { background: var(--mute-bg); color: var(--mute-ink); }

.trail-card.is-paused { border-color: var(--warn-line); }
.trail-card.is-paused .tc-badge { background: #c98a1c; }
.trail-card.is-paused .tc-status { background: var(--warn-bg); color: var(--warn-ink); }
.trail-card.is-review { border-color: var(--rev-line); }
.trail-card.is-review .tc-badge { background: #7a5cc2; }
.trail-card.is-review .tc-status { background: var(--rev-bg); color: var(--rev-ink); }
.trail-card.is-maintenance { border-color: var(--bad-line); }
.trail-card.is-maintenance .tc-badge { background: #c2463a; }
.trail-card.is-maintenance .tc-status { background: var(--bad-bg); color: var(--bad-ink); }
.trail-card.is-opened { border-color: var(--fox-500); }
.trail-card.is-opened .tc-badge { background: var(--fox-600); }
/* Kunga hali topshiriq qo'shilmagan — qaysi sana bo'lishidan qat'i nazar "bo'sh" ko'rinish (qulf/o'tkazilgan rangidan ustun) */
.trail-card.st-empty { opacity: 1; border-style: dashed; border-color: rgba(159, 203, 236, 0.85); background: linear-gradient(165deg, rgba(255, 255, 255, 0.92) 0%, rgba(238, 246, 252, 0.92) 100%); box-shadow: 0 6px 16px rgba(31, 99, 155, 0.1), inset 0 1px 0 #fff; }
.trail-card.st-empty .tc-num { color: #5b7b98; }
.trail-card.st-empty .tc-badge { background: #9fb6ca; }
.trail-card.st-empty .tc-status { background: var(--mute-bg); color: var(--mute-ink); }
/* Bugun, lekin topshiriq yo'q — "bugun" ekanini baribir ko'rsatamiz (iliq chegara + halqa) */
.trail-card.is-today.st-empty { border-color: var(--fox-400); }
.trail-card.is-today.st-empty .tc-num { color: var(--fox-600); }
.st-empty { background: var(--mute-bg); color: var(--mute-ink); border-color: var(--mute-line); }

/* ---------- Yo'l oxiri: keyingi bosqich / yakuniy sovg'a ---------- */
.trail-end { position: absolute; z-index: 4; transform: translate(-50%, -50%); }
.trail-end.next {
  display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 6px 16px; border-radius: 999px; cursor: pointer; white-space: nowrap;
  border: 2px solid #fff; background: linear-gradient(180deg, #3d8fcb, #1f639b); color: #fff; font: inherit; font-weight: 900; font-size: var(--fs-s);
  box-shadow: 0 8px 18px rgba(31, 99, 155, 0.35);
}
.trail-end.next svg { width: 18px; height: 18px; }
@media (hover: hover) { .trail-end.next:hover { filter: brightness(1.08); } }
.trail-end.final { display: grid; justify-items: center; gap: 2px; pointer-events: none; }
.trail-gift { display: block; width: 62px; height: 62px; filter: drop-shadow(0 8px 12px rgba(122, 61, 0, 0.25)); animation: gift-bob 3.4s ease-in-out infinite; }
@keyframes gift-bob { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -4px, 0); } }
.goal-flag {
  padding: 4px 12px; border-radius: 10px; background: linear-gradient(180deg, #ffd166, #f6b73c); color: #5a2e00; font-weight: 900; font-size: var(--fs-xs);
  white-space: nowrap; box-shadow: 0 6px 14px rgba(122, 61, 0, 0.25);
}

/* ---------- Bezaklar (bosilmaydi, ekran o'quvchidan yashirin) ---------- */
.trail-deco { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.trail-sign {
  position: absolute; top: 14px; left: clamp(14px, 2.5vw, 30px); display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 14px 5px;
  border-radius: 10px; transform: rotate(-3deg); color: #fff7e6;
  background: linear-gradient(180deg, #b97c43 0%, #8a5528 100%); box-shadow: 0 6px 14px rgba(74, 40, 10, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.trail-sign::before { content: ''; position: absolute; left: 6px; right: 6px; top: -6px; height: 10px; border-radius: 10px 10px 6px 6px; background: #fff; box-shadow: 0 1px 2px rgba(31, 99, 155, 0.2); }
.trail-sign b { font-weight: 900; font-size: 1.05rem; }
.trail-sign small { font-weight: 800; font-size: 0.78rem; opacity: 0.9; }
.trail-lantern { position: absolute; width: 26px; height: 64px; display: none; }
.trail[data-cols="5"] .trail-lantern { display: block; }
.trail-lantern.l1 { top: 0; right: 10px; }
.trail-lantern.l2 { top: calc(50% - 64px); left: 8px; }
.lantern-halo { transform-box: fill-box; transform-origin: center; animation: lantern-glow 3.2s ease-in-out infinite; }
/* Bezak sprite'lari (piksel canvas yoki zaxira SVG) — o'z o'rami (span) o'lchamini to'ldiradi */
:is(.trail-lantern, .trail-snowman, .trail-gift, .trail-crystal) > :is(canvas, svg) { display: block; width: 100%; height: 100%; }
.decor-px { opacity: 0; transition: opacity 0.3s var(--ease); }
.decor-px[data-px-state="ok"] { opacity: 1; }
/* Fonar nuri: piksel tasvir ustida mayin "nafas" (faqat opacity) */
.trail-lantern::before {
  content: ''; position: absolute; left: 50%; top: 25%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 211, 107, 0.5) 0%, rgba(255, 211, 107, 0) 70%); animation: lantern-glow 3.2s ease-in-out infinite;
}
/* Muz kristallari (yo'l tepasida, faqat keng ekranda) */
.trail-crystal { position: absolute; width: 28px; height: 28px; display: none; opacity: 0.85; animation: crystal-twinkle 4.2s ease-in-out infinite; }
.trail[data-cols="5"] .trail-crystal { display: block; }
.trail-crystal.c1 { top: 16px; left: 30%; }
.trail-crystal.c2 { top: 24px; left: 52%; width: 22px; height: 22px; animation-delay: 1.4s; }
.trail-crystal.c3 { top: 12px; left: 72%; width: 18px; height: 18px; animation-delay: 2.6s; }
@keyframes crystal-twinkle { 0%, 100% { opacity: 0.55; transform: scale(0.94); } 50% { opacity: 1; transform: scale(1.04); } }
/* Panel pastidagi qishki manzara (tog'lar, archazor, qor) — piksel plitka; CSS qor uyumlari faqat zaxira */
.trail-scenery { position: absolute; left: 0; right: 0; bottom: 0; height: 128px; z-index: 0; pointer-events: none; }
.trail-scenery > canvas { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity 0.4s var(--ease); }
.trail-scenery > canvas[data-px-state="ok"] { opacity: 1; }
.trail.has-scenery::after { display: none; }
@media (max-width: 700px) { .trail-scenery { height: 88px; } }
@keyframes lantern-glow { 0%, 100% { opacity: 0.45; } 50% { opacity: 1; } }
.trail-snowman { position: absolute; right: clamp(10px, 2vw, 26px); bottom: 6px; width: 92px; height: 115px; display: none; }
.trail[data-cols="5"] .trail-snowman { display: block; }

/* ---------- Tor ekran: 3 / 2 ustunli zig-zag ---------- */
@media (max-width: 700px) {
  .trail { padding: 58px 22px 104px; border-radius: 22px; }
  .trail-grid { column-gap: 22px; row-gap: 40px; }
  .trail-card { aspect-ratio: 1 / 0.86; width: 100%; border-radius: 20px; }
  .trail-card.is-today::before { border-radius: 26px; }
  .tc-num { font-size: 2.1rem; }
  .tc-badge { width: 30px; height: 30px; top: -10px; right: -7px; }
  .tc-badge svg { width: 15px; height: 15px; }
  .trail-start { width: 24px; height: 24px; }
  .trail-start svg { width: 13px; height: 13px; }
  .tc-status svg { display: none; }
  .tc-status { padding: 3px 8px; }
  .tp-glow { stroke-width: 20; }
  .tp-core { stroke-width: 8; }
}
@media (max-width: 380px) { .tc-status { font-size: 0.68rem; padding: 2px 7px; } }

/* ---------- Tun rejimi ---------- */
:root[data-scheme="dark"] .trail {
  background:
    radial-gradient(120% 60% at 50% 115%, rgba(140, 200, 245, 0.18) 0%, rgba(140, 200, 245, 0) 55%),
    linear-gradient(180deg, rgba(22, 52, 92, 0.94) 0%, rgba(14, 36, 68, 0.96) 100%);
}
:root[data-scheme="dark"] .trail::after {
  background:
    radial-gradient(40% 70% at 12% 100%, rgba(214, 236, 252, 0.22) 60%, rgba(214, 236, 252, 0) 62%),
    radial-gradient(34% 60% at 52% 100%, rgba(214, 236, 252, 0.16) 60%, rgba(214, 236, 252, 0) 62%),
    radial-gradient(38% 80% at 92% 100%, rgba(214, 236, 252, 0.22) 60%, rgba(214, 236, 252, 0) 62%);
}
:root[data-scheme="dark"] .tp-glow { stroke: rgba(97, 184, 232, 0.22); }
:root[data-scheme="dark"] .trail-card { background: linear-gradient(165deg, rgba(36, 72, 118, 0.98), rgba(24, 52, 90, 0.98)); border-color: rgba(150, 196, 232, 0.35); box-shadow: 0 10px 24px rgba(0, 8, 20, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06); }
:root[data-scheme="dark"] .tc-num { color: #e6f2fc; }
:root[data-scheme="dark"] .tc-date { color: #b3cbe0; }
:root[data-scheme="dark"] .tc-status { background: rgba(150, 196, 232, 0.16); color: #d3e9fa; }
:root[data-scheme="dark"] .tc-badge { box-shadow: 0 0 0 3px #143058, 0 6px 12px rgba(0, 0, 0, 0.35); }
:root[data-scheme="dark"] .trail-card.is-completed { background: linear-gradient(165deg, #134434, #10304f); border-color: var(--ok-line); }
:root[data-scheme="dark"] .trail-card.is-completed .tc-num, :root[data-scheme="dark"] .tc-score { color: #9fe6c2; }
:root[data-scheme="dark"] .trail-card.is-completed .tc-status { background: var(--ok-bg); color: var(--ok-ink); }
:root[data-scheme="dark"] .trail-card.st-today { background: linear-gradient(165deg, #4a2f12, #17345c 75%); border-color: var(--fox-500); }
:root[data-scheme="dark"] .trail-card.st-today .tc-num { color: #ffc57e; }
:root[data-scheme="dark"] .trail-card.st-today .tc-status { background: rgba(243, 139, 35, 0.22); color: #ffd79c; }
:root[data-scheme="dark"] .trail-card.is-locked { background: linear-gradient(165deg, rgba(30, 64, 106, 0.96), rgba(20, 46, 82, 0.96)); }
:root[data-scheme="dark"] .trail-card.is-locked .tc-num { color: #bfe4f8; }
:root[data-scheme="dark"] .trail-card.is-missed { background: linear-gradient(165deg, #263547, #1f2c3c); border-color: var(--mute-line); }
:root[data-scheme="dark"] .trail-card.is-missed .tc-num { color: #c3cedb; }
:root[data-scheme="dark"] .trail-card.is-missed .tc-status { background: var(--mute-bg); color: var(--mute-ink); }
:root[data-scheme="dark"] .trail-card.st-empty { background: linear-gradient(165deg, rgba(28, 58, 96, 0.9), rgba(20, 44, 78, 0.9)); border-color: rgba(150, 196, 232, 0.3); }
:root[data-scheme="dark"] .trail-card.st-empty .tc-num { color: #9fbbd4; }
:root[data-scheme="dark"] .trail-card.st-empty .tc-badge { background: #4f6d8a; }
:root[data-scheme="dark"] .trail-card.st-empty .tc-status { background: var(--mute-bg); color: var(--mute-ink); }
:root[data-scheme="dark"] .trail-card.is-today.st-empty { border-color: var(--fox-500); }
:root[data-scheme="dark"] .trail-card.is-today.st-empty .tc-num { color: #ffc57e; }
:root[data-scheme="dark"] .cal-badge { background: linear-gradient(180deg, #1f4675, #163659); color: #e6f2fc; }
:root[data-scheme="dark"] .cal-badge small { color: #b3cbe0; }
:root[data-scheme="dark"] .cal-ring { background: conic-gradient(#3ccf86 calc(var(--p) * 1%), #2a4f7a 0); }
:root[data-scheme="dark"] .cal-stat.left .cal-stat-ico { background: #1d4472; color: #bfe4f8; box-shadow: none; }
:root[data-scheme="dark"] .cal-strip strong { color: #ffc57e; }
:root[data-scheme="dark"] .cal-strip svg { color: #8ccbff; }
:root[data-scheme="dark"] .stage-tab { color: #d3e9fa; }
:root[data-scheme="dark"] .stage-tab:hover { background: rgba(150, 196, 232, 0.14); }
:root[data-scheme="dark"] .stage-tab[aria-selected="true"] { background: linear-gradient(180deg, #8ccbff, #4fa6e0); color: #081a33; }
:root[data-scheme="dark"] .stage-arrow { color: #d3e9fa; }
:root[data-scheme="dark"] .trail-end.next { border-color: #143058; }
:root[data-scheme="dark"] .trail-start { box-shadow: 0 0 0 4px rgba(20, 48, 88, 0.9), 0 6px 14px rgba(0, 0, 0, 0.35); }
:root[data-scheme="dark"] .trail-sign::before { background: #e6f2fc; }

/* ---------- Harakat: o'chirilganda / ko'rinmaganda ---------- */
html[data-hidden] .trail-runner, html[data-hidden] .trail-card.is-today::before, html[data-hidden] .lantern-halo, html[data-hidden] .trail-gift,
html[data-hidden] .trail-lantern::before, html[data-hidden] .trail-crystal,
.trail.is-offscreen .trail-runner, .trail.is-offscreen .trail-card.is-today::before, .trail.is-offscreen .lantern-halo, .trail.is-offscreen .trail-gift,
.trail.is-offscreen .trail-lantern::before, .trail.is-offscreen .trail-crystal { animation-play-state: paused; }
[data-motion="off"] .trail-runner { display: none !important; }
[data-motion="off"] .trail-card.is-today::before { opacity: 0.8; }
@media (prefers-reduced-motion: reduce) { .trail-runner { display: none !important; } .trail-card.is-today::before { opacity: 0.8; transform: none; } }
.day-sheet-time { display: flex; align-items: center; gap: 6px; }
.day-sheet-time svg { width: 16px; height: 16px; flex: none; }
.chip-date { background: var(--ice-50); color: var(--ice-800); border-color: var(--ice-200); }
.day-sheet-actions { flex-wrap: wrap; gap: 10px; }
.day-sheet-title { margin: 0; font-size: var(--fs-l); }
.day-sheet-rules { padding: 10px 12px; border-radius: 14px; background: var(--ice-50); border: 1px solid var(--ice-200); }
:root[data-scheme="dark"] .day-sheet-rules, :root[data-scheme="dark"] .chip-date { background: #1d4472; border-color: #2a5d8f; color: #d3e9fa; }

/* Telefon: progress — ixcham bir qator (Bajarilgan | % | Qolgan) */
@media (max-width: 560px) {
  .cal-head { gap: 12px; }
  .cal-badge { width: 64px; height: 70px; border-radius: 16px; }
  .cal-badge b { font-size: 1.6rem; }
  .cal-badge-top { height: 20px; }
  .cal-progress { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; padding: 10px 12px; }
  .cal-stat { gap: 8px; }
  .cal-stat.left { justify-content: flex-end; text-align: right; flex-direction: row-reverse; }
  .cal-stat-ico { width: 32px; height: 32px; }
  .cal-stat-ico svg { width: 17px; height: 17px; }
  .cal-stat strong { font-size: 1rem; }
  .cal-ring { width: 56px; height: 56px; }
  .cal-ring span { width: 42px; height: 42px; font-size: 0.85rem; }
}
@media (max-width: 360px) { .cal-stat-ico { display: none; } }

/* =====================================================================
   BOSH SAHIFA HERO: tugmalar o'rnida — AYNAN BUGUNGI KUNNING O'YINI (home.js → todayGame)
   ===================================================================== */
.hero-game-slot { width: 100%; }
.hero-game {
  width: min(100%, 580px); margin-inline: auto; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 6px 14px;
  padding: 14px 16px; border-radius: 22px; text-align: left; color: var(--text);
  background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--shadow-glass);
}
.hg-ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(145deg, var(--fox-100), #fff); color: var(--fox-600); box-shadow: inset 0 0 0 1px var(--fox-300); }
.hg-ico svg { width: 28px; height: 28px; }
.hg-body { min-width: 0; }
.hg-kicker { margin: 0; font-size: var(--fs-xs); font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; color: #a65300; }
.hg-title { margin: 2px 0 0; font-size: var(--fs-l); font-weight: 900; line-height: 1.2; color: var(--text); overflow-wrap: anywhere; text-shadow: none; }
.hg-text { margin: 4px 0 0; font-size: var(--fs-s); color: var(--text-soft); }
.hg-action { display: flex; }
.hg-foot { grid-column: 1 / -1; margin: 4px 0 0; padding-top: 8px; border-top: 1px dashed var(--ice-200); font-size: var(--fs-xs); color: var(--text-soft); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.hero-game.is-wait .hg-ico { background: linear-gradient(145deg, var(--ice-100), #fff); color: var(--ice-700); box-shadow: inset 0 0 0 1px var(--ice-200); }
.hero-game.is-done .hg-ico { background: var(--ok-bg); color: var(--ok-ink); box-shadow: inset 0 0 0 1px var(--ok-line); }
.hero-game.is-warn .hg-ico { background: var(--warn-bg); color: var(--warn-ink); box-shadow: inset 0 0 0 1px var(--warn-line); }
.hg-sk { display: block; height: 22px; width: min(260px, 70%); margin-top: 6px; }
.hg-sk-btn { display: block; width: 150px; height: 58px; border-radius: 999px; }
@media (max-width: 560px) {
  .hero-game { grid-template-columns: auto minmax(0, 1fr); padding: 12px; }
  .hg-ico { width: 44px; height: 44px; border-radius: 14px; }
  .hg-ico svg { width: 24px; height: 24px; }
  .hg-action { grid-column: 1 / -1; }
  .hg-action .btn { width: 100%; }
  .hg-sk-btn { width: 100%; }
}
:root[data-scheme="dark"] .hg-kicker { color: var(--fox-600); }
:root[data-scheme="dark"] .hg-ico { background: linear-gradient(145deg, var(--fox-100), var(--surface)); }
:root[data-scheme="dark"] .hero-game.is-wait .hg-ico { background: linear-gradient(145deg, var(--ice-100), var(--surface)); }
html[data-hidden] .hero-game .pulse { animation-play-state: paused; }
/* Hero ichidagi umumiy ".hero p" (katta, och rang) o'yin kartasiga ta'sir qilmasin */
.hero .hero-game p { max-width: none; font-size: var(--fs-s); color: var(--text-soft); }
.hero .hero-game .hg-kicker { font-size: var(--fs-xs); color: #a65300; }
:root[data-scheme="dark"] .hero .hero-game .hg-kicker { color: var(--fox-600); }
.hero .hero-game .hg-foot { font-size: var(--fs-xs); }

/* =====================================================================
   QISHKI XARITA — BOSH SAHIFA (js/pages/map.js). 3 bosqich, oltin S-yo'l, qor uyumlari, darvozalar.
   Qatlamlar (z): osmon/qor 1 → bezaklar 2 → tun pardasi 3 → qor yog'ishi 4 → doska (yo'l + kunlar + darvoza) 5 →
   sarlavha 6 → HUD 8 → ko'rinish menyusi 9. Bezaklar hech qachon kun tugmasi ustiga chiqmaydi (doska ulardan yuqorida).
   Animatsiyalar faqat transform/opacity (kompozitorda); [data-motion=off], prefers-reduced-motion, yashirin tab — to'xtaydi.
   ===================================================================== */
/* Geometriya birinchi kadrdanoq bir xil (CLS 0): theme-boot bosh sahifada html.route-map qo'yadi → index.html dagi boshlang'ich
   skeleton sahna balandligidagi "osmon" bo'ladi; map.js keyin .wm-loading (o'sha balandlik) → .wm-scene (o'sha balandlik).
   main kamida ekran balandligida — footer yuklanish paytida ekranga chiqib, keyin pastga "qochmaydi". */
main.is-map, html.route-map body.app main { max-width: none; padding: 0; min-height: 100vh; min-height: 100svh; }
html.route-map body.app main > .skeleton { margin: 0; padding: 0; border-radius: 0; }
html.route-map body.app main > .skeleton > * { display: none; }
/* xarita sahifasi: ortdagi umumiy qor va yulduzlar animatsiyasi kerak emas (sahna ularni to'liq yopadi) — kamroq GPU qatlami */
body.on-map .winter-bg .wb-snow, body.on-map .winter-bg .wb-stars { display: none; }
main.is-map > .section { max-width: var(--page-max); margin-left: auto; margin-right: auto; padding-left: 16px; padding-right: 16px; }
.wm-loading, html.route-map body.app main > .skeleton { background: linear-gradient(180deg, #8ea6e6 0%, #cfd8f5 48%, #eef6fd 52%, #dcebf8 100%); }
:root[data-scheme="dark"] .wm-loading, :root[data-scheme="dark"].route-map body.app main > .skeleton {
  background: linear-gradient(180deg, #0b1838 0%, #263a72 48%, #9fb3dc 52%, #7f95c6 100%);
}

.wm { position: relative; --lamp-glow: 0.5; --lamp-size: 240%; }
/* Tun: oy chiqadi, fonarlar / uy derazalari / darvoza va portal chiroqlari / yo'l nuri — kunduzgidan yorqinroq (bitta token). */
:root[data-scheme="dark"] .wm { --lamp-glow: 1; --lamp-size: 340%; }
/* Sahna balandligi (map.js layoutMode() bilan bir xil media):
   wide/mid — ekran balandligi − header (~65 px): sarlavha, yo'l, 10 kun, darvoza va HUD bir qarashda ko'rinadi (scroll'siz);
   tall (telefon / portret) — uzunroq, tabiiy vertikal scroll; portret planshet — ekran balandligida. */
.wm-scene, .wm-loading, html.route-map body.app main > .skeleton {
  height: max(480px, calc(100vh - 65px));   /* eski WebView (svh yo'q) uchun zaxira */
  height: max(480px, calc(100svh - 65px));
}
@media (max-width: 699px) and (max-aspect-ratio: 1/1) {
  .wm-scene, .wm-loading, html.route-map body.app main > .skeleton { height: max(calc(100vh - 57px), 176vw); height: max(calc(100svh - 57px), 176vw); }   /* telefon header: 56 + 1px */
}
/* telefon yonboshlab (past landshaft ekran): kompyuter ko'rinishi, balandligi aynan ekranga teng — pasti kesilmaydi, scroll shart emas */
@media (orientation: landscape) and (max-height: 560px) {
  .wm-scene, .wm-loading, html.route-map body.app main > .skeleton { height: max(220px, calc(100vh - 65px)); height: max(220px, calc(100svh - 65px)); }
}
@media (min-width: 700px) and (max-aspect-ratio: 1/1) {   /* header 64 + 1 px (2026-11-19: 60 edi → 5 px ortiqcha scroll) */
  .wm-scene, .wm-loading, html.route-map body.app main > .skeleton { height: max(560px, calc(100vh - 65px)); height: max(560px, calc(100svh - 65px)); }
}
.wm-scene {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, #7f95e0 0%, #c6b8ea 34%, #f4d3e4 50%, #f4f9ff 52%, #dbeaf8 100%);
}
:root[data-scheme="dark"] .wm-scene { background: linear-gradient(180deg, #071533 0%, #1b2d63 40%, #4b4a8a 50%, #9fb3dc 52%, #7f95c6 100%); }
.wm-stage-2 .wm-scene { background: linear-gradient(180deg, #2f7fe0 0%, #79bbf4 34%, #d8eefc 50%, #f4f9ff 52%, #dbeaf8 100%); }
.wm-stage-3 .wm-scene { background: linear-gradient(180deg, #2a3f8f 0%, #7a63bd 34%, #f2a3a8 50%, #fff1e6 52%, #e6e2f6 100%); }
:root[data-scheme="dark"] :is(.wm-stage-2, .wm-stage-3) .wm-scene { background: linear-gradient(180deg, #06142e 0%, #1a2b63 40%, #3f4a8c 50%, #9fb3dc 52%, #7f95c6 100%); }

/* 1) panorama (osmon, tog'lar) — langar pastda (ufq kunlar qatori ortida); rejimga qarab balandligi */
.wm-sky { position: absolute; left: 0; right: 0; top: 0; height: 50%; z-index: 1; }
.m-mid .wm-sky { height: 46%; }
.m-tall .wm-sky { height: 38%; }
.wm-sky > canvas { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity 0.5s var(--ease); }
.wm-sky.is-ready > canvas { opacity: 1; }
.wm-ground {
  position: absolute; left: 0; right: 0; top: 46%; bottom: 0; z-index: 1;
  background:
    radial-gradient(60% 40% at 50% 40%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 70%),
    radial-gradient(3px 3px at 20% 30%, rgba(255, 255, 255, 0.9) 50%, transparent 51%),
    radial-gradient(2px 2px at 70% 60%, rgba(255, 255, 255, 0.9) 50%, transparent 51%),
    linear-gradient(180deg, #f4f9ff 0%, #e3eef9 45%, #cfe0f3 100%);
  background-size: auto, 160px 140px, 120px 120px, auto;
}
.m-mid .wm-ground { top: 42%; }
.m-tall .wm-ground { top: 33%; }
:root[data-scheme="dark"] .wm-ground {
  /* oy yorug'idagi qor: kulrang emas — yorqin sovuq ko'k, bir nechta mayin uchqun */
  background:
    radial-gradient(70% 45% at 50% 35%, rgba(214, 228, 255, 0.55), rgba(214, 228, 255, 0) 70%),
    radial-gradient(3px 3px at 20% 30%, rgba(235, 244, 255, 0.95) 50%, transparent 51%),
    radial-gradient(2px 2px at 70% 60%, rgba(235, 244, 255, 0.85) 50%, transparent 51%),
    linear-gradient(180deg, #dbe6fc 0%, #c4d4f6 45%, #a9bdec 100%);
  background-size: auto, 160px 140px, 120px 120px, auto;
}

/* Oy — faqat Tun: rasm yuklanmaydi (CSS), mayin nur halqasi; joyi rejimga qarab — sarlavha va darvozadan chetda. */
.wm-moon {
  display: none; position: absolute; z-index: 4; pointer-events: none; left: 89%; top: 5%;
  width: clamp(44px, 5.4vw, 92px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 38% 34%, #fffef6 0 34%, #fff4cc 60%, #f1d99a 100%);
  box-shadow: 0 0 22px 6px rgba(255, 244, 204, 0.4), 0 0 70px 24px rgba(255, 244, 204, 0.14);
}
.wm-moon::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 63% 58%, rgba(205, 180, 128, 0.32) 0 9%, transparent 10%),
    radial-gradient(circle at 38% 68%, rgba(205, 180, 128, 0.26) 0 6%, transparent 7%), radial-gradient(circle at 56% 30%, rgba(205, 180, 128, 0.22) 0 5%, transparent 6%);
}
:root[data-scheme="dark"] .wm-moon { display: block; }
.m-mid .wm-moon { left: 83%; top: 6%; }
/* telefon: sarlavha kichik — oy osmonning yuqori o'ng qismida (uy/archa tomiga tushmaydi) */
.m-tall .wm-moon { left: auto; right: 7%; top: 7%; width: clamp(34px, 10vw, 54px); }

/* Chanadagi Qorbobo — FAQAT 21–30 (map.js faqat 3-bosqichda yaratadi). Osmonda, sarlavha ostida, chapdan o'ngga sekin uchib o'tadi
   va bir oz kutib qaytadi. Faqat transform (kompozitor); bosilmaydi; darvoza/portal va uyumlardan ORQADA (z 2 < doska 5). */
.wm-sleigh { position: absolute; left: 0; top: 31%; z-index: 2; width: 12%; max-width: 240px; aspect-ratio: 480 / 200; pointer-events: none; transform: translate3d(-130%, 0, 0); }
.m-mid .wm-sleigh { top: 25%; width: 15%; }
.m-tall .wm-sleigh { top: 17%; width: 24%; }
.wm-sleigh-in { display: block; width: 100%; height: 100%; }
.wm-sleigh-px { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity 0.4s var(--ease); }
.wm-sleigh-px[data-px-state="ok"] { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .wm-sleigh { animation: wm-fly 28s linear infinite; will-change: transform; }
  .wm-sleigh-in { animation: wm-bob 3.2s ease-in-out infinite; }
}
/* Harakat kamaytirilgan: uchmaydi — osmonda sokin turadi (bezak sifatida). */
@media (prefers-reduced-motion: reduce) { .wm-sleigh { transform: none; left: 56%; } .m-tall .wm-sleigh { left: 2%; } }
[data-motion="off"] .wm-sleigh, .wm-lite .wm-sleigh { animation: none; transform: none; left: 56%; }
[data-motion="off"] .m-tall .wm-sleigh, .wm-lite.m-tall .wm-sleigh { left: 2%; }
.wm-lite .wm-sleigh-in { animation: none; }
[data-motion="off"] .wm-sleigh-in { animation: none; }
@keyframes wm-fly { 0% { transform: translate3d(-130%, 0, 0); } 62% { transform: translate3d(calc(100vw + 30%), -18%, 0); } 100% { transform: translate3d(calc(100vw + 30%), -18%, 0); } }
@keyframes wm-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7%); } }

/* 2) bezaklar (sprite'lar): markaz x, pastki y, en — sahnaga nisbatan; bosilmaydi */
.wm-decor { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.wm-sp { position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); width: calc(var(--w) * 1%); aspect-ratio: var(--ar); transform: translate(-50%, -100%); }
.wm-sp > canvas { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity 0.45s var(--ease); }
.wm-sp > canvas[data-px-state="ok"] { opacity: 1; }
.wm-sp.is-flip > canvas { transform: scaleX(-1); }
.wm-sp-snowman { transform-origin: 50% 100%; }
/* fonar nuri: Kunduz sokin, Tun yorqin (--lamp-glow); uy derazalari tunda iliq yonadi */
.wm-sp-lamp::after {
  content: ""; position: absolute; left: 50%; top: 22%; width: var(--lamp-size); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 213, 110, 0.8), rgba(255, 213, 110, 0)); opacity: var(--lamp-glow); pointer-events: none;
}
.wm-sp-cabin::after {
  content: ""; position: absolute; left: 50%; top: 62%; width: 86%; height: 46%; transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 196, 90, 0.6), rgba(255, 196, 90, 0)); opacity: 0;
}
:root[data-scheme="dark"] .wm-sp-cabin::after { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .wm-sp-snowman { animation: wm-sway 6s ease-in-out infinite; }
  .wm-sp-lamp::after { animation: wm-glow 3.4s ease-in-out infinite; }
}
@keyframes wm-sway { 0%, 100% { transform: translate(-50%, -100%) rotate(0deg); } 50% { transform: translate(-50%, -100%) rotate(-1.6deg); } }
@keyframes wm-glow { 0%, 100% { opacity: calc(var(--lamp-glow) * 0.7); } 50% { opacity: var(--lamp-glow); } }

/* 3) tun pardasi va qor yog'ishi */
.wm-scene::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: rgba(8, 18, 46, 0.14); opacity: 0; transition: opacity 0.4s ease; }
:root[data-scheme="dark"] .wm-scene::after { opacity: 1; }
.wm-snow {
  position: absolute; left: 0; right: 0; top: -60%; height: 160%; z-index: 4; pointer-events: none; opacity: 0.75;
  background-image:
    radial-gradient(2.5px 2.5px at 30px 40px, #fff 50%, transparent 52%),
    radial-gradient(2px 2px at 120px 90px, #fff 50%, transparent 52%),
    radial-gradient(3px 3px at 200px 160px, rgba(255, 255, 255, 0.9) 50%, transparent 52%),
    radial-gradient(1.6px 1.6px at 80px 200px, #fff 50%, transparent 52%);
  background-size: 240px 240px;
  will-change: transform;
}
@media (prefers-reduced-motion: no-preference) { .wm-snow { animation: snowfall 26s linear infinite; } }
@media (prefers-reduced-motion: reduce) { .wm-snow { display: none; } }   /* butun sayt kabi: harakat kamaytirilsa qor effekti yo'q */

/* 4) sarlavha (noutbukda ixcham — vh bo'yicha ham cheklangan, 1366×768 da xaritaga joy qoladi) */
.wm-title { position: absolute; left: 0; right: 0; top: clamp(8px, 2.4vh, 24px); z-index: 6; display: grid; justify-items: center; gap: clamp(4px, 0.9vh, 10px); padding: 0 16px; text-align: center; pointer-events: none; }
/* Sarlavha — bitta kichik nom-belgi (katta sarlavha, tepadagi belgi va pastdagi lenta yo'q) */
.wm-title h1 {
  margin: 0; padding: 6px 16px; border-radius: 999px; font-weight: 900; letter-spacing: -0.01em; line-height: 1.2; color: #14286b;
  font-size: clamp(0.95rem, min(1.35vw, 2.4vh), 1.2rem); background: rgba(255, 255, 255, 0.88); box-shadow: 0 6px 18px rgba(30, 50, 120, 0.18);
}
.wm-title h1:focus { outline: none; }
.wm-accent { color: #2f7fe6; }
:root[data-scheme="dark"] .wm-title h1 { color: #fff; background: rgba(10, 24, 62, 0.72); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3); }
:root[data-scheme="dark"] .wm-accent { color: #8cc0ff; }

/* 5) doska: yo'l + kunlar + darvoza. wide/mid — butun sahna (uyum joylari sahna %); tall — markazdagi ustun. */
.wm-board { position: absolute; inset: 0; z-index: 5; --mw: 80px; }
/* telefon: doska sahnaning 61 % ini egallaydi — qatorlar orasi kengroq, uyumlar bir-biriga yopishmaydi */
.m-tall .wm-board { inset: 31% auto 8% 50%; width: 92%; transform: translateX(-50%); }
.wm-path { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.wm-path path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.wp-glow { stroke: rgba(255, 196, 92, 0.32); stroke-width: min(calc(var(--mw) * 0.34), 26px); }
.wp-mid { stroke: rgba(255, 216, 128, 0.7); stroke-width: min(calc(var(--mw) * 0.15), 12px); }
.wp-core { stroke: #fff6cf; stroke-width: min(calc(var(--mw) * 0.05), 4px); }
.wp-dots { stroke: #ffffff; stroke-width: min(calc(var(--mw) * 0.06), 5px); stroke-dasharray: 0 min(calc(var(--mw) * 0.24), 20px); opacity: 0.85; }
:root[data-scheme="dark"] .wp-glow { stroke: rgba(255, 204, 96, 0.55); }
:root[data-scheme="dark"] .wp-mid { stroke: rgba(255, 222, 140, 0.9); }
.wm-runner {
  position: absolute; left: 0; top: 0; width: calc(var(--mw) * 0.3); aspect-ratio: 1; margin: calc(var(--mw) * -0.15) 0 0 calc(var(--mw) * -0.15);
  border-radius: 50%; pointer-events: none; z-index: 2; opacity: 0; will-change: transform, opacity;
  background: radial-gradient(circle, #fff 0 16%, rgba(255, 226, 140, 0.95) 32%, rgba(255, 200, 80, 0) 70%);
}

/* qor uyumi (kun) */
.wm-mound {
  position: absolute; left: calc(var(--mx) * 1%); top: calc(var(--my) * 1%); width: var(--mw); aspect-ratio: 240 / 150;
  transform: translate(-50%, -60%); z-index: 3; padding: 0; border: 0; background: none; cursor: pointer; color: inherit;
  border-radius: 46% 46% 22% 22% / 62% 62% 30% 30%; -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;   /* tez bosishda sahifa kattalashmasin (iPhone / Telegram WebView), 300 ms kechikish yo'q */
  transition: transform 0.25s var(--ease);
}
.wm-mound:focus-visible { outline: 3px solid #ffd166; outline-offset: 4px; }
@media (hover: hover) and (pointer: fine) { .wm-mound:hover { transform: translate(-50%, -64%); } }
.wm-mound-art { position: absolute; inset: 0; display: block; }
.wm-mound-art > canvas { display: block; width: 100%; height: 100%; }
.wm-mound-art:empty { background: radial-gradient(ellipse at 40% 30%, #fff 0%, #eef6fd 55%, #a9c7e6 100%); border-radius: 46% 46% 18% 18% / 70% 70% 30% 30%; }
/* piksel fayl yuklanmasa (canvas "fallback") — o'sha CSS uyum; alohida qoida: :has() bilmagan brauzerda :empty buzilmasin */
.wm-mound-art:has(> canvas[data-px-state="fallback"]) { background: radial-gradient(ellipse at 40% 30%, #fff 0%, #eef6fd 55%, #a9c7e6 100%); border-radius: 46% 46% 18% 18% / 70% 70% 30% 30%; }
.wm-num {
  position: absolute; left: 50%; top: 38%; transform: translate(-50%, -50%); font-weight: 900; line-height: 1; color: #1d3f8f;
  font-size: calc(var(--mw) * 0.3); text-shadow: 0 2px 0 #fff, 0 0 10px rgba(255, 255, 255, 0.85); pointer-events: none; z-index: 1;
}
.wm-badge { position: absolute; left: 50%; top: 70%; transform: translate(-50%, -50%); width: calc(var(--mw) * 0.17); height: calc(var(--mw) * 0.17); color: #34507f; pointer-events: none; z-index: 1; }
.wm-badge:empty { display: none; }
.wm-badge svg { width: 100%; height: 100%; }
.wm-mound.is-locked .wm-num { color: #2c4a86; }
.wm-mound.is-completed .wm-badge { color: #fff; background: #2fa866; border-radius: 50%; padding: 2px; box-shadow: 0 2px 6px rgba(20, 90, 50, 0.35); }
.wm-mound.is-completed .wm-num { color: #1f7a4a; }
.wm-mound.is-completed .wm-mound-art { opacity: 0.9; }
.wm-mound.is-missed .wm-num, .wm-mound.st-missed .wm-num { color: #6f7c96; }
/* bugungi (ochiq) kun: oltin halo, nurlar, ingichka ko'k muz yorig'i (ishora) */
.wm-halo, .wm-rays { display: none; pointer-events: none; }
.wm-mound.is-eligible .wm-halo {
  display: block; position: absolute; inset: -34% -22% -20%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 214, 90, 0.85), rgba(150, 215, 255, 0.28) 62%, rgba(255, 214, 90, 0));
}
.wm-mound.is-eligible .wm-rays {
  display: block; position: absolute; left: 50%; top: -26%; width: 74%; height: 34%; transform: translateX(-50%);
  background: conic-gradient(from 270deg at 50% 100%, transparent 0 22deg, #ffcf3a 22deg 28deg, transparent 28deg 50deg, #ffcf3a 50deg 56deg,
    transparent 56deg 87deg, #ffcf3a 87deg 93deg, transparent 93deg 124deg, #ffcf3a 124deg 130deg, transparent 130deg 152deg, #ffcf3a 152deg 158deg, transparent 158deg 360deg);
  -webkit-mask: radial-gradient(closest-side at 50% 100%, transparent 62%, #000 63%); mask: radial-gradient(closest-side at 50% 100%, transparent 62%, #000 63%);
}
.wm-crack { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 1; }
.wm-crack path { fill: none; stroke: #39c3ff; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.wm-mound.is-reveal .wm-crack .c1 { opacity: 0.5; }
.wm-mound.is-opened .wm-crack path { opacity: 1; }
.wm-mound.is-eligible .wm-num { color: #1849b8; }
.wm-mound.is-opened .wm-num { color: #0f8bd6; }
.wm-mound.is-opened .wm-mound-art { transform: scale(1.02); }
/* BIR bosishda yorilish (≈0.64 s): yoriqlar ketma-ket, uyum silkinadi, 5 ta qor bo'lagi sochiladi, ichidan nur va sovg'a belgisi. */
.wm-burst, .wm-gift { display: none; pointer-events: none; }
.wm-burst { position: absolute; left: 50%; top: 42%; width: 0; height: 0; z-index: 2; }
.wm-burst i {
  position: absolute; left: 0; top: 0; width: calc(var(--mw) * 0.16); aspect-ratio: 1.25; border-radius: 45% 55% 40% 60%;
  background: radial-gradient(circle at 35% 30%, #fff, #dcecfb 70%); box-shadow: 0 1px 2px rgba(40, 80, 140, 0.25); transform: translate(-50%, -50%);
}
.wm-burst i:nth-child(1) { --dx: -0.62; --dy: -0.5; --r: -50deg; }
.wm-burst i:nth-child(2) { --dx: 0.6; --dy: -0.56; --r: 40deg; }
.wm-burst i:nth-child(3) { --dx: -0.2; --dy: -0.78; --r: 20deg; width: calc(var(--mw) * 0.12); }
.wm-burst i:nth-child(4) { --dx: 0.3; --dy: -0.8; --r: -30deg; width: calc(var(--mw) * 0.1); }
.wm-burst i:nth-child(5) { --dx: 0.05; --dy: -0.62; --r: 70deg; width: calc(var(--mw) * 0.09); }
.wm-gift {
  position: absolute; left: 50%; top: 4%; width: calc(var(--mw) * 0.36); aspect-ratio: 1; place-items: center; border-radius: 50%; z-index: 2;
  color: #e8960f; background: radial-gradient(circle, #fffbe8 0 46%, rgba(255, 230, 140, 0.55) 62%, rgba(255, 230, 140, 0) 74%); transform: translate(-50%, -62%);
}
.wm-gift svg { width: 64%; height: 64%; }
.wm-mound.is-opened .wm-gift { display: grid; }
@media (prefers-reduced-motion: no-preference) {
  .wm-mound.is-eligible .wm-halo { animation: wm-breathe 2.6s ease-in-out infinite; }
  .wm-mound.is-cracking .wm-crack .c1 { animation: wm-crack 0.14s ease-out both; }
  .wm-mound.is-cracking .wm-crack .c2 { animation: wm-crack 0.14s 0.12s ease-out both; }
  .wm-mound.is-cracking .wm-crack .c3 { animation: wm-crack 0.14s 0.24s ease-out both; }
  .wm-mound.is-cracking .wm-mound-art { animation: wm-shake 0.3s ease-in-out, wm-open 0.34s 0.3s var(--ease) forwards; }
  .wm-mound.is-cracking .wm-burst { display: block; }
  .wm-mound.is-cracking .wm-burst i { animation: wm-chunk 0.42s 0.26s ease-out both; }
  .wm-mound.is-cracking .wm-gift { display: grid; animation: wm-gift 0.36s 0.3s var(--ease) both; }
  .wm-mound.is-cracking::after {
    content: ""; position: absolute; left: 50%; top: 40%; width: 140%; aspect-ratio: 1; transform: translate(-50%, -50%) scale(0.3); border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 252, 230, 0.95) 0 20%, rgba(170, 225, 255, 0.6) 40%, rgba(255, 255, 255, 0) 70%);
    animation: wm-puff 0.4s 0.26s ease-out both; pointer-events: none;
  }
}
@keyframes wm-breathe { 0%, 100% { opacity: 0.7; transform: scale(0.96); } 50% { opacity: 1; transform: scale(1.05); } }
@keyframes wm-crack { from { opacity: 0; } to { opacity: 1; } }
@keyframes wm-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-3%) rotate(-1.5deg); } 50% { transform: translateX(3%) rotate(1.5deg); } 75% { transform: translateX(-1.5%); } }
@keyframes wm-open { 0% { transform: scale(1); } 50% { transform: scale(1.1, 0.9); } 100% { transform: scale(1.02); } }
@keyframes wm-chunk { from { transform: translate(-50%, -50%) scale(1); opacity: 1; } to { transform: translate(calc(-50% + var(--dx) * var(--mw)), calc(-50% + var(--dy) * var(--mw))) rotate(var(--r)) scale(0.7); opacity: 0; } }
@keyframes wm-gift { from { transform: translate(-50%, 10%) scale(0.3); opacity: 0; } to { transform: translate(-50%, -62%) scale(1); opacity: 1; } }
@keyframes wm-puff { from { transform: translate(-50%, -50%) scale(0.3); opacity: 1; } to { transform: translate(-50%, -50%) scale(1.3); opacity: 0; } }

/* "Bosing" pufagi — bugungi uyum ustida (birinchi tashrifda) */
.wm-tip {
  position: absolute; left: calc(var(--tx) * 1%); top: calc(var(--my) * 1%); z-index: 6; transform: translate(-50%, calc(-100% - var(--mw) * 0.5));
  display: flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; border-radius: 16px; white-space: nowrap;
  background: #fff7e3; color: #1b2f6b; font-weight: 800; font-size: clamp(0.8rem, 1.2vw, 0.98rem); line-height: 1.15; box-shadow: 0 10px 24px rgba(24, 44, 110, 0.25);
}
.wm-tip b { color: #1849b8; }
.wm-tip svg { width: 26px; height: 26px; color: #1849b8; flex: none; }
.wm-tip::after { content: ""; position: absolute; left: var(--tail, 50%); bottom: -8px; width: 16px; height: 16px; transform: translateX(-50%) rotate(45deg); background: #fff7e3; border-radius: 3px; }
/* telefonda yuqori markazdagi kun (10/20/30) — darvoza ostida: pufak uyum OSTIDA, dumi yuqoriga */
.wm-tip.is-below { transform: translate(-50%, calc(var(--mw) * 0.5)); }
.wm-tip.is-below::after { bottom: auto; top: -8px; }
/* telefonda 1-kun: pufak uyumning o'ng yonida, dumi chapga */
.wm-tip.is-right { transform: translate(-50%, -78%); }
.wm-tip.is-right::after { left: -6px; top: 50%; bottom: auto; transform: translateY(-50%) rotate(45deg); }
.wm-tip[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) { .wm-tip.is-pop { animation: rise 0.4s var(--ease) both; } }

/* darvoza ("11–20 kunlar", "21–30 kunlar") / "31" portal — wide: 10-kundan keyin O'NGDA; mid: o'ng yuqorida; tall: tepada */
.wm-gate, .wm-finale { position: absolute; left: 90.4%; bottom: 37%; width: 14.2%; max-width: 300px; transform: translateX(-50%); z-index: 2; }
.m-mid :is(.wm-gate, .wm-finale) { left: 88.5%; bottom: 55%; width: 17%; max-width: 280px; }
/* tall: darvoza/portal uyumlarga mutanosib (planshet portretida ham ulkan bo'lib ketmaydi) */
.m-tall :is(.wm-gate, .wm-finale) { left: 50%; bottom: 94%; width: min(52%, calc(var(--mw) * 2.4)); max-width: 330px; }
.wm-gate { aspect-ratio: 560 / 470; padding: 0; border: 0; background: none; cursor: pointer; container-type: inline-size; transition: transform 0.3s var(--ease); touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.wm-gate:focus-visible, .wm-door31:focus-visible { outline: 3px solid #ffd166; outline-offset: 6px; border-radius: 18px; }
@media (hover: hover) and (pointer: fine) { .wm-gate:hover { transform: translateX(-50%) scale(1.02); } }
.wm-gate-art { position: absolute; inset: 0; display: block; }
.wm-gate-art > canvas { display: block; width: 100%; height: 100%; }
.wm-gate-art:empty { background: radial-gradient(ellipse at 50% 70%, #ffe27a, #f08a1c 60%, transparent 61%), linear-gradient(#8c94a6, #6e7688); border-radius: 46% 46% 6% 6%; }
.wm-gate-art:has(> canvas[data-px-state="fallback"]) { background: radial-gradient(ellipse at 50% 70%, #ffe27a, #f08a1c 60%, transparent 61%), linear-gradient(#8c94a6, #6e7688); border-radius: 46% 46% 6% 6%; }
/* tunda darvoza fonarlari va portal nuri yorqinroq */
.wm-gate::before, .wm-door31::before {
  content: ""; position: absolute; inset: 8% -4% 24%; pointer-events: none; opacity: calc(var(--lamp-glow) - 0.35);
  background: radial-gradient(closest-side at 18% 46%, rgba(255, 212, 110, 0.75), rgba(255, 212, 110, 0)), radial-gradient(closest-side at 82% 46%, rgba(255, 212, 110, 0.75), rgba(255, 212, 110, 0));
}
.wm-gate-label { position: absolute; left: 50%; top: 66%; z-index: 4; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 0; gap: 0.2cqw; color: #142a6b; font-weight: 900; line-height: 0.95; pointer-events: none;
  padding: 1cqw 2.6cqw; border-radius: 2.4cqw; background: rgba(255, 248, 226, 0.9); box-shadow: 0 1cqw 3cqw rgba(60, 30, 0, 0.32); transition: opacity 0.25s ease; }
.wm-gate-label b { font-size: calc(var(--mw, 120px) * 0.2); font-size: 11cqw; text-shadow: 0 2px 0 rgba(255, 255, 255, 0.85); }
.wm-gate-label span { font-size: calc(var(--mw, 120px) * 0.138); font-size: 7.6cqw; }
.wm-chev { font-style: normal; font-size: calc(var(--mw, 120px) * 0.145); font-size: 8cqw; color: #f2730f; letter-spacing: -0.12em; margin-top: 2px; margin-top: 1cqw; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7); }
.wm-gate-lock { position: absolute; z-index: 4; left: 50%; top: 90%; transform: translate(-50%, -50%); width: calc(var(--mw, 120px) * 0.164); height: calc(var(--mw, 120px) * 0.164); padding: 3px; width: 9cqw; height: 9cqw; padding: 1.6cqw; border-radius: 50%; background: rgba(20, 40, 100, 0.85); color: #fff; }
.wm-gate-lock svg { width: 100%; height: 100%; }

/* Darvoza eshiklari — alohida qatlam (gate-door-l/-r): doim YOPIQ; tirqishdan iliq nur. Server ruxsati bilan bosilganda eshiklar
   ikki tomonga ochiladi (≈ 0.9 s), ichkaridan oltin nur, mayin uchqunlar; so'ng keyingi bosqich. Faqat transform/opacity. */
.wm-door { position: absolute; top: 34.89%; width: 19.64%; height: 60.85%; z-index: 1; transition: transform 0.85s cubic-bezier(0.3, 0.7, 0.2, 1); }
.wm-door-l { left: 30.36%; transform-origin: 0% 50%; }
.wm-door-r { left: 50%; transform-origin: 100% 50%; }
.wm-door-px { display: block; width: 100%; height: 100%; }
.wm-gate-seam { position: absolute; left: 49.55%; top: 37%; width: 0.9%; height: 57%; z-index: 2; border-radius: 2px; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 230, 140, 0), #ffe08a 22%, #ffd36b 78%, rgba(255, 210, 107, 0)); box-shadow: 0 0 1.6cqw 0.5cqw rgba(255, 205, 100, 0.55); transition: opacity 0.3s ease; }
.wm-gate.is-open .wm-gate-seam { box-shadow: 0 0 2.4cqw 0.9cqw rgba(255, 210, 110, 0.7); }
.wm-gate-shine { position: absolute; left: 22%; top: 24%; width: 56%; height: 74%; z-index: 0; border-radius: 50% 50% 10% 10%; pointer-events: none; opacity: 0; transform: scale(0.7);
  background: radial-gradient(closest-side, rgba(255, 248, 210, 0.95), rgba(255, 205, 100, 0.5) 55%, rgba(255, 180, 60, 0)); transition: opacity 0.7s ease, transform 0.9s ease; }
.wm-gate-sparks { position: absolute; left: 30%; top: 36%; width: 40%; height: 58%; z-index: 3; pointer-events: none; }
.wm-gate-sparks i { position: absolute; left: 50%; top: 62%; width: 3.4cqw; height: 3.4cqw; margin: -1.7cqw 0 0 -1.7cqw; border-radius: 50%; opacity: 0;
  background: radial-gradient(circle, #fffbe6 0 30%, rgba(255, 215, 110, 0.85) 45%, rgba(255, 215, 110, 0) 70%); }
.wm-gate-sparks i:nth-child(1) { --sx: -16cqw; --sy: -22cqw; }
.wm-gate-sparks i:nth-child(2) { --sx: 14cqw; --sy: -26cqw; animation-delay: 0.08s !important; }
.wm-gate-sparks i:nth-child(3) { --sx: -24cqw; --sy: -6cqw; animation-delay: 0.16s !important; }
.wm-gate-sparks i:nth-child(4) { --sx: 22cqw; --sy: -10cqw; animation-delay: 0.12s !important; }
.wm-gate-sparks i:nth-child(5) { --sx: -6cqw; --sy: -32cqw; animation-delay: 0.2s !important; }
.wm-gate-sparks i:nth-child(6) { --sx: 8cqw; --sy: -16cqw; animation-delay: 0.26s !important; }
.wm-gate.is-opening .wm-door-l { transform: perspective(520px) rotateY(-100deg); }
.wm-gate.is-opening .wm-door-r { transform: perspective(520px) rotateY(100deg); }
.wm-gate.is-opening .wm-gate-seam, .wm-gate.is-opening .wm-gate-label, .wm-gate.is-opening .wm-gate-lock { opacity: 0; }
.wm-gate.is-opening .wm-gate-shine { opacity: 1; transform: scale(1.25); }
.wm-gate.is-opening .wm-gate-sparks i { animation: wm-gate-spark 0.9s ease-out forwards; }
@keyframes wm-gate-spark { 0% { opacity: 0; transform: translate(0, 0) scale(0.6); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--sx), var(--sy)) scale(1.2); } }
.wm-gate.is-rattle .wm-door { animation: wm-rattle 0.34s ease-in-out; }
@keyframes wm-rattle { 0%, 100% { transform: none; } 25% { transform: translateX(-1.5px); } 50% { transform: translateX(1.5px); } 75% { transform: translateX(-1px); } }
@media (prefers-reduced-motion: reduce) { .wm-door, .wm-gate-shine { transition: none; } .wm-gate.is-rattle .wm-door { animation: none; } }

/* Archa bezak qatlamlari (tree.svg bilan bir xil o'lcham, ustma-ust): 1 — bezaklar, 2 — girlyanda + tungi nur.
   Tungi nur FAQAT 2-darajada va Tun rejimida ko'rinadi; Kunduz↔Tun almashganda faqat yoritish o'zgaradi (bezaklar joyida qoladi). */
.wm-tree > canvas + canvas { position: absolute; inset: 0; }
.wm .wm-tree > canvas.wm-tree-glow { opacity: 0; transition: opacity 0.6s ease; }
:root[data-scheme="dark"] .wm[data-trees="2"] .wm-tree > canvas.wm-tree-glow[data-px-state="ok"] { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  :root[data-scheme="dark"] .wm[data-trees="2"]:not(.wm-lite) .wm-tree > canvas.wm-tree-glow[data-px-state="ok"] {
    animation: wm-tree-twinkle 3.6s ease-in-out infinite; animation-delay: calc(var(--tw, 0) * -0.9s);
  }
}
@keyframes wm-tree-twinkle { 0%, 100% { opacity: 1; } 50% { opacity: 0.8; } }
[data-motion="off"] .wm .wm-tree > canvas.wm-tree-glow { animation: none !important; }
html[data-hidden] .wm .wm-tree > canvas.wm-tree-glow { animation-play-state: paused; }

/* O'yindan keyin: yo'lak bo'ylab yuguradigan oltin uchqun va navbatdagi kun belgisi */
.wm-spark { position: absolute; left: 0; top: 0; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; z-index: 30; pointer-events: none;
  background: radial-gradient(circle, #fffbe6 0 30%, rgba(255, 214, 102, 0.9) 45%, rgba(255, 214, 102, 0) 70%); }
.wm-mound.is-next::after { content: ""; position: absolute; inset: -12% -8%; border-radius: 50%; pointer-events: none;
  box-shadow: 0 0 0 3px rgba(255, 214, 102, 0.95), 0 0 18px 6px rgba(255, 214, 102, 0.45); animation: wm-next 1.2s ease-in-out 2 both; }
@keyframes wm-next { 0%, 100% { opacity: 0; transform: scale(0.92); } 50% { opacity: 1; transform: scale(1.04); } }
@media (prefers-reduced-motion: reduce) { .wm-mound.is-next::after { animation: none; opacity: 1; } }

.wm-gate.is-locked .wm-chev { opacity: 0.55; }
@media (prefers-reduced-motion: no-preference) {
  .wm-gate.is-open::after {
    content: ""; position: absolute; left: 50%; top: 66%; width: 46%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none;
    background: radial-gradient(closest-side, rgba(255, 246, 200, 0.85), rgba(255, 220, 120, 0)); animation: wm-glow 2.8s ease-in-out infinite;
  }
}
.wm-finale { aspect-ratio: 520 / 500; }
.wm-door31 { position: absolute; inset: 0; padding: 0; border: 0; background: none; cursor: pointer; container-type: inline-size; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.wm-door-num { position: absolute; left: 50%; top: 41.2%; transform: translate(-50%, -50%); font-weight: 900; font-size: calc(var(--mw, 120px) * 0.22); font-size: 14cqw; color: #b3141f; line-height: 1; text-shadow: 0 2px 0 #fff; pointer-events: none; }
/* «Yangi yil» — ikki qator (raqam o'rniga) + juda kichik qisqa sana */
.wm-door-date { display: block; margin-top: 0.35em; font-size: 0.5em; font-weight: 800; letter-spacing: 0; color: #8a4b12; text-shadow: none; opacity: 0.9; }
.wm-door-num.wm-door-text { font-size: calc(var(--mw, 120px) * 0.105); font-size: 6.8cqw; line-height: 1.02; text-align: center; letter-spacing: 0.01em; white-space: nowrap; }
.wm-back {
  position: absolute; left: 16px; top: 14px; z-index: 7; display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px 6px 8px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.9); color: #1b2f6b; font-weight: 800; font-size: 0.85rem; text-decoration: none; box-shadow: 0 6px 16px rgba(30, 50, 120, 0.2);
}
.m-tall .wm-back { left: 0; top: -2%; }
.wm-back svg { width: 16px; height: 16px; }

/* 6) HUD */
/* holat menyusi — TEPADA, sarlavha yonida (pastki panel olib tashlandi) */
.wm-title { grid-auto-flow: column; justify-content: center; align-items: center; }
.wm-hud {
  position: relative; z-index: 8; display: flex; align-items: center; gap: 6px; pointer-events: auto;
  padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, 0.9); box-shadow: 0 6px 18px rgba(30, 50, 120, 0.18); white-space: nowrap;
}
:root[data-scheme="dark"] .wm-hud { background: rgba(10, 24, 62, 0.72); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3); }
.wm-hud-day { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: linear-gradient(180deg, #2a5fd0, #163f96); color: #fff; font-weight: 800;
  font-size: clamp(0.82rem, min(1.2vw, 2.2vh), 1rem); }
body.on-map .app-footer { display: none; }
.wm-hud-day b { color: #ffd166; font-weight: 900; }
.wm-hud-day svg { width: 18px; height: 18px; }
/* Kun tugashiga — botdagi mavsum qulfi oynasi (.wm-lock-card) bilan AYNAN bir xil ko'rinish (egasi 2026-11-19: «mana shunday bo'lsin»):
   shisha karta, oq sarlavha + oltin «Yangi yil», och yozuv, 4 quti (kun · soat · daqiqa · soniya). Qulfdagi xira fon o'rniga — kartaning o'z foni. */
.wm-title.has-cd { grid-template-columns: auto; }
.wm-daycd { position: relative; display: grid; justify-items: center; gap: 16px; text-align: center; z-index: 6; pointer-events: auto;
  width: min(560px, calc(100vw - 32px)); padding: clamp(20px, 4vw, 36px) clamp(16px, 5vw, 44px); border-radius: 28px;
  background: linear-gradient(rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.14)), rgba(10, 22, 56, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.35); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3); color: #fff;
  animation: wm-daycd-in 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@supports (backdrop-filter: blur(1px)) { .wm-daycd { backdrop-filter: blur(6px) saturate(0.95); } [data-motion="off"] .wm-daycd { backdrop-filter: none; } }
.wm-daycd h1 { margin: 0; padding: 0; background: none; box-shadow: none; color: #fff; font-size: clamp(1.6rem, 6vw, 2.7rem); font-weight: 900;
  line-height: 1.1; text-shadow: 0 4px 18px rgba(0, 0, 0, 0.35); }
.wm-daycd h1 .wm-accent { color: #ffd166; }
.wm-daycd .cd-label { color: #e6efff; white-space: nowrap; }
.wm-daycd .wm-hud { position: absolute; top: 10px; right: 10px; padding: 0; background: none; box-shadow: none; }
.wm-daycd .wm-hud-day { display: none; }
.countdown-map .cd-box { color: #fff; }
@keyframes wm-daycd-in { from { opacity: 0; transform: translateY(-10px) scale(0.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .wm-daycd { animation: none; } }
.m-tall .wm-daycd { gap: 10px; padding: 14px 12px 16px; border-radius: 24px; }
.m-tall .wm-daycd h1 { font-size: clamp(1.3rem, 6vw, 1.7rem); padding: 0 24px; }
.m-tall .wm-daycd .wm-hud { top: 6px; right: 6px; }
.wm-help { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; border: 0; background: #eef4ff; color: #1b2f6b; cursor: pointer; }
.wm-help svg { width: 20px; height: 20px; }

/* 7) TELEFON / PORTRET: yuqorida sarlavha, keyin darvoza, pastda 1-kun; sahna uzunroq (vertikal scroll) */
.m-tall .wm-title h1 { font-size: clamp(0.9rem, 4vw, 1.05rem); padding: 5px 14px; }
.m-tall .wm-title { grid-auto-flow: row; }
.m-tall .wm-hud { gap: 4px; padding: 3px; }
.m-tall .wm-hud-day { padding: 5px 11px; font-size: 0.84rem; }
.m-tall .wm-help { width: 30px; height: 30px; }
.m-tall .wm-tip { font-size: 0.84rem; padding: 8px 12px; }
@media (max-width: 380px) { .m-tall .wm-hud-day { padding: 5px 9px; } }

/* yashirin tab / animatsiya o'chiq — barcha xarita animatsiyalari to'xtaydi */
html[data-hidden] .wm :is(.wm-snow, .wm-sp-snowman, .wm-sp-lamp, .wm-halo, .wm-gate, .wm-sleigh, .wm-sleigh-in),
html[data-hidden] .wm .wm-sp-lamp::after, html[data-hidden] .wm .wm-gate::after { animation-play-state: paused; }
[data-motion="off"] .wm-snow, [data-motion="off"] .wm-runner { display: none; }

/* ---------- Yuqori menyu: faqat «Sovgʻalar» va «Profil» (barcha kengliklarda), pastki menyu yo'q ---------- */
.top-nav { display: flex !important; margin-left: auto; gap: 8px; }
.top-nav .nav-full { display: inline !important; }
.top-nav a { padding: 8px 16px; border-radius: 999px; font-weight: 900; min-height: 40px; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
/* Kunduz/Tun rejimidagi umumiy .top-nav ranglaridan ustun (spetsifiklik ataylab yuqori). */
:root:is([data-scheme], html) body.app .top-nav a.nav-gift, :root:is([data-scheme], html) body.app .top-nav a.nav-gift[aria-current="page"] {
  background: linear-gradient(180deg, #2f6fe0, #1747b0); color: #fff; box-shadow: 0 6px 16px rgba(23, 71, 176, 0.35);
}
:root:is([data-scheme], html) body.app .top-nav a.nav-profile, :root:is([data-scheme], html) body.app .top-nav a.nav-profile[aria-current="page"] {
  background: #fff; color: #1b2f6b; box-shadow: 0 6px 16px rgba(16, 48, 74, 0.18);
}
:root:is([data-scheme], html) body.app .top-nav a[aria-current="page"] { outline: 2px solid #ffd166; outline-offset: 2px; }
/* Kunduz/Tun ikonkasi (Profil yonida) uchun joy oldindan band — ilova yuklanganda menyu tugmalari siljimaydi (CLS). */
.header-tools { min-width: 44px; min-height: 44px; }
.bottom-nav, .bottom-nav[hidden] { display: none !important; }
@media (max-width: 900px) { main { padding-bottom: calc(var(--gap) * 2); } .app-footer { padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); } .toast-wrap { bottom: calc(16px + env(safe-area-inset-bottom, 0px)); } }
@media (max-width: 480px) {
  .header-inner { padding: 6px 10px; gap: 8px; min-height: 56px; }
  .brand small { display: none; }
  /* tor ekran: brend — faqat logotip (nom sahnada katta yozilgan); menyu va Kunduz/Tun ikonkasi bir-biriga tegmaydi */
  .brand > span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .header-tools .icon-btn { width: 40px; height: 40px; }
  .top-nav { gap: 6px; }
  .top-nav a { padding: 7px 11px; font-size: 0.86rem; min-height: 40px; gap: 6px; }
  .top-nav a svg { width: 17px; height: 17px; }
}
@media (max-width: 340px) { .brand > span:last-child { font-size: 0.92rem; } .top-nav a { padding: 7px 9px; } }
/* 280–300 px: logotip + «Sovgʻalar» + «Profil» + Kunduz/Tun ~296 px edi — logotip qisilib, «Sovgʻalar» uning ustiga chiqardi.
   Menyu ikonkalari yashiriladi (yozuvlar qoladi), logotip qisilmaydi. */
@media (max-width: 300px) { .brand { flex: none; } .top-nav a { padding: 7px 8px; gap: 0; } .top-nav a svg { display: none; } }

/* Profil: ko'rinish sozlamasi va TOP reyting havolasi (yuqori menyudan olingan bo'limlar) */
.profile-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: var(--gap); }
.profile-tools-row { display: flex; align-items: center; gap: 12px; }
.profile-tools-row > span { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.profile-tools-row svg { width: 20px; height: 20px; }

/* Bir martalik eslatma: «Qoidalar va FAQ endi Profil boʻlimida» — Profil tugmasi ostida (rasmdagidek). */
.header-inner { position: relative; }
.nav-hint {
  position: absolute; right: 12px; top: calc(100% + 8px); z-index: calc(var(--z-header) + 1); display: flex; align-items: center; gap: 8px;
  padding: 8px 8px 8px 14px; border-radius: 14px; background: #fff; color: #1b2f6b; font-weight: 800; font-size: 0.86rem;
  box-shadow: 0 10px 26px rgba(16, 40, 90, 0.22); animation: rise 0.35s var(--ease) both;
}
.nav-hint::before { content: ""; position: absolute; right: 64px; top: -7px; width: 14px; height: 14px; transform: rotate(45deg); background: #fff; border-radius: 3px; }
.nav-hint > svg { width: 18px; height: 18px; color: #2f6fe0; flex: none; }
.nav-hint-x { width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #eef4ff; color: #1b2f6b; cursor: pointer; }
.nav-hint-x svg { width: 16px; height: 16px; }
@media (max-width: 480px) { .nav-hint { right: 8px; left: 8px; font-size: 0.8rem; } .nav-hint::before { right: 40px; } }

/* Profil: «Qoidalar va FAQ» — ochilib-yopiladigan bo'limlar */
.help-section { display: grid; gap: 12px; }
.help-block { padding: 0; }
.help-sum {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 16px 18px; min-height: var(--tap);
  font-weight: 900; font-size: 1.02rem;
}
.help-sum::-webkit-details-marker { display: none; }
.help-sum::after { content: "+"; margin-left: auto; font-size: 1.4rem; line-height: 1; color: var(--ice-700); transition: transform var(--dur) var(--ease); }
.help-block[open] > .help-sum::after { transform: rotate(45deg); }
.help-sum svg { width: 20px; height: 20px; color: var(--ice-700); }
.help-body { padding: 0 18px 18px; overflow-wrap: anywhere; }

/* «X-kun oʻyini» oynasi: vaqt / urinishlar / mukofot; «Boshlash» izohi */
.game-facts { margin: 0; display: grid; gap: 6px; padding: 10px 12px; border-radius: 14px; background: var(--ice-25); border: 1px solid var(--line); }
.game-facts > div { display: grid; grid-template-columns: minmax(96px, auto) 1fr; gap: 10px; align-items: baseline; }
.game-facts dt { display: inline-flex; align-items: center; gap: 6px; font-weight: 900; color: var(--text); }
.game-facts dt svg { width: 16px; height: 16px; color: var(--ice-700); }
.game-facts dd { margin: 0; color: var(--text-soft); font-weight: 700; }
.day-sheet-note { display: flex; align-items: flex-start; gap: 6px; }
.day-sheet-note svg { width: 14px; height: 14px; flex: none; margin-top: 2px; }

/* ===================== 31-kun: YANGI YIL SAHNASI (js/pages/gift-night.js) — interaktiv multfilm =====================
   Joy va o'lchamlarni JS px'da qo'yadi (sahna o'lchamidan); harakat — WAAPI (transform / opacity / z-index). Bu yerda — ko'rinish,
   Kunduz/Tun yoritilishi, doimiy mayin effektlar (tutun, qor, alanga, archa chiroqlari) va harakat kamaytirilgan / yengil rejimlar. */
main.is-scene { max-width: none; padding: 0; }
body.on-scene .winter-bg .wb-snow, body.on-scene .winter-bg .wb-stars { display: none; }
/* O'yin ochiq (2–4-kun va boshqalar): fondagi qor/yulduz animatsiyasi to'xtaydi — o'yin kadrlari bilan resurs talashmaydi */
body.on-game .winter-bg .wb-snow, body.on-game .winter-bg .wb-stars { display: none; }
.ny-loading, .ny-scene { height: max(520px, calc(100vh - 65px)); height: max(520px, calc(100svh - 65px)); }
@media (max-width: 699px) and (max-aspect-ratio: 1/1) { .ny-loading, .ny-scene { height: max(560px, calc(100vh - 57px)); height: max(560px, calc(100svh - 57px)); } }
.ny-loading { background: linear-gradient(180deg, #2a3f8f 0%, #7a63bd 34%, #f2a3a8 56%, #fff1e6 58%, #e6e2f6 100%); }
:root[data-scheme="dark"] .ny-loading { background: linear-gradient(180deg, #06142e 0%, #1a2b63 40%, #3f4a8c 56%, #9fb3dc 58%, #7f95c6 100%); }
.ny { position: relative; }
.ny [hidden] { display: none !important; }
.ny-scene {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, #2f7fe0 0%, #79bbf4 34%, #d8eefc 56%, #f4f9ff 58%, #e3eef9 100%);
}
:root[data-scheme="dark"] .ny-scene { background: linear-gradient(180deg, #06142e 0%, #1a2b63 40%, #3f4a8c 56%, #9fb3dc 58%, #7f95c6 100%); }
.ny-art { position: absolute; inset: 0; pointer-events: none; transform-origin: 50% 85%; }
.ny-sky { position: absolute; left: 0; right: 0; top: 0; height: 60%; z-index: 1; }
.ny-tall .ny-sky { height: 46%; }
.ny-sky > canvas { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity 0.5s var(--ease); }
.ny-sky.is-ready > canvas { opacity: 1; }
.ny-ground {
  position: absolute; left: 0; right: 0; top: 56%; bottom: 0; z-index: 1;
  background: radial-gradient(60% 40% at 50% 40%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 70%),
    radial-gradient(3px 3px at 20% 30%, rgba(255, 255, 255, 0.9) 50%, transparent 51%), radial-gradient(2px 2px at 70% 60%, rgba(255, 255, 255, 0.9) 50%, transparent 51%),
    linear-gradient(180deg, #f7fbff 0%, #eaf2fb 45%, #dbe8f5 100%);
  background-size: auto, 160px 140px, 120px 120px, auto;
}
.ny-tall .ny-ground { top: 42%; }
:root[data-scheme="dark"] .ny-ground {
  background: radial-gradient(70% 45% at 50% 35%, rgba(214, 228, 255, 0.5), rgba(214, 228, 255, 0) 70%),
    radial-gradient(3px 3px at 20% 30%, rgba(235, 244, 255, 0.95) 50%, transparent 51%), radial-gradient(2px 2px at 70% 60%, rgba(235, 244, 255, 0.85) 50%, transparent 51%),
    linear-gradient(180deg, #c9d7f4 0%, #b0c2ec 45%, #93a9dd 100%);
  background-size: auto, 160px 140px, 120px 120px, auto;
}
/* egri qorli yo'lak (uylar tomon) — rasm yuklanmaydi */
.ny-path {
  position: absolute; left: 2%; right: 28%; top: 62%; bottom: 0; z-index: 2; border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  background: radial-gradient(120% 90% at 40% 100%, rgba(255, 255, 255, 0.95) 0 40%, rgba(214, 228, 245, 0.75) 55%, rgba(214, 228, 245, 0) 72%);
}
.ny-tall .ny-path { left: 0; right: 16%; top: 50%; }
:root[data-scheme="dark"] .ny-path { background: radial-gradient(120% 90% at 30% 100%, rgba(226, 236, 255, 0.85) 0 40%, rgba(180, 200, 238, 0.6) 55%, rgba(180, 200, 238, 0) 72%); }
.ny-moon { left: 90%; top: 6%; z-index: 2; }
.ny-tall .ny-moon { left: auto; right: 6%; top: 11%; width: clamp(30px, 9vw, 48px); }

/* aktyorlar (JS: left/top/width/height px) */
.ny-a { position: absolute; left: 0; top: 0; display: block; }
.ny-a > canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.ny-house, .ny-tree { z-index: 3; }
.ny-house.is-flip > canvas, .ny-house.is-flip > .ny-smoke { transform: scaleX(-1); }
.ny-house.is-flip > .ny-smoke { transform: translate(50%, -100%) scaleX(-1); }
.ny-lamp { z-index: 4; }
.ny-lamp::after {
  content: ""; position: absolute; left: 50%; top: 20%; width: 300%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 213, 110, 0.75), rgba(255, 213, 110, 0)); opacity: 0.35; transition: opacity 0.6s ease;
}
:root[data-scheme="dark"] .ny-lamp::after { opacity: 1; }
.ny-tree-c { z-index: 21; }
.ny-deco { z-index: 21; }
.ny-snowman { z-index: 22; transform-origin: 50% 100%; }
.ny-kid { z-index: 25; transform-origin: 50% 100%; }
.ny-star { z-index: 6; opacity: 0; border-radius: 50%;
  background: radial-gradient(circle, #fffef0 0 18%, rgba(255, 236, 160, 0.9) 30%, rgba(255, 214, 102, 0) 70%);
  box-shadow: 0 0 18px 6px rgba(255, 236, 160, 0.45); }
.ny-star::before, .ny-star::after { content: ""; position: absolute; left: 50%; top: 50%; width: 220%; height: 8%; transform: translate(-50%, -50%);
  background: linear-gradient(90deg, rgba(255, 246, 200, 0), #fff6c8, rgba(255, 246, 200, 0)); border-radius: 99px; }
.ny-star::after { transform: translate(-50%, -50%) rotate(90deg); }
.ny-twinkle { z-index: 6; opacity: 0; }
.ny-twinkle::before, .ny-twinkle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 100%; height: 14%; transform: translate(-50%, -50%);
  background: linear-gradient(90deg, rgba(255, 246, 200, 0), #fffbe6, rgba(255, 246, 200, 0)); border-radius: 99px; }
.ny-twinkle::after { transform: translate(-50%, -50%) rotate(90deg); }
.ny-sleigh { z-index: 20; opacity: 0; }
.ny-qb, .ny-qq { opacity: 0; }
.ny-qb { z-index: 24; }
.ny-qq { z-index: 23; }
.ny-landglow { z-index: 19; opacity: 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 226, 140, 0.8), rgba(255, 226, 140, 0)); }
.ny-giftbox { z-index: 26; opacity: 0; }
.ny-itemwrap { z-index: 27; opacity: 0; transform: translateY(60%) scale(0.4); transition: opacity 0.5s ease, transform 0.9s cubic-bezier(0.2, 0.9, 0.3, 1.25); }
.ny.is-gift .ny-itemwrap { opacity: 1; transform: none; }
.ny-puff { z-index: 21; opacity: 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, 0.95), rgba(240, 248, 255, 0.6) 55%, rgba(240, 248, 255, 0)); }
.ny-trail { z-index: 19; border-radius: 50%; opacity: 0; background: radial-gradient(closest-side, #fffbe6 0 35%, rgba(255, 214, 102, 0.9) 55%, rgba(255, 214, 102, 0)); }
/* yuklanguncha bo'sh canvas ko'rinmaydi */
.ny-house > canvas, .ny-tree > canvas, .ny-sleigh > canvas, .ny-lamp > canvas, .ny-deco > canvas { transition: opacity 0.4s var(--ease); }
.ny-house > canvas:not([data-px-state="ok"]), .ny-tree > canvas:not([data-px-state="ok"]), .ny-sleigh > canvas:not([data-px-state="ok"]),
.ny-lamp > canvas:not([data-px-state="ok"]), .ny-deco > canvas:not([data-px-state="ok"]) { opacity: 0; }
/* RIG: qatlamlar (bosh, qo'llar/tayoq, oyoq/etiklar, tana) — joy va bo'g'in JS'da (ulushlar, ny-rig-data.js) */
.ny-rig { position: absolute; inset: 0; display: block; }
.ny-part { position: absolute; display: block; }
.ny-part > canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.ny-p-head-wow { opacity: 0; }
/* qordagi izlar */
.ny-print { z-index: 17; opacity: 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(96, 120, 168, 0.5), rgba(96, 120, 168, 0)); }
:root[data-scheme="dark"] .ny-print { background: radial-gradient(closest-side, rgba(14, 22, 58, 0.62), rgba(14, 22, 58, 0)); }
/* interaktiv nuqtalar (qorbola, bola, deraza) — faqat bezak */
.ny-hot { pointer-events: auto; cursor: pointer; -webkit-tap-highlight-color: transparent; }

/* qahramonlar: tashqi qobiq — uchish/yurish, ichki — engashish/tebranish/qo'l silkitish (oyoq ostidan) */
.ny-body { position: absolute; inset: 0; display: block; transform-origin: 50% 100%; }
.ny .ny-hero .fox-frame { width: 100%; height: 100%; aspect-ratio: auto; display: flex; align-items: flex-end; justify-content: center; }
/* balandlik — nisbatdan (pixels.js nisbatni o'zi qo'yadi va o'lcham o'zgarishini kutadi) */
.ny .ny-hero .fox-frame canvas.fox-px { height: auto; }
.ny .ny-hero .fox-frame::before { display: none; }
.ny .ny-hero .fox-frame canvas.fox-px, .ny .ny-hero .fox-frame img { filter: none; }
.ny-hero::after, .ny-kid::after, .ny-snowman::after {
  content: ""; position: absolute; left: 14%; right: 14%; bottom: -3%; height: 7%; border-radius: 50%; z-index: -1;
  background: radial-gradient(closest-side, rgba(30, 50, 110, 0.28), rgba(30, 50, 110, 0));
}

/* uylar: deraza nuri — Tunda yonadi; mo'ri tutuni */
.ny-house > canvas.ny-glowc { opacity: 0; transition: opacity 0.6s ease; }
:root[data-scheme="dark"] .ny-house > canvas.ny-glowc[data-px-state="ok"] { opacity: 1; }
:root[data-scheme="dark"] .ny-house > canvas.ny-base, :root[data-scheme="dark"] .ny-tree:not(.ny-tree-c) > canvas.ny-base,
:root[data-scheme="dark"] .ny-lamp > canvas, :root[data-scheme="dark"] .ny-deco > canvas { filter: brightness(0.7) saturate(0.9); }
:root[data-scheme="dark"] .ny-tree-c > canvas.ny-base, :root[data-scheme="dark"] .ny-snowman canvas { filter: brightness(0.85); }
.ny-smoke { position: absolute; width: 9%; aspect-ratio: 1; transform: translate(-50%, -100%); pointer-events: none; }
.ny-house-a .ny-smoke { left: 72.6%; top: 16%; }
.ny-house-b .ny-smoke { left: 25.6%; top: 19.5%; }
.ny-smoke i { position: absolute; inset: 0; border-radius: 50%; opacity: 0; background: radial-gradient(closest-side, rgba(245, 248, 255, 0.85), rgba(245, 248, 255, 0)); }
:root[data-scheme="dark"] .ny-smoke i { background: radial-gradient(closest-side, rgba(190, 202, 232, 0.7), rgba(190, 202, 232, 0)); }
@media (prefers-reduced-motion: no-preference) {
  .ny:not(.ny-lite) .ny-smoke i { animation: ny-smoke 5.4s ease-out infinite; }
  .ny:not(.ny-lite) .ny-smoke i:nth-child(2) { animation-delay: -1.8s; }
  .ny:not(.ny-lite) .ny-smoke i:nth-child(3) { animation-delay: -3.6s; }
}
.ny-lite .ny-smoke i:first-child, [data-motion="off"] .ny-smoke i:first-child { opacity: 0.5; transform: translate(10%, -40%) scale(1.4); animation: none; }
@keyframes ny-smoke { 0% { opacity: 0; transform: translate(0, 0) scale(0.6); } 15% { opacity: 0.8; } 100% { opacity: 0; transform: translate(45%, -260%) scale(2.4); } }

/* archalar: girlyanda chiroqlari faqat Tunda yonadi (xarita qoidasi bilan bir xil), mayin miltillash */
.ny-tree > canvas.ny-tree-glow { opacity: 0; transition: opacity 0.6s ease; }
:root[data-scheme="dark"] .ny-tree > canvas.ny-tree-glow[data-px-state="ok"] { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  :root[data-scheme="dark"] .ny:not(.ny-lite) .ny-tree > canvas.ny-tree-glow[data-px-state="ok"] { animation: wm-tree-twinkle 3.2s ease-in-out infinite; }
  :root[data-scheme="dark"] .ny:not(.ny-lite) .ny-tree-b > canvas.ny-tree-glow { animation-delay: -1.1s; }
  :root[data-scheme="dark"] .ny:not(.ny-lite) .ny-tree-c > canvas.ny-tree-glow { animation-delay: -2.2s; }
}

/* uy ichkarisi kadri: kamin alangasi (yengil, tabiiy), derazadagi yaltirash, bola */
.ny-dim { position: absolute; inset: 0; z-index: 29; opacity: 0; background: rgba(12, 22, 52, 0.55); }
.ny-inside { z-index: 31; opacity: 0; border-radius: 18px; overflow: hidden; border: 6px solid #6b3d1a;
  box-shadow: 0 0 0 3px rgba(255, 226, 160, 0.55), 0 24px 50px rgba(5, 12, 35, 0.45); background: #f3d29c; }
.ny-tall .ny-inside { border-width: 4px; border-radius: 14px; }
.ny-fire { position: absolute; left: 12.3%; top: 54%; width: 13.6%; height: 21%; }
.ny-fire i { position: absolute; bottom: 0; width: 46%; height: 100%; border-radius: 50% 50% 45% 45% / 70% 70% 30% 30%; transform-origin: 50% 100%;
  background: radial-gradient(ellipse at 50% 80%, #fff3b0 0 18%, #ffc24a 38%, #ff7a1a 62%, rgba(255, 90, 20, 0) 75%); }
.ny-fire i:nth-child(1) { left: 6%; height: 72%; }
.ny-fire i:nth-child(2) { left: 27%; }
.ny-fire i:nth-child(3) { left: 50%; height: 80%; }
@media (prefers-reduced-motion: no-preference) {
  .ny:not(.ny-lite) .ny-fire i { animation: ny-flame 1.6s ease-in-out infinite alternate; }
  .ny:not(.ny-lite) .ny-fire i:nth-child(2) { animation-duration: 1.2s; animation-delay: -0.4s; }
  .ny:not(.ny-lite) .ny-fire i:nth-child(3) { animation-duration: 1.9s; animation-delay: -0.9s; }
}
@keyframes ny-flame { 0% { transform: scaleY(0.88) scaleX(1.04); opacity: 0.88; } 100% { transform: scaleY(1.06) scaleX(0.96); opacity: 1; } }
.ny-glint { position: absolute; left: 41%; top: 11%; width: 20.3%; height: 27%; overflow: hidden; opacity: 0; }
.ny-glint i { position: absolute; left: 0; top: 30%; width: 18%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, #fffef0 0 22%, rgba(255, 226, 140, 0.9) 40%, rgba(255, 226, 140, 0) 70%); box-shadow: -24px 6px 18px 2px rgba(255, 226, 140, 0.45); }
.ny-inside-kid { position: absolute; left: 56%; bottom: 7%; width: 11%; aspect-ratio: 200 / 300; transform-origin: 50% 100%; }
.ny-inside-kid > canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.ny-inside > canvas.ny-inside-px { position: absolute; inset: 0; width: 100%; height: 100%; }

/* sovg'a: quti, qopqoq, bant, nur halqasi, uchqunlar; chiqqan sovg'a belgisi (faqat revealed) */
.ny-giftbox .ny-box { position: absolute; inset: 0; z-index: 1; }
.ny-lid { position: absolute; z-index: 2; display: block; }
.ny-bow { z-index: 3; }
.ny-lid > canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.ny-ring { position: absolute; inset: -22%; border-radius: 50%; z-index: 0; opacity: 0; pointer-events: none; box-shadow: 0 0 0 3px rgba(255, 214, 102, 0.95), 0 0 22px 8px rgba(255, 214, 102, 0.5); }
.ny.is-waiting .ny-ring { opacity: 1; }
@media (prefers-reduced-motion: no-preference) { .ny.is-waiting:not(.ny-lite) .ny-ring { animation: wm-next 1.4s ease-in-out infinite; } }
.ny.is-waiting .ny-giftbox { pointer-events: auto; cursor: pointer; }
.ny-glowwrap { z-index: 22; }
.ny-glow {
  position: absolute; inset: 0; display: block; opacity: 0; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 250, 220, 0.9), rgba(255, 214, 102, 0.5) 35%, rgba(255, 190, 80, 0.16) 62%, rgba(255, 190, 80, 0));
}
.ny-rays {
  position: absolute; inset: -12%; border-radius: 50%; opacity: 0.45;
  background: repeating-conic-gradient(from 0deg, rgba(255, 236, 160, 0.5) 0deg 7deg, rgba(255, 236, 160, 0) 7deg 22deg);
  -webkit-mask: radial-gradient(closest-side, #000 30%, transparent 100%); mask: radial-gradient(closest-side, #000 30%, transparent 100%);
}
.ny-sparks { position: absolute; left: 50%; top: 6%; width: 0; height: 0; z-index: 4; }
.ny-spark { position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%; opacity: 0;
  background: radial-gradient(circle, #fffbe6 0 30%, #ffd166 55%, rgba(255, 209, 102, 0) 72%); box-shadow: 0 0 10px 3px rgba(255, 214, 102, 0.5); }
.ny-spark.is-white { background: radial-gradient(circle, #fff 0 40%, rgba(255, 255, 255, 0) 72%); box-shadow: 0 0 10px 3px rgba(255, 255, 255, 0.55); }
.ny-tall .ny-spark { left: -3px; top: -3px; width: 6px; height: 6px; }
.ny-item { position: absolute; inset: 0; display: grid; place-items: center; }
.ny-item-rays { position: absolute; inset: -38%; border-radius: 50%;
  background: repeating-conic-gradient(from 10deg, rgba(255, 240, 180, 0.55) 0deg 8deg, rgba(255, 240, 180, 0) 8deg 24deg);
  -webkit-mask: radial-gradient(closest-side, #000 25%, transparent 100%); mask: radial-gradient(closest-side, #000 25%, transparent 100%); }
.ny-item-core { position: relative; width: 74%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: radial-gradient(circle at 35% 30%, #fff6c9 0 18%, #ffd166 45%, #f2a516 100%);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.85), 0 0 22px 8px rgba(255, 214, 102, 0.6); }
.ny-item-core svg { width: 56%; height: 56%; filter: drop-shadow(0 1px 1px rgba(150, 90, 0, 0.5)); }
@media (prefers-reduced-motion: no-preference) {
  .ny.is-celebrate:not(.ny-lite) .ny-rays { animation: ny-spin 16s linear infinite; }
  .ny.is-gift:not(.ny-lite) .ny-item-rays { animation: ny-spin 18s linear infinite reverse; }
  .ny.is-gift:not(.ny-lite) .ny-item { animation: ny-float 3s ease-in-out infinite; }
}
@keyframes ny-spin { to { transform: rotate(360deg); } }
@keyframes ny-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7%); } }

/* mayin qor (sahna ustida, bosilmaydi) */
.ny-snow {
  position: absolute; left: 0; right: 0; top: -60%; height: 160%; z-index: 30; pointer-events: none; opacity: 0.6;
  background-image: radial-gradient(2.5px 2.5px at 30px 40px, #fff 50%, transparent 52%), radial-gradient(2px 2px at 120px 90px, #fff 50%, transparent 52%),
    radial-gradient(3px 3px at 200px 160px, rgba(255, 255, 255, 0.9) 50%, transparent 52%), radial-gradient(1.6px 1.6px at 80px 200px, #fff 50%, transparent 52%);
  background-size: 240px 240px; will-change: transform;
}
@media (prefers-reduced-motion: no-preference) { .ny:not(.ny-lite) .ny-snow { animation: snowfall 30s linear infinite; } }
@media (prefers-reduced-motion: reduce) { .ny-snow { display: none; } }
[data-motion="off"] .ny-snow, .ny-lite .ny-snow { display: none; }
html[data-hidden] .ny :is(.ny-snow, .ny-smoke i, .ny-rays, .ny-item-rays, .ny-item, .ny-tree-glow, .ny-fire i, .ny-ring) { animation-play-state: paused; }
[data-motion="off"] .ny :is(.ny-smoke i, .ny-rays, .ny-item-rays, .ny-item, .ny-tree-glow, .ny-fire i, .ny-ring) { animation: none !important; }

/* HUD: kichik nom (xaritadagi kabi) + hikoya izohi; ovoz; o'tkazib yuborish; yuklanish */
.ny-hud { position: absolute; left: 0; right: 0; top: clamp(8px, 2.2vh, 20px); z-index: 35; display: grid; justify-items: center; gap: 6px; padding: 0 56px; pointer-events: none; }
.ny-hud h1 {
  margin: 0; display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border-radius: 999px; font-weight: 900; line-height: 1.2;
  font-size: clamp(0.95rem, min(1.35vw, 2.4vh), 1.2rem); color: #14286b; background: rgba(255, 255, 255, 0.88); box-shadow: 0 6px 18px rgba(30, 50, 120, 0.18);
}
.ny-hud h1 svg { width: 18px; height: 18px; color: #2f7fe6; }
.ny-hud h1:focus { outline: none; }
.ny-accent { color: #e8780f; }
:root[data-scheme="dark"] .ny-hud h1 { color: #fff; background: rgba(10, 24, 62, 0.72); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3); }
:root[data-scheme="dark"] .ny-hud h1 svg { color: #8cc0ff; }
:root[data-scheme="dark"] .ny-accent { color: #ffc57e; }
.ny-cap { margin: 0; max-width: min(520px, 100%); padding: 4px 12px; border-radius: 999px; text-align: center; font-weight: 800; font-size: var(--fs-s);
  color: #1b2f6b; background: rgba(255, 255, 255, 0.72); }
:root[data-scheme="dark"] .ny-cap { color: #eaf2ff; background: rgba(10, 24, 62, 0.6); }
.ny-sound { position: absolute; right: 12px; top: clamp(8px, 2.2vh, 20px); z-index: 41; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(20, 40, 107, 0.18); background: rgba(255, 255, 255, 0.88); color: #14286b; cursor: pointer; }
.ny-sound svg { width: 20px; height: 20px; }
.ny-sound[aria-pressed="true"] { background: #fff1c9; color: #6b3d00; border-color: #f2cf7a; }
:root[data-scheme="dark"] .ny-sound:not([aria-pressed="true"]) { background: rgba(10, 24, 62, 0.72); color: #fff; border-color: rgba(255, 255, 255, 0.25); }
.ny-skip { position: absolute; right: 12px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 41; pointer-events: auto; }
:root[data-scheme="light"] .ny-skip { background: rgba(255, 255, 255, 0.88); color: #14286b; border-color: rgba(20, 40, 107, 0.2); }
.ny-wait { position: absolute; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 41; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px; font-weight: 800; font-size: var(--fs-s); color: #14286b; background: rgba(255, 255, 255, 0.9); box-shadow: 0 6px 18px rgba(30, 50, 120, 0.18); }
:root[data-scheme="dark"] .ny-wait { color: #fff; background: rgba(10, 24, 62, 0.8); }
.ny-wait-dot { width: 10px; height: 10px; border-radius: 50%; background: #f38b23; }
@media (prefers-reduced-motion: no-preference) { .ny-wait-dot { animation: wm-breathe 1s ease-in-out infinite; } }
/* «Sovg'angizni oching!» — bolaning boshi ustida, katta bosish maydoni; joylashuv va tebranish — o'ramda */
.ny-open-wrap { position: absolute; z-index: 38; transform: translate(-50%, -100%); pointer-events: none; }
.ny-open { position: relative; min-height: 48px; white-space: nowrap; pointer-events: auto; }
.ny-open::after { content: ""; position: absolute; left: 50%; bottom: -9px; width: 16px; height: 16px; transform: translateX(-50%) rotate(45deg); background: #f38b23; border-radius: 3px; z-index: -1; }
@media (prefers-reduced-motion: no-preference) { .ny:not(.ny-lite) .ny-open-wrap { animation: ny-bob 1.6s ease-in-out 4; } }
@keyframes ny-bob { 0%, 100% { transform: translate(-50%, -100%); } 50% { transform: translate(-50%, calc(-100% - 6px)); } }
.ny-tall .ny-open { font-size: var(--fs-s); padding: 8px 16px; }
.ny-dock { position: absolute; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 41; display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; width: max-content; max-width: calc(100% - 24px); }
:root[data-scheme="light"] .ny-dock .btn-glass { background: rgba(255, 255, 255, 0.9); color: #14286b; border-color: rgba(20, 40, 107, 0.2); }

/* natija / kutish kartasi — sahna tepasida (osmonda), aktyorlar pastda ko'rinib turadi */
.ny-card {
  position: absolute; left: 50%; top: clamp(84px, 13%, 120px); z-index: 40; width: min(460px, calc(100% - 24px)); transform: translateX(-50%);
  display: grid; gap: 10px; justify-items: center; text-align: center; padding: clamp(14px, 2.4vw, 22px); border-radius: 22px;
  background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--shadow-glass); color: var(--text);
  animation: ny-card-in 0.45s var(--ease) both; pointer-events: auto; max-height: calc(100% - 140px); overflow: auto;
}
.ny:not(.ny-tall) .ny-card { left: max(calc(16px + min(230px, 50% - 12px)), 31%); }
.ny-card h2 { margin: 0; font-size: clamp(1.25rem, 2.6vw, 1.7rem); line-height: 1.15; }
.ny-card > p { margin: 0; color: var(--text-soft); font-weight: 700; }
.ny-kicker { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border-radius: 999px; font-size: var(--fs-xs); font-weight: 900;
  background: linear-gradient(180deg, #fff1c9, #ffd98a); color: #6b3d00; }
.ny-kicker svg { width: 14px; height: 14px; }
.ny-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
@keyframes ny-card-in { from { opacity: 0; transform: translate(-50%, 12px) scale(0.97); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }
@media (prefers-reduced-motion: reduce) { .ny-card { animation: none; } }
[data-motion="off"] .ny-card { animation: none; }
.ny-tall .ny-card { top: clamp(84px, 13%, 110px); gap: 8px; padding: 14px; }
.ny-tall .ny-card h2 { font-size: 1.2rem; }
.ny-tall .ny-card > p { font-size: var(--fs-s); }
.ny-tall .ny-card .btn { min-height: 44px; padding: 8px 14px; font-size: var(--fs-s); }
.ny-tall .ny-card .btn-lg { min-height: 50px; }
/* mukofot qatori (ny-gift.js): holatga qarab rang */
.ny-gift { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; width: 100%; text-align: left;
  padding: 10px 12px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.7); color: var(--text); }
.ny-gift-gold { background: linear-gradient(180deg, rgba(255, 246, 214, 0.95), rgba(255, 255, 255, 0.85)); border-color: #f2cf7a; color: #3b2a07; }
.ny-gift-warn { background: #fff4e5; border-color: #f5c27a; color: #5c3200; }
:root[data-scheme="dark"] .ny-gift { background: rgba(20, 40, 80, 0.7); border-color: rgba(150, 196, 232, 0.3); color: #eaf2ff; }
:root[data-scheme="dark"] .ny-gift-gold { background: linear-gradient(180deg, rgba(74, 52, 12, 0.92), rgba(26, 40, 70, 0.9)); border-color: rgba(242, 207, 122, 0.55); color: #fff3d6; }
:root[data-scheme="dark"] .ny-gift-warn { background: rgba(80, 48, 10, 0.85); border-color: rgba(245, 194, 122, 0.5); color: #ffe7c4; }
.ny-gift-ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, #7fa6e8, #3d6fc4); }
.ny-gift-gold .ny-gift-ico { background: radial-gradient(circle at 35% 30%, #ffe9a8, #f2a516); box-shadow: 0 6px 16px rgba(242, 165, 22, 0.45); }
.ny-gift-warn .ny-gift-ico { background: linear-gradient(145deg, #f5b55a, #d9781a); }
.ny-gift-ico svg { width: 24px; height: 24px; }
.ny-gift-body { display: grid; gap: 4px; min-width: 0; justify-items: start; }
.ny-gift-title { font-size: 1.02rem; }
.ny-gift-text { font-size: var(--fs-s); font-weight: 700; opacity: 0.88; }
.ny-gift-img { max-width: 120px; height: auto; border-radius: 10px; }
main.is-scene > .ny > .section { max-width: var(--page-max); margin-left: auto; margin-right: auto; padding: 14px 16px 18px; text-align: center; }

/* ===================== 31-kun: INTERAKTIV QISHLOQ (js/pages/gift-night.js v3) =====================
   Dunyo birligi → px: JS (masshtab ko'rinish oynasidan). Kamera — .nyw-cam (translate3d); bola/Qorbobo/Qorqiz — .nyw-actor (transform);
   z-index — chuqurlik (y). Faqat transform/opacity animatsiyalari; bo'sh turganda rAF to'xtaydi. */
.nyw-view { touch-action: manipulation; outline: none; -webkit-user-select: none; user-select: none; cursor: pointer; overflow: clip; }
.nyw-view:focus-visible { box-shadow: inset 0 0 0 3px rgba(255, 214, 102, 0.95); }
.nyw-sky { position: absolute; left: 0; top: 0; z-index: 0; pointer-events: none; will-change: transform; }
.nyw-sky > canvas { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity 0.5s var(--ease); }
.nyw-sky.is-ready > canvas { opacity: 1; }
.nyw-moon { left: 84%; top: 7%; z-index: 1; }
.nyw-cam { position: absolute; left: 0; top: 0; z-index: 2; will-change: transform; transform-origin: 0 0; }
.nyw-scene { position: absolute; left: 0; top: 0; }
/* yashirin sahna / aktyor — joyi va o'lchami saqlanadi (rasmlari oldindan yuklanib chiziladi), ko'rinmaydi va bosilmaydi */
.nyw-scene.is-off, .nyw-actor.is-off { visibility: hidden; pointer-events: none; }
.nyw-a { position: absolute; display: block; }
.nyw-a > canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.nyw-sprite > canvas:not([data-px-state="ok"]), .nyw-house > canvas.ny-base:not([data-px-state="ok"]) { opacity: 0; }
.nyw-sprite > canvas { transition: opacity 0.35s var(--ease); }
/* hovli: qor, so'qmoq */
.nyw-ground { background: linear-gradient(180deg, #e9f5ff 0%, #f8fcff 26%, #e6f0fa 70%, #cfe7f8 100%); }
.nyw-path { position: absolute; left: 0; right: 0; top: 40%; height: 26%; border-radius: 50%;
  background: radial-gradient(60% 50% at 50% 50%, rgba(166, 199, 225, 0.42), rgba(166, 199, 225, 0)); }
:root[data-scheme="dark"] .nyw-ground { background: linear-gradient(180deg, #a9bfe3 0%, #b8d5f0 30%, #9fb5dd 72%, #7696c4 100%); }
:root[data-scheme="dark"] .nyw-path { background: radial-gradient(60% 50% at 50% 50%, rgba(52, 76, 126, 0.35), rgba(52, 76, 126, 0)); }
.nyw-house.h-a .ny-smoke { left: 72.6%; top: 17%; }
.nyw-house.h-b .ny-smoke { left: 25.6%; top: 19.5%; }
.nyw-house.h-main .ny-smoke { left: 73.4%; top: 6.4%; }
.nyw-house.h-c .ny-smoke { left: 26.9%; top: 11.5%; }
.nyw-house.h-d .ny-smoke { display: none; }
.nyw-door { transform-origin: 0 50%; }
.nyw-doorlight { border-radius: 50%; opacity: 0; transition: opacity 0.35s ease; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 214, 130, 0.85), rgba(255, 214, 130, 0)); }
.nyw-doorlight.is-on { opacity: 1; }
/* aktyorlar */
.nyw-actor { position: absolute; left: 0; top: 0; display: block; transform-origin: 50% 100%; will-change: transform; }
.nyw-flip { position: absolute; inset: 0; display: block; transform-origin: 50% 100%; }
.nyw-actor .ny-body { transition: none; }
@media (prefers-reduced-motion: no-preference) {
  .nyw:not(.ny-lite) .nyw-kid .ny-p-body, .nyw:not(.ny-lite) .nyw-santa .ny-p-body { animation: nyw-breathe 3.2s ease-in-out infinite; transform-origin: 50% 100%; }
}
@keyframes nyw-breathe { 0%, 100% { scale: 1 1; } 50% { scale: 1.006 1.012; } }
/* qordagi izlar (halqa bufer) */
.nyw-print { position: absolute; border-radius: 50%; opacity: 0; pointer-events: none; background: radial-gradient(closest-side, rgba(96, 120, 168, 0.55), rgba(96, 120, 168, 0)); }
.nyw-print.is-on { animation: nyw-print 9s ease-out forwards; }
:root[data-scheme="dark"] .nyw-print { background: radial-gradient(closest-side, rgba(14, 22, 58, 0.62), rgba(14, 22, 58, 0)); }
@keyframes nyw-print { 0% { opacity: 0.8; } 70% { opacity: 0.45; } 100% { opacity: 0; } }
/* chana (osmonda), chavandozlar — chana ortida o'tiradi */
.nyw-sleigh { position: absolute; left: 0; top: 0; z-index: 1200; display: block; pointer-events: none; }
.nyw-sleigh-px { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.nyw-rider { position: absolute; display: block; }
.nyw-rider-qb { left: 73.4%; top: -9%; width: 24.8%; height: 93%; }
.nyw-rider-qq { left: 58.7%; top: -3.4%; width: 17.5%; height: 87.4%; }
.nyw-trail { position: absolute; left: 92%; top: 30%; width: 70%; height: 40%; border-radius: 50%; opacity: 0.85;
  background: radial-gradient(3px 3px at 12% 50%, #fff6c8 60%, transparent 62%), radial-gradient(2.5px 2.5px at 34% 30%, #ffe08a 60%, transparent 62%),
    radial-gradient(2px 2px at 52% 64%, #fff 60%, transparent 62%), radial-gradient(3px 3px at 76% 42%, #ffd166 60%, transparent 62%),
    radial-gradient(closest-side, rgba(255, 236, 160, 0.35), rgba(255, 236, 160, 0)); }
.nyw-spark { border-radius: 50%; opacity: 0; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 252, 230, 0.95), rgba(255, 214, 102, 0.55) 40%, rgba(255, 214, 102, 0)); }
.nyw-spark.is-on { animation: nyw-burst 1s ease-out forwards; }
@keyframes nyw-burst { 0% { opacity: 0; transform: scale(0.3); } 30% { opacity: 1; transform: scale(1.1); } 100% { opacity: 0; transform: scale(1.6); } }
/* uy ichi */
.nyw-wall { background:
    linear-gradient(180deg, rgba(0, 0, 0, 0) 76%, #e2c79e 76%, #d9bb8e 100%),
    radial-gradient(circle at 30px 30px, rgba(184, 64, 76, 0.13) 0 4px, transparent 5px) 0 0 / 60px 60px,
    radial-gradient(circle at 0 0, rgba(30, 110, 88, 0.1) 0 3px, transparent 4px) 0 0 / 60px 60px,
    linear-gradient(180deg, #fbefd9, #f3dfbd); }
.nyw-floor { border-top: 12px solid #5e382c; background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0) 0 118px, rgba(70, 40, 20, 0.35) 118px 120px),
    linear-gradient(180deg, #b47a4c, #a46c42 40%, #8a5530); }
:root[data-scheme="dark"] .nyw-wall { filter: brightness(0.84) saturate(0.95); }
:root[data-scheme="dark"] .nyw-floor { filter: brightness(0.82); }
.nyw-garland-top { pointer-events: none; background:
    radial-gradient(circle at 20px 24px, #ff5b5b 0 5px, transparent 6px) 0 0 / 160px 40px, radial-gradient(circle at 60px 30px, #ffd36b 0 5px, transparent 6px) 0 0 / 160px 40px,
    radial-gradient(circle at 100px 30px, #5bc0ff 0 5px, transparent 6px) 0 0 / 160px 40px, radial-gradient(circle at 140px 24px, #7be0a3 0 5px, transparent 6px) 0 0 / 160px 40px,
    linear-gradient(180deg, transparent 44%, #2f7a52 44% 58%, transparent 58%); }
.nyw-rug { border-radius: 50%; opacity: 0.95; background: radial-gradient(ellipse at center, #d85761 0 30%, #b8404c 31% 50%, #ffc768 51% 54%, #8f2c36 55% 70%, #b8404c 71% 100%); }
.nyw-roomglow { border-radius: 50%; opacity: 0; pointer-events: none; transition: opacity 0.4s ease;
  background: radial-gradient(closest-side, rgba(255, 199, 104, 0.42), rgba(255, 199, 104, 0.12) 60%, rgba(255, 199, 104, 0)); }
.nyw-roomglow.is-on { opacity: 1; }
.nyw-winsky { overflow: hidden; background: linear-gradient(180deg, #8ec1f0, #d8ecfb); }
:root[data-scheme="dark"] .nyw-winsky { background: linear-gradient(180deg, #0b1a40, #2b3f7f); }
.nyw-winview { position: absolute; left: 0; right: 0; bottom: 0; height: 100%; display: block; }
.nyw-winview > canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.nyw-winsnow { position: absolute; inset: -50% 0 0; opacity: 0.8; background-image: radial-gradient(2px 2px at 20px 30px, #fff 50%, transparent 52%), radial-gradient(1.6px 1.6px at 70px 80px, #fff 50%, transparent 52%); background-size: 100px 100px; }
@media (prefers-reduced-motion: no-preference) { .nyw:not(.ny-lite) .nyw-winsnow { animation: snowfall 18s linear infinite; } }
.nyw-firehole { overflow: hidden; border-radius: 48% 48% 0 0 / 26% 26% 0 0; background: radial-gradient(ellipse at 50% 100%, #4a2210 0%, #1a0d08 62%, #0d0705 100%); }
.nyw-fire { left: 16%; top: auto; bottom: 3%; width: 68%; height: 48%; transform-origin: 50% 100%; transition: opacity 0.45s ease, transform 0.45s ease, filter 0.45s ease; }
.nyw-fire.is-dim { opacity: 0.22; transform: scaleY(0.45); }
.nyw-fire.is-bright { transform: scaleY(1.15); filter: brightness(1.2); }
.nyw-magic { position: absolute; inset: 0; opacity: 0; transition: opacity 0.4s ease; pointer-events: none;
  background-image: radial-gradient(2.5px 2.5px at 20% 20%, #fff 50%, transparent 52%), radial-gradient(2px 2px at 60% 40%, #fff3c4 50%, transparent 52%),
    radial-gradient(3px 3px at 40% 70%, #fff 50%, transparent 52%), radial-gradient(2px 2px at 80% 10%, #ffe08a 50%, transparent 52%);
  background-size: 100% 50%; }
.nyw-firehole.is-magic .nyw-magic { opacity: 1; }
@media (prefers-reduced-motion: no-preference) { .nyw:not(.ny-lite) .nyw-firehole.is-magic .nyw-magic { animation: nyw-magic 1.1s linear infinite; } }
@keyframes nyw-magic { from { background-position: 0 -50%; } to { background-position: 0 50%; } }
.nyw-chute { overflow: hidden; border-radius: 48% 48% 0 0 / 26% 26% 0 0; pointer-events: none; }
.nyw-chute > .nyw-actor { will-change: transform; }
/* archa chiroqlari (CSS nur — o'chiq lampochkalar rasmda) va yulduz */
.nyw-bulb { position: absolute; width: 3.4%; aspect-ratio: 1; margin: -1.7% 0 0 -1.7%; border-radius: 50%; opacity: 0; transform: scale(0.5);
  transition: opacity 0.28s ease, transform 0.28s ease; background: radial-gradient(circle, #fff 0 24%, var(--bc) 42%, rgba(255, 255, 255, 0) 74%); box-shadow: 0 0 10px 3px var(--bg); }
.nyw-bulb.c0 { --bc: #ff5b5b; --bg: rgba(255, 91, 91, 0.55); } .nyw-bulb.c1 { --bc: #ffd36b; --bg: rgba(255, 211, 107, 0.6); }
.nyw-bulb.c2 { --bc: #5bc0ff; --bg: rgba(91, 192, 255, 0.55); } .nyw-bulb.c3 { --bc: #7be0a3; --bg: rgba(123, 224, 163, 0.55); }
.nyw-bulb.c4 { --bc: #ff9bd2; --bg: rgba(255, 155, 210, 0.55); }
.nyw-bulb.is-on { opacity: 1; transform: scale(1); }
.nyw-star { position: absolute; width: 30%; aspect-ratio: 1; margin: -15% 0 0 -15%; border-radius: 50%; opacity: 0; transform: scale(0.4); pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease; background: radial-gradient(closest-side, rgba(255, 250, 215, 0.98), rgba(255, 199, 104, 0.55) 38%, rgba(255, 199, 104, 0)); }
.nyw-star.is-on { opacity: 1; transform: scale(1); }
.nyw-tablespark { position: absolute; inset: 0; opacity: 0; pointer-events: none;
  background-image: radial-gradient(3px 3px at 22% 30%, #fff6c8 50%, transparent 52%), radial-gradient(2.5px 2.5px at 48% 20%, #fff 50%, transparent 52%),
    radial-gradient(3px 3px at 70% 26%, #ffe08a 50%, transparent 52%), radial-gradient(2px 2px at 86% 36%, #fff 50%, transparent 52%); }
.nyw-tablespark.is-on { animation: nyw-twinkle 0.9s ease-in-out 2; }
@keyframes nyw-twinkle { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }
.nyw-puff { border-radius: 50%; opacity: 0; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.95), rgba(225, 240, 255, 0.6) 50%, rgba(225, 240, 255, 0)); }
.nyw-puff.is-on { animation: nyw-burst 1.1s ease-out forwards; }
/* sovg'a qutisi (egasi o'zgarganda ham bitta element) */
.nyw-gift.ny-giftbox { position: absolute; left: 0; top: 0; display: block; opacity: 1; z-index: 1; }
.nyw-giftglow { inset: auto; left: -110%; top: -130%; width: 320%; height: 320%; z-index: -1; }
.nyw-gift.is-open .nyw-giftglow { opacity: 0.85; transition: opacity 0.6s ease; }
.nyw .ny-giftbox > canvas.ny-box { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; }
.nyw.is-waiting .nyw-gift { cursor: pointer; pointer-events: auto; }
.nyw-item { position: absolute; }
/* interaktiv nuqta belgisi */
.nyw-mark { position: absolute; z-index: 1500; width: 32px; height: 32px; margin: -32px 0 0 -16px; border-radius: 50%; display: grid; place-items: center; pointer-events: none;
  color: #e8780f; background: rgba(255, 255, 255, 0.92); box-shadow: 0 4px 12px rgba(20, 40, 107, 0.25); opacity: 0; transform: scale(0.8); transition: opacity 0.25s ease, transform 0.25s ease; }
.nyw-mark svg { width: 17px; height: 17px; }
.nyw-mark.is-near { opacity: 0.8; transform: scale(0.9); }
.nyw-mark.is-on { opacity: 1; transform: scale(1.08); background: #fff4d2; }
@media (prefers-reduced-motion: no-preference) { .nyw:not(.ny-lite) .nyw-mark.is-on { animation: nyw-markbob 1.2s ease-in-out infinite; } }
@keyframes nyw-markbob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }
:root[data-scheme="dark"] .nyw-mark { background: rgba(10, 24, 62, 0.86); color: #ffc57e; }
/* HUD: maqsad, boshqaruv tugmalari (pastki xavfsiz zona), amallar ro'yxati, ko'rsatma */
.nyw-goal { margin: 0; padding: 3px 12px; border-radius: 999px; font-weight: 800; font-size: var(--fs-xs); color: #6b3d00; background: rgba(255, 241, 201, 0.92); }
:root[data-scheme="dark"] .nyw-goal { color: #ffe7b0; background: rgba(80, 52, 10, 0.78); }
/* «O'tkazib yuborish» — qisqa sahnada pastki o'ngda (bu paytda boshqaruv tugmalari yashirin — ustma-ust tushmaydi) */
.nyw .ny-skip { bottom: calc(12px + env(safe-area-inset-bottom, 0px)); min-height: 44px; }
.nyw-ctrls { position: absolute; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 41; display: flex; gap: 8px; align-items: flex-end;
  justify-content: space-between; pointer-events: none; }
.nyw-ctrls > * { pointer-events: auto; }
.nyw-act, .nyw-open { min-height: 48px; margin-inline: auto; white-space: nowrap; box-shadow: 0 8px 22px rgba(232, 120, 15, 0.35); }
.nyw-ctrls > .nyw-list-btn { min-height: 44px; }
:root[data-scheme="light"] .nyw-list-btn { background: rgba(255, 255, 255, 0.9); color: #14286b; border-color: rgba(20, 40, 107, 0.2); }
/* tebranish — bir necha marta (doimiy harakatlanuvchi tugmani bosish qiyin) */
@media (prefers-reduced-motion: no-preference) { .nyw:not(.ny-lite) .nyw-open { animation: nyw-ctabob 1.6s ease-in-out 3; } }
@keyframes nyw-ctabob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -4px; } }
.nyw-panel { position: absolute; left: 12px; bottom: calc(68px + env(safe-area-inset-bottom, 0px)); z-index: 42; display: grid; gap: 4px; padding: 8px; max-height: 60%; overflow: auto;
  width: min(300px, calc(100% - 24px)); border-radius: 16px; background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--shadow-glass); }
.nyw-panel .btn { justify-content: flex-start; min-height: 44px; }
.nyw-hint { position: absolute; left: 50%; top: 30%; z-index: 39; display: inline-flex; align-items: center; gap: 8px; max-width: calc(100% - 32px); width: max-content;
  transform: translateX(-50%); margin: 0; padding: 8px 14px; border-radius: 14px; font-weight: 800; font-size: var(--fs-s); text-align: center; pointer-events: none;
  color: #14286b; background: rgba(255, 255, 255, 0.92); box-shadow: 0 6px 18px rgba(30, 50, 120, 0.18); }
.nyw-hint svg { width: 18px; height: 18px; flex: none; }
:root[data-scheme="dark"] .nyw-hint { color: #fff; background: rgba(10, 24, 62, 0.86); }
.nyw-fade { position: absolute; inset: 0; z-index: 36; opacity: 0; pointer-events: none; background: radial-gradient(circle at 50% 60%, #fff1d6, #f2c27a 70%, #d98a3a); }
.nyw .ny-card { z-index: 45; }
.nyw-rm .nyw-mark.is-on, .nyw-rm .nyw-open { animation: none; }
@media (max-width: 420px) { .nyw-act, .nyw-open { font-size: var(--fs-s); padding-inline: 14px; } .nyw-list-btn span { display: none; } }
/* past landshaft ekran (telefon yotiq): sahna ekranga sig'adi — bola, pol va tugmalar ekran ostiga tushmaydi; HUD ixcham */
@media (max-height: 560px) and (orientation: landscape) {
  .nyw .nyw-view { height: calc(100vh - 65px); height: calc(100svh - 65px); min-height: 260px; }
  .nyw .nyw-hud { top: 6px; gap: 4px; }
  .nyw .nyw-hud h1 { padding: 3px 12px; font-size: var(--fs-xs); gap: 6px; }
  .nyw .nyw-hud h1 svg { width: 14px; height: 14px; }
  .nyw .nyw-sub { font-size: var(--fs-xs); padding: 2px 10px; }
  .nyw .ny-card { top: 8px; max-height: calc(100% - 16px); }
  .nyw .nyw-act, .nyw .nyw-open { min-height: 44px; }
}

/* ===================== «Mening sovgʻam» — sovg'a pasporti (js/pages/gift.js) =====================
   Premium qishki uslub: muzli shisha karta, yumshoq oq-ko'k gradient, kumush chiziqlar, iliq oltin aksent. Fon (qor, archalar,
   chiroqlar) — kontent ortida, bosilmaydi. Telefonda bitta ustun (karta birinchi ekranda), planshet/noutbukda ikki ustun. */
.gp { max-width: 1080px; margin: 0 auto; padding: 14px 16px 28px; display: grid; gap: 16px; }
.gp-head { display: grid; gap: 6px; }
.gp-crumb { display: inline-flex; align-items: center; gap: 6px; width: max-content; max-width: 100%; padding: 3px 12px; border-radius: 999px;
  font-size: var(--fs-xs); font-weight: 900; letter-spacing: 0.03em; color: #2c4a86; background: rgba(255, 255, 255, 0.7); border: 1px solid rgba(160, 190, 230, 0.6); }
.gp-crumb svg { width: 14px; height: 14px; color: #2f7fe6; }
.gp-head h1 { margin: 0; font-size: clamp(1.6rem, 3.2vw, 2.5rem); line-height: 1.1; letter-spacing: -0.01em; }
.gp-head h1:focus { outline: none; }
.gp-lead { margin: 0; max-width: 62ch; font-weight: 700; color: var(--text-soft); }
body.app .gp-head h1, body.app .gp-lead { color: #fff; text-shadow: 0 2px 10px rgba(3, 14, 30, 0.35); }
:root[data-scheme="light"] body.app .gp-head h1 { color: #10244f; text-shadow: none; }
:root[data-scheme="light"] body.app .gp-lead { color: #33507f; text-shadow: none; }
:root[data-scheme="dark"] .gp-crumb { color: #dbe8ff; background: rgba(10, 24, 62, 0.6); border-color: rgba(150, 196, 232, 0.3); }


.gp-stage {
  position: relative; overflow: hidden; isolation: isolate; border-radius: 28px; padding: clamp(18px, 3.2vw, 36px);
  display: grid; grid-template-columns: minmax(180px, 280px) minmax(0, 1fr); gap: clamp(16px, 3vw, 40px); align-items: center; min-height: 340px;
  background: linear-gradient(180deg, #d6e8ff 0%, #eef5ff 52%, #ffffff 100%);
  border: 1px solid rgba(255, 255, 255, 0.85); box-shadow: 0 26px 60px rgba(16, 48, 110, 0.22), inset 0 1px 0 #fff;
}
:root[data-scheme="dark"] .gp-stage { background: linear-gradient(180deg, #0b1a40 0%, #142a5e 55%, #1c376f 100%); border-color: rgba(150, 196, 232, 0.25); box-shadow: 0 26px 60px rgba(0, 6, 20, 0.5); }
/* fon: tepaliklar, archalar, chiroqlar, mayin qor */
.gp-decor { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.gp-hills { position: absolute; left: 0; right: 0; bottom: -1px; height: 38%;
  background: radial-gradient(60% 100% at 25% 100%, #ffffff 0 60%, rgba(255, 255, 255, 0) 61%), radial-gradient(70% 100% at 80% 100%, #f3f8ff 0 58%, rgba(243, 248, 255, 0) 59%),
    linear-gradient(180deg, rgba(255, 255, 255, 0), #ffffff 85%); }
:root[data-scheme="dark"] .gp-hills { background: radial-gradient(60% 100% at 25% 100%, #c7d6f4 0 60%, rgba(199, 214, 244, 0) 61%), radial-gradient(70% 100% at 80% 100%, #b6c8ee 0 58%, rgba(182, 200, 238, 0) 59%),
    linear-gradient(180deg, rgba(160, 182, 230, 0), #a9bde9 85%); }
.gp-tree { position: absolute; bottom: 6%; aspect-ratio: 300 / 480; }
.gp-tree > canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.gp-tree.t1 { left: 2%; width: clamp(54px, 7%, 92px); }
.gp-tree.t2 { left: 8%; width: clamp(38px, 5%, 64px); bottom: 10%; opacity: 0.85; }
.gp-tree.t3 { right: 3%; width: clamp(48px, 6.5%, 86px); }
.gp-tree > canvas.gp-tree-glow { opacity: 0; transition: opacity 0.6s ease; }
:root[data-scheme="dark"] .gp-tree > canvas.gp-tree-glow { opacity: 1; }
:root[data-scheme="dark"] .gp-tree > canvas:first-child { filter: brightness(0.8); }
.gp-lights { position: absolute; left: 4%; right: 4%; top: 10px; height: 26px; display: flex; justify-content: space-between; align-items: flex-start;
  border-top: 2px solid rgba(80, 110, 70, 0.35); border-radius: 0 0 50% 50% / 0 0 100% 100%; }
.gp-lights i { width: 9px; height: 9px; border-radius: 50%; margin-top: 3px; background: #ffd36b; box-shadow: 0 0 8px 2px rgba(255, 211, 107, 0.45); }
.gp-lights i:nth-child(3n + 1) { background: #ff7a7a; box-shadow: 0 0 8px 2px rgba(255, 122, 122, 0.4); }
.gp-lights i:nth-child(3n + 2) { background: #7cc4ff; box-shadow: 0 0 8px 2px rgba(124, 196, 255, 0.4); }
.gp-lights i:nth-child(even) { margin-top: 9px; }
:root[data-scheme="light"] .gp-lights i { box-shadow: none; opacity: 0.85; }
.gp-snow { position: absolute; inset: -40% 0 0; opacity: 0.55;
  background-image: radial-gradient(2px 2px at 30px 40px, #fff 50%, transparent 52%), radial-gradient(1.6px 1.6px at 120px 90px, #fff 50%, transparent 52%),
    radial-gradient(2.4px 2.4px at 200px 150px, rgba(255, 255, 255, 0.9) 50%, transparent 52%);
  background-size: 220px 220px; }
:root[data-scheme="light"] .gp-snow { background-image: radial-gradient(2px 2px at 30px 40px, #c9dbf5 50%, transparent 52%), radial-gradient(1.6px 1.6px at 120px 90px, #d4e3f8 50%, transparent 52%); }
@media (prefers-reduced-motion: no-preference) { .gp-snow { animation: snowfall 34s linear infinite; } }
[data-motion="off"] .gp-snow, html[data-hidden] .gp-snow { animation: none; }

/* sovg'a qutisi (31-kun sahnasidagi bilan bir xil rasm) */
.gp-art { position: relative; justify-self: center; width: min(100%, 230px); aspect-ratio: 1; display: grid; place-items: end center; }
.gp-glow { position: absolute; inset: -10%; border-radius: 50%; opacity: 0; transition: opacity 0.6s ease;
  background: radial-gradient(closest-side, rgba(255, 246, 210, 0.95), rgba(255, 214, 102, 0.45) 45%, rgba(255, 214, 102, 0) 72%); }
.gp-art.is-open .gp-glow, .gp-art.is-gift .gp-glow { opacity: 1; }
.gp-box { position: relative; width: 62%; aspect-ratio: 160 / 140; margin-bottom: 12%; z-index: 1; }
.gp-box > * { position: absolute; display: block; }
.gp-box-body { inset: 0; width: 100%; height: 100%; }
.gp-box-lid, .gp-box-bow { left: -6%; width: 112%; aspect-ratio: 180 / 70; top: -24%; transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.3, 1.1), opacity 0.6s ease; }
.gp-art.is-open .gp-box-lid, .gp-art.is-gift .gp-box-lid { transform: translate(-18%, -70%) rotate(-18deg); }
.gp-art.is-open .gp-box-bow, .gp-art.is-gift .gp-box-bow { transform: translate(-12%, -120%) rotate(-10deg); opacity: 0; }
.gp-art.is-dim { filter: grayscale(0.6) opacity(0.7); }
.gp-badge { position: absolute; left: 50%; top: 4%; transform: translateX(-50%); width: 34%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; z-index: 2; color: #fff;
  background: radial-gradient(circle at 35% 30%, #fff6c9 0 18%, #ffd166 45%, #f2a516 100%); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.85), 0 0 22px 8px rgba(255, 214, 102, 0.55); }
.gp-badge svg { width: 52%; height: 52%; }
@media (prefers-reduced-motion: no-preference) { .gp-art.is-gift .gp-badge { animation: ny-float 3s ease-in-out infinite; } }
.gp-shadow { position: absolute; bottom: 8%; width: 66%; height: 9%; border-radius: 50%; background: radial-gradient(closest-side, rgba(30, 50, 110, 0.25), rgba(30, 50, 110, 0)); }

/* status kartasi */
.gp-card { position: relative; display: grid; gap: 12px; align-content: start; padding: clamp(16px, 2.4vw, 26px); border-radius: 22px; color: #13254f;
  background: rgba(255, 255, 255, 0.78); border: 1px solid rgba(255, 255, 255, 0.9); box-shadow: 0 14px 34px rgba(16, 48, 110, 0.14), inset 0 1px 0 #fff;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); min-width: 0; }
.gp-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; padding: 1px;
  background: linear-gradient(135deg, rgba(210, 222, 240, 0.9), rgba(255, 255, 255, 0) 40%, rgba(242, 207, 122, 0.7));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
:root[data-scheme="dark"] .gp-card { color: #eef4ff; background: rgba(12, 28, 66, 0.72); border-color: rgba(150, 196, 232, 0.25); box-shadow: 0 14px 34px rgba(0, 6, 20, 0.45); }
.gp-chip { display: inline-flex; align-items: center; gap: 6px; width: max-content; max-width: 100%; padding: 4px 12px; border-radius: 999px; font-size: var(--fs-xs); font-weight: 900; }
.gp-chip svg { width: 14px; height: 14px; flex: none; }
.gp-chip-gold { background: linear-gradient(180deg, #fff1c9, #ffd98a); color: #6b3d00; }
.gp-chip-ice { background: #e6f0ff; color: #1f4f9a; }
.gp-chip-muted { background: #eef1f6; color: #3d4a63; }
.gp-chip-warn { background: #fff0dc; color: #8a4a00; }
:root[data-scheme="dark"] .gp-chip-ice, :root[data-scheme="dark"] .gp-chip-muted { background: rgba(120, 160, 230, 0.2); color: #dbe8ff; }
.gp-title { margin: 0; font-size: clamp(1.25rem, 2.4vw, 1.75rem); line-height: 1.2; overflow-wrap: anywhere; }
.gp-text { margin: 0; font-weight: 700; color: #3a4f78; overflow-wrap: anywhere; }
:root[data-scheme="dark"] .gp-text { color: #c9d8f3; }
.gp-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.gp-actions .btn { min-height: 44px; }
.gp-meta-wrap { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; }
.gp-img { max-width: min(240px, 100%); height: auto; border-radius: 14px; object-fit: contain; background: #fff; }
.gp-meta { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; font-size: var(--fs-s); }
.gp-meta dt { font-weight: 800; color: #4a5f86; }
.gp-meta dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
:root[data-scheme="dark"] .gp-meta dt { color: #9fb6dc; }
.gp-card .countdown { justify-self: stretch; justify-content: flex-start; flex-wrap: wrap; min-width: 0; }
/* karta ichida — 4 ta quti karta eniga sig'adi (280 px telefondan planshetgacha), ekrandan chiqmaydi */
.gp-card .countdown .cd-box { flex: 1 1 0; min-width: 0; max-width: 96px; }

/* pastdagi bo'limlar */
.gp-more { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 14px; align-items: start; }
.gp-panel { padding: clamp(14px, 2.2vw, 22px); border-radius: 20px; background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--shadow-glass); color: var(--text); min-width: 0; }
.gp-panel-title { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: var(--fs-l); }
.gp-panel-title svg { width: 20px; height: 20px; color: #2f7fe6; }
details.gp-panel > summary { display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 900; min-height: 44px; list-style: none; }
details.gp-panel > summary::-webkit-details-marker { display: none; }
details.gp-panel > summary svg { width: 18px; height: 18px; color: #2f7fe6; }
details.gp-panel > p { margin: 8px 0 0; overflow-wrap: anywhere; }
.gp-ch { margin: 6px 0 0; padding-left: 18px; }

@media (max-width: 699px) {
  .gp { padding: 10px 12px 22px; gap: 12px; }
  .gp-stage { grid-template-columns: minmax(0, 1fr); padding: 14px; gap: 6px; border-radius: 22px; min-height: 0; }
  .gp-art { width: min(44%, 150px); }
  .gp-card { padding: 14px; }
  .gp-actions .btn { flex: 1 1 auto; justify-content: center; }
  .gp-tree.t2 { display: none; }
}
@media (max-width: 359px) { .gp-actions .btn { width: 100%; } .gp-head h1 { font-size: 1.45rem; } }

/* Qulf ekrani (mavsumgacha, js/pages/map.js lockScreen): xira fon, hech narsa bosilmaydi, faqat nom va orqaga sanoq */
html.wm-locked, html.wm-locked body { overflow: hidden; }
.wm-is-locked .wm-title { visibility: hidden; }
.wm-lock { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px;
  background: rgba(10, 22, 56, 0.42); -webkit-backdrop-filter: blur(4px) saturate(0.9); backdrop-filter: blur(4px) saturate(0.9); }
:root[data-scheme="dark"] .wm-lock { background: rgba(3, 8, 24, 0.55); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .wm-lock { background: rgba(10, 22, 56, 0.66); } }
.wm-lock-card { display: grid; justify-items: center; gap: 16px; text-align: center; width: min(560px, 100%);
  padding: clamp(20px, 4vw, 36px) clamp(16px, 5vw, 44px); border-radius: 28px;
  background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.35); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3); }
.wm-lock-title { margin: 0; color: #fff; font-size: clamp(1.6rem, 6vw, 2.7rem); font-weight: 900; line-height: 1.1; text-shadow: 0 4px 18px rgba(0, 0, 0, 0.35); }
.wm-lock-title:focus { outline: none; }
.wm-lock-title span { color: #ffd166; }
.wm-lock .cd-label { color: #e6efff; }
.wm-lock-soon { margin: 0; color: #fff; font-weight: 900; font-size: 1.2rem; }

/* ===================== QORLI RAQAMLAR (xarita 1–30, darvozalar, «Yangi yil» eshigi) — egasi talabi 2026-11-14 =====================
   Faqat CSS (qo'shimcha rasm so'rovi yo'q, har kadrda qayta chizish yo'q): chuqur ko'k raqam, oq-muz kontur, mayin bo'rtma (bevel),
   tepada mayda qor qalpoqchasi, atrofida 2–3 ta juda kichik qor yulduzchasi. Bezak raqamni yopmaydi, bosishni to'smaydi. */
.wm-num {
  color: #173a8a; letter-spacing: 0.01em;
  text-shadow: -0.045em -0.045em 0 #fff, 0.045em -0.045em 0 #fff, -0.045em 0.045em 0 #fff, 0.045em 0.045em 0 #fff,
    0 0.07em 0 #fff, 0 0.1em 0 #c4dbf5, 0 0.13em 0 #93b6e4, 0 0.2em 0.3em rgba(16, 42, 107, 0.38), 0 0 0.45em rgba(255, 255, 255, 0.9);
}
.wm-num::before {   /* qor qalpoqchasi */
  content: ""; position: absolute; left: 0.04em; right: 0.04em; top: -0.17em; height: 0.27em; pointer-events: none;
  background: linear-gradient(180deg, #fff 0%, #f6fbff 55%, #d3e6fb 100%); border-radius: 45% 45% 50% 50% / 75% 75% 45% 45%;
  box-shadow: 0 0.03em 0 rgba(40, 80, 160, 0.28), 0 0 0.25em rgba(255, 255, 255, 0.9);
}
.wm-num::after {    /* 2–3 ta juda kichik qor yulduzchasi */
  content: ""; position: absolute; inset: -0.32em -0.6em -0.1em; pointer-events: none; opacity: 0.95;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg stroke='%2382b4f0' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 2v20M3.3 7l17.4 10M3.3 17L20.7 7'/%3E%3C/g%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg stroke='%2382b4f0' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 2v20M3.3 7l17.4 10M3.3 17L20.7 7'/%3E%3C/g%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg stroke='%2382b4f0' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 2v20M3.3 7l17.4 10M3.3 17L20.7 7'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 0.27em, 0.19em, 0.22em; background-position: 2% 18%, 100% 2%, 97% 92%;
  filter: drop-shadow(0 0 0.06em #fff);
}
:root[data-scheme="dark"] .wm-num::after { filter: brightness(1.9) drop-shadow(0 0 0.06em rgba(150, 205, 255, 0.95)); }
.wm-mound.is-locked .wm-num { color: #2c4a86; }
.wm-mound.is-locked .wm-num::after { opacity: 0.55; }          /* qulf: kuchli yaltirash yo'q */
.wm-mound.is-missed .wm-num::after, .wm-mound.st-missed .wm-num::after { display: none; }
.wm-mound.is-completed .wm-num { color: #1d6f45; }              /* raqam yashirilmaydi; ixcham yashil belgi — pastda */
/* bugun: qirov ichida nozik iliq oltin nur */
.wm-mound.is-eligible .wm-num {
  color: #143c9e;
  text-shadow: -0.045em -0.045em 0 #fff, 0.045em -0.045em 0 #fff, -0.045em 0.045em 0 #fff, 0.045em 0.045em 0 #fff,
    0 0.07em 0 #fff, 0 0.1em 0 #c4dbf5, 0 0.13em 0 #93b6e4, 0 0 0.35em rgba(255, 200, 90, 0.95), 0 0 0.8em rgba(255, 170, 50, 0.6), 0 0.2em 0.3em rgba(16, 42, 107, 0.3);
}
/* tun: yengil muz-ko'k kontur va qor yaltirashi, kontrast yuqori */
:root[data-scheme="dark"] .wm-num {
  color: #0f2a6b;
  text-shadow: -0.045em -0.045em 0 #fff, 0.045em -0.045em 0 #fff, -0.045em 0.045em 0 #fff, 0.045em 0.045em 0 #fff,
    0 0.07em 0 #eaf4ff, 0 0.1em 0 #9cc2ef, 0 0.13em 0 #6f97d4, 0 0 0.5em rgba(150, 205, 255, 0.95), 0 0.2em 0.35em rgba(0, 10, 40, 0.5);
}
:root[data-scheme="dark"] .wm-mound.is-eligible .wm-num {
  text-shadow: -0.045em -0.045em 0 #fff, 0.045em -0.045em 0 #fff, -0.045em 0.045em 0 #fff, 0.045em 0.045em 0 #fff,
    0 0.07em 0 #eaf4ff, 0 0.1em 0 #9cc2ef, 0 0.13em 0 #6f97d4, 0 0 0.4em rgba(255, 205, 100, 0.95), 0 0 0.9em rgba(255, 170, 50, 0.65);
}
/* bosqich darvozalari (11–20, 21–30): raqamlar ham qorli */
.wm-gate-label b {
  position: relative; color: #142a6b;
  text-shadow: -0.04em -0.04em 0 #fff, 0.04em -0.04em 0 #fff, -0.04em 0.04em 0 #fff, 0.04em 0.04em 0 #fff, 0 0.08em 0 #c4dbf5, 0 0 0.35em rgba(255, 255, 255, 0.9);
}
.wm-gate-label b::before {
  content: ""; position: absolute; left: 0.06em; right: 0.06em; top: -0.16em; height: 0.24em; pointer-events: none;
  background: linear-gradient(180deg, #fff, #dcecfd); border-radius: 45% 45% 50% 50% / 75% 75% 45% 45%; box-shadow: 0 0.03em 0 rgba(40, 80, 160, 0.25);
}
/* «Yangi yil» eshigi: tepada qor qalpog'i va osilib turgan mayin qirov (sumalak) — yozuv va sana ochiq qoladi */
.wm-door-num.wm-door-text { color: #a8121c; text-shadow: -0.04em -0.04em 0 #fff, 0.04em -0.04em 0 #fff, -0.04em 0.04em 0 #fff, 0.04em 0.04em 0 #fff, 0 0.08em 0 #f3d9c4, 0 0 0.35em rgba(255, 255, 255, 0.9); }
.wm-door-num.wm-door-text::before {
  content: ""; position: absolute; left: -0.18em; right: -0.18em; top: -0.5em; height: 0.34em; pointer-events: none;
  background: linear-gradient(180deg, #fff 0%, #f4faff 60%, #d4e7fb 100%); border-radius: 45% 45% 50% 50% / 80% 80% 40% 40%;
  box-shadow: 0 0.04em 0 rgba(40, 80, 160, 0.3), 0 0 0.3em rgba(255, 255, 255, 0.9);
}
.wm-door-num.wm-door-text::after {
  content: ""; position: absolute; left: -0.1em; right: -0.1em; top: -0.2em; height: 0.3em; pointer-events: none;
  background: linear-gradient(180deg, #ffffff, #a9d0f7);
  clip-path: polygon(0 0, 100% 0, 100% 30%, 96% 30%, 93% 85%, 90% 30%, 80% 30%, 77% 65%, 74% 30%, 62% 30%, 59% 100%, 56% 30%, 44% 30%, 41% 70%, 38% 30%, 26% 30%, 23% 90%, 20% 30%, 9% 30%, 6% 60%, 3% 30%, 0 30%);
  filter: drop-shadow(0 0.02em 0 rgba(40, 80, 160, 0.35));
}
.wm-door-date { color: #7a3f0c; }

/* ===================== 31-kun: tabrik / natija oynasi — ekran markazida, sahna ustida professional modal ===================== */
.ny.nyw.is-modal .ny-card {
  left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(500px, calc(100% - 32px)); max-height: calc(100% - 24px);
  padding: clamp(18px, 3vw, 28px); gap: 12px; border-radius: 24px; z-index: 46;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.97) 0%, rgba(236, 246, 255, 0.95) 100%);
  border: 1px solid rgba(165, 205, 250, 0.9); border-top: 3px solid #e9b949; color: #10245e;
  box-shadow: 0 24px 60px rgba(8, 20, 60, 0.38), 0 0 0 6px rgba(255, 255, 255, 0.28), inset 0 1px 0 #fff;
  animation: ny-modal-in 0.42s var(--ease) both;
}
.ny.nyw.is-modal .ny-card h2 { color: #10245e; font-size: clamp(1.35rem, 3vw, 1.9rem); }
.ny-card h2:focus { outline: none; }   /* dasturiy fokus (ekran o'quvchi uchun) — ko'rinadigan halqa kerak emas */
.ny.nyw.is-modal .ny-card > p { color: #34477e; }
.ny.nyw.is-modal .nyw-view::after {   /* sahna xiralashadi — oyna ustuvor */
  content: ""; position: absolute; inset: 0; z-index: 45; pointer-events: none;
  background: radial-gradient(ellipse at 50% 50%, rgba(8, 20, 60, 0.22), rgba(8, 20, 60, 0.55));
}
.ny.nyw.is-modal .nyw-ctrls, .ny.nyw.is-modal .nyw-hint { visibility: hidden; }
:root[data-scheme="dark"] .ny.nyw.is-modal .ny-card { background: linear-gradient(165deg, rgba(18, 34, 84, 0.97), rgba(10, 22, 60, 0.96)); color: #f3f7ff; border-color: rgba(120, 160, 230, 0.55); }
:root[data-scheme="dark"] .ny.nyw.is-modal .ny-card h2 { color: #fff; }
:root[data-scheme="dark"] .ny.nyw.is-modal .ny-card > p { color: #cdd9f5; }
@keyframes ny-modal-in { from { opacity: 0; transform: translate(-50%, calc(-50% + 14px)) scale(0.96); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@media (prefers-reduced-motion: reduce) { .ny.nyw.is-modal .ny-card { animation: none; } }
[data-motion="off"] .ny.nyw.is-modal .ny-card { animation: none; }

/* ===================== «Yangi yil» eshigi — ikki tabaqa (doim yopiq; Yangi yilda bosilganda ochiladi) =====================
   Ark ochig'i door31.svg da: x 144–376, tepa 108, past 490 (520×500) → foiz. Tabaqalar yog'och, oltin hoshiya, tepasi ark bo'yicha. */
.wm-arch-leaf {
  position: absolute; top: 21.6%; width: 22.32%; height: 76.4%; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 220, 160, 0.18), rgba(0, 0, 0, 0.12)),
    repeating-linear-gradient(90deg, #8d5222 0 17%, #7b451b 17% 19%, #94592a 19% 36%, #7b451b 36% 38%);
  box-shadow: inset 0 0 0 2px #e9b949, inset 0 0 0 4px rgba(90, 45, 10, 0.55), inset 0 -8px 14px rgba(40, 18, 2, 0.35);
  transition: transform 0.85s cubic-bezier(0.3, 0.7, 0.2, 1);
}
.wm-arch-l { left: 27.69%; transform-origin: 0% 50%; border-radius: 100% 0 0 0 / 34% 0 0 0; }
.wm-arch-r { left: 50%; transform-origin: 100% 50%; border-radius: 0 100% 0 0 / 0 34% 0 0; }
.wm-arch-leaf::after {   /* oltin halqa-dastak (markaz yonida) */
  content: ""; position: absolute; top: 58%; width: 13%; aspect-ratio: 1; border-radius: 50%; border: 2px solid #f4c24f; box-shadow: 0 1px 2px rgba(40, 18, 2, 0.5);
}
.wm-arch-l::after { right: 9%; }
.wm-arch-r::after { left: 9%; }
.wm-arch-shine { left: 27%; top: 21%; width: 46%; height: 77%; border-radius: 50% 50% 4% 4% / 30% 30% 4% 4%; }
.wm-door31 .wm-door-num { z-index: 3; }
.wm-door31.is-opening .wm-arch-l { transform: perspective(520px) rotateY(-100deg); }
.wm-door31.is-opening .wm-arch-r { transform: perspective(520px) rotateY(100deg); }
.wm-door31.is-opening .wm-gate-shine { opacity: 1; transform: scale(1.2); }
.wm-door31.is-opening .wm-door-num { opacity: 0; transition: opacity 0.3s; }
.wm-door31.is-opening .wm-gate-sparks i { animation: wm-gate-spark 0.9s ease-out forwards; }
.wm-door31.is-rattle .wm-arch-leaf { animation: wm-rattle 0.34s ease-in-out; }
@media (prefers-reduced-motion: reduce) { .wm-arch-leaf { transition: none; } .wm-door31.is-rattle .wm-arch-leaf { animation: none; } }
[data-motion="off"] .wm-arch-leaf { transition: none; }

/* ===================== Profil: «Yosh guruhi» — ixcham qator (docs/YOSH-GURUHLARI.md) =====================
   Katta karta yoki majburiy oyna yo'q: bitta qator + «Oʻzgartirish» bosilganda tik ro'yxat (4 ta variant) va keng «Tanlash».
   Bosiladigan joylar ≥ 44px; 280–2560px (ro'yxat keng ekranda ham ixcham — 420px gacha). */
.age-card { display: grid; gap: 10px; }
.age-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.age-title { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; min-width: 0; }
.age-title svg { width: 20px; height: 20px; flex: none; color: var(--ice-700); }
.age-value { font-weight: 800; overflow-wrap: anywhere; }
.age-value.is-empty { font-weight: 700; color: var(--text-soft); }
.age-card .btn-sm { min-height: 44px; }
.age-panel { display: grid; gap: 10px; max-width: 420px; }
.age-panel fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.age-options { display: grid; gap: 8px; }
.age-opt {
  display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 10px 14px; border-radius: 12px; cursor: pointer;
  border: 2px solid var(--ice-200); background: var(--surface); color: var(--text); font-weight: 800; font-size: var(--fs-s);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.age-opt input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--fox-600); }
.age-opt.is-checked { border-color: var(--fox-500); background: var(--fox-50); }
@media (hover: hover) { .age-opt:hover { border-color: var(--ice-500); } .age-opt.is-checked:hover { border-color: var(--fox-500); } }
.age-panel fieldset[disabled] .age-opt { opacity: 0.6; cursor: progress; }
.age-error, .age-status { margin: 0; }
.age-error { color: var(--bad-ink); font-weight: 800; }
.age-status { display: flex; align-items: center; gap: 6px; color: var(--ok-ink); font-weight: 800; }
.age-status.is-error { color: var(--bad-ink); }
.age-status svg { width: 16px; height: 16px; flex: none; }
.age-error:empty, .age-status:empty { display: none; }
.age-actions { display: grid; gap: 6px; }
@media (max-width: 359px) { .age-head .btn { flex: 1 1 auto; } }
@media (prefers-reduced-motion: reduce) { .age-opt { transition: none; } }

/* ===================== 31-kun: Qorbobo ESHIKDAN keladi (2026-11-15) =====================
   Sahna butun ekranni egallaydi (pastda bo'sh joy, matn yoki footer yo'q); telefonda pastki menyu sahnani yopmaydi. Eshik — ramka + alohida
   tabaqa (ilmoqda aylanadi), ochilganda iliq nur va qor; «Tok-tok!» — sahna ichida (masshtab bilan); nutq pufagi — ekran chegarasida qoladi. */
body.on-scene .app-footer { display: none; }
/* sahna sarlavhadan pastgacha butun ekran (pastki menyu yo'q); kichik telefonda ham sahifa aylanmaydi */
body.on-scene .ny-loading, body.on-scene .ny-scene { height: calc(100vh - 65px); height: calc(100svh - 65px); min-height: 360px; }
@media (max-width: 699px) and (max-aspect-ratio: 1/1) {
  body.on-scene .ny-loading, body.on-scene .ny-scene { height: calc(100vh - 57px); height: calc(100svh - 57px); min-height: 400px; }
}
@media (max-height: 560px) and (orientation: landscape) {
  body.on-scene .ny-loading, body.on-scene .ny-scene { min-height: 260px; }
}
.nyw-doorleaf { transform-origin: 0 50%; backface-visibility: hidden; }
.nyw-doorglow { border-radius: 50%; opacity: 0; pointer-events: none; transition: opacity 0.5s ease;
  background: radial-gradient(ellipse at 22% 32%, rgba(255, 214, 140, 0.8), rgba(255, 190, 110, 0.34) 45%, rgba(255, 190, 110, 0) 72%); }
.nyw-doorglow.is-on { opacity: 1; }
.nyw-doorsnow { overflow: hidden; opacity: 0; pointer-events: none; transition: opacity 0.4s ease;
  background-image: radial-gradient(2px 2px at 20% 30%, #fff 50%, transparent 52%), radial-gradient(3px 3px at 62% 12%, #fff 50%, transparent 52%),
    radial-gradient(2px 2px at 82% 55%, #fff 50%, transparent 52%), radial-gradient(2.5px 2.5px at 36% 72%, #fff 50%, transparent 52%);
  background-size: 100% 50%; }
.nyw-doorsnow.is-on { opacity: 0.9; }
@media (prefers-reduced-motion: no-preference) { .nyw:not(.ny-lite) .nyw-doorsnow.is-on { animation: nyw-doorsnow 2.4s linear infinite; } }
@keyframes nyw-doorsnow { from { background-position: 0 0; } to { background-position: 0 100%; } }
.nyw-knock { display: grid; place-items: center; opacity: 0; pointer-events: none; }
.nyw-knock b { padding: 0.12em 0.55em; border-radius: 999px; font-weight: 900; line-height: 1.1; white-space: nowrap; letter-spacing: 0.02em;
  color: #6b2a00; background: #fff4d2; border: 0.08em solid #f2a93b; box-shadow: 0 0.2em 0.6em rgba(80, 40, 0, 0.35); }
.nyw-knock.is-on { animation: nyw-knock 1.5s cubic-bezier(.2, .9, .3, 1.2) forwards; }
@keyframes nyw-knock {
  0% { opacity: 0; transform: scale(0.5) rotate(-8deg); } 14% { opacity: 1; transform: scale(1.12) rotate(-4deg); } 24% { transform: scale(0.96) rotate(-5deg); }
  34% { transform: scale(1.06) rotate(-4deg); } 80% { opacity: 1; transform: scale(1) rotate(-4deg); } 100% { opacity: 0; transform: scale(1) rotate(-4deg); }
}
.nyw-rm .nyw-knock.is-on { animation: nyw-knock-rm 1.6s linear forwards; }
@keyframes nyw-knock-rm { 0%, 85% { opacity: 1; } 100% { opacity: 0; } }
.nyw-say { position: absolute; left: 0; top: 0; z-index: 40; width: max-content; max-width: min(300px, calc(100% - 16px)); padding: 8px 14px; border-radius: 16px;
  font-weight: 900; font-size: clamp(0.92rem, 2.4vw, 1.12rem); line-height: 1.25; text-align: center; color: #10245e; background: #fff; border: 2px solid #ffd27a;
  box-shadow: 0 8px 22px rgba(10, 30, 80, 0.25); pointer-events: none; overflow-wrap: anywhere; will-change: transform; }
.nyw-say::after { content: ""; position: absolute; left: var(--tail, 50%); bottom: -9px; width: 16px; height: 16px; margin-left: -8px; background: inherit;
  border-right: 2px solid #ffd27a; border-bottom: 2px solid #ffd27a; transform: rotate(45deg); }
.nyw-say.is-kid, .nyw-say.is-kid::after { border-color: #9fd0ff; }
.nyw-say-t { display: block; }
.nyw-say.is-on .nyw-say-t { animation: nyw-say-in 0.32s var(--ease) both; }
@keyframes nyw-say-in { from { opacity: 0; transform: translateY(6px) scale(0.96); } to { opacity: 1; transform: none; } }
:root[data-scheme="dark"] .nyw-say { color: #fff; background: #13285e; }
.nyw-open { position: absolute; left: 50%; bottom: calc(72px + env(safe-area-inset-bottom, 0px)); z-index: 42; transform: translateX(-50%); max-width: calc(100% - 24px); }
.nyw.is-list .nyw-open, .ny.nyw.is-modal .nyw-open, .ny.nyw.is-modal .nyw-say { visibility: hidden; }
.nyw-ctrls > .nyw-result-btn { min-height: 44px; }
:root[data-scheme="light"] .nyw-result-btn { background: rgba(255, 255, 255, 0.9); color: #14286b; border-color: rgba(20, 40, 107, 0.2); }
.nyw-mark.is-off { display: none; }
@media (max-width: 420px) { .nyw-result-btn span { display: none; } }
/* natija oynasi: kichik ekranda matn uzun bo'lsa ham tugmalar doim ko'rinadi (karta ichida pastga yopishadi) */
.ny.nyw.is-modal .ny-card .ny-actions { position: sticky; bottom: -2px; z-index: 1; width: 100%; padding: 8px 0 2px;
  background: linear-gradient(180deg, rgba(236, 246, 255, 0), rgba(236, 246, 255, 0.98) 28%); }
:root[data-scheme="dark"] .ny.nyw.is-modal .ny-card .ny-actions { background: linear-gradient(180deg, rgba(10, 22, 60, 0), rgba(10, 22, 60, 0.98) 28%); }
@media (max-width: 340px), (max-height: 600px) {
  .ny.nyw.is-modal .ny-card { padding: 14px 12px 10px; gap: 8px; }
  .ny.nyw.is-modal .ny-card h2 { font-size: 1.15rem; }
  .ny.nyw.is-modal .ny-card > p { font-size: var(--fs-s); }
}
/* past landshaft (telefon yotiq): «Sovgʻani ochish» o'ng pastki burchakda — sahna markazidagi bola va Qorbobo yopilmaydi */
@media (max-height: 560px) and (orientation: landscape) {
  .nyw-open { left: auto; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); transform: none; }
}
/* bo'sh turganda yuk (o'lchangan: CSS animatsiyalar asosiy yuk): yashirin sahna (tashqi qishloq, faqat Qorbobo kelishida ko'rinadi)
   animatsiyalari to'xtatiladi; Qorboboning "nafas olishi" (katta qatlam) — yo'q, bolaniki qoladi */
.nyw-scene.is-off *, .nyw-scene.is-off *::before, .nyw-scene.is-off *::after { animation-play-state: paused !important; }
.nyw:not(.ny-lite) .nyw-santa .ny-p-body { animation: none; }
/* kamin olovi — kompozitorda (har kadrda uslub qayta hisoblanmasin) */
.nyw-fire i { will-change: transform, opacity; }

/* «🚪 Eshikni ochish» — Qorbobo taqillagach (boshqaruv bolada); «Sovgʻani ochish» bilan bir xil joy va ko'rinish */
.nyw-doorbtn { position: absolute; left: 50%; bottom: calc(72px + env(safe-area-inset-bottom, 0px)); z-index: 42; transform: translateX(-50%); max-width: calc(100% - 24px);
  min-height: 48px; white-space: nowrap; box-shadow: 0 8px 22px rgba(232, 120, 15, 0.35); }
@media (prefers-reduced-motion: no-preference) { .nyw:not(.ny-lite) .nyw-doorbtn { animation: nyw-ctabob 1.6s ease-in-out 4; } }
.nyw.is-list .nyw-doorbtn, .ny.nyw.is-modal .nyw-doorbtn { visibility: hidden; }
@media (max-width: 420px) { .nyw-doorbtn { font-size: var(--fs-s); padding-inline: 14px; } }
@media (max-height: 560px) and (orientation: landscape) {
  .nyw-doorbtn { left: auto; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); transform: none; min-height: 44px; }
}
/* tor telefon: amal tugmasi matni ikki qatorga o'tadi — ekrandan chiqmaydi, kesilmaydi */
@media (max-width: 420px) {
  .nyw-ctrls > .nyw-act { white-space: normal; min-width: 0; max-width: calc(100% - 60px); line-height: 1.15; text-align: center; }
}

/* ===================================================================== 1-kun «Erkatoyga ilk qadam» (missions/onboarding.js) */
.onb { display: grid; gap: 14px; min-width: 0; }
.onb-intro { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; }
.onb-fox { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 38px; line-height: 1;
  background: radial-gradient(circle at 35% 30%, #fff, var(--fox-100)); border: 2px solid var(--fox-300); box-shadow: var(--shadow-sm); }
.onb-say { position: relative; padding: 10px 14px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line);
  font-size: var(--fs-s); line-height: 1.5; overflow-wrap: anywhere; }
.onb-progress { display: grid; gap: 6px; padding: 12px 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.onb-progress-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.onb-bar { height: 10px; border-radius: 99px; background: var(--ice-100); overflow: hidden; }
.onb-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--winter-600), var(--ok-ink, #1f8a4c)); transition: width var(--dur, .2s) var(--ease, ease); }
.onb-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .onb-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.onb-step { display: grid; gap: 10px; align-content: start; min-width: 0; padding: 14px; border-radius: var(--radius-l, 18px);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.onb-step.is-done { border-color: color-mix(in srgb, var(--ok-ink, #1f8a4c) 45%, var(--line)); background: color-mix(in srgb, var(--ok-bg, #e7f6ec) 55%, var(--surface)); }
.onb-step-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.onb-step-head h3 { margin: 0; font-size: var(--fs-m); line-height: 1.25; overflow-wrap: anywhere; }
.onb-step-head .chip { white-space: nowrap; }
.onb-n { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: var(--fs-s);
  background: var(--ice-800); color: var(--surface); flex: none; }
.onb-step.is-done .onb-n { background: var(--ok-ink, #1f8a4c); }
.onb-step-body { min-width: 0; overflow-wrap: anywhere; }
.onb-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.onb-actions .btn, .onb-link .btn { white-space: normal; text-align: left; min-height: 44px; }
.onb-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.onb-link { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.onb-link > .btn { flex: 1 1 200px; min-width: 0; justify-content: flex-start; }
.onb-finish { display: grid; gap: 8px; justify-items: center; text-align: center; }
.onb-finish .btn-lg { min-width: min(100%, 280px); }
.onb-finish .btn-lg[disabled] { opacity: .55; cursor: not-allowed; }
.onb-finale { display: grid; gap: 10px; justify-items: center; text-align: center; padding: 22px 16px; }
.onb-finale h2 { margin: 0; font-size: var(--fs-xl, 1.5rem); overflow-wrap: anywhere; }
.onb-finale-ico { font-size: 54px; line-height: 1; }
/* UX-001: saytdagi yagona ijtimoiy CTA — «Telegram botga oʻtish» (core/bot-cta.js). 280 px da ham kesilmaydi. */
.bot-cta { max-width: 100%; min-height: max(44px, var(--tap)); white-space: normal; text-align: center; overflow-wrap: anywhere; }
.bot-cta[aria-busy="true"] { cursor: progress; }
.onb-status:empty { display: none; }
.onb-status { margin: 0; padding: 8px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.onb-status.ok { background: var(--ok-bg); } .onb-status.warn { background: var(--warn-bg); } .onb-status.bad { background: var(--bad-bg); }
.onb-parent { display: flex; gap: 6px; align-items: flex-start; }
.onb-parent svg { flex: none; width: 16px; height: 16px; margin-top: 2px; }
@media (max-width: 420px) {
  .onb-step { padding: 12px; }
  .onb-step-head { grid-template-columns: auto minmax(0, 1fr); }
  .onb-step-head .chip { grid-column: 2; justify-self: start; }
  .onb-fox { width: 52px; height: 52px; font-size: 30px; }
  .onb-actions .btn { flex: 1 1 100%; justify-content: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .onb-bar i { transition: none; } }

/* ===================================================================== 2-kun «Qorboboni boʻyaymiz» (missions/qorbobo-paint.js) */
.pt-intro { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; text-align: left;
  padding: 12px 14px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); max-width: 520px; width: 100%; }
.pt-intro-ico { font-size: 34px; line-height: 1; }
/* Telefon (portret): tepada namuna+progress, rasm, pastda yopishqoq panel */
.pt { display: grid; gap: 10px; min-width: 0; grid-template-columns: minmax(0, 1fr); grid-template-areas: "top" "board" "dock";
  scroll-margin-top: 72px; }
.pt > section { min-width: 0; }
.pt .card { padding: 10px; }
.pt-top { grid-area: top; display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; align-items: center; }
.pt-board { grid-area: board; padding: 6px !important; }
.pt-dock { grid-area: dock; display: grid; gap: 8px; position: sticky; bottom: 0; z-index: 3;
  padding-bottom: calc(10px + env(safe-area-inset-bottom)) !important; border-radius: 20px 20px 0 0 !important;
  background: color-mix(in srgb, var(--surface) 96%, transparent) !important; box-shadow: 0 -8px 22px rgba(3, 18, 38, .16) !important; }
.pt-label { margin: 0; font-size: var(--fs-s); font-weight: 800; }
.pt-art { display: block; width: 100%; height: auto; }
.pt-board .pt-art { max-height: max(300px, calc(100svh - 412px)); margin: 0 auto; touch-action: manipulation; -webkit-tap-highlight-color: transparent; user-select: none; }
.pt-art.is-interactive .pt-r { cursor: pointer; transition: opacity .15s ease; }
.pt-art.is-interactive .pt-r.is-fixed { cursor: default; }
.pt-art.is-locked .pt-r { cursor: progress; }
.pt.is-erasing .pt-art.is-interactive .pt-r:not(.is-fixed) { cursor: cell; }
.pt-art .pt-r:focus { outline: none; }
.pt-art .pt-r:focus-visible { stroke: #ff9f1c; stroke-width: 8px; }
.pt-art .pt-r.is-pop { animation: pt-pop .26s ease-out; }
.pt-art .pt-r.is-wrong { stroke: #ff7a00; stroke-dasharray: 9 6; stroke-width: 6px; }
@keyframes pt-pop { from { opacity: .45; } to { opacity: 1; } }
.pt-sample { display: grid; gap: 2px; }
.pt-sample .pt-label { font-size: var(--fs-xs); }
.pt-sample-btn { position: relative; display: block; width: 100%; padding: 3px; border-radius: 12px; border: 2px solid var(--line); background: #eef5fb; cursor: zoom-in; min-height: 44px; }
.pt-sample-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.pt-sample-btn .pt-art { max-height: 92px; margin: 0 auto; }
.pt-zoom { position: absolute; right: 2px; bottom: 2px; display: inline-flex; gap: 3px; align-items: center; padding: 1px 5px; border-radius: 99px;
  font-size: 10px; font-weight: 700; background: rgba(255, 255, 255, .94); color: #1d2433; border: 1px solid var(--line); }
.pt-zoom svg { width: 11px; height: 11px; }
.pt-sample-big { background: #eef5fb; border-radius: 16px; padding: 8px; }
.pt-sample-big .pt-art { max-height: 72svh; margin: 0 auto; }
.pt-progress { display: grid; gap: 5px; min-width: 0; }
.pt-progress-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; }
.pt-progress-text { font-size: var(--fs-s); font-variant-numeric: tabular-nums; }
.pt-left { color: var(--text-soft); }
.pt-bar { height: 10px; border-radius: 99px; background: var(--ice-100); overflow: hidden; }
.pt-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #7c5cff, #e53935); transition: width .2s ease; }
.pt-hint { margin: 0; color: var(--text-soft); overflow-wrap: anywhere; font-size: var(--fs-xs); min-height: 1.3em; text-align: center; }
.pt-hint.is-warn { color: #8a3c00; font-weight: 800; }
.pt-palette { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; }
.pt-palette.is-pulse { animation: pt-pulse .5s ease; }
@keyframes pt-pulse { 0%, 100% { transform: none; } 30% { transform: translateX(-4px); } 60% { transform: translateX(4px); } }
.pt-swatch { display: grid; justify-items: center; align-content: center; gap: 3px; min-height: 58px; padding: 5px 1px; border-radius: 14px; border: 2px solid transparent;
  background: var(--surface-2); color: var(--text); cursor: pointer; font: inherit; min-width: 0; }
.pt-swatch:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.pt-swatch.is-on { border-color: #1d2433; background: var(--surface); box-shadow: 0 0 0 3px var(--focus); }
.pt-swatch:disabled { opacity: .5; cursor: not-allowed; }
.pt-dot { position: relative; width: 32px; height: 32px; border-radius: 50%; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .14), 0 2px 6px rgba(0, 0, 0, .18);
  border: 2px solid rgba(29, 36, 51, .35); display: grid; place-items: center; }
.pt-check { opacity: 0; font-weight: 900; font-size: 16px; color: #fff; text-shadow: 0 0 3px #000, 0 0 2px #000; }
.pt-swatch.is-on .pt-check { opacity: 1; }
.pt-swatch[data-key="white"] .pt-check, .pt-swatch[data-key="yellow"] .pt-check { color: #1d2433; text-shadow: 0 0 2px #fff; }
.pt-name { font-size: 10.5px; font-weight: 700; line-height: 1.1; text-align: center; overflow-wrap: normal; word-break: keep-all; }
.pt-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.7fr); gap: 6px; align-items: stretch; }
.pt-tool { display: grid; justify-items: center; align-content: center; gap: 1px; min-height: 52px; padding: 4px 2px; border-radius: 14px; border: 2px solid var(--line);
  background: var(--surface); color: var(--text); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; min-width: 0; line-height: 1.1; }
.pt-tool > span:last-child { overflow-wrap: anywhere; }
.pt-tool:disabled { opacity: .45; cursor: not-allowed; }
.pt-tool.is-on { background: #ffe4ef; border-color: #d6336c; color: #8a1240; }
.pt-tool:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.pt-tool-ico { font-size: 18px; line-height: 1; }
.pt-done { min-height: 52px; padding: 6px 10px; border-radius: 16px; font-size: var(--fs-m); font-weight: 900; min-width: 0; justify-content: center; }
.pt-done > span { white-space: nowrap; }
.pt-done:disabled { opacity: .55; cursor: not-allowed; filter: grayscale(.35); }
.pt-done-why { margin: 0; position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pt-spin { width: 16px; height: 16px; border-radius: 50%; border: 3px solid currentColor; border-right-color: transparent; animation: pt-spin .8s linear infinite; flex: none; }
@keyframes pt-spin { to { transform: rotate(360deg); } }
.pt-band { white-space: nowrap; }
.pt-result .result { gap: 10px; }
.pt-result-pics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: 100%; max-width: 560px; }
.pt-result-pics figure { margin: 0; display: grid; gap: 4px; background: #eef5fb; border-radius: 16px; padding: 6px; min-width: 0; }
.pt-result-pics figcaption { font-size: var(--fs-xs); font-weight: 700; color: #1d2433; }
.pt-result-pics .pt-art { max-height: 46svh; margin: 0 auto; }
.pt-result-main { font-size: var(--fs-l); font-weight: 900; }
.pv-actions { position: relative; }
.pv-actions > summary { list-style: none; }
.pv-actions > summary::-webkit-details-marker { display: none; }
.pv-actions-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; padding: 8px; border-radius: 14px; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow); white-space: nowrap; max-width: calc(100vw - 32px); }
/* Telefonda «Amallar» tugmasi sahifaga qarab chapda yoki o'ngda — menyu tugma ostida ODDIY oqimda ochiladi (ekrandan chiqmaydi) */
@media (max-width: 719px) { .pv-actions-menu { position: static; margin-top: 6px; max-width: 100%; white-space: normal; } }
/* Tor telefonlar: ranglar 2 qatorda (4×2), ixcham tepa panel — rasm bir ekranda to'liq ko'rinsin */
@media (max-width: 479px) {
  .pt-palette { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pt-swatch { min-height: 48px; padding: 4px 1px; gap: 2px; }
  .pt-dot { width: 26px; height: 26px; }
  .pt-check { font-size: 13px; }
  .pt-name { font-size: 11px; }
  .pt-top { grid-template-columns: 52px minmax(0, 1fr); gap: 10px; }
  .pt-sample .pt-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .pt-sample-btn .pt-art { max-height: 62px; }
  .pt-zoom { padding: 1px 3px; font-size: 0; gap: 0; }
  .pt-zoom svg { width: 12px; height: 12px; }
}
@media (max-width: 359px) {
  .pt-name { font-size: 9.5px; }
  .pt-dot { width: 24px; height: 24px; }
  .pt-row { grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.4fr); gap: 4px; }
  .pt-tool { font-size: 10.5px; }
  .pt-tool-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .pt-tool-ico { font-size: 22px; }
  .pt-done { font-size: 14px; padding: 4px; }
  .pt-done svg { display: none; }
  .pt-top { grid-template-columns: 60px minmax(0, 1fr); gap: 8px; }
}
/* Planshet/kompyuter va landshaft telefon: rasm chapda, namuna/ranglar o'ngda */
@media (min-width: 900px), (orientation: landscape) and (min-width: 600px) and (max-height: 600px) {
  .pt { grid-template-columns: minmax(0, 1.45fr) minmax(280px, 1fr); grid-template-areas: "board top" "board dock"; align-items: start; }
  .pt-top { grid-template-columns: minmax(0, 1fr); }
  .pt-sample-btn .pt-art { max-height: 28svh; }
  .pt-board .pt-art { max-height: calc(100svh - 110px); }
  .pt-dock { position: static; border-radius: 20px !important; box-shadow: var(--shadow-sm) !important; padding-bottom: 10px !important; }
  .pt-palette { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pt-swatch { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .pt-dot { width: 34px; height: 34px; }
  .pt-name { font-size: 12px; text-align: center; }
  .pt-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pt-row .pt-done { grid-column: 1 / -1; min-height: 56px; font-size: var(--fs-l); }
}
@media (orientation: landscape) and (max-height: 600px) {
  .pt { gap: 8px; }
  .pt .card { padding: 8px; }
  .pt-board .pt-art { max-height: calc(100svh - 96px); }
  .pt-top { grid-template-columns: 56px minmax(0, 1fr); gap: 10px; }
  .pt-sample-btn .pt-art { max-height: 60px; }
  .pt-sample .pt-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .pt-zoom { padding: 1px 3px; font-size: 0; gap: 0; }
  .pt-dock { gap: 6px; }
  .pt-swatch { min-height: 44px; padding: 3px 1px; gap: 1px; }
  .pt-dot { width: 22px; height: 22px; }
  .pt-name { font-size: 10px; }
  .pt-row { grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.6fr); }
  .pt-row .pt-done { grid-column: auto; min-height: 44px; font-size: 15px; padding: 4px 6px; }
  .pt-row .pt-done svg { display: none; }
  .pt-tool { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .pt-art .pt-r.is-pop, .pt-palette.is-pulse { animation: none; }
  .pt-bar i { transition: none; }
}

/* ===================================================================== «Qishki labirint» (missions/winter-maze.js) — yulduz/kun raqami YO'Q */
.mz { display: grid; gap: 10px; min-width: 0; scroll-margin-top: 72px; grid-template-areas: "bar" "stage" "ctrl"; }
.mz-bar { grid-area: bar; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.mz-title { margin: 0; font-size: var(--fs-l); font-weight: 900; color: var(--hero-ink, #0d2a4a); }
.mz-bar-r { display: flex; gap: 6px; }
.mz-bar-r .btn { min-height: 44px; }
.mz-stage { grid-area: stage; padding: 6px !important; overflow: hidden; background: linear-gradient(180deg, #eaf5ff, #d6ebfb) !important; }
.mz-board { display: block; width: 100%; height: auto; max-height: max(260px, calc(100svh - 330px)); margin: 0 auto; touch-action: manipulation;
  user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; cursor: pointer; }
.mz-ice { fill: #cfe7fa; stroke: #a6cfee; stroke-width: 4; }
.mz-bank { fill: #ffffff; stroke: #cfe3f5; stroke-width: 3; filter: drop-shadow(0 6px 8px rgba(40, 96, 150, .18)); }
.mz-hills { fill: #ffffff; opacity: .85; }
.mz-cracks { stroke: rgba(255, 255, 255, .75); stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.mz-wall-shadow { stroke: rgba(46, 104, 160, .28); stroke-width: 32; stroke-linecap: round; fill: none; }
.mz-wall-base { stroke: #a9d3f2; stroke-width: 32; stroke-linecap: round; fill: none; }
.mz-wall-top { stroke: #ffffff; stroke-width: 24; stroke-linecap: round; fill: none; transform: translateY(-4px); filter: drop-shadow(0 -1px 0 #f2f9ff); }
.mz-goal { fill: rgba(255, 213, 79, .32); stroke: #ffb300; stroke-width: 3; stroke-dasharray: 8 6; }
.mz-target { fill: none; stroke: #ff7043; stroke-width: 4; stroke-dasharray: 6 5; }
.mz-hint-arrow { font-size: 66px; font-weight: 900; fill: #ff6f00; stroke: #fff; stroke-width: 3; paint-order: stroke; opacity: 0; transition: opacity .2s; }
.mz-hint-arrow.is-on { opacity: 1; }
.mz-lamp { animation: mz-lamp 2.4s ease-in-out infinite; }
.mz-fox.is-walk .mz-fox-art { animation: mz-hop .26s ease-in-out infinite alternate; }
.mz-fox .mz-tail { transform-box: fill-box; transform-origin: 90% 80%; animation: mz-tail 1.8s ease-in-out infinite; }
.mz-snowman .mz-arm { transform-origin: 0 0; animation: mz-wave 1.5s ease-in-out infinite; }
.mz-snowman.is-give .mz-letter { animation: mz-give .9s ease-out forwards; }
@keyframes mz-hop { from { transform: translateY(0); } to { transform: translateY(-5px); } }
@keyframes mz-tail { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-10deg); } }
@keyframes mz-wave { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-22deg); } }
@keyframes mz-lamp { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }
@keyframes mz-give { to { transform: translate(-150px, 40px) scale(1.2); } }
.mz-ctrl { grid-area: ctrl; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.mz-say { margin: 0; font-weight: 700; overflow-wrap: anywhere; color: var(--hero-ink, #0d2a4a); }
.mz-say .btn { margin-left: 6px; }
.mz-pad { display: grid; grid-template-columns: repeat(3, 54px); grid-template-rows: repeat(2, 54px); gap: 6px; grid-template-areas: ". u ." "l d r"; }
.mz-key { font: inherit; font-size: 26px; font-weight: 900; line-height: 1; border-radius: 16px; border: 2px solid var(--line); background: var(--surface);
  color: var(--text); touch-action: none; cursor: pointer; box-shadow: var(--shadow-sm); -webkit-user-select: none; user-select: none; }
.mz-key:active { background: #fff3e0; transform: translateY(1px); }
.mz-key:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.mz-key-U { grid-area: u; } .mz-key-L { grid-area: l; } .mz-key-D { grid-area: d; } .mz-key-R { grid-area: r; }
.mz.is-finish .mz-pad { opacity: .5; pointer-events: none; }
.mz-result .result { gap: 12px; }
.mz-result-ico { font-size: 52px; line-height: 1; }
.mz-letter-card { max-width: 460px; padding: 16px 18px; border-radius: 16px; text-align: left; background: #fff8e1; color: #3e2a10;
  border: 2px solid #f0c674; box-shadow: 0 6px 18px rgba(120, 80, 10, .15); font-size: var(--fs-m); line-height: 1.5; overflow-wrap: anywhere; }
.mz-sign { text-align: right; font-weight: 800; }
@media (max-width: 479px) {
  .mz-ctrl { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .mz-board { max-height: max(240px, calc(100svh - 360px)); }
}
@media (orientation: landscape) and (max-height: 600px) {
  .mz { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "bar bar" "stage ctrl"; align-items: center; }
  .mz-board { max-height: calc(100svh - 120px); }
  .mz-ctrl { grid-template-columns: minmax(0, 1fr); justify-items: center; max-width: 200px; }
  .mz-pad { grid-template-columns: repeat(3, 48px); grid-template-rows: repeat(2, 48px); }
}
/* Keng ekran (noutbuk/kompyuter): boshqaruv o'ngda — labirint balandroq va kattaroq */
@media (min-width: 1024px) and (orientation: landscape) {
  .mz { grid-template-columns: minmax(0, 1fr) 220px; grid-template-areas: "bar bar" "stage ctrl"; align-items: center; }
  .mz-board { max-height: calc(100svh - 190px); }
  .mz-ctrl { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .mz-pad { grid-template-columns: repeat(3, 60px); grid-template-rows: repeat(2, 60px); }
}
@media (prefers-reduced-motion: reduce) {
  .mz-lamp, .mz-fox.is-walk .mz-fox-art, .mz-fox .mz-tail, .mz-snowman .mz-arm { animation: none; }
  .mz-snowman.is-give .mz-letter { animation-duration: .01s; }
}

/* ===================================================================== «Qor toʻpi shousi» (missions/snowball-show.js) — yulduz/kun raqami YO'Q */
.sb { display: grid; gap: 10px; min-width: 0; scroll-margin-top: 72px; }
.sb-hud { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; align-items: center; }
.sb-title { margin: 0; font-size: var(--fs-l); font-weight: 900; color: var(--hero-ink, #0d2a4a); grid-column: 1 / 2; }
.sb-sound { grid-column: 2; grid-row: 1; min-height: 44px; min-width: 44px; }
.sb-stats { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.sb-stat { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); font-size: var(--fs-s); font-weight: 700; white-space: nowrap; }
.sb-count { font-variant-numeric: tabular-nums; font-size: var(--fs-m); color: #0d47a1; }
.sb-stage { position: relative; display: grid; place-items: center; min-height: 180px; width: fit-content; max-width: 100%; min-width: min(100%, 260px); justify-self: center;
  border-radius: 18px; overflow: hidden; background: #dff1fc; box-shadow: var(--shadow-sm); }
.sb-hint { margin: 0; color: var(--text-soft); }
.sb-canvas { display: block; max-width: 100%; touch-action: none; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; cursor: grab; border-radius: 16px; }
.sb-canvas:active { cursor: grabbing; }
.sb-canvas:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.sb-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; color: #0d2a4a; background: rgba(223, 241, 252, .85); }
.sb-overlay { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(13, 42, 74, .28); }
.sb-overlay[hidden] { display: none; }
.sb-final { display: grid; gap: 8px; justify-items: center; text-align: center; max-width: min(92%, 420px); padding: 18px 20px; border-radius: 20px;
  background: var(--surface); box-shadow: var(--shadow); font-size: var(--fs-m); overflow-wrap: anywhere; }
.sb-final-ico { font-size: 44px; line-height: 1; }
.sb-tip { margin: 0; font-weight: 700; color: var(--hero-ink, #0d2a4a); overflow-wrap: anywhere; }
.sb-result .result { gap: 10px; }
.sb-result-stats { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
@media (max-width: 359px) {
  .sb-stat { font-size: 12px; padding: 5px 9px; white-space: normal; }
}

/* =====================================================================================================================
   5–30-KUN MINI-O'YINLARI — umumiy qobiq (js/missions/kit.js). Bir xil HUD, maydon, yakun oynasi, natija kartasi.
   Telefon birinchi: 280 px dan boshlab hech narsa chegaradan chiqmaydi; muhim tugmalar ≥ 44 px; sensorli maydonda touch-action.
   ===================================================================================================================== */
.gk { display: grid; gap: 10px; min-width: 0; scroll-margin-top: 72px; }
.gk-hud { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; align-items: center; }
.gk-title { margin: 0; font-size: var(--fs-l); font-weight: 900; color: var(--hero-ink, #0d2a4a); min-width: 0; overflow-wrap: anywhere; }
.gk-sound { grid-column: 2; grid-row: 1; min-height: 44px; min-width: 44px; }
.gk-stats { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.gk-stat { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); font-size: var(--fs-s); font-weight: 700; max-width: 100%; }
.gk-count { font-variant-numeric: tabular-nums; font-size: var(--fs-m); color: #0d47a1; }
.gk-stage { position: relative; display: grid; gap: 8px; min-width: 0; padding: 12px; border-radius: 20px;
  background: linear-gradient(180deg, #e9f6ff 0%, #f7fcff 100%); border: 1px solid var(--ice-200, #cfe6f7); box-shadow: var(--shadow-sm); }
.gk-round { margin: 0; font-weight: 800; color: #0d47a1; font-size: var(--fs-m); overflow-wrap: anywhere; }
.gk-board { display: grid; gap: 10px; min-width: 0; justify-items: center; }
.gk-overlay { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(13, 42, 74, .3); border-radius: 20px; z-index: 5; }
.gk-overlay[hidden] { display: none; }
.gk-final { display: grid; gap: 8px; justify-items: center; text-align: center; max-width: min(92%, 420px); padding: 18px 20px; border-radius: 20px;
  background: var(--surface); box-shadow: var(--shadow); font-size: var(--fs-m); overflow-wrap: anywhere; }
.gk-final-ico { font-size: 44px; line-height: 1; }
.gk-tip { margin: 0; font-weight: 700; color: var(--hero-ink, #0d2a4a); overflow-wrap: anywhere; min-height: 1.4em; }
.gk-tip[data-kind="bad"] { color: #b3261e; }
.gk-tip[data-kind="ok"] { color: #1b6e2a; }
.gk-result .result { gap: 10px; }
.gk-result-stats { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
/* Umumiy bosiladigan «kartochka» (tanlov, bezak, quti va h.k.) */
.gk-pick { display: inline-grid; place-items: center; min-width: 48px; min-height: 48px; padding: 6px 10px; border-radius: 14px; border: 2px solid var(--line);
  background: #fff; box-shadow: 0 2px 0 rgba(13, 42, 74, .12); font: inherit; font-weight: 800; color: #0d2a4a; cursor: pointer; touch-action: manipulation;
  -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; transition: transform .12s ease, border-color .12s ease, background .12s ease; }
.gk-pick:hover { border-color: #64b5f6; }
.gk-pick:active { transform: translateY(1px); }
.gk-pick:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.gk-pick.is-picked { border-color: #1e88e5; background: #e3f2fd; box-shadow: 0 0 0 3px rgba(30, 136, 229, .25); }
.gk-pick.is-ok { border-color: #43a047; background: #e8f5e9; }
.gk-pick.is-bad { border-color: #e53935; background: #ffebee; animation: gk-shake .3s; }
.gk-pick[disabled], .gk-pick.is-used { opacity: .45; cursor: default; }
.gk-emoji { font-size: 30px; line-height: 1; }
.gk-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; min-width: 0; max-width: 100%; }
.gk-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.gk-actions .btn { min-height: 44px; }
.gk-ghost { position: fixed; z-index: 1000; pointer-events: none; transform: translate(-50%, -50%) scale(1.08); opacity: .9; }
.gk-svg { display: block; width: 100%; height: auto; max-width: 100%; touch-action: manipulation; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; }
@keyframes gk-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
@keyframes gk-pop { from { transform: scale(.85); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .gk-pick.is-bad { animation: none; } }
@media (max-width: 359px) {
  .gk-stage { padding: 8px; border-radius: 16px; }
  .gk-stat { font-size: 12px; padding: 5px 9px; }
  .gk-pick { min-width: 44px; min-height: 44px; padding: 4px 6px; }
  .gk-emoji { font-size: 26px; }
}
/* 5-kun — «Qordagi sirli izlar» */
.fp-area { display: grid; gap: 12px; width: 100%; min-width: 0; justify-items: center; }
.fp-prints .fp-print { display: grid; gap: 4px; padding: 8px; min-width: 96px; background: #f8fcff; }
.fp-print.is-set { border-color: #64b5f6; }
.fp-label { font-size: var(--fs-s); font-weight: 800; color: #0d47a1; overflow-wrap: anywhere; }
.fp-tray .fp-animal, .fp-start, .fp-place { display: inline-flex; gap: 6px; align-items: center; }
.fp-name { font-size: var(--fs-s); font-weight: 800; }
.fp-r2 { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: stretch; width: 100%; }
.fp-col { display: grid; gap: 8px; align-content: space-around; }
.fp-col .gk-pick { justify-content: flex-start; flex-wrap: wrap; text-align: left; }
.fp-scene-wrap { min-width: 0; display: grid; align-items: center; }
.fp-scene { border-radius: 16px; border: 1px solid var(--ice-200, #cfe6f7); }
.fp-q { display: grid; gap: 10px; justify-items: center; width: 100%; }
.fp-q .fp-opt { display: grid; gap: 2px; padding: 8px 12px; }
.fp-trail { max-width: 420px; border-radius: 14px; border: 1px solid var(--ice-200, #cfe6f7); cursor: zoom-in; }
.fp-r3-side { display: grid; gap: 6px; justify-items: center; text-align: center; max-width: 420px; }
.fp-lupa { display: grid; place-items: center; min-height: 150px; min-width: 150px; border-radius: 50%; border: 6px solid #90caf9; background: #fff; box-shadow: inset 0 0 0 3px #e3f2fd; padding: 6px; }
.fp-hint { margin: 0; padding: 8px 12px; border-radius: 12px; background: #fff8e1; color: #6d4c00; font-weight: 700; }
@media (max-width: 559px) {
  .fp-r2 { grid-template-columns: 1fr 1fr; }
  .fp-scene-wrap { grid-column: 1 / -1; grid-row: 1; }
  .fp-lupa { min-height: 120px; min-width: 120px; }
}
/* 6-kun — «Archani sehr bilan bezat» */
.tr-area { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 12px; width: 100%; align-items: center; }
.tr-tree-wrap { min-width: 0; display: grid; justify-items: center; }
.tr-tree { max-width: 360px; max-height: min(62vh, 440px); background: radial-gradient(ellipse at 50% 40%, #f3fbff 0%, #dcefff 100%); border-radius: 18px; }
.tr-side { display: grid; gap: 10px; justify-items: center; min-width: 0; }
.tr-slot { cursor: pointer; outline: none; }
.tr-slot .tr-hit { transition: fill .15s; }
.tr-slot:hover .tr-hit, .tr-slot:focus-visible .tr-hit { fill: rgba(255, 255, 255, .55); }
.tr-slot:focus-visible { outline: 3px solid var(--focus); }
.tr-slot.is-locked { cursor: default; }
.tr-orn.is-used { opacity: .35; }
.tr-swatch { display: inline-block; width: 18px; height: 18px; border-radius: 50%; margin-right: 6px; border: 2px solid rgba(0, 0, 0, .15); vertical-align: middle; }
.tr-color { display: inline-flex; align-items: center; }
.tr-glow { transition: r .8s ease; }
@media (max-width: 639px) {
  .tr-area { grid-template-columns: 1fr; }
  .tr-tree { max-height: 52vh; }
}
/* 7-kun — «Shirinliklar siri» */
.sm-area { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 12px; width: 100%; align-items: start; }
.sm-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; width: 100%; max-width: 520px; justify-self: center; }
.sm-card { position: relative; aspect-ratio: 3 / 4; min-height: 72px; padding: 0; border: 0; background: none; perspective: 600px; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.sm-card:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 14px; }
.sm-inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .35s ease; }
.sm-card.is-open .sm-inner { transform: rotateY(180deg); }
.sm-back, .sm-front { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 2px; border-radius: 14px; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 3px 0 rgba(13, 42, 74, .15); }
.sm-back { background: linear-gradient(135deg, #64b5f6, #1e88e5); color: #fff; font-size: 28px; border: 3px solid #fff; }
.sm-front { background: #fffaf2; border: 3px solid #ffe0b2; transform: rotateY(180deg); }
.sm-card.is-found .sm-front { border-color: #81c784; background: #f1f8e9; }
.sm-name { font-size: 12px; font-weight: 800; color: #6d4c41; }
.sm-side { display: grid; gap: 6px; padding: 10px 12px; border-radius: 14px; background: #fffdf7; border: 1px dashed #ffcc80; min-width: 0; }
.sm-notes { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: var(--fs-s); }
.sm-notes .is-step { font-weight: 800; }
.sm-order { display: grid; gap: 12px; width: 100%; max-width: 640px; }
.sm-pool { display: grid; gap: 8px; }
.sm-step { justify-content: flex-start; text-align: left; font-weight: 700; line-height: 1.3; }
.sm-step.is-used { opacity: .4; }
.sm-slots { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sm-slot { display: flex; gap: 10px; align-items: center; width: 100%; min-height: 48px; padding: 8px 10px; border-radius: 14px; border: 2px dashed #90caf9; background: #fff; font: inherit; text-align: left; cursor: pointer; }
.sm-slot:focus-visible { outline: 3px solid var(--focus); }
.sm-num { display: inline-grid; place-items: center; min-width: 30px; height: 30px; border-radius: 50%; background: #1e88e5; color: #fff; font-weight: 900; }
.sm-slot-text { min-width: 0; overflow-wrap: anywhere; font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .sm-inner { transition: none; } }
@media (max-width: 639px) {
  .sm-area { grid-template-columns: 1fr; }
  .sm-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* 8-kun — «Sovg'alarni sarala» */
.gs-area { display: grid; gap: 12px; width: 100%; }
.gs-pool { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; min-height: 64px; padding: 8px; border-radius: 14px; background: rgba(255, 255, 255, .6); border: 1px dashed #b3d4ee; }
.gs-box { padding: 2px; }
.gs-baskets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.gs-basket { display: grid; gap: 6px; align-content: start; min-width: 0; min-height: 120px; padding: 8px; border-radius: 16px; background: linear-gradient(180deg, #fff8e1, #ffe0b2);
  border: 3px solid #d7a86e; cursor: pointer; touch-action: manipulation; }
.gs-basket:focus-visible { outline: 3px solid var(--focus); }
.gs-basket:hover { border-color: #b8864b; }
.gs-bhead { display: flex; gap: 6px; align-items: center; justify-content: center; text-align: center; font-size: var(--fs-s); color: #5d4037; flex-wrap: wrap; }
.gs-bhead strong { overflow-wrap: anywhere; min-width: 0; }
.gs-bicon { font-size: 18px; }
.gs-bin { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; }
.gs-bin .gs-box svg { width: 40px; height: 40px; }
.gs-area.is-locked .gs-basket { cursor: default; opacity: .9; }
@media (max-width: 479px) { .gs-baskets { grid-template-columns: 1fr; } .gs-basket { min-height: 84px; } }
/* 9-kun — «Qorbo'ron yo'li» */
.br-area { display: grid; gap: 10px; justify-items: center; width: 100%; }
.br-wrap { display: grid; justify-items: center; width: 100%; }
.br-canvas { display: block; max-width: 100%; border-radius: 16px; border: 1px solid var(--ice-200, #cfe6f7); touch-action: none; user-select: none; -webkit-user-select: none; }
.br-canvas:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.br-pad { display: grid; grid-template-columns: 1fr 1.4fr 1.4fr 1fr; gap: 8px; width: 100%; max-width: 520px; }
.br-key { min-height: 56px; font-size: var(--fs-m); }
@media (max-width: 359px) { .br-pad { grid-template-columns: 1fr 1fr; } }
/* 10-kun — «Qor qasri» */
.cs-area { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 12px; width: 100%; align-items: center; }
.cs-wrap { min-width: 0; display: grid; justify-items: center; }
.cs-board { max-width: 420px; max-height: min(60vh, 420px); }
.cs-cell { cursor: pointer; outline: none; }
.cs-cell:hover { fill: rgba(30, 136, 229, .08); }
.cs-cell:focus-visible { stroke: var(--focus); stroke-width: 3; }
.cs-cell.is-bad { animation: cs-bad .45s; }
@keyframes cs-bad { 0%, 100% { fill: transparent; } 30% { fill: rgba(229, 57, 53, .35); } }
.cs-side { display: grid; gap: 8px; justify-items: center; min-width: 0; }
.cs-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: 100%; }
.cs-mat { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px; align-items: center; text-align: left; }
.cs-mname { font-size: var(--fs-s); min-width: 0; overflow-wrap: anywhere; }
.cs-left { font-variant-numeric: tabular-nums; color: #0d47a1; }
.cs-help { margin: 0; text-align: center; }
@media (prefers-reduced-motion: reduce) { .cs-cell.is-bad { animation: none; fill: rgba(229, 57, 53, .25); } }
@media (max-width: 639px) { .cs-area { grid-template-columns: 1fr; } }
@media (max-width: 359px) { .cs-tools { grid-template-columns: 1fr; } }
/* 11-kun — «Yorug' xarita» */
.lp-area { display: grid; gap: 10px; justify-items: center; width: 100%; }
.lp-wrap { width: 100%; display: grid; justify-items: center; }
.lp-board { max-width: 520px; max-height: min(58vh, 440px); touch-action: none; }
.lp-node { cursor: pointer; outline: none; }
.lp-bulb { fill: #37474f; stroke: #90a4ae; stroke-width: 3; transition: fill .2s; }
.lp-node.is-next .lp-bulb { stroke: #ffd54f; stroke-dasharray: 4 3; }
.lp-node.is-on .lp-bulb { fill: #ffd54f; stroke: #ffb300; filter: drop-shadow(0 0 6px rgba(255, 213, 79, .9)); }
.lp-node.is-end .lp-bulb { stroke: #fff; stroke-width: 4; }
.lp-node.is-gen .lp-bulb { fill: #ff7043; stroke: #ffccbc; }
.lp-node:focus-visible .lp-bulb { stroke: var(--focus); stroke-width: 5; }
.lp-board.is-done { filter: drop-shadow(0 0 12px rgba(255, 213, 79, .6)); }
/* 12-kun — «Muzli ko'prik» */
.ib-area { display: grid; gap: 10px; width: 100%; justify-items: center; }
.ib-wrap { width: 100%; display: grid; justify-items: center; }
.ib-scene { max-width: 640px; }
.ib-placed { cursor: pointer; outline: none; }
.ib-placed:focus-visible rect:first-child { stroke: var(--focus); stroke-width: 4; }
.ib-fox { transition: transform 1s ease; }
.ib-fox.is-go { transform: translateX(calc(100% * 4)); }
.ib-tray { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; width: 100%; }
.ib-plate { display: grid; gap: 2px; justify-items: center; padding: 6px 8px; }
.ib-plate.is-used { opacity: .35; }
.ib-meta { font-size: 12px; color: #0d47a1; }
.ib-legend { margin: 0; text-align: center; color: var(--text-soft); }
@media (prefers-reduced-motion: reduce) { .ib-fox { transition: none; } }
/* 13-kun — «Sehrli chana poygasi» */
.sr-area { display: grid; gap: 10px; justify-items: center; width: 100%; }
.sr-canvas { display: block; max-width: 100%; border-radius: 16px; border: 1px solid var(--ice-200, #cfe6f7); touch-action: none; user-select: none; -webkit-user-select: none; }
.sr-pad { display: grid; grid-template-columns: 1fr 1.3fr 1.3fr 1fr; gap: 8px; width: 100%; max-width: 560px; }
.sr-key { min-height: 60px; font-size: var(--fs-m); touch-action: none; user-select: none; -webkit-user-select: none; }
@media (max-width: 359px) { .sr-pad { grid-template-columns: 1fr 1fr; } }
/* 14-kun — «Sirli qop» */
.sb2-area { display: grid; gap: 12px; justify-items: center; width: 100%; }
.sb2-stage { position: relative; display: grid; place-items: center; width: min(220px, 70vw); aspect-ratio: 1; border-radius: 24px; overflow: hidden;
  background: radial-gradient(circle at 50% 40%, #fffdf5 0%, #f3e5c7 100%); border: 3px solid #d7b37a; box-shadow: inset 0 0 0 6px rgba(255, 255, 255, .5); }
.sb2-small { width: min(150px, 38vw); }
.sb2-emoji { font-size: clamp(72px, 22vw, 120px); line-height: 1; filter: brightness(0); transition: filter .5s ease; }
.sb2-small .sb2-emoji { font-size: clamp(54px, 16vw, 84px); }
.sb2-emoji.is-revealed { filter: none; }
.sb2-sack { position: absolute; background: linear-gradient(135deg, #a1662f, #7b4a1d); border-radius: 12px; box-shadow: inset 0 0 0 3px rgba(0, 0, 0, .15); }
.is-hide-left .sb2-sack { left: 0; top: 0; bottom: 0; width: 46%; }
.is-hide-top .sb2-sack { left: 0; right: 0; top: 0; height: 46%; }
.sb2-opts { gap: 10px; }
.sb2-opt { min-width: 76px; min-height: 76px; }
.sb2-oe { font-size: 44px; line-height: 1; }
.sb2-pairs { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.sb2-pair { display: grid; gap: 4px; justify-items: center; padding: 6px; border-radius: 18px; border: 3px solid transparent; }
.sb2-pair.is-active { border-color: #1e88e5; }
.sb2-pair.is-ok { border-color: #43a047; }
.sb2-pair.is-bad { border-color: #e53935; }
.sb2-num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #1e88e5; color: #fff; font-weight: 900; }
@media (prefers-reduced-motion: reduce) { .sb2-emoji { transition: none; } }
/* 15-kun — «Muz kristalli» */
.ic-area { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 12px; width: 100%; align-items: start; }
.ic-left { display: grid; gap: 8px; justify-items: center; min-width: 0; }
.ic-board { display: grid; gap: 3px; width: min(100%, 360px); aspect-ratio: 1; padding: 6px; border-radius: 16px; background: #0d2a4a; }
.ic-cell { position: relative; border-radius: 8px; background: #eaf5ff; overflow: hidden; cursor: pointer; outline: none; touch-action: manipulation; }
.ic-cell:focus-visible { box-shadow: inset 0 0 0 3px var(--focus); }
.ic-ghost, .ic-slot { position: absolute; inset: 0; }
.ic-ghost svg, .ic-slot svg, .ic-piece svg { display: block; width: 100%; height: 100%; }
.ic-rot { width: 100%; height: 100%; transition: transform .2s ease; }
.ic-cell.is-filled .ic-ghost { opacity: 0; }
.ic-board.is-done { box-shadow: 0 0 0 4px #ffd54f, 0 0 24px rgba(255, 213, 79, .7); }
.ic-tray { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-content: start; min-width: 0; }
.ic-piece { aspect-ratio: 1; padding: 4px; min-width: 0; background: #eaf5ff; }
.ic-piece[hidden] { display: none; }
.ic-sample { display: grid; justify-items: center; gap: 2px; }
.ic-sample-svg { width: 90px; height: 90px; background: #fff; border-radius: 12px; border: 1px solid var(--ice-200, #cfe6f7); }
@media (prefers-reduced-motion: reduce) { .ic-rot { transition: none; } }
@media (max-width: 639px) { .ic-area { grid-template-columns: 1fr; } .ic-tray { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* 16-kun — «Sehrli chiroqlar» */
.ml-area { display: grid; gap: 12px; justify-items: center; width: 100%; }
.ml-ring { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; width: min(100%, 520px); padding: 16px; border-radius: 22px; background: #0d2a4a; }
.ml-lamp { --c: #999; position: relative; aspect-ratio: 1; min-width: 48px; border-radius: 50%; border: 4px solid rgba(255, 255, 255, .25); cursor: pointer;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .35), transparent 45%), color-mix(in srgb, var(--c) 35%, #102a43); touch-action: manipulation;
  transition: transform .1s ease, box-shadow .15s ease, background .15s ease; }
.ml-lamp:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.ml-lamp.is-on { background: radial-gradient(circle at 35% 30%, #fff, var(--c) 55%); box-shadow: 0 0 22px var(--c), 0 0 0 4px #fff; transform: scale(1.06); }
.ml-sym { font-size: clamp(18px, 5vw, 28px); color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.ml.is-showing .ml-lamp { cursor: wait; }
@media (max-width: 379px) { .ml-ring { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 10px; } }
@media (prefers-reduced-motion: reduce) { .ml-lamp { transition: none; } .ml-lamp.is-on { transform: none; } }
/* 17-kun — «Qishga tayyorlan!» */
.wo-area { display: grid; gap: 12px; width: 100%; }
.wo-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.wo-weather { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 16px; background: #fff; border: 2px solid #90caf9; min-width: 0; }
.wo-weather strong { overflow-wrap: anywhere; min-width: 0; }
.wo-wicon { font-size: 40px; line-height: 1; }
.wo-fox { display: grid; justify-items: center; gap: 2px; min-width: 96px; padding: 6px; border-radius: 16px; background: #fff8e1; }
.wo-foxe { font-size: 44px; line-height: 1; }
.wo-worn { display: flex; flex-wrap: wrap; gap: 2px; justify-content: center; font-size: 20px; max-width: 120px; }
.wo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.wo-item { display: grid; gap: 2px; justify-items: center; padding: 8px 4px; min-width: 0; }
.wo-name { font-size: 12px; font-weight: 800; text-align: center; overflow-wrap: anywhere; }
.wo-notes { margin: 0; padding: 10px 14px 10px 28px; border-radius: 14px; background: #fff; display: grid; gap: 4px; font-weight: 700; font-size: var(--fs-s); }
.wo-notes .is-ok { color: #1b6e2a; }
.wo-notes .is-bad { color: #b3261e; }
@media (max-width: 479px) { .wo-top { grid-template-columns: 1fr; } .wo-fox { grid-auto-flow: column; justify-content: center; } }
/* 18-kun — «Sovg'a aravasi» */
.gc-area { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 12px; width: 100%; align-items: start; }
.gc-cart { display: grid; justify-items: center; gap: 2px; min-width: 0; }
.gc-board { display: grid; gap: 3px; width: min(100%, 380px); padding: 8px; border-radius: 12px 12px 4px 4px; background: #8d5524; box-shadow: inset 0 0 0 4px #6d4c41; }
.gc-cell { aspect-ratio: 1; border-radius: 6px; background: #fff3e0; cursor: pointer; outline: none; touch-action: manipulation; }
.gc-cell:focus-visible { box-shadow: inset 0 0 0 3px var(--focus); }
.gc-cell.is-block { background: repeating-linear-gradient(45deg, #6d4c41 0 6px, #5d4037 6px 12px); cursor: default; }
.gc-cell.is-filled { box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .18); }
.gc-board.is-done { box-shadow: inset 0 0 0 4px #ffd54f, 0 0 18px rgba(255, 213, 79, .7); }
.gc-wheels { font-size: 22px; color: #5d4037; letter-spacing: 60px; }
.gc-side { display: grid; gap: 10px; justify-items: center; min-width: 0; }
.gc-tray { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.gc-piece { padding: 8px; min-width: 64px; min-height: 64px; }
.gc-piece[hidden] { display: none; }
.gc-mini { display: grid; gap: 2px; }
.gc-mc { border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .2); }
.gc-mc.is-anchor { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .2), inset 0 0 0 5px rgba(255, 255, 255, .85); }
@media (max-width: 639px) { .gc-area { grid-template-columns: 1fr; } }
/* 19-kun — «Qorli ritm» */
.rh-area { display: grid; gap: 12px; justify-items: center; width: 100%; }
.rh-lane { position: relative; width: min(100%, 300px); height: min(46vh, 360px); min-height: 220px; overflow: hidden; border-radius: 20px;
  background: linear-gradient(180deg, #0d2a4a 0%, #1e4f7d 100%); box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .15); }
.rh-target { position: absolute; left: 50%; bottom: 30px; width: 64px; height: 48px; transform: translateX(-50%); border-radius: 50%; border: 4px solid #ffd54f; box-shadow: 0 0 0 4px rgba(255, 213, 79, .2); }
.rh-target.is-beat { background: rgba(255, 213, 79, .55); box-shadow: 0 0 22px #ffd54f; }
.rh-note { position: absolute; left: 50%; top: 0; display: grid; place-items: center; width: 48px; min-height: 32px; border-radius: 16px; background: #e3f2fd; color: #1e88e5;
  font-size: 22px; font-weight: 900; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); opacity: 0; will-change: transform; }
.rh-note.is-long { background: linear-gradient(180deg, #bbdefb, #e3f2fd); }
.rh-btn { width: min(100%, 300px); min-height: 72px; border-radius: 22px; border: 0; background: #1e88e5; color: #fff; font-size: 26px; font-weight: 900; letter-spacing: .1em;
  box-shadow: 0 6px 0 #0d47a1; cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.rh-btn.is-down { transform: translateY(4px); box-shadow: 0 2px 0 #0d47a1; background: #1976d2; }
.rh-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
/* 20-kun — «Qishloq chiroqlari» */
.vl-area { display: grid; justify-items: center; width: 100%; }
.vl-grid { display: grid; gap: 4px; width: min(100%, 420px); padding: 8px; border-radius: 16px; background: #16324f; }
.vl-cell { position: relative; aspect-ratio: 1; padding: 0; border: 0; border-radius: 10px; background: #1f4468; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.vl-cell:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.vl-rot { position: absolute; inset: 0; transition: transform .18s ease; }
.vl-svg { width: 100%; height: 100%; display: block; }
.vl-wire { stroke: #6f8fae; stroke-width: 14; stroke-linecap: round; fill: none; }
.vl-hub { fill: #6f8fae; }
.vl-cell.is-on .vl-wire { stroke: #ffd54f; }
.vl-cell.is-on .vl-hub { fill: #ffd54f; }
.vl-ico { position: absolute; inset: 0; display: grid; place-items: center; font-size: clamp(18px, 6vw, 30px); pointer-events: none; filter: grayscale(.6) brightness(.8); }
.vl-cell.is-on .vl-ico { filter: drop-shadow(0 0 6px #ffd54f); }
.vl-cell.is-src .vl-ico { filter: none; }
.vl-grid.is-done { box-shadow: 0 0 0 4px #ffd54f, 0 0 22px rgba(255, 213, 79, .6); }
@media (prefers-reduced-motion: reduce) { .vl-rot { transition: none; } }
/* 21-kun — «Sehrli pochta» */
.mp-area { display: grid; gap: 12px; width: 100%; }
.mp-bag { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.mp-letter { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 8px; align-items: center; justify-items: start; text-align: left; padding: 8px 10px; }
.mp-env { font-size: 26px; grid-row: span 2; }
.mp-clue { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; font-weight: 800; font-size: var(--fs-s); color: #0d2a4a; min-width: 0; }
.mp-to { color: #1b6e2a; font-weight: 700; min-height: 1em; }
.mp-dot { width: 14px; height: 14px; border-radius: 50%; display: inline-block; box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .2); }
.mp-c-red { background: #e53935; }
.mp-c-blue { background: #1e88e5; }
.mp-c-green { background: #43a047; }
.mp-c-yellow { background: #fbc02d; }
.mp-sym { font-size: 16px; }
.mp-tag { padding: 1px 6px; border-radius: 8px; background: #e3f2fd; color: #0d47a1; }
.mp-wrap { width: 100%; max-width: 640px; justify-self: center; }
.mp-axis { font-size: 15px; font-weight: 800; fill: #4f6f8f; }
.mp-road { stroke: #90a4ae; stroke-width: 14; stroke-linecap: round; }
.mp-road.is-blocked { stroke: #ef9a9a; stroke-dasharray: 6 10; stroke-width: 8; }
.mp-block { font-size: 22px; font-weight: 900; fill: #c62828; }
.mp-node { cursor: pointer; outline: none; }
.mp-node:focus-visible .mp-wall, .mp-node:focus-visible .mp-cross { stroke: var(--focus); stroke-width: 5; }
.mp-house.has-letter .mp-wall { stroke: #1565c0; stroke-width: 4; }
.mp-house.is-parcel .mp-wall { stroke: #ff8f00; stroke-width: 4; }
.mp-node.is-next .mp-cross { fill: #64b5f6; }
.mp-path { stroke: #ff7043; stroke-width: 8; stroke-linecap: round; opacity: .85; }
.mp-sled { fill: #ffca28; stroke: #e65100; stroke-width: 4; }
.mp-steps { margin: 0; text-align: center; font-weight: 800; color: #0d2a4a; }
/* 22-kun — «Muzli ko'zgular» */
.im-area { display: grid; justify-items: center; width: 100%; }
.im-wrap { width: min(100%, 460px); }
.im-floor { fill: #0f2c4a; }
.im-gridline { stroke: rgba(144, 202, 249, .18); stroke-width: 1; }
.im-block { fill: #b3e5fc; stroke: #4fc3f7; stroke-width: 2; }
.im-block-mark { stroke: #0288d1; stroke-width: 2; fill: none; }
.im-src { fill: #ffd54f; }
.im-ray { fill: none; stroke: #fff59d; stroke-width: 4; stroke-linejoin: round; stroke-linecap: round; }
.im-ray-glow { fill: none; stroke: rgba(255, 235, 59, .35); stroke-width: 12; stroke-linejoin: round; stroke-linecap: round; }
.im-gem { fill: #4dd0e1; opacity: .45; stroke: #b2ebf2; stroke-width: 2; }
.im-gem-line { stroke: rgba(255, 255, 255, .5); stroke-width: 1.5; }
.im-crystal.is-lit .im-gem { opacity: 1; fill: #e1f5fe; filter: drop-shadow(0 0 6px #80deea); }
.im-mirror { cursor: pointer; outline: none; }
.im-mbase { fill: rgba(255, 255, 255, .08); stroke: rgba(255, 255, 255, .25); stroke-width: 2; }
.im-mirror:hover .im-mbase, .im-mirror:focus-visible .im-mbase { stroke: var(--focus); stroke-width: 4; }
.im-mglass { fill: #e3f2fd; stroke: #90caf9; stroke-width: 2; }
.im-board.is-done .im-floor { fill: #134a6e; }
/* 23-kun — «Yo'qolgan anjomlar» */
.lt-area { display: grid; gap: 10px; width: 100%; }
.lt-tabs { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.lt-tab { min-height: 44px; border: 2px solid var(--line); background: var(--surface); }
.lt-tab.is-active { border-color: #1e88e5; background: #e3f2fd; color: #0d47a1; }
.lt-main { display: grid; grid-template-columns: minmax(0, 720px) 200px; justify-content: center; gap: 10px; align-items: start; }
.lt-wrap { width: 100%; overflow: auto; border-radius: 16px; -webkit-overflow-scrolling: touch; }
.lt-scene { position: relative; width: 100%; aspect-ratio: 16 / 10; min-height: 190px; border-radius: 16px; overflow: hidden; }
.lt-scene.is-zoom { width: 200%; }
.lt-r-workshop { background: linear-gradient(180deg, transparent 0 21%, #8d6e63 21% 23%, transparent 23%), repeating-linear-gradient(90deg, #d7ccc8 0 38px, #cfc2bd 38px 40px) top / 100% 58% no-repeat, linear-gradient(180deg, #a1887f, #8d6e63) bottom / 100% 42% no-repeat; }
.lt-r-library { background: linear-gradient(180deg, transparent 0 30%, #6d4c41 30% 32%, transparent 32%), repeating-linear-gradient(90deg, #c5cae9 0 46px, #b9bee3 46px 48px) top / 100% 60% no-repeat, linear-gradient(180deg, #8d6e63, #6d4c41) bottom / 100% 40% no-repeat; }
.lt-r-post { background: linear-gradient(180deg, transparent 0 34%, #8d6e63 34% 36%, transparent 36%), repeating-linear-gradient(0deg, #ffe0b2 0 30px, #ffd699 30px 32px) top / 100% 60% no-repeat, linear-gradient(180deg, #bcaaa4, #a1887f) bottom / 100% 40% no-repeat; }
.lt-decor { position: absolute; transform: translate(-50%, -50%); font-size: 28px; pointer-events: none; user-select: none; opacity: .9; }
.lt-item, .lt-lock { position: absolute; transform: translate(-50%, -50%); width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; font-size: 26px; cursor: pointer;
  display: grid; place-items: center; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.lt-item:focus-visible, .lt-lock:focus-visible { outline: 3px solid var(--focus); }
.lt-lock { width: 52px; height: 52px; font-size: 32px; background: rgba(255, 255, 255, .35); }
.lt-dark { position: absolute; left: 72%; top: 0; width: 28%; height: 44%; background: radial-gradient(circle at 60% 40%, #1a1a2e, #0b0b16); border-bottom-left-radius: 24px; pointer-events: none; }
.lt-lamp-on { filter: drop-shadow(0 0 10px #ffeb3b); }
.lt-side { display: grid; gap: 8px; }
.lt-list { list-style: none; margin: 0; padding: 8px; display: grid; gap: 4px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-weight: 700; font-size: var(--fs-s); }
.lt-list li { display: flex; gap: 6px; align-items: center; }
.lt-list li.is-found { color: #1b6e2a; text-decoration: line-through; }
.lt-li-ico { width: 24px; text-align: center; }
.lt-zoom { min-height: 44px; }
@media (max-width: 639px) { .lt-main { grid-template-columns: 1fr; } .lt-list { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); } }
/* 24-kun — «Qorli sandiq siri» */
.sc-area { display: grid; gap: 12px; width: 100%; justify-items: center; }
.sc-chest { display: grid; place-items: center; position: relative; font-size: 56px; line-height: 1; }
.sc-chest-lock { position: absolute; right: -14px; bottom: -4px; font-size: 26px; }
.sc-chest.is-open { animation: gk-pop .5s; filter: drop-shadow(0 0 12px #ffd54f); }
.sc-clues { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; width: min(100%, 520px); }
.sc-clue { display: flex; gap: 8px; align-items: center; padding: 8px 12px; border-radius: 14px; background: var(--surface); border: 2px solid var(--line); font-weight: 700; overflow-wrap: anywhere; }
.sc-clue.is-bad { border-color: #e53935; background: #ffebee; }
.sc-cn { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #1e88e5; color: #fff; font-weight: 900; font-size: 14px; }
.sc-sym { white-space: nowrap; font-weight: 900; color: #0d47a1; }
.sc-slots { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.sc-slot { position: relative; width: 60px; height: 60px; border-radius: 16px; border: 3px dashed #90caf9; background: #f5fbff; cursor: pointer; display: grid; place-items: center; padding: 0; }
.sc-slot.is-full { border-style: solid; border-color: #1e88e5; background: #e3f2fd; }
.sc-slot:focus-visible { outline: 3px solid var(--focus); }
.sc-num { position: absolute; top: 2px; left: 6px; font-size: 11px; font-weight: 900; color: #5c7a99; }
.sc-glyph { font-size: 30px; }
.sc-palette { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.sc-hist { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: var(--fs-s); color: #6d2a2a; text-align: center; }
@keyframes gk-pop { 0% { transform: scale(1); } 50% { transform: scale(1.15); } 100% { transform: scale(1); } }
/* 25-kun — «Katta archa ustaxonasi» */
.bt-area { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 12px; width: 100%; align-items: start; }
.bt-wrap { width: 100%; max-width: 440px; justify-self: center; }
.bt-sky { fill: #e3f2fd; }
.bt-layer { fill: #2e7d32; stroke: #1b5e20; stroke-width: 3; }
.bt-tree.is-lit .bt-layer { fill: #388e3c; filter: drop-shadow(0 0 8px #ffd54f); }
.bt-slot { cursor: pointer; outline: none; }
.bt-hole { fill: rgba(255, 255, 255, .25); stroke: #c8e6c9; stroke-width: 2; stroke-dasharray: 3 3; }
.bt-slot.is-center .bt-hole { stroke: #ffd54f; stroke-width: 3; }
.bt-slot:focus-visible .bt-hole { stroke: var(--focus); stroke-width: 4; stroke-dasharray: none; }
.bt-slot.is-pre { cursor: default; }
.bt-slot.is-bad .bt-hole { stroke: #e53935; stroke-width: 4; stroke-dasharray: none; fill: rgba(229, 57, 53, .35); }
.bt-glyph { font-size: 13px; font-weight: 900; fill: #fff; paint-order: stroke; stroke: rgba(0, 0, 0, .35); stroke-width: 2px; }
.bt-glyph-l { font-size: 22px; font-weight: 900; fill: #fff; }
.bt-side { display: grid; gap: 10px; justify-items: center; min-width: 0; }
.bt-tray, .bt-cart, .bt-garlands { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.bt-mod { display: grid; justify-items: center; gap: 4px; padding: 8px; }
.bt-color { display: inline-flex; gap: 4px; align-items: center; }
.bt-left { font-variant-numeric: tabular-nums; }
.bt-gar { display: inline-flex; gap: 6px; align-items: center; font-weight: 800; }
.bt-gar.is-ok { border-color: #43a047; background: #e8f5e9; }
.bt-gar.is-over { border-color: #e53935; background: #ffebee; }
.bt-gdot { width: 14px; height: 14px; border-radius: 50%; display: inline-block; }
.bt-branches { display: grid; gap: 6px; width: 100%; }
.bt-brow { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.bt-branch { min-height: 44px; border-radius: 12px; border: 2px solid var(--line); background: var(--surface); font-weight: 800; color: #0d2a4a; cursor: pointer; padding: 6px; overflow-wrap: anywhere; }
.bt-branch:focus-visible { outline: 3px solid var(--focus); }
@media (max-width: 719px) { .bt-area { grid-template-columns: 1fr; } }
/* 26-kun — «Bayram dasturxoni» */
.ht-area { display: grid; gap: 12px; width: 100%; }
.ht-pool { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; min-height: 56px; padding: 8px; border-radius: 14px; background: rgba(255, 255, 255, .6); border: 1px dashed #b3d4ee; }
.ht-item { display: grid; justify-items: center; gap: 2px; padding: 4px 6px; min-width: 52px; }
.ht-emo { font-size: 28px; line-height: 1; }
.ht-name { font-size: 11px; font-weight: 800; color: #5d4037; }
.ht-trays { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ht-tray { display: grid; gap: 6px; align-content: start; min-height: 110px; padding: 8px; border-radius: 50% / 22%; background: radial-gradient(circle, #fff8e1, #ffe0b2); border: 3px solid #d7a15a; cursor: pointer; text-align: center; font-size: var(--fs-s); color: #5d4037; }
.ht-tray:focus-visible { outline: 3px solid var(--focus); }
.ht-bin { display: flex; flex-wrap: wrap; gap: 2px; justify-content: center; }
.ht-bin .ht-item { min-width: 40px; min-height: 40px; padding: 2px; }
.ht-bin .ht-name { display: none; }
.ht-bin .ht-emo { font-size: 22px; }
.ht-top { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.ht-tablewrap { padding: 10px; border-radius: 22px; background: #8d6e63; box-shadow: inset 0 0 0 6px #6d4c41; }
.ht-table { display: grid; gap: 4px; padding: 6px; border-radius: 14px; background: repeating-linear-gradient(45deg, #fff3e0 0 10px, #ffe0b2 10px 20px); }
.ht-cell { position: relative; aspect-ratio: 1; min-height: 44px; border-radius: 10px; background: rgba(255, 255, 255, .55); border: 2px dashed rgba(141, 110, 99, .45); display: grid; place-items: center; cursor: pointer; }
.ht-cell:focus-visible { outline: 3px solid var(--focus); }
.ht-cell.is-center { border-color: #d7a15a; border-style: solid; }
.ht-cell.is-seat { background: rgba(187, 222, 251, .6); }
.ht-seat { position: absolute; bottom: 1px; right: 3px; font-size: 12px; opacity: .7; pointer-events: none; }
.ht-cell .ht-item { min-width: 0; width: 100%; height: 100%; min-height: 40px; padding: 0; border: 0; background: transparent; }
.ht-cell .ht-name { display: none; }
.ht-rules { margin: 0; padding: 10px; list-style: none; display: grid; gap: 6px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-weight: 700; font-size: var(--fs-s); }
.ht-rules li.is-ok { color: #1b6e2a; }
@media (max-width: 639px) { .ht-top { grid-template-columns: 1fr; } .ht-trays { grid-template-columns: 1fr; } .ht-tray { border-radius: 18px; min-height: 76px; } }
/* 27-kun — «Sovg'a ustaxonasi» */
.gw-area { display: grid; gap: 12px; width: 100%; }
.gw-orders { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px; }
.gw-card { display: grid; gap: 4px; align-content: start; padding: 10px; border-radius: 16px; background: #fffdf5; border: 2px solid #ffe0b2; font-size: var(--fs-s); }
.gw-card.is-active { border-color: #1e88e5; box-shadow: 0 0 0 3px rgba(30, 136, 229, .2); }
.gw-card.is-done { border-color: #43a047; background: #f1f8e9; }
.gw-req { margin: 0; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.gw-sw { width: 14px; height: 14px; border-radius: 4px; display: inline-block; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25); }
.gw-steps { margin: 4px 0 0; padding-left: 18px; display: grid; gap: 1px; color: #6b7c8f; }
.gw-steps .is-ok { color: #1b6e2a; font-weight: 800; }
.gw-steps .is-now { color: #0d47a1; font-weight: 900; }
.gw-start { min-height: 44px; }
.gw-station { display: grid; gap: 8px; padding: 12px; border-radius: 18px; background: linear-gradient(180deg, #d7a15a, #b5763a); color: #fff; }
.gw-station .gk-round { color: #fff; }
.gw-hint { margin: 0; font-weight: 800; text-align: center; }
.gw-opts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.gw-sub { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; width: 100%; }
.gw-opt { display: grid; justify-items: center; gap: 2px; min-width: 70px; color: #0d2a4a; }
.gw-opt .gw-sw { width: 26px; height: 26px; border-radius: 8px; }
.gw-left { font-size: 11px; font-weight: 800; color: #6b7c8f; }
.gw-box { display: inline-block; background: #ffcc80; border: 2px solid #e65100; border-radius: 4px; }
.gw-box-small { width: 18px; height: 18px; }
.gw-box-medium { width: 26px; height: 26px; }
.gw-box-large { width: 34px; height: 34px; }
.gw-box-long { width: 40px; height: 16px; }
/* 28-kun — «Yo'qolgan nur» */
.ll-area { display: grid; gap: 12px; width: 100%; justify-items: center; }
.ll-wallwrap { width: min(100%, 560px); }
.ll-wall { fill: #fff8e1; stroke: #ffe082; stroke-width: 3; }
.ll-shadow { fill: #37474f; }
.ll-shadow.is-match { fill: #263238; }
.ll-target { fill: none; stroke: #f9a825; stroke-width: 3; stroke-dasharray: 5 3; }
.ll-wallsvg.is-done .ll-wall { fill: #fffde7; stroke: #43a047; }
.ll-ctrls { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; width: 100%; }
.ll-lamp { display: grid; gap: 6px; padding: 10px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.ll-top { width: 100%; height: 56px; }
.ll-beam { stroke: #ffd54f; stroke-width: 6; opacity: .6; }
.ll-wallline { stroke: #8d6e63; stroke-width: 4; }
.ll-bulb { fill: #ffca28; }
.ll-block { fill: #455a64; }
.ll-row { display: flex; gap: 6px; align-items: center; justify-content: space-between; }
.ll-btn { min-width: 44px; min-height: 44px; font-size: 20px; }
.ll-val-a, .ll-val-d { min-width: 36px; text-align: center; font-variant-numeric: tabular-nums; }
/* 29-kun — «Sehrli chana marshruti» */
.sr-area { display: grid; gap: 10px; width: 100%; }
.sr-wrap { width: 100%; max-width: 760px; justify-self: center; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 18px; }
@media (max-width: 639px) { .sr-map { min-width: 620px; } }
.sr-snow { fill: #f1f8fd; }
.sr-river { fill: none; stroke: #90caf9; stroke-width: 34; opacity: .7; }
.sr-road { stroke: #a1887f; stroke-width: 9; stroke-linecap: round; }
.sr-road.is-closed { stroke: #ef9a9a; stroke-dasharray: 6 10; stroke-width: 6; }
.sr-road.is-bridge { stroke: #4fc3f7; stroke-width: 11; }
.sr-wbox { fill: #fff; stroke: #a1887f; stroke-width: 2; }
.sr-wbox.is-closed { stroke: #e53935; }
.sr-wbox.is-bridge { stroke: #0288d1; fill: #e1f5fe; }
.sr-w { font-size: 15px; font-weight: 900; fill: #3e2723; }
.sr-path { stroke: #e65100; stroke-width: 7; stroke-linecap: round; opacity: .8; }
.sr-node { cursor: pointer; outline: none; }
.sr-dot { fill: #fff; stroke: #90a4ae; stroke-width: 3; }
.sr-node.is-must .sr-dot { stroke: #ff8f00; stroke-width: 4; }
.sr-node.is-visited .sr-dot { fill: #fff3e0; stroke: #2e7d32; }
.sr-node.is-next .sr-dot { stroke: #1e88e5; stroke-width: 5; }
.sr-node:focus-visible .sr-dot { stroke: var(--focus); stroke-width: 6; }
.sr-label { font-size: 15px; font-weight: 800; fill: #0d2a4a; paint-order: stroke; stroke: #fff; stroke-width: 4px; }
.sr-info { margin: 0; text-align: center; font-weight: 700; color: #0d2a4a; }
/* 30-kun — «Bayramga tayyorgarlik finali» */
.hf-area { display: grid; gap: 12px; width: 100%; justify-items: center; }
.hf-line { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; width: 100%; }
.hf-end { display: grid; justify-items: center; font-size: 24px; padding: 4px; border-radius: 12px; }
.hf-end b { font-size: 20px; color: #0d47a1; }
.hf-end.is-bad { background: #ffebee; }
.hf-slot { display: grid; place-items: center; min-width: 82px; min-height: 82px; border-radius: 16px; border: 3px dashed #90caf9; background: #f5fbff; cursor: pointer; }
.hf-slot:focus-visible { outline: 3px solid var(--focus); }
.hf-slot.is-ok { border-color: #43a047; border-style: solid; background: #e8f5e9; }
.hf-slot.is-bad { border-color: #e53935; border-style: solid; background: #ffebee; }
.hf-empty { font-weight: 900; color: #90caf9; font-size: 22px; }
.hf-tray { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.hf-dev { display: grid; justify-items: center; gap: 2px; padding: 6px 8px; }
.hf-dev-in { pointer-events: none; }
.hf-io { font-size: 16px; font-weight: 900; color: #0d47a1; letter-spacing: .05em; }
.hf-left { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-items: center; font-weight: 800; }
.hf-chip { padding: 4px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.hf-places { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 8px; width: 100%; }
.hf-place { display: grid; gap: 6px; padding: 10px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.hf-step { display: grid; grid-template-columns: 28px 44px 1fr 44px; gap: 6px; align-items: center; font-size: 20px; }
.hf-pm { min-width: 44px; min-height: 44px; padding: 0; font-size: 22px; }
.hf-n { text-align: center; font-variant-numeric: tabular-nums; }
.hf-total { font-weight: 800; }
.hf-gates { display: flex; gap: 14px; font-size: 30px; }
.hf-track { position: relative; width: min(100%, 420px); height: 36px; border-radius: 18px; background: #e0e0e0; box-shadow: inset 0 2px 6px rgba(0, 0, 0, .2); }
.hf-zone { position: absolute; top: 0; bottom: 0; border-radius: 12px; background: #66bb6a; }
.hf-ind { position: absolute; top: -6px; width: 8px; height: 48px; margin-left: -4px; border-radius: 4px; background: #d84315; box-shadow: 0 0 0 2px #fff; }
.hf-open { width: min(100%, 300px); min-height: 72px; border-radius: 22px; border: 0; background: #2e7d32; color: #fff; font-size: 26px; font-weight: 900; letter-spacing: .08em; box-shadow: 0 6px 0 #1b5e20; cursor: pointer; touch-action: manipulation; }
.hf-open:active { transform: translateY(4px); box-shadow: 0 2px 0 #1b5e20; }
.hf-open[disabled] { opacity: .5; cursor: default; }
.hf-open:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

/* ===================== O'yin sahnasi (core/game-stage.js) — barcha kunlik o'yinlar to'liq ekranda (2026-11-16) =====================
   Fullscreen API bo'lsa — butun hujjat; bo'lmasa (iPhone Safari) yoki rad etilsa — fixed, dinamik balandlik, safe-area. */
html.stg-open, html.stg-open body { overflow: hidden; overscroll-behavior: none; }
:root.stg-open, :root[data-scheme].stg-open { scrollbar-gutter: auto; }   /* sahna ostida aylantirgich joyi qolmasin */
.stg {
  position: fixed; inset: 0; z-index: calc(var(--z-toast) - 5); display: flex; flex-direction: column;
  height: 100vh; height: 100dvh; background: var(--surface-2, #eef6fd); color: var(--text);
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
}
.stg-bar { flex: none; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto 44px; align-items: center; gap: 8px; height: 52px; padding: 4px 8px; }
.stg-title { text-align: center; font-weight: 900; font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stg-close, .stg-info {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; padding: 0;
  border: 1px solid var(--line); background: var(--surface); color: var(--text); box-shadow: 0 4px 12px rgba(16, 48, 74, 0.12);
  font: 900 1.15rem/1 var(--font, inherit);
}
.stg-close svg { width: 20px; height: 20px; }
.stg-close:focus-visible, .stg-info:focus-visible { outline: 3px solid var(--sky-400, #4aa3f0); outline-offset: 2px; }
.stg-body { flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.stg-host, .stg-game { width: 100%; min-height: 100%; }
.stg-game > .gk { max-width: 1100px; margin: 0 auto; padding: 4px 12px 16px; }
.stg .gk-title { display: none; }            /* nom — sahna sarlavhasida (bir marta) */
.stg-info-wrap { position: relative; display: inline-grid; }
.stg-help {
  position: absolute; z-index: 5; top: calc(100% + 8px); left: 0; width: min(320px, calc(100vw - 24px)); display: grid; gap: 8px;
  padding: 14px; border-radius: 16px; background: var(--surface); color: var(--text); border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(16, 40, 90, 0.22); text-align: left; font-size: 0.95rem;
}
.stg-help[hidden] { display: none; }
.stg-help p { margin: 0; }
.stg-help .btn { justify-self: start; }
.day-sheet-head .stg-help, .pt-intro .stg-help { left: auto; right: 0; }
.stg-confirm { position: absolute; inset: 0; z-index: 10; display: grid; place-items: center; padding: 16px; background: rgba(8, 26, 51, 0.45); }
.stg-confirm[hidden] { display: none; }
.stg-confirm-card {
  width: min(380px, 100%); display: grid; gap: 10px; padding: 20px; border-radius: 20px; text-align: center;
  background: var(--surface); color: var(--text); box-shadow: 0 18px 44px rgba(8, 26, 51, 0.35);
}
.stg-confirm-card strong { font-size: 1.15rem; }
.stg-confirm-card p { margin: 0; color: var(--text-soft); }
.stg-confirm-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.stg-confirm-actions .btn { flex: 1 1 120px; min-height: 48px; white-space: nowrap; padding-left: 14px; padding-right: 14px; }
/* Kirish kartasi va xarita oynasi: nom + kichik «!» */
.pt-intro { display: flex; align-items: center; gap: 12px; justify-content: center; flex-wrap: wrap; }
.pt-intro-name { font-size: 1.15rem; }
.pt-intro .stg-info, .day-sheet-head .stg-info { width: 36px; height: 36px; font-size: 1rem; box-shadow: none; }
.day-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
@media (prefers-reduced-motion: reduce) { .stg, .stg-confirm { transition: none; animation: none; } }

/* ===================== Til tanlash (core/lang-switch.js) — yuqori o'ng burchak, 3 til ===================== */
.header-tools { gap: 6px; }
.lang-switch { position: relative; display: inline-grid; }
.lang-btn {
  min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; gap: 4px; padding: 0 10px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--text); font: 800 0.86rem/1 var(--font, inherit);
  box-shadow: 0 3px 10px rgba(16, 48, 74, 0.10); white-space: nowrap;
}
.lang-btn:hover { box-shadow: 0 5px 14px rgba(16, 48, 74, 0.16); }
.lang-btn:focus-visible { outline: 3px solid var(--sky-400, #4aa3f0); outline-offset: 2px; }
.lang-btn[aria-busy="true"] { opacity: .7; cursor: progress; }
.lang-btn.is-error { border-color: #d65b5b; }
.lang-caret { font-size: 0.7rem; opacity: .7; }
.lang-list {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: calc(var(--z-header) + 2); margin: 0; padding: 6px; list-style: none;
  min-width: 176px; border-radius: 16px; background: var(--surface); color: var(--text); border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(16, 40, 90, 0.22);
}
.lang-list[hidden] { display: none; }
.lang-list li { display: grid; grid-template-columns: 24px 1fr 16px; align-items: center; gap: 8px; min-height: 44px; padding: 0 10px; border-radius: 10px; cursor: pointer; font-weight: 700; }
.lang-list li:hover, .lang-list li:focus { background: var(--surface-2, #eef6fd); outline: none; }
.lang-list li.is-selected { color: var(--winter-700, #1d5fa8); }
.lang-flag { font-size: 1.15rem; line-height: 1; }
.lang-check { font-weight: 900; }
@media (max-width: 340px) { .lang-btn { padding: 0 8px; } .lang-caret { display: none; } }
@media (max-width: 300px) { .lang-btn { font-size: 0.78rem; padding: 0 6px; } }
.lang-cur { display: inline-flex; align-items: center; gap: 6px; }
.lang-svg { display: block; border-radius: 3px; box-shadow: 0 0 0 1px rgba(16, 48, 74, 0.18); flex: none; }
.lang-flag { display: grid; place-items: center; }
@media (max-width: 420px) {
  .lang-btn { padding: 0; width: 44px; justify-content: center; }
  .lang-short, .lang-caret { display: none; }
}
@media (max-width: 300px) { .header-inner { padding-left: 6px; padding-right: 6px; gap: 6px; } .top-nav a { font-size: 0.78rem; } .header-tools .icon-btn, .lang-btn { width: 38px; height: 38px; min-width: 38px; min-height: 38px; } }
/* Til tugmasi qo'shilgach (2026-11-17): ≤360 px da menyu ikonkalari yashiriladi (yozuvlar qoladi) — sarlavha 320 px da sig'adi. */
@media (max-width: 360px) { .top-nav a { gap: 0; padding-left: 9px; padding-right: 9px; } .top-nav a svg { display: none; } .header-inner { gap: 6px; } }
/* Qulf paytida til tanlash (sarlavha inert) — qulf oynasining yuqori o'ng burchagi. */
.wm-lock-lang { position: absolute; top: calc(10px + env(safe-area-inset-top, 0px)); right: calc(12px + env(safe-area-inset-right, 0px)); z-index: 2; }

/* 31-kun: Qorbobo chanada uchib ketadi (2026-11-19). Ekran ustidan, bosilmaydi; uchqun izi; reduced-motion — qisqa ko'rinish. */
.nyw-sleigh { position: absolute; left: 0; top: 0; z-index: 38; pointer-events: none; aspect-ratio: 600 / 220; will-change: transform, opacity;
  filter: drop-shadow(0 10px 18px rgba(20, 10, 40, 0.35)); }
.nyw-sleigh-art { position: absolute; inset: 0; z-index: 2; }
.nyw-sleigh-art svg { width: 100%; height: 100%; display: block; overflow: visible; }
.nyw-sleigh-rider { position: absolute; z-index: 1; left: 12%; bottom: 36%; width: 19%; aspect-ratio: 0.64; }
.nyw-sleigh-rider .ny-rig, .nyw-sleigh-rider img { width: 100%; height: 100%; display: block; object-fit: contain; }
.nyw-sleigh-trail { position: absolute; z-index: 0; right: 90%; top: 48%; width: 75%; height: 18%; border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 220, 120, 0), rgba(255, 226, 140, 0.55) 70%, rgba(255, 246, 200, 0.9)); filter: blur(1px); }
.nyw-sleigh-trail i { position: absolute; top: calc(50% - 5px + (var(--i) - 4) * 2px); left: calc(var(--i) * 11%); width: 10px; height: 10px;
  background: radial-gradient(circle, #fffbe6 0 25%, #ffd166 40%, rgba(255, 209, 102, 0) 70%); border-radius: 50%;
  animation: nyw-twinkle 0.9s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -0.13s); }
@keyframes nyw-twinkle { from { transform: scale(0.5); opacity: 0.4; } to { transform: scale(1.4); opacity: 1; } }
.nyw-sleigh-sky { position: absolute; inset: 0; z-index: 37; pointer-events: none; opacity: 0;
  background: radial-gradient(1.5px 1.5px at 12% 18%, #fff 50%, transparent 51%), radial-gradient(2px 2px at 28% 36%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 46% 12%, #fff 50%, transparent 51%), radial-gradient(2px 2px at 63% 30%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 78% 16%, #fff 50%, transparent 51%), radial-gradient(2px 2px at 90% 40%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 36% 58%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 70% 62%, #fff 50%, transparent 51%),
    linear-gradient(180deg, rgba(14, 22, 62, 0.94), rgba(38, 44, 112, 0.88) 60%, rgba(90, 70, 150, 0.8)); }
.nyw-sleigh-moon { position: absolute; right: 9%; top: 9%; width: clamp(48px, 9vmin, 96px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 38% 36%, #fffbe8, #ffe9a8 60%, #f2cf72); box-shadow: 0 0 40px 10px rgba(255, 236, 170, 0.35); }
.nyw-sleigh .sl-deer1, .nyw-sleigh .sl-deer2 { animation: nyw-gallop 0.5s ease-in-out infinite alternate; transform-box: fill-box; }
.nyw-sleigh .sl-deer2 { animation-delay: -0.25s; }
@keyframes nyw-gallop { from { translate: 0 0; } to { translate: 0 -6px; } }
.nyw-sleigh .sl-nose { animation: nyw-nose 0.9s ease-in-out infinite alternate; }
@keyframes nyw-nose { from { opacity: 0.75; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .nyw-sleigh *, .nyw-sleigh-trail i { animation: none !important; } }

/* O'yin oldi (egasi 2026-11-19): faqat o'yin nomi, «Boshlash», ✕ — markazda, bir ekranda; qoidalar o'yin ichida «!» da */
.game-lobby { min-height: calc(100dvh - var(--header-h, 64px) - 48px); display: grid; place-items: center; padding: 16px 0 32px; }
.game-lobby .lobby-tools { position: absolute; top: 12px; right: 16px; }
.game-lobby .play-area { width: min(440px, 100%); }
.lobby-card { position: relative; display: grid; justify-items: center; gap: 16px; text-align: center; padding: 40px 24px 28px; border-radius: 26px;
  background: var(--surface, #fff); border: 1px solid var(--line, rgba(20, 40, 107, 0.12)); box-shadow: 0 18px 44px rgba(20, 40, 107, 0.16); }
.lobby-close { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px;
  color: var(--text-soft, #44507a); background: transparent; }
.lobby-close:hover { background: rgba(20, 40, 107, 0.06); }
.lobby-close:focus-visible { outline: 3px solid var(--focus, #3478f6); outline-offset: 2px; }
.lobby-close svg { width: 22px; height: 22px; }
.lobby-emoji { font-size: clamp(3.4rem, 14vw, 4.6rem); line-height: 1; filter: drop-shadow(0 8px 14px rgba(20, 40, 107, 0.18)); }
.lobby-name { margin: 0; font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.25rem); font-weight: 900; line-height: 1.15; color: var(--text, #14286b); max-width: 16ch; }
.lobby-card .btn-lg { min-height: 56px; min-width: min(260px, 100%); font-size: 1.15rem; }
:root[data-scheme="dark"] .lobby-card { background: #102a56; border-color: rgba(255, 255, 255, 0.12); }
:root[data-scheme="dark"] .lobby-name { color: #f7fbff; }
:root[data-scheme="dark"] .lobby-close { color: #b9c9e8; }
.sheet.is-lobby .sheet-body { padding-bottom: 8px; }
.sheet-lobby { display: grid; justify-items: center; gap: 18px; padding: 8px 0 12px; }
.sheet-lobby .btn-start { min-height: 56px; min-width: min(260px, 100%); font-size: 1.1rem; }
/* «!» ga ishora (o'yin sahnasi) */
.stg-tip { position: absolute; z-index: 5; top: calc(env(safe-area-inset-top, 0px) + 58px); left: 10px; display: inline-flex; align-items: center; gap: 8px;
  max-width: calc(100% - 20px); padding: 10px 14px; border-radius: 14px; background: #14286b; color: #fff; font-weight: 700; font-size: 0.95rem;
  box-shadow: 0 10px 24px rgba(6, 14, 40, 0.3); animation: stg-tip-in 0.35s ease-out both; cursor: pointer; }
.stg-tip::before { content: ""; position: absolute; top: -7px; left: 16px; border: 7px solid transparent; border-top: 0; border-bottom-color: #14286b; }
.stg-tip svg { width: 18px; height: 18px; flex: none; }
.stg-tip.is-out { opacity: 0; transform: translateY(-4px); transition: opacity 0.3s, transform 0.3s; }
@keyframes stg-tip-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .stg-tip { animation: none; } .stg-tip.is-out { transition: none; } }

/* Bosish maydonlari ≥ 44×44 px (2026-11-19, WCAG / bolalar barmog'i) — faqat ommaviy sayt (admin alohida CSS) */
.btn-sm, .top-nav a, .link-btn { min-height: 44px; }
.header-tools .icon-btn { width: 44px; height: 44px; }
.brand-mark { width: 44px; height: 44px; }
.wm-help { width: 44px; height: 44px; }
.wm-help svg { width: 22px; height: 22px; }
.pt-intro .stg-info, .day-sheet-head .stg-info { width: 44px; height: 44px; }
/* xarita tuguni: o'zi ≥ 71×44 px (map.js — en ≥ 71, balandlik = 0.625 × en); kengaytirilgan ::after qo'shnilarnikiga kirib qolgani uchun olib tashlandi */
@media (max-width: 340px) {
  /* tor ekran: kun/tun tugmasi headerda yashiriladi (mavzu tizim sozlamasiga ergashadi) — asosiy navigatsiya sig'adi */
  .header-tools #view-btn { display: none; }
  .header-tools .icon-btn, .lang-btn { width: 44px; height: 44px; min-width: 44px; min-height: 44px; }
}

/* Ixcham taymer (Sovg'am): holat bloki, alohida katta karta emas (2026-11-19) */
.countdown-compact { gap: 6px; }
.countdown-compact .cd-box { min-width: 56px; padding: 6px 4px 5px; border-radius: 12px; }
.countdown-compact .cd-num { font-size: clamp(1.25rem, 1rem + 1vw, 1.6rem); }
.countdown-compact .cd-unit { font-size: 0.72rem; }

/* Profil (2026-11-19): ikkilamchi bloklar yonma-yon (keng ekranda), reyting havolasi statistika ichida */
.profile-secondary { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); align-items: start; }
.stat-link { text-decoration: none; color: inherit; cursor: pointer; }
.stat-link .stat-label { display: inline-flex; align-items: center; gap: 2px; }
.stat-link .stat-label svg { width: 14px; height: 14px; }
.stat-link:hover { box-shadow: var(--shadow-md, 0 8px 20px rgba(20, 40, 107, 0.14)); }
.stat-link:focus-visible { outline: 3px solid var(--sky-400, #4aa3f0); outline-offset: 2px; }

/* Mavsum davomidagi taymer kartasi — botdagi uslubda, lekin xaritani bosmaydigan ixcham o'lcham (2026-11-19) */
.wm-daycd { width: min(440px, calc(100vw - 32px)); gap: 10px; padding: clamp(14px, 2vh, 22px) clamp(16px, 3vw, 28px); }
.wm-daycd h1 { font-size: clamp(1.35rem, 0.9rem + 1.4vw, 2rem); }
.wm-daycd .countdown { gap: 8px; }
.wm-daycd .cd-box { min-width: clamp(52px, 4.6vw, 74px); padding: 6px 4px 5px; border-radius: 14px; }
.wm-daycd .cd-num { font-size: clamp(1.3rem, 0.9rem + 1.3vw, 2rem); }
.m-tall .wm-daycd { width: min(360px, calc(100vw - 24px)); }

.wm-daycd .wm-help, .m-tall .wm-daycd .wm-help { width: 44px; height: 44px; }

/* 31-kun HUD — minimal (2026-11-19): kinematik lavhada sarlavha/maqsad yo'q; «Amallar» — yozuvsiz yumaloq tugma (developer menyusi emas) */
.nyw .nyw-hud h1, .nyw .nyw-goal { transition: opacity 0.4s ease; }
.nyw.is-cut .nyw-hud h1, .nyw.is-cut .nyw-goal { opacity: 0; pointer-events: none; }
.nyw .nyw-list-btn { width: 48px; height: 48px; min-height: 48px; padding: 0; border-radius: 50%; justify-content: center; }
.nyw .nyw-list-btn > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nyw .nyw-list-btn svg { width: 22px; height: 22px; margin: 0; }
@media (prefers-reduced-motion: reduce) { .nyw .nyw-hud h1, .nyw .nyw-goal { transition: none; } }

/* Profil — tor ekran (≤ 360 px, 2026-11-19): so'zlar harflab bo'linmaydi; holat qatori — yorliq alohida qatorda; statistika 2 ustun;
   kartalardagi chap ikon tepaga (matn uchun joy) — sahifa qisqaroq */
.status-list li > span { overflow-wrap: normal; word-break: normal; hyphens: manual; }
@media (max-width: 360px) {
  .status-list li { grid-template-columns: 22px minmax(0, 1fr); row-gap: 6px; }
  .status-list li > .chip { grid-column: 2; justify-self: start; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .stats .stat { padding: 10px 12px; }
  .next-day { grid-template-columns: minmax(0, 1fr) !important; }
  .next-day > .today-ico, .next-day > .next-ico, .next-day > .ico-box { display: none; }
  .profile-card .chip { white-space: normal; }
  /* profil kartasi: avatar tepada, ism va chiplar to'liq enda (tor ustunda chiplar 4 qatorga bo'linmaydi) */
  .profile-card { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; gap: 10px; }
  .profile-card .avatar { width: 60px; height: 60px; border-radius: 20px; font-size: 1.6rem; }
  .profile-card .profile-meta { justify-content: center; }
  .profile-card .level { justify-self: stretch; text-align: start; }
}

/* O'yin oldi — kompyuterda kengroq karta (560–720 px), sarlavha kattaroq (2026-11-19) */
@media (min-width: 1024px) {
  .game-lobby .play-area { width: clamp(560px, 46vw, 720px); }
  .lobby-card { padding: 56px 40px 40px; gap: 20px; }
  .lobby-emoji { font-size: 5rem; }
  .lobby-name { font-size: clamp(2.1rem, 1.4rem + 1.2vw, 2.75rem); max-width: 20ch; }
  .lobby-card .btn-lg { min-width: 300px; min-height: 60px; font-size: 1.25rem; }
}

/* O'yin oldi sahifasi ekranga aniq sig'adi (2026-11-19 audit, 8-band): lobby main'ni to'ldiradi (main = 100svh − header),
   bo'sh footer (faqat bo'shliq) yashiriladi — ortiqcha 24–67 px scroll va pastki bo'sh maydon yo'q. */
body:has(.game-lobby) .app-footer { display: none; }
main:has(> .game-lobby) { display: grid; padding-top: 0; padding-bottom: 0; }
main:has(> .game-lobby) > .game-lobby { min-height: 0; padding: 16px 0; }
/* past landshaft (telefon yonboshlab, ≤ 480 px balandlik): karta ixcham — ekranga sig'adi */
@media (max-height: 480px) and (orientation: landscape) {
  main:has(> .game-lobby) > .game-lobby { padding: 8px 0; }
  .lobby-card { padding: 22px 24px 18px; gap: 10px; }
  .lobby-emoji { font-size: 2.8rem; }
  .lobby-name { font-size: 1.5rem; }
}

/* Telefon (tall) xaritasi: taymer kartasi ixcham (≤ ~100 px) — darvoza / «31» portal yozuvini yopmaydi (2026-11-19 audit, map-check) */
.m-tall .wm-daycd { gap: 4px; padding: 8px 10px 10px; border-radius: 20px; }
.m-tall .wm-daycd h1 { font-size: clamp(1rem, 4.6vw, 1.2rem); line-height: 1.2; padding: 0 46px; }
.m-tall .wm-daycd .stack { gap: 4px !important; }
.m-tall .wm-daycd .cd-label { font-size: 0.66rem; }
.m-tall .wm-daycd .countdown { gap: 6px; }
.m-tall .wm-daycd .cd-box { min-width: 50px; padding: 3px 4px 3px; border-radius: 10px; }
.m-tall .wm-daycd .cd-num { font-size: 1.2rem; line-height: 1.1; }
.m-tall .wm-daycd .cd-unit { font-size: 0.62rem; }
.m-tall .wm-daycd .wm-help { position: absolute; top: 2px; right: 2px; }
/* telefon (portret): taymer kartasi bo'lsa — sahna biroz uzunroq, doska pastroqdan boshlanadi (o'lchami o'sha: ~107vw), darvoza tomi ochiq */
@media (max-width: 699px) and (max-aspect-ratio: 1/1) {
  .wm.m-tall:has(.wm-title.has-cd) .wm-scene { height: max(calc(100vh - 57px), 190vw); height: max(calc(100svh - 57px), 190vw); }
  .wm.m-tall:has(.wm-title.has-cd) .wm-board { top: 36%; }
}

/* ---------- 16-kun «Ranglar laboratoriyasi» (color-lab, 2026-11-20) ---------- */
.cl-area { display: grid; gap: 14px; width: 100%; max-width: 760px; }
.cl-orders { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cl-order { --paint: #cfd8dc; display: grid; justify-items: center; gap: 4px; padding: 10px 8px; border-radius: 18px; background: var(--surface, #fff);
  border: 2px solid var(--line, rgba(20, 40, 107, .12)); text-align: center; transition: transform .3s var(--ease), border-color .3s, opacity .3s; }
.cl-order[data-state="next"] { opacity: .55; }
.cl-order[data-state="now"] { border-color: #ffb300; box-shadow: 0 0 0 4px rgba(255, 179, 0, .25); transform: translateY(-2px); }
.cl-order[data-state="done"] { border-color: #43a047; }
.cl-stage { position: relative; width: 100%; max-width: 150px; }
.cl-art { display: block; width: 100%; height: auto; }
.cl-art .cl-fill { fill: var(--paint); transition: fill .8s ease; }
.cl-order[data-state="done"] .cl-art { animation: cl-pop .7s var(--ease) both; }
.cl-who { position: absolute; right: -2px; bottom: -4px; font-size: clamp(22px, 6vw, 32px); filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .2)); }
.cl-order[data-state="done"] .cl-who { animation: cl-hop .6s .3s var(--ease) 2; }
.cl-want { display: inline-flex; align-items: center; gap: 6px; font-size: .95rem; }
.cl-sw { width: 20px; height: 20px; border-radius: 50%; background: var(--c); border: 2px solid rgba(0, 0, 0, .25); flex: none; }
.cl-lab { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; justify-items: center; padding: 14px; border-radius: 22px;
  background: linear-gradient(180deg, #e3f2fd, #f3e5f5); }
.cl-jars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; width: 100%; max-width: 460px; }
.cl-jar { --c: #999; display: grid; justify-items: center; gap: 4px; min-height: 88px; padding: 6px 4px; border: 0; background: none; cursor: pointer; border-radius: 16px; color: inherit; }
.cl-jar:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.cl-jar-body { display: grid; place-items: center; width: 56px; height: 62px; border-radius: 12px 12px 18px 18px; background: var(--c);
  border: 3px solid rgba(0, 0, 0, .18); box-shadow: inset 0 -8px 0 rgba(0, 0, 0, .1), 0 4px 10px rgba(0, 0, 0, .12); transition: transform .2s var(--ease); }
.cl-jar:hover .cl-jar-body { transform: translateY(-3px); }
.cl-jar.is-pour .cl-jar-body { transform: rotate(-18deg) translateY(-4px); }
.cl-sym { font-size: 22px; color: rgba(0, 0, 0, .55); }
.cl-jar[data-p="blue"] .cl-sym, .cl-jar[data-p="red"] .cl-sym { color: rgba(255, 255, 255, .9); }
.cl-jar-name { font-weight: 800; font-size: .85rem; color: #1d2b53; }
.cl-beaker { position: relative; width: 120px; height: 120px; border-radius: 12px 12px 46px 46px; border: 4px solid #90a4ae; background: rgba(255, 255, 255, .7); overflow: hidden; }
.cl-liquid { position: absolute; inset: auto 0 0 0; height: 0; background: var(--c, transparent); transition: height .5s ease, background-color .6s ease; }
.cl-beaker.is-mixed .cl-liquid { height: 62%; }
.cl-beaker.is-mixing { animation: cl-swirl .7s ease-in-out; }
.cl-drops { position: absolute; inset: 0; display: flex; gap: 10px; align-items: flex-end; justify-content: center; padding-bottom: 14px; }
.cl-beaker.is-mixed .cl-drops { opacity: 0; }
.cl-drop { width: 26px; height: 32px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: var(--c, transparent); border: 2px dashed #b0bec5; }
.cl-drop:not([data-c=""]) { border-style: solid; border-color: rgba(0, 0, 0, .2); animation: cl-drip .3s ease both; }
@keyframes cl-swirl { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-6deg); } 75% { transform: rotate(6deg); } }
@keyframes cl-drip { from { transform: translateY(-24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes cl-pop { 0% { transform: scale(.9); } 60% { transform: scale(1.08); } 100% { transform: none; } }
@keyframes cl-hop { 50% { transform: translateY(-10px); } }
:root[data-scheme="dark"] .cl-lab { background: linear-gradient(180deg, #17304f, #2a1f45); }
:root[data-scheme="dark"] .cl-jar-name { color: #e3ecff; }
@media (max-width: 420px) { .cl-orders { gap: 6px; } .cl-order { padding: 8px 4px; } .cl-want { font-size: .8rem; } .cl-jar-body { width: 48px; height: 54px; } }
@media (prefers-reduced-motion: reduce) { .cl-art .cl-fill, .cl-liquid { transition: none; } .cl-beaker.is-mixing, .cl-order[data-state="done"] .cl-art, .cl-order[data-state="done"] .cl-who, .cl-drop { animation: none; } }

/* ---------- 11-kun «Sehrli bogʻbon» (magic-garden, 2026-11-20) ---------- */
.mg-area { display: grid; gap: 14px; width: 100%; max-width: 820px; }
.mg-garden { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mg-plot { --g: 0; position: relative; display: grid; grid-template-rows: auto 1fr auto auto; justify-items: center; gap: 4px; min-height: 210px; padding: 8px 6px 10px;
  border-radius: 20px; border: 2px solid rgba(0, 0, 0, .08); cursor: pointer; color: #1d2b53; overflow: hidden;
  background: linear-gradient(180deg, var(--sky) 0 58%, var(--ground) 58% 100%); transition: transform .2s var(--ease), box-shadow .2s; }
.mg-plot:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0, 0, 0, .12); }
.mg-plot:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.mg-plot[data-state="bloom"] { box-shadow: 0 0 0 3px #fdd835, 0 10px 24px rgba(253, 216, 53, .45); }
.mg-deco { justify-self: end; font-size: 22px; }
.mg-bed { position: relative; display: grid; align-items: end; justify-items: center; width: 100%; min-height: 100px; }
.mg-bed::after { content: ""; position: absolute; bottom: 0; width: 70%; height: 14px; border-radius: 50%; background: #6d4c41; opacity: .55; }
.mg-name { font-weight: 800; font-size: .85rem; }
.mg-status { display: grid; gap: 2px; justify-items: center; min-height: 40px; }
.mg-meter { display: flex; gap: 2px; font-size: 14px; }
.mg-dot { opacity: .25; filter: grayscale(1); transition: opacity .25s, filter .25s, transform .25s; }
.mg-dot.is-full { opacity: 1; filter: none; transform: scale(1.1); }
.mg-flower { position: relative; z-index: 1; width: clamp(56px, 16vw, 92px); height: auto; transform-origin: 50% 100%; transform: scale(calc(.45 + .55 * var(--g))); transition: transform .5s var(--ease); }
.mg-flower .mg-petals { transform-origin: 40px 24px; transform: scale(var(--g)); opacity: calc(var(--g) * 1.4 - .3); transition: transform .5s var(--ease), opacity .5s; }
.mg-flower .mg-leaf { opacity: calc(var(--g) * 3); transition: opacity .4s; }
.mg-plot[data-state="bloom"] .mg-petals { animation: mg-bloom .9s var(--ease); }
.mg-plot.is-water .mg-bed { animation: mg-rain .5s ease; }
.mg-plot.is-sun .mg-bed { animation: mg-shine .5s ease; }
.mg-shelf { display: grid; gap: 12px; padding: 12px; border-radius: 20px; background: linear-gradient(180deg, #fff8e1, #ffecb3); }
.mg-packets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mg-packet { display: grid; justify-items: center; gap: 2px; padding: 8px 6px; border-radius: 16px; border: 2px dashed #bcaaa4; background: #fffdf7; cursor: pointer; color: #3e2723; text-align: center; min-height: 44px; }
.mg-packet.is-picked { border-style: solid; border-color: #ff8f00; box-shadow: 0 0 0 4px rgba(255, 143, 0, .25); transform: translateY(-3px); }
.mg-packet.is-used { opacity: .45; }
.mg-packet:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.mg-packet-art { position: relative; } .mg-packet-art .mg-flower { --g: 1; width: 52px; transform: none; }
.mg-packet-art .mg-flower .mg-petals { transform: none; opacity: 1; } .mg-packet-art .mg-seed { display: none; }
.mg-like { position: absolute; right: -10px; top: -4px; font-size: 18px; }
.mg-needs { font-size: .8rem; font-weight: 800; letter-spacing: .02em; }
.mg-tools { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.mg-tool { display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 8px 18px; border-radius: 999px; border: 2px solid #90a4ae; background: #fff; font-weight: 800; cursor: pointer; color: #1d2b53; }
.mg-tool span { font-size: 24px; }
.mg-tool[aria-pressed="true"] { background: #1e88e5; border-color: #1565c0; color: #fff; box-shadow: 0 6px 14px rgba(30, 136, 229, .35); }
.mg-tool[data-tool="sun"][aria-pressed="true"] { background: #fbc02d; border-color: #f9a825; color: #3e2723; }
@keyframes mg-bloom { 0% { transform: scale(.6) rotate(-20deg); } 70% { transform: scale(1.15) rotate(6deg); } 100% { transform: scale(1); } }
@keyframes mg-rain { 50% { filter: brightness(1.15) saturate(1.3); } }
@keyframes mg-shine { 50% { filter: brightness(1.25); } }
:root[data-scheme="dark"] .mg-shelf { background: linear-gradient(180deg, #3b3020, #2b2416); }
:root[data-scheme="dark"] .mg-packet, :root[data-scheme="dark"] .mg-tool { background: #1e2b45; color: #e3ecff; }
@media (max-width: 480px) { .mg-plot { min-height: 180px; } .mg-name { font-size: .72rem; } .mg-packet .small { display: none; } .mg-tool { padding: 6px 12px; } }
@media (prefers-reduced-motion: reduce) { .mg-flower, .mg-flower .mg-petals { transition: none; } .mg-plot[data-state="bloom"] .mg-petals, .mg-plot.is-water .mg-bed, .mg-plot.is-sun .mg-bed { animation: none; } }

/* ---------- 13-kun «Super oshpaz» (super-chef, 2026-11-20) ---------- */
.sc-area { display: grid; gap: 12px; width: 100%; max-width: 860px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .sc-area { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .sc-pantry { grid-column: 1 / -1; } }
.sc-counter { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; padding: 12px; border-radius: 20px; background: linear-gradient(180deg, #fff3e0, #ffe0b2); }
.sc-customer { font-size: clamp(48px, 12vw, 72px); line-height: 1; filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .15)); }
.sc-customer.is-in { animation: sc-in .5s var(--ease) both; }
.sc-customer.is-happy { animation: sc-hop .5s var(--ease) 2; }
.sc-customer.is-sad { animation: sc-shake .45s ease; }
.sc-bubble { position: relative; display: grid; gap: 6px; padding: 10px 12px; border-radius: 16px; background: #fff; color: #1d2b53; box-shadow: 0 4px 10px rgba(0, 0, 0, .08); }
.sc-bubble::before { content: ""; position: absolute; left: -8px; top: 22px; border: 8px solid transparent; border-right-color: #fff; border-left: 0; }
.sc-recipe { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; counter-reset: sc; }
.sc-recipe li { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px 3px 4px; border-radius: 999px; background: #f1f5ff; font-size: .82rem; font-weight: 700; counter-increment: sc; }
.sc-recipe:not(.is-set) li::before { content: counter(sc); display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #1d2b53; color: #fff; font-size: .7rem; }
.sc-kitchen { display: grid; gap: 10px; justify-items: center; padding: 12px; border-radius: 20px; background: #eceff1; }
.sc-plate { display: flex; flex-direction: column-reverse; align-items: center; justify-content: flex-start; gap: 2px; width: min(100%, 260px); min-height: 170px; padding: 14px 10px 18px;
  border-radius: 50% 50% 40% 40% / 14% 14% 30% 30%; background: radial-gradient(ellipse at 50% 100%, #fff 0 55%, #cfd8dc 56% 60%, transparent 61%); }
.sc-plate[data-kind="bowl"] { flex-direction: row; flex-wrap: wrap; align-content: center; justify-content: center; border-radius: 0 0 50% 50%; background: linear-gradient(180deg, #fff, #e3f2fd); border: 4px solid #90caf9; border-top-width: 0; }
.sc-plate[data-dish="pizza"] { flex-direction: row; flex-wrap: wrap; justify-content: center; align-content: center; border-radius: 50%; aspect-ratio: 1; width: min(100%, 200px); min-height: 0; background: radial-gradient(circle, #fff 0 64%, #cfd8dc 65% 70%, transparent 71%); }
.sc-layer { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 12px; background: color-mix(in srgb, var(--c) 30%, #fff); font-size: .78rem; font-weight: 800; color: #3e2723; animation: sc-drop .3s var(--ease) both; }
.sc-plate[data-kind="stack"]:not([data-dish="pizza"]) .sc-layer { width: 100%; justify-content: center; border: 2px solid color-mix(in srgb, var(--c) 70%, #000); }
.sc-plate[data-kind="bowl"] .sc-layer, .sc-plate[data-dish="pizza"] .sc-layer { background: none; padding: 0; }
.sc-plate[data-kind="bowl"] .sc-emo, .sc-plate[data-dish="pizza"] .sc-emo { font-size: 30px; }
.sc-plate[data-dish="pizza"] .sc-ico { width: 44px; height: 44px; }
.sc-pantry { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; padding: 10px; border-radius: 20px; background: linear-gradient(180deg, #d7ccc8, #bcaaa4); }
.sc-ing { display: grid; justify-items: center; gap: 2px; min-height: 76px; padding: 6px 4px; border-radius: 14px; border: 2px solid rgba(0, 0, 0, .08); background: #fffdf8; cursor: pointer; color: #3e2723; transition: transform .15s var(--ease); }
.sc-ing:hover { transform: translateY(-2px); } .sc-ing:active { transform: scale(.96); }
.sc-ing:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.sc-emo { font-size: 28px; line-height: 1.1; } .sc-ico { width: 32px; height: 32px; }
.sc-ing-name { font-size: .72rem; font-weight: 800; text-align: center; line-height: 1.15; }
@keyframes sc-in { from { transform: translateX(-30px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes sc-hop { 50% { transform: translateY(-12px) scale(1.05); } }
@keyframes sc-shake { 25% { transform: rotate(-8deg); } 75% { transform: rotate(8deg); } }
@keyframes sc-drop { from { transform: translateY(-16px); opacity: 0; } to { transform: none; opacity: 1; } }
:root[data-scheme="dark"] .sc-counter { background: linear-gradient(180deg, #3e2c1c, #2d2015); }
:root[data-scheme="dark"] .sc-kitchen { background: #1f2a3c; }
:root[data-scheme="dark"] .sc-ing { background: #1e2b45; color: #e3ecff; }
@media (prefers-reduced-motion: reduce) { .sc-customer.is-in, .sc-customer.is-happy, .sc-customer.is-sad, .sc-layer { animation: none; } }
/* oshpaz: bloklar to'liq enda (javon tor ustunga siqilmasin), likopcha tagida bo'sh joy ko'rinadi */
.sc-area > * { min-width: 0; justify-self: stretch; width: 100%; box-sizing: border-box; }
.sc-plate .small { text-align: center; }

/* ---------- 18-kun «Kosmos ekspeditsiyasi» (space-expedition, 2026-11-20) ---------- */
.se-area { display: grid; gap: 12px; width: 100%; max-width: 720px; }
.se-area > * { min-width: 0; }
.se-build { display: grid; gap: 12px; padding: 14px; border-radius: 22px; background: linear-gradient(180deg, #e8eaf6, #e3f2fd); }
.se-blueprint { display: grid; gap: 6px; justify-items: center; padding: 12px; border-radius: 18px; border: 2px dashed #7986cb;
  background: repeating-linear-gradient(0deg, transparent 0 19px, rgba(121, 134, 203, .15) 19px 20px), repeating-linear-gradient(90deg, transparent 0 19px, rgba(121, 134, 203, .15) 19px 20px), #f5f7ff; }
.se-engines { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.se-slot { display: grid; place-items: center; width: 92px; height: 72px; border-radius: 14px; border: 2px dashed #9fa8da; background: rgba(255, 255, 255, .7); cursor: pointer; color: #3949ab; padding: 4px; }
.se-slot-body { height: 96px; }
.se-slot-label { font-size: .72rem; font-weight: 800; text-align: center; line-height: 1.15; }
.se-slot.is-filled { border-style: solid; border-color: #43a047; background: #fff; animation: cl-pop .45s var(--ease); }
.se-slot.is-no { animation: sc-shake .4s ease; border-color: #e53935; }
.se-slot:focus-visible, .se-part:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.se-slot .se-part-art { width: 52px; height: 52px; }
.se-parts { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; }
.se-part { display: grid; justify-items: center; gap: 2px; min-height: 76px; padding: 6px; border-radius: 14px; border: 2px solid rgba(0, 0, 0, .08); background: #fff; cursor: pointer; font-size: .75rem; font-weight: 800; color: #1d2b53; }
.se-part.is-picked { border-color: #ff8f00; box-shadow: 0 0 0 4px rgba(255, 143, 0, .25); transform: translateY(-3px); }
.se-part.is-used { opacity: .35; }
.se-part-art { width: 40px; height: 40px; }
.se-flight { display: grid; gap: 10px; justify-items: center; }
.se-sky { position: relative; display: grid; grid-template-columns: repeat(var(--lanes), 1fr); width: min(100%, 360px); aspect-ratio: calc(var(--lanes) / var(--rows));
  max-height: min(70vh, 640px); border-radius: 22px; overflow: hidden; background: radial-gradient(ellipse at 50% 120%, #3949ab, #1a237e 55%, #0d1033); box-shadow: inset 0 0 40px rgba(0, 0, 0, .5); }
.se-sky::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(1px 1px at 20% 30%, #fff, transparent), radial-gradient(1.5px 1.5px at 70% 60%, #fff, transparent), radial-gradient(1px 1px at 40% 80%, #fff, transparent), radial-gradient(1px 1px at 85% 15%, #fff, transparent); opacity: .7; pointer-events: none; }
.se-cell { position: relative; display: grid; place-items: center; font-size: clamp(14px, 4.4vw, 22px); }
.se-hoop { position: absolute; inset: 14% 8%; border: 3px solid #ffd54f; border-radius: 50%; box-shadow: 0 0 10px #ffd54f; }
.se-cell.is-pass .se-hoop { border-color: #69f0ae; box-shadow: 0 0 14px #69f0ae; }
.se-cell.is-miss .se-hoop { border-color: #ef9a9a; opacity: .6; }
.se-cell.is-got .se-cry { animation: se-collect .5s ease forwards; }
.se-cell.is-hit .se-ast { animation: sc-shake .4s ease 2; }
.se-pad { display: grid; place-items: center; width: 80%; height: 70%; border-radius: 8px; background: #ff7043; color: #fff; font-weight: 900; font-size: .8rem; }
.se-rocket { --r: 0; --l: 2; position: absolute; left: 0; bottom: 0; width: calc(100% / var(--lanes)); height: calc(100% / var(--rows)); display: grid; place-items: center;
  font-size: clamp(18px, 6vw, 28px); transform: translate(calc(var(--l) * 100%), calc(var(--r) * -100%)) rotate(-45deg); transition: transform .45s cubic-bezier(.3, .7, .3, 1); z-index: 2; filter: drop-shadow(0 0 6px #ffab40); }
.se-rocket[data-tilt="l"] { transform: translate(calc(var(--l) * 100%), calc(var(--r) * -100%)) rotate(-60deg); }
.se-rocket[data-tilt="r"] { transform: translate(calc(var(--l) * 100%), calc(var(--r) * -100%)) rotate(-30deg); }
.se-rocket.is-crash { animation: sc-shake .4s ease 2; }
.se-rocket.is-landed { filter: drop-shadow(0 0 14px #69f0ae); }
.se-steer { min-width: 64px; min-height: 56px; }
@keyframes se-collect { to { transform: scale(1.8); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .se-rocket { transition: none; } .se-cell.is-got .se-cry { animation: none; opacity: 0; } .se-slot.is-filled, .se-slot.is-no, .se-rocket.is-crash { animation: none; } }
:root[data-scheme="dark"] .se-build { background: linear-gradient(180deg, #1c2340, #172238); }
:root[data-scheme="dark"] .se-blueprint { background-color: #1a2140; }
:root[data-scheme="dark"] .se-part { background: #1e2b45; color: #e3ecff; }

/* ---------- 26-kun «Oʻz shaharchangni qur» (city-builder, 2026-11-20) ---------- */
.cb-area { display: grid; gap: 12px; width: 100%; max-width: 640px; justify-items: center; }
.cb-area > * { min-width: 0; }
.cb-tools { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; width: 100%; }
.cb-tool { position: relative; display: grid; justify-items: center; gap: 2px; min-height: 64px; padding: 6px 2px; border-radius: 14px; border: 2px solid rgba(0, 0, 0, .1); background: #fff; cursor: pointer; font-size: .72rem; font-weight: 800; color: #1d2b53; }
.cb-tool > span:first-child { font-size: 24px; line-height: 1; }
.cb-tool[aria-pressed="true"] { border-color: #ff8f00; box-shadow: 0 0 0 3px rgba(255, 143, 0, .3); background: #fff8e1; }
.cb-tool:disabled { opacity: .45; }
.cb-tool:focus-visible, .cb-cell:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.cb-left { position: absolute; top: -6px; right: -4px; min-width: 20px; padding: 0 5px; border-radius: 999px; background: #1d2b53; color: #fff; font-size: .7rem; }
.cb-road-ico { display: block; width: 26px; height: 18px; border-radius: 4px; background: repeating-linear-gradient(90deg, #616161 0 6px, #fff 6px 9px, #616161 9px 15px); background-size: 100% 3px; background-position: 0 50%; background-repeat: no-repeat; background-color: #616161; }
.cb-grid { display: grid; grid-template-columns: repeat(var(--w), 1fr); gap: 3px; width: min(100%, 560px); padding: 8px; border-radius: 20px; background: #8bc34a; }
.cb-cell { position: relative; display: grid; place-items: center; aspect-ratio: 1; min-width: 0; padding: 0; border: 0; border-radius: 8px; background: #aed581; cursor: pointer; font-size: clamp(18px, 6vw, 34px); }
.cb-cell:hover:not(:disabled) { background: #c5e1a5; }
.cb-cell[data-fixed="main"] { background: #616161; } .cb-cell[data-fixed="river"] { background: linear-gradient(135deg, #4fc3f7, #0288d1); }
.cb-cell[data-fixed="forest"] { background: #689f38; }
.cb-sign { position: absolute; left: 4px; top: 4px; font-size: .55rem; font-weight: 900; color: #fff; text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; }
.cb-road { position: absolute; inset: 0; border-radius: 8px; background: #757575; }
.cb-road::after { content: ""; position: absolute; left: 20%; right: 20%; top: calc(50% - 2px); height: 4px; background: repeating-linear-gradient(90deg, #fff 0 6px, transparent 6px 12px); opacity: .7; }
.cb-road[data-on="false"] { background: #9e9e9e; outline: 2px dashed #ffb300; outline-offset: -3px; }
.cb-b { position: relative; z-index: 1; animation: cl-pop .35s var(--ease); }
.cb-mark { position: absolute; right: 2px; top: 2px; z-index: 2; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; font-size: .7rem; font-weight: 900; color: #fff; background: #43a047; }
.cb-cell[data-mark="warn"] .cb-mark { background: #f57c00; }
.cb-grid.is-alive .cb-road[data-on="true"]::before { content: "🚗"; position: absolute; left: 0; top: 50%; font-size: 60%; transform: translateY(-50%); animation: cb-drive 1.6s linear infinite; }
.cb-grid.is-alive .cb-cell[data-kind="house"], .cb-grid.is-alive .cb-cell[data-kind="school"] { box-shadow: inset 0 0 0 3px #ffe082, 0 0 14px #ffe082; }
@keyframes cb-drive { from { left: -10%; } to { left: 80%; } }
@media (max-width: 420px) { .cb-tool { font-size: .62rem; min-height: 58px; } .cb-grid { gap: 2px; padding: 5px; } }
@media (prefers-reduced-motion: reduce) { .cb-b { animation: none; } .cb-grid.is-alive .cb-road[data-on="true"]::before { animation: none; left: 30%; } }
:root[data-scheme="dark"] .cb-tool { background: #1e2b45; color: #e3ecff; } :root[data-scheme="dark"] .cb-tool[aria-pressed="true"] { background: #3b3020; }

/* ---------- 28-kun «Mening hayvoncham» (pet-care, 2026-11-20) ---------- */
.pc-area { display: grid; gap: 12px; width: 100%; max-width: 720px; }
.pc-area > * { min-width: 0; }
.pc-pickview { display: grid; gap: 12px; justify-items: center; padding: 16px; border-radius: 22px; background: linear-gradient(180deg, #fce4ec, #f3e5f5); }
.pc-q { margin: 0; font-weight: 900; font-size: 1.1rem; color: #4a148c; text-align: center; }
.pc-picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; width: 100%; }
.pc-pick { display: grid; justify-items: center; gap: 6px; padding: 14px 6px; border-radius: 20px; border: 3px solid transparent; background: #fff; cursor: pointer; color: #1d2b53; transition: transform .2s var(--ease); }
.pc-pick:hover { transform: translateY(-4px); border-color: #f48fb1; }
.pc-pick:focus-visible, .pc-item:focus-visible, .pc-spot:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.pc-pick-emo { font-size: clamp(48px, 14vw, 76px); line-height: 1; }
.pc-care { display: grid; gap: 10px; }
.pc-stage { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 12px; border-radius: 22px; background: radial-gradient(circle at 40% 60%, #fff8e1, #ffe0b2); }
.pc-petwrap { position: relative; justify-self: center; width: min(62vw, 240px); aspect-ratio: 1; }
.pc-pet { display: grid; place-items: center; width: 100%; height: 100%; font-size: min(46vw, 180px); line-height: 1; transform-origin: 50% 90%; }
.pc-pet.is-happy { animation: sc-hop .5s var(--ease) 2; } .pc-pet.is-no { animation: sc-shake .45s ease; }
.pc-pet.is-love::after { content: "💖"; position: absolute; top: 4%; right: 6%; font-size: 22%; animation: cl-pop .6s var(--ease) both; }
.pc-spot { position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; border: 0; border-radius: 46% 54% 50% 50%; background: radial-gradient(circle at 40% 40%, #8d6e63, #5d4037 70%); opacity: .9; cursor: pointer; box-shadow: 0 0 0 2px rgba(255, 255, 255, .4); transition: opacity .35s, transform .35s; }
.pc-spot.is-clean { opacity: 0; transform: scale(.4); pointer-events: none; }
.pc-thought { position: relative; display: grid; justify-items: center; gap: 4px; min-width: 96px; padding: 10px 12px; border-radius: 22px; background: #fff; box-shadow: 0 6px 14px rgba(0, 0, 0, .1); text-align: center; color: #1d2b53; }
.pc-thought::before { content: ""; position: absolute; left: -10px; bottom: 14px; width: 14px; height: 14px; border-radius: 50%; background: #fff; }
.pc-wish { font-size: 40px; line-height: 1; }
.pc-bars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pc-bar { --v: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 2px 6px; padding: 8px; border-radius: 14px; background: #fff; color: #1d2b53; font-weight: 800; font-size: .78rem; }
.pc-bar-track { grid-column: 1 / -1; height: 10px; border-radius: 999px; background: #eceff1; overflow: hidden; }
.pc-bar-fill { display: block; height: 100%; width: calc(var(--v) * 100%); border-radius: inherit; background: linear-gradient(90deg, #ff8a80, #ff5252); transition: width .5s var(--ease); }
.pc-bar[data-full="true"] .pc-bar-fill { background: linear-gradient(90deg, #69f0ae, #00c853); }
.pc-shelf { display: grid; gap: 6px; padding: 10px; border-radius: 18px; background: #f3e5f5; }
.pc-shelf-t { font-size: .85rem; color: #4a148c; }
.pc-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.pc-item { display: grid; justify-items: center; gap: 2px; min-height: 68px; padding: 6px 4px; border-radius: 14px; border: 2px solid rgba(0, 0, 0, .08); background: #fff; cursor: pointer; font-size: .74rem; font-weight: 800; color: #1d2b53; }
.pc-item span { font-size: 28px; line-height: 1.1; }
.pc-item:disabled { opacity: .45; }
@media (max-width: 420px) { .pc-stage { grid-template-columns: minmax(0, 1fr); } .pc-thought::before { display: none; } .pc-bar { font-size: .68rem; padding: 6px; } }
@media (prefers-reduced-motion: reduce) { .pc-pet.is-happy, .pc-pet.is-no, .pc-pet.is-love::after { animation: none; } .pc-spot, .pc-bar-fill { transition: none; } }
:root[data-scheme="dark"] .pc-pickview { background: linear-gradient(180deg, #3a1f33, #2b1d3d); } :root[data-scheme="dark"] .pc-shelf { background: #2b1d3d; }
:root[data-scheme="dark"] .pc-pick, :root[data-scheme="dark"] .pc-item, :root[data-scheme="dark"] .pc-bar, :root[data-scheme="dark"] .pc-thought { background: #1e2b45; color: #e3ecff; }
/* shahar: 320–360 px telefonda katak ≥ 40 px (to'r chetidagi bo'shliqlar minimal) */
@media (max-width: 360px) { .cb-grid { width: 100%; padding: 2px; gap: 1px; border-radius: 12px; } .cb-cell { border-radius: 5px; } .cb-sign { font-size: .48rem; } }
@media (max-width: 360px) { .cb-grid { width: calc(100% + 16px); max-width: none; margin-inline: -8px; } }
.cb-cell[data-fixed="main"] { overflow: visible; } .cb-cell[data-fixed="main"][data-x="0"] { z-index: 1; }
/* 29-kun: portret telefonda xarita burilgan (sled-route.js «tall») — yon aylantirish shart emas, matnlar o'qiladi */
.sr-map.is-tall { min-width: 0 !important; }
.sr-map.is-tall .sr-label { font-size: 19px; }
.sr-map.is-tall .sr-w { font-size: 17px; }
/* 13-kun telefonda (2026-11-20 dizayn ko'rigi): buyurtma kartasi to'liq enda — chiplar 2–3 tadan qatorda; likopcha pastroq — javon yaqinroq */
@media (max-width: 600px) {
  .sc-counter { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 10px; }
  .sc-customer { font-size: 44px; justify-self: start; }
  .sc-bubble::before { left: 18px; top: -8px; border: 8px solid transparent; border-bottom-color: #fff; border-top: 0; }
  .sc-recipe li { font-size: .76rem; }
  .sc-plate { min-height: 120px; padding: 10px 8px 12px; }
  .sc-plate[data-dish="pizza"] { width: min(100%, 160px); }
  .sc-kitchen { padding: 8px; gap: 6px; }
}
/* Past ekranli kompyuter (1366×768): xarita balandligi ekranga bog'liq — pastki tugmalar («Shaharni ochish», «Marshrutni tasdiqlash») ko'rinib tursin */
@media (min-width: 640px) {
  .cb-grid { width: min(100%, 560px, max(340px, calc((100svh - 340px) * 7 / 6))); }   /* pastki chegara: katak ≥ 40 px (7×40 + bo'shliqlar) */
  .sr-wrap .sr-map:not(.is-tall) { max-height: max(300px, calc(100svh - 330px)); }
}
/* «!» maslahati: bosishni ushlamaydi (ostidagi o'yin elementi bosiladi), birinchi tegishda yo'qoladi (game-stage.js) */
.stg-tip { pointer-events: none; }

/* ---------- 1-dekabr 00:00 — loyiha OCHILISHI (core/celebrate.js + core/season-lock.js + core/fest-sound.js, 2026-11-23) ----------
   Sanoq oynasi: so'nggi 10 s — soniya katagi yumshoq puls; 5…1 — katta oltin raqam; 00:00 — karta oltin nur bilan «Bayram boshlanmoqda…»;
   server «ochiq» desa — karta kattalashib eriydi. Salyut sahnasi: xarita ORQADA ko'rinib turadi (yuqori osmon qoraytirilgan — salyut
   yorqin, pastda qishloq va yo'l tiniq); bosqichlar data-stage bo'yicha: build → fireworks → welcome → cta. Strobe / butun ekran oq
   chaqnashi yo'q. Harakatni kamaytirish — hammasi harakatsiz. */
.wm-lock-stage { position: relative; display: grid; place-items: center; }
.wm-lock-slot { transition: opacity .35s ease; }
.wm-lock-big { position: absolute; inset: -30px 0; display: grid; place-items: center; pointer-events: none; opacity: 0; font-size: clamp(88px, 27vw, 150px); font-weight: 900; line-height: 1;
  background: linear-gradient(180deg, #fff6c8, #ffd166 48%, #ff9f43); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 6px 22px rgba(255, 190, 80, .5)); }
.wm-lock-card.is-five .wm-lock-big { opacity: 1; }
.wm-lock-card.is-five .wm-lock-slot { opacity: .12; }
.wm-lock-card.is-final .cd-box:last-child { border-color: rgba(255, 209, 102, .85); animation: wm-sec-pulse 1s ease-in-out infinite; }
@keyframes wm-sec-pulse { 50% { transform: scale(1.07); box-shadow: 0 0 0 4px rgba(255, 209, 102, .18), 0 8px 26px rgba(255, 190, 80, .35); } }
.wm-lock-card { transition: box-shadow .7s ease, border-color .7s ease, background-color .7s ease; }
.wm-lock-card.is-zero { border-color: rgba(255, 209, 102, .9); background-color: rgba(255, 228, 160, .16); box-shadow: 0 0 0 6px rgba(255, 209, 102, .16), 0 24px 70px rgba(255, 170, 60, .38); }
.wm-lock-card.is-zero .wm-lock-slot { opacity: .3; }
.wm-lock-note { margin: -6px 0 0; min-height: 1.35em; color: #ffe3a3; font-weight: 900; font-size: clamp(1rem, .95rem + .4vw, 1.2rem); }
.wm-lock-card.is-zero .wm-lock-note { animation: wm-note-glow 1.6s ease-in-out infinite; }
@keyframes wm-note-glow { 50% { text-shadow: 0 0 18px rgba(255, 209, 102, .85); } }
.wm-lock-sound { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 8px 18px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .14); color: #fff; font: inherit; font-weight: 800; font-size: .98rem; }
.wm-lock-sound:hover { background: rgba(255, 255, 255, .22); }
.wm-lock-sound:active { transform: scale(.97); }
.wm-lock-sound:focus-visible { outline: 3px solid #ffd166; outline-offset: 3px; }
.wm-lock.is-opening { opacity: 0; pointer-events: none; transition: opacity .9s ease; }
.wm-lock.is-opening .wm-lock-card { transform: scale(1.08); transition: transform .9s cubic-bezier(.2, .8, .2, 1), box-shadow .7s ease; box-shadow: 0 0 0 10px rgba(255, 209, 102, .2), 0 0 90px rgba(255, 190, 80, .6); }

.cel { position: fixed; inset: 0; z-index: 400; display: flex; overflow: hidden auto; overscroll-behavior: contain; opacity: 0; transition: opacity .6s ease;
  padding: max(64px, calc(env(safe-area-inset-top, 0px) + 60px)) max(14px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(14px, env(safe-area-inset-left, 0px));
  background: linear-gradient(180deg, rgba(4, 8, 30, .88) 0%, rgba(8, 14, 46, .66) 40%, rgba(10, 20, 60, .34) 76%, rgba(10, 20, 60, .2) 100%); }
.cel.is-in { opacity: 1; } .cel.is-out { opacity: 0; pointer-events: none; }
.cel-canvas { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cel-rise { position: fixed; left: -10%; right: -10%; bottom: -22%; height: 70%; pointer-events: none; opacity: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(255, 196, 92, .36), rgba(255, 196, 92, 0) 62%); animation: cel-sunrise 2.2s .15s ease-out forwards; }
@keyframes cel-sunrise { to { opacity: 1; } }
.cel-bar { position: fixed; top: max(10px, env(safe-area-inset-top, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); z-index: 2; display: flex; gap: 8px; }
.cel-btn { min-height: 44px; min-width: 44px; padding: 8px 16px; border-radius: 999px; cursor: pointer; border: 1px solid rgba(255, 255, 255, .38);
  background: rgba(10, 18, 52, .6); color: #fff; font: inherit; font-weight: 800; font-size: .92rem; }
.cel-btn:hover { background: rgba(20, 32, 84, .75); }
.cel-btn:focus-visible { outline: 3px solid #ffd166; outline-offset: 2px; }
.cel-sound { padding: 8px; font-size: 1.15rem; line-height: 1; }
.cel[data-stage="cta"] .cel-skip { display: none; }
.cel-card { position: relative; z-index: 1; margin: auto; display: grid; justify-items: center; gap: 10px; width: min(100%, 540px);
  padding: clamp(18px, 4vw, 34px) clamp(16px, 4vw, 32px); border-radius: 28px; text-align: center; color: #fff;
  background: rgba(12, 20, 62, .84); border: 1px solid rgba(255, 255, 255, .2);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 209, 102, .08), inset 0 1px 0 rgba(255, 255, 255, .15);
  opacity: 0; transform: translateY(22px) scale(.94); transition: opacity .7s ease, transform .8s cubic-bezier(.2, .9, .25, 1.25); }
/* backdrop-filter YO'Q: ostida salyut canvas'i har kadr o'zgaradi — xiralashtirish har kadr qayta hisoblanardi (kuchsiz GPU'da og'ir). */
.cel:is([data-stage="welcome"], [data-stage="cta"]) .cel-card { opacity: 1; transform: none; }
.cel-hello { margin: 0; font-size: clamp(1.9rem, 1.1rem + 4.2vw, 3.2rem); font-weight: 900; line-height: 1.05; letter-spacing: .02em; text-transform: uppercase; }
.cel-hello span:last-child { background: linear-gradient(180deg, #fff6c8, #ffd166 45%, #ff9f43); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 16px rgba(255, 190, 80, .45)); }
.cel-title { margin: 0; font-size: clamp(1.08rem, .88rem + 1.6vw, 1.7rem); font-weight: 900; line-height: 1.22; text-transform: uppercase; letter-spacing: .01em; text-shadow: 0 3px 14px rgba(100, 160, 255, .45); }
.cel-text { margin: 0; color: #ffe3a3; font-weight: 800; font-size: clamp(.98rem, .9rem + .4vw, 1.12rem); }
.cel-say { margin: 2px 0 0; max-width: 46ch; padding: 10px 14px; border-radius: 16px; background: rgba(255, 255, 255, .08); color: #e4ecff; font-size: clamp(.9rem, .86rem + .25vw, 1rem); line-height: 1.45; }
.cel:is([data-stage="welcome"], [data-stage="cta"]) .cel-hello { animation: cel-pop .9s cubic-bezier(.2, .9, .25, 1.35) both; }
.cel:is([data-stage="welcome"], [data-stage="cta"]) .cel-title { animation: cel-rise .7s .25s ease both; }
.cel:is([data-stage="welcome"], [data-stage="cta"]) .cel-text { animation: cel-rise .7s .4s ease both; }
.cel:is([data-stage="welcome"], [data-stage="cta"]) .cel-say { animation: cel-rise .7s .55s ease both; }
.cel-actions { display: grid; gap: 6px; justify-items: center; width: 100%; margin-top: 4px; opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .5s ease, transform .5s ease, visibility 0s linear .5s; }
.cel[data-stage="cta"] .cel-actions { opacity: 1; visibility: visible; transform: none; transition: opacity .5s ease, transform .5s ease, visibility 0s; }
.cel-go { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 58px; width: auto; min-width: min(300px, 100%); max-width: 100%; padding-inline: 24px;
  font-size: clamp(1rem, .92rem + .4vw, 1.12rem); text-transform: uppercase; letter-spacing: .02em; text-wrap: balance; }
@media (min-width: 360px) { .cel-go { white-space: nowrap; } }
.cel[data-stage="cta"] .cel-go { animation: cel-glow 2.4s .8s ease-in-out 3; }
.cel-map { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; color: #dfe8ff; }
.cel-map:hover { color: #fff; }
.cel-stars { position: fixed; inset: 0; pointer-events: none; }
.cel-stars span { position: absolute; color: #ffd166; opacity: .85; }
@keyframes cel-pop { 0% { transform: scale(.4); opacity: 0; } 65% { transform: scale(1.08); opacity: 1; } 100% { transform: none; opacity: 1; } }
@keyframes cel-rise { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes cel-glow { 50% { box-shadow: 0 0 0 6px rgba(255, 209, 102, .25), 0 10px 30px rgba(255, 159, 67, .45); } }
html.cel-open { overflow: hidden; }
/* Xarita jonlanadi: yo'l bo'ylab oltin nur yuguradi (celebrate.js — .wp-sweep nusxa), chiroqlar porlaydi. Bir necha marta — cheksiz emas. */
.wm-path .wp-sweep { fill: none; stroke: #fff3c4; stroke-linecap: round; stroke-width: min(calc(var(--mw) * 0.09), 7px); stroke-dasharray: 9 100; stroke-dashoffset: 9;
  filter: drop-shadow(0 0 6px rgba(255, 214, 120, .95)); animation: cel-sweep 2.6s .2s cubic-bezier(.45, 0, .3, 1) 2 both; }
@keyframes cel-sweep { to { stroke-dashoffset: -100; } }
html.cel-lights .wp-glow { animation: cel-path-glow 2.2s .3s ease-in-out 3; }
@keyframes cel-path-glow { 50% { stroke: rgba(255, 214, 120, .85); } }
html.cel-lights .wm-sp-lamp { animation: cel-lamp 1.8s .4s ease-in-out 3; }
@keyframes cel-lamp { 50% { filter: drop-shadow(0 0 12px rgba(255, 210, 120, .95)) brightness(1.25); } }
@media (max-height: 620px) { .cel-say { display: none; } .cel { padding-top: max(58px, calc(env(safe-area-inset-top, 0px) + 54px)); } }
@media (max-height: 460px) and (min-width: 560px) {   /* telefon yonboshlab: ixcham karta, tugmalar yonma-yon */
  .cel-text { display: none; }
  .cel-card { gap: 6px; padding: 14px 20px; }
  .cel-hello { font-size: 1.7rem; }
  .cel-actions { grid-auto-flow: column; justify-content: center; }
  .cel-go { min-height: 52px; width: auto; padding-inline: 22px; }
}
@media (max-width: 359px) { .cel-hello { font-size: 1.75rem; } .cel-skip { padding: 8px 12px; font-size: .86rem; } }
.cel.is-still, .cel.is-still .cel-card, .cel.is-still .cel-actions { transition: none; }
.cel.is-still .cel-card, .cel.is-still .cel-actions { opacity: 1; visibility: visible; transform: none; }
.cel.is-still * { animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  .cel, .cel-card, .cel-actions, .wm-lock.is-opening, .wm-lock.is-opening .wm-lock-card, .wm-lock-card { transition: none; }
  .cel *, .wm-lock-card.is-final .cd-box:last-child, .wm-lock-card.is-zero .wm-lock-note, html.cel-lights .wp-glow, html.cel-lights .wm-sp-lamp, .wm-path .wp-sweep { animation: none; }
  .wm-path .wp-sweep { display: none; }
}

/* ===================== «🎁 SOVGʻALAR» bo'limi: uchta karta (pages/gift.js) va 11/21-dekabr SOVG'A ESHIGI (pages/gift-door.js) — 2026-11-23 =====================
   Kartalar: 11-dekabr (1-sovgʻa), 21-dekabr (2-sovgʻa), Qorbobo super sovgʻasi (oltin + ko'k). Eshik — xaritadagi darvoza rasmi.
   Sahna: to'liq ekran; faqat transform/opacity (kamera, eshik 3D, sovg'a), zarrachalar — kichik canvas. Harakatni kamaytirish — qisqa, silkinishsiz. */
.gp-head .gp-h { margin: 0; font-size: clamp(1.35rem, 2.4vw, 1.9rem); line-height: 1.15; }
.gp-head .gp-h:focus { outline: none; }
.gx { max-width: 1080px; margin: 0 auto; padding: 14px 16px 0; display: grid; gap: 14px; }
.gx-head { display: grid; gap: 6px; }
.gx-head h1 { margin: 0; font-size: clamp(1.6rem, 3.2vw, 2.5rem); line-height: 1.1; letter-spacing: -0.01em; }
.gx-head h1:focus { outline: none; }
.gx-lead { margin: 0; max-width: 62ch; font-weight: 700; color: var(--text-soft); }
.gx-top:empty { display: none; }
.gx-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 14px; }
.gx-card { position: relative; display: grid; gap: 8px; align-content: start; padding: 14px 16px 16px; border-radius: 22px; min-width: 0; color: #13254f;
  background: rgba(255, 255, 255, 0.88); border: 1px solid rgba(255, 255, 255, 0.95); box-shadow: 0 14px 34px rgba(16, 48, 110, 0.14), inset 0 1px 0 #fff; }
.gx-k-super { background: linear-gradient(160deg, rgba(255, 246, 218, 0.97), rgba(255, 255, 255, 0.93) 48%, rgba(218, 232, 255, 0.95)); border-color: rgba(242, 207, 122, 0.95);
  box-shadow: 0 14px 34px rgba(138, 74, 0, 0.16), 0 0 0 1px rgba(242, 207, 122, 0.35), inset 0 1px 0 #fff; }
.gx-card.is-skeleton { min-height: 300px; background: linear-gradient(90deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.55)); background-size: 200% 100%; animation: gx-shimmer 1.2s linear infinite; }
@keyframes gx-shimmer { to { background-position: -200% 0; } }
.gx-art { position: relative; display: grid; place-items: end center; height: 136px; margin: -2px -4px 4px; border-radius: 16px; overflow: hidden;
  background: radial-gradient(ellipse at 50% 30%, rgba(255, 214, 120, 0.22), transparent 60%), linear-gradient(180deg, #14205a, #2a3d86 72%, #e8f1ff 72.5%, #f7fbff); }
.gx-k-super .gx-art { background: radial-gradient(ellipse at 50% 45%, rgba(255, 220, 130, 0.5), transparent 60%), linear-gradient(180deg, #1b2a6b, #34489a 72%, #fff2cf 72.5%, #fffaf0); }
.gx-door { position: relative; width: 152px; aspect-ratio: 560 / 470; margin-bottom: 6px; }
.gx-door > .gx-px { position: absolute; inset: 0; }
.gx-px { display: block; width: 100%; height: 100%; }
.gx-leaf { position: absolute; top: 34.89%; width: 19.64%; height: 60.85%; }
.gx-leaf-l { left: 30.36%; } .gx-leaf-r { left: 50%; }
.gx-door.is-lit::after { content: ""; position: absolute; left: 49.4%; top: 37%; width: 1.4%; height: 57%; border-radius: 2px;
  background: linear-gradient(180deg, rgba(255, 230, 140, 0), #ffe08a 22%, #ffd36b 78%, rgba(255, 210, 107, 0)); box-shadow: 0 0 12px 4px rgba(255, 205, 100, 0.75); animation: gx-glow 2.4s ease-in-out infinite; }
@keyframes gx-glow { 50% { box-shadow: 0 0 18px 7px rgba(255, 214, 120, 0.95); } }
.gx-day { position: absolute; left: 50%; top: 66%; transform: translate(-50%, -50%); padding: 1px 8px; border-radius: 8px; background: rgba(255, 248, 226, 0.94); color: #142a6b; font-weight: 900; font-size: 1.05rem; box-shadow: 0 3px 8px rgba(60, 30, 0, 0.3); }
.gx-card.is-available .gx-day, .gx-card.is-opened .gx-day, .gx-card.is-claimed .gx-day { opacity: 0.9; }
.gx-chest { position: relative; width: 108px; aspect-ratio: 160 / 140; margin-bottom: 14px; }
.gx-chest > canvas, .gx-chest > span { position: absolute; display: block; }
.gx-chest-body { inset: 0; width: 100%; height: 100%; }
.gx-chest-lid, .gx-chest-bow { left: -6%; width: 112%; aspect-ratio: 180 / 70; top: -24%; }
.gx-chest-glow { left: 50%; top: 45%; width: 200%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 220, 130, 0.65), rgba(255, 220, 130, 0)); }
.gx-date { margin: 0; display: inline-flex; align-items: center; gap: 6px; font-weight: 900; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.04em; color: #2f6fd0; }
.gx-date svg { width: 14px; height: 14px; }
.gx-name { margin: 0; font-size: 1.25rem; font-weight: 900; line-height: 1.15; }
.gx-chip { display: inline-flex; align-items: center; gap: 6px; width: max-content; max-width: 100%; margin: 0; padding: 4px 12px; border-radius: 999px; font-size: var(--fs-xs); font-weight: 900; }
.gx-chip svg { width: 14px; height: 14px; flex: none; }
.gx-chip-gold { background: linear-gradient(180deg, #fff1c9, #ffd98a); color: #6b3d00; }
.gx-chip-ice { background: #e6f0ff; color: #1f4f9a; }
.gx-chip-muted { background: #eef1f6; color: #3d4a63; }
.gx-chip-warn { background: #fff0dc; color: #8a4a00; }
.gx-chip-ok { background: #dff6e6; color: #145a2c; }
.gx-reward { margin: 0; font-weight: 900; color: #8a4500; overflow-wrap: anywhere; }
.gx-detail { margin: 0; color: var(--text-soft); font-weight: 700; font-size: 0.95rem; }
.gx-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.gx-actions .btn { min-height: 46px; }
.gx-cta { min-height: 50px; font-size: 1.02rem; }
.gx-claim-panel { display: grid; gap: 8px; }
.gx-claim-panel:empty { display: none; }
.gx-note { margin: 0; display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 0.95rem; }
.gx-note svg { width: 18px; height: 18px; flex: none; }
.gx-note.is-error { color: #b3261e; }
.gx-hint { margin: 0; font-size: 0.85rem; color: var(--text-soft); font-weight: 700; }
.gx-spin { width: 16px; height: 16px; border-radius: 50%; border: 3px solid rgba(47, 127, 230, 0.25); border-top-color: #2f7fe6; animation: gx-rot 0.8s linear infinite; flex: none; }
@keyframes gx-rot { to { transform: rotate(360deg); } }
.gx-confirm { display: grid; gap: 8px; padding: 16px; border-radius: 20px; color: #13254f; background: linear-gradient(180deg, #fff7e6, #fff); border: 2px solid #ffd98a; box-shadow: 0 10px 26px rgba(138, 74, 0, 0.15); }
.gx-confirm p { margin: 0; font-weight: 700; }
.gx-confirm-title { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 1.15rem; font-weight: 900; }
.gx-confirm-title svg { width: 22px; height: 22px; color: #2f7fe6; flex: none; }
:root[data-scheme="dark"] .gx-card { color: #eef4ff; background: rgba(12, 28, 66, 0.8); border-color: rgba(150, 196, 232, 0.25); box-shadow: 0 14px 34px rgba(0, 6, 20, 0.45); }
:root[data-scheme="dark"] .gx-k-super { background: linear-gradient(160deg, rgba(60, 44, 10, 0.85), rgba(12, 28, 66, 0.85) 50%, rgba(20, 44, 100, 0.9)); border-color: rgba(242, 207, 122, 0.55); }
:root[data-scheme="dark"] .gx-reward { color: #ffd98a; }
:root[data-scheme="dark"] .gx-date { color: #8fc3ff; }
:root[data-scheme="dark"] .gx-confirm { color: #eef4ff; background: linear-gradient(180deg, rgba(60, 44, 10, 0.9), rgba(12, 28, 66, 0.92)); border-color: rgba(255, 217, 138, 0.7); }
:root[data-scheme="dark"] .gx-card.is-skeleton { background: linear-gradient(90deg, rgba(12, 28, 66, 0.6), rgba(30, 56, 110, 0.8), rgba(12, 28, 66, 0.6)); background-size: 200% 100%; }

/* ---------- Sovg'a eshigi sahnasi ---------- */
html.gd-open, html.gd-open body { overflow: hidden; }
:root.gd-open, :root[data-scheme].gd-open { scrollbar-gutter: auto; }   /* to'liq oynali sahifa (sovg'a eshigi, madhiya) ostida 15 px aylantirgich chizig'i qolmasin */
.gd { position: fixed; inset: 0; z-index: 250; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; overflow: hidden; color: #fff;
  background: linear-gradient(180deg, #0a1440 0%, #1b2a6b 55%, #2c3f8a 100%); }
.gd-sky { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.gd-pano { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.6s ease; }
.gd-sky.is-ready .gd-pano { opacity: 0.6; }
.gd-sky::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 42%, rgba(255, 214, 120, 0.16), transparent 55%), linear-gradient(180deg, rgba(6, 12, 40, 0.55), rgba(6, 12, 40, 0.12) 55%, rgba(6, 12, 40, 0.3)); }
.gd-moon { position: absolute; right: 10%; top: 11%; z-index: 1; width: clamp(38px, 7vw, 70px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 36% 34%, #fffbe8, #ffe7a8 60%, #f5c86a); box-shadow: 0 0 40px 10px rgba(255, 230, 160, 0.32); }
.gd-stars { position: absolute; inset: 0 0 45%; z-index: 1; opacity: 0.85;
  background-image: radial-gradient(1.6px 1.6px at 8% 22%, #fff, transparent), radial-gradient(1.2px 1.2px at 22% 12%, #fff, transparent), radial-gradient(1.8px 1.8px at 37% 28%, #fff7d6, transparent),
    radial-gradient(1.2px 1.2px at 54% 9%, #fff, transparent), radial-gradient(1.6px 1.6px at 66% 24%, #fff, transparent), radial-gradient(1.2px 1.2px at 79% 34%, #fff7d6, transparent),
    radial-gradient(1.4px 1.4px at 92% 16%, #fff, transparent), radial-gradient(1.2px 1.2px at 14% 40%, #fff, transparent), radial-gradient(1.4px 1.4px at 47% 44%, #fff, transparent); }
.gd-ground { position: absolute; left: -10%; right: -10%; bottom: -4%; height: 30%; z-index: 1; pointer-events: none; border-radius: 50% 50% 0 0 / 22% 22% 0 0;
  background: linear-gradient(180deg, #eef5ff, #d4e4fa); box-shadow: inset 0 10px 30px rgba(255, 255, 255, 0.8); }
.gd-fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 5; pointer-events: none; }
.gd-top { position: relative; z-index: 7; display: flex; align-items: center; gap: 8px;
  padding: max(10px, env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) 4px max(12px, env(safe-area-inset-left, 0px)); }
.gd-head { flex: 1; min-width: 0; text-align: center; }
.gd-title { margin: 0; font-size: clamp(1.1rem, 0.95rem + 1.4vw, 1.8rem); font-weight: 900; line-height: 1.15; text-shadow: 0 3px 14px rgba(0, 0, 0, 0.35); }
.gd-title:focus { outline: none; }
.gd-sub { margin: 0; font-size: 0.85rem; color: #ffe3a3; font-weight: 800; }
.gd-btn { display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.4); background: rgba(10, 18, 52, 0.6); color: #fff; font: inherit; font-weight: 900; font-size: 1.1rem; }
.gd-btn svg { width: 20px; height: 20px; }
.gd-btn:focus-visible { outline: 3px solid #ffd166; outline-offset: 2px; }
.gd-info-box { position: absolute; z-index: 8; top: calc(max(10px, env(safe-area-inset-top, 0px)) + 54px); left: 12px; right: 12px; max-width: 420px; margin: 0 auto;
  padding: 12px 14px; border-radius: 14px; background: rgba(10, 18, 52, 0.94); font-size: 0.92rem; font-weight: 700; }
.gd-stage { position: relative; z-index: 3; align-self: end; justify-self: center; width: min(94vw, 620px, calc((100dvh - 290px) * 1.25)); aspect-ratio: 5 / 4;
  transform-origin: 50% 64%; transition: transform 1.2s cubic-bezier(0.3, 0.6, 0.2, 1); }
.gd-stage::before { content: ""; position: absolute; left: -28%; right: -28%; bottom: -26%; height: 42%; border-radius: 50%; z-index: 0;
  background: radial-gradient(ellipse at 50% 30%, #ffffff, #e6f0ff 55%, rgba(214, 228, 250, 0) 72%); }
.gd.is-pre .gd-stage { transform: scale(1.07); }
.gd-px { display: block; width: 100%; height: 100%; }
.gd-gate { position: absolute; left: 15%; bottom: 6%; width: 70%; aspect-ratio: 560 / 470; z-index: 1; }
.gd-gate-px { position: absolute; inset: 0; z-index: 2; }
.gd-leaf { position: absolute; top: 34.89%; width: 19.64%; height: 60.85%; z-index: 3; transition: transform 1.35s cubic-bezier(0.55, 0.05, 0.2, 1); will-change: transform; }
.gd-leaf-l { left: 30.36%; transform-origin: 0 50%; --w: -6deg; }
.gd-leaf-r { left: 50%; transform-origin: 100% 50%; --w: 6deg; }
.gd-inner { position: absolute; left: 30.6%; top: 35.4%; width: 38.8%; height: 60%; z-index: 1; opacity: 0; transition: opacity 0.9s ease; border-radius: 6px;
  background: radial-gradient(ellipse at 50% 62%, #fffbe6 0%, #ffe08a 34%, #f6a93b 68%, #7a3d0e 100%); }
.gd-d21 .gd-inner { background: radial-gradient(ellipse at 50% 62%, #fffbe6 0%, #ffe0f4 28%, #c29bff 62%, #3b1d7a 100%); }
.gd-rays { position: absolute; left: 50%; top: 64%; width: 170%; aspect-ratio: 1; z-index: 0; border-radius: 50%; opacity: 0; translate: -50% -50%; scale: 0.55;
  background: repeating-conic-gradient(from 0deg, rgba(255, 232, 160, 0) 0deg 9deg, rgba(255, 232, 160, 0.3) 9deg 13deg);
  -webkit-mask: radial-gradient(closest-side, #000 28%, transparent 74%); mask: radial-gradient(closest-side, #000 28%, transparent 74%); transition: opacity 1s ease, scale 1.4s ease; }
/* markazlash — alohida translate/scale (rotate ulardan keyin, transform'dan oldin qo'llanadi: aylanish markazdan siljimaydi) */
.gd-d21 .gd-rays { background: repeating-conic-gradient(from 0deg, rgba(220, 190, 255, 0) 0deg 9deg, rgba(255, 220, 160, 0.32) 9deg 12deg, rgba(200, 160, 255, 0.22) 12deg 14deg); }
.gd-seam { position: absolute; left: 49.55%; top: 37%; width: 0.9%; height: 57%; z-index: 4; border-radius: 2px; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 230, 140, 0), #ffe08a 22%, #ffd36b 78%, rgba(255, 210, 107, 0)); box-shadow: 0 0 10px 3px rgba(255, 205, 100, 0.55); transition: opacity 0.4s ease, box-shadow 0.6s ease; }
.gd-badge { position: absolute; left: 50%; top: 66%; z-index: 5; transform: translate(-50%, -50%); display: grid; justify-items: center; padding: 4px 12px; border-radius: 12px; line-height: 1;
  background: rgba(255, 248, 226, 0.94); color: #142a6b; font-weight: 900; box-shadow: 0 6px 16px rgba(60, 30, 0, 0.3); transition: opacity 0.35s ease; }
.gd-badge b { font-size: clamp(1.2rem, 3.6vw, 2.1rem); }
.gd-badge span { font-size: clamp(0.66rem, 1.5vw, 0.92rem); }
.gd-deco { position: absolute; z-index: 2; pointer-events: none; }
.gd-tree-l, .gd-tree-r { bottom: 6%; width: 21%; aspect-ratio: 300 / 480; }
.gd-tree-l { left: -5%; } .gd-tree-r { right: -5%; transform: scaleX(-1); }
.gd-lamp-l, .gd-lamp-r { bottom: 7%; width: 7%; aspect-ratio: 140 / 300; }
.gd-lamp-l { left: 9%; } .gd-lamp-r { right: 9%; }
.gd-lamp-l::after, .gd-lamp-r::after { content: ""; position: absolute; left: 50%; top: 20%; width: 280%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255, 214, 120, 0.55), rgba(255, 214, 120, 0)); opacity: 0.55; transition: opacity 0.8s ease, transform 0.8s ease; }
.gd.is-pre .gd-lamp-l::after, .gd.is-pre .gd-lamp-r::after { opacity: 1; transform: translate(-50%, -50%) scale(1.3); }
.gd.is-pre:not(.is-open) .gd-leaf { animation: gd-wiggle 0.42s ease-in-out 2; }
.gd.is-pre .gd-seam { box-shadow: 0 0 20px 7px rgba(255, 214, 120, 0.9); }
@keyframes gd-wiggle { 0%, 100% { transform: none; } 35% { transform: perspective(700px) rotateY(var(--w)); } 70% { transform: perspective(700px) rotateY(calc(var(--w) * -0.4)); } }
.gd.is-open .gd-leaf-l { transform: perspective(700px) rotateY(-108deg); }
.gd.is-open .gd-leaf-r { transform: perspective(700px) rotateY(108deg); }
.gd.is-open .gd-inner { opacity: 1; }
.gd.is-open .gd-rays { opacity: 1; scale: 1; }
.gd.is-open:not(.is-reduced) .gd-rays { animation: gd-spin 24s linear infinite; }
@keyframes gd-spin { from { rotate: 0deg; } to { rotate: 360deg; } }
.gd.is-open .gd-seam, .gd.is-open .gd-badge { opacity: 0; }
.gd-gift { position: absolute; left: 50%; bottom: 7%; width: 33%; aspect-ratio: 160 / 150; z-index: 4; pointer-events: none; opacity: 0;
  transform: translate(-50%, -92%) scale(0.26); filter: blur(3px) brightness(1.7);
  transition: transform 1.4s cubic-bezier(0.2, 0.9, 0.25, 1.15), opacity 0.6s ease, filter 1s ease; }
.gd.is-gift .gd-gift { opacity: 1; transform: translate(-50%, 0) scale(1); filter: none; }
.gd-box { position: absolute; left: 10%; right: 10%; bottom: 9%; aspect-ratio: 160 / 140; }
.gd-box > canvas, .gd-box > span { position: absolute; display: block; }
.gd-box-body { inset: 0; width: 100%; height: 100%; transition: filter 0.6s ease; }
.gd-ribbon { display: none; }
.gd-box-lid, .gd-box-bow { left: -6%; width: 112%; aspect-ratio: 180 / 70; top: -24%; transition: transform 0.85s cubic-bezier(0.2, 0.8, 0.3, 1.1), opacity 0.6s ease; }
.gd-gift-glow { position: absolute; left: 50%; top: 46%; width: 150%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255, 236, 170, 0.55), rgba(255, 236, 170, 0)); opacity: 0.75; transition: transform 0.9s ease, opacity 0.6s ease; }
.gd-gift-shadow { position: absolute; left: 16%; right: 16%; bottom: 3%; height: 8%; border-radius: 50%; background: rgba(20, 40, 90, 0.28); filter: blur(4px); }
.gd[data-variant="a"] .gd-gift-glow { background: radial-gradient(closest-side, rgba(255, 170, 230, 0.6), rgba(255, 170, 230, 0)); }
.gd[data-variant="b"] .gd-gift-glow { background: radial-gradient(closest-side, rgba(120, 200, 255, 0.6), rgba(120, 200, 255, 0)); }
.gd[data-variant="a"] .gd-box-body { filter: hue-rotate(300deg) saturate(1.1); }
.gd[data-variant="b"] .gd-box-body { filter: hue-rotate(195deg) saturate(1.05); }
.gd.is-gift:not(.is-shake):not(.is-unwrapped):not(.is-reduced) .gd-box { animation: gd-float 3.2s ease-in-out 1.4s infinite; }
@keyframes gd-float { 50% { transform: translateY(-5%); } }
.gd.is-shake .gd-box { animation: gd-shake 0.45s ease-in-out infinite; }
@keyframes gd-shake { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-4deg) translateY(-2%); } 75% { transform: rotate(4deg) translateY(-2%); } }
.gd.is-unwrapped .gd-box-lid { transform: translate(-22%, -95%) rotate(-24deg); }
.gd.is-unwrapped .gd-box-bow { transform: translate(-10%, -170%) rotate(-12deg); opacity: 0; }
.gd.is-unwrapped .gd-gift-glow { opacity: 1; transform: translate(-50%, -62%) scale(1.35); }
.gd.is-unwrapped .gd-gift-glow { background: radial-gradient(closest-side, rgba(255, 245, 200, 0.95), rgba(255, 214, 120, 0.45) 45%, rgba(255, 214, 120, 0)); }
.gd.is-instant .gd-stage, .gd.is-instant .gd-leaf, .gd.is-instant .gd-gift, .gd.is-instant .gd-inner, .gd.is-instant .gd-rays,
.gd.is-instant .gd-box-lid, .gd.is-instant .gd-box-bow, .gd.is-instant .gd-gift-glow { transition: none !important; }
.gd.is-instant .gd-stage { transform: none; }
.gd-panel { position: relative; z-index: 6; justify-self: center; display: grid; justify-items: center; gap: 10px; width: min(560px, calc(100% - 24px)); text-align: center; color: #13254f;
  margin: 8px 12px max(12px, env(safe-area-inset-bottom, 0px)); padding: 14px 16px; border-radius: 22px; background: rgba(255, 255, 255, 0.93); box-shadow: 0 16px 40px rgba(6, 14, 50, 0.35); }
:root[data-scheme="dark"] .gd-panel { color: #eef4ff; background: rgba(12, 28, 66, 0.93); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5); }
.gd-msg { margin: 0; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; font-weight: 800; font-size: clamp(1rem, 0.95rem + 0.4vw, 1.18rem); }
.gd-msg svg { width: 20px; height: 20px; flex: none; }
.gd-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.gd-actions .btn { min-height: 48px; }
.gd-cta { min-height: 56px !important; min-width: min(280px, 100%); font-size: 1.1rem; }
.gd-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.gd-choice { display: grid; justify-items: center; align-content: center; gap: 4px; min-height: 96px; padding: 12px 8px; border-radius: 18px; border: 2px solid rgba(255, 255, 255, 0.9);
  font: inherit; font-weight: 900; color: #13254f; cursor: pointer; box-shadow: 0 8px 20px rgba(16, 48, 110, 0.16); transition: transform 0.15s ease, box-shadow 0.2s ease; }
.gd-choice-a { background: linear-gradient(180deg, #fff0fb, #ffd3f0); }
.gd-choice-b { background: linear-gradient(180deg, #eaf6ff, #cbe6ff); }
.gd-choice:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(16, 48, 110, 0.22); }
.gd-choice:active { transform: scale(0.97); }
.gd-choice:focus-visible { outline: 3px solid #2f7fe6; outline-offset: 2px; }
.gd-choice-ico { font-size: 2rem; line-height: 1; }
.gd-reveal { display: grid; justify-items: center; gap: 6px; width: 100%; }
.gd-congrats { margin: 0; font-weight: 900; font-size: clamp(1.4rem, 1.1rem + 1.6vw, 2.1rem); line-height: 1.1; animation: cel-pop 0.8s cubic-bezier(0.2, 0.9, 0.25, 1.35) both; }
.gd-congrats-t { background: linear-gradient(180deg, #ffb347, #e2551f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gd-reward { margin: 0; font-size: clamp(1.1rem, 0.95rem + 1vw, 1.55rem); font-weight: 900; overflow-wrap: anywhere; }
.gd-desc, .gd-next, .gd-hint { margin: 0; max-width: 46ch; font-weight: 700; color: var(--text-soft); }
.gd-claim { display: grid; gap: 8px; justify-items: center; width: 100%; }
.gd-claim:empty { display: none; }
.gd .gx-spin { border-color: rgba(47, 127, 230, 0.25); border-top-color: #2f7fe6; }
/* telefon yonboshlab / past ekran: sahna chapda, panel o'ngda */
@media (max-height: 520px) and (min-aspect-ratio: 4/3) {
  .gd { grid-template-columns: minmax(0, 1fr) minmax(280px, 44%); grid-template-rows: auto minmax(0, 1fr); }
  .gd-top { grid-column: 1 / -1; }
  .gd-stage { grid-column: 1; align-self: center; width: min(54vw, calc((100dvh - 76px) * 1.25)); }
  .gd-panel { grid-column: 2; grid-row: 2; align-self: center; margin: 0 max(12px, env(safe-area-inset-right, 0px)) 10px 0; max-height: calc(100dvh - 80px); overflow: auto; }
  .gd-choice { min-height: 72px; }
}
@media (max-width: 359px) { .gd-panel { padding: 12px; } .gd-choice { min-height: 84px; font-size: 0.92rem; } }
.gd.is-reduced .gd-stage, .gd.is-reduced .gd-leaf, .gd.is-reduced .gd-gift, .gd.is-reduced .gd-inner, .gd.is-reduced .gd-rays,
.gd.is-reduced .gd-box-lid, .gd.is-reduced .gd-box-bow, .gd.is-reduced .gd-gift-glow { transition-duration: 0.15s !important; }
.gd.is-reduced .gd-stage { transform: none !important; }
.gd.is-reduced *, .gd.is-reduced *::after { animation: none !important; }
@media (prefers-reduced-motion: reduce) { .gx-card.is-skeleton, .gx-door.is-lit::after, .gx-spin { animation: none; } }

/* ===================== 8-kun «Moddalarni moslashtir!» — Konstitutsiya kuni (missions/constitution-match.js, 2026-11-23) =====================
   Ochiq kitob: bitta grid (1fr 1fr) — chap va o'ng sahifa AYNAN teng; umurtqa aniq 50 %; qalinlik/soya/burchaklar ko'zgudagi aks.
   Sahifa o'lchami --bw/--bh (JS: joyga sig'diriladi, juft piksel) — matn uzunligiga bog'liq EMAS: uzun modda panel ichida aylanadi.
   Ochilish: yopiq kitob markazda → muqova va ikki varaq 3D ochiladi (faqat transform/opacity) → ochiq kitob. Harakatni kamaytirish — darhol. */
.stg-body:has(.cm) { overflow: hidden; }
.stg-host:has(> .stg-game > .cm), .stg-game:has(> .cm) { height: 100%; min-height: 0; }
@supports not selector(:has(*)) { .stg-game > .cm { height: calc(100dvh - 52px - env(safe-area-inset-top, 0px)); } }
.cm { position: relative; height: 100%; min-height: 0; box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr) auto auto auto; gap: clamp(4px, 1vh, 10px);
  padding: clamp(6px, 1.2vh, 14px) clamp(8px, 2vw, 20px) max(8px, env(safe-area-inset-bottom, 0px)); overflow: hidden; color: #13254f; isolation: isolate; }
.cm-sky { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at 50% 58%, rgba(255, 214, 120, 0.2), transparent 58%),
    radial-gradient(1.6px 1.6px at 8% 14%, #fff, transparent), radial-gradient(1.2px 1.2px at 21% 30%, #fff, transparent), radial-gradient(1.6px 1.6px at 34% 9%, #fff7d6, transparent),
    radial-gradient(1.2px 1.2px at 66% 12%, #fff, transparent), radial-gradient(1.6px 1.6px at 79% 27%, #fff, transparent), radial-gradient(1.2px 1.2px at 92% 10%, #fff7d6, transparent),
    linear-gradient(180deg, #0b1950 0%, #1c3283 58%, #2c49a0 100%); }
.cm-sky::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: -7%; height: 20%; border-radius: 50% 50% 0 0 / 30% 30% 0 0; background: linear-gradient(180deg, #eef5ff, #d4e4fa); }
.cm-head { display: grid; justify-items: center; gap: 3px; text-align: center; }
.cm-kicker { margin: 0; padding: 3px 14px; border-radius: 999px; background: linear-gradient(180deg, #1c2f7a, #132462); border: 1px solid #d9b45a; color: #ffd98a;
  font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; font-size: clamp(0.68rem, 0.58rem + 0.5vw, 0.95rem); }
.cm-title { margin: 0; padding: 1px 18px 3px; border-radius: 14px; background: linear-gradient(180deg, #fff8e6, #f3e2b8); color: #142a6b; font-weight: 900;
  font-size: clamp(1.05rem, 0.85rem + 1.4vw, 1.85rem); box-shadow: 0 4px 0 #c9a24a, 0 8px 18px rgba(0, 0, 0, 0.25); }
.cm-hint { margin: 4px 0 0; color: #e8efff; font-weight: 700; font-size: clamp(0.76rem, 0.7rem + 0.3vw, 0.95rem); }
.cm-tray { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; min-height: 52px; padding: 6px 10px; border-radius: 18px;
  background: rgba(255, 248, 230, 0.12); border: 1px dashed rgba(255, 217, 138, 0.55); transition: opacity 0.4s ease; }
.cm-token { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 6px 14px; border-radius: 14px; border: 2px solid #d9b45a; cursor: grab;
  background: linear-gradient(180deg, #fffaf0, #f6e7bf); color: #142a6b; font: inherit; font-weight: 900; font-size: clamp(0.88rem, 0.78rem + 0.5vw, 1.12rem);
  touch-action: none; user-select: none; -webkit-user-select: none; box-shadow: 0 3px 0 #b88f35, 0 6px 14px rgba(0, 0, 0, 0.22); transition: transform 0.15s ease, box-shadow 0.15s ease; }
.cm-grip { width: 10px; height: 15px; flex: none; background-image: radial-gradient(circle, #9a7a3a 1.3px, transparent 1.6px); background-size: 5px 5px; }
.cm-token.is-picked { transform: translateY(-3px) scale(1.05); box-shadow: 0 0 0 3px #4da3ff, 0 10px 18px rgba(0, 0, 0, 0.3); }
.cm-token:focus-visible, .cm-slot:focus-visible, .cm-more:focus-visible, .cm-text-body:focus-visible { outline: 3px solid #4da3ff; outline-offset: 2px; }
.cm-stagebox { position: relative; min-height: 0; min-width: 0; }
.cm-book { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: var(--bw, 320px); height: var(--bh, 220px); transition: transform 1.6s cubic-bezier(0.45, 0.05, 0.25, 1); }
.cm.is-closed .cm-book { transform: translateX(-25%) scale(0.92); }
.cm-glow { position: absolute; inset: -14%; z-index: -1; border-radius: 50%; pointer-events: none; opacity: 0; transition: opacity 1.2s ease;
  background: radial-gradient(closest-side, rgba(255, 220, 130, 0.5), rgba(255, 220, 130, 0)); }
.cm.is-opening .cm-glow, .cm.is-open .cm-glow { opacity: 0.85; }
.cm-board { position: absolute; inset: -2.4% -1.8% -3.8%; border-radius: 16px; pointer-events: none; transition: opacity 0.6s 0.5s ease;
  background: linear-gradient(180deg, #1d6b44, #124a2f); box-shadow: inset 0 0 0 3px #d9b45a, inset 0 0 0 7px #124a2f, inset 0 0 0 8px #a8822f, 0 18px 40px rgba(0, 0, 0, 0.45); }
.cm.is-closed .cm-board { opacity: 0; }
.cm-spread { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); transition: opacity 0.6s 0.8s ease; }
.cm.is-closed .cm-spread { opacity: 0; }
.cm-page { position: relative; min-width: 0; min-height: 0; box-sizing: border-box; display: grid; padding: calc(var(--bh) * 0.035) calc(var(--bw) * 0.028); }
.cm.has-trans .cm-page { padding-bottom: calc(var(--bh) * 0.035 + 14px); }   /* tarjima izohi — IKKALA sahifada bir xil zaxira (qatorlar ro'para qoladi) */
.cm-left { border-radius: 10px 2px 2px 10px; background: linear-gradient(90deg, #f6ebcf 0%, #fbf4e2 62%, #eedfbb 92%, #e2cf9f 100%);
  box-shadow: -2px 2px 0 #efe2bf, -4px 4px 0 #e3d3a8, -6px 6px 0 #d6c28e; }
.cm-right { border-radius: 2px 10px 10px 2px; background: linear-gradient(270deg, #f6ebcf 0%, #fbf4e2 62%, #eedfbb 92%, #e2cf9f 100%);
  box-shadow: 2px 2px 0 #efe2bf, 4px 4px 0 #e3d3a8, 6px 6px 0 #d6c28e; }
.cm-spine { position: absolute; top: 0; bottom: 0; left: 50%; width: 4px; margin-left: -2px; pointer-events: none; z-index: 2;
  background: linear-gradient(90deg, rgba(120, 90, 30, 0.3), rgba(70, 48, 12, 0.6), rgba(120, 90, 30, 0.3)); box-shadow: -10px 0 16px rgba(120, 90, 30, 0.16), 10px 0 16px rgba(120, 90, 30, 0.16); }
.cm.is-closed .cm-spine { opacity: 0; }
.cm-rows { display: grid; grid-template-rows: repeat(5, minmax(0, 1fr)); gap: calc(var(--bh) * 0.018); min-height: 0; height: 100%; }
.cm.is-open .cm-rows { animation: cm-fade 0.5s ease both; }
@keyframes cm-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.cm-row { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: calc(var(--bw) * 0.012); min-height: 0; }
.cm-slot { position: relative; display: grid; place-items: center; box-sizing: border-box; width: clamp(60px, calc(var(--bw) * 0.12), 122px); height: 100%; max-height: 66px; min-height: 40px;
  border-radius: 12px; border: 2px dashed #b59b62; background: rgba(255, 255, 255, 0.55); cursor: pointer; transition: border-color 0.2s ease, background-color 0.2s ease; }
.cm-slot-empty { display: grid; justify-items: center; line-height: 1.05; color: #8a6d2f; font-weight: 800; text-align: center; font-size: clamp(9px, calc(var(--bw) * 0.0125), 12px); }
.cm-plus { font-size: 1.6em; line-height: 0.9; }
.cm-slot.is-filled { border-style: solid; border-color: #d9b45a; background: #fffaf0; }
.cm-slot.is-filled .cm-slot-empty { display: none; }
.cm-slot .cm-token { box-sizing: border-box; width: 100%; height: 100%; min-height: 0; justify-content: center; padding: 2px 4px; font-size: clamp(0.78rem, calc(var(--bw) * 0.017), 1.05rem); box-shadow: 0 2px 0 #b88f35; }   /* joylashgan raqam — butun slot (barmoq nishoni ≥ 40 px) */
.cm-slot .cm-grip { display: none; }
.cm-ico { font-size: clamp(16px, calc(var(--bw) * 0.03), 28px); line-height: 1; }
.cm-flag { display: inline-grid; grid-template-rows: 1fr 1fr 1fr; width: clamp(20px, calc(var(--bw) * 0.036), 34px); aspect-ratio: 2 / 1; border-radius: 3px; overflow: hidden; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); }
.cm-flag i:nth-child(1) { background: #0099b5; }
.cm-flag i:nth-child(2) { background: #fff; box-shadow: inset 0 1px 0 #ce1126, inset 0 -1px 0 #ce1126; }
.cm-flag i:nth-child(3) { background: #1eb53a; }
.cm-label { font-weight: 800; color: #142a6b; font-size: clamp(10.5px, calc(var(--bw) * 0.0195), 18px); line-height: 1.2; overflow-wrap: anywhere; }
.cm-text { display: grid; grid-template-rows: minmax(0, 1fr) auto; min-height: 0; border-radius: 12px; box-sizing: border-box;
  background: rgba(255, 255, 255, 0.62); border: 1px solid rgba(181, 155, 98, 0.45); padding: calc(var(--bh) * 0.008) calc(var(--bw) * 0.01) 0; }
.cm-text-body { overflow: auto; overscroll-behavior: contain; min-height: 0; color: #1b2a4a; font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(10px, calc(var(--bw) * 0.0168), 16px); line-height: 1.32; scrollbar-width: thin;
  -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 10px), rgba(0, 0, 0, 0.3)); mask-image: linear-gradient(180deg, #000 calc(100% - 10px), rgba(0, 0, 0, 0.3)); }   /* pastda yumshoq so'nish — davomi bor */
.cm-text-body p { margin: 0 0 0.25em; }
.cm-text-body p:last-child { margin-bottom: 0; }
.cm-more { justify-self: end; min-height: 22px; padding: 1px 4px; border: 0; background: none; color: #2f6fd0; font: inherit; font-weight: 800; cursor: pointer; font-size: clamp(9px, calc(var(--bw) * 0.0115), 12px); }
.cm-trans { position: absolute; left: calc(var(--bw) * 0.028); right: calc(var(--bw) * 0.028); bottom: 1px; margin: 0; color: #6b5a33; font-size: clamp(8px, calc(var(--bw) * 0.01), 11px); font-weight: 700; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 13px; }
.cm-row.is-wrong .cm-slot { border-color: #e07a5f; background: #fff1ec; animation: cm-shake 0.45s ease; }
.cm-row.is-right .cm-slot { border-color: #2e9e5b; background: #e9f8ee; }
/* raqam slotni to'liq egallaydi — holat raqamning o'zida ko'rinadi (yumshoq: qizil emas, shaftoli rang) */
.cm-row.is-wrong .cm-slot .cm-token { border-color: #e07a5f; background: linear-gradient(180deg, #fff6f2, #ffdccf); box-shadow: 0 2px 0 #c2563a, 0 0 0 3px rgba(224, 122, 95, 0.25); }
.cm-row.is-right .cm-slot .cm-token { border-color: #2e9e5b; background: linear-gradient(180deg, #f3fcf6, #d6f2df); box-shadow: 0 2px 0 #1f7a43; }
@keyframes cm-shake { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
.cm-cover { position: absolute; top: -2.4%; bottom: -3.8%; left: 50%; right: -1.8%; z-index: 6; transform-origin: 0 50%; display: grid; place-items: center; align-content: center; gap: 6%;
  border-radius: 4px 14px 14px 4px; backface-visibility: hidden; transition: transform 1.5s cubic-bezier(0.55, 0.05, 0.25, 1), opacity 0.3s 1.25s ease;
  background: radial-gradient(ellipse at 50% 35%, rgba(255, 255, 255, 0.08), transparent 60%), linear-gradient(135deg, #1f7a4d, #0f4a2d);
  box-shadow: inset 0 0 0 3px #d9b45a, inset 0 0 0 9px #145536, inset 0 0 0 10px #a8822f, 0 16px 30px rgba(0, 0, 0, 0.4); }
.cm.is-opening .cm-cover { transform: perspective(1800px) rotateY(-180deg); opacity: 0; }
.cm.is-open .cm-cover, .cm.is-open .cm-leaf { display: none; }
.cm-cover-frame { position: absolute; inset: 7%; border: 2px solid rgba(217, 180, 90, 0.7); border-radius: 8px; pointer-events: none; }
.cm-cover-title { color: #ffd98a; text-align: center; font-weight: 900; letter-spacing: 0.04em; line-height: 1.25; font-size: clamp(10px, calc(var(--bw) * 0.024), 22px); text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35); }
.cm-cover-title b { display: block; font-size: 1.15em; }
.cm-medal { display: grid; place-items: center; width: calc(var(--bw) * 0.11); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff3c4, #e2b54e 55%, #a8822f); box-shadow: 0 0 0 3px #a8822f, 0 6px 14px rgba(0, 0, 0, 0.35); }
.cm-medal-star { width: 56%; aspect-ratio: 1; background: #fff8e1; clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.cm-leaf { position: absolute; top: 1%; bottom: 1%; left: 50%; right: 1%; z-index: 5; transform-origin: 0 50%; opacity: 0; backface-visibility: hidden; border-radius: 2px 8px 8px 2px;
  background: linear-gradient(90deg, #e9dbb3, #fbf4e2); box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.15); }
.cm.is-opening .cm-leaf { opacity: 1; animation: cm-flip 1.25s cubic-bezier(0.55, 0.05, 0.25, 1) forwards; }
.cm.is-opening .cm-leaf-1 { animation-delay: 0.22s; }
.cm.is-opening .cm-leaf-2 { animation-delay: 0.42s; }
@keyframes cm-flip { from { transform: perspective(1800px) rotateY(0); } 85% { opacity: 1; } to { transform: perspective(1800px) rotateY(-180deg); opacity: 0; } }
.cm-ribbon { position: absolute; bottom: -7%; z-index: 7; width: 15%; height: 9%; border-radius: 6px; pointer-events: none; transition: opacity 0.5s 1s ease;
  background: linear-gradient(180deg, #0099b5 0 32%, #ce1126 32% 34%, #fff 34% 66%, #ce1126 66% 68%, #1eb53a 68%); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25); }
.cm-ribbon-l { left: -3%; transform: rotate(-8deg); }
.cm-ribbon-r { right: -3%; transform: rotate(8deg); }
.cm.is-closed .cm-ribbon { opacity: 0; }
.cm.is-closed .cm-tray, .cm.is-opening .cm-tray, .cm.is-closed .cm-foot, .cm.is-opening .cm-foot { opacity: 0; visibility: hidden; }
.cm-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px; transition: opacity 0.4s ease; }
.cm-counter { margin: 0; padding: 6px 14px; border-radius: 999px; background: #fff8e6; border: 2px solid #d9b45a; color: #142a6b; font-weight: 800; }
.cm-count { color: #1f4fd1; font-size: 1.15em; }
.cm-check { min-height: 52px; color: #fff; background: linear-gradient(180deg, #2fb35f, #1d8a45) !important; border-color: #17733a !important; }
.cm-check:disabled { opacity: 0.55; filter: grayscale(0.4); cursor: not-allowed; }
.cm.is-ready .cm-check:not(:disabled) { animation: cel-glow 2.4s ease-in-out 2; }
.cm-lock { flex-basis: 100%; margin: 0; text-align: center; color: #e8efff; font-size: 0.8rem; font-weight: 700; }
.cm-status { justify-self: center; margin: 0; min-height: 1.2em; padding: 2px 12px; border-radius: 999px; text-align: center; color: #ffe3a3; font-weight: 800; font-size: 0.9rem; }
.cm-status:not(:empty) { background: rgba(11, 25, 80, 0.88); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); }   /* qorli fonda ham o'qiladi */
.cm-rotate { display: none; }
@media (orientation: portrait) and (max-width: 600px) { .cm-rotate { display: block; justify-self: center; margin: 0; padding: 2px 10px; border-radius: 999px; text-align: center; color: #22355f; background: rgba(255, 255, 255, 0.75); font-size: 0.76rem; font-weight: 700; } }
.cm-reader, .cm-overlay { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; }
.cm-reader[hidden], .cm-overlay[hidden] { display: none !important; }
.cm-reader { z-index: 20; background: rgba(6, 12, 40, 0.58); }
.cm-reader-card { width: min(660px, 100%); max-height: 100%; overflow: auto; box-sizing: border-box; padding: 16px 18px; border-radius: 18px; color: #13254f;
  background: #fffaf0; border: 2px solid #d9b45a; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45); }
.cm-reader-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.cm-reader-top h3 { flex: 1; margin: 0; font-size: 1.15rem; }
.cm-reader-body p, .cm-orig p { margin: 0 0 0.6em; font-family: Georgia, "Times New Roman", serif; font-size: 1.02rem; line-height: 1.5; }
.cm-orig { margin-top: 8px; } .cm-orig summary { cursor: pointer; font-weight: 800; color: #2f6fd0; margin-bottom: 6px; }
.cm-reader .cm-trans { position: static; text-align: left; white-space: normal; font-size: 0.82rem; line-height: 1.35; }
.cm-src { margin: 8px 0 0; color: #5b6b85; font-size: 0.75rem; overflow-wrap: anywhere; }
.cm-overlay { z-index: 15; background: rgba(6, 12, 40, 0.45); }
.cm-win { display: grid; justify-items: center; gap: 8px; width: min(420px, 100%); box-sizing: border-box; padding: 20px; border-radius: 22px; text-align: center; color: #13254f;
  background: linear-gradient(180deg, #fffaf0, #f7ead0); border: 2px solid #d9b45a; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4); animation: cel-pop 0.7s cubic-bezier(0.2, 0.9, 0.25, 1.3) both; }
.cm-win h3 { margin: 0; font-size: 1.35rem; } .cm-win p { margin: 0; font-weight: 700; }
.cm-win-ico { font-size: 2.4rem; }
.cm-win-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 4px; }
.cm-stars { color: #f4b400; font-size: 1.8rem; letter-spacing: 0.15em; text-shadow: 0 2px 0 #a8822f; }
.cm-medal-big { width: 96px; }
.cm-confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.cm-confetti i { position: absolute; top: -6%; left: var(--x); width: 10px; height: 14px; border-radius: 2px; background: var(--c); transform: rotate(var(--r)); animation: cm-fall 2.6s var(--d) ease-in forwards; }
@keyframes cm-fall { to { transform: translateY(115vh) rotate(calc(var(--r) + 540deg)); } }
.cm.is-narrow .cm-ico { display: none; }
.cm.is-narrow .cm-row { grid-template-columns: auto minmax(0, 1fr); }
.cm.is-narrow .cm-slot { width: 54px; min-height: 40px; }
.cm.is-narrow .cm-ribbon { display: none; }
.cm.is-slim .cm-slot .cm-token-t { font-size: 0; line-height: 1; }
.cm.is-slim .cm-slot .cm-token-t::before { content: attr(data-num); font-size: clamp(1rem, calc(var(--bw) * 0.045), 1.3rem); font-weight: 900; }
/* Telefon (portret): sarlavha, lotok va pastki qator ixcham — kitobga ko'proq joy. Qoidalar — sahnadagi «!» da. */
@media (max-width: 600px) {
  .cm { gap: 6px; padding-top: 6px; }
  .cm-tray { gap: 6px; padding: 4px 6px; }
  .cm-token { min-height: 40px; padding: 4px 10px; gap: 4px; font-size: 0.88rem; }
  .cm-foot { gap: 6px 8px; }
  .cm-counter { padding: 5px 10px; white-space: nowrap; font-size: 0.85rem; }
  .cm-check { min-height: 46px; padding-inline: 12px !important; font-size: 0.95rem !important; white-space: nowrap; }
}
@media (max-width: 600px) and (max-height: 760px) { .cm-hint, .cm-lock, .cm-rotate { display: none !important; } }
@media (max-width: 420px) { .cm-counter-l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } }   /* «📋 3/5» — yorliq ekran o'quvchida qoladi */
@media (max-width: 420px) {
  .cm-tray .cm-grip { display: none; }
  .cm-token { padding: 4px 9px; font-size: 0.84rem; }
  .cm-status { font-size: 0.8rem; }
}
/* Tor sahifa: «Toʻliq oʻqish» — burchakdagi 📖 tugma (nomi ekran o'quvchida), matn butun panelni oladi */
.cm.is-narrow .cm-text { grid-template-rows: minmax(0, 1fr); position: relative; padding-bottom: 2px; }
.cm.is-narrow .cm-more { position: absolute; right: 2px; bottom: 2px; min-width: 26px; min-height: 26px; padding: 0 3px; border-radius: 8px; background: rgba(255, 250, 240, 0.95);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18); font-size: 13px; }
.cm.is-narrow .cm-more > span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-height: 640px) { .cm-hint, .cm-lock { display: none; } .cm-kicker { font-size: 0.62rem; } .cm-title { font-size: 1.05rem; } }
/* Past landshaft (telefon yotqizilgan): kitob chapda, raqamlar va tekshirish o'ngda ustun bo'lib. Sarlavha — sahna panelida. */
@media (orientation: landscape) and (max-height: 560px) {
  .cm { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: minmax(0, 1fr) auto auto; grid-template-areas: "book tray" "book foot" "status status"; column-gap: 12px; row-gap: 6px; padding-top: 6px; }
  .cm-head, .cm-rotate { display: none; }
  .cm-stagebox { grid-area: book; }
  .cm-tray { grid-area: tray; display: grid; grid-template-columns: repeat(2, auto); align-content: center; justify-content: center; gap: 6px; min-height: 0; padding: 4px 6px; overflow: auto; }
  .cm-token { min-height: 40px; padding: 3px 10px; font-size: 0.85rem; }
  .cm-foot { grid-area: foot; display: grid; justify-items: stretch; gap: 6px; }
  .cm-counter { text-align: center; padding: 3px 10px; font-size: 0.85rem; }
  .cm-check { min-height: 44px; font-size: 0.95rem !important; }
  .cm-lock { display: none; }
  .cm-status { grid-area: status; font-size: 0.8rem; min-height: 1em; }
}
.cm.is-reduced *, .cm.is-reduced *::before, .cm.is-reduced *::after { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) { .cm *, .cm *::before, .cm *::after { animation: none !important; transition: none !important; } }

/* ===================== 10-dekabr «Madhiya bilimdoni» (pages/anthem.js, 2026-11-23) =====================
   Bayroq ranglari (ko'k / oq / yashil, qizil hoshiya), oltin aksent. Animatsiyalar FAQAT transform/opacity: nur (sekin aylanish), bayroq
   hilpirashi, uchqunlar, natijada konfetti. Tanlovda to'g'ri/xato rangi YO'Q (faqat neytral ko'k belgi). Harakatni kamaytirish — sokin. */
.an { position: fixed; inset: 0; z-index: 250; display: grid; grid-template-rows: auto auto minmax(0, 1fr); overflow: hidden; color: #10233f; isolation: isolate;
  background: linear-gradient(180deg, #067c9c 0%, #2fa9cb 26%, #dff3f9 46%, #fbfffc 56%, #e6f7ea 74%, #31b85b 100%); }
.an-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.an-rays { position: absolute; left: 50%; top: 38%; width: 160vmax; aspect-ratio: 1; translate: -50% -50%; opacity: 0.35;
  background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, 0) 0deg 8deg, rgba(255, 255, 255, 0.55) 8deg 11deg);
  -webkit-mask: radial-gradient(closest-side, #000 10%, transparent 70%); mask: radial-gradient(closest-side, #000 10%, transparent 70%); animation: an-spin 60s linear infinite; }
@keyframes an-spin { to { rotate: 360deg; } }
.an-wave { position: absolute; right: -4%; top: 7%; width: min(46vw, 420px); opacity: 0.22; transform-origin: 0 50%; animation: an-wave 5.5s ease-in-out infinite; }
.an-wave .an-flag { display: block; width: 100%; height: auto; }
@keyframes an-wave { 0%, 100% { transform: skewY(0) scaleX(1); } 50% { transform: skewY(-2.5deg) scaleX(0.97); } }
.an-mote { position: absolute; bottom: -12px; left: var(--x); width: 7px; height: 7px; border-radius: 50%; background: radial-gradient(circle, #fff6c8, #ffd166 60%, rgba(255, 209, 102, 0));
  animation: an-rise var(--s) var(--d) linear infinite; opacity: 0; }
@keyframes an-rise { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 0.9; } 100% { transform: translateY(-105vh); opacity: 0; } }
.an-top { grid-row: 1; position: relative; z-index: 3; display: flex; align-items: center; gap: 8px; padding: max(10px, env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) 4px max(12px, env(safe-area-inset-left, 0px)); }
.an-head { flex: 1; min-width: 0; text-align: center; }
.an-title { margin: 0; color: #fff; font-weight: 900; font-size: clamp(1.15rem, 0.95rem + 1.5vw, 1.9rem); text-shadow: 0 3px 12px rgba(0, 50, 80, 0.45); }
.an-title:focus { outline: none; }
.an-sub { margin: 0; color: #fff3c4; font-weight: 800; font-size: 0.86rem; text-shadow: 0 2px 8px rgba(0, 50, 80, 0.45); }
.an-rules { grid-row: 2; position: relative; z-index: 3; margin: 0 auto; width: min(560px, calc(100% - 24px)); box-sizing: border-box; padding: 10px 14px; border-radius: 14px;
  background: rgba(8, 40, 70, 0.88); color: #fff; font-weight: 700; font-size: 0.92rem; }
.an-body { grid-row: 3; position: relative; z-index: 2;   /* qoidalar yashirin bo'lsa ham tana 1fr qatorda (fonda chegara chizig'i bo'lmasin) */
  min-height: 0; overflow: auto; overscroll-behavior: contain; display: flex; flex-direction: column; align-items: center;
  padding: 8px max(12px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px)); }
.an-card { position: relative; flex: none; margin-block: auto;   /* bo'sh joy bo'lsa markazda; baland bo'lsa tepadan boshlanadi va aylanadi */
  width: min(680px, 100%); box-sizing: border-box; display: grid; gap: 12px; padding: clamp(16px, 3vw, 28px); border-radius: 24px;
  background: rgba(255, 255, 255, 0.96); border: 2px solid rgba(0, 153, 181, 0.25); box-shadow: 0 20px 50px rgba(0, 60, 90, 0.25), 0 0 0 6px rgba(255, 255, 255, 0.35);
  animation: an-in 0.45s cubic-bezier(0.2, 0.9, 0.25, 1.1) both; }
@keyframes an-in { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }
.an-intro { justify-items: center; text-align: center; }
.an-body > .an-msg { margin-block: auto; }
.an-hero { width: min(260px, 70%); filter: drop-shadow(0 10px 18px rgba(0, 60, 90, 0.3)); }
.an-hero .an-flag { display: block; width: 100%; height: auto; border-radius: 6px; transform-origin: 0 50%; animation: an-wave 4.5s ease-in-out infinite; }
.an-lead { margin: 0; font-weight: 800; font-size: clamp(1rem, 0.95rem + 0.4vw, 1.2rem); }
.an-best, .an-hint { margin: 0; font-weight: 700; color: #3f5a72; }
.an-best { color: #8a5a00; }
.an-msg { margin: 0; display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 800; }
.an-msg svg { width: 20px; height: 20px; }
.an-start { min-height: 64px !important; min-width: min(300px, 100%); font-size: 1.25rem !important; letter-spacing: 0.04em; border-radius: 999px !important;
  box-shadow: 0 8px 0 #b5651d, 0 14px 30px rgba(180, 90, 20, 0.35) !important; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.an-start:not(:disabled) { animation: an-pulse 2.4s ease-in-out 1s 3; }
.an-start:active { transform: translateY(4px); box-shadow: 0 4px 0 #b5651d, 0 8px 18px rgba(180, 90, 20, 0.3) !important; }
@keyframes an-pulse { 50% { transform: scale(1.04); } }
.an-progress { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.an-step { padding: 4px 12px; border-radius: 999px; background: #e6f6fa; color: #075b73; font-weight: 900; }
.an-dots { display: flex; gap: 6px; }
.an-dots i { width: 12px; height: 12px; border-radius: 50%; background: #d6e3ea; transition: transform 0.2s ease, background-color 0.2s ease; }
.an-dots i.is-done { background: #0099b5; }
.an-dots i.is-cur { transform: scale(1.35); box-shadow: 0 0 0 2px #fff, 0 0 0 4px #0099b5; }
.an-q { margin: 0; font-size: clamp(1.1rem, 0.98rem + 0.8vw, 1.5rem); line-height: 1.3; font-weight: 900; }
.an-q:focus { outline: none; }
.an-opts { display: grid; gap: 10px; }
.an-opt { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 10px 14px; text-align: left;
  border-radius: 16px; border: 2px solid #d3e4ec; background: #fbfdff; color: #10233f; font: inherit; font-weight: 800; font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.1rem); cursor: pointer;
  box-shadow: 0 3px 0 #d3e4ec; transition: transform 0.12s ease, border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease; }
.an-opt:hover { border-color: #8fd0e0; }
.an-opt:active { transform: translateY(2px); box-shadow: 0 1px 0 #d3e4ec; }
.an-opt:focus-visible { outline: 3px solid #f4a62a; outline-offset: 2px; }
.an-opt.is-on { border-color: #0099b5; background: #eaf8fc; box-shadow: 0 3px 0 #0099b5; }
.an-opt-t { overflow-wrap: anywhere; line-height: 1.3; }
.an-letter { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(180deg, #11a5c4, #067c9c); color: #fff; font-weight: 900; }
.an-radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #9fbccb; box-sizing: border-box; }
.an-opt.is-on .an-radio { border: 7px solid #0099b5; }
.an-answered { margin: 0; text-align: center; color: #3f5a72; font-weight: 800; }
.an-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.an-nav .btn { min-height: 48px; }
.an-submit { display: grid; justify-items: center; gap: 6px; }
.an-check { min-height: 56px !important; min-width: min(320px, 100%); }
.an-check:disabled { opacity: 0.5; cursor: not-allowed; }
.an-lock { margin: 0; color: #5b6b85; font-size: 0.85rem; font-weight: 700; text-align: center; }
.an-err { margin: 0; color: #b3261e; font-weight: 800; min-height: 0; }
.an-err:empty { display: none; }
.an-result { justify-items: center; text-align: center; }
.an-kick { margin: 0; font-weight: 900; color: #075b73; letter-spacing: 0.03em; text-transform: uppercase; font-size: 0.9rem; }
.an-medal { width: 104px; animation: cel-pop 0.8s 0.1s cubic-bezier(0.2, 0.9, 0.25, 1.4) both; }
.an-stars { margin: 0; color: #f4b400; font-size: 2.2rem; letter-spacing: 0.15em; text-shadow: 0 2px 0 #a8822f; animation: cel-rise 0.6s 0.3s ease both; }
.an-score { margin: 0; font-size: clamp(1.25rem, 1.05rem + 1vw, 1.75rem); font-weight: 900; }
.an-score:focus { outline: none; }
.an-sub2 { margin: 0; font-weight: 800; color: #3f5a72; }
.an-rev { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; counter-reset: an; }
.an-rev-item { counter-increment: an; padding: 12px 14px 12px 44px; position: relative; border-radius: 16px; border: 2px solid #d3e4ec; background: #fbfdff; }
.an-rev-item::before { content: counter(an); position: absolute; left: 12px; top: 12px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #067c9c; color: #fff; font-weight: 900; font-size: 0.8rem; }
.an-rev-item.is-ok { border-color: #8fd5a6; background: #f1fbf4; }
.an-rev-item.is-bad { border-color: #f0b3a3; background: #fff6f3; }
.an-rev-item p { margin: 0 0 4px; }
.an-rev-q { font-weight: 900; }
.an-rev-a, .an-rev-c { font-weight: 700; }
.an-rev-c { color: #145a2c; }
.an-rev-e { color: #3f5a72; font-size: 0.92rem; }
.an-badge { display: inline-block; margin-right: 6px; padding: 1px 9px; border-radius: 999px; font-weight: 900; background: #dff5e6; color: #145a2c; }
.an-rev-item.is-bad .an-badge { background: #ffe5dc; color: #8a2d12; }
.an .cm-confetti { position: fixed; z-index: 4; }
.an-banner { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 12px 14px; border-radius: 16px; text-decoration: none; color: #0b3a4a;
  background: linear-gradient(90deg, #e6f6fa, #f4fbf6); border: 2px solid #8fd0e0; box-shadow: 0 6px 16px rgba(0, 80, 110, 0.12); }
.an-banner:hover { border-color: #0099b5; }
.an-banner-flag { width: 40px !important; flex: none; }
.an-banner-t { display: grid; gap: 2px; flex: 1; min-width: 0; }
.an-banner-t strong { font-weight: 900; }
.an-banner-t span { font-size: 0.9rem; font-weight: 700; color: #3f5a72; }
.an-banner svg { width: 20px; height: 20px; flex: none; }
:root[data-scheme="dark"] .an-banner { color: #e6f6fa; background: linear-gradient(90deg, rgba(0, 120, 150, 0.35), rgba(20, 120, 60, 0.3)); border-color: rgba(143, 208, 224, 0.5); }
:root[data-scheme="dark"] .an-banner-t span { color: #cfe6ee; }
@media (max-width: 380px) { .an-opt { grid-template-columns: auto minmax(0, 1fr); } .an-radio { display: none; } .an-letter { width: 32px; height: 32px; } }
@media (max-height: 520px) { .an-hero { width: min(160px, 40%); } .an-card { gap: 8px; padding: 12px 16px; } .an-opt { min-height: 46px; padding: 6px 12px; } }
.an.is-reduced *, .an.is-reduced *::before { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) { .an *, .an-banner { animation: none !important; } }

/* ===================== 11/21-dekabr TOP-10 sovg'asi (egasi 2026-11-24) =====================
   G'olib (sovg'ani hali ochmagan) — xarita darvozasida oltin nur va sakrab turgan 🎁; TOP-10 ga kirmagan — eshik sahnasida rag'bat kartasi. */
.wm-gate-gift { position: absolute; left: 88%; top: 50%; translate: -50% -50%; z-index: 5; pointer-events: none; font-size: 20cqw; line-height: 1;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.35)); animation: wm-gift-bob 1.6s ease-in-out infinite; }
@keyframes wm-gift-bob { 50% { transform: translateY(-8px) rotate(-6deg); } }
.wm-gate.has-gift .wm-gate-art { filter: drop-shadow(0 0 18px rgba(255, 209, 102, 0.9)); }
.gd-cheer { display: grid; gap: 6px; text-align: center; }
.gd-cheer p { margin: 0; font-weight: 700; }
.gd-cheer .gd-cheer-title { font-size: 1.2rem; font-weight: 900; color: #8a5a00; }
.gd-cheer .gd-cheer-rank { color: #075b73; font-weight: 900; }
@media (prefers-reduced-motion: reduce) { .wm-gate-gift { animation: none; } }

/* ================================================================ 11/21-dekabr eshigi: qulf, tutqichlar, 11/21 mavzulari (2026-11-24) */
.gd-lock { position: absolute; left: 50%; top: 49%; z-index: 6; width: 10.5%; aspect-ratio: 1 / 1.3; translate: -50% -50%; pointer-events: none;
  filter: drop-shadow(0 3px 5px rgba(40, 20, 0, 0.45)); transition: opacity 0.3s ease; }
.gd-shackle { position: absolute; left: 20%; right: 20%; top: 0; height: 50%; border: clamp(2px, 0.75vw, 5px) solid #c99a2e; border-bottom: none;
  border-radius: 50% 50% 0 0 / 70% 70% 0 0; transition: transform 0.28s cubic-bezier(0.3, 1.6, 0.5, 1); }
.gd-lockbody { position: absolute; left: 0; right: 0; bottom: 0; height: 62%; border-radius: 22%; display: grid; place-items: center;
  background: linear-gradient(180deg, #ffe7a0, #e9b347 55%, #b9801f); box-shadow: inset 0 -3px 0 rgba(120, 70, 0, 0.35), inset 0 2px 0 rgba(255, 255, 255, 0.6); }
.gd-keyhole { width: 22%; aspect-ratio: 1 / 1.6; background: radial-gradient(circle at 50% 30%, #4a2a00 0 34%, transparent 36%), linear-gradient(#4a2a00, #4a2a00) 50% 100% / 34% 62% no-repeat; }
.gd-handle { position: absolute; top: 36%; z-index: 4; width: 16%; aspect-ratio: 1; border: clamp(2px, 0.55vw, 4px) solid #e0b44a; border-radius: 50%;
  box-shadow: 0 2px 3px rgba(60, 30, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.5); transform-origin: 50% 0; pointer-events: none; }
.gd-leaf-l .gd-handle { right: 30%; } .gd-leaf-r .gd-handle { left: 30%; }
.gd.is-pre:not(.is-unlock) .gd-lock { animation: gd-lock-shake 0.28s ease-in-out 3; }
@keyframes gd-lock-shake { 0%, 100% { transform: none; } 30% { transform: rotate(-9deg); } 70% { transform: rotate(8deg); } }
.gd.is-unlock .gd-shackle { transform: translateY(-34%); }
.gd.is-unlock .gd-lock { animation: gd-lock-drop 0.62s 0.26s cubic-bezier(0.5, 0, 0.85, 0.4) forwards; }
@keyframes gd-lock-drop { to { transform: translateY(190%) rotate(32deg); opacity: 0; } }
.gd.is-unlock .gd-handle { animation: gd-handle-turn 0.5s ease-in-out; }
@keyframes gd-handle-turn { 45% { transform: rotate(-38deg); } }
.gd.is-open .gd-lock, .gd.is-instant .gd-lock { opacity: 0; animation: none; }
/* 11 — oltin chiroqlar girlyandasi (ark ostida, o'rtada osilib turadi) */
.gd-garland { position: absolute; left: 25%; right: 25%; top: 25%; height: 8%; z-index: 5; pointer-events: none; }
.gd-garland::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 100%; border-bottom: 2px solid rgba(60, 90, 40, 0.75); border-radius: 0 0 50% 50% / 0 0 100% 100%; }
.gd-garland i { position: absolute; left: calc(var(--i) * 12.5% - 2.2%); top: calc(var(--y) * 82% - 6%); width: 4.4%; aspect-ratio: 0.7; border-radius: 45% 45% 50% 50%;
  background: radial-gradient(circle at 40% 35%, #fff 0 18%, var(--c, #ffd166) 40%); box-shadow: 0 0 10px 3px color-mix(in srgb, var(--c, #ffd166) 70%, transparent);
  animation: gd-bulb 1.6s ease-in-out calc(var(--i) * -0.27s) infinite alternate; }
.gd-garland i:nth-child(3n + 1) { --c: #ff6b6b; } .gd-garland i:nth-child(3n + 2) { --c: #ffd166; } .gd-garland i:nth-child(3n) { --c: #6be3a4; }
@keyframes gd-bulb { from { opacity: 0.55; } to { opacity: 1; } }
.gd.is-pre .gd-garland i { animation-duration: 0.4s; }
/* 21 — yulduzlar toji (ark ustida yoy) + binafsha shimol nuri, binafsha chiroqlar */
.gd-wreath { position: absolute; left: 20%; right: 20%; top: 1%; height: 14%; z-index: 5; pointer-events: none; }
.gd-wreath i { position: absolute; left: calc(var(--i) * 16.66% - 3%); top: calc((1 - var(--y)) * 70%); font-style: normal; font-size: clamp(1rem, 3.4vw, 1.9rem); line-height: 1;
  color: #f4e9ff; text-shadow: 0 0 8px #c69bff, 0 0 16px #9a6bff; animation: gd-star 2.2s ease-in-out calc(var(--i) * -0.3s) infinite alternate; }
@keyframes gd-star { from { opacity: 0.6; transform: scale(0.85); } to { opacity: 1; transform: scale(1.12); } }
.gd-aurora { position: absolute; inset: 0 0 42%; z-index: 1; opacity: 0.75; mix-blend-mode: screen; overflow: hidden; }
.gd-aurora i { position: absolute; left: -20%; right: -20%; height: 34%; border-radius: 50%; filter: blur(14px); transform: skewY(-6deg);
  background: linear-gradient(90deg, transparent, rgba(146, 255, 214, 0.55), rgba(184, 140, 255, 0.6), rgba(255, 150, 220, 0.45), transparent);
  animation: gd-aurora 9s ease-in-out infinite alternate; }
.gd-aurora i:nth-child(1) { top: 8%; } .gd-aurora i:nth-child(2) { top: 26%; animation-delay: -3s; opacity: 0.7; } .gd-aurora i:nth-child(3) { top: 44%; animation-delay: -6s; opacity: 0.5; }
@keyframes gd-aurora { from { transform: skewY(-6deg) translateX(-6%); } to { transform: skewY(-3deg) translateX(6%); } }
.gd-d21 .gd-sub { color: #e6d2ff; }
.gd-d21 .gd-badge { background: linear-gradient(180deg, #f6efff, #dcc7ff); color: #3a1c78; box-shadow: 0 6px 16px rgba(60, 20, 120, 0.35); }
.gd-d21 .gd-lamp-l::after, .gd-d21 .gd-lamp-r::after { background: radial-gradient(closest-side, rgba(200, 160, 255, 0.6), rgba(200, 160, 255, 0)); }
.gd-d21 .gd-seam { background: linear-gradient(180deg, rgba(230, 200, 255, 0), #e9d6ff 22%, #ffd9f2 78%, rgba(230, 200, 255, 0)); box-shadow: 0 0 10px 3px rgba(200, 160, 255, 0.6); }
.gd-d21.is-pre .gd-seam { box-shadow: 0 0 22px 8px rgba(205, 165, 255, 0.95); }
.gd-d21 .gd-lockbody { background: linear-gradient(180deg, #f1f4ff, #c3c9e6 55%, #8a8fb8); }
.gd-d21 .gd-shackle { border-color: #9aa0c8; }
.gd-d21 .gd-handle { border-color: #c9cde8; }
.gd-d21:not([data-variant]) .gd-box-body { filter: hue-rotate(250deg) saturate(1.05); }
/* g'olib profili qadami (bola profili to'liq bo'lmasa) */
.gd[data-state="profile"] .gd-stage { visibility: hidden; }
.gd[data-state="profile"] .gd-panel { position: absolute; z-index: 7; left: 0; right: 0; margin: 0 auto; top: calc(max(10px, env(safe-area-inset-top, 0px)) + 62px);
  bottom: max(12px, env(safe-area-inset-bottom, 0px)); max-height: none; overflow: auto; overscroll-behavior: contain; align-content: start; }
.gd-profile { display: grid; gap: 8px; width: 100%; text-align: left; }
.gd-profile > .gd-msg, .gd-profile > .gd-hint { text-align: center; justify-content: center; }
/* natija: taxminiy sovg'a, eslatma, admin bilan bog'lanish */
.gd-rank { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; background: #fff1c9; color: #6b3d00; font-size: 0.9em; font-weight: 900; }
.gd-top10 { margin: 0; font-weight: 900; color: #8a5a00; }
:root[data-scheme="dark"] .gd-top10 { color: #ffd98a; }
.gd-sug { margin: 2px 0 0; font-weight: 800; font-size: 0.92rem; color: var(--text-soft); text-transform: none; }
.gd-note { margin: 0; max-width: 48ch; font-size: 0.86rem; font-weight: 700; color: var(--text-soft); padding: 8px 10px; border-radius: 12px; background: rgba(47, 127, 230, 0.08); }
.gd-cta-2 { display: inline-grid !important; justify-items: center; gap: 2px; line-height: 1.15; }
.gd-cta-sub { font-size: 0.78rem; font-weight: 700; opacity: 0.9; }
.gd-cheer .gd-cheer-next { color: #b4321f; font-weight: 900; }
:root[data-scheme="dark"] .gd-cheer .gd-cheer-next { color: #ffb4a3; }

/* ================================================================ Bola profili shakli (core/child-profile.js) */
.cp-form { display: grid; gap: 12px; width: 100%; }
.cp-title { margin: 0; font-size: 1.15rem; font-weight: 900; }
.cp-lead { margin: -6px 0 0; color: var(--text-soft); font-weight: 700; }
.cp-group { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; gap: 8px; }
.cp-group legend { padding: 0; margin-bottom: 6px; font-weight: 900; }
.cp-grid { display: grid; gap: 8px; }
.cp-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cp-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 560px) { .cp-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .cp-form.is-compact .cp-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cp-card { position: relative; display: grid; justify-items: center; align-content: center; gap: 4px; min-height: 76px; padding: 10px 8px; border-radius: 18px; cursor: pointer;
  text-align: center; font-weight: 800; border: 2px solid rgba(47, 127, 230, 0.18); background: linear-gradient(180deg, #ffffff, #eef5ff);
  box-shadow: 0 6px 14px rgba(16, 48, 110, 0.08); transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease; }
.cp-cats .cp-card { min-height: 92px; }
.cp-cat-girl { background: linear-gradient(180deg, #fff6fc, #ffe1f3); }
.cp-cat-boy { background: linear-gradient(180deg, #f3faff, #d9edff); }
:root[data-scheme="dark"] .cp-card { background: linear-gradient(180deg, #1b2f63, #14244d); border-color: rgba(150, 190, 255, 0.25); }
.cp-card:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(16, 48, 110, 0.16); }
.cp-card:has(.cp-input:checked) { border-color: #f0a92e; box-shadow: 0 0 0 3px rgba(240, 169, 46, 0.35), 0 10px 22px rgba(120, 70, 0, 0.18); }
.cp-card:has(.cp-input:checked)::after { content: "✓"; position: absolute; top: 6px; right: 8px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  font-size: 0.8rem; color: #fff; background: #f0a92e; }
.cp-card:has(.cp-input:focus-visible) { outline: 3px solid #2f7fe6; outline-offset: 2px; }
.cp-input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.cp-emoji { font-size: 1.8rem; line-height: 1; }
.cp-cats .cp-emoji { font-size: 2.2rem; }
.cp-label { font-size: 0.95rem; overflow-wrap: anywhere; }
.cp-consent { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 14px; background: rgba(240, 169, 46, 0.1); font-weight: 800; cursor: pointer; }
.cp-check { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: #f0a92e; }
.cp-privacy { display: flex; gap: 8px; align-items: flex-start; margin: 0; font-size: 0.85rem; color: var(--text-soft); font-weight: 600; }
.cp-privacy svg { flex: none; width: 18px; height: 18px; margin-top: 1px; }
.cp-status { margin: 0; min-height: 1.2em; display: flex; align-items: center; gap: 6px; font-weight: 800; color: #146b35; }
.cp-status:empty { display: none; }
.cp-status.is-error { color: #b3261e; }
.cp-status svg { width: 18px; height: 18px; flex: none; }
.cp-actions { display: flex; justify-content: center; }
.cp-save { min-height: 52px; min-width: min(280px, 100%); }
.cp-row { display: grid; gap: 10px; }
.cp-row-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.cp-row-label { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; }
.cp-row-label svg { width: 18px; height: 18px; }
.cp-row-value { flex: 1; min-width: 0; font-weight: 800; }
.cp-row-value.is-empty { color: var(--text-soft); font-weight: 700; }
.cp-later { display: flex; justify-content: center; margin-top: 6px; }
@media (prefers-reduced-motion: reduce) { .cp-card { transition: none; } .cp-card:hover { transform: none; } }

/* ================================================================ Xarita: o'tgan kun — qulf (2026-11-24) */
.wm-mound.st-missed .wm-badge { color: #6f7c96; }   /* o'tgan kun: qulf (kelmagan kun qulfidan xiraroq) */
/* Sovg'alar bo'limi: bola profili chaqiruvi + «yana sovg'a bor» (2026-11-24) */
.cp-callout { display: grid; gap: 10px; margin: 0 0 14px; padding: 14px 16px; border-radius: 20px; border: 2px solid rgba(240, 169, 46, 0.45);
  background: linear-gradient(180deg, #fffaf0, #fff1d6); box-shadow: 0 10px 24px rgba(120, 70, 0, 0.1); }
:root[data-scheme="dark"] .cp-callout { background: linear-gradient(180deg, #2a2440, #1c2147); border-color: rgba(255, 210, 120, 0.35); }
.cp-callout[hidden] { display: none; }
.cp-callout-head { display: flex; gap: 12px; align-items: flex-start; }
.cp-callout-ico { font-size: 2rem; line-height: 1; }
.cp-callout-t { margin: 0 0 2px; font-size: 1.15rem; font-weight: 900; }
.cp-callout-head p { margin: 0; font-weight: 700; color: var(--text-soft); }
.cp-callout > .btn { justify-self: start; min-height: 48px; }
.cp-callout-done { margin: 0; display: flex; gap: 8px; align-items: center; font-weight: 800; color: #146b35; }
.gx-more { color: #a1391f; }
:root[data-scheme="dark"] .gx-more { color: #ffb4a3; }
/* profil qadami: «Saqlash» tugmasi uzun shaklda ham ko'rinib turadi */
.gd[data-state="profile"] .cp-actions { position: sticky; bottom: -14px; z-index: 1; margin: 0 -16px -14px; padding: 10px 16px 14px;
  background: linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.97) 28%); }
:root[data-scheme="dark"] .gd[data-state="profile"] .cp-actions { background: linear-gradient(rgba(12, 28, 66, 0), rgba(12, 28, 66, 0.97) 28%); }
/* G'olibning darvozasi (2026-11-24): 🎁 darvozaning o'zida (telefonda tepadagi menyu ostida qolmaydi), «Bosing» pufagi, oltin halqa;
   bosilganda kamera darvozaga yaqinlashadi va sovg'a eshigi sahnasi shu darvozaning qulfini ochib boshlaydi. */
.wm-gate-tap { position: absolute; right: 100%; top: 52%; z-index: 5; translate: -2cqw -50%; display: flex; align-items: center; gap: 4px; padding: 5px 10px 5px 7px;
  border-radius: 14px; white-space: nowrap; background: #fff7e3; color: #1b2f6b; font-weight: 800; font-size: clamp(0.78rem, 1.1vw, 0.95rem); line-height: 1.1;
  box-shadow: 0 8px 18px rgba(24, 44, 110, 0.25); pointer-events: none; animation: wm-gate-tap 1.2s ease-in-out infinite; }
.wm-gate-tap b { color: #1849b8; }
.wm-gate-tap svg { width: 20px; height: 20px; color: #1849b8; flex: none; }
.wm-gate-tap::after { content: ""; position: absolute; right: -6px; top: 50%; width: 12px; height: 12px; transform: translateY(-50%) rotate(45deg); background: #fff7e3; border-radius: 2px; }
@keyframes wm-gate-tap { 50% { transform: translateX(-6px); } }
.wm-gate.has-gift .wm-gate-art::after { content: ""; position: absolute; left: 24%; top: 30%; width: 52%; height: 66%; border-radius: 50% 50% 8% 8%; pointer-events: none;
  box-shadow: 0 0 0 0 rgba(255, 209, 102, 0.75); animation: wm-gate-ring 1.8s ease-out infinite; }
@keyframes wm-gate-ring { 0% { box-shadow: 0 0 0 0 rgba(255, 209, 102, 0.75); } 100% { box-shadow: 0 0 0 7cqw rgba(255, 209, 102, 0); } }
.wm-gate.is-gift-go .wm-gate-tap, .wm-gate.is-gift-go .wm-gate-gift { opacity: 0; transition: opacity 0.2s ease; }
.wm.is-gift-zoom { overflow: hidden; }
.wm.is-gift-zoom .wm-scene { transform-origin: var(--zx, 50%) var(--zy, 20%); transform: scale(2.6); transition: transform 0.8s cubic-bezier(0.55, 0, 0.8, 0.25); }
.wm-zoom-flash { position: fixed; inset: 0; z-index: 400; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at var(--fx, 50%) var(--fy, 30%), rgba(255, 246, 220, 0.96) 0, rgba(255, 214, 120, 0.8) 10%, rgba(10, 20, 62, 0.97) 52%);
  animation: wm-zoom-flash 0.8s ease-in forwards; }
@keyframes wm-zoom-flash { 0%, 30% { opacity: 0; } 100% { opacity: 1; } }
/* Eshik sahnasi: xarita darvozasidan kelganda — «kamera» darvozaga yetib keladi (keyin qulf o'zi ochiladi) */
.gd.is-arrive { animation: gd-arrive 0.55s ease-out backwards; }
@keyframes gd-arrive { from { opacity: 0; } }
.gd.is-arrive .gd-stage { animation: gd-arrive-zoom 1s cubic-bezier(0.2, 0.8, 0.3, 1) backwards; }
@keyframes gd-arrive-zoom { from { transform: scale(1.45); } }
.gd-chev { font-style: normal; font-weight: 900; color: #f08a1c; font-size: clamp(0.6rem, 1.7vw, 0.95rem); letter-spacing: -1px; line-height: 1; }
@media (prefers-reduced-motion: reduce) { .wm-gate-tap, .wm-gate.has-gift .wm-gate-art::after { animation: none; } }
/* Yuqori menyu: «Reyting» (2026-11-24) — oltin tugma; tor ekranda faqat kubok ikonkasi (yozuv aria-label'da) */
:root:is([data-scheme], html) body.app .top-nav a.nav-rating, :root:is([data-scheme], html) body.app .top-nav a.nav-rating[aria-current="page"] {
  background: linear-gradient(180deg, #ffd977, #f0a92e); color: #4a2a00; box-shadow: 0 6px 16px rgba(160, 100, 0, 0.3);
}
@media (max-width: 560px) { .top-nav a.nav-rating { padding-left: 10px; padding-right: 10px; } .top-nav a.nav-rating .nav-full { display: none !important; } }
@media (max-width: 300px) { .top-nav a.nav-rating svg { display: inline !important; } }
/* Reyting: TOP-10 dan keyin bolaning o'z qatori (11-qator) */
.top10 .top-gap { list-style: none; text-align: center; color: var(--text-soft); font-weight: 900; letter-spacing: 4px; line-height: 1; padding: 2px 0; }
/* Telefon (≤430 px): uchta menyu tugmasi o'zbekcha/ruscha yozuvlar bilan sig'ishi uchun «Profil» ham faqat ikonka (nomi aria-label'da) */
@media (max-width: 430px) {
  .top-nav { gap: 6px; }
  .top-nav a.nav-profile { padding-left: 10px; padding-right: 10px; }
  .top-nav a.nav-profile .nav-full { display: none !important; }
}
/* ≤300 px: umumiy qoida ikonkalarni yashiradi — faqat-ikonka tugmalarda ikonka qoladi */
@media (max-width: 300px) { .top-nav a.nav-profile svg, .top-nav a.nav-rating svg { display: inline !important; } }
