/* Layout: uchi.ru student cabinet — yellow olympiad strip, white header, one centred 1080px column of 24–32px rounded blocks
   (marathon, banners, slider, lilac "school subjects" box, course grid) with floating mascot widgets;
   the task player is a full-screen illustrated scene under a coloured progress bar. One light theme, as on uchi.ru. */
:root {
  --bg: #F5F6F7;
  --paper: #FFFFFF;
  --ink: #2F2F45;
  --ink-2: rgba(47, 47, 69, .6);
  --text: rgba(9, 21, 38, .85);
  --v: #765FDE;
  --v-d: #5137C7;
  --v-l: #EAE6FF;
  --lilac: rgba(221, 215, 255, .9);
  --purple: #8A35ED;
  --sky: #00A8D9;
  --sun: #FFE27A;
  --chip: #DCE3FF;
  --chip-d: #BAC6F2;
  --pocket: #6252D9;
  --ok: #3CC37A;
  --ok-l: #E2F7EA;
  --bad: #FF6B6B;
  --bad-l: #FFE8E8;
  --gold: #FFC23D;
  --sh: 0 4px 8px rgba(57, 78, 127, .2);
  --sh-2: 0 8px 18px rgba(57, 78, 127, .16);
  --f: "Onest", "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-emoji: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; font: 400 16px/1.4 var(--f); color: var(--text); background: var(--bg); }
h1, h2, h3, h4 { text-wrap: balance; }
button { font: inherit; color: inherit; }
a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.ic { width: 22px; height: 22px; flex: none; }
.art { width: 1em; height: 1em; display: block; object-fit: contain; }
.emo { font-family: var(--f-emoji); line-height: 1; display: block; font-weight: 400; }
.mascot { display: block; width: 100%; height: auto; user-select: none; -webkit-user-drag: none; }
.sub { margin: 4px 0 0; color: var(--ink-2); }
.gem-dot { display: none; }

/* ---------- buttons, pills ---------- */
.btn-w, .btn-v, .btn-full, .btn-take, .btn-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; text-decoration: none; font-weight: 700; transition: transform .12s, filter .12s, box-shadow .12s; }
.btn-w { height: 44px; padding: 0 24px; border-radius: 16px; background: #fff; color: var(--ink); font-size: 16px; }
.btn-w.sm { height: 36px; padding: 0 16px; border-radius: 12px; font-size: 14px; }
.btn-v { height: 48px; padding: 0 28px; border-radius: 16px; background: var(--v); color: #fff; font-size: 18px; box-shadow: 0 4px 0 var(--v-d); }
.btn-v.big { height: 56px; text-transform: uppercase; letter-spacing: .04em; }
.btn-v.wide { width: 100%; }
.btn-v:active, .btn-take:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--v-d); }
.btn-w:hover, .btn-v:hover { filter: brightness(1.05); }
.btn-link { height: 40px; background: none; color: var(--v); }
.lang { display: inline-flex; gap: 2px; padding: 3px; height: 36px; border-radius: 12px; border: 0; background: #F0F1F5; cursor: pointer; font: 700 12px/1 var(--f); letter-spacing: .04em; }
.lang span { display: grid; place-items: center; min-width: 32px; border-radius: 9px; color: var(--ink-2); }
.lang span.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.egg { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.egg .art { width: 22px; height: 22px; }
.pill-v { display: inline-flex; align-items: center; justify-content: center; min-width: 96px; height: 28px; padding: 0 14px; border-radius: 10px; background: var(--v); color: #fff; font-size: 14px; font-weight: 700; }
.pill-v.done { background: var(--ok); }

/* ---------- promo strip & header ---------- */
.promo { background: var(--sun); }
.promo-in { max-width: 1080px; margin: 0 auto; padding: 6px 16px; display: flex; align-items: center; gap: 14px; min-height: 60px; }
.promo .mascot { width: 54px; flex: none; transform-origin: 50% 85%; }
.promo .mascot.roll-in { animation: roll-in 1s cubic-bezier(.2, .9, .3, 1.1) .2s both; }
.promo:hover .mascot { animation: nudge .7s ease-in-out; }
.promo p { margin: 0; display: grid; line-height: 1.25; min-width: 0; }
.promo b { color: var(--ink); font-size: 15px; }
.promo span { font-size: 13px; color: var(--ink-2); }
.promo .btn-w { margin-left: auto; flex: none; }
.hdr { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--paper); box-shadow: 0 1px 0 rgba(47, 47, 69, .08); }
.hdr-in { max-width: 1080px; margin: 0 auto; padding: 0 16px; height: 64px; display: flex; align-items: center; gap: 10px; }
.logo { font: 900 26px/1 var(--f); letter-spacing: -.035em; color: #232A6E; text-decoration: none; margin-right: 10px; white-space: nowrap; }
.logo span { color: var(--v); }
.hdr-ic { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; border-radius: 12px; cursor: pointer; }
.hdr-ic:hover { background: #F3F2FA; }
.hdr-ic .art { width: 34px; height: 34px; mix-blend-mode: multiply; }
.badge { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: #FF5C5C; color: #fff; font: 700 11px/18px var(--f); text-align: center; font-style: normal; box-shadow: 0 0 0 2px #fff; }
details.me { position: relative; }
details.me summary { list-style: none; display: flex; align-items: center; gap: 2px; cursor: pointer; padding: 2px 4px 2px 2px; border-radius: 24px; color: var(--ink-2); }
details.me summary::-webkit-details-marker { display: none; }
details.me summary:hover { background: #F3F2FA; }
.ava { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: #D9F4F1; flex: none; display: block; }
.ava .mascot { width: 100%; height: 100%; object-fit: cover; object-position: 50% 6%; transform: scale(1.5); transform-origin: 50% 0; }
.menu { position: absolute; left: 0; top: calc(100% + 8px); z-index: 30; width: 260px; display: grid; gap: 8px; padding: 14px; border-radius: 20px; background: #fff; box-shadow: var(--sh-2); }
.menu-me { display: flex; gap: 10px; align-items: center; padding-bottom: 8px; border-bottom: 1px solid #EEEEF4; }
.menu-me b { display: grid; color: var(--ink); line-height: 1.2; }
.menu-me small { font-weight: 400; color: var(--ink-2); }
.menu-h { margin: 4px 0 0; font-size: 13px; color: var(--ink-2); }
.menu-link { display: block; padding: 8px; border-radius: 10px; border: 0; background: none; text-align: left; text-decoration: none; cursor: pointer; color: var(--ink); }
.menu-link:hover { background: #F3F2FA; }
.grades { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.grades button { height: 40px; border-radius: 12px; border: 0; background: #F0F1F5; font-weight: 700; cursor: pointer; color: var(--ink); }
.grades button.on { background: var(--v); color: #fff; }
.hdr-r { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.cur { display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 12px 0 6px; border-radius: 12px; background: #F0F1F5; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.cur .art { width: 28px; height: 28px; }
.cur.gem { background: #3E2DA8; color: #fff; }
.btn-full { height: 36px; padding: 0 14px; border-radius: 12px; background: var(--v); color: #fff; font-size: 14px; }
.btn-full.on { background: linear-gradient(135deg, #FFC23D, #FF9F1C); color: #5A3A00; }
a.menu-me { text-decoration: none; border-radius: 12px; }
a.menu-me:hover { background: #F7F6FC; }
.btn-full .ic { width: 18px; height: 18px; }
@media (max-width: 860px) { .hdr-lang, .cur.crown { display: none; } .btn-full span { display: none; } .btn-full { padding: 0 10px; } }
@media (max-width: 560px) { .cur.gem { display: none; } .logo { font-size: 22px; margin-right: 0; } .hdr-in { gap: 4px; padding: 0 10px; } .promo .mascot { width: 44px; } .promo b { font-size: 13px; } .promo span { display: none; } }

/* ---------- dashboard ---------- */
.dash { max-width: 1080px; margin: 0 auto; padding: 24px 16px 150px; display: grid; gap: 24px; }
.mara { position: relative; display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 20px; min-height: 156px; padding: 18px 24px; border-radius: 32px; background: var(--sky); color: #fff; overflow: hidden; }
.mara h2 { margin: 0 0 14px; font: 700 30px/40px var(--f); }
.mara-pet { width: 116px; align-self: end; margin-bottom: -18px; }
.mara-board { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mara-board li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 4px; border-radius: 19px; background: rgba(0, 40, 80, .16); font-weight: 700; }
.mara-board li.me { background: #0C5D92; }
.mara-board .pos { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .22); font-size: 14px; }
.mara-board li.me .pos { background: #fff; color: #0C5D92; }
.mara-board .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* "which Zavrik are you": sharp cut-out characters animated in CSS (a scaled-up video looked blurry) */
.zavr { position: relative; min-height: 156px; padding: 28px; border-radius: 32px; background: radial-gradient(70% 150% at 78% 45%, #4469F2 0%, #2541C6 45%, #16207A 100%); color: #fff; display: grid; align-content: center; justify-items: start; gap: 16px; overflow: hidden; }
.zavr > h2, .zavr > .btn-w, .zavr > .zavr-egg { z-index: 2; }
.zv-cast { position: absolute; right: 100px; top: 12px; height: 125%; display: flex; pointer-events: none; }
.zv-c { height: 100%; margin-left: -30px; transform-origin: 50% 70%; animation: zv-bob 4.2s ease-in-out infinite; }
.zv-c:first-child { margin-left: 0; }
.zv-c .mascot { width: auto; height: 100%; }
.zv-c.c2 { z-index: 1; animation: zv-sway 4.2s ease-in-out -1.4s infinite; }
.zv-c.c3 { animation-delay: -2.8s; }
.zv-item { position: absolute; z-index: 1; width: 44px; height: 44px; filter: drop-shadow(0 4px 6px rgba(0, 0, 20, .35)); animation: zv-float 5.5s ease-in-out infinite; }
.zv-item.i1 { right: 545px; top: 24px; }
.zv-item.i2 { right: 60px; bottom: 16px; width: 36px; height: 36px; animation-delay: -2.5s; }
.zv-sky i { position: absolute; width: 12px; height: 12px; background: #fff; clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); animation: zv-tw 3.6s ease-in-out infinite; }
.zv-sky i:nth-child(1) { left: 48%; top: 22%; } .zv-sky i:nth-child(2) { left: 55%; top: 70%; width: 8px; height: 8px; animation-delay: -1s; }
.zv-sky i:nth-child(3) { left: 63%; top: 14%; width: 9px; height: 9px; animation-delay: -2.2s; } .zv-sky i:nth-child(4) { right: 26%; top: 8%; animation-delay: -.6s; }
.zv-sky i:nth-child(5) { right: 7%; top: 46%; width: 10px; height: 10px; animation-delay: -1.7s; } .zv-sky i:nth-child(6) { right: 18%; bottom: 10%; width: 7px; height: 7px; animation-delay: -2.9s; }
.zv-sky i:nth-child(7) { left: 42%; bottom: 16%; width: 7px; height: 7px; animation-delay: -1.3s; }
@keyframes zv-bob { 50% { transform: translateY(-5px); } }
@keyframes zv-sway { 0%, 100% { transform: rotate(-1.2deg); } 50% { transform: translateY(-5px) rotate(1.2deg); } }
@keyframes zv-float { 50% { transform: translateY(-7px) rotate(6deg); } }
@keyframes zv-tw { 0%, 100% { opacity: .2; transform: scale(.6); } 50% { opacity: .95; transform: scale(1.15) rotate(25deg); } }
.zavr > h2, .zavr > .btn-w { position: relative; }
.zavr h2 { margin: 0; font: 700 40px/46px var(--f); max-width: 56%; }
.zavr-egg { position: absolute; top: 14px; right: 16px; padding: 4px 12px; border-radius: 16px; background: rgba(255, 255, 255, .92); color: var(--ink); }
.slider { position: relative; }
/* three cards side by side, no scrolling: the chest gets the wide column */
.slides { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.slide { position: relative; min-height: 320px; padding: 24px; border-radius: 32px; color: #fff; overflow: hidden; display: grid; align-content: start; justify-items: start; gap: 14px; }
.slide h3 { margin: 0; font: 700 24px/1.15 var(--f); }
.slide > .mascot { position: absolute; right: 4px; bottom: -8px; width: 64%; max-width: 210px; }
.chest-slide { background: radial-gradient(120% 120% at 80% 0%, #6C4BE0 0%, #34238E 70%); }
.cs-top { display: flex; align-items: flex-start; gap: 10px; width: 100%; }
.cs-bubble { margin: 0; padding: 12px 16px; border-radius: 18px 18px 18px 4px; background: #fff; color: var(--ink); font-weight: 700; font-size: 17px; max-width: 70%; box-shadow: var(--sh-2); }
.cs-days { margin-left: auto; display: inline-flex; gap: 6px; align-items: center; padding: 6px 12px; border-radius: 12px; background: rgba(255, 255, 255, .16); font-weight: 700; font-size: 14px; white-space: nowrap; }
.cs-days .ic { width: 18px; height: 18px; }
.cs-mid { display: flex; align-items: center; gap: 12px; width: 100%; }
.cs-mid .mascot { width: 150px; flex: none; }
.cs-keys { display: flex; gap: 8px; }
.cs-keys span { width: 54px; height: 54px; border-radius: 16px; background: rgba(255, 255, 255, .14); display: grid; place-items: center; }
.cs-keys .art { width: 40px; height: 40px; filter: grayscale(1) brightness(1.4); opacity: .45; }
.cs-keys .got .art { filter: none; opacity: 1; }
.cs-tasks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; width: 100%; }
.cs-tasks a { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 16px; background: rgba(255, 255, 255, .14); text-decoration: none; font-weight: 700; font-size: 14px; line-height: 1.2; }
.cs-tasks b { display: inline-flex; align-items: center; gap: 2px; }
.cs-tasks b .art { width: 22px; height: 22px; }
.cs-tasks .got a { background: rgba(60, 195, 122, .35); }
.cs-tasks .ok { width: 26px; height: 26px; border-radius: 50%; background: var(--ok); display: grid; place-items: center; }
.cs-tasks .ok .ic { width: 16px; height: 16px; }
.gem-slide { background: radial-gradient(120% 120% at 20% 0%, #9D5CFF, #4A22B8 75%); }
.gem-slide .tag { display: inline-flex; gap: 6px; align-items: center; padding: 6px 14px 6px 8px; border-radius: 16px; background: rgba(255, 255, 255, .18); font-weight: 700; }
.gem-slide .tag .art { width: 26px; height: 26px; }
.pet-slide { background: radial-gradient(120% 120% at 20% 0%, #FFB45A, #FF6B6B 80%); }
.subjects-box, .courses-box { border-radius: 24px; }
.subjects-box { background: var(--lilac); padding: 24px; }
.subjects-box h1, .courses-box h1 { margin: 0; font: 700 40px/46px var(--f); color: var(--text); }
.subjects-box .sub { margin-bottom: 22px; }
.subj-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.subj-big { position: relative; grid-row: span 2; aspect-ratio: 1; border-radius: 32px; overflow: hidden; text-decoration: none; color: #fff; box-shadow: var(--sh); background: radial-gradient(circle at 65% 35%, #9E86FF, #5B3FD6 70%); }
.subj-big.s-uz { background: radial-gradient(circle at 65% 35%, #C08BFF, #7B4FD6 70%); }
.subj-big.s-ru { background: radial-gradient(circle at 65% 35%, #FF9AD0, #A3478C 72%); }
.subj-big.s-en { background: radial-gradient(circle at 65% 35%, #7FD6FF, #1E88D9 72%); }
.big-art { position: absolute; inset: 6% 6% 18% 18%; display: grid; place-items: center; }
.big-art .mascot { width: auto; height: 100%; max-width: 100%; object-fit: contain; }
.big-play { position: absolute; right: 24px; bottom: 22px; width: 84px; height: 84px; border-radius: 50%; background: #fff; color: var(--v); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(30, 20, 90, .35); transition: transform .15s; }
.big-play .ic { width: 44px; height: 44px; margin-left: 6px; }
.subj-big:hover .big-play { transform: scale(1.07); }
.big-txt { position: absolute; left: 24px; right: 124px; bottom: 20px; display: grid; gap: 4px; text-shadow: 0 2px 10px rgba(0, 0, 0, .25); }
.big-txt b { font: 700 40px/46px var(--f); }
.big-txt small { font-size: 15px; font-weight: 600; opacity: .95; }
.subj-small { position: relative; aspect-ratio: 1; border-radius: 32px; background: var(--purple); color: #fff; text-decoration: none; display: grid; justify-items: center; align-content: start; gap: 8px; padding: 16px 12px 0; overflow: hidden; box-shadow: var(--sh); transition: transform .15s; }
.subj-small:hover, .course:hover, .info:hover { transform: translateY(-3px); }
.subj-small b { font-size: 18px; line-height: 24px; text-align: center; }
.subj-small .prog, .subj-small .pill-v { position: relative; z-index: 1; }
.subj-small .prog { min-width: 70%; padding: 2px 14px; border-radius: 100px; background: rgba(0, 0, 0, .2); font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.st-art { position: absolute; left: 12%; right: 12%; bottom: -4%; height: 62%; display: grid; place-items: end center; }
.st-art .mascot { width: auto; height: 100%; object-fit: contain; }
.hw-tile { background: radial-gradient(circle at 60% 30%, #FFC56B, #FF8A3D 75%); }
.hw-tile .pill-v { background: #fff; color: #D2601A; }
@media (max-width: 860px) {
  .subj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .subj-big { grid-column: span 2; grid-row: auto; aspect-ratio: 16 / 11; }
}
.courses-box { padding: 4px 0 0; }
.courses-box h1 { margin-bottom: 20px; }
.course-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.course, .info { position: relative; aspect-ratio: 1; border-radius: 32px; border: 0; overflow: hidden; cursor: pointer; box-shadow: var(--sh); transition: transform .15s; text-decoration: none; }
.course { background: #ddd center / cover no-repeat; }
.course b { position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 14px 18px; background: linear-gradient(transparent, rgba(20, 10, 60, .35)); color: #fff; font: 800 clamp(18px, 2.2vw, 26px)/1.05 var(--f); text-transform: uppercase; letter-spacing: .01em; text-align: center; text-shadow: 0 2px 0 rgba(0, 0, 0, .3); }
.info { background: #fff; display: grid; grid-template-rows: minmax(0, 1fr) auto; padding: 0; color: var(--ink); }
.info-img { display: block; min-height: 0; overflow: hidden; }
.info-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.info:hover .info-img img { transform: scale(1.04); }
.info b { display: grid; place-items: center; min-height: 66px; padding: 8px 12px 12px; font-size: 18px; line-height: 1.2; text-align: center; }
.crown-dot { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #F2A900; display: grid; place-items: center; box-shadow: var(--sh-2); }
.crown-dot .ic { width: 20px; height: 20px; }
@media (max-width: 1000px) { .zavr h2 { font-size: 32px; line-height: 1.12; max-width: 46%; } .zv-c.c1, .zv-item.i1 { display: none; } .zv-cast { right: 70px; } }
@media (max-width: 860px) { .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (max-width: 900px) { .slides { grid-template-columns: repeat(2, minmax(0, 1fr)); } .chest-slide { grid-column: 1 / -1; } .gem-slide > *:not(.mascot), .pet-slide > *:not(.mascot) { max-width: 62%; } .slide > .mascot { width: 42%; max-width: 190px; } }
@media (max-width: 600px) { .slides { grid-template-columns: minmax(0, 1fr); } .gem-slide, .pet-slide { min-height: 210px; } }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding: 8px 0; color: var(--ink-2); font-size: 13px; }
.page .foot { margin-top: 40px; }
.widgets { position: fixed; bottom: 14px; z-index: 15; display: grid; gap: 12px; }
.widgets.left { left: 14px; }
.widgets.right { right: 14px; justify-items: end; }
.widget { display: grid; justify-items: center; border: 0; background: none; cursor: pointer; padding: 0; text-decoration: none; font: inherit; }
/* uchi.ru-style helpers: a white ring around a looping clip of the hero on its own colour */
.w-c { position: relative; display: block; width: 108px; height: 108px; border-radius: 50%; border: 6px solid #fff; background: #8EC5FF; box-shadow: var(--sh-2); overflow: hidden; transition: transform .15s; }
.w-hw .w-c { background: #8CBBF5; }
.w-pet .w-c { background: #9CD4E8; }
.w-zavr .w-c { background: #FAD26A; }
.widget:hover .w-c { transform: scale(1.06); }
.w-c .w-vid { display: block; width: 100%; height: 100%; object-fit: cover; }
.w-l { position: relative; z-index: 1; margin-top: -16px; padding: 4px 12px; border-radius: 10px; background: #fff; box-shadow: var(--sh-2); font-size: 14px; font-weight: 700; color: var(--text); white-space: nowrap; }
.help { width: 52px; height: 52px; border-radius: 50%; border: 0; background: #2FBF9F; color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: var(--sh-2); }
.help .ic { width: 28px; height: 28px; }
/* narrower than content + both widget columns: compact circles without labels */
@media (max-width: 1240px) { .w-c { width: 72px; height: 72px; border-width: 4px; } .w-l { display: none; } .widgets { gap: 8px; } .help { width: 44px; height: 44px; } }
/* phones: the helpers shrink into one low row at the bottom edge */
@media (max-width: 600px) { .widgets { grid-auto-flow: column; align-items: end; gap: 6px; bottom: 10px; } .widgets.left { left: 10px; } .widgets.right { right: 10px; } .w-c { width: 56px; height: 56px; border-width: 3px; } .page { padding-bottom: 96px; } .course b { font-size: clamp(13px, 3.6vw, 26px); padding-inline: 8px; overflow-wrap: anywhere; } }
@media (max-width: 600px) {
  .dash { padding-top: 16px; gap: 16px; }
  .mara { grid-template-columns: minmax(0, 1fr) auto; padding: 18px; }
  .mara-board { grid-column: 1 / -1; }
  .mara-pet { width: 88px; margin: 0; align-self: start; }
  .zavr { min-height: 170px; padding: 20px; }
  .zv-c.c3, .zv-item.i2 { display: none; }
  .zv-cast { right: 4px; top: 46px; height: 118%; }
  .zavr h2 { font-size: 28px; line-height: 1.1; max-width: 60%; }
  .slide { padding: 18px; }
  .slide h3 { font-size: 22px; }
  .subjects-box { padding: 16px; }
  .subjects-box h1, .courses-box h1 { font-size: 28px; line-height: 1.15; }
  .big-txt b { font-size: 28px; line-height: 1.1; }
  .big-play { width: 60px; height: 60px; right: 16px; bottom: 16px; } .big-play .ic { width: 30px; height: 30px; }
  .big-art { inset: 4% 0 4% 44%; } .big-txt { right: 48%; } .big-txt small { font-size: 13px; }
  .st-art { height: 56%; }
  .subj-small { border-radius: 24px; }
  .subj-small b { font-size: 14px; line-height: 18px; }
  .course, .info { border-radius: 24px; }
  .info b { font-size: 15px; }
  .cs-mid .mascot { width: 110px; }
  .cs-keys span { width: 44px; height: 44px; }
  .cs-tasks a { font-size: 13px; gap: 6px; padding: 8px 10px; }
}

/* ---------- copybook block (husnixat): lined school paper, highlighted on the dashboard ---------- */
.write-box { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; align-items: center; padding: 28px 28px 28px 56px; border-radius: 32px; overflow: hidden; box-shadow: var(--sh), inset 0 0 0 3px #FFD86B;
  background: linear-gradient(90deg, transparent 38px, #FF9AA8 38px, #FF9AA8 40px, transparent 40px), repeating-linear-gradient(180deg, #FFFCF0 0 35px, #D9E2FF 35px 37px); }
.wb-l { position: relative; z-index: 1; display: grid; gap: 10px; justify-items: start; }
.wb-tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 6px; border-radius: 12px; background: #FFE27A; color: var(--ink); font-weight: 700; font-size: 14px; }
.wb-tag .art { width: 26px; height: 26px; mix-blend-mode: multiply; }
.write-box h2 { margin: 0; font: 700 34px/1.1 var(--f); color: var(--ink); }
.write-box p { margin: 0; color: var(--ink-2); max-width: 40ch; }
.wb-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 6px; }
.wb-cta span { font-size: 13px; color: var(--ink-2); }
.wb-cards { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-right: 150px; }
.wb-card { position: relative; display: grid; justify-items: center; gap: 6px; padding: 14px 8px 12px; border-radius: 20px; background: #fff; text-decoration: none; color: var(--ink); box-shadow: var(--sh-2); transition: transform .15s; }
.wb-card:hover { transform: translateY(-3px); }
.wb-card b { font-size: 13px; text-align: center; line-height: 1.2; }
.wb-glyph { width: 100%; height: 64px; display: grid; place-items: center; border-radius: 12px; white-space: nowrap; font: 800 28px/1 var(--f); color: #F1EEFF; -webkit-text-stroke: 2px var(--v); letter-spacing: .04em;
  background: linear-gradient(180deg, transparent 15px, #D9E2FF 15px 17px, transparent 17px 31px, #E3E8FF 31px 33px, transparent 33px 47px, #A9B8F5 47px 49px, transparent 49px); }
.wb-card.done .wb-glyph { -webkit-text-stroke-color: var(--ok); }
.wb-card .badge-c { top: -10px; right: -10px; width: 30px; height: 30px; }
.wb-card .badge-c .ic { width: 16px; height: 16px; }
.wb-art { position: absolute; right: 8px; bottom: -6px; width: 200px; }
@media (max-width: 900px) {
  .write-box { grid-template-columns: minmax(0, 1fr); padding: 22px 18px 22px 52px; }
  .wb-cards { margin-right: 0; }
  .wb-art { width: 120px; top: 8px; bottom: auto; right: 4px; }
  .write-box h2 { font-size: 26px; padding-right: 110px; }
  .write-box p { padding-right: 90px; }
}
.write-chain { margin: 8px 0 8px -16px; padding: 4px 16px 20px 22px; border-radius: 24px; box-shadow: inset 0 0 0 3px #FFD86B;
  background: linear-gradient(90deg, transparent 10px, #FF9AA8 10px, #FF9AA8 12px, transparent 12px), repeating-linear-gradient(180deg, #FFFCF0 0 33px, #DFE6FF 33px 35px); }
.chain h4 { display: flex; align-items: center; gap: 8px; }
.chain h4 .art { width: 30px; height: 30px; mix-blend-mode: multiply; }

/* ---------- inner pages ---------- */
.page { max-width: 1080px; margin: 0 auto; padding: 24px 16px 60px; }
.ph { display: flex; align-items: center; gap: 16px; }
.ph h1 { margin: 0; font: 700 40px/46px var(--f); color: var(--ink); min-width: 0; overflow-wrap: break-word; }
.back-c { width: 48px; height: 48px; flex: none; border-radius: 50%; background: #fff; box-shadow: var(--sh-2); display: grid; place-items: center; color: var(--ink); }
.ph-count { flex: none; padding: 4px 14px; border-radius: 100px; background: var(--v-l); color: var(--v-d); font-weight: 700; font-variant-numeric: tabular-nums; }
.ph-art { margin-left: auto; width: 120px; flex: none; }
.page-sub { margin: 8px 0 0 64px; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 22px 0 28px; }
.tab { height: 40px; padding: 0 16px; border-radius: 100px; border: 2px solid transparent; background: #fff; color: var(--ink); font-size: 16px; cursor: pointer; }
.tab.on { border-color: var(--v-d); color: var(--v); }
.rail { position: relative; padding-left: 40px; }
.rail::before { content: ""; position: absolute; left: 10px; top: 6px; bottom: 6px; width: 4px; border-radius: 2px; background: #E1E1EA; }
.rail h3 { margin: 0; font: 700 24px/30px var(--f); color: var(--ink-2); }
.chain h4 { margin: 28px 0 16px; font: 700 20px/26px var(--f); color: var(--ink); }
.lessons { display: grid; grid-template-columns: repeat(auto-fill, 120px); gap: 24px; }
.les { width: 120px; display: grid; align-content: start; gap: 8px; text-decoration: none; color: #222; }
.les-thumb { position: relative; width: 120px; height: 120px; border-radius: 28px; border: 5px solid var(--v); background: #fff; display: grid; place-items: center; transition: transform .15s; }
a.les:hover .les-thumb { transform: translateY(-3px); }
.les-img { width: 96px; height: 96px; object-fit: contain; mix-blend-mode: multiply; }
.s-uz .les-thumb, .s-tales .les-thumb { background: #F3EDFF; } .s-math .les-thumb, .s-abacus .les-thumb, .s-olymp .les-thumb { background: #EEF0FF; }
.s-ru .les-thumb, .s-money .les-thumb { background: #FFEFF7; } .s-en .les-thumb, .s-code .les-thumb { background: #EAF6FF; } .s-chess .les-thumb { background: #E6F6F4; }
.les.secret .les-thumb { background: transparent; }
.les-card { width: 100%; height: 100%; object-fit: cover; border-radius: 22px; }
.badge-c.crown { background: #FFC23D; color: #fff; box-shadow: var(--sh-2); }
.badge-c.crown .ic { width: 20px; height: 20px; }
.les.pro .les-thumb { border-color: #FFC23D; }
.les.locked .les-thumb { border-color: rgba(47, 47, 69, .6); }
.les.locked .les-img { filter: saturate(0); opacity: .75; }
.les.done .les-thumb { border-color: var(--ok); }
.les.next .les-thumb { box-shadow: 0 8px 20px rgba(118, 95, 222, .35); }
.badge-c { position: absolute; top: -12px; right: -12px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; }
.badge-c.play { background: var(--v); color: #fff; }
.badge-c.play .ic { width: 20px; height: 20px; margin-left: 2px; }
.badge-c.lock { background: #fff; color: rgba(47, 47, 69, .6); box-shadow: var(--sh-2); }
.badge-c.lock .ic { width: 18px; height: 18px; }
.badge-c.ok { background: var(--ok); color: #fff; }
.les-pet { position: absolute; left: -18px; bottom: -12px; width: 52px; animation: bob 2.6s ease-in-out infinite; }
.les-t { font-size: 14px; line-height: 20px; }
.les-glyph { width: 100%; height: 100%; display: grid; place-items: center; border-radius: 22px; white-space: nowrap; font: 800 30px/1 var(--f); color: #F1EEFF; -webkit-text-stroke: 2px var(--v);
  background: linear-gradient(180deg, transparent 30px, #D9E2FF 30px 32px, transparent 32px 52px, #E3E8FF 52px 54px, transparent 54px 74px, #A9B8F5 74px 76px, transparent 76px); }
.les.done .les-glyph { -webkit-text-stroke-color: var(--ok); }
.les-s { font-size: 12px; color: var(--ink-2); margin-top: -6px; }
.les.secret .les-thumb { border: 0; background: transparent; }
.les.secret.open .les-thumb { background: #fff; border: 4px solid var(--gold); }
.les.secret .les-img { width: 112px; height: 112px; }
.les.secret:not(.open) .les-img { filter: grayscale(1) brightness(1.05); }
.les.secret.open .les-img { animation: pop .5s; }
@media (max-width: 600px) {
  .ph h1 { font-size: 28px; line-height: 1.15; }
  .ph-art { display: none; }
  .ph { gap: 12px; flex-wrap: wrap; }
  .rail { padding-left: 26px; }
  .rail::before { left: 4px; }
  .lessons { grid-template-columns: repeat(auto-fill, 96px); gap: 18px 16px; }
  .les, .les-thumb { width: 96px; }
  .les-thumb { height: 96px; border-radius: 24px; border-width: 4px; }
  .les-img { width: 76px; height: 76px; }
  .les.secret .les-img { width: 92px; height: 92px; }
  .page-sub { margin-left: 0; }
}
.hw-card { margin-top: 22px; padding: 20px 24px 24px; border-radius: 32px; border: 3px solid var(--v); background: #fff; display: grid; gap: 16px; }
.hw-left { margin: 0; display: flex; gap: 6px; align-items: center; color: var(--ink-2); }
.hw-left .ic { width: 18px; height: 18px; }
.hw-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: var(--ink); }
.hw-head b { font-size: 18px; }
.hw-ic { width: 40px; height: 40px; object-fit: contain; }
.hw-bar { flex: 1 1 140px; height: 12px; border-radius: 6px; background: #ECECF2; overflow: hidden; }
.hw-bar i { display: block; height: 100%; border-radius: 6px; background: var(--v); }
.hw-bar.full i { width: 100%; background: var(--ok); }
.hw-ok { display: inline-flex; gap: 6px; align-items: center; color: var(--ok); font-weight: 700; }
.h2 { margin: 36px 0 14px; font: 700 28px/1.2 var(--f); color: var(--ink); display: flex; align-items: center; gap: 8px; }
.h2 .ic { color: var(--ink-2); }
.hw-past { display: grid; gap: 12px; padding: 18px 22px; margin-bottom: 12px; border-radius: 24px; background: #fff; }
.hw-past div { display: flex; justify-content: space-between; gap: 12px; color: var(--ink); }
.hw-past span { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.stickers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 22px 0 18px; }
@media (max-width: 760px) { .stickers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
.sticker { display: grid; gap: 6px; padding: 10px 10px 14px; border: 0; border-radius: 26px; background: #fff; text-align: center; box-shadow: var(--sh-2); cursor: pointer; font: inherit; transition: transform .15s; }
.sticker:hover { transform: translateY(-3px) rotate(-1deg); }
.st-img { position: relative; display: block; aspect-ratio: 1; border-radius: 20px; overflow: hidden; }
.st-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sticker:not(.got) .st-img img { filter: grayscale(1) blur(3px) brightness(1.1); opacity: .45; }
.st-lock { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(47, 47, 69, .55); }
.st-lock .ic { width: 44px; height: 44px; }
.sticker b { font-size: 17px; color: var(--ink); }
.sticker > span:last-child { font-size: 14px; color: var(--ink-2); }
.sticker.got { box-shadow: inset 0 0 0 4px var(--gold), var(--sh-2); }
.sticker.got > span:last-child { color: var(--v); font-weight: 700; }
.st-modal .st-big { display: block; width: min(320px, 100%); aspect-ratio: 1; margin: 0 auto; border-radius: 28px; overflow: hidden; box-shadow: var(--sh-2); }
.st-modal .st-big img { width: 100%; height: 100%; object-fit: cover; display: block; }
.st-modal.closed .st-big img { filter: grayscale(1) blur(4px); opacity: .5; }

/* ---------- login ---------- */
.login { min-height: 100vh; display: grid; justify-items: center; align-content: start; padding: 16px 16px 40px; background: radial-gradient(120% 70% at 50% 0%, #E3DCFF 0%, #F5F6F7 70%); }
.login-top { width: 100%; max-width: 1080px; display: flex; align-items: center; gap: 10px; }
.login-top .logo { margin-right: auto; }
.pill-demo { padding: 6px 12px; border-radius: 12px; background: #fff; color: var(--v-d); font-weight: 700; font-size: 13px; }
.login .lang { background: #fff; }
.login-hero { width: min(760px, 100%); aspect-ratio: 16 / 9; margin-top: 12px; border-radius: 32px; background: #fff; overflow: hidden; box-shadow: var(--sh-2); }
.login-v { display: block; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.login-card { position: relative; width: min(460px, 100%); margin-top: -48px; padding: 28px; border-radius: 32px; background: #fff; box-shadow: var(--sh-2); display: grid; gap: 12px; }
.login-card h1 { margin: 0; font: 700 28px/1.15 var(--f); color: var(--ink); }
.login-card .sub { margin: -4px 0 6px; }
.login-card label, .login-card .lbl { margin: 0; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.login-card input { height: 52px; padding: 0 16px; border-radius: 16px; border: 2px solid #E3E1F0; font: 600 18px var(--f); color: var(--ink); background: #fff; }
.login-card input:focus { outline: none; border-color: var(--v); }
.grades.big button { height: 52px; font-size: 15px; }
.login-card .btn-v { margin-top: 6px; }
.login-subj { margin: 4px 0 0; text-align: center; font-size: 13px; color: var(--ink-2); }

/* ---------- task player ---------- */
.player { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; overflow-y: auto; background: #EDE9FF center bottom / cover no-repeat; padding-bottom: env(safe-area-inset-bottom, 0px); }
.ptop { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 12px; padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 10px; background: var(--bar); color: #fff; }
.p-back { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; color: #fff; }
.p-back:hover { background: rgba(255, 255, 255, .14); }
.ptop .egg { height: 32px; padding: 0 10px; border-radius: 16px; background: rgba(0, 0, 0, .22); }
.p-prog { position: relative; flex: 1; min-width: 90px; height: 22px; border-radius: 11px; background: rgba(0, 0, 0, .25); overflow: hidden; }
.p-fill { position: absolute; inset: 0 auto 0 0; border-radius: 11px; background: linear-gradient(90deg, #FFD15C, #FFA43B); transition: width .45s; }
.p-dots { position: absolute; inset: 0; display: flex; justify-content: space-around; align-items: center; }
.p-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .55); }
.p-dots i.cur { width: 12px; height: 12px; background: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .3); }
.p-gem .art { width: 30px; height: 30px; }
.p-rate { display: flex; align-items: center; gap: 2px; font-weight: 700; font-size: 15px; white-space: nowrap; }
.p-rate span { margin-right: 6px; }
.p-rate button { width: 38px; height: 38px; border: 0; border-radius: 50%; background: none; font-size: 26px; line-height: 1; cursor: pointer; font-family: var(--f-emoji); transition: transform .12s; }
.p-rate button:hover, .p-rate button.on { transform: scale(1.18); }
.p-mute { width: 40px; height: 40px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .14); color: #fff; display: grid; place-items: center; cursor: pointer; }
@media (max-width: 760px) { .p-rate span, .p-gem, .p-rew { display: none; } }
@media (max-width: 480px) { .p-rate { display: none; } .ptop { gap: 8px; padding-inline: 10px; } }
.stage { position: relative; z-index: 1; flex: 1; display: grid; justify-items: center; align-content: start; padding: 26px 16px 190px; }
.panel { position: relative; width: min(820px, 100%); display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 28px; border-radius: 32px; background: rgba(255, 255, 255, .97); box-shadow: 0 12px 40px rgba(40, 30, 110, .18); }
.panel.in { animation: rise .35s cubic-bezier(.2, 1.2, .4, 1); }
@media (max-width: 520px) { .panel { padding: 20px 14px; gap: 16px; border-radius: 26px; } }
.q { display: flex; align-items: center; justify-content: center; gap: 10px; text-align: center; }
.q h2 { margin: 0; font: 700 clamp(19px, 2.6vw, 24px)/1.3 var(--f); color: var(--ink); }
.q-sub { margin: 2px 0 0; font-size: 14px; color: var(--ink-2); }
.say, .big-say { flex: none; border: 0; border-radius: 50%; background: var(--v-l); color: var(--v); display: grid; place-items: center; cursor: pointer; }
.say { width: 42px; height: 42px; }
.big-say { width: 112px; height: 112px; background: var(--v); color: #fff; box-shadow: 0 6px 0 var(--v-d); animation: pulse 1.8s infinite; }
.big-say .ic { width: 52px; height: 52px; }
.vis { display: grid; justify-items: center; gap: 14px; min-width: 0; }
.hero-pic { display: grid; place-items: center; }
.hero-pic > .art { width: 150px; height: 150px; mix-blend-mode: multiply; }
.hero-pic > .emo { font-size: 110px; }
.hero-pic > svg { width: 150px; height: 150px; }
.hero-pic.wide { width: 100%; }
.hero-pic.wide > svg { width: min(100%, 540px); height: 210px; }
.hero-pic.chart > svg { height: 270px; }
.hero-pic.wide > svg.vis-sticks { height: 150px; }
.cap { margin: 0; font-weight: 700; color: var(--ink-2); font-size: 14px; }
.vis-clock { width: 210px; height: 210px; }
.notes { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.vis-note { width: 150px; height: 74px; }
.heap { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 8px; max-width: 600px; }
.heap > span { position: relative; display: block; }
.heap .art { width: 64px; height: 64px; mix-blend-mode: multiply; }
.heap .emo { font-size: 52px; }
.heap .gone { opacity: .35; }
.heap .gone::after { content: ""; position: absolute; left: -4px; right: -4px; top: 50%; height: 5px; border-radius: 3px; background: var(--bad); transform: rotate(-35deg); }
.eq { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; }
.eq .heap { max-width: 300px; }
.eq .heap .art { width: 56px; height: 56px; }
.op { font: 800 40px var(--f); color: var(--v); }
.plates { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.plate { width: 176px; min-height: 124px; padding: 20px 16px; border-radius: 50%; display: flex; flex-wrap: wrap; justify-content: center; align-content: center; gap: 0; background: radial-gradient(circle, #FFFDF6 56%, #8FD3E8 57%, #8FD3E8 63%, #3A6FC9 64%); }
.plate .art { width: 42px; height: 42px; mix-blend-mode: multiply; }
.cmp { display: flex; align-items: center; gap: 16px; font: 800 clamp(38px, 6vw, 54px)/1 var(--f); color: var(--ink); }
.cmp .arr { color: var(--ink-2); }
.chain-nums { display: flex; }
.chain { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.rail .chain { display: block; }
.chain > span { min-width: 1.6em; height: 1.35em; display: grid; place-items: center; padding: 0 .2em; border-radius: 14px; background: #F2F1FA; }
.word { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; font: 800 clamp(30px, 5vw, 42px)/1.2 var(--f); letter-spacing: .03em; color: var(--ink); }
.sentence { font: 700 clamp(20px, 2.6vw, 26px)/1.5 var(--f); text-align: center; color: var(--ink); }
.proverb { font-style: italic; }
.reading { max-width: 62ch; padding: 18px 22px; border-radius: 20px; background: #F4F2FF; font: 500 18px/1.65 var(--f); color: var(--ink); }
.ask { margin: 0; font: 700 20px/1.3 var(--f); text-align: center; color: var(--ink); }
.story { display: flex; align-items: center; gap: 18px; max-width: 680px; padding: 16px 20px; border-radius: 20px; background: #F4F2FF; }
.story-pic { flex: none; }
.story-pic .art { width: 84px; height: 84px; mix-blend-mode: multiply; }
.story-pic .emo { font-size: 64px; }
.story p { margin: 0; font: 600 19px/1.5 var(--f); color: var(--ink); }
@media (max-width: 520px) { .story { flex-direction: column; text-align: center; } .story p { font-size: 17px; } }
.abc { display: inline-block; font: 700 15px/1.8 var(--f); letter-spacing: .02em; }
.hl { color: #FF5C5C; }
.frac { display: inline-grid; justify-items: center; font: 800 1em/1 var(--f); vertical-align: middle; }
.frac b:first-child { border-bottom: 3px solid currentColor; padding: 0 .15em .08em; }
.frac b:last-child { padding-top: .08em; }
.slot { display: inline-grid; place-items: center; min-width: 1.6em; height: 1.35em; padding: 0 .25em; border-radius: 14px; font-style: normal; background: #fff; color: var(--v); box-shadow: inset 0 0 0 3px var(--v); vertical-align: middle; transition: background .15s; }
.slot.filled { color: var(--ink); }
.slot.right { background: var(--ok); color: #fff; box-shadow: none; animation: pop .35s; }
.slot.wrong { background: var(--bad-l); color: var(--bad); box-shadow: inset 0 0 0 3px var(--bad); animation: shake .4s; }
.opts { display: grid; gap: 16px 12px; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); padding-top: 6px; }
.cols-1 { --cols: 1; } .cols-2 { --cols: 2; } .cols-3 { --cols: 3; } .cols-4 { --cols: 4; }
@media (max-width: 520px) { .opts.cols-3:not(.big), .opts.cols-4:not(.big) { --cols: 2; } }
.opt { position: relative; min-height: 64px; padding: 14px 16px; border-radius: 12px; border: 0; background: var(--chip); color: var(--ink); font: 700 21px/1.25 var(--f); cursor: pointer; box-shadow: 0 3px 0 var(--chip-d); transition: transform .1s, background .15s, opacity .2s; overflow-wrap: anywhere; }
.opt:hover:not(:disabled) { background: #CFD8FF; }
.opt:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 var(--chip-d); }
.opt-say { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); width: 26px; height: 26px; border-radius: 50%; background: #fff; color: var(--v); display: grid; place-items: center; box-shadow: var(--sh-2); }
.opt-say .ic { width: 14px; height: 14px; }
.opts.big .opt { min-height: 84px; font-size: 32px; }
.opt.pic { min-height: 140px; display: grid; place-items: center; background: #fff; box-shadow: inset 0 0 0 3px var(--chip), 0 3px 0 var(--chip-d); }
.opt.pic .opt-in > .art { width: 110px; height: 110px; mix-blend-mode: multiply; }
.opt.pic .opt-in > .emo { font-size: 84px; }
.opt.pic .opt-in > svg { width: 100px; height: 100px; }
.opt.right { background: var(--ok); color: #fff; box-shadow: 0 3px 0 #2B9C5E; animation: pop .35s; }
.opt.pic.right { background: var(--ok-l); box-shadow: inset 0 0 0 4px var(--ok); }
.opt.wrong { opacity: .32; animation: shake .4s; cursor: default; }
.fb { display: grid; justify-items: center; }
.try { margin: 0; display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 12px; background: var(--chip); color: var(--ink); font-weight: 700; animation: rise .25s; }
.try .ic { width: 18px; height: 18px; color: var(--v); }
.try .heart .ic { color: #FF9F43; width: 20px; height: 20px; }
.expr { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; font: 800 clamp(30px, 5vw, 46px)/1.25 var(--f); color: var(--ink); text-align: center; }
.expr .lab { font: 700 22px var(--f); color: var(--ink-2); }
.keypad { display: grid; grid-template-columns: repeat(3, 78px); gap: 10px; justify-content: center; }
.keypad button { height: 58px; border-radius: 14px; border: 0; background: #fff; box-shadow: inset 0 0 0 2px #E3E6F5, 0 3px 0 #D7DBEF; font: 700 26px var(--f); color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.keypad button:active { transform: translateY(2px); box-shadow: inset 0 0 0 2px #E3E6F5; }
.keypad .ok { background: var(--v); color: #fff; box-shadow: 0 3px 0 var(--v-d); }
@media (max-width: 380px) { .keypad { grid-template-columns: repeat(3, 70px); } }
.pool { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; min-height: 56px; }
.chip { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 8px 16px; border-radius: 12px; border: 0; background: var(--chip); color: var(--ink); font: 700 20px/1.15 var(--f); box-shadow: 0 3px 0 var(--chip-d); cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; transition: transform .12s, opacity .12s; }
.chip .art { width: 34px; height: 34px; mix-blend-mode: multiply; }
.chip .emo { font-size: 28px; }
.chip.sel { background: #fff; transform: translateY(-4px); box-shadow: inset 0 0 0 3px var(--v), 0 8px 16px rgba(118, 95, 222, .3); }
.chip.lift { opacity: .25; }
.chip.placed { cursor: default; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .18); }
.chip.placed .art { mix-blend-mode: normal; }
.chip.shake { animation: shake .4s; }
.ghost { position: fixed; z-index: 100; margin: 0; pointer-events: none; box-shadow: inset 0 0 0 3px var(--v), 0 14px 30px rgba(40, 30, 110, .3); background: #fff; }
.letters .tile { min-width: 58px; font-size: 28px; }
.bins { display: grid; gap: 14px; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); }
.bins.cols-3 { --cols: 3; } .bins.cols-4 { --cols: 4; }
@media (max-width: 560px) { .bins.cols-4 { --cols: 2; } }
.bin { position: relative; min-height: 150px; padding: 14px 10px 12px; border-radius: 16px 16px 26px 26px; background: var(--pocket); display: flex; flex-direction: column; justify-content: space-between; align-items: center; gap: 10px; cursor: pointer; box-shadow: inset 0 12px 0 rgba(0, 0, 0, .12); transition: background .15s; min-width: 0; }
.bin::after { content: ""; position: absolute; inset: 7px; border: 2px dashed rgba(255, 255, 255, .35); border-radius: 11px 11px 20px 20px; pointer-events: none; }
.bin-in { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; position: relative; z-index: 1; }
.bin-h { position: relative; z-index: 1; display: grid; justify-items: center; gap: 4px; color: #fff; font: 800 20px/1.15 var(--f); text-align: center; overflow-wrap: anywhere; }
.bin-h small { font: 600 13px var(--f); opacity: .8; }
.bin-h > .art { width: 56px; height: 56px; border-radius: 14px; background: #fff; padding: 4px; }
.bin-h > .emo { font-size: 42px; }
.bin-h > span { font-size: 16px; }
.bin.over { background: #7C6DF2; }
.bin.hit { background: var(--ok); }
.bin.miss { background: var(--bad); animation: shake .4s; }
.line { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; min-height: 76px; padding: 10px; border-radius: 16px; border: 3px dashed var(--chip-d); background: #F6F7FF; }
.line.right { border-style: solid; border-color: var(--ok); background: var(--ok-l); }
.line.wrong { border-color: var(--bad); background: var(--bad-l); animation: shake .4s; }
.line .chip { cursor: pointer; background: #fff; }
.after { font: 800 26px var(--f); margin-left: -4px; color: var(--ink); }
.wr { display: grid; gap: 14px; }
.wr-head { display: flex; align-items: center; justify-content: center; gap: 12px; }
.wr-pic .art { width: 64px; height: 64px; mix-blend-mode: multiply; }
.wr-pic .emo { font-size: 52px; }
.wr-word { font: 700 30px/1 var(--f); color: var(--ink); letter-spacing: .02em; }
.wr-word b { color: var(--v); }
.wr-pad { border-radius: 20px; background: #fff; box-shadow: inset 0 0 0 3px #E6E8FA; overflow: hidden; }
.wr-pad.wrong { box-shadow: inset 0 0 0 3px var(--bad); animation: shake .4s; }
.wr-c { display: block; width: 100%; touch-action: none; cursor: crosshair; }
.wr-act { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.wr-act .btn-w { box-shadow: inset 0 0 0 2px var(--chip-d); }
.wr-act .ic { width: 18px; height: 18px; }
.hint { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 20px; background: #FFF6DF; box-shadow: inset 0 0 0 2px #FFE3A3; text-align: left; animation: rise .3s; }
.hint-m { width: 84px; flex: none; }
.hint-h { margin: 0 0 4px; font-weight: 800; color: #A2690B; }
.hint p { margin: 0 0 10px; font-size: 18px; line-height: 1.5; color: var(--ink); }
.hint .art { display: inline-block; width: 1.5em; height: 1.5em; vertical-align: middle; mix-blend-mode: multiply; }
.hint .btn-v { height: 44px; font-size: 16px; }
.p-guide { position: fixed; z-index: 4; left: 16px; bottom: 10px; width: 150px; pointer-events: none; }
.bubble { position: absolute; bottom: 92%; left: 60%; padding: 10px 16px; border-radius: 18px 18px 18px 4px; background: #fff; box-shadow: var(--sh-2); font-weight: 800; font-size: 17px; color: var(--ink); white-space: nowrap; animation: rise .25s; }
.p-guide.happy .mascot { animation: jump .7s; }
.p-guide.sad .mascot { animation: tilt .6s; }
.g-idle { animation: bob 3s ease-in-out infinite; }
@media (max-width: 760px) { .p-guide { width: 92px; left: 6px; } .bubble { font-size: 14px; left: 50%; } }
.spark { position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; background: var(--gold); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); pointer-events: none; z-index: 3; animation: spark .75s ease-out forwards; }
.loader { position: absolute; inset: 0; z-index: 6; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #E0CCFF; }
.loader .ride { width: 150px; animation: ride 1.1s ease-in-out infinite; }
.loader .road { width: 260px; height: 6px; margin-top: -6px; border-radius: 3px; background: repeating-linear-gradient(90deg, rgba(81, 55, 199, .35) 0 18px, transparent 18px 30px); animation: road .6s linear infinite; }
.start { position: absolute; inset: 0; z-index: 6; border: 0; display: grid; place-items: center; align-content: center; gap: 16px; background: rgba(224, 204, 255, .94); cursor: pointer; }
.start-btn { width: 104px; height: 104px; border-radius: 50%; background: #575FE1; color: #fff; display: grid; place-items: center; animation: pulse 1.6s infinite; }
.start-btn .ic { width: 44px; height: 44px; margin-left: 6px; }
.start b { font: 700 20px var(--f); color: #3B2C8C; }

/* ---------- finish (congrats) & daily gift ---------- */
.finish { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 110px 16px 24px; overflow-y: auto; background: rgba(28, 24, 72, .55); animation: fade .25s; }
.fin-card { position: relative; width: min(480px, 100%); display: grid; gap: 14px; padding: 24px; border-radius: 32px; background: #fff; text-align: center; box-shadow: var(--sh-2); animation: rise .45s cubic-bezier(.2, 1.3, .4, 1); }
.fin-art { width: 180px; margin: -118px auto -6px; }
.fin-card h2 { margin: 0; font: 700 26px/1.2 var(--f); color: var(--ink); }
.fin-table { padding: 12px; border-radius: 20px; box-shadow: 0 6px 20px rgba(57, 78, 127, .16); }
.fin-table p { margin: 0 0 6px; color: var(--ink-2); font-size: 14px; }
.fin-table ol { list-style: none; margin: 0; padding: 0; display: grid; }
.fin-table li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; padding: 8px 10px; border-radius: 12px; color: var(--ink); font-weight: 700; text-align: left; }
.fin-table li.me { background: #E4F5FB; }
.fin-all { display: grid; place-items: center; width: 100%; height: 42px; margin-top: 8px; border: 0; border-radius: 12px; background: var(--v-l); color: var(--v-d); font-weight: 700; cursor: pointer; text-decoration: none; }
.fin-stats { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; text-align: left; }
.fin-stats li { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: #F4F4F9; color: var(--ink); font-weight: 600; }
.fin-stats .art { width: 26px; height: 26px; flex: none; }
.fin-stats .egg { color: var(--v-d); }
.fin-gift { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: #FFF4D6; text-align: left; color: var(--ink); }
.fin-gift { text-decoration: none; }
.fin-gift > .fin-st { width: 76px; height: 76px; flex: none; border-radius: 16px; object-fit: cover; box-shadow: 0 0 0 3px #fff, var(--sh-2); }
.fin-gift p { margin: 2px 0 0; font-size: 14px; color: var(--ink-2); }
.fin-bonus { margin: 0; display: inline-flex; justify-content: center; align-items: center; gap: 6px; color: var(--ink); font-size: 15px; }
.fin-bonus .egg { color: var(--v-d); }
.gift-modal { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px; background: rgba(28, 24, 72, .6); animation: fade .25s; }
.gm-card { position: relative; width: min(660px, 100%); display: grid; gap: 18px; padding: 24px; border-radius: 28px; background: #fff; animation: rise .4s cubic-bezier(.2, 1.3, .4, 1); }
.gm-x { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #F2F2F7; color: var(--ink-2); display: grid; place-items: center; cursor: pointer; }
.gm-head { display: flex; align-items: center; gap: 14px; padding-right: 40px; }
.gm-chest { width: 76px; height: 76px; flex: none; }
.gm-head h2 { margin: 0; font: 700 24px/1.2 var(--f); color: var(--ink); }
.gm-head p { margin: 4px 0 0; color: var(--ink-2); }
.gm-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.gm-day { display: grid; justify-items: center; gap: 4px; padding: 10px 4px; border-radius: 14px; background: #F2F2F7; color: var(--ink); font-size: 12px; }
.gm-day .art { width: 42px; height: 42px; }
.gm-day b { font-size: 15px; }
.gm-day.taken { opacity: .55; }
.gm-day.taken b { font-size: 12px; }
.gm-day.today { background: #FFEBB0; box-shadow: inset 0 0 0 3px var(--gold); transform: translateY(-4px); }
.btn-take { justify-self: center; height: 54px; padding: 0 44px; border-radius: 16px; background: #FF6170; color: #fff; font-size: 18px; text-transform: uppercase; letter-spacing: .04em; box-shadow: 0 4px 0 #D8414F; }
@media (max-width: 520px) { .gm-days { grid-template-columns: repeat(4, minmax(0, 1fr)); } .gm-head h2 { font-size: 20px; } }
.confetti { position: fixed; inset: 0; z-index: 80; overflow: hidden; pointer-events: none; }
.confetti i { position: absolute; top: -24px; width: 10px; height: 16px; border-radius: 3px; animation: fall linear forwards; }
.toast { position: fixed; z-index: 90; left: 50%; top: calc(80px + env(safe-area-inset-top, 0px)); transform: translateX(-50%); max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 14px; background: #2F2F45; color: #fff; font-weight: 700; text-align: center; box-shadow: var(--sh-2); animation: drop .3s; transition: opacity .35s; }
.toast.out { opacity: 0; }

/* ---------- shared: modal, progress bar, FAQ ---------- */
.modal { position: fixed; inset: 0; z-index: 85; display: grid; place-items: center; padding: 16px; overflow-y: auto; background: rgba(28, 24, 72, .55); animation: fade .2s; }
.m-card { position: relative; width: min(520px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 26px; border-radius: 28px; background: #fff; box-shadow: var(--sh-2); animation: rise .35s cubic-bezier(.2, 1.3, .4, 1); }
.m-wide .m-card { width: min(720px, 100%); }
.m-x { position: absolute; top: 12px; right: 12px; z-index: 2; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #F2F2F7; color: var(--ink-2); display: grid; place-items: center; cursor: pointer; }
.m-body { display: grid; gap: 12px; }
.m-body.center, .center { text-align: center; justify-items: center; }
.m-body h2 { margin: 0; padding-right: 36px; font: 700 24px/1.2 var(--f); color: var(--ink); display: flex; align-items: center; gap: 8px; }
.m-body.center h2 { padding: 0 24px; justify-content: center; }
.m-body p { margin: 0; color: var(--ink-2); line-height: 1.5; }
.m-art { width: 150px; margin: -8px auto 0; }
.m-btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 6px; }
.goal-bar { position: relative; display: block; height: 22px; border-radius: 11px; background: #E6E8F0; overflow: hidden; }
.goal-bar i { position: absolute; inset: 0 auto 0 0; border-radius: 11px; background: linear-gradient(90deg, #5ED1A5, #2FB386); }
.goal-bar em { position: relative; display: grid; place-items: center; height: 100%; font: 700 12px/1 var(--f); font-style: normal; color: var(--ink); font-variant-numeric: tabular-nums; }
.faq { display: grid; gap: 10px; }
.faq details { border-radius: 18px; background: #fff; box-shadow: var(--sh-2); }
.faq summary { padding: 16px 48px 16px 20px; font-weight: 700; color: var(--ink); cursor: pointer; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--v); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--ink-2); line-height: 1.55; }
.m-body .faq details { box-shadow: inset 0 0 0 2px #EEEEF5; }
.muted { color: var(--ink-2); }
.h2.center { justify-content: center; }
.btn-v.sm-v { height: 40px; padding: 0 16px; font-size: 15px; box-shadow: 0 3px 0 var(--v-d); }
.btn-v .art, .btn-w .art { width: 22px; height: 22px; }

/* ---------- quests (sky page, goals, quest list, "beat the Zavr" fortress) ---------- */
body:has(.quests) { background: linear-gradient(180deg, #BFE6FF 0, #DDF3FF 520px, #F5F6F7 1400px); }
.q-box { position: relative; margin-top: 30px; padding: 28px 24px 24px; border-radius: 40px; background: #74B9F2; box-shadow: inset 0 -8px 0 rgba(0, 0, 0, .06); }
.q-target { position: absolute; left: -10px; top: -34px; width: 104px; height: 104px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: var(--sh-2); transform: rotate(-12deg); }
.q-target .art { width: 84px; height: 84px; }
.q-box h1 { margin: 0 0 20px; text-align: center; font: 800 40px/1 var(--f); color: #fff; text-shadow: 0 3px 0 rgba(0, 0, 0, .12); }
.goals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.goal { display: grid; gap: 8px; padding: 14px 16px; border-radius: 22px; background: #fff; box-shadow: var(--sh-2); }
.goal-h { margin: 0; display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--ink-2); }
.goal-t { display: inline-flex; gap: 4px; align-items: center; white-space: nowrap; font-variant-numeric: tabular-nums; }
.goal-t .ic { width: 15px; height: 15px; }
.goal > b { font-size: 18px; color: var(--ink); }
.goal-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.goal-rew { position: relative; width: 52px; height: 52px; border: 0; border-radius: 16px; background: #FFF4D6; display: grid; place-items: center; padding: 0; }
.goal-rew .art { width: 42px; height: 42px; }
.goal-rew small { position: absolute; right: -4px; bottom: -4px; min-width: 24px; height: 20px; padding: 0 5px; border-radius: 10px; background: #fff; color: var(--ink); font: 800 11px/20px var(--f); box-shadow: var(--sh-2); }
.goal-rew.open { cursor: pointer; background: #FFE27A; animation: pulse 1.6s infinite; }
.goal-rew.got { background: var(--ok); color: #fff; }
.q-list { display: grid; gap: 12px; margin-top: 16px; }
.quest { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto auto; align-items: center; gap: 16px; padding: 14px 18px; border-radius: 26px; background: #fff; box-shadow: var(--sh-2); }
.q-art { width: 72px; height: 72px; border-radius: 18px; overflow: hidden; display: grid; place-items: end center; }
.q-art .mascot { width: 92%; height: 92%; object-fit: contain; }
.q-art.s-math { background: radial-gradient(circle at 60% 30%, #9E86FF, #5B3FD6); } .q-art.s-uz { background: radial-gradient(circle at 60% 30%, #C08BFF, #7B4FD6); }
.q-art.s-en { background: radial-gradient(circle at 60% 30%, #7FD6FF, #1E88D9); } .q-art.s-write { background: repeating-linear-gradient(180deg, #FFFCF0 0 14px, #D9E2FF 14px 15px); }
.q-art.s-game { background: radial-gradient(circle at 60% 30%, #F3FF7A, #B7D900); }
.q-main { display: grid; gap: 8px; min-width: 0; }
.q-main b { color: var(--ink); font-size: 17px; }
.q-egg { position: relative; width: 44px; display: grid; place-items: center; }
.q-egg .art { width: 40px; height: 40px; }
.q-egg small { position: absolute; right: -4px; bottom: -2px; font: 800 12px var(--f); color: var(--ink); }
.q-btn { min-width: 126px; height: 48px; padding: 0 18px; border: 0; border-radius: 14px; background: var(--v); color: #fff; font: 700 17px var(--f); display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; cursor: pointer; box-shadow: 0 4px 0 var(--v-d); }
.q-btn.take { background: #39A88F; box-shadow: 0 4px 0 #23806C; animation: pulse 1.8s infinite; }
.q-btn.done { background: #E9F7F1; color: #23806C; box-shadow: none; }
.q-btn .ic { width: 18px; height: 18px; }
.quest.took { opacity: .75; }
.zavr-fight { position: relative; margin-top: 30px; display: grid; gap: 14px; }
.zf-goal { position: absolute; left: 18px; top: 18px; z-index: 2; width: min(300px, 44%); }
.zf-scene { position: relative; border-radius: 32px; overflow: hidden; box-shadow: var(--sh-2); }
.zf-img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.zf-hp { position: absolute; top: 18px; right: 18px; width: min(300px, 40%); display: grid; grid-template-columns: 60px minmax(0, 1fr); align-items: center; gap: 4px 10px; padding: 8px 16px 8px 8px; border-radius: 22px; background: rgba(255, 255, 255, .9); box-shadow: var(--sh-2); }
.zf-ava { grid-row: span 2; position: relative; width: 60px; height: 60px; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 50% 30%, #C3F0FF, #78C6EC); }
.zf-ava .mascot { position: absolute; left: 50%; bottom: -20%; width: 104%; transform: translateX(-50%); }
.zf-hp small { align-self: end; font: 800 12px var(--f); letter-spacing: .08em; color: #2D4A1F; }
.zf-bar { align-self: start; display: block; height: 14px; border-radius: 8px; background: #E3E7EF; overflow: hidden; }
.zf-taunt { position: absolute; left: 57%; top: 13%; max-width: 230px; margin: 0; padding: 10px 16px; border-radius: 20px 20px 20px 4px; background: #fff; color: var(--ink); font-weight: 700; line-height: 1.3; box-shadow: var(--sh-2); transform-origin: 0 100%; animation: zf-talk 4s ease-in-out infinite; }
@keyframes zf-talk { 0%, 70%, 100% { transform: none; } 78% { transform: rotate(-3deg) scale(1.04); } 86% { transform: rotate(2deg); } }
.zf-hp i { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, #FF8A3D, #FFC23D); transition: width .5s; }
.zf-sign { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); margin: 0; padding: 10px 18px; border-radius: 16px; background: rgba(47, 47, 69, .82); color: #fff; font-weight: 800; text-align: center; white-space: nowrap; }
.won .zf-sign { background: var(--ok); }
.q-rules { list-style: none; margin: 26px auto 0; padding: 0; max-width: 64ch; display: grid; gap: 10px; text-align: center; color: var(--ink-2); }
.q-rules b { color: var(--ink); }
@media (max-width: 760px) {
  .goals { grid-template-columns: minmax(0, 1fr); }
  .quest { grid-template-columns: 56px minmax(0, 1fr) auto; gap: 10px; padding: 12px; }
  .q-art { width: 56px; height: 56px; }
  .q-egg { display: none; }
  .q-btn { min-width: 0; height: 42px; padding: 0 12px; font-size: 15px; }
  .zf-goal { position: static; width: auto; }
  .q-box { padding: 26px 14px 16px; border-radius: 30px; }
  .q-target { width: 76px; height: 76px; left: -4px; top: -26px; } .q-target .art { width: 60px; height: 60px; }
  .q-box h1 { font-size: 30px; }
  .zf-sign { font-size: 14px; white-space: normal; width: max-content; max-width: 80%; }
  .zf-hp { top: 10px; right: auto; left: 10px; width: 150px; grid-template-columns: 40px minmax(0, 1fr); padding: 6px 10px 6px 6px; } .zf-ava { width: 40px; height: 40px; } .zf-hp small { font-size: 10px; }
  .zf-taunt { left: 60%; top: 5%; max-width: 38%; padding: 6px 10px; font-size: 12px; }
}

/* ---------- olympiad ---------- */
body:has(.olymp) { background: #FFE58A; }
.oly-top { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 14px; }
.oly-logo { width: 56px; }
.oly-top p { margin: 0; display: grid; line-height: 1.3; }
.oly-top b { color: var(--ink); }
.oly-top span { color: var(--ink-2); font-size: 14px; }
.oly-status { text-align: right; }
.oly-hero { position: relative; margin-top: 20px; border-radius: 32px; overflow: hidden; background: #FFD45C; box-shadow: var(--sh-2); }
.oly-hero-img { display: block; width: 100%; aspect-ratio: 21 / 9; object-fit: cover; object-position: right center; }
.oly-hero-t { position: absolute; left: 0; top: 0; bottom: 0; width: 50%; padding: 28px 32px; display: grid; align-content: center; gap: 10px; background: linear-gradient(90deg, rgba(255, 214, 92, .96) 60%, rgba(255, 214, 92, 0)); }
.oly-hero-t h1 { margin: 0; font: 800 clamp(26px, 4vw, 46px)/1.05 var(--f); color: #3B2A00; }
.oly-hero-t p { margin: 0; font-weight: 600; color: #6B4E00; }
.oly-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.oly-tags span { padding: 4px 12px; border-radius: 10px; background: #fff; font-weight: 700; font-size: 14px; color: var(--ink); }
.oly-prize { position: relative; z-index: 2; width: fit-content; max-width: 100%; margin: -22px auto 0; padding: 10px 20px; border-radius: 18px; background: #FFF6DA; box-shadow: var(--sh-2); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px; color: var(--ink); }
.oly-prize > .art { width: 34px; height: 34px; }
.oly-prize .egg { padding: 4px 10px; border-radius: 12px; background: #FF9F6B; color: #fff; }
.oly-prize .egg .art { width: 20px; height: 20px; }
.oly-start { margin: 16px auto 0; width: min(640px, 100%); padding: 26px; border-radius: 32px; background: #fff; text-align: center; display: grid; justify-items: center; gap: 16px; box-shadow: var(--sh-2); }
.oly-start > p { margin: 0; max-width: 46ch; color: var(--ink); }
.oly-timer { display: flex; gap: 6px; align-items: center; font: 800 44px/1 var(--f); color: var(--ink); font-variant-numeric: tabular-nums; }
.oly-timer b { width: 52px; height: 64px; border-radius: 14px; background: #F2F2F7; display: grid; place-items: center; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .06); }
.oly-timer i { font-style: normal; color: var(--ink-2); }
.oly-res { display: flex; align-items: center; gap: 16px; text-align: left; }
.oly-medal { width: 84px; }
.oly-score { margin: 0; font-size: 18px; color: var(--ink-2); }
.oly-score b { font: 800 46px/1 var(--f); color: var(--ink); }
.oly-res p { margin: 0; font-weight: 700; color: var(--ink); }
.oly-btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.oly-btns .btn-w { box-shadow: inset 0 0 0 2px var(--chip-d); }
.oly-invite { position: relative; margin: 16px auto 0; width: min(640px, 100%); padding: 20px 130px 20px 24px; border-radius: 28px; background: linear-gradient(120deg, #4A2BB0, #7B3FE4); color: #fff; display: grid; gap: 12px; justify-items: start; overflow: hidden; }
.oly-invite h3 { margin: 0; font-size: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.oly-invite .egg { padding: 2px 8px; border-radius: 10px; background: rgba(255, 255, 255, .2); }
.oly-invite .egg .art { width: 20px; height: 20px; }
.oly-invite p { margin: 4px 0 0; opacity: .85; font-size: 14px; }
.oly-gift { position: absolute; right: 16px; bottom: 8px; width: 104px; height: 104px; }
.oly-how { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.oly-how li { display: grid; gap: 6px; padding: 18px; border-radius: 24px; background: #fff; box-shadow: var(--sh-2); }
.oly-how .art { width: 48px; height: 48px; mix-blend-mode: multiply; }
.oly-how b { color: var(--ink); font-size: 17px; }
.oly-how span { color: var(--ink-2); font-size: 14px; }
.oly-sample { width: min(820px, 100%); margin: 0 auto; }
.oly-tours { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.oly-tours article { position: relative; padding: 20px 20px 20px 86px; border-radius: 24px; background: #fff; box-shadow: var(--sh-2); }
.tour-n { position: absolute; left: 20px; top: 20px; width: 50px; height: 50px; border-radius: 16px; background: var(--v); color: #fff; display: grid; place-items: center; font: 800 22px var(--f); }
.oly-tours b { font-size: 19px; color: var(--ink); }
.oly-tours p { margin: 6px 0 0; color: var(--ink); }
.oly-tours .muted { font-size: 14px; }
.oly-awards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.aw { display: grid; justify-items: center; gap: 4px; padding: 18px; border-radius: 24px; background: #fff; text-align: center; box-shadow: var(--sh-2); }
.aw b { color: var(--ink); font-size: 18px; }
.aw > span:last-child { color: var(--ink-2); font-size: 14px; }
.aw-doc { width: 120px; margin-bottom: 6px; }
.oly-org { margin: 0; max-width: 72ch; line-height: 1.6; color: var(--ink); }
.olymp .faq details { background: #FFFBEA; }
@media (max-width: 760px) {
  .oly-top { grid-template-columns: auto auto minmax(0, 1fr); }
  .oly-status { grid-column: 1 / -1; text-align: left; }
  .oly-hero-img { aspect-ratio: 16 / 10; object-position: 75% center; }
  .oly-hero-t { width: 74%; padding: 18px; }
  .oly-how { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .oly-tours, .oly-awards { grid-template-columns: minmax(0, 1fr); }
  .oly-invite { padding-right: 24px; }
  .oly-gift { opacity: .35; }
  .oly-timer { font-size: 34px; } .oly-timer b { width: 42px; height: 54px; }
}
/* olympiad round */
.oly-run .ptop { gap: 10px; }
.or-name { font-weight: 800; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.or-timer { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 12px; background: rgba(0, 0, 0, .18); font-variant-numeric: tabular-nums; }
.or-timer b { font-size: 18px; }
.or-timer.low { background: var(--bad); animation: pulse 1.4s infinite; }
.or-count { height: 36px; padding: 0 12px; border-radius: 12px; background: rgba(255, 255, 255, .16); display: grid; place-items: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.or-tabs { width: min(820px, 100%); display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 14px; }
.or-tabs button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .85); color: var(--ink); font: 800 16px var(--f); cursor: pointer; box-shadow: var(--sh-2); }
.or-tabs button.ans { background: var(--v); color: #fff; }
.or-tabs button.cur { box-shadow: 0 0 0 4px #FFC23D, var(--sh-2); }
.or-pts { margin: 0; text-align: center; color: var(--ink-2); font-weight: 700; font-size: 14px; }
.opt.sel { background: var(--v); color: #fff; box-shadow: 0 3px 0 var(--v-d); }
.opt.pic.sel { background: var(--v-l); box-shadow: inset 0 0 0 4px var(--v); }
.or-nav { display: flex; justify-content: space-between; gap: 10px; }
.or-nav .btn-w { box-shadow: inset 0 0 0 2px var(--chip-d); }
.or-nav .btn-w:disabled { opacity: .4; cursor: default; }
@media (max-width: 560px) { .or-name, .or-count { display: none; } .or-tabs button { width: 38px; height: 38px; } }
.ans-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ans-list li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px 14px; border-radius: 16px; background: #F6F6FA; }
.ans-list li.ok { background: var(--ok-l); }
.al-n { width: 34px; height: 34px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-weight: 800; color: var(--ink); }
.ans-list p { margin: 0 0 4px; color: var(--ink); }
.al-q { font-weight: 700; }
.al-a .art { width: 28px; height: 28px; display: inline-block; vertical-align: middle; mix-blend-mode: multiply; }
.al-a svg { width: 28px; height: 28px; vertical-align: middle; }
.al-hint { font-size: 14px; color: var(--ink-2) !important; }
.al-hint .art { width: 1.4em; height: 1.4em; display: inline-block; vertical-align: middle; }
.al-pts { font-weight: 800; color: var(--ok); }
.ans-list li.no .al-pts { color: var(--ink-2); }
/* award document: ornamental frame, printable */
.doc-mini { position: relative; display: grid; gap: 5px; align-content: center; justify-items: center; aspect-ratio: 1.41; padding: 10px; border-radius: 6px; background: #FFFDF6; box-shadow: inset 0 0 0 4px var(--dc, #F2B705), inset 0 0 0 7px #fff, inset 0 0 0 8px var(--dc, #F2B705), 0 4px 12px rgba(0, 0, 0, .12); }
.doc-mini b { font: 800 9px var(--f); letter-spacing: .08em; color: var(--dc, #B58500); }
.doc-mini i { display: block; width: 70%; height: 4px; border-radius: 2px; background: #E8E3D5; }
.doc-mini i:first-child { width: 22px; height: 22px; border-radius: 50%; background: var(--dc, #F2B705); opacity: .8; }
.doc-mini.violet, .doc.violet { --dc: #7B4FD6; } .doc-mini.blue, .doc.blue { --dc: #1E88D9; } .doc-mini.gold, .doc.gold { --dc: #D59A00; }
.m-doc .m-card { width: min(760px, 100%); background: #F4F1E8; }
.doc { padding: 14px; border-radius: 12px; background:
  repeating-conic-gradient(from 45deg, var(--dc) 0 25%, #FFF8E1 0 50%) 0 0 / 22px 22px; }
.doc-in { padding: 34px 30px 26px; border-radius: 6px; background: #FFFDF7; box-shadow: inset 0 0 0 3px var(--dc), inset 0 0 0 8px #FFFDF7, inset 0 0 0 9px var(--dc); text-align: center; display: grid; gap: 8px; justify-items: center; }
.doc-logo { margin: 0; font: 900 22px/1 var(--f); letter-spacing: -.03em; color: #232A6E; }
.doc-logo span { color: var(--v); }
.doc h2 { margin: 6px 0 0; font: 900 clamp(30px, 6vw, 48px)/1 var(--f); letter-spacing: .12em; color: var(--dc); }
.doc-ev { margin: 0; font-weight: 700; color: var(--ink); max-width: 44ch; }
.doc-for { margin: 10px 0 0; font-style: italic; color: var(--ink-2); }
.doc-name { margin: 0; font: 800 clamp(28px, 5vw, 40px)/1.1 var(--f); color: var(--ink); border-bottom: 2px solid var(--dc); padding: 0 24px 6px; }
.doc-cls, .doc-line { margin: 0; color: var(--ink-2); }
.doc-res { margin: 4px 0 0; padding: 6px 16px; border-radius: 12px; background: #FFF4D6; font-weight: 800; color: var(--ink); }
.doc-foot { width: 100%; margin-top: 12px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 10px; color: var(--ink-2); font-size: 14px; }
.doc-foot span:first-child { text-align: left; } .doc-foot span:last-child { text-align: right; font-style: italic; }
.doc-seal { width: 74px; }
.m-doc .m-btns { margin-top: 16px; }
@media print {
  body > *:not(.modal) { display: none !important; }
  .modal { position: static; display: block; padding: 0; background: none; }
  .m-card { width: 100% !important; max-height: none; box-shadow: none; padding: 0; background: none; animation: none; }
  .m-x, .m-btns { display: none !important; }
}

/* ---------- past olympiads ---------- */
.past-o { margin-top: 22px; padding: 20px 22px; border-radius: 28px; background: #fff; box-shadow: var(--sh-2); }
.po-h { display: flex; align-items: center; gap: 14px; }
.po-ic { width: 56px; height: 56px; mix-blend-mode: multiply; }
.po-h h3 { margin: 0; font-size: 19px; color: var(--ink); }
.po-h p { margin: 2px 0 0; color: var(--ink-2); }
.po-grades { display: grid; grid-template-columns: repeat(4, minmax(0, 120px)); gap: 16px; margin-top: 16px; }
.po-g { position: relative; display: grid; justify-items: center; gap: 4px; text-decoration: none; color: var(--ink-2); font-size: 14px; }
.po-g b { width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; font: 900 46px/1 var(--f); color: #FFE27A; -webkit-text-stroke: 2px #2C3E9C; background: radial-gradient(circle at 35% 30%, #5C7CFA, #3048C8); box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .15), var(--sh-2); transition: transform .15s; }
.po-g:hover b { transform: translateY(-3px) rotate(-4deg); }
.po-g.mine b { box-shadow: 0 0 0 4px #FFC23D, inset 0 -6px 0 rgba(0, 0, 0, .15); }
.po-g .badge-c { top: -4px; right: 8px; width: 32px; height: 32px; }
@media (max-width: 560px) { .po-grades { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; } .po-g b { width: 64px; height: 64px; font-size: 32px; } }

/* ---------- portfolio ---------- */
.docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.doc-card { display: grid; gap: 6px; padding: 16px; border: 0; border-radius: 24px; background: #fff; box-shadow: var(--sh-2); text-align: left; cursor: pointer; font: inherit; color: var(--ink); transition: transform .15s; }
.doc-card:hover { transform: translateY(-3px); }
.doc-card .doc-mini { margin-bottom: 8px; }
.doc-card b { font-size: 18px; }
.doc-card span { color: var(--ink-2); font-size: 14px; }
.doc-card small { color: var(--ink-2); }
.empty { display: grid; justify-items: center; gap: 12px; text-align: center; color: var(--ink-2); }
.empty-img { width: min(360px, 100%); border-radius: 28px; }
.port-cta { margin-top: 18px; display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: 24px; background: #FFE58A; }
.port-cta > span { width: 64px; flex: none; }
.port-cta p { margin: 0; display: grid; gap: 2px; color: var(--ink-2); flex: 1; }
.port-cta b { color: var(--ink); }
.badges { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 760px) { .badges { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .port-cta { flex-wrap: wrap; } }
.bdg { display: grid; justify-items: center; gap: 8px; padding: 18px 14px; border-radius: 24px; background: #fff; text-align: center; box-shadow: var(--sh-2); }
.bdg-ic { width: 76px; height: 76px; border-radius: 50%; background: #F1F1F6; display: grid; place-items: center; }
.bdg-ic .art { width: 56px; height: 56px; mix-blend-mode: multiply; filter: grayscale(1); opacity: .5; }
.bdg.ok .bdg-ic { background: #FFF1C2; box-shadow: 0 0 0 4px #FFC23D; }
.bdg.ok .bdg-ic .art { filter: none; opacity: 1; }
.bdg b { color: var(--ink); }
.bdg .goal-bar { width: 100%; }

/* ---------- marathon results ---------- */
.mr-hero { position: relative; margin-top: 22px; border-radius: 32px; overflow: hidden; box-shadow: var(--sh-2); }
.mr-img { display: block; width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.mr-ribbon { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); padding: 8px 22px; border-radius: 14px; background: #FFE27A; color: #4A3300; font-weight: 800; white-space: nowrap; box-shadow: var(--sh-2); }
.mr-name { position: absolute; bottom: 8%; transform: translateX(-50%); display: inline-flex; gap: 6px; align-items: center; padding: 6px 12px; border-radius: 12px; background: #fff; color: var(--ink); font-weight: 800; box-shadow: var(--sh-2); white-space: nowrap; }
.mr-name.p1 { left: 50%; bottom: 14%; } .mr-name.p2 { left: 28%; } .mr-name.p3 { left: 72%; }
.mr-name.me { background: #FFE27A; }
.mr-name .egg .art { width: 18px; height: 18px; }
.mr-goal { margin-top: 18px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 18px; padding: 18px 22px; border-radius: 28px; background: linear-gradient(120deg, #2A9BD8, #4FC1EA); color: #fff; }
.mr-goal-art .art { width: 72px; height: 72px; }
.mr-goal h3 { margin: 0 0 4px; font-size: 20px; }
.mr-goal p { margin: 0 0 8px; display: flex; align-items: center; gap: 4px; }
.mr-goal p .art { width: 20px; height: 20px; }
.mr-goal .goal-bar { background: rgba(255, 255, 255, .35); }
.mr-tabs { margin: 22px 0 14px; }
.tbl-wrap { overflow-x: auto; border-radius: 24px; background: #fff; box-shadow: var(--sh-2); }
.tbl { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tbl th { padding: 14px 16px; text-align: left; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); border-bottom: 1px solid #EEEEF4; }
.tbl td { padding: 12px 16px; border-bottom: 1px solid #F3F3F7; color: var(--ink); }
.tbl td:first-child { width: 48px; font-weight: 800; color: var(--ink-2); }
.tbl td small { display: block; color: var(--ink-2); }
.tbl tr.me td { background: #E4F5FB; font-weight: 800; }
.tbl tr:last-child td { border-bottom: 0; }
.rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rules li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; background: #fff; color: var(--ink); box-shadow: var(--sh-2); }
.rules .art { width: 40px; height: 40px; flex: none; mix-blend-mode: multiply; }
.past-m { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.past-m article { display: grid; gap: 4px; padding: 16px 18px; border-radius: 20px; background: #fff; box-shadow: var(--sh-2); }
.past-m b { color: var(--ink); }
.past-m span { color: var(--ink-2); font-size: 14px; }
.past-m .pm-place { justify-self: start; margin-top: 4px; padding: 2px 10px; border-radius: 8px; background: var(--v-l); color: var(--v-d); font-weight: 800; }
@media (max-width: 760px) {
  .mr-img { aspect-ratio: 16 / 10; }
  .mr-name { font-size: 12px; padding: 4px 8px; } .mr-name .egg { display: none; }
  .mr-ribbon { font-size: 13px; white-space: normal; text-align: center; width: max-content; max-width: 86%; }
  .mr-goal { grid-template-columns: auto minmax(0, 1fr); } .mr-goal .cs-days, .mr-goal .btn-w { grid-column: span 1; justify-self: start; }
  .past-m { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- pet room & shop ---------- */
.rm-scene { position: relative; margin-top: 20px; border-radius: 32px; overflow: hidden; box-shadow: var(--sh-2); container-type: inline-size; }
.rm-bg { display: block; width: 100%; aspect-ratio: 1792 / 1000; object-fit: cover; }
.rm-item { position: absolute; transform: translateX(-50%); animation: pop .4s; }
.rm-item .art { width: 100%; height: auto; filter: drop-shadow(0 6px 6px rgba(40, 30, 20, .25)); }
.rm-pet { position: absolute; left: 52%; bottom: 7%; width: 22%; transform: translateX(-50%); border: 0; padding: 0; background: none; cursor: pointer; }
.rm-pet .mascot { filter: drop-shadow(0 10px 10px rgba(40, 30, 20, .3)); }
.rm-tools { position: absolute; right: 14px; top: 14px; display: grid; gap: 8px; }
.rm-tools .btn-w { box-shadow: var(--sh-2); }
.rm-tools .ic { width: 18px; height: 18px; }
.pet-card { margin-top: 16px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 20px; padding: 20px 24px; border-radius: 28px; background: #fff; box-shadow: var(--sh-2); }
.pet-card h2 { margin: 0; font: 700 24px/1.2 var(--f); color: var(--ink); }
.pet-card p { margin: 4px 0 10px; color: var(--ink-2); }
.pet-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.pet-btns .btn-w { box-shadow: inset 0 0 0 2px var(--chip-d); }
.shop { margin-top: 18px; padding: 22px; border-radius: 28px; background: var(--lilac); }
.shop-h { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 16px; }
.shop-h h2 { margin: 0; font: 700 28px/1 var(--f); color: var(--ink); }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.shop-it { display: grid; justify-items: center; gap: 8px; padding: 14px 10px; border-radius: 22px; background: #fff; text-align: center; box-shadow: var(--sh-2); }
.shop-it > .art { width: 86px; height: 86px; mix-blend-mode: multiply; }
.shop-it b { color: var(--ink); font-size: 15px; }
.shop-it .btn-w { background: #3E2DA8; color: #fff; gap: 4px; }
.shop-it .btn-w .art { width: 20px; height: 20px; }
.shop-it.own { box-shadow: inset 0 0 0 3px var(--ok), var(--sh-2); }
.own-l { display: inline-flex; align-items: center; gap: 4px; height: 36px; color: var(--ok); font-weight: 700; }
.own-l .ic { width: 18px; height: 18px; }
@media (max-width: 600px) { .pet-card { grid-template-columns: minmax(0, 1fr); } .rm-tools { top: 8px; right: 8px; } .rm-tools .btn-w { height: 32px; padding: 0 10px; font-size: 13px; } .rm-pet { width: 28%; } }

/* ---------- extra course page ---------- */
.cp-hero { margin-top: 20px; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; align-items: center; padding: 20px; border-radius: 32px; background: #fff; box-shadow: var(--sh-2); }
.cp-img { aspect-ratio: 1; border-radius: 24px; background: #ddd center / cover no-repeat; }
.cp-hero p { margin: 0 0 12px; font-size: 18px; line-height: 1.5; color: var(--ink); max-width: 56ch; }
.cp-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.cp-tags span { display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px; border-radius: 10px; background: #F0F1F5; font-weight: 700; font-size: 14px; color: var(--ink); }
.cp-tags .free { background: var(--ok-l); color: #23806C; }
.cp-tags .pro { background: #FFF1C2; color: #8A5A00; }
.cp-tags .ic { width: 16px; height: 16px; }
.cp-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.cp-btns .btn-w { box-shadow: inset 0 0 0 2px var(--chip-d); }
.course-page .rail { margin-top: 26px; }
.chain h4 > .ic { color: #F2A900; }
@media (max-width: 640px) { .cp-hero { grid-template-columns: minmax(0, 1fr); } .cp-img { width: 160px; } }

/* ---------- profile ---------- */
.pf-card { margin-top: 20px; display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 24px; align-items: center; padding: 22px; border-radius: 32px; background: #fff; box-shadow: var(--sh-2); }
.pf-ava { width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle at 50% 30%, #E7FAF7, #BDEDE6); display: grid; place-items: end center; overflow: hidden; }
.pf-ava .mascot { width: 92%; }
.pf-form { display: grid; gap: 8px; }
.pf-form label { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.pf-row { display: flex; gap: 10px; flex-wrap: wrap; }
.pf-row input { flex: 1 1 200px; height: 48px; padding: 0 14px; border-radius: 14px; border: 2px solid #E3E1F0; font: 600 18px var(--f); color: var(--ink); }
.pf-row input:focus { outline: none; border-color: var(--v); }
.pf-form p { margin: 0; color: var(--ink-2); }
.pf-stats { margin-top: 16px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.pf-stats article { display: grid; justify-items: center; gap: 2px; padding: 14px 8px; border-radius: 22px; background: #fff; text-align: center; box-shadow: var(--sh-2); }
.pf-stats .art { width: 40px; height: 40px; }
.pf-stats b { font: 800 26px/1.1 var(--f); color: var(--ink); }
.pf-stats span { font-size: 12px; color: var(--ink-2); }
.pf-subj { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pf-s { display: grid; grid-template-columns: 64px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 14px; row-gap: 8px; align-items: center; padding: 14px 18px; border-radius: 24px; background: #fff; text-decoration: none; box-shadow: var(--sh-2); }
.pf-s-art { grid-row: span 2; width: 64px; height: 64px; border-radius: 18px; overflow: hidden; display: grid; place-items: end center; background: radial-gradient(circle at 60% 30%, #9E86FF, #5B3FD6); }
.pf-s.s-uz .pf-s-art { background: radial-gradient(circle at 60% 30%, #C08BFF, #7B4FD6); } .pf-s.s-ru .pf-s-art { background: radial-gradient(circle at 60% 30%, #FF9AD0, #A3478C); } .pf-s.s-en .pf-s-art { background: radial-gradient(circle at 60% 30%, #7FD6FF, #1E88D9); }
.pf-s-art .mascot { width: 92%; }
.pf-s b { color: var(--ink); }
.parents { margin-top: 26px; padding: 22px 24px; border-radius: 28px; background: #E8F6FF; }
.parents h2 { margin: 0 0 10px; display: flex; align-items: center; gap: 10px; font: 700 24px/1.2 var(--f); color: var(--ink); }
.parents ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--ink); line-height: 1.5; }
.pf-set { display: grid; gap: 10px; justify-items: start; padding: 20px 22px; border-radius: 28px; background: #fff; box-shadow: var(--sh-2); }
.pf-set .grades { width: min(280px, 100%); }
.pf-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.pf-btns .btn-w { box-shadow: inset 0 0 0 2px var(--chip-d); }
@media (max-width: 760px) { .pf-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } .pf-subj { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .pf-card { grid-template-columns: minmax(0, 1fr); justify-items: center; } .pf-ava { width: 130px; height: 130px; } }

/* ---------- quiz ---------- */
.qz-card { margin: 24px auto 0; }
.qz-card h2 { margin: 0; text-align: center; font: 700 26px/1.25 var(--f); color: var(--ink); }
.qz-dots { display: flex; justify-content: center; gap: 8px; }
.qz-dots i { width: 12px; height: 12px; border-radius: 50%; background: #E3E1F0; }
.qz-dots i.done { background: var(--v); } .qz-dots i.cur { background: #FFC23D; transform: scale(1.3); }
.qz-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.qz-opts .opt { display: grid; justify-items: center; gap: 8px; padding: 14px 10px 18px; font-size: 18px; }
.qz-m { width: 96px; height: 96px; border-radius: 50%; background: #fff; display: grid; place-items: end center; overflow: hidden; }
.qz-m .mascot { width: 88%; }
.qz-res { margin-top: 24px; display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; align-items: center; padding: 26px; border-radius: 32px; background: linear-gradient(135deg, #F3EEFF, #E2F7F3); box-shadow: var(--sh-2); }
.qz-res h2 { margin: 0 0 8px; font: 800 36px/1.1 var(--f); color: var(--ink); }
.qz-res p { margin: 0 0 12px; font-size: 18px; line-height: 1.5; color: var(--ink); }
.qz-k { margin: 0 !important; color: var(--ink-2) !important; }
.qz-res .m-btns { justify-content: flex-start; }
.qz-res .btn-w { box-shadow: inset 0 0 0 2px var(--chip-d); }
.qz-res .pill-v .ic { width: 16px; height: 16px; }
@media (max-width: 640px) { .qz-opts { grid-template-columns: minmax(0, 1fr); } .qz-opts .opt { grid-template-columns: 64px minmax(0, 1fr); justify-items: start; align-items: center; text-align: left; } .qz-m { width: 64px; height: 64px; } .qz-res { grid-template-columns: minmax(0, 1fr); } .qz-art { width: 180px; margin: 0 auto; } }

/* ---------- full access (tariffs) ---------- */
.tariffs { padding-bottom: 120px; }
.pro-on { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px 20px; border-radius: 20px; background: linear-gradient(135deg, #FFE27A, #FFC23D); color: #4A3300; }
.pro-on .art { width: 36px; height: 36px; }
.plans { margin-top: 30px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.plan { position: relative; display: grid; gap: 10px; padding: 22px 20px; border-radius: 28px; background: #fff; box-shadow: var(--sh-2); }
.plan.top { box-shadow: 0 0 0 4px var(--v), var(--sh-2); margin-top: -10px; }
.plan-top { margin: -22px -20px 6px; padding: 8px; border-radius: 28px 28px 0 0; background: var(--v); color: #fff; text-align: center; font-weight: 800; }
.plan-h { display: flex; align-items: center; gap: 8px; }
.plan-h h3 { margin: 0 auto 0 0; font: 700 22px/1.2 var(--f); color: var(--ink); }
.off { padding: 3px 10px; border-radius: 10px; background: var(--v-l); color: var(--v-d); font-weight: 800; font-size: 14px; }
.bonus { display: inline-flex; align-items: center; gap: 2px; padding: 3px 8px; border-radius: 10px; background: #F3E3FF; color: #7B3FE4; font-weight: 800; font-size: 14px; }
.bonus .art { width: 18px; height: 18px; }
.plan-price { margin: 0; color: var(--ink); font-size: 18px; font-weight: 700; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.plan-price b { font: 800 34px/1 var(--f); font-variant-numeric: tabular-nums; }
.plan-price s { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.plan-note { margin: -6px 0 4px; font-size: 13px; color: var(--ink-2); }
.btn-o, .btn-l { min-height: 48px; padding: 8px 16px; border-radius: 16px; font: 700 15px/1.2 var(--f); cursor: pointer; }
.btn-o { border: 2px solid var(--ink); background: #fff; color: var(--ink); }
.btn-o:hover { background: #F7F7FB; }
.btn-l { border: 2px solid #E9E7F5; background: #fff; color: var(--ink); }
.plan.top .btn-l { background: var(--v-l); border-color: var(--v-l); }
.plan .btn-v { font-size: 15px; height: auto; min-height: 48px; padding: 8px 16px; }
.plan-part { margin: -2px 0 0; text-align: center; font-size: 14px; color: var(--ink-2); text-decoration: underline dotted; text-underline-offset: 4px; }
.plan-in { margin-top: 8px; padding-top: 14px; border-top: 1px solid #EEEEF4; display: grid; gap: 8px; }
.plan-base { margin: 0; padding: 8px 12px; border-radius: 12px; background: #F4F4F9; font-weight: 700; color: var(--ink); font-size: 14px; }
.plan-g { margin: 6px 0 0; font-weight: 800; color: var(--ink); font-size: 14px; }
.plan-in ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.plan-in li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink); }
.th { width: 30px; height: 30px; flex: none; border-radius: 8px; background: #EEE center / cover no-repeat; overflow: hidden; display: grid; place-items: end center; }
.th.m { background: radial-gradient(circle at 60% 30%, #C9BFFF, #7B5BE0); }
.th .mascot { width: 96%; }
.periods { width: fit-content; margin: 0 auto 18px; padding: 4px; border-radius: 16px; background: #fff; display: flex; gap: 4px; box-shadow: var(--sh-2); }
.periods button { position: relative; height: 42px; padding: 0 22px; border: 0; border-radius: 12px; background: none; font-weight: 700; color: var(--ink-2); cursor: pointer; }
.periods button.on { background: var(--v); color: #fff; }
.periods em { position: absolute; top: -12px; right: -10px; padding: 2px 6px; border-radius: 8px; background: #FF6B8B; color: #fff; font: 800 11px var(--f); font-style: normal; }
.build { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.b-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 20px; background: #fff; box-shadow: var(--sh-2); }
.b-row .th { width: 44px; height: 44px; border-radius: 12px; }
.b-row > b { color: var(--ink); }
.b-price { display: grid; justify-items: end; text-align: right; }
.b-price b { color: var(--ink); white-space: nowrap; }
.b-price small { color: var(--ink-2); font-size: 12px; white-space: nowrap; }
.cart-btn { width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--v-l); color: var(--v-d); display: grid; place-items: center; cursor: pointer; }
.cart-btn.on { background: var(--ok); color: #fff; }
.addon { margin-top: 22px; padding: 22px; border-radius: 32px; background: #DDF0FF; }
.addon h3 { margin: 0 0 14px; font: 700 24px/1.2 var(--f); color: var(--ink); }
.addon-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ad-card { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 14px; padding: 12px; border-radius: 22px; background: #fff; box-shadow: var(--sh-2); }
.ad-img { aspect-ratio: 1; border-radius: 16px; background: #ddd center / cover no-repeat; }
.ad-card b { color: var(--ink); font-size: 17px; }
.ad-card p { margin: 4px 0; font-size: 14px; color: var(--ink-2); line-height: 1.4; }
.ad-card a { font-size: 14px; color: var(--v); font-weight: 700; text-decoration: none; }
.ad-buy { margin-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ad-buy > span { display: grid; }
.ad-buy s { font-size: 12px; color: var(--ink-2); }
.ad-buy b { font-size: 18px; }
.ad-buy small { font-size: 12px; color: var(--ink-2); }
.cart-bar { position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 40; transform: translate(-50%, 140%); width: min(560px, calc(100% - 32px)); display: flex; align-items: center; gap: 14px; padding: 12px 12px 12px 20px; border-radius: 20px; background: #2F2F45; color: #fff; box-shadow: 0 10px 30px rgba(20, 20, 50, .35); transition: transform .3s; }
.cart-bar.on { transform: translate(-50%, 0); }
.cart-bar:not(.on) { visibility: hidden; transition: transform .3s, visibility 0s .3s; }
.cart-bar b { margin-left: auto; font-size: 18px; font-variant-numeric: tabular-nums; }
.cart-bar .btn-v { height: 44px; }
.cart-bar .btn-v:disabled { opacity: .5; }
.co-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.co-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: 14px; background: #F4F4F9; color: var(--ink); }
.co-note { font-size: 14px; }
.co-total { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 4px 0; color: var(--ink) !important; }
.co-total b { font: 800 26px var(--f); }
.pay { display: grid; gap: 8px; }
.pay label { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 14px; box-shadow: inset 0 0 0 2px #E9E7F5; cursor: pointer; font-weight: 700; color: var(--ink); }
.pay label:has(input:checked) { box-shadow: inset 0 0 0 3px var(--v); background: #F7F5FF; }
.pay input { accent-color: var(--v); }
.co-demo { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px; background: #FFF6DF; color: #7A5500 !important; font-size: 14px; }
.co-demo .ic { flex: none; }
.spin { width: 54px; height: 54px; border-radius: 50%; border: 6px solid var(--v-l); border-top-color: var(--v); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.m-gate .m-card { width: min(500px, 100%); }
.gate h2 .ic { width: 30px; height: 30px; padding: 5px; border-radius: 50%; background: var(--v-l); color: var(--v); }
.gate .m-art { width: 220px; }
.gate-f { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.gate-f span { font: 800 30px var(--f); color: var(--ink); }
.gate-f input { width: 140px; height: 50px; padding: 0 14px; border-radius: 14px; border: 2px solid #E3E1F0; font: 700 20px var(--f); color: var(--ink); }
.gate-f input:focus { outline: none; border-color: var(--v); }
.gate-f .btn-v { flex-basis: 100%; }
.gate-err { color: var(--bad) !important; font-weight: 700; }
.gate .btn-link { justify-self: center; }
@media (max-width: 900px) { .plans { grid-template-columns: minmax(0, 1fr); } .plan.top { margin-top: 0; } }
@media (max-width: 700px) { .build, .addon-grid { grid-template-columns: minmax(0, 1fr); } .b-row { grid-template-columns: 40px minmax(0, 1fr) auto; } .b-row .b-price { grid-column: 2; justify-items: start; text-align: left; } .b-row .cart-btn { grid-row: 1 / span 2; grid-column: 3; } .ad-card { grid-template-columns: 96px minmax(0, 1fr); } .addon { padding: 14px; } }

/* ---------- developing games: catalogue and game screens ---------- */
.g-grid-list { margin-top: 22px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.game-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 230px; border-radius: 28px; overflow: hidden; background: var(--gc); box-shadow: var(--sh-2); }
.gc-img { background: #ddd center / cover no-repeat; }
.gc-txt { display: grid; align-content: start; gap: 10px; padding: 20px; color: #fff; }
.gc-txt h3 { margin: 0; display: flex; align-items: center; gap: 6px; font: 800 22px/1.15 var(--f); }
.gc-txt h3 .ic { color: #FFE27A; }
.gc-txt p { margin: 0; font-size: 14px; line-height: 1.45; opacity: .95; }
.gc-btn { margin-top: auto; justify-self: start; display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 26px; border: 0; border-radius: 14px; background: rgba(255, 255, 255, .28); color: #fff; font: 800 15px var(--f); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; cursor: pointer; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .5); }
.gc-btn:hover { background: rgba(255, 255, 255, .4); }
.gc-btn .ic { width: 18px; height: 18px; }
.gc-txt small { opacity: .9; font-weight: 700; }
@media (max-width: 760px) { .g-grid-list { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 460px) { .game-card { grid-template-columns: minmax(0, 1fr); } .gc-img { aspect-ratio: 4 / 3; } }
.game { background: linear-gradient(180deg, color-mix(in srgb, var(--bar) 18%, #fff), #F3F1FF); }
.g-title { font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-top { margin-left: auto; display: flex; gap: 8px; }
.g-pill { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 12px; background: rgba(0, 0, 0, .2); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.g-pill .ic { width: 18px; height: 18px; }
.g-pill.low { background: var(--bad); }
.g-stage { padding-bottom: 60px; }
.g-intro { position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; padding: 16px; background: rgba(28, 24, 72, .45); }
.g-intro-card { width: min(440px, 100%); display: grid; justify-items: center; gap: 12px; padding: 0 0 24px; border-radius: 30px; background: #fff; text-align: center; overflow: hidden; box-shadow: var(--sh-2); animation: rise .35s; }
.gi-img { width: 100%; aspect-ratio: 4 / 3; background: #ddd center / cover no-repeat; }
.g-intro-card h2 { margin: 6px 0 0; font: 800 28px/1.1 var(--f); color: var(--ink); }
.g-intro-card p { margin: 0 24px; color: var(--ink-2); line-height: 1.5; }
.go-text { font-size: 18px; color: var(--ink) !important; }
.go-rec { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 12px; background: #FFF4D6; color: #8A5A00 !important; font-weight: 800; }
.go-rec .ic { width: 18px; height: 18px; color: #FFC23D; }
.go-egg .egg { font-size: 22px; color: var(--v-d); }
.go-egg .egg .art { width: 30px; height: 30px; }
/* Uchqur hisob */
.sp { width: min(720px, 100%); display: grid; gap: 22px; justify-items: center; }
.sp-bar { width: 100%; height: 12px; border-radius: 6px; background: rgba(255, 255, 255, .7); overflow: hidden; }
.sp-bar i { display: block; height: 100%; width: 100%; border-radius: 6px; background: linear-gradient(90deg, #FFC23D, #FF8A3D); transition: width 1s linear; }
.sp-q { min-width: 300px; padding: 30px 46px; border-radius: 80px; background: #fff; font: 800 clamp(40px, 8vw, 64px)/1 var(--f); color: var(--ink); text-align: center; box-shadow: 0 14px 0 -4px rgba(255, 255, 255, .7), var(--sh-2); }
.sp-q.pop { animation: pop .3s; }
.sp-opts { width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.sp-o { position: relative; height: 96px; border: 0; border-radius: 48px; background: #fff; color: var(--ink); font: 800 34px var(--f); cursor: pointer; box-shadow: 0 5px 0 #CFD6EA; transition: transform .1s; }
.sp-o small { position: absolute; top: 8px; left: 16px; font-size: 12px; color: var(--ink-2); }
.sp-o:active { transform: translateY(3px); }
.sp-o.right { background: var(--ok); color: #fff; box-shadow: 0 5px 0 #2B9C5E; animation: pop .3s; }
.sp-o.wrong { background: var(--bad); color: #fff; box-shadow: 0 5px 0 #D44; animation: shake .3s; }
.sp-tip { margin: 0; color: var(--ink-2); font-size: 14px; }
@media (max-width: 560px) { .sp-opts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sp-q { min-width: 0; width: 100%; padding: 24px; } .sp-o { height: 76px; font-size: 28px; } }
/* Labirint */
.mz-wrap { width: min(860px, 100%); display: grid; justify-items: center; gap: 18px; }
.mz { position: relative; width: min(100%, calc((100vh - 260px) * var(--w) / var(--h))); aspect-ratio: var(--w) / var(--h); touch-action: none; }
.mz svg { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 8px 16px rgba(120, 40, 90, .2)); }
.mz-star, .mz-dino { position: absolute; width: calc(100% / var(--w)); height: calc(100% / var(--h)); left: calc(var(--x) * 100% / var(--w)); top: calc(var(--y) * 100% / var(--h)); display: grid; place-items: center; transition: left .18s, top .18s; }
.mz-star .art { width: 70%; height: 70%; animation: pulse 2s infinite; border-radius: 50%; }
.mz-dino .mascot { width: 88%; height: 88%; object-fit: contain; }
.mz-dino.bump .mascot { animation: shake .3s; }
.mz-pad { display: grid; grid-template-columns: repeat(3, 64px); grid-template-rows: repeat(2, 64px); gap: 8px; }
.mz-pad button { border: 0; border-radius: 18px; background: #fff; color: var(--bar); display: grid; place-items: center; cursor: pointer; box-shadow: 0 4px 0 #E4D2DF; }
.mz-pad button:active { transform: translateY(3px); box-shadow: none; }
.mz-pad .ic { width: 30px; height: 30px; }
.mv-U { grid-column: 2; grid-row: 1; } .mv-L { grid-column: 1; grid-row: 2; } .mv-D { grid-column: 2; grid-row: 2; } .mv-R { grid-column: 3; grid-row: 2; }
/* Juftini top */
.mm { width: min(680px, 100%); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.mm-card { aspect-ratio: 3 / 4; border: 0; padding: 0; background: none; cursor: pointer; perspective: 800px; }
.mm-in { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .35s; }
.mm-card.up .mm-in, .mm-card.ok .mm-in { transform: rotateY(180deg); }
.mm-back, .mm-face { position: absolute; inset: 0; border-radius: 20px; display: grid; place-items: center; backface-visibility: hidden; box-shadow: var(--sh-2); }
.mm-back { background: radial-gradient(circle at 50% 35%, #FFB05A, #EE8420); }
.mm-back .art { width: 46%; height: auto; opacity: .9; }
.mm-face { background: #fff; transform: rotateY(180deg); }
.mm-face .art { width: 78%; height: auto; mix-blend-mode: multiply; }
.mm-card.ok .mm-face { box-shadow: inset 0 0 0 4px var(--ok), var(--sh-2); }
@media (max-width: 460px) { .mm { gap: 8px; } .mm-back, .mm-face { border-radius: 14px; } }
/* Mantiq kvadrati */
.sd-wrap { display: grid; justify-items: center; gap: 18px; }
.sd { width: min(420px, 92vw); aspect-ratio: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 8px; border-radius: 24px; background: #279C5F; box-shadow: var(--sh-2); }
.sd-c { border: 0; border-radius: 12px; background: #fff; display: grid; place-items: center; cursor: pointer; padding: 10%; }
.sd-c:nth-child(4n + 2) { margin-right: 4px; } .sd-c:nth-child(n + 5):nth-child(-n + 8) { margin-bottom: 4px; }
.sd-c svg { width: 100%; height: 100%; }
.sd-c.given { background: #E6F5EC; cursor: default; }
.sd-c.sel { box-shadow: inset 0 0 0 4px #FFC23D; }
.sd-c.bad { background: var(--bad-l); box-shadow: inset 0 0 0 3px var(--bad); animation: shake .4s; }
.sd-pal { display: flex; gap: 10px; }
.sd-pal button { width: 64px; height: 64px; border: 0; border-radius: 18px; background: #fff; padding: 10px; display: grid; place-items: center; cursor: pointer; box-shadow: 0 4px 0 #CFE3D6; color: var(--ink-2); }
.sd-pal button:active { transform: translateY(3px); box-shadow: none; }
.sd-pal svg { width: 100%; height: 100%; }
.sd-tip { margin: 0; color: var(--ink-2); }
@media (max-width: 420px) { .sd-pal button { width: 54px; height: 54px; } }

/* ---------- new task visuals: patterns, magic square, chess, coding grid, abacus ---------- */
.pattern { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; }
.pattern > span { width: 52px; height: 52px; display: grid; place-items: center; }
.pattern svg { width: 100%; height: 100%; }
.pattern .slot { width: 56px; height: 56px; font-size: 30px; }
.opt.pic .opt-in > .vis-shape { width: 84px; height: 84px; }
.magic { display: grid; grid-template-columns: repeat(3, 76px); gap: 8px; font: 800 34px var(--f); color: var(--ink); }
.magic > span, .magic > .slot { height: 76px; display: grid; place-items: center; border-radius: 16px; background: #F2F1FA; }
.magic > .slot { min-width: 0; width: 100%; }
.piece { font-size: 120px; line-height: 1; color: var(--ink); font-family: "Segoe UI Symbol", "Apple Symbols", "Noto Sans Symbols 2", serif; }
.hero-pic.wide > svg.vis-chess { width: min(100%, 320px); height: auto; aspect-ratio: 1; }
.g-grid { position: relative; width: min(100%, 340px); aspect-ratio: 1; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 4px; padding: 6px; border-radius: 18px; background: #C9D3FF; }
.g-cell { position: relative; border-radius: 10px; background: #fff; display: grid; place-items: center; }
.g-rock { width: 80%; height: 80%; object-fit: contain; mix-blend-mode: multiply; }
.g-star { width: 70%; height: 70%; animation: pulse 2s infinite; border-radius: 50%; }
.g-mark { width: 54%; aspect-ratio: 1; border-radius: 50%; background: #FFC23D; color: var(--ink); display: grid; place-items: center; font: 800 clamp(14px, 3vw, 22px) var(--f); box-shadow: 0 0 0 3px #fff; }
.g-dino { position: absolute; left: calc(6px + var(--x) * (100% - 12px + 4px) / var(--n)); top: calc(6px + var(--y) * (100% - 12px + 4px) / var(--n)); width: calc((100% - 12px - (var(--n) - 1) * 4px) / var(--n)); aspect-ratio: 1; display: grid; place-items: center; pointer-events: none; transition: left .3s, top .3s; }
.g-dino .mascot { width: 92%; height: 92%; object-fit: contain; }
.g-dino.bump { animation: shake .4s; }
.code-read { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; align-items: center; }
.code-prog, .algo-prog { display: flex; flex-wrap: wrap; gap: 6px; min-height: 52px; padding: 8px; border-radius: 16px; background: #2F2F45; }
.code-prog span, .algo-prog span { width: 40px; height: 40px; border-radius: 10px; background: #FFC23D; color: var(--ink); display: grid; place-items: center; font: 800 24px var(--f); }
.algo-prog em { color: rgba(255, 255, 255, .6); font-size: 14px; padding: 8px; }
.algo-prog span.cur { background: #3CC37A; color: #fff; }
.algo { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 20px; align-items: center; }
.algo-side { display: grid; gap: 12px; }
.algo-keys { display: flex; flex-wrap: wrap; gap: 8px; }
.algo-keys .chip { min-width: 56px; font-size: 26px; cursor: pointer; }
.algo-side .btn-v { justify-self: start; }
@media (max-width: 640px) { .algo { grid-template-columns: minmax(0, 1fr); justify-items: center; } .algo-side { justify-items: center; } .algo-side .btn-v { justify-self: center; } }
.arrows { font-size: 1.3em; letter-spacing: .1em; }
/* number house (son tarkibi), counting row, in/on/under scene, ruler and angle */
.house { position: relative; width: 170px; padding: 46px 0 0; display: grid; grid-template-columns: 1fr 1fr; font: 800 34px/1 var(--f); color: var(--ink); }
.house::before { content: ""; position: absolute; left: -6px; right: -6px; top: 0; height: 52px; background: #FF8A5B; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.house > b { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); z-index: 1; font-size: 28px; color: #fff; }
.house > span { height: 70px; display: grid; place-items: center; background: #EAE6FF; border: 3px solid #765FDE; }
.house > span:nth-of-type(1) { border-right-width: 1.5px; } .house > span:nth-of-type(2) { border-left-width: 1.5px; color: var(--v); }
.row-pics { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.row-pics > span { width: 74px; height: 74px; border-radius: 18px; display: grid; place-items: center; }
.row-pics > span.mark { box-shadow: inset 0 0 0 4px #FF5C5C; background: #FFF1F1; }
.row-pics .art { width: 62px; height: 62px; mix-blend-mode: multiply; }
.prep { position: relative; width: 240px; height: 210px; }
.prep .pr-box { position: absolute; left: 50%; bottom: 10px; width: 150px; height: auto; transform: translateX(-50%); z-index: 2; }
.prep .pr-cat { position: absolute; left: 50%; width: 104px; height: auto; transform: translateX(-50%); z-index: 1; }
.prep.on .pr-cat { bottom: 118px; z-index: 3; }
.prep.in .pr-cat { bottom: 64px; }
.prep.under .pr-box { bottom: 92px; }
.prep.under .pr-cat { bottom: 0; z-index: 3; }
.hero-pic.wide > svg.vis-ruler { width: min(100%, 580px); height: auto; }
.hero-pic > svg.vis-angle { width: 220px; height: auto; }
@media (max-width: 460px) { .row-pics > span { width: 56px; height: 56px; } .row-pics .art { width: 46px; height: 46px; } }
.hero-pic.wide > svg.vis-abacus { width: min(100%, 520px); height: auto; }
.opt .price { display: block; margin-top: 6px; font-size: 16px; }
.opt.pic .opt-in { display: grid; justify-items: center; }

/* ---------- homework helper Zukko (chat over the page) ---------- */
.modal.tutor { display: block; padding: 0; overflow: hidden; background: rgba(16, 12, 44, .74); backdrop-filter: blur(2px); }
.tu-note { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); margin: 0; color: rgba(255, 255, 255, .85); font-size: 14px; white-space: nowrap; }
.tu-side { position: absolute; right: 22px; top: 22px; z-index: 2; display: grid; gap: 12px; }
.tu-btn, .tu-btn.m-x { position: static; width: 56px; height: 56px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: var(--sh-2); }
.tu-btn .ic { width: 26px; height: 26px; }
.tu-hero { position: absolute; left: 1%; bottom: -3%; width: min(28vw, 340px); pointer-events: none; }
.tu-float { animation: float 4s ease-in-out infinite; }
.tu-chat { position: absolute; left: 50%; top: 48px; bottom: 18px; width: min(660px, calc(100% - 32px)); transform: translateX(-50%); display: flex; flex-direction: column; gap: 10px; }
.tu-log { flex: 1; min-height: 0; overflow-y: auto; mask-image: linear-gradient(transparent, #000 28px); display: flex; flex-direction: column; gap: 12px; padding: 8px 4px; scrollbar-width: thin; }
.tu-msg { max-width: 90%; padding: 16px 20px; border-radius: 26px; background: #fff; color: var(--ink); font-size: 17px; line-height: 1.45; box-shadow: var(--sh-2); animation: rise .3s; overflow-wrap: anywhere; }
.tu-msg.bot { align-self: flex-start; border-bottom-left-radius: 6px; }
.tu-msg.me { align-self: flex-end; background: var(--v); color: #fff; border-bottom-right-radius: 6px; }
.tu-msg.typing { display: flex; gap: 6px; padding: 20px 22px; }
.tu-msg.typing i { width: 9px; height: 9px; border-radius: 50%; background: #B9B3D9; animation: tu-dot 1s infinite; }
.tu-msg.typing i:nth-child(2) { animation-delay: .15s; } .tu-msg.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes tu-dot { 50% { transform: translateY(-5px); opacity: .5; } }
.tu-msg .art { display: inline-block; width: 70px; height: 70px; mix-blend-mode: multiply; }
.tu-msg .btn-v { margin-top: 10px; }
.tu-ex { margin-top: 10px; padding: 14px 16px; border-radius: 18px; background: #EEEAFE; font-size: 14px; line-height: 1.45; }
.tu-ex p { margin: 0; }
.tu-ex svg { display: block; width: 100%; height: auto; margin-top: 8px; font-family: var(--f); }
.tu-photo { display: block; max-width: 220px; border-radius: 14px; }
.tu-inl .ic { width: 18px; height: 18px; vertical-align: -3px; color: var(--ink-2); }
.tu-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tu-chips .chip { min-height: 40px; font-size: 14px; cursor: pointer; background: rgba(255, 255, 255, .92); }
.tu-in { display: flex; align-items: center; gap: 10px; }
.tu-in input[type=text] { flex: 1; min-width: 0; height: 60px; padding: 0 20px; border: 0; border-radius: 18px; font: 500 17px var(--f); color: var(--ink); background: #fff; box-shadow: var(--sh-2); }
.tu-in input[type=text]:focus { outline: 3px solid var(--gold); }
.tu-round { flex: none; width: 60px; height: 60px; border: 0; border-radius: 50%; background: var(--v); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 4px 0 var(--v-d); }
.tu-round .ic { width: 26px; height: 26px; }
.tu-round.send { background: #3CC37A; box-shadow: 0 4px 0 #2B9C5E; }
.tu-round.on { background: var(--bad); animation: pulse 1.2s infinite; }
@media (max-width: 860px) {
  .tu-hero, .tu-note { display: none; }
  .tu-side { top: 8px; right: 8px; display: flex; }
  .tu-btn, .tu-btn.m-x { width: 42px; height: 42px; }
  .tu-chat { top: 58px; bottom: 10px; }
  .tu-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } .tu-chips .chip { flex: none; }
  .tu-in { gap: 6px; } .tu-round { width: 44px; height: 44px; } .tu-round .ic { width: 22px; height: 22px; } .tu-in input[type=text] { height: 50px; padding: 0 14px; font-size: 16px; }
  .tu-msg { font-size: 16px; }
}

/* ---------- pet kitchen ---------- */
.kitchen { background: linear-gradient(rgba(40, 24, 120, .84), rgba(34, 20, 104, .92)), url(img/p/room.webp) center / cover; }
.k-lvl { display: grid; gap: 4px; min-width: 150px; padding: 6px 14px; border-radius: 16px; background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .25); }
.k-lvl b { font-size: 13px; }
.k-lvl .goal-bar { height: 10px; }
.g-top a.g-pill { color: #fff; text-decoration: none; }
.k-stage { position: relative; z-index: 1; flex: 1; display: grid; justify-items: center; align-content: start; gap: 10px; padding: 26px 16px 30px; color: #fff; }
.k-task { margin: 0; max-width: 760px; display: flex; align-items: center; justify-content: center; gap: 12px; text-align: center; font: 700 clamp(22px, 3vw, 34px)/1.25 var(--f); text-wrap: balance; }
.k-task .say { background: rgba(255, 255, 255, .18); color: #fff; }
.k-scene { position: relative; width: min(1000px, 100%); height: 470px; }
.k-think { position: absolute; left: 45%; top: 0; width: 150px; height: 150px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: var(--sh-2); }
.k-think::after { content: ""; position: absolute; left: 6px; bottom: -6px; width: 40px; height: 40px; background: #fff; clip-path: polygon(0 100%, 100% 28%, 62% 0); }
.k-think .art { width: 116px; height: 116px; }
.k-pet { position: absolute; left: 28%; bottom: 0; width: 230px; }
.k-pet .mascot { filter: drop-shadow(0 12px 14px rgba(0, 0, 20, .35)); }
.k-bowl { position: absolute; left: 3%; bottom: 0; width: 240px; height: 160px; }
.k-bowl::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 112px; border-radius: 0 0 120px 120px / 0 0 112px 112px; background: linear-gradient(#FF8FB8, #D9497A); box-shadow: inset 0 -12px 0 rgba(0, 0, 0, .1); }
.k-bowl::after { content: ""; position: absolute; left: -8px; right: -8px; bottom: 96px; height: 30px; border-radius: 50%; background: #FFB8CF; box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .08); }
.k-in { position: absolute; z-index: 1; left: 16px; right: 16px; bottom: 104px; height: 80px; display: flex; justify-content: center; align-items: flex-end; }
.k-in .art { width: 74px; height: 74px; margin: 0 -10px; filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .25)); }
.k-in .art.drop { animation: k-drop .55s cubic-bezier(.3, 1.4, .6, 1); }
@keyframes k-drop { from { transform: translateY(-160px) scale(.7); opacity: 0; } }
.k-dish { position: absolute; z-index: 2; left: 50%; bottom: 92px; transform: translateX(-50%); width: 150px; animation: pop .5s; }
.k-dish .art { width: 150px; height: 150px; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .3)); }
.k-table { position: absolute; right: 0; bottom: 0; width: 46%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 10px; padding: 20px 16px 16px; border-radius: 22px 22px 8px 8px; background: linear-gradient(#26A8EA, #1183CC); box-shadow: inset 0 8px 0 rgba(255, 255, 255, .18), var(--sh-2); }
.k-table > .btn-v { grid-column: 1 / -1; justify-self: center; margin: 30px 0; }
.k-item { display: grid; justify-items: center; gap: 4px; text-align: center; }
.k-item.shake { animation: shake .4s; }
.k-plate { width: 110px; height: 70px; border-radius: 50%; background: #fff; display: grid; place-items: end center; box-shadow: inset 0 -6px 0 #DDE3F5; }
.k-plate .art { width: 84px; height: 84px; margin-bottom: 12px; filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .2)); }
.k-item b { font-size: 18px; }
.k-item .btn-w { margin-top: 4px; color: var(--ink); }
.k-recipe { margin: 16px 0 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; font-weight: 700; }
.k-recipe span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 4px; border-radius: 14px; background: rgba(255, 255, 255, .14); }
.k-recipe .art { width: 34px; height: 34px; border-radius: 10px; background: #fff; }
.k-recipe .got { background: rgba(60, 195, 122, .5); }
@media (max-width: 1000px) and (min-width: 761px) { .k-bowl { width: 180px; height: 130px; } .k-bowl::before { height: 92px; } .k-bowl::after { bottom: 78px; } .k-in { bottom: 84px; } .k-pet { left: 26%; width: 190px; } .k-plate { width: 92px; height: 60px; } .k-plate .art { width: 70px; height: 70px; } }
@media (max-width: 760px) {
  .k-scene { height: auto; display: grid; justify-items: center; gap: 12px; }
  .k-think, .k-pet, .k-bowl, .k-table { position: relative; left: auto; right: auto; top: auto; bottom: auto; transform: none; }
  .k-think { width: 110px; height: 110px; justify-self: end; margin-bottom: -40px; } .k-think .art { width: 80px; height: 80px; }
  .k-pet { width: 170px; } .k-bowl { width: 210px; height: 150px; } .k-table { width: 100%; }
  .k-plate { width: 86px; height: 56px; } .k-plate .art { width: 64px; height: 64px; }
  .k-lvl { min-width: 110px; }
}

/* ---------- landing for guests (uchi.ru main page): hero with clouds and the login card, demo accounts, numbers,
   courses, task carousel, programme by grade, steps, parents, teachers, questions, footer ---------- */
.ld { min-height: 100vh; background: #fff; overflow-x: hidden; }
.ld-hdr { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); box-shadow: 0 1px 0 rgba(47, 47, 69, .08); }
.ld-hdr-in { max-width: 1200px; margin: 0 auto; padding: 0 20px; height: 72px; display: flex; align-items: center; gap: 12px; }
.ld-hdr .logo { font-size: 30px; margin-right: auto; }
.ld-nav { display: flex; gap: 2px; }
.ld-nav button { height: 40px; padding: 0 14px; border: 0; border-radius: 12px; background: none; font: 800 14px var(--f); letter-spacing: .05em; text-transform: uppercase; color: var(--ink); cursor: pointer; }
.ld-nav button:hover { background: #F2F0FA; color: var(--v-d); }
.ld-in, .ld-submit { height: 48px; padding: 0 28px; border: 0; border-radius: 14px; background: #FF5F63; color: #fff; font: 800 16px var(--f); letter-spacing: .05em; text-transform: uppercase; cursor: pointer; box-shadow: 0 4px 0 #D9464B; transition: transform .12s, filter .12s; }
.ld-in:hover, .ld-submit:hover { filter: brightness(1.05); }
.ld-in:active, .ld-submit:active { transform: translateY(3px); box-shadow: 0 1px 0 #D9464B; }
.land { max-width: 1200px; margin: 0 auto; padding: 24px 20px 56px; display: grid; gap: 40px; }
.ld h2 { margin: 0; font: 900 clamp(28px, 3.6vw, 44px)/1.1 var(--f); letter-spacing: -.02em; color: var(--ink); text-wrap: balance; }
.ld-sec-h { display: grid; gap: 8px; max-width: 760px; }
.ld-sec-h p { margin: 0; font-size: 18px; line-height: 1.5; color: var(--ink-2); }
/* hero */
.ld-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 400px); gap: 32px; align-items: start; min-height: 560px; padding: 56px 48px 150px; border-radius: 44px; overflow: hidden; color: #fff;
  background: radial-gradient(40% 50% at 85% 10%, rgba(255, 255, 255, .14), transparent 70%), radial-gradient(60% 70% at 10% 0%, #8A7BF6 0, transparent 70%), linear-gradient(160deg, #6E5CEB, #5240D6 70%); }
.ld-hero-l { position: relative; z-index: 2; display: grid; justify-items: start; gap: 20px; }
.ld-kicker { padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .16); font: 700 14px var(--f); letter-spacing: .02em; }
.ld-hero h1 { margin: 0; max-width: 12ch; font: 900 clamp(44px, 6vw, 76px)/.98 var(--f); letter-spacing: -.035em; color: #fff; text-wrap: balance; }
.ld-hero-l > p { margin: 0; max-width: 36ch; font-size: 20px; line-height: 1.4; opacity: .92; }
.ld-hero-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.ld-reg { height: 58px; padding: 0 30px; border-radius: 16px; font-size: 16px; text-transform: uppercase; letter-spacing: .06em; color: #2D2577; box-shadow: 0 6px 0 rgba(30, 20, 110, .25); }
.ld-ghost { height: 58px; padding: 0 26px; border-radius: 16px; border: 2px solid rgba(255, 255, 255, .7); background: transparent; color: #fff; font: 800 16px var(--f); letter-spacing: .02em; cursor: pointer; }
.ld-ghost:hover { background: rgba(255, 255, 255, .12); }
.ld-login { position: relative; z-index: 3; display: grid; gap: 12px; padding: 30px 28px 18px; border-radius: 34px; background: #fff; color: var(--ink); box-shadow: 0 24px 50px rgba(30, 20, 110, .3); }
.ld-login h2 { margin: 0 0 4px; text-align: center; font: 800 26px var(--f); letter-spacing: 0; }
.ld-login input { height: 56px; padding: 0 18px; border-radius: 14px; border: 2px solid #8E90A8; font: 500 18px var(--f); color: var(--ink); background: #fff; }
.ld-login input:focus { outline: none; border-color: var(--v); box-shadow: 0 0 0 4px rgba(118, 95, 222, .15); }
.ld-login .btn-link { height: 34px; color: var(--ink); font-weight: 500; }
.ld-login .btn-link:hover { color: var(--v-d); }
.ld-login.shake { animation: shake .4s; }
.ld-err { margin: -2px 0 0; color: #E0393E; font-size: 14px; font-weight: 600; }
.ld-clouds { position: absolute; left: 0; right: 0; bottom: 0; height: 170px; z-index: 1; pointer-events: none; }
.ld-clouds i { position: absolute; bottom: -60px; border-radius: 50%; background: #8B7EF3; }
.ld-clouds i:nth-child(1) { left: -6%; width: 46%; height: 180px; background: #7D6FF0; } .ld-clouds i:nth-child(2) { left: 26%; width: 38%; height: 210px; background: #9A8FF6; }
.ld-clouds i:nth-child(3) { left: 55%; width: 34%; height: 170px; background: #8678F2; } .ld-clouds i:nth-child(4) { right: -8%; width: 34%; height: 200px; background: #9A8FF6; }
.ld-trio { position: absolute; z-index: 2; right: 5%; bottom: -26px; width: min(440px, 36%); pointer-events: none; filter: drop-shadow(0 14px 18px rgba(20, 10, 80, .35)); animation: ld-peek 1s cubic-bezier(.2, 1.3, .4, 1) .2s both; }
@keyframes ld-peek { from { transform: translateY(120px); } }
/* demo accounts */
.ld-demo { display: grid; gap: 22px; scroll-margin-top: 90px; }
.ld-accs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ld-acc2 { position: relative; display: grid; grid-template-rows: auto auto 1fr auto; gap: 10px; padding: 0 18px 18px; border-radius: 28px; background: #fff; box-shadow: 0 10px 30px rgba(40, 30, 110, .1), inset 0 0 0 2px #EEEBFA; overflow: hidden; transition: transform .15s, box-shadow .15s; }
.ld-acc2:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(40, 30, 110, .16), inset 0 0 0 2px #E2DDF8; }
.ld-acc-ava { height: 130px; margin: 0 -18px; display: grid; place-items: end center; overflow: hidden; }
.ld-acc2.c0 .ld-acc-ava { background: linear-gradient(160deg, #FFD8E4, #FFB6CC); } .ld-acc2.c1 .ld-acc-ava { background: linear-gradient(160deg, #D9F2FF, #A9DEFB); }
.ld-acc2.c2 .ld-acc-ava { background: linear-gradient(160deg, #DFF7D9, #B3E8A6); } .ld-acc2.c3 .ld-acc-ava { background: linear-gradient(160deg, #FFF0C4, #FFD978); }
.ld-acc-ava .mascot { width: 118px; margin-bottom: -18px; transition: transform .2s; }
.ld-acc2:hover .ld-acc-ava .mascot { transform: translateY(-6px) rotate(-3deg); }
.ld-acc-t { display: grid; gap: 2px; }
.ld-acc-t b { font: 800 22px var(--f); color: var(--ink); }
.ld-acc-t span { font-size: 14px; color: var(--ink-2); }
.ld-cred { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ld-cred div { padding: 8px 10px; border-radius: 14px; background: #F4F2FC; }
.ld-cred dt { font: 700 11px var(--f); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.ld-cred dd { margin: 2px 0 0; font: 800 20px ui-monospace, "SF Mono", Menlo, monospace; color: var(--v-d); }
.ld-acc-go { height: 48px; border: 0; border-radius: 14px; background: var(--v); color: #fff; font: 800 16px var(--f); display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; box-shadow: 0 4px 0 var(--v-d); }
.ld-acc-go .ic { width: 18px; height: 18px; }
.ld-acc-go:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--v-d); }
.ld-mine-h { margin: 6px 0 0; font: 700 15px var(--f); color: var(--ink-2); }
.ld-mine { display: flex; flex-wrap: wrap; gap: 10px; }
.ld-acc { display: grid; grid-template-columns: 38px auto; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border: 0; border-radius: 16px; background: #F4F2FC; color: var(--ink); text-align: left; cursor: pointer; }
.ld-acc .ava { width: 38px; height: 38px; border-radius: 50%; background: #EAE6FF; overflow: hidden; display: block; }
.ld-acc .ava .mascot { width: 140%; max-width: none; margin: -6% 0 0 -20%; }
.ld-acc b { display: grid; font-size: 15px; line-height: 1.2; } .ld-acc small { font-weight: 500; font-size: 12px; color: var(--ink-2); }
/* numbers */
.ld-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ld-stats div { display: grid; gap: 4px; padding: 22px 20px; border-radius: 26px; background: #F5F3FD; }
.ld-stats b { font: 900 clamp(34px, 4vw, 52px)/1 var(--f); letter-spacing: -.02em; color: var(--v); }
.ld-stats span { font: 700 16px var(--f); color: var(--ink); }
/* courses */
.ld-box { display: grid; gap: 20px; padding: 40px clamp(18px, 4vw, 48px) 0; border-radius: 44px; background: #F3F1FC; overflow: hidden; scroll-margin-top: 90px; }
.ld-box h3 { margin: 6px 0 0; font: 800 22px var(--f); color: var(--ink); }
.ld-subj { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ld-s { position: relative; display: grid; align-content: end; min-height: 160px; padding: 18px; border-radius: 28px; overflow: hidden; color: #fff; transition: transform .15s; }
.ld-s:hover { transform: translateY(-4px); }
.ld-s .mascot { position: absolute; right: -6%; bottom: -14%; width: 62%; transition: transform .2s; }
.ld-s:hover .mascot { transform: translateY(-6px); }
.ld-s b { position: relative; max-width: 60%; font: 800 21px/1.15 var(--f); }
.ld-s.s-uz { background: linear-gradient(140deg, #1FC6B0, #0EA594); } .ld-s.s-math { background: linear-gradient(140deg, #3D8BFF, #2563E8); }
.ld-s.s-ru { background: linear-gradient(140deg, #FF7A59, #F2533C); } .ld-s.s-en { background: linear-gradient(140deg, #9B6CFF, #7B4FE8); }
.ld-crs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ld-c { display: grid; grid-template-columns: 76px minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 14px; padding: 14px; border-radius: 22px; background: #fff; box-shadow: var(--sh); }
.ld-c-img { grid-row: span 2; width: 76px; height: 76px; border-radius: 18px; background: center / cover; }
.ld-c b { font: 800 18px/1.2 var(--f); color: var(--ink); }
.ld-c p { margin: 4px 0 0; font-size: 14px; line-height: 1.4; color: var(--ink-2); }
.ld-go { justify-self: stretch; display: flex; align-items: center; justify-content: center; gap: 10px; height: 74px; margin: 6px calc(-1 * clamp(18px, 4vw, 48px)) 0; border: 0; background: #E7E3FA; font: 800 18px var(--f); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); cursor: pointer; }
.ld-go .ic { color: var(--v); transition: transform .15s; }
.ld-go:hover { background: #DCD6F7; } .ld-go:hover .ic { transform: translateX(4px); }
.ld-go.pill { justify-self: start; height: 60px; margin: 6px 0 0; padding: 0 30px; border-radius: 18px; background: var(--v); color: #fff; box-shadow: 0 5px 0 var(--v-d); }
.ld-go.pill .ic { color: #fff; }
/* task carousel */
.ld-cards { display: grid; gap: 16px; }
.ld-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.ld-tabs button { height: 44px; padding: 0 20px; border: 0; border-radius: 14px; background: #F0EEF8; font: 800 15px var(--f); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); cursor: pointer; transition: background .15s, color .15s; }
.ld-tabs button.on { background: var(--v); color: #fff; }
.ld-shot { margin: 0; display: grid; gap: 10px; }
.ld-shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 30px; box-shadow: 0 18px 40px rgba(40, 30, 110, .16); background: #EDE9FF; }
.ld-shot figcaption { font-size: 16px; color: var(--ink-2); }
.ld-bars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ld-bars button { height: 22px; padding: 9px 0; border: 0; background: none; cursor: pointer; }
.ld-bars i { display: block; height: 4px; border-radius: 2px; background: #E2E1EA; overflow: hidden; }
.ld-bars i::after { content: ""; display: block; height: 100%; width: 0; background: var(--ink); }
.ld-bars .seen i::after { width: 100%; }
.ld-bars .on i::after { animation: ld-fill 5s linear forwards; }
@keyframes ld-fill { to { width: 100%; } }
/* programme by grade */
.ld-prog { display: grid; gap: 18px; scroll-margin-top: 90px; }
.ld-prog-g { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ld-pg { display: grid; align-content: start; gap: 12px; padding: 18px; border-radius: 26px; background: #fff; box-shadow: 0 8px 24px rgba(40, 30, 110, .08), inset 0 0 0 2px #EFECFA; animation: rise .35s both; }
.ld-pg header { display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: center; column-gap: 10px; }
.ld-pg header .mascot { grid-row: span 2; width: 52px; height: 52px; object-fit: contain; border-radius: 16px; }
.ld-pg.s-uz header .mascot { background: #D7F6F1; } .ld-pg.s-math header .mascot { background: #DCE8FF; } .ld-pg.s-ru header .mascot { background: #FFE3DB; } .ld-pg.s-en header .mascot { background: #EAE0FF; }
.ld-pg header b { font: 800 18px var(--f); color: var(--ink); }
.ld-pg header span { font-size: 13px; color: var(--ink-2); }
.ld-pg ol { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 8px; }
.ld-pg li { counter-increment: s; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 8px; font-size: 15px; line-height: 1.35; color: var(--ink); }
.ld-pg li::before { content: counter(s); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 800 13px var(--f); color: #fff; }
.ld-pg.s-uz li::before { background: #16B39F; } .ld-pg.s-math li::before { background: #2F73F0; } .ld-pg.s-ru li::before { background: #F2603F; } .ld-pg.s-en li::before { background: #8B5CF2; }
/* why */
.ld-why { display: grid; gap: 20px; }
.ld-row { display: grid; grid-template-columns: 180px minmax(0, 1fr); align-items: center; gap: 26px; }
.ld-row-art { width: 180px; height: 150px; border-radius: 30px; background: linear-gradient(140deg, #E9E4FF, #D6CCFF); display: grid; place-items: end center; overflow: hidden; }
.ld-row-art .mascot { width: 92%; margin-bottom: -4%; }
.ld-row h3 { margin: 0 0 6px; font: 800 24px var(--f); color: var(--ink); }
.ld-row p { margin: 0; font-size: 18px; line-height: 1.5; color: var(--ink-2); max-width: 56ch; }
/* steps */
.ld-steps { display: grid; gap: 22px; }
.ld-steps ol { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ld-steps li { position: relative; display: grid; justify-items: center; gap: 8px; padding: 26px 18px 22px; border-radius: 28px; background: linear-gradient(180deg, #F6F4FF, #EFEBFF); text-align: center; }
.ld-step-n { position: absolute; left: 18px; top: 16px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--v); color: #fff; font: 900 20px var(--f); box-shadow: 0 4px 0 var(--v-d); }
.ld-step-art .mascot { width: 128px; height: 110px; object-fit: contain; }
.ld-steps b { font: 800 20px var(--f); color: var(--ink); }
.ld-steps li > span:last-child { font-size: 16px; color: var(--ink-2); }
/* parents and teachers */
.ld-split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: 36px; padding: 36px; border-radius: 44px; background: linear-gradient(140deg, #FFF3D6, #FFE3B8); scroll-margin-top: 90px; }
.ld-split.rev { background: linear-gradient(140deg, #DFF4FF, #C6E8FB); }
.ld-split.rev .ld-split-art { order: 2; }
.ld-split > div { display: grid; gap: 16px; align-content: center; }
.ld-split-art { display: grid; place-items: center; }
.ld-split-art .mascot { width: min(380px, 100%); }
.ld-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ld-checks li { display: flex; align-items: flex-start; gap: 12px; font-size: 18px; line-height: 1.4; color: var(--ink); }
.ld-checks .ic { flex: none; width: 28px; height: 28px; padding: 5px; border-radius: 50%; background: var(--v); color: #fff; }
.ld-split .sub { font-size: 15px; }
/* questions */
.ld-faq { display: grid; gap: 12px; max-width: 900px; width: 100%; justify-self: center; }
.ld-faq h2 { margin-bottom: 8px; text-align: center; }
.ld-faq details { border-radius: 22px; background: #F5F3FD; overflow: hidden; }
.ld-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px; font: 800 18px var(--f); color: var(--ink); cursor: pointer; list-style: none; }
.ld-faq summary::-webkit-details-marker { display: none; }
.ld-faq summary .ic { flex: none; transition: transform .2s; color: var(--v); }
.ld-faq details[open] summary .ic { transform: rotate(180deg); }
.ld-faq details p { margin: 0; padding: 0 24px 22px; font-size: 17px; line-height: 1.55; color: var(--ink-2); }
/* final call */
.ld-cta { position: relative; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; gap: 24px; padding: 40px 48px; border-radius: 44px; overflow: hidden; color: #fff; background: radial-gradient(50% 80% at 0% 100%, #8A7BF6 0, transparent 70%), linear-gradient(140deg, #6E5CEB, #4C38CF); }
.ld-cta h2 { color: #fff; }
.ld-cta p { margin: 8px 0 18px; font-size: 18px; opacity: .9; }
.ld-cta-art { width: 100%; max-width: 380px; justify-self: center; filter: drop-shadow(0 12px 16px rgba(20, 10, 80, .35)); }
/* footer */
.ld-foot2 { background: #1F2459; color: rgba(255, 255, 255, .8); }
.ld-foot-in { max-width: 1200px; margin: 0 auto; padding: 44px 20px 24px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.ld-foot2 .logo { color: #fff; } .ld-foot2 .logo span { color: #B3A6FF; }
.ld-foot-brand p { margin: 10px 0 0; max-width: 30ch; font-size: 14px; line-height: 1.5; }
.ld-foot-in > div:not(.ld-foot-brand) { display: grid; align-content: start; justify-items: start; gap: 8px; }
.ld-foot-in b { color: #fff; font-size: 15px; margin-bottom: 4px; }
.ld-foot-in button { padding: 0; border: 0; background: none; color: rgba(255, 255, 255, .78); font: 500 15px var(--f); cursor: pointer; text-align: left; }
.ld-foot-in button:hover { color: #fff; }
.ld-copy { max-width: 1200px; margin: 0 auto; padding: 16px 20px 32px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px; color: rgba(255, 255, 255, .6); }
/* scroll reveal */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .3, 1); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; } }
/* registration */
.m-reg .m-card { width: min(460px, 100%); }
.reg label, .reg .lbl { margin: 0; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.reg input { height: 52px; padding: 0 16px; border-radius: 16px; border: 2px solid #E3E1F0; font: 600 18px var(--f); color: var(--ink); }
.reg input:focus { outline: none; border-color: var(--v); }
.reg input.bad { border-color: var(--bad); }
.m-art.wide { width: 260px; }
@media (max-width: 1060px) {
  .ld-nav { display: none; }
  .ld-accs, .ld-prog-g { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ld-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ld-foot-in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .ld-hero { grid-template-columns: minmax(0, 1fr); padding: 36px 24px 230px; }
  .ld-trio { right: auto; left: 50%; transform: translateX(-50%); width: min(420px, 90%); animation: none; }
  .ld-crs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ld-split, .ld-split.rev, .ld-cta { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .ld-split.rev .ld-split-art { order: 0; }
  .ld-split-art .mascot { width: min(240px, 66%); }
  .ld-cta { padding: 30px 24px; } .ld-cta-art { max-width: 260px; }
  .ld-steps ol { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .ld-hdr-in { height: 60px; gap: 6px; padding: 0 14px; } .ld-hdr .logo { font-size: 24px; }
  .ld-in { height: 40px; padding: 0 14px; font-size: 14px; }
  .land { padding: 16px 16px 40px; gap: 30px; }
  .ld-hero { border-radius: 30px; padding: 28px 20px 200px; } .ld-hero-l > p { font-size: 17px; }
  .ld-reg, .ld-ghost { height: 52px; padding: 0 20px; font-size: 14px; }
  .ld-accs, .ld-prog-g { grid-template-columns: minmax(0, 1fr); }
  .ld-subj { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ld-s { min-height: 120px; } .ld-s b { font-size: 17px; }
  .ld-crs { grid-template-columns: minmax(0, 1fr); }
  .ld-row { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; } .ld-row-art { width: 96px; height: 96px; border-radius: 22px; }
  .ld-row h3 { font-size: 19px; } .ld-row p { font-size: 15px; }
  .ld-split { padding: 22px; border-radius: 30px; } .ld-checks li { font-size: 16px; }
  .ld-go { height: 60px; font-size: 15px; }
  .ld-foot-in { grid-template-columns: minmax(0, 1fr); }
  .ld-faq summary { padding: 16px 18px; font-size: 16px; } .ld-faq details p { padding: 0 18px 18px; font-size: 15px; }
}

/* ---------- diamonds shop (uchi.ru/diamonds) ---------- */
body:has(.gems-pg) { background: #2A1C8C; }
.gems-pg { min-height: 100vh; padding: 16px 16px 60px; color: #fff; background: radial-gradient(60% 50% at 100% 100%, #A42DC9 0, transparent 70%), linear-gradient(180deg, #3B27B5, #2A1C8C 70%); }
.gp-top { max-width: 960px; margin: 0 auto; display: flex; align-items: center; gap: 14px; }
.gp-top .logo { margin: 0 auto; color: #fff; } .gp-top .logo span { color: #C9B8FF; }
.gp-top .back-c { color: var(--ink); }
.gp-head { max-width: 960px; margin: 18px auto 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.gp-head h1 { margin: 0; font: 800 clamp(30px, 4vw, 44px) var(--f); }
.gp-bal { display: inline-flex; align-items: center; gap: 6px; font: 800 36px var(--f); }
.gp-bal .art { width: 40px; height: 40px; }
.gp-packs { max-width: 960px; margin: 28px auto 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.gp-pack { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto; gap: 10px; padding: 18px 16px 16px; border-radius: 26px; background: #5133D2; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .08); }
.gp-pack.hit { background: #5B3EE0; box-shadow: inset 0 0 0 3px #9C8BFF; }
.gp-n { display: flex; align-items: center; gap: 4px; font: 800 26px var(--f); }
.gp-n .art { width: 26px; height: 26px; }
.gp-hit { position: absolute; top: -12px; right: 14px; padding: 3px 10px; border-radius: 10px; background: #22C55E; font: 800 14px var(--f); letter-spacing: .05em; }
.gp-off { position: absolute; right: 8px; top: 52%; padding: 2px 8px; border-radius: 8px; background: #FFC23D; color: #3A2400; font: 800 16px var(--f); }
.gp-btn { height: 50px; border: 0; border-radius: 16px; background: #7159F0; color: #fff; font: 800 17px var(--f); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; }
.gp-btn s { font-size: 13px; font-weight: 600; opacity: .75; }
.gp-btn.red { background: #FF5F63; box-shadow: 0 4px 0 #D9464B; }
.gp-btn:disabled { background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .45); cursor: default; }
.gp-btn:not(:disabled):hover { filter: brightness(1.08); }
.gp-pack.wait .pile { opacity: .45; }
.gp-timer { margin: 0; display: grid; justify-items: center; gap: 4px; text-align: center; font-size: 14px; font-weight: 700; }
.gp-timer span { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 10px; background: #fff; color: var(--v-d); }
.gp-timer .ic { width: 16px; height: 16px; } .gp-timer em { font-style: normal; }
.pile { position: relative; display: block; width: 100%; max-width: 170px; aspect-ratio: 1.45; margin: 0 auto; }
.pile .art { position: absolute; width: 34%; height: auto; filter: drop-shadow(0 6px 8px rgba(30, 0, 80, .35)); }
.pile .art:nth-child(1) { left: 33%; bottom: 4%; width: 38%; } .pile .art:nth-child(2) { left: 6%; bottom: 6%; transform: rotate(-14deg); } .pile .art:nth-child(3) { left: 60%; bottom: 6%; transform: rotate(12deg); }
.pile .art:nth-child(4) { left: 20%; bottom: 30%; transform: rotate(-6deg); } .pile .art:nth-child(5) { left: 47%; bottom: 32%; transform: rotate(8deg); }
.pile .art:nth-child(6) { left: -2%; bottom: 26%; width: 26%; transform: rotate(-20deg); } .pile .art:nth-child(7) { left: 74%; bottom: 28%; width: 26%; transform: rotate(18deg); }
.pile .art:nth-child(8) { left: 34%; bottom: 52%; width: 30%; } .pile .art:nth-child(9) { left: 12%; bottom: 52%; width: 22%; transform: rotate(-12deg); }
.pile.p3 { max-width: 130px; }
.gp-what { max-width: 960px; margin: 40px auto 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.gp-what h2 { grid-column: 1 / -1; margin: 0; text-align: center; font: 800 28px var(--f); }
.gp-it { position: relative; display: grid; justify-items: center; gap: 8px; padding: 18px 14px; border-radius: 22px; background: rgba(255, 255, 255, .1); text-align: center; color: #fff; text-decoration: none; }
.gp-it span { display: flex; gap: 6px; } .gp-it span .art { width: 54px; height: 54px; }
.gp-it b { font-size: 16px; }
.gp-it em { position: absolute; top: 10px; right: 10px; padding: 2px 8px; border-radius: 8px; background: #7159F0; font: 700 12px var(--f); font-style: normal; }
.gp-it.soon { opacity: .75; }
a.gp-it:hover { background: rgba(255, 255, 255, .16); }
.gp-demo { max-width: 960px; margin: 28px auto 0; text-align: center; font-size: 13px; opacity: .7; }
a.cur { text-decoration: none; }
@media (max-width: 760px) { .gp-packs { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gp-what { grid-template-columns: minmax(0, 1fr); } }

/* ---------- fortune wheel (prices page) ---------- */
.m-wheel .m-card { width: min(860px, 100%); padding: 28px; background: #5A14A8; color: #fff; }
.m-wheel .m-x { background: none; color: #E6D6FF; }
.wh { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 28px; }
.wh-wheel { position: relative; width: min(380px, 100%); justify-self: center; }
.wh-rot { transform-origin: 50% 50%; }
.wh-disc { display: block; width: 100%; height: auto; font-family: var(--f); filter: drop-shadow(0 10px 24px rgba(20, 0, 60, .4)); }
.wh-ptr { position: absolute; left: -6%; top: 50%; width: 22%; height: 15%; transform: translateY(-50%); border-radius: 0 50px 50px 0; background: #fff; box-shadow: 0 6px 12px rgba(0, 0, 0, .25); }
.wh-ptr::after { content: ""; position: absolute; left: 14%; top: 50%; transform: translateY(-50%); border: 12px solid transparent; border-left: 18px solid #FF4D5E; }
.wh-r { display: grid; gap: 16px; justify-items: start; }
.wh-r h2 { margin: 0; font: 600 clamp(22px, 2.6vw, 30px)/1.25 var(--f); }
.wh-r .btn-v { width: 100%; background: #8A5CFF; box-shadow: 0 4px 0 #6436E0; font-size: 22px; }
.wh-r .btn-v:disabled { opacity: 1; font-size: 30px; }
.wh-r p { margin: 0; color: #E9DDFF; font-size: 17px; line-height: 1.4; }
.wh-prize { display: flex; align-items: center; gap: 0; font: 900 44px var(--f); color: #FFE27A; }
.wh-prize .art { width: 64px; height: 64px; margin-right: -20px; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .3)); }
.wh-again { font-size: 15px !important; opacity: .85; }
.wheel-w { position: fixed; left: 14px; bottom: 14px; z-index: 15; display: grid; justify-items: center; gap: 0; width: 150px; padding: 0; border: 0; background: none; cursor: pointer; }
.ww-ic { width: 108px; height: 108px; border-radius: 50%; border: 6px solid #fff; background: #EDE4FF; box-shadow: var(--sh-2); display: grid; place-items: center; overflow: hidden; }
.ww-ic .wh-disc.mini { width: 112%; max-width: none; filter: none; animation: ww-spin 9s linear infinite; }
@keyframes ww-spin { to { transform: rotate(360deg); } }
.ww-ic.prize { display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 35%, #FFD9F2, #F59AD5); }
.ww-ic.prize .art { width: 46px; height: 46px; margin: 0 -8px; }
.ww-ic.prize b { font: 900 26px var(--f); color: #8A1A6E; }
.ww-l { position: relative; margin-top: -14px; padding: 4px 10px; border-radius: 10px; background: #fff; box-shadow: var(--sh-2); font-size: 13px; font-weight: 700; line-height: 1.25; color: var(--ink); text-align: center; }
.co-prize { background: #FFF2D6 !important; font-weight: 700; }
.co-prize .art { width: 22px; height: 22px; }
@media (max-width: 720px) { .wh { grid-template-columns: minmax(0, 1fr); } .wh-wheel { width: min(300px, 90%); } .wh-r { justify-items: stretch; text-align: center; } .wheel-w { width: 110px; } .ww-ic { width: 72px; height: 72px; border-width: 4px; } .ww-l { font-size: 11px; } }

/* ---------- room: silhouettes of things to buy, the latest award on the wall ---------- */
.rm-item.rm-free { border: 0; padding: 0; background: none; cursor: pointer; animation: none; }
.rm-item.rm-free .art { filter: brightness(0); opacity: .26; transition: opacity .15s, transform .15s; }
.rm-item.rm-free:hover .art, .rm-item.rm-free:focus-visible .art { opacity: .42; transform: scale(1.06); }
.rm-award { position: absolute; left: 41%; bottom: 55%; width: 6.5%; padding: 0; border: 0; background: none; cursor: pointer; transform: rotate(-2deg); }
.rm-award .doc-mini { padding: 4%; gap: 2px; }
.rm-award .doc-mini b { font-size: clamp(4px, .55cqi, 8px); }
.rm-award .doc-mini i:first-child { width: 30%; height: auto; aspect-ratio: 1; }

/* ---------- night mode of the marathon card (21:00–7:00) ---------- */
.mara.night { background: linear-gradient(135deg, #2B3A9A, #1F2370 70%); }
.mara.night .zv-sky { position: absolute; inset: 0; pointer-events: none; }
.mara-n { margin: -6px 0 14px; max-width: 30ch; font-size: 15px; opacity: .9; }
.mara.night .mara-pet { width: 150px; margin-bottom: 0; align-self: center; }
.mara.night .mara-board li { background: rgba(255, 255, 255, .1); } .mara.night .mara-board li.me { background: #3D4FC4; }

/* ---------- animated task engines (engines.js) ---------- */
.chk { justify-self: center; margin-top: 4px; }
.chk .ic { width: 22px; height: 22px; }
@keyframes tz-in { from { transform: scale(0) rotate(-16deg); opacity: 0; } }
@keyframes tz-yes { 40% { transform: scale(1.16); } }
/* find and tap */
.tapz { position: relative; padding: 40px 16px 18px; border-radius: 26px; overflow: hidden; }
.tapz.sc-sky { background: linear-gradient(180deg, #BDE5FF, #E9F7FF 62%, #CFF0C1); }
.tapz.sc-grass { background: linear-gradient(180deg, #E6F9D2, #B8E79A); }
.tapz.sc-lilac { background: linear-gradient(180deg, #F1ECFF, #DCD1FF); }
.tapz.sc-sun { background: linear-gradient(180deg, #FFF3C4, #FFD98A); }
.tapz.sc-sea { background: linear-gradient(180deg, #CBF3FF, #86D9F2); }
.tapz.sc-night { background: linear-gradient(180deg, #2C2F8C, #5B44C2); }
.tz-count { position: absolute; right: 14px; top: 10px; padding: 3px 12px; border-radius: 12px; background: rgba(255, 255, 255, .9); font: 800 16px var(--f); color: var(--ink); font-variant-numeric: tabular-nums; }
.tz-items { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 12px; }
.tz-items.cols-2 { --cols: 2; } .tz-items.cols-3 { --cols: 3; } .tz-items.cols-4 { --cols: 4; } .tz-items.cols-5 { --cols: 5; } .tz-items.cols-6 { --cols: 6; }
.tz-it { position: relative; min-width: 0; padding: 0; border: 0; background: none; cursor: pointer; animation: tz-in .5s cubic-bezier(.2, 1.4, .4, 1) var(--d) both; }
.tz-in { display: grid; place-items: center; gap: 4px; min-height: 96px; height: 100%; padding: 10px 6px; border-radius: 22px; background: #fff; box-shadow: 0 5px 0 rgba(40, 30, 110, .12), 0 10px 18px rgba(40, 30, 110, .1); transform: rotate(var(--r)); font: 800 clamp(20px, 3vw, 28px)/1.15 var(--f); color: var(--ink); overflow-wrap: anywhere; transition: transform .15s, background .15s; }
.tz-in .art { width: clamp(52px, 9vw, 80px); height: clamp(52px, 9vw, 80px); }
.tz-in small { font-size: .55em; font-weight: 700; color: var(--ink-2); }
.tz-it:hover .tz-in, .tz-it:focus-visible .tz-in { transform: rotate(0) scale(1.06); }
.tz-it.ok .tz-in { background: #E3F8EC; box-shadow: 0 0 0 4px var(--ok), 0 10px 18px rgba(30, 140, 80, .25); transform: rotate(0); animation: tz-yes .45s; }
.tz-it.ok::after { content: "✓"; position: absolute; right: -6px; top: -8px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: #fff; font: 900 18px var(--f); animation: tz-in .3s both; }
.tz-it.no .tz-in { background: var(--bad-l); box-shadow: 0 0 0 4px var(--bad); animation: shake .45s; }
.tapz.balloons { padding-top: 46px; background: linear-gradient(180deg, #9ED8FF, #D9F0FF 70%, #FFF3D6); }
.tapz.balloons .tz-it { height: clamp(120px, 18vw, 156px); animation: bl-float var(--fl) ease-in-out var(--d) infinite alternate; }
.tapz.balloons .tz-it > * { animation: tz-in .5s cubic-bezier(.2, 1.4, .4, 1) var(--d) both; }
.bl-svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 6px 6px rgba(20, 40, 90, .18)); }
.bl-t { position: absolute; left: 0; right: 0; top: 18%; font: 900 clamp(18px, 3vw, 28px)/1.1 var(--f); color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, .2); text-align: center; pointer-events: none; }
@keyframes bl-float { from { transform: translateY(6px) rotate(-2deg); } to { transform: translateY(-8px) rotate(2deg); } }
.tapz.balloons .tz-it.ok { animation: bl-pop .4s ease-out forwards; pointer-events: none; }
.tapz.balloons .tz-it.ok::after { content: none; }
@keyframes bl-pop { 50% { transform: scale(1.35); opacity: .9; } to { transform: scale(1.7); opacity: 0; } }
.tapz.balloons .tz-it.no { animation: shake .45s; }
/* number line with a hopping dino */
.hop { overflow-x: auto; padding: 8px 4px 4px; border-radius: 26px; background: linear-gradient(180deg, #DDF2FF, #FFF6DE); }
.hop-line { position: relative; min-width: max(100%, calc(var(--n) * 34px)); height: 210px; margin: 0 auto; padding: 0 22px; box-sizing: border-box; }
.hop-line::before { content: ""; position: absolute; left: 8px; right: 8px; top: 140px; height: 6px; border-radius: 3px; background: var(--ink); }
.hop-t { position: absolute; top: 132px; width: 34px; height: 64px; margin-left: -17px; padding: 0; border: 0; background: none; display: grid; justify-items: center; align-content: start; gap: 4px; cursor: pointer; }
.hop-t, .hop-dino, .hop-arc { left: calc(22px + (100% - 44px) * var(--p, 0)); }
.hop-arc { width: calc((100% - 44px) * var(--w, 0)); }
.hop-t i { width: 4px; height: 22px; border-radius: 2px; background: var(--ink); }
.hop-t b { min-width: 26px; padding: 1px 4px; border-radius: 9px; font: 800 16px var(--f); color: var(--ink); transition: background .15s, color .15s; }
.hop-t:hover b { background: #EAE6FF; color: var(--v-d); }
.hop-t.start b { color: var(--v); }
.hop-t.right b { background: var(--ok); color: #fff; } .hop-t.wrong b { background: var(--bad); color: #fff; }
.hop-dino { position: absolute; top: 58px; width: 70px; margin-left: -35px; transition: left var(--dt, .22s) ease-in-out; z-index: 2; pointer-events: none; }
.hop-dino .mascot { width: 100%; filter: drop-shadow(0 6px 4px rgba(0, 0, 0, .18)); }
.hop-dino.jump .mascot { animation: hop-jump var(--dt, .22s) ease-out; }
@keyframes hop-jump { 50% { transform: translateY(-30px) rotate(-6deg); } }
.hop-arc { position: absolute; top: 96px; height: 40px; border: 3px dashed var(--v); border-bottom: 0; border-radius: 50% 50% 0 0 / 100% 100% 0 0; animation: arc-in .4s var(--d) both; }
.hop-arc.back { border-color: #FF7A3D; }
.hop-arc em { position: absolute; top: -28px; left: 50%; transform: translateX(-50%); padding: 1px 8px; border-radius: 10px; background: var(--v); color: #fff; font: 800 14px var(--f); font-style: normal; white-space: nowrap; }
.hop-arc.back em { background: #FF7A3D; }
@keyframes arc-in { from { opacity: 0; transform: scaleY(0); transform-origin: bottom; } }
/* clock */
.ck { display: grid; justify-items: center; gap: 14px; }
.ck-face { width: min(270px, 68vw); touch-action: none; cursor: grab; filter: drop-shadow(0 10px 14px rgba(60, 40, 140, .2)); }
.ck-face svg { display: block; width: 100%; height: auto; }
.ck-face.ring { animation: ck-ring .6s; }
@keyframes ck-ring { 20%, 60% { transform: rotate(-6deg); } 40%, 80% { transform: rotate(6deg); } }
.ck-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.ck-btns button { height: 44px; padding: 0 14px; border-radius: 12px; border: 0; background: var(--chip); color: var(--ink); font: 700 15px var(--f); box-shadow: 0 3px 0 var(--chip-d); cursor: pointer; }
.ck-btns button:active { transform: translateY(2px); box-shadow: none; }
/* base-ten blocks */
.bk { display: grid; justify-items: center; gap: 14px; }
.bk-mat { display: flex; justify-content: center; gap: 12px; width: 100%; padding: 14px; border-radius: 24px; background: linear-gradient(180deg, #FFF6DC, #FFE3A8); transition: box-shadow .2s; }
.bk-mat.right { box-shadow: 0 0 0 4px var(--ok); } .bk-mat.wrong { animation: shake .45s; }
.bk-col { display: grid; grid-template-rows: auto 1fr auto; justify-items: center; gap: 8px; flex: 0 1 170px; width: 170px; min-width: 0; min-height: 250px; padding: 10px 8px; border-radius: 18px; background: rgba(255, 255, 255, .75); }
.bk-col p { margin: 0; font: 800 13px var(--f); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }
.bk-in { display: flex; flex-wrap: wrap; align-content: flex-end; justify-content: center; gap: 4px; width: 100%; }
.blk { padding: 0; border: 0; cursor: pointer; }
.blk.v1 { width: 20px; height: 20px; border-radius: 5px; background: #FFC23D; box-shadow: inset -3px -3px 0 rgba(0, 0, 0, .15), inset 2px 2px 0 rgba(255, 255, 255, .5); }
.blk.v10 { width: 16px; height: 140px; border-radius: 5px; background: repeating-linear-gradient(180deg, #3CC37A 0 13px, #24995A 13px 14px); box-shadow: inset -3px 0 0 rgba(0, 0, 0, .15); }
.blk.v100 { width: 66px; height: 66px; border-radius: 6px; background: repeating-linear-gradient(90deg, transparent 0 5.6px, rgba(0, 0, 0, .2) 5.6px 6.6px), repeating-linear-gradient(180deg, #2E9BFF 0 5.6px, #1B6FD0 5.6px 6.6px); }
.blk.drop { animation: blk-drop .45s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes blk-drop { from { transform: translateY(-70px) scale(.6); opacity: 0; } }
.bk-add { min-width: 64px; height: 44px; padding: 0 14px; border-radius: 14px; border: 0; background: var(--v); color: #fff; font: 800 20px var(--f); box-shadow: 0 3px 0 var(--v-d); cursor: pointer; }
.bk-add:active { transform: translateY(2px); box-shadow: none; }
.bk-ic { display: none; }
/* fractions */
.fr { display: grid; justify-items: center; gap: 10px; }
.fr-svg { width: min(270px, 66vw); filter: drop-shadow(0 10px 14px rgba(140, 70, 0, .25)); }
.fr-sl { cursor: pointer; outline: none; }
.fr-sl path { fill: #FFE6A3; stroke: #D98F3F; stroke-width: 3; transition: fill .2s; }
.fr-sl:hover path, .fr-sl:focus-visible path { fill: #FFD780; }
.fr-sl .pep { fill: #D9412B; opacity: 0; transition: opacity .25s, transform .25s; transform-box: fill-box; transform-origin: center; transform: scale(.2); }
.fr-sl.on path { fill: #FF9F43; } .fr-sl.on .pep { opacity: 1; transform: scale(1); }
.fr-bar { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 5px; width: min(440px, 92%); padding: 8px; border-radius: 14px; background: #5C3317; box-shadow: 0 8px 14px rgba(60, 30, 10, .3); }
.fr-sq { aspect-ratio: 1; border: 0; border-radius: 7px; background: #8A4F2A; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .2); cursor: pointer; transition: background .2s, transform .2s; }
.fr-sq.on { background: #FF6FA8; transform: scale(1.06); }
.fr-n { margin: 0; font: 800 22px var(--f); color: var(--ink); }
.fr.right .fr-svg, .fr.right .fr-bar { animation: tz-yes .5s; } .fr.wrong { animation: shake .45s; }
/* balance scales */
.scl { display: grid; justify-items: center; padding-top: 6px; }
.scl-beam { --tilt: 0deg; position: relative; z-index: 1; display: flex; justify-content: space-between; width: min(560px, 100%); height: 14px; border-radius: 7px; background: linear-gradient(#A8724A, #7C4E2E); transform: rotate(var(--tilt)); transition: transform .9s cubic-bezier(.3, 1.6, .5, 1); }
.sc-pan { position: relative; top: 12px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px; width: 42%; min-height: 96px; padding: 10px 8px 16px; border-radius: 0 0 50% 50% / 0 0 48px 48px; background: linear-gradient(#FFE08A, #F2B33D); box-shadow: 0 6px 10px rgba(120, 70, 0, .25); transform: rotate(calc(-1 * var(--tilt))); transition: transform .9s cubic-bezier(.3, 1.6, .5, 1); font: 900 clamp(22px, 3.4vw, 32px)/1.1 var(--f); color: var(--ink); text-align: center; }
.sc-pan .art { width: 42px; height: 42px; }
.sc-pan > span { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px; max-width: 100%; }
.scl-post { width: 18px; height: 110px; margin-top: -4px; border-radius: 9px 9px 0 0; background: linear-gradient(90deg, #8B5A36, #6E4325); position: relative; }
.scl-post::after { content: ""; position: absolute; left: 50%; bottom: -10px; width: 150px; height: 18px; transform: translateX(-50%); border-radius: 9px; background: #6E4325; }
.scl-btns { display: flex; gap: 14px; margin-top: 22px; }
.scl-b { width: 86px; height: 74px; border-radius: 20px; border: 0; background: #fff; box-shadow: inset 0 0 0 3px #DCD5FF, 0 4px 0 #CBC2F5; font: 900 42px var(--f); color: var(--v); cursor: pointer; transition: transform .12s; }
.scl-b:hover { transform: translateY(-2px); }
.scl-b.right { background: var(--ok); color: #fff; box-shadow: 0 4px 0 #2B9C5E; } .scl-b.wrong { background: var(--bad); color: #fff; animation: shake .45s; }
/* paying with so‘m notes */
.mn { display: grid; justify-items: center; gap: 14px; }
.mn-shop { display: flex; align-items: center; gap: 16px; padding: 10px 20px; border-radius: 24px; background: linear-gradient(135deg, #FFF1CC, #FFDD8F); }
.mn-item .art { width: 100px; height: 100px; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .15)); }
.mn-tag { padding: 8px 16px; border-radius: 14px; background: #fff; font: 900 clamp(20px, 3vw, 28px) var(--f); color: var(--ink); box-shadow: var(--sh); transform: rotate(-4deg); white-space: nowrap; }
.mn-counter { width: 100%; min-height: 120px; padding: 10px; border-radius: 20px; border: 3px dashed #CFC6F7; background: #F8F6FF; display: grid; justify-items: center; align-content: start; gap: 6px; }
.mn-counter.wrong { border-color: var(--bad); animation: shake .45s; }
.mn-sum { margin: 0; font: 800 20px var(--f); color: var(--ink); font-variant-numeric: tabular-nums; }
.mn-paid { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.mn-wallet { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; width: 100%; padding: 14px; border-radius: 22px; background: linear-gradient(180deg, #7A5232, #5E3C22); box-shadow: inset 0 4px 0 rgba(255, 255, 255, .12); }
.mn-note { width: 128px; padding: 0; border: 0; background: none; cursor: pointer; transition: transform .12s; }
.mn-note:hover { transform: translateY(-4px) rotate(-2deg); }
.mn-note svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .2)); }
.mn-note.in { width: 92px; animation: tz-in .35s both; }
.mn.right .mn-item { animation: mn-buy .9s .2s forwards; }
@keyframes mn-buy { 40% { transform: translateY(-20px) scale(1.15); } to { transform: translateY(40px) scale(.5); opacity: 0; } }
/* column arithmetic */
.cl { display: grid; justify-items: center; gap: 16px; }
.cl-grid { display: grid; padding: 12px 22px 16px 44px; border-radius: 18px; background-color: #fff; background-image: linear-gradient(#DCE6FF 1px, transparent 1px), linear-gradient(90deg, #DCE6FF 1px, transparent 1px); background-size: 46px 46px; box-shadow: inset 0 0 0 2px #DCE6FF, var(--sh); }
.cl-row { position: relative; display: grid; grid-template-columns: repeat(var(--w), 46px); }
.cl-c { height: 46px; display: grid; place-items: center; font: 800 30px var(--f); color: var(--ink); }
.cl-row.carry .cl-c { height: 24px; font-size: 16px; color: var(--bad); opacity: 0; }
.cl-row.carry .cl-c.show { opacity: 1; animation: tz-in .35s both; }
.cl-row.op { border-bottom: 3px solid var(--ink); }
.cl-row.op i { position: absolute; left: -32px; top: -22px; font: 800 30px var(--f); font-style: normal; color: var(--v); }
.cl-c.res { margin: 2px; height: 42px; border-radius: 10px; }
.cl-c.res.cur { background: rgba(118, 95, 222, .14); box-shadow: inset 0 0 0 2px var(--v); }
.cl-c.res.ok { color: #23A161; animation: tz-in .3s both; }
.cl-c.res.wrong { background: var(--bad-l); animation: shake .4s; }
.cl .keypad span { display: block; }
/* matching pairs */
.mt { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 44px; }
.mt-col { display: grid; gap: 10px; align-content: start; }
.mt-c { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 72px; padding: 8px 14px; border-radius: 18px; border: 0; background: #fff; box-shadow: inset 0 0 0 3px #E5E1F7, 0 4px 0 #DCD7F2; font: 800 clamp(18px, 2.6vw, 24px)/1.15 var(--f); color: var(--ink); cursor: pointer; overflow-wrap: anywhere; animation: tz-in .45s cubic-bezier(.2, 1.4, .4, 1) var(--d) both; transition: transform .12s, box-shadow .12s, background .2s; }
.mt-c .art { width: 64px; height: 64px; flex: none; }
.mt-col:first-child .mt-c:not(.ok) { background: #F1EDFF; box-shadow: inset 0 0 0 3px #DCD3FF, 0 4px 0 #CFC4F7; }
.mt-col:last-child .mt-c:not(.ok) { background: #FFF6DD; box-shadow: inset 0 0 0 3px #FFE3A0, 0 4px 0 #F5D58A; }
.mt-c:hover { transform: translateY(-2px); }
.mt-c.sel { transform: translateX(10px); box-shadow: inset 0 0 0 3px var(--v), 0 8px 16px rgba(118, 95, 222, .3); }
.mt-c.ok { cursor: default; animation: tz-yes .45s; }
.mt-c.ok.c0 { background: #FFE3EA; box-shadow: inset 0 0 0 3px #FF5C7A; } .mt-c.ok.c1 { background: #FFF1D6; box-shadow: inset 0 0 0 3px #FFB020; }
.mt-c.ok.c2 { background: #E2F7EA; box-shadow: inset 0 0 0 3px #3CC37A; } .mt-c.ok.c3 { background: #E1F0FF; box-shadow: inset 0 0 0 3px #2E9BFF; }
.mt-c.ok.c4 { background: #EFE7FF; box-shadow: inset 0 0 0 3px #9B6CFF; } .mt-c.ok.c5 { background: #DDF8F8; box-shadow: inset 0 0 0 3px #16C2C2; }
.mt-c.no { animation: shake .45s; background: var(--bad-l); }
/* a train of wagons (build with look: 'train') */
.line.train { justify-content: flex-start; flex-wrap: nowrap; gap: 4px; min-height: 104px; padding: 10px 12px 26px 96px; border: 0; border-radius: 18px; background: linear-gradient(180deg, transparent 72%, #B9C2D9 72% 76%, transparent 76%), linear-gradient(180deg, #E4F4FF, #F4FAFF); overflow-x: auto; position: relative; }
.line.train::before { content: ""; position: absolute; left: 6px; bottom: 16px; width: 92px; height: 78px; background: url(img/i/train-a.webp) center / contain no-repeat; }
.line.train .tile { position: relative; min-width: 62px; min-height: 58px; border-radius: 10px 10px 6px 6px; background: hsl(calc(var(--h, 0) * 1deg) 85% 62%); color: #fff; text-shadow: 0 1px 0 rgba(0, 0, 0, .25); box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .15); }
.line.train .tile::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: -10px; height: 14px; background: radial-gradient(circle at 25% 50%, #2F2F45 6px, transparent 7px), radial-gradient(circle at 75% 50%, #2F2F45 6px, transparent 7px); }
.line.train .tile:nth-child(6n+1) { --h: 350; } .line.train .tile:nth-child(6n+2) { --h: 35; } .line.train .tile:nth-child(6n+3) { --h: 140; } .line.train .tile:nth-child(6n+4) { --h: 205; } .line.train .tile:nth-child(6n+5) { --h: 265; } .line.train .tile:nth-child(6n) { --h: 300; }
.line.train.right { border: 0; background: linear-gradient(180deg, transparent 72%, #B9C2D9 72% 76%, transparent 76%), linear-gradient(180deg, #E4F4FF, #F4FAFF); }
.line.train.right::before, .line.train.right .tile { animation: train-go 1.1s .3s ease-in forwards; }
@keyframes train-go { to { transform: translateX(110vw); } }
.line.train.wrong { animation: shake .45s; }
@media (max-width: 600px) {
  .tapz { padding: 38px 10px 14px; } .tz-items { gap: 8px; } .tz-items.cols-5, .tz-items.cols-6 { --cols: 3; } .tz-items.cols-4 { --cols: 2; }
  .tz-in { min-height: 80px; border-radius: 18px; }
  .bk-mat { gap: 6px; padding: 8px; } .bk-col { min-height: 220px; width: auto; flex: 1 1 0; } .bk-add { min-width: 0; padding: 0 10px; font-size: 17px; } .blk.v100 { width: 52px; height: 52px; } .blk.v10 { height: 110px; width: 13px; }
  .mt { gap: 10px 16px; } .mt-c { min-height: 60px; padding: 6px 8px; }
  .mn-note { width: 104px; } .mn-note.in { width: 76px; }
  .cl-grid { background-size: 40px 40px; padding-left: 38px; } .cl-row { grid-template-columns: repeat(var(--w), 40px); } .cl-c { height: 40px; font-size: 26px; }
  .scl-b { width: 72px; height: 62px; font-size: 34px; }
  .sc-pan { width: 46%; padding: 8px 4px 14px; } .sc-pan .art { width: 30px; height: 30px; }
}

/* ---------- programme visuals (program.js): popping heaps, story scenes, plates, rows, bonds… ---------- */
.heapz { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; max-width: 520px; padding: 12px 16px; border-radius: 24px; background: linear-gradient(180deg, #FFF7DE, #FFE9B5); }
.heapz.many { display: grid; grid-template-columns: repeat(5, 46px); gap: 4px 6px; }
.heapz.many span:nth-child(5n) { margin-right: 10px; }
.heapz span { display: block; width: 56px; height: 56px; animation: tz-in .45s cubic-bezier(.2, 1.4, .4, 1) var(--d) both; }
.heapz.many span { width: 46px; height: 46px; }
.heapz .art { width: 100%; height: 100%; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .15)); }
.stz { position: relative; width: 100%; min-height: 150px; padding: 18px 14px; border-radius: 24px; overflow: hidden; display: grid; place-items: center; }
.stz.sc-sky, .sc-sky { background: linear-gradient(180deg, #BDE5FF, #E9F7FF 62%, #CFF0C1); }
.stz.sc-grass { background: linear-gradient(180deg, #E6F9D2, #B8E79A); }
.stz.sc-sea { background: linear-gradient(180deg, #CBF3FF, #86D9F2); }
.stz.sc-sun { background: linear-gradient(180deg, #FFF3C4, #FFD98A); }
.stz-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 10px; max-width: 560px; }
.stz-row span { display: block; width: 64px; height: 64px; animation: tz-in .45s cubic-bezier(.2, 1.4, .4, 1) var(--d) both; }
.stz-row .art { width: 100%; height: 100%; filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .15)); }
.stz-row span.come { animation: stz-come .8s cubic-bezier(.2, 1.3, .4, 1) var(--d) both; }
.stz-row span.go { animation: stz-go 1.1s ease-in var(--d) forwards; }
@keyframes stz-come { from { transform: translate(180px, -40px) scale(.5) rotate(18deg); opacity: 0; } }
@keyframes stz-go { 0% { transform: none; opacity: 1; } 25% { transform: translateY(6px); } 100% { transform: translate(120px, -160px) rotate(-20deg) scale(.6); opacity: 0; } }
.stz-t { margin: 0; max-width: 60ch; text-align: center; font: 600 19px/1.45 var(--f); color: var(--ink); }
.plates2 { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.plate2 { position: relative; display: flex; flex-wrap: wrap; justify-content: center; align-content: center; gap: 2px; width: 128px; min-height: 96px; padding: 12px 10px; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #fff 55%, #E7EAF6 56%, #fff 70%); box-shadow: 0 6px 12px rgba(40, 30, 110, .15); animation: tz-in .45s cubic-bezier(.2, 1.4, .4, 1) var(--d) both; }
.plate2 span { display: block; width: 32px; height: 32px; animation: tz-in .4s cubic-bezier(.2, 1.4, .4, 1) calc(var(--d) + 150ms) both; }
.plate2 .art { width: 100%; height: 100%; }
.plate2 em { position: absolute; right: 6px; bottom: 4px; font: 800 13px var(--f); font-style: normal; color: var(--v); }
.plates2.deal .plate2 span { animation-name: stz-come; animation-duration: .6s; }
.arr { display: grid; grid-template-columns: repeat(var(--c), 44px); gap: 6px; padding: 14px; border-radius: 22px; background: linear-gradient(180deg, #EEF4FF, #DCE8FF); }
.arr span { display: block; width: 44px; height: 44px; animation: tz-in .4s cubic-bezier(.2, 1.4, .4, 1) var(--d) both; }
.arr .art { width: 100%; height: 100%; }
.bond { display: grid; justify-items: center; gap: 10px; }
.bond > b { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: var(--v); color: #fff; font: 900 40px var(--f); box-shadow: 0 6px 0 var(--v-d); }
.bond > span { display: flex; gap: 70px; position: relative; }
.bond > span::before, .bond > span::after { content: ""; position: absolute; top: -18px; width: 4px; height: 30px; background: #C9C1F2; border-radius: 2px; }
.bond > span::before { left: 30px; transform: rotate(35deg); } .bond > span::after { right: 30px; transform: rotate(-35deg); }
.bond i { width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center; background: #FFC23D; color: var(--ink); font: 900 32px var(--f); font-style: normal; box-shadow: 0 5px 0 #E39E12; }
.bond i.q { background: #fff; color: var(--v); box-shadow: inset 0 0 0 4px var(--v); }
.bond-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; max-width: 360px; }
.bond-dots em { width: 26px; height: 26px; border-radius: 50%; background: #E3DEFF; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .08); }
.bond-dots em.a { background: #FFC23D; }
.bigword { display: grid; place-items: center; min-height: 64px; padding: 6px 28px; border-radius: 20px; background: linear-gradient(135deg, #EDE8FF, #DCD3FF); font: 900 clamp(30px, 5vw, 46px)/1.1 var(--f); color: var(--v-d); letter-spacing: .02em; }
.say-big { width: 72px; height: 72px; border-radius: 50%; border: 0; background: var(--v); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 5px 0 var(--v-d); animation: pulse 1.8s ease-in-out infinite; }
.say-big .ic { width: 34px; height: 34px; }
.hero-pic.big { display: grid; justify-items: center; gap: 6px; }
.hero-pic.big .art { width: clamp(110px, 18vw, 150px); height: clamp(110px, 18vw, 150px); filter: drop-shadow(0 8px 10px rgba(40, 30, 110, .18)); animation: tz-in .5s cubic-bezier(.2, 1.4, .4, 1) both, bob 3s ease-in-out .6s infinite; }
.hero-pic.big b { font: 800 clamp(26px, 4vw, 36px)/1.1 var(--f); color: var(--ink); letter-spacing: .04em; }
.frq { display: inline-grid; justify-items: center; vertical-align: middle; margin: 0 4px; line-height: 1; font-weight: 800; }
.frq b { font-size: .85em; } .frq i { width: 100%; min-width: 18px; height: 3px; margin: 3px 0; border-radius: 2px; background: currentColor; }
.sentence.big { padding: 10px 18px; border-radius: 18px; background: #F4F2FF; font: 700 clamp(20px, 3vw, 28px)/1.4 var(--f); color: var(--ink); text-align: center; }
.pl-pics { display: flex; justify-content: center; }
.pl-pics .art { width: 44px; height: 44px; margin: 0 -6px; }
.tz-in .pl-pics .art { width: 46px; height: 46px; }
.bkv { display: flex; justify-content: center; align-items: flex-end; gap: 18px; padding: 14px 18px; border-radius: 22px; background: linear-gradient(180deg, #FFF6DC, #FFE3A8); }
.bkv-g { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 4px; max-width: 220px; }
.bkv .blk { display: block; animation: blk-drop .45s cubic-bezier(.2, 1.4, .4, 1) var(--d) both; cursor: default; }
.scl.static { width: min(460px, 100%); pointer-events: none; margin-bottom: -10px; }
.scl.static .sc-pan { min-height: 72px; } .scl.static .scl-post { height: 70px; }
.scl { width: 100%; }
.motion { position: relative; width: 100%; height: 120px; border-radius: 22px; overflow: hidden; background: linear-gradient(180deg, #BDE5FF 0 60%, #CFF0C1 60%); }
.mo-road { position: absolute; left: 0; right: 0; bottom: 22px; height: 10px; background: repeating-linear-gradient(90deg, #6B4A2B 0 16px, transparent 16px 26px), linear-gradient(#9AA3B8, #9AA3B8); background-size: auto, 100% 4px; background-position: 0 0, 0 3px; background-repeat: repeat, no-repeat; }
.mo-train { position: absolute; bottom: 26px; left: -120px; width: 110px; animation: mo-go 3.2s ease-in-out infinite; }
.mo-train .art { width: 100%; height: auto; }
@keyframes mo-go { to { left: 105%; } }
.mo-v { position: absolute; left: 14px; top: 10px; padding: 3px 12px; border-radius: 12px; background: #fff; font: 800 16px var(--f); font-style: normal; color: var(--ink); }
.roman { font: 700 30px/1 Georgia, "Times New Roman", serif; letter-spacing: .04em; color: var(--v-d); }
.pct { display: grid; grid-template-columns: repeat(10, 18px); gap: 3px; padding: 10px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 2px #E4E1F5; }
.pct i { width: 18px; height: 18px; border-radius: 4px; background: #EEEBFA; }
.pct i.on { background: #FF7A3D; animation: tz-in .3s var(--d) both; }
.mbar { display: flex; align-items: flex-end; justify-content: center; gap: 14px; height: 180px; padding: 10px 16px; border-radius: 18px; background: linear-gradient(180deg, #F3F7FF, #E2ECFF); }
.mbar > div { display: grid; justify-items: center; align-content: end; gap: 4px; height: 100%; }
.mbar b { font: 800 15px var(--f); color: var(--ink); }
.mbar i { width: 34px; height: var(--h); min-height: 6px; border-radius: 8px 8px 0 0; background: linear-gradient(#5B8BEA, #3B6BD8); transform-origin: bottom; animation: bar-up .6s cubic-bezier(.2, 1.3, .4, 1) var(--d) both; }
@keyframes bar-up { from { transform: scaleY(0); } }
.mbar span { font: 700 13px var(--f); color: var(--ink-2); }
.tz-in .prep { width: 124px; height: 112px; }
.tz-in .prep .pr-box { width: 78px; bottom: 6px; } .tz-in .prep .pr-cat { width: 56px; }
.tz-in .prep.on .pr-cat { bottom: 62px; } .tz-in .prep.in .pr-cat { bottom: 34px; } .tz-in .prep.under .pr-box { bottom: 48px; } .tz-in .prep.under .pr-cat { bottom: 0; }
.tz-in .mascot { width: clamp(70px, 12vw, 110px); }
.tz-in .vis-shape { width: clamp(52px, 9vw, 74px); height: auto; }
.tapz.sc-lilac .tz-in { font-size: clamp(18px, 2.6vw, 28px); overflow-wrap: normal; word-break: normal; hyphens: auto; }
.tapz.sc-sea .tz-in { font-size: clamp(30px, 5vw, 46px); }
.bl-t .mark { display: block; margin-top: -10px; font-size: 54px; line-height: 1; }
.bins .bin:nth-child(4n+1) { background: #3D7BEA; } .bins .bin:nth-child(4n+2) { background: #F07A3A; } .bins .bin:nth-child(4n+3) { background: #2FAE6A; } .bins .bin:nth-child(4n+4) { background: #C24FB8; }
.chip .art { width: 40px; height: 40px; }
@media (max-width: 600px) {
  .heapz span { width: 44px; height: 44px; } .heapz.many { grid-template-columns: repeat(5, 36px); } .heapz.many span { width: 36px; height: 36px; }
  .stz-row span { width: 48px; height: 48px; } .stz-t { font-size: 17px; }
  .arr { grid-template-columns: repeat(var(--c), 34px); gap: 4px; } .arr span { width: 34px; height: 34px; }
  .plate2 { width: 104px; min-height: 80px; } .plate2 span { width: 26px; height: 26px; }
  .pct { grid-template-columns: repeat(10, 14px); } .pct i { width: 14px; height: 14px; }
}

/* ---------- motion ---------- */
.float { animation: float 4s ease-in-out infinite; }
.bob { animation: bob 3s ease-in-out infinite; }
.jump { animation: jump .9s .2s; }
.ride { animation: ride 1.6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-12px); } }
@keyframes bob { 50% { transform: translateY(-6px) rotate(-1.5deg); } }
@keyframes jump { 30% { transform: translateY(-28px) scale(1.04); } 60% { transform: translateY(0) scale(1.05, .95); } 80% { transform: translateY(-6px); } }
@keyframes tilt { 25% { transform: rotate(-7deg); } 75% { transform: rotate(5deg); } }
@keyframes ride { 0%, 100% { transform: translateX(-18px) rotate(-2deg); } 50% { transform: translateX(18px) translateY(-4px) rotate(2deg); } }
@keyframes roll-in { from { transform: translateX(-90px) rotate(-6deg); opacity: 0; } 70% { transform: translateX(5px) rotate(2deg); opacity: 1; } to { transform: none; } }
@keyframes nudge { 35% { transform: translateX(10px) rotate(3deg); } 70% { transform: translateX(-2px) rotate(-1deg); } }
@keyframes road { to { background-position: -30px 0; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(87, 95, 225, .5); } 100% { box-shadow: 0 0 0 26px rgba(87, 95, 225, 0); } }
@keyframes pop { 0% { transform: scale(.85); } 60% { transform: scale(1.07); } 100% { transform: scale(1); } }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@keyframes rise { from { transform: translateY(14px); opacity: .4; } }
@keyframes fade { from { opacity: 0; } }
@keyframes drop { from { transform: translate(-50%, -12px); opacity: 0; } }
@keyframes spark { to { transform: translate(var(--dx), var(--dy)) scale(.3) rotate(120deg); opacity: 0; } }
@keyframes fall { to { transform: translateY(110vh) rotate(760deg); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- the last text cards made bright: candy answers, number machine, sweets, discs, stairs, week, picture book ---------- */
.opt:not(.pic) { background: var(--oc, var(--chip)); box-shadow: 0 4px 0 var(--od, var(--chip-d)); animation: opt-in .45s cubic-bezier(.2, 1.3, .4, 1) calc(var(--i, 0) * 70ms) backwards; }
.opts .opt:nth-child(6n+1) { --oc: #FFE1EA; --od: #F2A3BB; }
.opts .opt:nth-child(6n+2) { --oc: #DCEEFF; --od: #9FCBF7; }
.opts .opt:nth-child(6n+3) { --oc: #FFF0C7; --od: #F0C95E; }
.opts .opt:nth-child(6n+4) { --oc: #E8E0FF; --od: #BBA9FA; }
.opts .opt:nth-child(6n+5) { --oc: #D9F5F1; --od: #8FD8C9; }
.opts .opt:nth-child(6n) { --oc: #FFE4D3; --od: #F2B48D; }
.opt:hover:not(:disabled):not(.pic) { background: var(--oc); filter: saturate(1.3); transform: translateY(-2px); }
.opt.right:not(.pic) { background: var(--ok); color: #fff; box-shadow: 0 3px 0 #2B9C5E; animation: pop .35s; }
.opt.wrong:not(.pic) { animation: shake .4s; }
.opt.sel:not(.pic) { background: var(--v); color: #fff; box-shadow: 0 3px 0 var(--v-d); }
@keyframes opt-in { from { opacity: 0; transform: translateY(14px) scale(.9); } }

.mach { position: relative; display: flex; align-items: center; justify-content: center; gap: clamp(6px, 1.6vw, 14px); width: min(100%, 580px); padding: 24px 14px 36px; border-radius: 24px; background: linear-gradient(180deg, #E4F3FF, #F5FAFF); }
.mach::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 16px; height: 10px; border-radius: 6px; background: repeating-linear-gradient(90deg, #5E6385 0 14px, #8D92B4 14px 28px); animation: belt 1.2s linear infinite; }
@keyframes belt { to { background-position: 28px 0; } }
.mach-ball { position: relative; z-index: 1; min-width: clamp(50px, 12vw, 70px); height: clamp(50px, 12vw, 70px); padding: 0 10px; border-radius: 40px; display: grid; place-items: center; background: #FFB020; color: #fff; font: 800 clamp(20px, 4.4vw, 30px)/1 var(--f); text-shadow: 0 2px 0 rgba(0, 0, 0, .15); box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .14); animation: tz-in .5s cubic-bezier(.2, 1.4, .4, 1) both; }
.mach-ball:last-child { background: #3CC37A; animation-delay: .45s; }
.mach-ball.q { background: #fff; color: var(--v); text-shadow: none; box-shadow: inset 0 0 0 3px var(--v); animation: tz-in .5s cubic-bezier(.2, 1.4, .4, 1) both, bob 2.4s ease-in-out .6s infinite; }
.mach-box { position: relative; z-index: 1; width: clamp(76px, 19vw, 124px); height: clamp(70px, 16vw, 100px); border-radius: 18px; display: grid; place-items: center; background: hsl(calc(262deg - var(--i) * 70deg) 78% 63%); color: #fff; font: 800 clamp(18px, 4.2vw, 28px)/1 var(--f); box-shadow: inset 0 -8px 0 rgba(0, 0, 0, .18), 0 8px 16px rgba(60, 40, 140, .18); }
.mach-box b { position: relative; padding: 6px 10px; border-radius: 12px; background: rgba(255, 255, 255, .22); white-space: nowrap; }
.mach-box .gear { --gc: hsl(calc(262deg - var(--i) * 70deg) 62% 44%); position: absolute; top: -17px; left: 10px; width: 36px; height: 36px; border-radius: 50%; background: radial-gradient(circle, #fff 0 18%, var(--gc) 19% 60%, transparent 61%), repeating-conic-gradient(var(--gc) 0 20deg, transparent 20deg 40deg); animation: spin 2.6s linear infinite; }
.mach-box .gear.s { left: auto; right: 12px; top: -12px; width: 26px; height: 26px; animation-direction: reverse; animation-duration: 1.8s; }

.cand { display: grid; justify-items: center; gap: 16px; }
.cand-heap { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; max-width: min(100%, 440px); }
.cand-heap i { width: 20px; height: 20px; border-radius: 50%; background: radial-gradient(circle at 34% 30%, rgba(255, 255, 255, .8) 0 3px, transparent 4px), var(--c); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .15); animation: tz-in .4s cubic-bezier(.2, 1.4, .4, 1) var(--d) both; }
.plates { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.plates span { width: clamp(56px, 12vw, 84px); height: clamp(22px, 4vw, 30px); border-radius: 50%; background: radial-gradient(ellipse at center, #fff 0 50%, #CFE6FF 53% 100%); box-shadow: 0 4px 0 #9FC4EE; }

.pv { display: flex; justify-content: center; gap: clamp(6px, 2vw, 14px); }
.pv-col { --pc: #FFB020; display: grid; grid-template-columns: repeat(3, auto); align-content: end; justify-content: center; gap: 4px; min-width: clamp(70px, 17vw, 128px); min-height: 118px; padding: 10px; border-radius: 16px; background: color-mix(in srgb, var(--pc) 13%, white); box-shadow: inset 0 -4px 0 color-mix(in srgb, var(--pc) 28%, white); }
.pv-col.k3 { --pc: #FF5C7A; } .pv-col.k2 { --pc: #9B6CFF; } .pv-col.k1 { --pc: #2E9BFF; } .pv-col.k0 { --pc: #FFB020; }
.pv-col i { width: clamp(20px, 5vw, 34px); height: clamp(20px, 5vw, 34px); border-radius: 50%; display: grid; place-items: center; background: var(--pc); color: #fff; font: 800 clamp(6px, 1.5vw, 10px)/1 var(--f); font-style: normal; white-space: nowrap; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .18); animation: tz-in .4s cubic-bezier(.2, 1.4, .4, 1) var(--d) both; }
.pv-col em { grid-column: 1 / -1; font: 800 24px var(--f); font-style: normal; color: var(--pc); opacity: .6; }
.pv-cls { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.pv-cls > div { display: grid; justify-items: center; gap: 6px; min-width: 140px; padding: 12px 20px; border-radius: 18px; background: #FFE1EA; box-shadow: 0 4px 0 #F2A3BB; animation: tz-in .45s cubic-bezier(.2, 1.4, .4, 1) both; }
.pv-cls > div + div { background: #DCEEFF; box-shadow: 0 4px 0 #9FCBF7; animation-delay: .12s; }
.pv-cls small { font: 700 12px var(--f); color: var(--ink-2); text-transform: uppercase; letter-spacing: .06em; }
.pv-cls b { font: 800 clamp(30px, 6vw, 44px)/1 var(--f); color: var(--ink); }

.stairs { display: flex; align-items: flex-end; justify-content: center; gap: 3px; min-height: 120px; padding: 70px 8px 0; }
.stairs > span { position: relative; width: clamp(20px, 5.4vw, 44px); height: calc(var(--h) * 14px + 14px); display: flex; justify-content: center; border-radius: 8px 8px 0 0; background: hsl(calc(var(--h) * 30deg + 190deg) 78% 66%); box-shadow: inset 0 5px 0 rgba(255, 255, 255, .35); animation: tz-in .4s cubic-bezier(.2, 1.4, .4, 1) calc(var(--h) * 40ms) both; }
.stairs b { position: absolute; bottom: 4px; font: 800 clamp(10px, 2.4vw, 15px) var(--f); color: #fff; }
.stairs .mascot { position: absolute; bottom: 100%; width: clamp(48px, 10vw, 70px); max-width: none; animation: bob 2.4s ease-in-out infinite; }

.week { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px 6px; padding-top: 16px; }
.week > span { position: relative; padding: 10px 12px; border-radius: 14px; background: hsl(calc(var(--i) * 48deg + 190deg) 85% 92%); box-shadow: 0 3px 0 hsl(calc(var(--i) * 48deg + 190deg) 55% 78%); font: 700 15px var(--f); color: var(--ink); animation: tz-in .4s cubic-bezier(.2, 1.4, .4, 1) calc(var(--i) * 60ms) both; }
.week > span.today { background: var(--v); color: #fff; box-shadow: 0 3px 0 var(--v-d); }
.week small { position: absolute; top: -19px; left: 50%; transform: translateX(-50%); padding: 1px 8px; border-radius: 10px; background: #FFB020; color: #fff; font: 800 11px var(--f); white-space: nowrap; }

.digits-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.digits-row span { width: 58px; height: 68px; border-radius: 14px; display: grid; place-items: center; font: 800 34px var(--f); color: #fff; background: #FF5C7A; box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .15); animation: tz-in .45s cubic-bezier(.2, 1.4, .4, 1) both; }
.digits-row span:nth-child(4n+2) { background: #2E9BFF; animation-delay: .08s; } .digits-row span:nth-child(4n+3) { background: #FFB020; animation-delay: .16s; } .digits-row span:nth-child(4n) { background: #3CC37A; animation-delay: .24s; }
.heap.kids .art { width: 58px; height: 58px; }
.magic > span { box-shadow: 0 3px 0 rgba(40, 30, 110, .12); animation: tz-in .4s cubic-bezier(.2, 1.4, .4, 1) both; }
.magic > span:nth-child(odd) { background: #FFF0C7; } .magic > span:nth-child(even) { background: #DCEEFF; }
.chain > span:nth-child(3n+1) { background: #FFE1EA; } .chain > span:nth-child(3n+2) { background: #DCEEFF; } .chain > span:nth-child(3n) { background: #FFF0C7; }

.sbook { display: grid; grid-template-columns: minmax(120px, 190px) minmax(0, 1fr); width: min(100%, 740px); border-radius: 22px; overflow: hidden; background: #FFFBF0; box-shadow: 0 5px 0 #EADFC4, 0 14px 30px rgba(60, 40, 10, .1); animation: rise .45s cubic-bezier(.2, 1.2, .4, 1) both; }
.sb-pic { display: grid; align-content: center; gap: 2px; padding: 12px; background: linear-gradient(180deg, #BDE5FF, #E9F7FF 68%, #D7F2C4); }
.sb-pic span { justify-self: center; animation: tz-in .5s cubic-bezier(.2, 1.4, .4, 1) calc(var(--i) * 130ms + .2s) both; }
.sb-pic span:nth-child(2) { justify-self: end; } .sb-pic span:nth-child(3) { justify-self: start; }
.sb-pic .art { display: block; width: clamp(54px, 8vw, 78px); height: clamp(54px, 8vw, 78px); mix-blend-mode: normal; animation: bob 3s ease-in-out calc(var(--i) * .5s) infinite; }
.sbook .reading { max-width: none; border-radius: 0; background: none; border-left: 3px dashed #EADFC4; }
.sbook + .ask { display: inline-flex; align-items: center; gap: 10px; }
.sbook + .ask::before { content: "?"; flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #FFB020; color: #fff; font: 900 20px var(--f); }

.xtrain { min-height: 100px; padding-top: 14px; animation: x-in .9s cubic-bezier(.25, 1, .4, 1) both; }
@keyframes x-in { from { transform: translateX(-40%); opacity: 0; } }
.xtrain .tile { min-width: 72px; font-size: clamp(24px, 4vw, 34px); cursor: default; }
.xtrain .xop { flex: none; align-self: center; margin-bottom: 12px; min-width: 30px; height: 30px; padding: 0 7px; border-radius: 15px; display: grid; place-items: center; background: #fff; color: var(--ink); font: 800 22px/1 var(--f); box-shadow: 0 2px 0 rgba(40, 30, 110, .15); }
.line.train.xtrain .xans { background: #fff; box-shadow: inset 0 0 0 3px var(--v-l, #E8E0FF), inset 0 -6px 0 rgba(0, 0, 0, .06); }
.xtrain .xans .slot { font-size: .95em; }
.line.train.right .xop { animation: train-go 1.1s .3s ease-in forwards; }
@media (max-width: 640px) {
  .sbook { grid-template-columns: minmax(0, 1fr); }
  .sb-pic { grid-auto-flow: column; justify-content: center; gap: 14px; padding: 10px; }
  .sb-pic span:nth-child(n) { justify-self: center; }
  .sbook .reading { border-left: 0; border-top: 3px dashed #EADFC4; }
  .line.train.xtrain { flex-wrap: wrap; justify-content: center; row-gap: 18px; overflow: visible; padding: 12px 8px 22px; background: linear-gradient(180deg, #E4F4FF, #F4FAFF); }
  .xtrain::before { display: none; }
  .xtrain .tile { min-width: 42px; min-height: 50px; padding: 6px 8px; font-size: 24px; }
  .xtrain .xop { min-width: 22px; height: 24px; margin-bottom: 8px; padding: 0 4px; font-size: 17px; }
  .pv-col { grid-template-columns: repeat(2, auto); min-height: 96px; padding: 8px; }
  .week > span { padding: 8px 9px; font-size: 13px; }
}
