:root{color-scheme:dark;--ink:#061b45;--gold:#ffdf78;--cyan:#96e8ff;--panel:#062552;--text:#f6fbff;font-family:"Segoe UI",Arial,sans-serif}
*{box-sizing:border-box}body{margin:0;min-width:280px;min-height:100vh;background:#100b32;color:var(--text)}
[hidden]{display:none!important}button,select,a,summary{-webkit-tap-highlight-color:transparent}button,select{font:inherit}button,a,summary{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:default}button:focus-visible,select:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #fff;outline-offset:5px}
.backdrop{position:fixed;inset:0;z-index:-1;background:#120c35 url('assets/premium-studio.webp') center top/cover no-repeat;pointer-events:none}
.topbar{width:min(1440px,100%);margin:auto;position:relative;min-height:172px;display:grid;grid-template-columns:1fr minmax(300px,660px) 1fr;align-items:start;gap:14px;padding:12px 28px 0}
.topbar>a,.sound-toggle{margin-top:8px;min-height:44px;display:flex;align-items:center;justify-content:center;width:max-content;max-width:100%;padding:9px 17px;background:#09204ee6;border:1px solid #70c8f1;border-radius:24px;color:#fff;font-weight:700;text-decoration:none;font-size:15px}
.sound-toggle{justify-self:end}.brand{margin:0;min-width:0;line-height:0;text-align:center}.brand-logo{display:block;width:100%;height:178px;object-fit:contain}
.page-shell{width:min(1220px,calc(100% - 40px));margin:0 auto;padding-bottom:28px}.game-shell{min-width:0}
.scoreboard{display:grid;grid-template-columns:180px minmax(0,1fr) 180px;gap:12px;align-items:stretch;margin-bottom:12px}
.team,.topic-heading,.dice-stage,.answer-board,.result{border:12px solid #e9b74c;border-image:url('assets/premium-panel.webp') 145 100 120 100 fill / 12px / 0 stretch;background:#061c46;border-radius:20px;box-shadow:0 6px 15px #0006}
.team{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;padding:3px 8px;min-width:0}.team>span{font-size:17px;font-weight:850;letter-spacing:.04em}.team>strong{font-size:48px;line-height:1.06;color:var(--gold);font-variant-numeric:tabular-nums}.team>small{font-size:12px;min-height:16px;color:#d1e9ff}.team.active{outline:2px solid #b8f2ff;outline-offset:-5px}
.topic-heading{padding:4px 18px;text-align:center;display:flex;flex-direction:column;justify-content:center;min-width:0}.topic-heading>span{font-size:10px;letter-spacing:.2em;font-weight:750;color:var(--cyan)}.topic-heading h2{margin:3px 0 5px;font-size:clamp(21px,2.45vw,34px);line-height:1.1;text-wrap:balance}.topic-picker{display:flex;justify-content:center;align-items:center;gap:10px;color:#d4e8ff;font-size:12px}.topic-picker select{max-width:260px;width:55%;padding:6px 24px 6px 8px;background:#081d42;border:1px solid #6aabd6;border-radius:5px;color:white;font-size:12px;min-height:32px}.topic-picker select:disabled{opacity:.7}
.dice-stage{width:min(900px,100%);margin:18px auto 0;text-align:center;padding:28px 24px 32px}.eyebrow{font-size:11px;letter-spacing:.2em;font-weight:800;color:var(--gold)}.dice-stage h2{font-size:clamp(22px,3vw,32px);margin:12px 0 8px}.dice-help{color:#d1e5fa;margin:0;font-size:15px;line-height:1.5}.dice-pair{display:flex;justify-content:center;gap:42px;margin:22px auto;max-width:460px}.dice-pair>div{display:flex;flex-direction:column;gap:9px;align-items:center;min-width:0}.dice-pair>div>span{font-size:12px;font-weight:850;letter-spacing:.1em;color:#d8edff}.dice-pair rankrush-dice{display:block;width:clamp(118px,15vw,170px);contain:content}.ruby-die-stage{display:block;position:relative;overflow:hidden;width:100%;aspect-ratio:1;border:1px solid #edc970;border-radius:20px;background:#000;box-shadow:0 8px 20px #0006}.ruby-die-stage img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;user-select:none;will-change:transform}
.primary-action,.result button{min-height:48px;padding:12px 28px;border:2px solid #fff0a8;border-radius:9px;background:#ffda6a;color:#061b45;font-weight:850;font-size:17px;box-shadow:0 4px 0 #835b18}.primary-action:hover:not(:disabled),.result button:hover{background:#fff0ac}.primary-action:disabled{opacity:.65}
.answer-board{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(5,1fr);grid-auto-flow:column;list-style:none;padding:12px;gap:7px 12px;margin:0}
.answer-board li{display:grid;grid-template-columns:44px minmax(0,1fr) 52px;align-items:stretch;min-height:49px;border:3px solid #8ddaff;border-image:url('assets/premium-panel.webp') 145 100 120 100 fill / 5px / 0 stretch;background:#06244d;border-radius:8px;overflow:hidden;min-width:0}
.answer-board li>b{display:flex;justify-content:center;align-items:center;font-size:23px;border-right:1px solid #73b9e280;line-height:1;font-variant-numeric:tabular-nums}.answer-board li>span{display:flex;align-items:center;padding:7px 12px;font-size:16px;font-weight:750;line-height:1.2;overflow-wrap:anywhere}.answer-board li>strong{display:flex;align-items:center;justify-content:center;font-size:19px;border-left:1px solid #73b9e280;font-variant-numeric:tabular-nums}.answer-board li:not(.revealed)>span{font-size:12px;letter-spacing:.18em;color:#b8e3ff}.answer-board li.revealed{border:3px solid #ffedab;border-image:none;background:#ffda70;color:#081d44;box-shadow:inset 0 2px 0 #fff4c1}.answer-board li.revealed>b,.answer-board li.revealed>strong{border-color:#a57a3270}.answer-board li.just-revealed{animation:reveal .32s ease-out}
.turn-banner{display:flex;gap:12px;align-items:center;background:#081e48f5;border:1px solid #79cfff;border-radius:9px;padding:12px 16px;margin:13px 0 10px;min-height:54px}.turn-banner>span{color:var(--gold);font-size:17px;font-weight:900;white-space:nowrap}.turn-banner>strong{font-size:15px;line-height:1.35;font-weight:600}.strikes{margin-left:auto;display:flex;align-items:center;gap:7px;white-space:nowrap;color:#ffd0d1;font-size:13px}.strike{font-weight:900;font-size:23px;color:#ff6363;line-height:1}.choices-heading{display:flex;justify-content:space-between;gap:10px;padding:0 3px 8px;font-size:11px;letter-spacing:.07em;font-weight:750;color:#d9eaff}.choices{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.choices button{min-width:0;min-height:47px;padding:9px 11px;border:3px solid #8bdbff;border-image:url('assets/premium-panel.webp') 145 100 120 100 fill / 5px / 0 stretch;background:#082956;color:#fff;font-size:14px;line-height:1.22;font-weight:750;border-radius:8px;transition:transform .15s,filter .15s;overflow-wrap:anywhere}.choices button:hover:not(:disabled){filter:brightness(1.3);transform:translateY(-2px)}.choices button:disabled{color:#c1d4e9;filter:saturate(.65)}.choices button.correct{border-image:none;border-color:#8fe8c2;background:#095443;color:#d7ffed}.choices button.wrong{border-image:none;border-color:#f0838d;background:#53162b;color:#ffd4d9;text-decoration:line-through}.choices button.correct:disabled,.choices button.wrong:disabled{filter:none}.choices button.chosen-by-player{outline:2px solid #fff;outline-offset:1px}
.result{margin:16px auto 0;max-width:650px;text-align:center;padding:22px}.result>span{color:var(--gold);font-weight:750;letter-spacing:.14em;font-size:12px}.result h2{font-size:28px;margin:10px 0}.result p{color:#d9eaff}.result>div{display:flex;gap:12px;justify-content:center}.result button{font-size:15px}.result button:not(.primary-action){background:#0b3471;color:white;border-color:#80cafa;box-shadow:none}
.how{margin:16px auto 0;width:min(680px,100%);padding:12px 16px;background:#08132dde;border:1px solid #7b92bd80;border-radius:8px;color:#c5d6ed;font-size:13px;line-height:1.6}.how summary{cursor:pointer;font-weight:700;color:#e8f3ff}.how ol{padding-left:20px}.how li{margin:5px 0}.how p{font-size:12px}
@keyframes reveal{from{transform:scale(.97);opacity:.65}to{transform:scale(1);opacity:1}}
@media(min-width:1500px){.page-shell{width:min(1320px,calc(100% - 64px))}.topbar{min-height:195px}.brand-logo{height:195px}.answer-board li{min-height:56px}.choices button{min-height:52px}}
@media(max-width:760px){.topbar{grid-template-columns:1fr 1fr;gap:0;padding:9px 14px 0;min-height:0}.brand{grid-column:1/-1;grid-row:2}.brand-logo{height:135px}.topbar>a,.sound-toggle{font-size:12px;min-height:36px;padding:6px 12px;margin:0}.page-shell{width:calc(100% - 24px)}.scoreboard{grid-template-columns:1fr 1fr;gap:8px}.topic-heading{grid-column:1/-1;grid-row:1;padding:9px 12px}.topic-heading h2{font-size:24px}.topic-picker{margin-top:4px}.topic-picker select{min-height:36px;width:64%}.team{padding:3px 8px}.team>strong{font-size:34px}.team>span{font-size:13px}.team>small{font-size:11px}.answer-board{grid-template-columns:minmax(0,1fr);grid-template-rows:none;grid-auto-flow:row;padding:8px;gap:6px;border-width:9px}.answer-board li{min-height:43px;grid-template-columns:36px minmax(0,1fr) 44px}.answer-board li>span{font-size:15px;padding:7px 9px}.answer-board li>b{font-size:20px}.answer-board li>strong{font-size:17px}.turn-banner{flex-wrap:wrap;gap:6px 10px;padding:10px 12px}.turn-banner>span{font-size:15px}.turn-banner>strong{order:3;width:100%;font-size:14px;min-height:19px}.strikes{font-size:12px}.choices{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.choices button{min-height:52px;font-size:13px;padding:9px 8px}.choices-heading{font-size:9px;letter-spacing:.03em}.dice-stage{padding:22px 10px;margin-top:12px}.dice-pair{gap:22px}.dice-pair rankrush-dice{width:clamp(110px,32vw,150px)}.dice-help{font-size:13px}.dice-stage h2{font-size:22px}.result h2{font-size:23px}.result>div{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.choices button:hover:not(:disabled){transform:none}}


/* Compact game layout: prioritize the board and readable controls. */
.topbar{width:min(1220px,100%);min-height:0;grid-template-columns:1fr minmax(200px,320px) 1fr;align-items:center;gap:8px;padding:4px 20px}
.topbar .brand{grid-column:2;grid-row:1;width:100%;position:relative;isolation:isolate}
.topbar .brand-logo{width:100%;height:82px;margin:0;object-fit:contain}
.brand-logo{filter:drop-shadow(0 0 2px #fff2b8) drop-shadow(0 0 7px #ffcb526e);animation:logo-glow 5s ease-in-out infinite}
.brand::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(110deg,transparent 38%,#fff5cb55 45%,#ffffffbd 49%,#fff8d55c 53%,transparent 60%) 140% 0/300% 100% no-repeat;mask:url('/arcade-art/top-ten-dash-wordmark-cutout.png') center/contain no-repeat;-webkit-mask:url('/arcade-art/top-ten-dash-wordmark-cutout.png') center/contain no-repeat;mix-blend-mode:screen;animation:logo-shimmer 7s ease-in-out infinite}
.brand-sparkles{position:absolute;inset:0;width:min(100%,219px);margin:auto;pointer-events:none}
.brand-sparkles i{position:absolute;width:10px;height:10px;background:#fff8d3;clip-path:polygon(50% 0,61% 38%,100% 50%,61% 62%,50% 100%,39% 62%,0 50%,39% 38%);filter:drop-shadow(0 0 3px #ffdd78);opacity:0;animation:logo-sparkle 5.6s ease-in-out infinite}
.brand-sparkles i:nth-child(1){left:5%;top:28%;animation-delay:.4s}
.brand-sparkles i:nth-child(2){left:41%;top:7%;width:8px;height:8px;animation-delay:1.8s}
.brand-sparkles i:nth-child(3){right:2%;top:45%;animation-delay:3.2s}
.brand-sparkles i:nth-child(4){right:24%;bottom:9%;width:7px;height:7px;animation-delay:4.5s}
@keyframes logo-glow{0%,100%{filter:drop-shadow(0 0 2px #fff2b8) drop-shadow(0 0 7px #ffcb526e)}50%{filter:drop-shadow(0 0 3px #fff2c2) drop-shadow(0 0 11px #ffd15b99)}}
@keyframes logo-shimmer{0%,16%{background-position:140% 0;opacity:0}20%{opacity:.65}46%{background-position:-40% 0;opacity:.65}50%,100%{background-position:-40% 0;opacity:0}}
@keyframes logo-sparkle{0%,70%,100%{opacity:0;transform:scale(.35) rotate(0)}80%{opacity:.95;transform:scale(1) rotate(12deg)}90%{opacity:0;transform:scale(.45) rotate(25deg)}}
@media(prefers-reduced-motion:reduce){.brand::after,.brand-sparkles{display:none}.brand-logo{animation:none}}
.topbar>a,.topbar .sound-toggle{grid-row:1;margin:0;min-height:34px;padding:6px 12px;font-size:12px}
body .social-bar{padding:4px 10px;gap:8px;margin-bottom:6px;font-size:12px}
body .social-bar a,body .social-bar button{padding:5px 10px;min-height:30px}
.page-shell{width:min(1180px,calc(100% - 32px));padding-bottom:8px}
.scoreboard{grid-template-columns:110px minmax(0,1fr) 110px;gap:8px;margin-bottom:6px}
.team,.topic-heading,.dice-stage,.answer-board,.result{border-width:8px;border-image-width:8px;border-radius:12px}
.team{padding:0 4px}.team>span{font-size:11px}.team>strong{font-size:27px;line-height:1}.team>small{font-size:10px;min-height:10px}
.topic-heading{padding:2px 8px}.topic-heading>span{font-size:8px}.topic-heading h2{font-size:21px;margin:1px 0 3px}
.topic-picker{font-size:11px;gap:6px}.topic-picker select{min-height:26px;padding:3px 20px 3px 6px;font-size:11px}
.dice-stage{width:min(660px,100%);margin:6px auto 0;padding:12px}
.eyebrow{font-size:9px}.dice-stage h2{font-size:23px;margin:6px 0}.dice-help{font-size:12px}
.dice-pair{gap:30px;margin:10px auto}.dice-pair>div{gap:4px}.dice-pair rankrush-dice{width:100px}.dice-pair>div>span{font-size:11px}
.primary-action,.result button{min-height:40px;padding:8px 20px;font-size:14px}
.answer-board{padding:5px;gap:4px 8px}.answer-board li{min-height:32px;grid-template-columns:30px minmax(0,1fr) 38px}
.answer-board li>b{font-size:17px}.answer-board li>span{font-size:13px;padding:3px 7px}.answer-board li>strong{font-size:14px}.answer-board li:not(.revealed)>span{font-size:10px}
.turn-banner{min-height:36px;padding:6px 10px;margin:6px 0;gap:8px}.turn-banner>span{font-size:13px}.turn-banner>strong{font-size:12px}.strikes{font-size:11px}.strike{font-size:18px}
.choices-heading{font-size:10px;padding-bottom:4px}.choices{grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}.choices button{min-height:40px;padding:5px 7px;font-size:12px}
.how{margin-top:6px;padding:4px 10px;font-size:11px}
.result{padding:12px;margin-top:8px}.result h2{font-size:23px;margin:6px 0}.result p{margin:6px 0;font-size:13px}
@media(max-width:760px){
 .topbar{grid-template-columns:1fr 1fr;padding:6px 12px;gap:2px}.topbar .brand{grid-column:1/-1;grid-row:2}.topbar .brand-logo{height:68px}.topbar>a,.topbar .sound-toggle{min-height:34px;font-size:11px}
 .brand-sparkles{width:min(100%,181px)}
 .page-shell{width:calc(100% - 16px)}.scoreboard{grid-template-columns:64px minmax(0,1fr) 64px;gap:4px}.topic-heading{grid-column:2;grid-row:1;padding:2px}.topic-heading h2{font-size:15px}.topic-heading>span{font-size:7px}.team>span{font-size:9px}.team>strong{font-size:24px}.topic-picker{font-size:0;gap:0;margin:0}.topic-picker select{width:100%;max-width:100%;font-size:10px;min-height:28px}
 .answer-board{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(5,1fr);grid-auto-flow:column;gap:4px;padding:4px}.answer-board li{grid-template-columns:22px minmax(0,1fr) 27px;min-height:36px}.answer-board li>span{font-size:11px;padding:3px}.answer-board li>b{font-size:14px}.answer-board li>strong{font-size:12px}.answer-board li:not(.revealed)>span{font-size:9px;letter-spacing:0}
 .choices{grid-template-columns:repeat(2,minmax(0,1fr))}.choices button{min-height:44px;font-size:12px}.turn-banner{flex-wrap:wrap}.turn-banner>strong{order:3;width:100%;font-size:12px;min-height:0}.dice-stage h2{font-size:21px}
}
