/* Riang! Betang 4.0 — festival dashboard, score arena, learner-paced experience.
   Vectors, surfaces and motion are local; never needed for gameplay correctness. */
:root{--ink:#2c2352;--sub:#78718f;--paper:#f7f5ff;--gold:#ffe16b;--joy-violet:#7749ed;--joy-cyan:#38caff;--joy-pink:#ff86bc;--joy-mint:#60ebbc}
[hidden]{display:none!important}.joy-icon{width:22px;height:22px;flex-shrink:0;vertical-align:middle}.btn .joy-icon{width:18px;height:18px}.btn{display:inline-flex;justify-content:center;align-items:center;gap:8px}.btn,.icon-btn,.quick-game,.mode{touch-action:manipulation}button:focus-visible,a:focus-visible{outline:3px solid #22c9c0;outline-offset:4px}body{background:radial-gradient(ellipse at 95% 0,#eee7ff,transparent 45%),#f7f5ff}.sidebar{background:radial-gradient(ellipse at 0 10%,#422c74,transparent 60%),#21173e}.sidebar nav button.active{background:#ffe16b;color:#352553;box-shadow:0 3px 0 #ad843c55}.sidebar .side-note b{font-size:18px}.sidebar .side-note{position:relative}.sidebar .side-note:before{content:'';position:absolute;inset:20px -10px -10px;border-radius:20px;background:linear-gradient(140deg,#ffffff0b,transparent);z-index:-1}.brand-icon{animation:emblem-float 5s ease-in-out infinite}.topbar{height:78px;background:#ffffffc9}.top-actions [data-action="motion"]{color:#7752c9}.topbar .btn-dark{box-shadow:none}.footer{font-size:11px}.joy-eyebrow{font-size:10px;letter-spacing:1.7px;font-weight:800;display:flex;align-items:center;gap:8px;color:#9773d7}.dashboard-intro{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 27px}.dashboard-intro h1{font-size:clamp(25px,2.7vw,39px);font-weight:850;letter-spacing:-1.3px;margin-top:8px;line-height:1.18}.dashboard-intro h1 span{color:#7949d9}.dashboard-intro p{font-size:13px;color:#817793;margin-top:9px}.edition-chip{display:flex;align-items:center;gap:8px;padding:9px 12px;color:#764aab;background:#eee5ff;border:1px solid #e1d2fa;border-radius:40px;font-size:9px;letter-spacing:.5px;white-space:nowrap}.edition-chip b{background:#8453d8;color:white;border-radius:20px;padding:2px 6px}.edition-chip .joy-icon{width:17px}
/* Dashboard hero: a living festival, not a static management panel. */
.festival-grid{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:23px}.festival-hero{min-height:367px;position:relative;isolation:isolate;overflow:hidden;border-radius:27px;background:radial-gradient(ellipse at 72% 20%,#ad79ff66,transparent 64%),linear-gradient(120deg,#7250e9 4%,#6b3add 55%,#4147be);box-shadow:0 8px 0 #d9cff1,0 16px 35px #6d43c614}.festival-hero:before{content:'';position:absolute;width:320px;height:320px;border:1px solid #ffffff14;border-radius:50%;right:-30px;top:-140px;box-shadow:0 0 0 50px #ffffff05,0 0 0 100px #ffffff05;z-index:-1}.festival-copy{position:relative;z-index:3;padding:33px 35px;width:60%;min-width:340px}.festival-tag{font-size:9px;letter-spacing:1.3px;display:flex;align-items:center;gap:8px;font-weight:750;color:#eee1ff}.festival-tag>span{height:7px;width:7px;border-radius:50%;background:#8fffd5;box-shadow:0 0 0 4px #8fffd51b}.festival-copy h2{font-size:clamp(39px,3.6vw,57px);letter-spacing:-2px;font-weight:900;line-height:1.07;color:white;margin:18px 0 16px}.festival-copy em{color:#ffe775;font-style:normal}.festival-copy>p{font-size:12px;line-height:1.8;color:#eee4ff}.hero-buttons{display:flex;align-items:center;gap:17px;margin-top:23px}.hero-start{background:#ffe77f;color:#43214e;box-shadow:0 4px 0 #d5af53;min-height:43px;padding:11px 15px;font-size:12px;white-space:nowrap}.hero-start:hover{background:#fff0a9;transform:translateY(-2px)}.hero-start .joy-icon:first-child{width:16px;fill:currentColor}.hero-secondary{padding:7px 0;background:transparent;color:#fff;font-size:11px;white-space:nowrap;display:flex;gap:5px;align-items:center}.hero-secondary .joy-icon{width:15px}.hero-secondary:hover{color:#ffe775}.hero-mini{display:flex;gap:15px;margin-top:22px;font-size:9px;color:#e1d6fc}.festival-scene{position:absolute;inset:0 0 0 auto;width:45%;pointer-events:none}.festival-scene>img{position:absolute;width:127%;height:80%;object-fit:contain;left:-10%;bottom:1%;filter:drop-shadow(0 10px 18px #25115d45);opacity:.98}.scene-orbit{position:absolute;width:215px;height:215px;border-radius:50%;background:#ad9bff29;right:15px;top:65px;box-shadow:0 0 0 22px #d9baff0a,0 0 0 44px #d9baff07}.scene-badge{position:absolute;top:32px;right:27px;display:flex;align-items:center;gap:9px;padding:12px 17px;border:1px solid #fff9;border-radius:18px;box-shadow:0 8px 18px #3521742a;background:#fff7d9;color:#704386;transform:rotate(7deg);animation:badge-bob 5s ease-in-out infinite}.scene-badge b{font-size:11px;line-height:1.35}.scene-badge .joy-icon{width:33px;height:33px;color:#edab30}.scene-chip{position:absolute;border-radius:16px;padding:9px 13px;text-align:center;font-weight:900;box-shadow:0 7px 16px #34246a40;font-size:26px;line-height:1.2}.scene-chip small{display:block;font-size:6px;letter-spacing:1px;margin-top:4px}.chip-blue{background:#89f3f4;color:#235e88;left:-5%;top:40%;transform:rotate(-11deg);animation:float-blue 6s ease-in-out infinite}.chip-pink{background:#ffb7d6;color:#8c306b;right:18px;bottom:15%;transform:rotate(11deg);animation:float-blue 7s -2s ease-in-out infinite}.hero-weave{position:absolute;bottom:0;height:13px;width:100%;background:url('weave.svg') repeat-x center;background-size:85px 34px;opacity:.7}.floating-shapes{position:absolute;inset:0;pointer-events:none;z-index:1}.floating-shapes span{position:absolute;opacity:.42;font-size:21px;color:#e4ccff;animation:float-symbol 8s ease-in-out infinite}.floating-shapes span:nth-child(1){top:8%;left:51%;font-size:25px;color:#ffe775}.floating-shapes span:nth-child(2){top:42%;left:57%;animation-delay:-3s}.floating-shapes span:nth-child(3){right:7%;bottom:14%;animation-delay:-6s;font-size:30px}.floating-shapes span:nth-child(4){left:45%;bottom:13%;font-size:13px;animation-delay:-1s}.festival-join{position:relative;background:#fff5d8;border:1px solid #f2dfb1;border-radius:25px;padding:27px 25px;box-shadow:0 7px 0 #eee5cf;overflow:hidden}.festival-join:after{content:'✦';position:absolute;right:-15px;bottom:33%;font-size:95px;line-height:1;opacity:.06;transform:rotate(12deg);pointer-events:none}.join-spark{width:40px;height:40px;border-radius:12px;background:#ffe189;color:#9c643b;margin-bottom:15px;display:grid;place-items:center;transform:rotate(-8deg)}.festival-join .joy-eyebrow{font-size:8px;color:#a0834e;letter-spacing:1.3px}.festival-join h2{font-size:27px;line-height:1.17;color:#4d3b5d;font-weight:850;letter-spacing:-.8px;margin:8px 0 10px}.festival-join h2 span{color:#956136}.festival-join p{font-size:11px;color:#9c8865;line-height:1.6;margin-bottom:18px}.festival-join form{position:relative;z-index:2}.festival-join label{font-size:9px;color:#9a8155}.festival-join .pin{background:#fffcf2;border:1.5px solid #e5cb8e;font-size:26px;text-align:center;font-weight:850;letter-spacing:8px;padding:9px 6px 9px 14px;border-radius:11px;height:53px;width:100%;color:#574363}.festival-join .pin::placeholder{color:#c4b49f}.join-go{width:100%;margin-top:10px;background:#7651d0;box-shadow:0 4px 0 #503191;color:#fff;font-size:12px;min-height:42px;justify-content:space-between}.festival-join>small{display:flex;align-items:center;gap:6px;font-size:8px;color:#9d8a66;margin-top:15px;position:relative;z-index:2}.status-spark{width:5px;height:5px;background:#30ad83;border-radius:50%}
.dashboard-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin:29px 0 31px}.dash-stat{display:flex;align-items:center;gap:12px;padding:15px;background:#fff;border-radius:18px;border:1px solid #eee7f7;position:relative}.dash-stat>.joy-icon{width:42px;height:42px;padding:10px;border-radius:12px;background:var(--tint);color:var(--accent)}.dash-stat>div{display:flex;flex-direction:column}.dash-stat b{font-size:24px;line-height:1.2;font-weight:850;letter-spacing:-.8px}.dash-stat span{font-size:9px;color:#81728f}.dash-stat>small{display:none}.purple{--tint:#eee5ff;--accent:#8e63de}.cyan{--tint:#def6ff;--accent:#24a2ce}.pink{--tint:#ffe8f1;--accent:#ed7eac}.green{--tint:#ddf9ee;--accent:#2caf88}.section-head h2{font-size:23px;font-weight:850;letter-spacing:-.6px}.section-head p{font-size:11px;color:#8a8299;margin-top:4px}.little-sticker{font-size:8px;letter-spacing:1px;transform:rotate(-4deg);color:#ab791b;padding:6px 9px;background:#ffefbd;border-radius:7px}.quick-games{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:17px 0 29px}.quick-game{display:flex;align-items:center;gap:13px;position:relative;border-radius:19px;min-height:117px;padding:22px 17px;text-align:left;transition:transform .2s,box-shadow .2s;overflow:hidden;isolation:isolate}.quick-game:after{content:'';position:absolute;inset:-50px -10px auto auto;border-radius:50%;width:120px;height:120px;background:#ffffff18;z-index:-1}.quick-game:hover{transform:translateY(-5px)}.quick-math{background:linear-gradient(125deg,#ff9961,#f7756f);color:#fff;box-shadow:0 5px 0 #ebc1b8}.quick-kka{background:linear-gradient(125deg,#7968e6,#9b6bed);color:#fff;box-shadow:0 5px 0 #d3c3e8}.quick-solo{background:linear-gradient(125deg,#42c6b3,#259fba);color:#fff;box-shadow:0 5px 0 #bededa}.quick-emoji{font-size:43px;line-height:1;font-weight:900;background:#ffffff1a;width:55px;height:60px;flex-shrink:0;border-radius:15px;display:grid;place-items:center;transform:rotate(-7deg);text-shadow:0 3px 0 #00000010}.quick-kka .quick-emoji{font-size:26px}.quick-game small{font-size:7px;letter-spacing:.8px;color:#fff;opacity:.86}.quick-game h3{font-size:16px;font-weight:850;margin-top:3px;letter-spacing:-.35px}.quick-game p{font-size:9px;margin-top:5px;color:#fff;opacity:.9}.quick-arrow{position:absolute;bottom:12px;right:13px;font-size:18px;color:#ffffffc9}.modes{gap:18px;margin-top:16px}.mode{border:1px solid #e9e0f4;padding:17px 19px;border-radius:17px;box-shadow:0 4px 0 #e9e4f1}.mode.active{border:2px solid #9e7be2;background:#f0e9ff;padding:16px 18px}.mode .symbol{width:43px;height:43px;border-radius:13px;display:grid;place-items:center;font-size:26px}.mode:nth-child(2).active{background:#e8f7ff;border-color:#69b7e9}.mode:nth-child(3).active{background:#e3faf0;border-color:#50bb9b}.mode small{font-size:10px}.card-art .big{font-family:inherit;font-size:46px;font-weight:900}.card-art{height:132px}.card-art:after{animation:float-symbol 8s ease-in-out infinite}.quiz-card{border-radius:20px}.quiz-card .card-actions .btn{font-size:11px;padding:9px 12px}.quiz-card .card-meta{gap:13px}.card-body{padding:20px}.card-body h3{font-size:17px}.card-body p{font-size:11px}.import-callout{display:flex;align-items:center;gap:18px;background:linear-gradient(100deg,#e8e0ff,#e9edff 60%,#e3f7ff);padding:24px;border:1px solid #dcd5f1;border-radius:20px;margin-top:30px}.import-callout-icon{width:54px;height:54px;border-radius:16px;background:#fff9;color:#9671d8;display:grid;place-items:center;flex-shrink:0}.import-callout h3{font-size:16px}.import-callout p{font-size:11px;color:#8c7d9e;margin-top:4px}.import-callout>.btn{margin-left:auto;flex-shrink:0;font-size:11px}.dashboard-intro,.festival-grid,.dashboard-stats,.quick-games,.cards{animation:section-in .55s both}.festival-grid{animation-delay:.06s}.dashboard-stats{animation-delay:.12s}.quick-games{animation-delay:.18s}.cards{animation-delay:.23s}
/* Two rhythms, clearly separated controls. */
.pace-label{display:flex;align-items:center;gap:8px;color:#9862d0;font-size:9px;letter-spacing:1.3px;font-weight:850;margin:20px 0 10px}.pace-label .joy-icon{width:16px;height:16px}.pace-cards{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:15px}.pace-card{display:flex;align-items:center;gap:12px;padding:18px 14px;border:2px solid #e8e0f3;border-radius:15px;position:relative;cursor:pointer;transition:.2s;background:#fcfaff}.pace-card:has(input:checked){border-color:#a783ef;background:linear-gradient(120deg,#f1e8ff,#eeeaff);box-shadow:0 3px 0 #daccf3}.pace-card input{width:15px;height:15px;flex-shrink:0;margin:0;accent-color:#844ede}.pace-card b{font-size:13px;display:block;line-height:1.3;color:#523774}.pace-card small{font-size:10px;color:#91809f;display:block;margin-top:5px;line-height:1.55}.pace-symbol{font-size:25px;font-weight:900;color:#8c60ca}.self-options{background:#f1fafa;border:1px solid #d9eeee;border-radius:16px;padding:17px;margin-bottom:18px}.self-options>label{font-size:12px;color:#46877d}.self-options select{font-size:12px;border-color:#cfdfde;background:white;padding:11px}.self-review-duration{display:flex;align-items:center;gap:10px;margin-top:12px}.self-review-duration label{margin:0;font-size:11px;flex:1;color:#6c8a86}.self-review-duration select{max-width:140px}.self-options .field-note{font-size:10px;color:#74928d;margin:12px 0 0}.arena-settings .settings-primary{gap:8px}.arena-settings .switch-card b{font-size:12px}.arena-settings .switch-card small{font-size:10px}
/* Immersive score wall. Keyed elements stay in place between network polls. */
.arena-stage{background:radial-gradient(ellipse at 6% 0,#6039a777,transparent 50%),radial-gradient(ellipse at 96% 80%,#2869a52e,transparent 52%),linear-gradient(115deg,#2b1a54,#241847 58%,#1c214d)}
.arena-stage:before{opacity:.16}.arena-stage:after{opacity:.06}.self-score-stage{height:auto!important;min-height:100svh;padding:22px 40px 14px}.stage-header{gap:24px}.stage-title>b{font-size:17px}.stage-tools button{transition:background .2s,transform .2s}.stage-tools button:hover{transform:translateY(-3px);background:#ffffff30}.stage-info{padding:12px 0}.pin-copy{background:#ffffff18;color:#e8dafc;border:1px solid #ffffff26;padding:4px 10px;border-radius:8px;font-size:10px}.stage-stats .live-pulse{margin-right:-6px}.joy-score{--score-line:#ffffff12;width:100%;max-width:1500px;margin:0 auto;flex:1;text-align:left}.joy-score-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:12px 0 24px}.joy-score-heading .joy-eyebrow{color:#b8a0e8;font-size:9px;letter-spacing:2px}.joy-score-heading h1{font-size:clamp(32px,3.7vw,53px);font-weight:900;letter-spacing:-1.8px;color:white;line-height:1.15;margin:7px 0 6px}.joy-score-heading h1>span{font-size:35px;color:#ffe178;display:inline-block;margin-left:12px;animation:float-symbol 6s ease-in-out infinite}.joy-score-heading p{font-size:12px;color:#b1a1c9}.live-pulse{display:inline-block;width:7px;height:7px;border-radius:50%;background:#78f2c5;flex-shrink:0;box-shadow:0 0 0 4px #6af0c313;animation:live-breathe 2.6s ease-in-out infinite}.board-switch{display:flex;gap:5px;padding:5px;border:1px solid #ffffff15;border-radius:14px;background:#ffffff08;flex-shrink:0}.board-switch button{color:#baa7d7;background:transparent;display:flex;align-items:center;gap:7px;border-radius:10px;padding:9px 15px;font-size:11px;transition:.2s}.board-switch .joy-icon{width:16px;height:16px}.board-switch button[aria-pressed="true"]{color:#352445;background:#ffe388;box-shadow:0 3px 10px #0f071e40}.score-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:20px}.metric{display:flex;gap:15px;align-items:center;padding:18px 21px;border:1px solid #ffffff12;border-radius:17px;position:relative;isolation:isolate;overflow:hidden}.metric:after{content:'';position:absolute;width:95px;height:95px;top:-43px;right:-30px;background:#ffffff05;border-radius:50%;z-index:-1}.metric>.joy-icon{width:43px;height:43px;border-radius:13px;padding:10px;background:var(--metric-icon);color:var(--metric-accent)}.metric.violet{background:linear-gradient(120deg,#7e55b32a,#62438812);--metric-icon:#a580df1a;--metric-accent:#c8a6ff}.metric.blue{background:linear-gradient(120deg,#398abd2a,#235aa812);--metric-icon:#53a3ee1a;--metric-accent:#78d8ff}.metric.mint{background:linear-gradient(120deg,#2e9b812a,#257e6012);--metric-icon:#55dea51a;--metric-accent:#7debc3}.metric.gold{background:linear-gradient(120deg,#caa64c2a,#b3943612);--metric-icon:#f8c83b1a;--metric-accent:#ffe08c}.metric b{font-size:32px;font-weight:900;letter-spacing:-.8px;font-variant-numeric:tabular-nums;color:var(--metric-accent);line-height:1.15}.metric div>span{color:var(--metric-accent);font-size:19px}.metric small{display:block;color:#bfb0d1;font-size:10px;margin-top:3px}.score-layout{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:20px}.score-main{min-width:0;overflow:hidden;border:1px solid #ffffff12;border-radius:24px;background:linear-gradient(130deg,#ffffff06,#ffffff03);position:relative}.podium-show{position:relative;isolation:isolate;overflow:hidden;min-height:330px;padding:22px 25px 0}.podium-caption{position:absolute;left:23px;top:20px;z-index:4;display:flex;flex-direction:column}.podium-caption span{font-size:8px;letter-spacing:2px;color:#bca1e9}.podium-caption b{font-size:12px;color:#bca8d5;font-weight:550;margin-top:5px}.spotlight-rays{position:absolute;z-index:-1;inset:-30px 4% 0;background:conic-gradient(from -33deg at 50% -35%,transparent,#cd9cf114 12deg,transparent 30deg,#a1aef214 44deg,transparent 63deg,#cd9cf114 73deg,transparent 95deg);opacity:.9;animation:spotlight-shift 12s ease-in-out infinite}.podium-show:before{content:'✦';position:absolute;left:17%;top:80px;color:#978ad466;font-size:22px;animation:float-symbol 6s ease-in-out infinite}.podium-show:after{content:'✦';position:absolute;right:15%;top:150px;color:#ffe07988;font-size:15px;animation:float-symbol 8s -2s ease-in-out infinite}.joy-podium{display:flex;align-items:flex-end;justify-content:center;gap:22px;position:relative;padding-top:42px;min-height:309px;z-index:1}.joy-winner{width:29%;max-width:210px;display:flex;flex-direction:column;align-items:center;text-align:center;position:relative;transition:width .6s;--winner-top:#b7a5f0;--winner-bottom:#645bab;--pedestal-h:90px;--medal:#d8c4ff}.joy-winner[data-place="1"]{--winner-top:#ffd573;--winner-bottom:#d99347;--pedestal-h:129px;--medal:#ffdf8c}.joy-winner[data-place="3"]{--winner-top:#9ae4e0;--winner-bottom:#488599;--pedestal-h:69px;--medal:#acfff0}.winner-crown{font-size:29px;line-height:1;position:absolute;top:-19px;color:#ffd565;transform:rotate(-12deg);text-shadow:0 3px 16px #ffe47380;display:none;animation:crown-dance 5s ease-in-out infinite}.joy-winner[data-place="1"] .winner-crown{display:block}.winner-avatar{height:62px;width:62px;display:grid;place-items:center;font-size:37px;border-radius:22px;background:radial-gradient(circle at 28% 20%,#ffffff2b,#ffffff04);border:1px solid #ffffff30;box-shadow:0 7px 23px #07071c35;position:relative}.joy-winner[data-place="1"] .winner-avatar{width:77px;height:77px;font-size:46px;border-color:#ffe58077;box-shadow:0 0 30px #efc5421b,0 8px 22px #13152b50}.winner-name{color:white;font-size:16px;font-weight:800;max-width:100%;overflow-wrap:anywhere;line-height:1.3;margin-top:9px;min-height:20px;max-height:42px;overflow:hidden}.winner-score{display:flex;gap:5px;align-items:baseline;margin:5px 0 12px;color:var(--medal)}.winner-score strong{font-size:24px;font-weight:900;letter-spacing:-.7px;font-variant-numeric:tabular-nums}.winner-score small{font-size:8px;color:#baadcf}.winner-pedestal{width:100%;height:var(--pedestal-h);border-radius:16px 16px 0 0;background:linear-gradient(155deg,var(--winner-top),var(--winner-bottom));display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative;overflow:hidden;box-shadow:inset 0 2px 0 #fff7,6px 0 0 #0000001c;transition:height .65s cubic-bezier(.2,.8,.2,1)}.winner-pedestal:before{content:'';position:absolute;inset:0;background:linear-gradient(100deg,transparent,#ffffff28 50%,transparent 70%);transform:translateX(-100%);animation:pedestal-shine 7s ease-in-out infinite}.winner-pedestal b{color:#fff;font-size:47px;font-weight:900;line-height:1;text-shadow:0 3px 0 #0002}.winner-pedestal span{color:#fff;font-size:7px;letter-spacing:2px;margin-top:7px;font-weight:800}.joy-winner[data-place="1"] .winner-pedestal b,.joy-winner[data-place="1"] .winner-pedestal span{color:#73482b;text-shadow:none}.podium-floor{position:absolute;bottom:0;left:5%;right:5%;height:1px;background:linear-gradient(90deg,transparent,#d5c7fa44,transparent)}
.race-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 22px 10px}.race-heading>div{display:flex;gap:10px;align-items:center;flex-shrink:0}.race-heading b{font-size:12px;font-weight:750;color:#e7dbf8}.race-heading small{font-size:8px;color:#9281ac;max-width:230px;text-align:right}.joy-ranking{max-height:264px;overflow-y:auto;overscroll-behavior:contain;padding:0 15px 12px;scrollbar-width:thin;scrollbar-color:#765d9866 transparent;outline-offset:-3px}.joy-rank{--lane:#a78fea;display:grid;grid-template-columns:25px 36px minmax(75px,1fr) minmax(70px,1.1fr) 68px 70px 26px;gap:9px;align-items:center;border:1px solid #ffffff10;border-radius:12px;padding:12px 11px;margin-top:7px;background:#ffffff06;min-height:62px;position:relative;will-change:transform}.joy-rank[data-team="1"]{--lane:#72d9ff}.joy-rank[data-team="2"]{--lane:#ffe28b}.joy-rank[data-team="3"]{--lane:#7ae7bb}.joy-rank.rank-first{background:linear-gradient(90deg,#e7c16814,#ffffff05);border-color:#ffe68344}.joy-rank.its-me{border-color:#b399ff;background:#a88dfb18}.position{color:#9585b0;font-size:13px;font-weight:900;text-align:center;font-variant-numeric:tabular-nums}.rank-first .position{color:#ffe38c}.rank-avatar{font-size:21px;display:grid;place-items:center;width:33px;height:35px;border:1px solid #ffffff18;border-radius:11px;background:#ffffff0b}.rank-identity{min-width:0}.rank-identity>b{display:block;font-size:12px;color:#f5ecff;font-weight:750;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rank-identity>small{display:block;font-size:8px;color:#9b8daf;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.race-track{height:9px;border-radius:20px;background:repeating-linear-gradient(90deg,#ffffff09 0 18px,#ffffff02 18px 21px);position:relative;margin:0 12px 0 2px}.race-track>i{display:block;border-radius:inherit;height:100%;background:linear-gradient(90deg,color-mix(in srgb,var(--lane),transparent 75%),var(--lane));transition:width .8s cubic-bezier(.2,.8,.2,1);position:relative}.race-track .racer{position:absolute;top:50%;transform:translate(-50%,-50%);font-size:20px;transition:left .8s cubic-bezier(.2,.8,.2,1);filter:drop-shadow(0 2px 3px #100c35)}.rank-progress{font-size:8px;color:#ab9bbf;white-space:normal}.rank-points{text-align:right}.rank-points strong{font-size:17px;letter-spacing:-.5px;color:white;font-weight:850;font-variant-numeric:tabular-nums}.rank-points small{display:block;color:#b3a0ca;font-size:8px}.rank-move{font-size:10px;color:#ad9ec4;text-align:right;font-weight:800}.rank-move.up{color:#85f8c7}.rank-move.down{color:#c5a3f6}.score-side{display:flex;flex-direction:column;gap:17px;min-width:0}.mission-card{position:relative;border-radius:22px;padding:23px;background:radial-gradient(ellipse at top right,#7057ae44,transparent 75%),linear-gradient(135deg,#46306c,#332555);border:1px solid #b19adb33;overflow:hidden}.mission-card:after{content:'✦';position:absolute;right:13px;top:50px;color:#ead29e13;font-size:103px;line-height:1;pointer-events:none}.mission-label{font-size:8px;letter-spacing:1.5px;color:#c2addb;display:flex;align-items:center;gap:8px;font-weight:750}.mission-label .joy-icon{width:16px;height:16px;color:#ffe291}.mission-value{font-size:20px;color:#e9c88a;margin-top:9px}.mission-value b{font-size:57px;letter-spacing:-2px;font-weight:900;line-height:1.1;color:#ffe69e;font-variant-numeric:tabular-nums}.energy-track{height:8px;border-radius:20px;background:#21153588;margin:17px 0 14px;overflow:hidden}.energy-track i{display:block;height:100%;background:linear-gradient(90deg,#d99ce9,#ffe493);border-radius:inherit;transition:width .8s}.mission-card p{line-height:1.5}.mission-card p b{font-size:12px;color:#ead9ff;font-weight:600}.mission-detail{font-size:9px;color:#a993c6;margin-top:7px;display:block}.activity-card{padding:19px 18px;border-radius:22px;border:1px solid #ffffff12;background:#ffffff04;flex:1}.activity-card h3{display:flex;align-items:center;gap:8px;font-size:13px;color:#dfd0f4}.activity-card h3 .joy-icon{color:#baa0ed;width:17px}.activity-card h3>span{margin-left:auto;font-size:6px;letter-spacing:1px;color:#9aebc4;background:#72e6aa16;border:1px solid #7deaaf28;padding:2px 6px;border-radius:5px}.joy-events{margin-top:16px}.joy-event{display:flex;align-items:center;gap:9px;padding:12px 0;border-bottom:1px solid #ffffff09}.joy-event:last-child{border:0}.joy-event>span{font-size:24px;flex-shrink:0}.joy-event>div{min-width:0}.joy-event b{font-size:11px;color:#e4d7f5;display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.joy-event small{font-size:8px;color:#9d89b7;display:block;margin-top:2px}.joy-event>strong{font-size:12px;color:#92f2c9;margin-left:auto;flex-shrink:0;font-variant-numeric:tabular-nums}.events-empty{text-align:center;padding:22px 2px;color:#b8a2d3}.events-empty>.joy-icon{display:block;margin:auto auto 10px;color:#b795e8;width:32px;height:32px}.events-empty>b{font-size:11px;display:block}.events-empty p{font-size:10px;line-height:1.6;margin-top:8px;color:#8f7ba9}.board-footer-note{display:flex;align-items:center;gap:7px;font-size:9px;color:#9383ab;margin-top:13px}.board-footer-note .joy-icon{width:13px;height:13px}.joy-score[data-board-view="race"] .podium-show{display:none}.joy-score[data-board-view="race"] .joy-ranking{max-height:580px}.joy-score[data-board-view="race"] .joy-rank{min-height:85px;padding:16px 16px;grid-template-columns:29px 44px minmax(90px,1fr) minmax(110px,1.8fr) 68px 75px 26px;gap:10px}.joy-score[data-board-view="race"] .rank-avatar{width:40px;height:40px;font-size:28px}.joy-score[data-board-view="race"] .rank-identity>b{font-size:14px}.joy-score[data-board-view="race"] .rank-points strong{font-size:21px}.joy-score[data-board-view="race"] .race-track{height:12px}.joy-score[data-board-view="race"] .racer{font-size:28px}.joy-score[data-board-view="race"] .race-heading{padding:23px 22px 12px}.joy-score[data-board-view="race"] .race-heading b{font-size:18px}.self-host-controls{margin-top:8px}.self-host-controls .btn{font-size:12px;min-height:37px}.self-host-controls .stage-auto{font-size:11px}.final-actions{display:flex;gap:12px;justify-content:center;margin:26px 0 10px}.score-screen>.joy-score{margin-top:15px}.is-host.phase-scoreboard,.is-host.phase-finished{height:auto;min-height:100svh}.is-host.phase-scoreboard .score-screen{padding-top:8px}.score-screen .joy-score-heading{margin-top:0}.is-host.phase-scoreboard .joy-score-heading{margin-bottom:15px}.is-host.phase-scoreboard .podium-show{min-height:280px}.is-host.phase-scoreboard .joy-podium{min-height:270px}.is-host.phase-scoreboard .joy-ranking{max-height:220px}
/* Personal pace: a bright progress lane, immediate feedback and independent Next. */
.personal-lane{max-width:100%;padding:19px 20px 10px;background:linear-gradient(100deg,#a478f51a,#54cbd80b);border:1px solid #ad8aef24;border-radius:17px;margin:5px 0 17px;position:relative}.personal-lane>div:first-child{display:flex;justify-content:space-between;align-items:center}.personal-lane>div:first-child>span{display:flex;align-items:center;gap:7px;font-size:8px;letter-spacing:1.5px;color:#c4a9e7;font-weight:800}.personal-lane .joy-icon{width:13px;height:13px}.personal-lane b{color:#dfc6fa;font-size:13px}.personal-lane b small{font-size:10px;color:#a990bf;font-weight:500}.personal-track{height:6px;border-radius:20px;background:#ffffff09;position:relative;margin:17px 9px 13px}.personal-track i{display:block;height:100%;border-radius:20px;background:linear-gradient(90deg,#a685f4,#62ebcd);transition:width .6s}.personal-track>span{position:absolute;transform:translate(-50%,-50%);top:50%;font-size:22px;transition:left .6s}.lane-bottom{display:flex;justify-content:space-between;gap:10px;align-items:center}.lane-bottom>span{font-size:9px;color:#a58cbf}.lane-bottom>b{font-size:11px;color:#ffe9a4}.lane-bottom b small{font-size:8px}.self-player{padding-top:16px}.self-player .question-panel{flex:1}.self-player .big-question{min-height:100px;padding:12px 2%}.self-player .math-question{font-size:clamp(65px,7vw,115px)}.self-player .answer-grid{min-height:240px}.self-player .answer-tools{padding-top:17px}.self-player .personal-hint{display:flex;align-items:center;justify-content:center;gap:7px;font-size:10px;line-height:1.5;color:#a88fbf;padding:17px 0 2px}.personal-hint .joy-icon{width:15px;height:15px;color:#cbaaef}.personal-points{background:#ffe17c14;color:#ffe99c;border:1px solid #ffe17c24;padding:4px 10px;border-radius:20px;font-size:11px}.self-next-panel{display:flex;align-items:center;justify-content:space-between;gap:15px;background:#ffffff09;border:1px solid #ffffff1c;border-radius:18px;padding:20px 23px;margin:15px 0 10px}.self-next-panel>div>b{font-size:13px;color:#e8d7fa}.self-next-panel>div>span{font-size:11px;color:#ffe493;margin-left:6px}.self-next-panel small{display:block;color:#aa91bf;font-size:10px;margin-top:6px}.self-next-panel .btn{padding:13px 20px;min-height:45px;flex-shrink:0}.personal-round-review{padding-top:0;justify-content:flex-start}.personal-round-review .answer-feedback{max-width:1000px;margin:0 auto;width:100%}.personal-round-review .review-question{font-size:clamp(22px,3vw,37px);margin-bottom:18px}.instant-feedback{flex:1;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;min-height:400px;animation:section-in .3s}.instant-symbol{width:110px;height:110px;border-radius:34px;display:grid;place-items:center;font-size:66px;background:linear-gradient(140deg,#67ebce,#3dadc7);box-shadow:0 8px 0 #184454;color:#155e67;margin-bottom:27px;animation:stamp-in .45s cubic-bezier(.15,.9,.3,1.3)}.instant-symbol.retry{background:linear-gradient(130deg,#cfa0ff,#9e84d9);color:#4c346e;box-shadow:0 8px 0 #4f3578}.instant-feedback h1{font-size:38px}.instant-feedback>b{font-size:35px;color:#ffe28d;margin:15px 0}.instant-feedback>p{color:#ab92c5;font-size:13px}.self-wait{padding:100px 20px;text-align:center}.personal-finish{padding:36px 20px 30px;text-align:center;max-width:900px;width:100%;margin:auto}.finish-medal{width:88px;height:88px;margin:5px auto 22px;display:grid;place-items:center;background:linear-gradient(145deg,#ffe791,#eab05e);color:#785225;border-radius:26px;box-shadow:0 7px 0 #946340,0 0 50px #efc15222;transform:rotate(-7deg);animation:badge-bob 5s ease-in-out infinite}.finish-medal .joy-icon{width:46px;height:46px}.personal-finish>.joy-eyebrow{justify-content:center}.personal-finish h1{font-size:45px;font-weight:900;margin:15px 0;line-height:1.1}.personal-finish h1 em{font-style:normal;color:#ffe18a}.personal-finish>p{color:#bba5d5;font-size:12px}.personal-score-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin:26px auto;max-width:650px}.personal-score-cards>div{border:1px solid #ffffff1a;background:#ffffff08;border-radius:18px;padding:20px 12px}.personal-score-cards b{font-size:33px;letter-spacing:-1px;color:#ffe298;font-weight:850}.personal-score-cards small{display:block;font-size:10px;color:#bca7d1}.personal-review{text-align:left;background:#ffffff05;border:1px solid #ffffff19;border-radius:16px;margin-top:25px;padding:15px 18px;color:#ddcbee}.personal-review summary{cursor:pointer;display:flex;gap:8px;align-items:center;font-size:12px}.personal-review .joy-icon{width:16px;height:16px}.personal-review .review{border-color:#ffffff15}.personal-review .review>b{color:#e8d8fa;font-size:13px}.personal-review p{color:#bfaad8;font-size:12px}.personal-review strong{color:#ffe4a2}.score-pop{position:fixed;top:20%;left:50%;transform:translateX(-50%);z-index:90;background:linear-gradient(135deg,#ffef9f,#ffcf66);border:1px solid #fff9;border-radius:19px;padding:15px 27px;color:#80582b;font-weight:900;font-size:25px;box-shadow:0 8px 0 #97752c44,0 15px 55px #16093450;pointer-events:none;animation:score-fly 1.75s both}.score-pop.try{background:#e7cdff;color:#6b4888}.answer:active{transform:translateY(4px) scale(.98)!important}.arena-stage .round-enter .answer{animation:answer-in .42s cubic-bezier(.2,.8,.2,1.2) both}
/* Wide TV: keep score controls and a useful list visible without tiny type. */
@media(min-width:1550px){.self-score-stage{padding:24px 60px 18px}.joy-score-heading h1{font-size:57px}.joy-score-heading p{font-size:14px}.score-layout{grid-template-columns:minmax(0,1fr) 325px}.score-metrics{gap:20px}.metric{padding:19px 25px}.metric b{font-size:39px}.metric small{font-size:11px}.podium-show{min-height:362px}.joy-podium{min-height:339px;padding-top:46px;gap:35px}.winner-name{font-size:19px}.winner-avatar{font-size:46px;width:76px;height:76px}.joy-winner[data-place="1"] .winner-avatar{width:92px;height:92px;font-size:54px}.winner-score strong{font-size:30px}.winner-score small{font-size:10px}.joy-ranking{max-height:250px}.joy-rank{grid-template-columns:30px 44px minmax(140px,1fr) minmax(150px,1.4fr) 100px 88px 30px;gap:13px;min-height:66px}.rank-identity>b{font-size:15px}.rank-identity>small{font-size:10px}.rank-progress{font-size:10px}.rank-points strong{font-size:22px}.rank-points small{font-size:9px}.rank-avatar{font-size:27px;width:41px;height:42px}.mission-card{padding:27px}.mission-value b{font-size:64px}.mission-card p b{font-size:14px}.mission-detail{font-size:11px}.joy-event b{font-size:13px}.joy-event small{font-size:10px}.joy-event>strong{font-size:15px}.joy-event{padding:17px 0}.activity-card h3{font-size:15px}.mission-label{font-size:10px}.board-footer-note{font-size:11px}.self-host-controls .stage-auto{font-size:13px}.self-host-controls .btn{font-size:14px}.dash-stat>small{display:block;font-size:8px;color:#ac9fb9;margin-left:auto}.festival-copy{padding:37px 40px}.festival-grid{grid-template-columns:1fr 320px}.festival-hero{min-height:385px}.festival-join{padding:28px 30px}.festival-scene{width:47%}.festival-copy h2{font-size:60px}}
@media(min-width:1000px) and (max-height:850px){.self-score-stage{padding:13px 29px 8px}.self-score-stage .stage-header{min-height:57px;padding-bottom:8px}.self-score-stage .stage-info{min-height:38px;padding:7px 0}.joy-score-heading{margin:7px 0 15px}.joy-score-heading h1{font-size:37px}.joy-score-heading p{font-size:10px}.score-metrics{margin-bottom:14px;gap:12px}.metric{padding:11px 16px}.metric b{font-size:27px}.metric small{font-size:9px}.metric>.joy-icon{width:36px;height:36px;padding:9px}.podium-show{min-height:270px;padding:12px 20px 0}.joy-podium{padding-top:26px;min-height:256px}.joy-winner{--pedestal-h:70px}.joy-winner[data-place="1"]{--pedestal-h:100px}.joy-winner[data-place="3"]{--pedestal-h:51px}.winner-avatar{width:52px;height:52px;font-size:30px}.joy-winner[data-place="1"] .winner-avatar{width:62px;height:62px;font-size:39px}.winner-name{font-size:14px;margin-top:7px}.winner-score{margin:3px 0 8px}.winner-score strong{font-size:21px}.winner-pedestal b{font-size:36px}.winner-pedestal span{font-size:6px}.podium-caption{left:16px;top:12px}.podium-caption b{font-size:10px}.race-heading{padding:13px 18px 8px}.joy-ranking{max-height:161px}.joy-rank{min-height:52px;padding:8px 9px}.score-layout{grid-template-columns:minmax(0,1fr) 270px;gap:14px}.mission-card{padding:17px 20px}.mission-value b{font-size:49px}.energy-track{margin:11px 0}.activity-card{padding:14px 17px}.joy-events{margin-top:5px}.joy-event{padding:10px 0}.board-footer-note{margin-top:8px;font-size:8px}.self-host-controls{margin-top:3px;padding-top:10px;min-height:45px}.self-score-stage .live-connection{margin-top:4px!important}.joy-score[data-board-view="race"] .joy-ranking{max-height:424px}.joy-score[data-board-view="race"] .joy-rank{min-height:69px;padding:12px}.joy-score[data-board-view="race"] .race-heading{padding:16px}.self-player .personal-lane{padding-top:12px;margin-bottom:10px}.self-player .big-question{min-height:100px}.self-player .answer-grid{min-height:210px}.self-player .answer{min-height:105px}}
@media(max-width:1200px){.festival-grid{grid-template-columns:minmax(0,1fr) 240px;gap:18px}.festival-copy{padding:29px 26px;min-width:315px}.festival-join{padding:24px 21px}.festival-copy h2{font-size:42px}.hero-buttons{gap:12px}.hero-secondary{font-size:10px}.hero-start{font-size:11px;padding:11px}.festival-scene{width:42%}.scene-badge{right:9px;padding:10px;top:37px}.scene-badge b{font-size:9px}.scene-badge .joy-icon{width:28px;height:28px}.scene-chip{padding:9px 11px}.chip-blue{left:-2%;top:43%}.quick-game{padding:19px 14px;gap:10px}.quick-emoji{width:44px;height:49px;font-size:35px}.quick-game h3{font-size:14px}.quick-game small{font-size:6px}.quick-game p{font-size:8px}.dash-stat{padding:13px 12px;gap:9px}.dash-stat>.joy-icon{width:34px;height:36px;padding:8px}.dash-stat span{font-size:8px}.dashboard-intro h1{font-size:29px}.score-layout{grid-template-columns:minmax(0,1fr) 242px;gap:14px}.self-score-stage{padding:18px 25px 12px}.joy-rank{grid-template-columns:20px 30px minmax(70px,1fr) minmax(50px,.85fr) 50px 58px 21px;gap:7px}.rank-identity>b{font-size:11px}.rank-identity>small{font-size:7px}.rank-progress{font-size:7px}.rank-points strong{font-size:15px}.rank-avatar{font-size:20px;width:28px;height:31px}.joy-ranking{padding:0 10px 11px}.joy-score[data-board-view="race"] .joy-rank{grid-template-columns:23px 34px minmax(70px,1fr) minmax(65px,1fr) 54px 64px 21px;gap:8px}.joy-score[data-board-view="race"] .rank-identity>b{font-size:12px}.joy-score[data-board-view="race"] .rank-avatar{font-size:23px;width:33px;height:36px}.joy-score[data-board-view="race"] .rank-points strong{font-size:18px}.joy-score[data-board-view="race"] .racer{font-size:24px}}
@media(max-width:980px){.festival-grid{grid-template-columns:1fr 244px}.festival-copy{min-width:320px}.festival-copy h2{font-size:43px}.festival-scene{opacity:.8;width:43%;right:-8px}.hero-secondary{display:none}.hero-mini{gap:10px;font-size:8px}.dashboard-intro h1{font-size:30px}.edition-chip{display:none}.score-layout{grid-template-columns:minmax(0,1fr)}.score-side{display:grid;grid-template-columns:1fr 1fr}.mission-card{min-height:230px}.joy-rank{grid-template-columns:25px 40px minmax(100px,1fr) minmax(90px,1.4fr) 65px 70px 26px}.rank-identity>b{font-size:13px}.rank-identity>small{font-size:9px}.rank-progress{font-size:9px}.rank-points strong{font-size:18px}.rank-avatar{width:36px;height:36px;font-size:24px}.joy-ranking{max-height:270px}.joy-score[data-board-view="race"] .joy-rank{grid-template-columns:25px 40px minmax(100px,1fr) minmax(100px,1.4fr) 65px 80px 26px}.joy-score[data-board-view="race"] .joy-ranking{max-height:500px}.score-metrics{gap:10px}.metric{padding:14px 15px;gap:9px}.metric b{font-size:28px}.metric>.joy-icon{width:36px;height:36px;padding:9px}.metric small{font-size:8px}.self-player .answer-grid{min-height:240px}}
@media(max-width:720px){.sidebar{background:#281b49!important;border-radius:18px 18px 0 0;box-shadow:0 -4px 30px #40255718}.sidebar nav button.active{background:#ffffff0b;color:#ffe28c;box-shadow:none;border-radius:12px}.sidebar nav button span{font-size:9px}.topbar{height:68px}.topbar .top-actions>.btn{display:none}.topbar .top-actions{gap:5px}.topbar .icon-btn{width:30px;height:31px}.topbar small{font-size:7px}.dashboard-intro{margin-bottom:20px}.dashboard-intro .joy-eyebrow{font-size:7px;letter-spacing:1.3px}.dashboard-intro h1{font-size:27px;line-height:1.16;letter-spacing:-.9px;max-width:320px}.dashboard-intro p{font-size:10px;line-height:1.6;margin-top:8px}.festival-grid{grid-template-columns:1fr;gap:22px}.festival-hero{min-height:327px;border-radius:24px}.festival-copy{min-width:0;width:72%;padding:26px 23px 29px}.festival-tag{font-size:6px;letter-spacing:1.2px;gap:7px}.festival-tag>span{width:5px;height:5px}.festival-copy h2{font-size:40px;letter-spacing:-1.6px;margin:18px 0 16px;line-height:1.07}.festival-copy>p{font-size:10px;line-height:1.7;max-width:190px}.hero-buttons{margin-top:20px}.hero-start{min-height:43px;padding:10px 11px;font-size:10px;gap:7px}.hero-start .joy-icon{width:14px;height:14px}.hero-mini{font-size:6px;gap:9px;margin-top:21px}.festival-scene{width:42%;right:-6px;opacity:.95}.festival-scene>img{width:176%;left:-38%;height:63%;bottom:0;opacity:.78}.scene-orbit{width:140px;height:140px;top:100px;right:-42px}.scene-badge{top:41px;right:14px;padding:9px;border-radius:12px;gap:5px;max-width:105px;animation:badge-bob 6s ease-in-out infinite}.scene-badge b{font-size:8px}.scene-badge .joy-icon{width:21px;height:21px}.scene-chip{border-radius:11px;font-size:21px;padding:9px 10px}.scene-chip small{font-size:4px}.chip-blue{top:41%;left:15%;transform:rotate(9deg)}.chip-pink{right:10px;bottom:10%;font-size:16px;opacity:.85}.floating-shapes span:nth-child(1){left:61%;top:8%;font-size:16px}.floating-shapes span:nth-child(2){left:68%;top:69%;font-size:13px}.floating-shapes span:nth-child(3){right:5%;bottom:26%;font-size:17px}.festival-join{padding:23px;border-radius:21px;display:block;min-height:0;background:linear-gradient(135deg,#fff6da,#fff0c9)}.festival-join .join-spark{position:absolute;right:25px;top:23px;width:44px;height:44px;margin:0}.festival-join h2{font-size:25px;line-height:1.2;margin:9px 0}.festival-join h2 br{display:none}.festival-join h2 span{margin-left:5px}.festival-join>p{font-size:11px;margin-bottom:15px}.festival-join>p br{display:none}.festival-join .joy-eyebrow{font-size:7px}.festival-join form{display:grid;grid-template-columns:1.05fr 1fr;column-gap:11px;align-items:end}.festival-join label{grid-column:1 / -1;font-size:9px;margin-bottom:6px}.festival-join .pin{font-size:23px;height:46px;letter-spacing:6px;padding-left:12px}.join-go{margin:0 0 4px;min-height:42px;font-size:10px;gap:5px;padding:8px 12px;white-space:nowrap}.join-go .joy-icon{width:15px}.festival-join>small{font-size:8px;margin-top:12px}.dashboard-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:25px 0 30px}.dash-stat{padding:14px 12px;gap:10px;border-radius:15px;box-shadow:0 3px 0 #eee9f5}.dash-stat>.joy-icon{width:37px;height:39px;padding:9px;border-radius:11px}.dash-stat b{font-size:26px}.dash-stat span{font-size:9px}.section-head{margin-top:24px;gap:10px;align-items:center}.section-head h2{font-size:21px;letter-spacing:-.6px}.section-head p{font-size:10px;line-height:1.6;margin-top:5px;max-width:255px}.section-head>.btn{font-size:9px;padding:8px 11px;min-height:32px;white-space:nowrap}.little-sticker{display:none}.quick-games{grid-template-columns:1fr;gap:15px;margin-top:17px}.quick-game{padding:20px;min-height:100px;gap:17px;border-radius:19px}.quick-emoji{width:55px;height:58px;font-size:41px;border-radius:13px}.quick-kka .quick-emoji{font-size:27px}.quick-game h3{font-size:18px}.quick-game small{font-size:7px;letter-spacing:1px}.quick-game p{font-size:10px;margin-top:4px}.quick-arrow{right:21px;bottom:19px;font-size:20px}.modes{gap:11px;display:grid;grid-template-columns:1fr}.mode{display:flex;padding:17px 18px;gap:14px;border-radius:16px;min-height:76px;text-align:left}.mode.active{padding:16px 17px}.mode .symbol{width:42px;height:42px;font-size:25px;flex-shrink:0}.mode b{font-size:14px}.mode small{font-size:10px}.cards{grid-template-columns:1fr;gap:20px;margin-top:18px}.card-art{height:135px}.card-art .big{font-size:52px}.card-art .card-label{font-size:8px}.card-body{padding:19px}.card-body h3{font-size:18px}.card-body p{font-size:11px;min-height:0;line-height:1.7;margin-top:6px}.card-meta{font-size:10px;margin-top:15px}.card-actions{margin-top:14px;gap:10px}.quiz-card .card-actions .btn{font-size:11px;min-height:40px;flex:1}.card-actions .text-btn{display:block}.import-callout{padding:22px 20px;flex-wrap:wrap;gap:13px;margin-top:28px}.import-callout-icon{width:42px;height:45px;border-radius:13px}.import-callout>div:nth-child(2){flex:1;min-width:170px}.import-callout h3{font-size:14px;line-height:1.45}.import-callout p{font-size:10px;line-height:1.6}.import-callout>.btn{width:100%;font-size:11px;min-height:42px}.footer{font-size:9px;gap:7px;flex-direction:column;align-items:flex-start;padding:16px 0}.footer button{font-size:9px}.pace-cards{grid-template-columns:1fr;gap:9px}.pace-card{padding:14px;gap:12px}.pace-card small br{display:none}.pace-card small{font-size:10px}.pace-card b{font-size:13px}.pace-symbol{font-size:27px;min-width:26px}.self-options{padding:14px}.self-options select{font-size:12px}.self-review-duration{display:block}.self-review-duration select{max-width:none;margin-top:6px}.self-options .field-note{font-size:10px;line-height:1.6}.arena-settings .field-note{font-size:10px}.modal-head h2{font-size:24px}.stage-tools{gap:3px}.stage-tools button{width:28px;height:30px;font-size:17px}.stage-title>b{font-size:11px;line-height:1.3}.stage-title>small{font-size:6px;line-height:1.3;letter-spacing:.5px}.stage-brand{min-width:75px}.stage-brand b{font-size:31px}.stage-brand small{font-size:4.5px}.stage-header{gap:10px}.stage-info{gap:8px;padding:10px 0}.self-score-stage{padding:12px 15px 14px}.stage-stats{font-size:10px;gap:9px;justify-content:flex-end}.pin-copy{font-size:9px;padding:4px 9px}.joy-score-heading{display:block;margin:13px 0 18px}.joy-score-heading .joy-eyebrow{font-size:6px;letter-spacing:1.5px}.joy-score-heading h1{font-size:36px;letter-spacing:-1.25px;margin:8px 0}.joy-score-heading h1>span{font-size:23px;margin-left:8px}.joy-score-heading p{font-size:10px;line-height:1.7;max-width:310px}.board-switch{display:flex;margin-top:15px;max-width:100%;width:100%;padding:4px;border-radius:13px;gap:4px}.board-switch button{flex:1;justify-content:center;font-size:11px;min-height:36px;padding:8px 10px}.board-switch .joy-icon{width:15px;height:15px}.score-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:16px}.metric{padding:15px 12px;gap:11px;border-radius:15px}.metric b{font-size:28px}.metric div>span{font-size:17px}.metric>.joy-icon{width:36px;height:36px;padding:9px;border-radius:11px}.metric small{font-size:8px;line-height:1.4}.score-layout{gap:15px}.score-main{border-radius:20px}.podium-show{padding:15px 10px 0;min-height:300px}.podium-caption{top:14px;left:17px}.podium-caption span{font-size:6px;letter-spacing:1.5px}.podium-caption b{font-size:9px;margin-top:3px}.joy-podium{gap:10px;padding-top:45px;min-height:285px;align-items:flex-end}.joy-winner{width:31%;--pedestal-h:85px}.joy-winner[data-place="1"]{--pedestal-h:118px}.joy-winner[data-place="3"]{--pedestal-h:64px}.winner-avatar{width:49px;height:51px;font-size:29px;border-radius:16px}.joy-winner[data-place="1"] .winner-avatar{width:59px;height:62px;font-size:36px}.winner-crown{font-size:26px;top:-20px}.winner-name{font-size:12px;min-height:29px;max-height:35px;display:flex;align-items:center;justify-content:center;margin-top:8px}.winner-score{display:block;line-height:1.1;margin:6px 0 12px}.winner-score strong{font-size:20px;letter-spacing:-.6px}.winner-score small{display:block;font-size:7px;margin-top:4px}.winner-pedestal{border-radius:12px 12px 0 0;box-shadow:3px 0 0 #0002}.winner-pedestal b{font-size:39px}.winner-pedestal span{font-size:5px;letter-spacing:1px}.podium-show:before{left:9%;font-size:17px;top:70px}.podium-show:after{right:7%;font-size:13px;top:120px}.race-heading{display:block;padding:17px 15px 6px}.race-heading b{font-size:12px}.race-heading>div{gap:8px}.race-heading small{font-size:7px;max-width:none;text-align:left;display:block;margin-top:5px;line-height:1.5}.joy-ranking{padding:0 10px 11px;max-height:398px}.joy-rank,.joy-score[data-board-view="race"] .joy-rank{display:grid;grid-template-columns:22px 32px minmax(0,1fr) 67px 18px;grid-template-rows:auto auto;gap:3px 8px;padding:12px 9px;min-height:85px;border-radius:12px;margin-top:9px}.position{font-size:12px;grid-row:1;grid-column:1}.rank-avatar,.joy-score[data-board-view="race"] .rank-avatar{font-size:22px;grid-row:1;grid-column:2;width:32px;height:34px;border-radius:10px}.rank-identity{grid-row:1;grid-column:3}.rank-identity>b,.joy-score[data-board-view="race"] .rank-identity>b{font-size:11px}.rank-identity>small{font-size:7px;margin-top:2px}.rank-points{grid-row:1;grid-column:4}.rank-points strong,.joy-score[data-board-view="race"] .rank-points strong{font-size:18px}.rank-points small{font-size:7px}.rank-move{grid-row:1;grid-column:5;font-size:8px}.race-track{grid-row:2;grid-column:2 / 4;margin:10px 10px 2px 3px;height:6px}.race-track .racer{font-size:17px}.rank-progress{grid-row:2;grid-column:4 / 6;font-size:7px;text-align:right;color:#c2abd7;padding-top:9px}.score-side{display:grid;grid-template-columns:1fr;gap:15px}.mission-card{min-height:0;padding:20px 23px;border-radius:19px}.mission-label{font-size:8px}.mission-value b{font-size:55px}.mission-card p b{font-size:12px}.mission-detail{font-size:9px}.mission-card:after{right:25px;top:37px}.activity-card{border-radius:19px;padding:21px}.activity-card h3{font-size:14px}.activity-card h3>span{font-size:7px}.joy-event{padding:13px 0}.joy-event b{font-size:12px}.joy-event small{font-size:9px}.joy-event>strong{font-size:14px}.joy-event>span{font-size:26px}.board-footer-note{font-size:8px;align-items:flex-start;line-height:1.7;margin-top:14px}.board-footer-note .joy-icon{width:12px;height:12px;margin-top:1px}.joy-score[data-board-view="race"] .race-heading{padding:20px 15px 8px}.joy-score[data-board-view="race"] .race-heading b{font-size:18px}.joy-score[data-board-view="race"] .race-track{height:9px}.joy-score[data-board-view="race"] .joy-rank{min-height:95px}.joy-score[data-board-view="race"] .racer{font-size:22px}.joy-score[data-board-view="race"] .joy-ranking{max-height:575px}.self-host-controls{margin-top:13px;padding-top:15px;border-top:1px solid #ffffff15}.self-host-controls .stage-auto{font-size:9px;line-height:1.6}.self-host-controls>.actions{width:100%;display:flex;justify-content:flex-end}.self-host-controls .btn{font-size:11px;min-height:37px}.self-player{padding:12px 15px 14px}.self-player .stage-stats{justify-content:space-between;font-size:11px}.personal-points{font-size:10px;padding:4px 9px}.personal-lane{padding:14px 15px 10px;margin:3px 0 14px;border-radius:15px}.personal-lane>div:first-child>span{font-size:7px;letter-spacing:1.2px}.personal-lane>div:first-child>b{font-size:12px}.personal-lane b small{font-size:9px}.personal-track{margin-top:14px;margin-bottom:11px;height:5px}.personal-track>span{font-size:21px}.lane-bottom>span{font-size:8px}.lane-bottom>b{font-size:10px}.lane-bottom b small{font-size:6px}.self-player .question-top{min-height:46px}.self-player .big-question{font-size:23px;min-height:105px;padding:14px 2%;margin-bottom:10px;line-height:1.35}.self-player .big-question.math-question{font-size:60px;line-height:1.15;padding:18px 1%}.self-player .question-type{font-size:7px;max-width:95px}.self-player .answer-grid{min-height:0;grid-template-columns:1fr 1fr;grid-auto-rows:minmax(114px,auto);margin-top:9px;gap:12px}.self-player .answer{min-height:114px;font-size:22px;padding:15px 12px}.self-player .answer-shape{font-size:27px}.self-player .is-math .answer{font-size:28px}.self-player .answer-grid.five-options{grid-auto-rows:minmax(110px,auto)}.self-player .answer-grid.five-options .answer:last-child{grid-column:span 2;min-height:83px}.self-player .answer-tools{padding-top:17px;min-height:60px}.self-player .input-hint{font-size:8px}.self-player .power{font-size:10px;padding:8px 10px;min-height:35px}.self-player .personal-hint{font-size:8px;align-items:flex-start;line-height:1.7;padding-top:12px}.self-player .personal-hint>.joy-icon{width:12px;height:12px;margin-top:1px}.self-player .live-connection{font-size:7px!important;margin-top:10px!important}.self-player .number-form input{min-height:63px;font-size:25px}.self-player .number-form .btn{min-height:44px!important}.self-next-panel{flex-direction:column;align-items:stretch;padding:17px;border-radius:16px;gap:14px;margin:14px 0 6px}.self-next-panel>div>b{font-size:11px}.self-next-panel>div>span{font-size:10px}.self-next-panel small{font-size:9px;line-height:1.6}.self-next-panel .btn{font-size:13px;min-height:45px;width:100%;gap:10px;justify-content:space-between}.self-next-panel .btn .joy-icon{width:18px}.personal-round-review{padding:8px 0 0}.personal-round-review .review-question{font-size:24px;margin:11px 0 16px}.personal-round-review .feedback-score{padding:20px 17px}.personal-round-review .feedback-score h2{font-size:23px}.personal-round-review .feedback-score b{font-size:17px}.personal-round-review .explanation{padding:20px 18px}.personal-round-review .explanation p{font-size:14px;line-height:1.7}.personal-round-review .explanation strong{font-size:17px}.personal-round-review .answer-feedback{border-radius:17px}.instant-feedback{min-height:430px}.instant-feedback h1{font-size:30px}.instant-symbol{width:93px;height:95px;border-radius:28px;font-size:58px}.instant-feedback>b{font-size:32px}.instant-feedback>p{font-size:11px}.score-pop{top:20%;padding:12px 20px;border-radius:15px;font-size:24px;white-space:nowrap}.personal-finish{padding:28px 0 25px}.finish-medal{width:78px;height:80px;margin-bottom:23px}.finish-medal .joy-icon{width:40px;height:40px}.personal-finish .joy-eyebrow{font-size:6px;letter-spacing:1.5px}.personal-finish h1{font-size:38px;letter-spacing:-1.2px;margin:13px 0}.personal-finish>p{font-size:11px;line-height:1.7;max-width:300px;margin:auto}.personal-score-cards{gap:9px;margin:23px auto}.personal-score-cards>div{padding:16px 8px;border-radius:14px}.personal-score-cards b{font-size:25px}.personal-score-cards small{font-size:7px;margin-top:5px}.personal-finish>.actions{gap:10px}.personal-finish>.actions .btn{font-size:11px;min-height:40px}.personal-review{padding:14px;margin-top:24px}.personal-review summary{font-size:10px;line-height:1.5}.personal-review .review>b{font-size:12px}.personal-review p{font-size:11px;line-height:1.7}.personal-finish+.joy-score{border-top:1px solid #ffffff15;padding-top:21px}.personal-finish+.joy-score .joy-score-heading h1{font-size:28px}.final-actions{flex-wrap:wrap;margin:22px 0 12px;gap:10px}.final-actions .btn{min-height:40px;font-size:11px}.score-screen{padding-top:20px}.score-screen>.joy-score .joy-score-heading h1{font-size:32px}}
@media(max-width:370px){#content{padding:20px 13px}.festival-copy{padding:24px 20px}.festival-copy h2{font-size:37px}.festival-tag{font-size:5.5px}.festival-scene{width:40%}.scene-badge{right:10px;max-width:90px}.scene-badge b{font-size:7px}.festival-join{padding:21px 18px}.join-go{font-size:9px;padding:8px 10px}.festival-join .pin{letter-spacing:5px;font-size:22px}.dashboard-intro h1{font-size:26px}.metric{padding:13px 10px;gap:9px}.metric>.joy-icon{width:31px;height:32px;padding:8px}.metric b{font-size:25px}.stage-title>b{font-size:10px}.stage-tools button{width:26px}.stage-header{gap:8px}.stage-brand{min-width:68px}.stage-brand b{font-size:28px}.self-score-stage,.self-player{padding-left:12px;padding-right:12px}.winner-name{font-size:11px}.winner-score strong{font-size:19px}.joy-rank,.joy-score[data-board-view="race"] .joy-rank{gap:3px 6px;grid-template-columns:18px 28px minmax(0,1fr) 60px 16px}.rank-avatar,.joy-score[data-board-view="race"] .rank-avatar{width:27px;font-size:20px}.rank-identity>b{font-size:10px}.rank-points strong{font-size:17px}}
@keyframes float-symbol{0%,100%{transform:translateY(0) rotate(-6deg)}50%{transform:translateY(-10px) rotate(8deg)}}
@keyframes badge-bob{0%,100%{transform:translateY(0) rotate(7deg)}50%{transform:translateY(-8px) rotate(3deg)}}
@keyframes float-blue{0%,100%{transform:translateY(0) rotate(-9deg)}50%{transform:translateY(-9px) rotate(-3deg)}}
@keyframes emblem-float{0%,100%{transform:rotate(-3deg)}50%{transform:rotate(3deg)}}
@keyframes section-in{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:translateY(0)}}
@keyframes live-breathe{0%,100%{box-shadow:0 0 0 3px #6af0c30f}50%{box-shadow:0 0 0 6px #6af0c323}}
@keyframes spotlight-shift{0%,100%{transform:rotate(-5deg);opacity:.6}50%{transform:rotate(5deg);opacity:1}}
@keyframes crown-dance{0%,100%{transform:translateY(0) rotate(-12deg)}50%{transform:translateY(-5px) rotate(-5deg)}}
@keyframes pedestal-shine{0%,65%{transform:translateX(-110%)}92%,100%{transform:translateX(110%)}}
@keyframes stamp-in{0%{opacity:0;transform:scale(.55) rotate(-15deg)}70%{opacity:1;transform:scale(1.08) rotate(3deg)}100%{transform:scale(1) rotate(0)}}
@keyframes score-fly{0%{opacity:0;transform:translate(-50%,25px) scale(.7)}18%{opacity:1;transform:translate(-50%,0) scale(1.08)}30%,75%{opacity:1;transform:translate(-50%,0) scale(1)}100%{opacity:0;transform:translate(-50%,-30px) scale(.95)}}
/* Both OS setting and the in-app sparkle toggle suppress non-essential motion. */
.low-motion *,.low-motion *:before,.low-motion *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.low-motion .confetti{display:none!important}.low-motion .score-pop{animation:none!important}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.confetti{display:none!important}}
/* Fit the teacher wall to a landscape display; long rankings scroll inside the wall. */
@media(min-width:1000px){
 .is-host:is(.self-score-stage,.phase-scoreboard){height:100svh!important;min-height:680px;overflow:hidden;padding-top:15px;padding-bottom:10px}
 .is-host:is(.self-score-stage,.phase-scoreboard)>.stage-header{min-height:59px;padding-bottom:9px}
 .is-host:is(.self-score-stage,.phase-scoreboard)>.stage-info{min-height:41px;padding:9px 0}
 .is-host:is(.self-score-stage,.phase-scoreboard)>.joy-score{display:flex;flex-direction:column;min-height:0;flex:1}
 .is-host:is(.self-score-stage,.phase-scoreboard) .joy-score-heading{flex-shrink:0;margin:9px 0 18px}
 .is-host:is(.self-score-stage,.phase-scoreboard) .joy-score-heading h1{font-size:clamp(35px,4.6vh,53px)}
 .is-host:is(.self-score-stage,.phase-scoreboard) .score-metrics{flex-shrink:0;margin-bottom:17px}
 .is-host:is(.self-score-stage,.phase-scoreboard) .metric{padding:14px 19px}
 .is-host:is(.self-score-stage,.phase-scoreboard) .metric b{font-size:32px}
 .is-host:is(.self-score-stage,.phase-scoreboard) .score-layout{min-height:0;flex:1}
 .is-host:is(.self-score-stage,.phase-scoreboard) .score-main{display:flex;flex-direction:column;min-height:0}
 .is-host:is(.self-score-stage,.phase-scoreboard) .podium-show{height:clamp(249px,30vh,345px);min-height:0;flex-shrink:0;padding-top:7px}
 .is-host:is(.self-score-stage,.phase-scoreboard) .joy-podium{height:100%;min-height:0;padding-top:36px}
 .is-host:is(.self-score-stage,.phase-scoreboard) .race-heading{flex-shrink:0;padding-top:14px}
 .is-host:is(.self-score-stage,.phase-scoreboard) .joy-ranking{flex:1;min-height:56px;max-height:none}
 .is-host:is(.self-score-stage,.phase-scoreboard) .score-side{overflow-y:auto;scrollbar-width:thin;scrollbar-color:#765d9866 transparent}
 .is-host:is(.self-score-stage,.phase-scoreboard) .board-footer-note{flex-shrink:0}
 .is-host:is(.self-score-stage,.phase-scoreboard) .self-host-controls{min-height:49px;padding-top:12px;margin-top:3px}
 .is-host:is(.self-score-stage,.phase-scoreboard) .live-connection{margin-top:3px!important}
 .is-host:is(.self-score-stage,.phase-scoreboard) .final-actions{margin:15px 0 6px}
 .is-host:is(.self-score-stage,.phase-scoreboard) .winner-avatar{width:57px;height:58px;font-size:34px}
 .is-host:is(.self-score-stage,.phase-scoreboard) .joy-winner[data-place="1"] .winner-avatar{width:70px;height:71px;font-size:44px}
 .is-host:is(.self-score-stage,.phase-scoreboard) .winner-name{font-size:15px}
 .is-host:is(.self-score-stage,.phase-scoreboard) .winner-score strong{font-size:24px}
 .is-host:is(.self-score-stage,.phase-scoreboard) .joy-winner{--pedestal-h:80px}
 .is-host:is(.self-score-stage,.phase-scoreboard) .joy-winner[data-place="1"]{--pedestal-h:112px}
 .is-host:is(.self-score-stage,.phase-scoreboard) .joy-winner[data-place="3"]{--pedestal-h:61px}
}
@media(min-width:1000px) and (max-height:800px){
 .is-host:is(.self-score-stage,.phase-scoreboard){padding-top:10px;padding-bottom:7px}
 .is-host:is(.self-score-stage,.phase-scoreboard)>.stage-header{min-height:49px}
 .is-host:is(.self-score-stage,.phase-scoreboard) .stage-brand b{font-size:35px}
 .is-host:is(.self-score-stage,.phase-scoreboard)>.stage-info{min-height:33px;padding:5px 0}
 .is-host:is(.self-score-stage,.phase-scoreboard) .joy-score-heading{margin:3px 0 13px}
 .is-host:is(.self-score-stage,.phase-scoreboard) .joy-score-heading h1{font-size:34px;margin:5px 0}
 .is-host:is(.self-score-stage,.phase-scoreboard) .joy-score-heading p{font-size:10px}
 .is-host:is(.self-score-stage,.phase-scoreboard) .metric{padding:10px 14px}
 .is-host:is(.self-score-stage,.phase-scoreboard) .metric b{font-size:27px}
 .is-host:is(.self-score-stage,.phase-scoreboard) .metric>.joy-icon{width:32px;height:32px;padding:8px}
 .is-host:is(.self-score-stage,.phase-scoreboard) .score-metrics{margin-bottom:12px}
 .is-host:is(.self-score-stage,.phase-scoreboard) .podium-show{height:237px;padding-top:0}
 .is-host:is(.self-score-stage,.phase-scoreboard) .joy-podium{padding-top:26px}
 .is-host:is(.self-score-stage,.phase-scoreboard) .winner-avatar{width:44px;height:46px;font-size:26px}
 .is-host:is(.self-score-stage,.phase-scoreboard) .joy-winner[data-place="1"] .winner-avatar{width:54px;height:55px;font-size:32px}
 .is-host:is(.self-score-stage,.phase-scoreboard) .winner-name{font-size:12px;min-height:16px;margin-top:5px}
 .is-host:is(.self-score-stage,.phase-scoreboard) .winner-score{margin:2px 0 8px}
 .is-host:is(.self-score-stage,.phase-scoreboard) .winner-score strong{font-size:19px}
 .is-host:is(.self-score-stage,.phase-scoreboard) .joy-winner{--pedestal-h:57px}
 .is-host:is(.self-score-stage,.phase-scoreboard) .joy-winner[data-place="1"]{--pedestal-h:82px}
 .is-host:is(.self-score-stage,.phase-scoreboard) .joy-winner[data-place="3"]{--pedestal-h:42px}
 .is-host:is(.self-score-stage,.phase-scoreboard) .winner-pedestal b{font-size:31px}
 .is-host:is(.self-score-stage,.phase-scoreboard) .winner-pedestal span{font-size:5px;margin-top:4px}
 .is-host:is(.self-score-stage,.phase-scoreboard) .race-heading{padding:10px 16px 5px}
 .is-host:is(.self-score-stage,.phase-scoreboard) .self-host-controls{min-height:40px;padding:8px 0 0}
 .is-host:is(.self-score-stage,.phase-scoreboard) .self-host-controls .btn{min-height:31px;font-size:10px}
 .is-host:is(.self-score-stage,.phase-scoreboard) .self-host-controls .stage-auto{font-size:9px}
}

/* The synchronized inter-round score screen also fits a landscape classroom display. */
@media(min-width:1000px){
 .is-host.phase-scoreboard>.score-screen{display:flex;flex-direction:column;flex:1;min-height:0;padding:5px 0 0;width:100%;max-width:none}
 .is-host.phase-scoreboard>.score-screen>.stage-kicker{flex-shrink:0;font-size:9px;margin:0 0 2px}
 .is-host.phase-scoreboard>.score-screen>.joy-score{display:flex;flex:1;flex-direction:column;min-height:0}
 .is-host.phase-scoreboard>.stage-controls{min-height:42px;padding:6px 0 0}
 .is-host.phase-scoreboard>.stage-controls .btn{font-size:11px;min-height:32px}
 .is-host.phase-scoreboard .joy-score-heading{margin:2px 0 12px}
 .is-host.phase-scoreboard .joy-score-heading h1{font-size:34px!important}
}
@media(min-width:1000px) and (max-height:800px){
 .is-host.phase-scoreboard .podium-show{height:215px}
 .is-host.phase-scoreboard .joy-score-heading p{margin-top:5px}
 .is-host.phase-scoreboard .score-metrics{margin-bottom:10px}
}
