/* ============================================================
   CAN YOU RUN A UNIVERSITY? — styles
   Design space is 1920x1080 (scaled by the engine); all sizes below are design pixels.
   ============================================================ */
:root {
  --ink: #1E2A44; --cream: #FFF6E6; --sun: #FFC21A; --coral: #E5484D; --sky: #2F80ED; --mint: #22A06B;
  --grape: #8B5CF6; --peach: #F2A65A; --pink: #FF8CC6; --aqua: #6CC3D5; --gold: #B8860B; --navy: #0B1020;
  --sand: #E0A458; --grey: #9AA7BD; --flash: #FFE066; --skybg: #CFE8FF;
  --ease-out: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --font: 'Fredoka', 'Segoe UI Variable Display', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --bg: var(--cream); --fg: var(--ink);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; }
body {
  background: var(--bg); color: var(--fg); font-family: var(--font); font-weight: 600;
  -webkit-font-smoothing: antialiased; transition: background .8s var(--ease-out);
}
body.theme-night { --bg: var(--navy); --fg: #FFF8EC; }
body.theme-sun { --bg: #FFE9A8; }
body.theme-mint { --bg: #DFF9EE; }
body.theme-sky { --bg: #DCEFFF; }
body.theme-pink { --bg: #FFE3EC; }
body.idle { cursor: none; }

/* ---------- stage (16:9 design space) ---------- */
#stage {
  position: absolute; left: 50%; top: 50%; width: 1920px; height: 1080px;
  transform-origin: center center; overflow: hidden; user-select: none;
}
.scene { position: absolute; inset: 0; overflow: hidden; }
.scene.theme-day { background: radial-gradient(1200px 800px at 50% 110%, #FFF1CF 0%, var(--cream) 60%); }
.scene.theme-night { background: radial-gradient(1400px 900px at 50% -10%, #2A3160 0%, var(--navy) 65%); color: #FFF8EC; }
.scene.theme-sun { background: radial-gradient(1200px 900px at 50% 100%, #FFF6D6 0%, #FFE9A8 70%); }
.scene.theme-mint { background: radial-gradient(1200px 900px at 50% 100%, #F2FFF8 0%, #DFF9EE 70%); }
.scene.theme-sky { background: radial-gradient(1200px 900px at 50% 100%, #F0F8FF 0%, #DCEFFF 70%); }
.scene.theme-pink { background: radial-gradient(1200px 900px at 50% 100%, #FFF3F7 0%, #FFE3EC 70%); }
#fx { position: absolute; inset: 0; width: 1920px; height: 1080px; pointer-events: none; }

/* ---------- typography ---------- */
.h1, .h2, .h3, .big { font-weight: 700; letter-spacing: 0.005em; text-wrap: balance; }
.h1 { font-size: 132px; line-height: 1.02; }
.h2 { font-size: 92px; line-height: 1.05; }
.h3 { font-size: 64px; line-height: 1.1; }
.sub { font-size: 44px; font-weight: 500; opacity: .8; }
.big { font-size: 300px; line-height: 1; font-variant-numeric: tabular-nums; }
.huge { font-size: 380px; line-height: 1; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 28px; padding: 60px; }
.top { position: absolute; left: 0; right: 0; top: 70px; text-align: center; padding: 0 80px; }
.bottom { position: absolute; left: 0; right: 0; bottom: 70px; text-align: center; padding: 0 80px; }
.row { display: flex; align-items: center; justify-content: center; gap: 48px; }
.col { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.stack { position: relative; }
.pos { position: absolute; }
.hl { color: var(--coral); }
.hl-sun { color: var(--gold); }
.hl-mint { color: #1E9C6B; }
.hl-sky { color: #1F7FD6; }
.hl-grape { color: #6A57E6; }
.theme-night .hl { color: var(--sun); }
.pill { display: inline-block; padding: 10px 34px; border-radius: 999px; background: rgba(43,42,51,.08); font-size: 36px; font-weight: 600; }
.theme-night .pill { background: rgba(255,255,255,.12); }
.tag { display: inline-block; padding: 8px 26px; border-radius: 999px; font-size: 26px; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; background: rgba(43,42,51,.07); opacity: .8; }
.theme-night .tag { background: rgba(255,255,255,.12); }

/* ---------- figures ---------- */
.fig { display: block; width: 100%; height: auto; overflow: visible; }
.fig-wrap { position: absolute; transform-origin: 50% 100%; }
.w-90 { width: 90px; } .w-120 { width: 120px; } .w-160 { width: 160px; } .w-200 { width: 200px; }
.w-240 { width: 240px; } .w-300 { width: 300px; } .w-360 { width: 360px; } .w-420 { width: 420px; } .w-520 { width: 520px; } .w-640 { width: 640px; }
.shadow { filter: drop-shadow(0 22px 24px rgba(43,42,51,.14)); }
canvas.crowd { position: absolute; inset: 0; width: 1920px; height: 1080px; }

/* ---------- reveal / motion ---------- */
.rv { opacity: 0; transform: translateY(40px) scale(.96); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); will-change: transform, opacity; }
.rv.in { opacity: 1; transform: none; }
.rv.out { opacity: 0; transform: translateY(-30px) scale(.98); }
/* .pop keeps a per-element base transform (centering) via --base */
.pop { opacity: 0; transform: var(--base, none) scale(.4); transition: opacity .45s var(--ease-out), transform .7s var(--ease-spring); will-change: transform, opacity; }
.pop.in { opacity: 1; transform: var(--base, none) scale(1); }
.pop.out { opacity: 0; transform: var(--base, none) scale(.6); transition-duration: .35s; }
.slide-l { opacity: 0; transform: translateX(-160px); transition: opacity .6s var(--ease-out), transform .8s var(--ease-out); }
.slide-r { opacity: 0; transform: translateX(160px); transition: opacity .6s var(--ease-out), transform .8s var(--ease-out); }
.slide-l.in, .slide-r.in { opacity: 1; transform: none; }
.no-anim, .no-anim * { transition: none !important; animation-duration: 0s !important; }
.float { animation: float 3.6s ease-in-out infinite; }
.float.d1 { animation-delay: -1.2s; } .float.d2 { animation-delay: -2.4s; }
.wiggle { animation: wiggle 1.4s ease-in-out infinite; }
.shake { animation: shake .5s cubic-bezier(.36,.07,.19,.97) both; }
.bounce { animation: bounce 1.1s var(--ease-spring) infinite; }
.pulse { animation: pulse 1.6s ease-in-out infinite; }
.spin-slow { animation: spin 14s linear infinite; }
.drop { animation: drop .9s var(--ease-spring) both; }
.fly-in { animation: flyin 1s var(--ease-spring) both; }
.frozen, .frozen * { animation-play-state: paused !important; transition: none !important; }
.dim { opacity: .35; filter: grayscale(.6); transition: opacity .6s var(--ease-out), filter .6s var(--ease-out); }

@keyframes float { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-22px) } }
@keyframes wiggle { 0%,100% { transform: rotate(-4deg) } 50% { transform: rotate(4deg) } }
@keyframes shake { 10%,90% { transform: translateX(-2px) } 20%,80% { transform: translateX(4px) } 30%,50%,70% { transform: translateX(-10px) } 40%,60% { transform: translateX(10px) } }
@keyframes bounce { 0%,100% { transform: translateY(0) scale(1) } 40% { transform: translateY(-40px) scale(1.04) } 60% { transform: translateY(0) scale(.98) } }
@keyframes pulse { 0%,100% { transform: scale(1) } 50% { transform: scale(1.07) } }
@keyframes spin { to { transform: rotate(360deg) } }
@keyframes drop { 0% { transform: translateY(-500px) scale(.9); opacity: 0 } 60% { opacity: 1 } 100% { transform: none; opacity: 1 } }
@keyframes flyin { 0% { transform: translate(var(--fx, -600px), var(--fy, 400px)) rotate(var(--fr, -40deg)) scale(.3); opacity: 0 } 100% { transform: none; opacity: 1 } }
@keyframes spotlight { 0% { opacity: 0; transform: scale(.2) } 100% { opacity: 1; transform: scale(1) } }

/* ---------- speech bubbles ---------- */
.bubble {
  position: absolute; max-width: 520px; padding: 22px 34px; border-radius: 34px; background: #fff; color: var(--ink);
  font-size: 40px; font-weight: 600; line-height: 1.15; box-shadow: 0 16px 40px rgba(43,42,51,.14); border: 5px solid var(--ink);
  transform-origin: 0 100%;
}
.bubble::after { content: ''; position: absolute; bottom: -22px; left: 44px; width: 30px; height: 30px; background: #fff; border-right: 5px solid var(--ink); border-bottom: 5px solid var(--ink); transform: rotate(45deg); border-radius: 0 0 8px 0; }
.bubble.right::after { left: auto; right: 44px; }
.bubble.right { transform-origin: 100% 100%; }
.bubble.small { font-size: 32px; padding: 16px 26px; max-width: 420px; }
.bubble.shout { font-size: 48px; border-color: var(--coral); }
.bubble.pop.in { transform: scale(1) rotate(var(--rot, 0deg)); }

/* ---------- choice cards / options ---------- */
.options { position: absolute; left: 0; right: 0; bottom: 110px; display: flex; justify-content: center; gap: 36px; padding: 0 60px; flex-wrap: wrap; }
.opt {
  position: relative; min-width: 300px; padding: 26px 34px 30px; border-radius: 34px; background: #fff; color: var(--ink);
  border: 5px solid var(--ink); box-shadow: 0 18px 44px rgba(43,42,51,.14); text-align: center; cursor: pointer;
  transition: transform .5s var(--ease-spring), box-shadow .5s var(--ease-out), opacity .5s var(--ease-out), filter .5s var(--ease-out);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.opt:hover { transform: translateY(-10px) scale(1.03); }
.opt:active { transform: scale(.98); }
.opt .fig { width: 130px; }
.opt .label { font-size: 40px; font-weight: 700; line-height: 1.05; }
.opt .price { font-size: 46px; font-weight: 700; color: #1E9C6B; }
.opt .price.expensive { color: var(--coral); }
.opt .key { position: absolute; bottom: -20px; right: -16px; width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 30px; display: flex; align-items: center; justify-content: center; font-weight: 700; opacity: .8; }
.opt.chosen { border-color: #1E9C6B; box-shadow: 0 0 0 10px rgba(61,220,151,.35), 0 18px 44px rgba(43,42,51,.14); }
.opt.gone { opacity: .28; filter: grayscale(1); transform: scale(.94); pointer-events: none; }
.opt.tempting { border-color: var(--pink); background: linear-gradient(180deg, #fff, #FFF0F5); }
.opt.tempting .fig { width: 170px; }
.opt.big-opt { min-width: 520px; padding: 40px 48px; }
.opt.big-opt .label { font-size: 56px; }
.opt.big-opt .fig { width: 190px; }

/* ---------- money (the €100 game) ---------- */
.wallet { position: absolute; top: 40px; left: 60px; display: flex; align-items: center; gap: 26px; padding: 18px 34px 18px 22px; border-radius: 999px; background: rgba(255,255,255,.85); border: 5px solid var(--ink); box-shadow: 0 16px 40px rgba(43,42,51,.12); z-index: 2; }
.wallet .amount { font-size: 74px; font-weight: 700; min-width: 220px; text-align: left; font-variant-numeric: tabular-nums; }
.wallet .coins { display: flex; gap: 6px; }
.wallet .coins .fig { width: 64px; transition: transform .6s var(--ease-spring), opacity .5s var(--ease-out); }
.wallet .coins .fig.spent { transform: translateY(-70px) scale(.2) rotate(120deg); opacity: 0; }
.wallet.shake { animation: shake .55s cubic-bezier(.36,.07,.19,.97) both; border-color: var(--coral); }
.wallet.empty .amount { color: var(--coral); }
.cart { position: absolute; top: 40px; right: 60px; width: 640px; min-height: 180px; padding: 22px 28px; border-radius: 34px; background: rgba(255,255,255,.75); border: 5px dashed rgba(43,42,51,.35); z-index: 2; }
.cart h4 { margin: 0 0 14px; font-size: 34px; font-weight: 700; letter-spacing: .04em; opacity: .8; }
.cart .items { display: flex; flex-wrap: wrap; gap: 14px; min-height: 90px; }
.cart .item { display: flex; align-items: center; gap: 12px; padding: 10px 22px 10px 14px; border-radius: 999px; background: #fff; border: 4px solid var(--ink); font-size: 30px; font-weight: 700; animation: drop .7s var(--ease-spring) both; }
.cart .item .fig { width: 54px; }
.cart .item.removed { animation: none; opacity: .25; filter: grayscale(1); text-decoration: line-through; }

/* ---------- presenter UI (outside the stage, viewport units) ---------- */
#notes {
  position: fixed; left: 18px; bottom: 18px; width: min(520px, 42vw); padding: 14px 18px 16px; border-radius: 18px;
  background: rgba(20, 22, 38, .86); color: #fff; font-size: 15px; line-height: 1.35; font-weight: 500; z-index: 30;
  backdrop-filter: blur(10px); box-shadow: 0 10px 30px rgba(0,0,0,.25); font-family: var(--font);
}
#notes[hidden] { display: none; }
#notes .n-title { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; opacity: .65; margin-bottom: 8px; display: flex; justify-content: space-between; gap: 12px; }
#notes .n-clock { color: var(--sun); white-space: nowrap; }
#notes .n-title i { font-style: normal; color: var(--sun); }
#notes .n-row { display: grid; grid-template-columns: 44px 1fr; gap: 8px; margin-top: 6px; }
#notes .n-row b { font-size: 11px; letter-spacing: .1em; color: var(--sun); padding-top: 3px; }
#progress { position: absolute; left: 0; right: 0; bottom: 22px; display: flex; justify-content: center; gap: 12px; opacity: .3; transition: opacity .4s; z-index: 3; }
#progress:hover { opacity: .8; }
#progress i { width: 14px; height: 14px; border-radius: 50%; background: currentColor; opacity: .35; cursor: pointer; transition: transform .3s var(--ease-spring), opacity .3s; }
#progress i.is-opt { background: transparent; box-shadow: inset 0 0 0 3px currentColor; }
#progress i.done { opacity: .6; }
#progress i.cur { opacity: 1; transform: scale(1.5); }
#panel {
  position: fixed; right: 16px; bottom: 16px; display: flex; gap: 6px; padding: 6px; border-radius: 999px;
  background: rgba(20,22,38,.75); backdrop-filter: blur(10px); z-index: 30; opacity: 0; transform: translateY(8px);
  transition: opacity .35s var(--ease-out), transform .35s var(--ease-out); font-family: var(--font);
}
body:not(.idle) #panel { opacity: .92; transform: none; }
#panel button { width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.1); color: #fff; font: 600 15px var(--font); cursor: pointer; transition: background .25s, transform .25s var(--ease-spring); }
#panel button:hover { background: rgba(255,255,255,.25); transform: scale(1.08); }
#panel button.off { opacity: .45; text-decoration: line-through; }
#panel .sep { width: 1px; background: rgba(255,255,255,.18); margin: 6px 2px; }
#toast { position: absolute; left: 50%; bottom: 60px; transform: translate(-50%, 20px); padding: 14px 30px; border-radius: 999px; background: rgba(20,22,38,.85); color: #fff; font-size: 28px; opacity: 0; transition: opacity .3s, transform .4s var(--ease-out); pointer-events: none; z-index: 4; }
#toast.in { opacity: 1; transform: translate(-50%, 0); }
#jump { position: fixed; inset: 0; background: rgba(20,22,38,.7); backdrop-filter: blur(12px); z-index: 40; display: flex; align-items: center; justify-content: center; font-family: var(--font); }
#jump[hidden] { display: none; }
#jump .j-box { width: min(720px, 92vw); max-height: 88vh; overflow: auto; background: #fff; color: var(--ink); border-radius: 22px; padding: 22px 26px; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
#jump .j-title { font-size: 18px; font-weight: 700; margin-bottom: 12px; } #jump .j-title small { opacity: .5; font-weight: 500; }
#jump ol { list-style: none; margin: 0; padding: 0; }
#jump li { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 12px; font-size: 16px; font-weight: 600; cursor: pointer; }
#jump li:hover { background: rgba(43,42,51,.06); }
#jump li.cur { background: rgba(255,201,60,.35); }
#jump li.is-opt { opacity: .7; } #jump li.skip { text-decoration: line-through; } #jump li em { font-size: 12px; opacity: .6; }
#jump li small { margin-left: auto; opacity: .5; font-weight: 500; }
#jump .j-n { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }

/* ---------- freeze / blackout / snow ---------- */
#stage.freeze .scene, #stage.freeze .scene * { animation-play-state: paused !important; transition: none !important; }
#stage.freeze .scene { filter: grayscale(.75) brightness(.82) contrast(.95); }
#snow { position: absolute; right: 60px; top: 50px; width: 180px; height: 180px; z-index: 5; pointer-events: none; filter: drop-shadow(0 6px 14px rgba(0,0,0,.35)); animation: spotlight .5s var(--ease-out) both; }
#snow[hidden] { display: none; }
#snow svg { width: 100%; height: 100%; }
#black { position: absolute; inset: 0; background: #000; z-index: 9; }
#black[hidden] { display: none; }
#progress i.skip { background: transparent !important; box-shadow: inset 0 0 0 3px currentColor; opacity: .25; }
#progress.flash { opacity: .85; }

/* ---------- print (run sheet) ---------- */
body.print-mode { overflow: auto; height: auto; background: #fff; color: #111; font-weight: 500; }
#print { max-width: 190mm; margin: 0 auto; padding: 10mm 6mm; font-size: 11pt; line-height: 1.32; font-family: 'Segoe UI', system-ui, sans-serif; }
#print .hdr { font-size: 10pt; letter-spacing: .06em; text-transform: uppercase; border-bottom: 2px solid #111; padding-bottom: 3px; margin-bottom: 8px; font-weight: 700; }
#print h1 { font-size: 20pt; margin: 4px 0 6px; } #print h2 { font-size: 13pt; margin: 12px 0 4px; } #print h3 { font-size: 11.5pt; margin: 10px 0 3px; break-after: avoid; } #print h3 small { font-weight: 500; opacity: .6; }
#print .fields { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 6px 0 10px; font-weight: 700; }
#print table { border-collapse: collapse; width: 100%; }
#print table.plan td, #print table.plan th { border: 1px solid #999; padding: 3px 5px; font-size: 9.5pt; vertical-align: top; text-align: left; }
#print table.plan th { background: #eee; }
#print table.keys td { padding: 1px 8px 1px 0; font-size: 9.5pt; vertical-align: top; }
#print table.beats td { padding: 2px 6px 2px 0; vertical-align: top; font-size: 9.5pt; border-bottom: 1px dotted #bbb; }
#print table.beats td.bn { width: 26px; font-weight: 700; opacity: .6; }
#print table.beats b { display: inline-block; width: 30px; font-size: 8pt; letter-spacing: .06em; opacity: .7; }
#print .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
#print ul { margin: 2px 0 6px 18px; padding: 0; } #print li { margin: 2px 0; font-size: 9.8pt; }
#print ul.boxes { list-style: none; margin-left: 0; } #print ul.boxes li::before { content: '☐ '; }
#print .tip { font-size: 9.5pt; opacity: .75; margin: 0 0 4px; }
#print .pb { break-after: page; height: 1px; }
@media print { #print { max-width: none; padding: 0; } #print .pb { page-break-after: always; } }

/* ---------- scene: opening ---------- */
.title-top { position: absolute; left: 0; right: 0; top: 60px; text-align: center; }
.title-top .h1 { font-size: 118px; }
.hello { position: absolute; left: 0; right: 0; top: 330px; text-align: center; }
.uni-wrap { position: absolute; left: 50%; top: 380px; width: 720px; transform: translateX(-50%); animation: breathe 4s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes breathe { 0%,100% { transform: translateX(-50%) scale(1) } 50% { transform: translateX(-50%) scale(1.01) } }
.fig-uni .win { transition: fill .25s var(--ease-out); }
.fig-uni .win.lit { fill: var(--flash); }
.dad-jog { position: absolute; width: 170px; left: -260px; top: 700px; }
.dad-jog.go { animation: jog 3s cubic-bezier(.4,.1,.6,.9) forwards; }
.dad-jog.done { left: 360px; top: 700px; }
@keyframes jog { 0% { transform: translate(0, 0) } 10% { transform: translate(300px, -12px) } 20% { transform: translate(600px, 0) } 30% { transform: translate(900px, -12px) } 40% { transform: translate(1200px, 0) } 50% { transform: translate(1500px, -12px) } 60% { transform: translate(1900px, 0) } 61% { transform: translate(1900px, 0) scaleX(-1) } 100% { transform: translate(620px, 0) scaleX(-1) } }
.bob { animation: bob .5s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-10px) } }
.dad-zoom { position: absolute; left: 50%; top: 300px; width: 360px; --base: translateX(-50%); transform: var(--base); }
.namebadge { position: absolute; left: 50%; top: 780px; transform: translateX(-50%); display: flex; gap: 26px; padding: 18px 54px; background: #fff; border: 6px solid var(--ink); border-radius: 30px; box-shadow: 0 18px 44px rgba(30,42,68,.16); z-index: 3; }
.namebadge span { font-size: 150px; line-height: 1; font-weight: 700; opacity: 0; transform: scale(.3); transition: opacity .3s var(--ease-out), transform .6s var(--ease-spring); }
.namebadge span.in { opacity: 1; transform: none; }
.namebadge.flip { animation: flipy .6s var(--ease-out) both; }
@keyframes flipy { 0% { transform: translateX(-50%) rotateY(90deg); opacity: 0 } 100% { transform: translateX(-50%) rotateY(0); opacity: 1 } }

/* ---------- scene: school / size ---------- */
.stage-row { position: absolute; left: 0; right: 0; bottom: 200px; display: flex; align-items: flex-end; justify-content: center; gap: 140px; }
.you-star { position: absolute; left: 50%; top: -120px; transform: translateX(-50%); width: 120px; text-align: center; }
.you-star .fig { width: 120px; }
.you-star b { position: absolute; left: 0; right: 0; top: 40px; font-size: 30px; font-weight: 700; }
.grow { transition: width .4s var(--ease-spring); }
.classroom { position: absolute; left: 50%; top: 50%; width: 560px; height: 380px; transform: translate(-50%, -50%); background: #fff; border: 6px solid var(--ink); border-radius: 30px; display: grid; grid-template-columns: repeat(5, 1fr); grid-auto-rows: 1fr; padding: 24px; gap: 6px; transform-origin: center; transition: transform 1.8s var(--ease-out), opacity 1.2s var(--ease-out); }
.classroom .fig { width: 64px; margin: auto; }
.classroom.small { transform: translate(-50%, -50%) scale(.1); opacity: 0; }
.classroom .label { position: absolute; left: 0; right: 0; top: -70px; text-align: center; font-size: 44px; font-weight: 700; }
canvas.grid-canvas { position: absolute; inset: 0; width: 1920px; height: 1080px; opacity: 0; transition: opacity 1.2s var(--ease-out); }
canvas.grid-canvas.in { opacity: 1; }
.num-pop { position: absolute; left: 50%; top: 50%; --base: translate(-50%, -50%); transform: var(--base); font-size: 300px; font-weight: 700; line-height: 1; color: var(--ink); text-shadow: 0 0 0 #fff, 0 12px 0 #fff, 0 -12px 0 #fff, 12px 0 0 #fff, -12px 0 0 #fff, 0 20px 60px rgba(30,42,68,.25); font-variant-numeric: tabular-nums; }
.vote-cards { position: absolute; left: 0; right: 0; top: 240px; display: flex; justify-content: center; gap: 60px; }
.opt .body-ico { position: absolute; top: -34px; left: -20px; width: 88px; height: 110px; background: #fff; border: 5px solid var(--ink); border-radius: 22px; padding: 6px; }
.opt .body-ico .fig { width: 100%; }
.opt.gray { opacity: .35; filter: grayscale(1); }
.stadium-canvas { position: absolute; inset: 0; width: 1920px; height: 1080px; }
.counter { position: absolute; left: 0; right: 0; top: 60px; text-align: center; font-size: 190px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.counter small { display: block; font-size: 60px; font-weight: 600; opacity: .8; letter-spacing: .04em; }
.ring { position: absolute; width: 220px; height: 220px; border-radius: 50%; border: 8px solid var(--flash); transform: translate(-50%, -50%); animation: ring 1.4s ease-out infinite; pointer-events: none; }
@keyframes ring { 0% { transform: translate(-50%,-50%) scale(.5); opacity: 1 } 100% { transform: translate(-50%,-50%) scale(1.6); opacity: 0 } }

/* ---------- scene: alone / team ---------- */
.dad-center { position: absolute; left: 50%; top: 50%; width: 320px; transform: translate(-50%, -50%); transition: transform .5s var(--ease-out); }
.dad-center.wob { animation: wob .5s ease-in-out infinite; }
@keyframes wob { 0%,100% { transform: translate(-50%,-50%) rotate(-5deg) } 50% { transform: translate(-50%,-50%) rotate(5deg) } }
.dad-center.fall { transform: translate(-50%, -30%) rotate(90deg); }
.bubble.pic { padding: 18px 22px 14px; border-radius: 34px; }
.bubble.pic .fig { width: 130px; display: block; }
.bubble.pic.big .fig { width: 190px; }
.bubble.pic::after { left: 40px; }
.q-big { position: absolute; left: 50%; top: 120px; width: 170px; transform: translateX(-50%); }
.team-lines { position: absolute; inset: 0; width: 1920px; height: 1080px; pointer-events: none; }
.team-circle { position: absolute; width: 240px; height: 240px; margin: -120px 0 0 -120px; border-radius: 50%; border: 6px solid var(--ink); background: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 16px 40px rgba(30,42,68,.12); }
.team-circle.big { width: 300px; height: 300px; margin: -150px 0 0 -150px; }
.team-circle .fig { width: 150px; }
.team-circle .icons { display: flex; gap: 6px; align-items: center; } .team-circle .icons .fig { width: 105px; }
.team-circle .tlabel { position: absolute; left: 50%; top: 100%; transform: translateX(-50%); margin-top: 14px; white-space: nowrap; font-size: 36px; font-weight: 700; letter-spacing: .02em; }
.team-circle .kd { position: absolute; right: -6px; top: -6px; width: 54px; height: 54px; border-radius: 50%; background: var(--ink); color: #fff; opacity: .45; font-size: 28px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.team-circle.hit { animation: hitglow .7s ease-out 2; }
@keyframes hitglow { 0%,100% { box-shadow: 0 16px 40px rgba(30,42,68,.12) } 50% { box-shadow: 0 0 0 18px rgba(255,194,26,.55), 0 16px 40px rgba(30,42,68,.12) } }
.team-circle.wrong { animation: shake .5s cubic-bezier(.36,.07,.19,.97) both; }
.team-circle.c-teachers { background: #FFE9EA; } .team-circle.c-fixers { background: #E3EEFF; } .team-circle.c-helpers { background: #E1F7EC; } .team-circle.c-building { background: #EFE7FF; } .team-circle.c-money { background: #FFF4CF; }
.pile { position: absolute; left: 960px; top: 910px; transform: translate(-50%, -50%); width: 380px; height: 300px; }
.pile .bubble { transition: transform .6s var(--ease-out), opacity .4s var(--ease-out); }
.pile .bubble.flying { transform: translate(var(--tx), var(--ty)) scale(.42) !important; opacity: .95; z-index: 1; box-shadow: none; }
.pile .bubble.front { transform: translate(-50%, 0) scale(1.15); z-index: 3; box-shadow: 0 0 0 12px rgba(255,201,26,.45), 0 16px 40px rgba(30,42,68,.14); }
.great { position: absolute; left: 0; right: 0; top: 40px; text-align: center; }

/* ---------- scene: coins / money ---------- */
.chest-wrap { position: absolute; left: 50%; top: 380px; width: 480px; transform: translateX(-50%); }
.fig-chest .lid { transition: transform .8s var(--ease-spring); transform-origin: 20px 70px !important; }
.fig-chest .lid.open { transform: translateY(-22px) rotate(-22deg); }
.coinrow { position: absolute; left: 50%; top: 120px; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; }
.coinrow .sockets { display: flex; gap: 10px; }
.coinrow .socket { width: 92px; height: 92px; border-radius: 50%; border: 6px dashed rgba(30,42,68,.3); position: relative; }
.coinrow .socket .fig { position: absolute; inset: -6px; width: 92px; height: 92px; transition: transform .7s var(--ease-out), opacity .4s var(--ease-out); }
.coinrow .socket .fig.spent { transform: translate(var(--tx, 0), var(--ty, 500px)) scale(.7); opacity: 0; }
.coinrow .socket .fig.jump { animation: coinjump .7s var(--ease-spring) both; }
@keyframes coinjump { 0% { transform: translate(var(--fx, 0), var(--fy, 400px)) scale(.4); opacity: 0 } 60% { opacity: 1 } 100% { transform: none; opacity: 1 } }
.coinrow .digit { font-size: 160px; font-weight: 700; line-height: 1; margin-left: 30px; font-variant-numeric: tabular-nums; min-width: 190px; }
.coinrow.shake { animation: shake .55s cubic-bezier(.36,.07,.19,.97) both; }
.coinrow.bottom { top: auto; bottom: 60px; left: 50px; transform: none; gap: 10px; }
.coinrow.bottom .sockets { gap: 8px; }
.coinrow.bottom .socket { width: 62px; height: 62px; border-width: 5px; } .coinrow.bottom .socket .fig { width: 62px; height: 62px; inset: -5px; }
.coinrow.bottom .digit { font-size: 140px; min-width: 150px; margin-left: 0; margin-right: 16px; order: -1; text-align: right; }
.boss-badge { position: absolute; left: 50%; top: 520px; --base: translateX(-50%); transform: var(--base); }
.tempt { animation: tempt 1.4s ease-in-out infinite; }
@keyframes tempt { 0%,100% { transform: scale(1) rotate(-1deg) } 50% { transform: scale(1.06) rotate(1deg) } }
.dots { font-size: 34px; letter-spacing: 4px; color: var(--gold); line-height: 1; }
.cards-row { position: absolute; left: 0; right: 0; top: 330px; display: flex; justify-content: center; align-items: flex-start; gap: 34px; padding: 0 40px; }
.opt.ice { min-width: 440px; border-color: var(--pink); background: linear-gradient(180deg, #fff, #FFF0F7); }
.opt.ice .fig { width: 210px; } .opt.ice .label { font-size: 44px; }
.opt.chosen-ice { box-shadow: 0 0 0 14px rgba(255,140,198,.5), 0 18px 44px rgba(30,42,68,.14); }
.storm { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.storm .ice { position: absolute; width: 110px; top: -200px; animation: icefall linear infinite; }
@keyframes icefall { 0% { transform: translateY(0) rotate(-20deg) } 100% { transform: translateY(1400px) rotate(25deg) } }
.storm.static .ice { animation: none; top: auto; bottom: 120px; }
.storm.gone .ice { animation: icegone .9s var(--ease-out) forwards; }
@keyframes icegone { to { transform: translateY(1400px) rotate(60deg); opacity: 0 } }
.students-row { position: absolute; left: 0; right: 0; bottom: 40px; display: flex; justify-content: center; gap: 30px; }
.students-row .fig { width: 130px; }
.students-row.dance .fig { animation: bounce 1s var(--ease-spring) infinite; }
.students-row.dance .fig:nth-child(2n) { animation-delay: -.3s; } .students-row.dance .fig:nth-child(3n) { animation-delay: -.6s; }
.frozen-layer { filter: grayscale(.8) brightness(.85); }
.frozen-layer, .frozen-layer * { animation-play-state: paused !important; transition: none !important; }
.snow-big { position: absolute; right: 90px; top: 70px; width: 200px; }
.teacher-in { position: absolute; right: -400px; bottom: 60px; width: 300px; transition: right .6s var(--ease-out); }
.teacher-in.in { right: 160px; }
.local-black { position: absolute; inset: 0; background: var(--navy); opacity: 0; transition: opacity .15s linear; }
.local-black.in { opacity: .92; }
.uhoh { position: absolute; left: 0; right: 0; top: 400px; text-align: center; font-size: 220px; font-weight: 700; color: var(--flash); line-height: 1; letter-spacing: .02em; text-shadow: 0 0 60px rgba(255,224,102,.5); }
.clock-wrap { position: absolute; left: 50%; top: 50%; width: 300px; --base: translate(-50%, -50%); transform: var(--base); z-index: 5; }
.clock-wrap.spin .hand { animation: unspin 1.2s var(--ease-out) forwards; }
@keyframes unspin { to { transform: rotate(-720deg) } }
.wallet-note { position: absolute; left: 0; right: 0; top: 240px; text-align: center; font-size: 84px; font-weight: 700; color: var(--coral); }

/* ---------- scene: shop / surprise / sad ---------- */
.shelf { position: absolute; left: 0; right: 0; top: 90px; display: flex; justify-content: center; gap: 30px; }
.shelf .opt { min-width: 340px; width: 340px; min-height: 400px; padding-top: 34px; transition: transform .5s var(--ease-spring), opacity .4s var(--ease-out); }
.shelf .opt .fig { width: 160px; }
.shelf .opt .thumbs { position: absolute; right: -14px; top: -20px; width: 64px; }
.shelf .opt .thumbs .fig { width: 64px; }
.shelf .opt.bought { transform: scale(.35) translateY(900px); opacity: 0; pointer-events: none; }
.shelf .opt.wobble { animation: shake .5s cubic-bezier(.36,.07,.19,.97) both; }
.cart-box { position: absolute; left: 61%; bottom: 40px; width: 560px; height: 300px; transform: translateX(-50%); }
.cart-box .fig-cart { position: absolute; left: 60px; bottom: 0; width: 440px; opacity: .9; }
.cart-box .items { position: absolute; left: 130px; right: 60px; bottom: 120px; display: flex; gap: 14px; justify-content: center; align-items: flex-end; }
.cart-box .item { width: 118px; background: #fff; border: 4px solid var(--ink); border-radius: 18px; padding: 8px 6px 6px; text-align: center; font-size: 20px; font-weight: 700; line-height: 1; cursor: pointer; animation: drop .7s var(--ease-spring) both; }
.cart-box .item .fig { width: 70px; margin: 0 auto 4px; }
.cart-box .item.removed { opacity: .25; filter: grayscale(1); }
.piggy-box { position: absolute; right: 60px; bottom: 50px; width: 300px; }
.piggy-box .pc { position: absolute; left: 50%; top: 32%; transform: translateX(-50%); display: flex; flex-direction: column-reverse; align-items: center; gap: -6px; }
.piggy-box .pc i { display: block; width: 52px; height: 14px; border-radius: 7px; background: var(--sun); border: 3px solid var(--gold); margin-top: -5px; }
.piggy-box .pn { position: absolute; left: 50%; bottom: -10px; transform: translateX(-50%); font-size: 54px; font-weight: 700; }
.piggy-box.wob { animation: wobp .5s ease-in-out 2; }
@keyframes wobp { 0%,100% { transform: rotate(0) } 25% { transform: rotate(-8deg) } 75% { transform: rotate(8deg) } }
.puff { position: absolute; width: 380px; height: 300px; left: 50%; top: 50%; transform: translate(-50%, -50%); pointer-events: none; }
.puff i { position: absolute; border-radius: 50%; background: #D5DBE6; opacity: 0; animation: puff 1s var(--ease-out) forwards; }
@keyframes puff { 0% { transform: scale(.2); opacity: 0 } 30% { opacity: .95 } 100% { transform: scale(1.6) translateY(-60px); opacity: 0 } }
.center-card { position: absolute; left: 50%; top: 200px; transform: translateX(-50%); }
.center-card .opt { min-width: 520px; padding: 40px 50px; }
.center-card .opt .fig { width: 300px; }
.flying-coin { position: absolute; width: 74px; height: 74px; pointer-events: none; transition: transform .55s var(--ease-out), opacity .3s; z-index: 4; }
.big-note { position: absolute; left: 0; right: 0; top: 40px; text-align: center; font-size: 110px; font-weight: 700; line-height: 1; }
.big-note.red { color: var(--coral); } .big-note.green { color: #1E9C6B; }
.flashy { position: absolute; inset: 0; background: var(--flash); opacity: 0; pointer-events: none; animation: flashy .3s ease-out; }
@keyframes flashy { 0% { opacity: .5 } 100% { opacity: 0 } }
.sad-row { position: absolute; left: 60px; right: 60px; bottom: 380px; display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; }
.sad-row .fig { width: 120px; }
.sad-row.many { bottom: 330px; left: 620px; right: 40px; } .sad-row.many .fig { width: 84px; }
.comp-big { position: absolute; left: 140px; top: 120px; width: 380px; }
.smoke { animation: smoke 1.6s ease-in-out infinite; transform-origin: 96px 14px; }
@keyframes smoke { 0%,100% { transform: translateY(0) scale(1); opacity: .9 } 50% { transform: translateY(-14px) scale(1.15); opacity: .5 } }
.bubble.shiver { font-size: 34px; }
.dad-shout { position: absolute; left: 50%; top: 360px; width: 300px; --base: translateX(-50%); transform: var(--base); }
.dad-shout .fig-megaphone { position: absolute; right: -170px; top: 120px; width: 200px; animation: wiggle .5s ease-in-out infinite; }
.heater-in { position: absolute; right: 200px; bottom: 380px; width: 240px; }
.ear-big { position: absolute; left: 50%; top: 250px; width: 340px; --base: translate(-50%, -50%); transform: var(--base); z-index: 3; filter: drop-shadow(0 20px 30px rgba(30,42,68,.2)); }

/* ---------- scene: recap / finale / questions ---------- */
.slots { position: absolute; inset: 0; }
.slot { position: absolute; width: 300px; height: 300px; transform: translate(-50%, -50%); border-radius: 50%; border: 6px dashed rgba(30,42,68,.25); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.slot.in { border-color: var(--ink); border-style: solid; background: #fff; box-shadow: 0 16px 40px rgba(30,42,68,.12); }
.slot .fig { width: 170px; }
.slot .gest { position: absolute; top: -70px; right: -50px; width: 120px; height: 120px; border-radius: 50%; background: var(--flash); border: 5px solid var(--ink); display: flex; align-items: center; justify-content: center; }
.slot .gest .fig { width: 78px; }
.slot .slabel { position: absolute; top: 100%; margin-top: 12px; font-size: 40px; font-weight: 700; white-space: nowrap; }
.big-one { position: absolute; left: 50%; top: 50%; --base: translate(-50%, -50%); transform: var(--base); text-align: center; }
.arrow { font-size: 200px; font-weight: 700; line-height: 1; }
.finale-uni { position: absolute; left: 50%; top: 300px; width: 800px; transform: translateX(-50%); }
.finale-uni .door-l, .finale-uni .door-r { transition: transform .8s var(--ease-out); }
.finale-uni.open .door-l { transform: scaleX(.1); } .finale-uni.open .door-r { transform: scaleX(.1); }
.big-button { position: absolute; left: 50%; bottom: 40px; width: 320px; --base: translateX(-50%); transform: var(--base); cursor: pointer; z-index: 3; }
.big-button .cap { transition: transform .15s var(--ease-out); transform-origin: 100px 96px; }
.big-button.pressed .cap { transform: translateY(14px); }
.runners { position: absolute; inset: 0; pointer-events: none; }
.runners .fig { position: absolute; width: 90px; left: var(--sx); top: var(--sy); animation: runin 2.6s var(--ease-out) forwards; animation-delay: var(--d); opacity: 0; }
@keyframes runin { 0% { transform: translate(0, 0); opacity: 0 } 10% { opacity: 1 } 85% { opacity: 1 } 100% { transform: translate(var(--dx), var(--dy)) scale(.6); opacity: 0 } }
.finale-text { position: absolute; left: 0; right: 0; top: 40px; text-align: center; }
.finale-text .h1 { font-size: 124px; }
.teacher-happy { position: absolute; left: 180px; bottom: 60px; width: 260px; }
.teacher-happy .fig-coin { position: absolute; right: -40px; top: 100px; width: 90px; }
.comps-lit { position: absolute; right: 120px; bottom: 80px; display: flex; gap: 20px; }
.comps-lit .fig { width: 150px; }
.q-orbit { position: absolute; width: 220px; margin: -110px 0 0 -110px; }
.q-orbit .fig { width: 100%; }

/* ---------- misc scene helpers ---------- */
.spot { position: absolute; left: 50%; top: 50%; width: 1500px; height: 1500px; border-radius: 50%; transform: translate(-50%,-50%); background: radial-gradient(circle, rgba(255,201,60,.55) 0%, rgba(255,201,60,0) 60%); animation: spotlight 1.2s var(--ease-out) both; pointer-events: none; }
.badge-big { display: inline-flex; align-items: center; gap: 22px; padding: 26px 54px; border-radius: 999px; background: var(--sun); color: var(--ink); border: 6px solid var(--ink); font-size: 74px; font-weight: 700; box-shadow: 0 24px 60px rgba(43,42,51,.2); white-space: nowrap; }
.badge-big .fig { width: 90px; flex: none; }
.ground { position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(180deg, rgba(43,42,51,.06), rgba(43,42,51,.12)); }
.theme-night .ground { background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.08)); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 60px; width: 1560px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 60px; width: 1500px; }
.card { background: #fff; border: 5px solid var(--ink); border-radius: 40px; padding: 36px 30px; display: flex; flex-direction: column; align-items: center; gap: 16px; box-shadow: 0 18px 44px rgba(43,42,51,.12); }
.card .fig { width: 170px; }
.card .label { font-size: 42px; font-weight: 700; text-align: center; line-height: 1.05; }
.kicker { font-size: 40px; font-weight: 600; opacity: .7; letter-spacing: .02em; }
.line-list { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.line-list .line { font-size: 66px; font-weight: 700; line-height: 1.1; display: flex; align-items: center; gap: 28px; }
.line-list .line .fig { width: 84px; flex: none; }
