/* PANGGUNG UNDIAN — Studio Edition V4
   A deliberate class-ready design system. Typography, spacing, hand-built SVG badges,
   theatrical scenery, not an all-neon gradient dashboard. */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Nunito:wght@600;700;800;900&display=swap');
:root{color-scheme:light;--ink:#273348;--muted:#778095;--panel:#fffdf8;--panel2:#f4efe7;--stroke:#ded8ca;--blue:#35536e;--purple:#57476c;--pink:#da7c88;--yellow:#f2c775;--mint:#9dc6ba;--shadow:0 12px 26px #34415b18; font-family:'DM Sans',system-ui,sans-serif;color:var(--ink)}
body{background:#f3efe7;color:var(--ink);background-image:radial-gradient(circle at 92% 1%,#f4e2cf 0,transparent 23%),radial-gradient(circle at 21% 60%,#e4e8e0 0,transparent 30%);background-attachment:fixed}
*{scrollbar-color:#c7c0b7 transparent;scrollbar-width:thin}
button,input,select,textarea{font-family:inherit}
button{cursor:pointer}button:disabled{cursor:not-allowed}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #ba8643;outline-offset:2px}
.shell{grid-template-columns:250px minmax(0,1fr)}
.side{background:#293c4e;border-right:0;color:#f9f3e9;box-shadow:inset -8px 0 20px #182a3724;padding:26px 18px;overflow:hidden;z-index:5}
.side:before{content:'';position:absolute;top:0;left:0;width:100%;height:8px;background:repeating-linear-gradient(90deg,#eeab7c 0 32px,#ebd18e 32px 64px,#99c7bc 64px 96px,#bccad7 96px 128px)}
.side:after{content:'';position:absolute;width:360px;height:340px;bottom:-175px;left:-115px;border:1px solid #fff2;border-radius:50%;box-shadow:0 0 0 28px #ffffff04,0 0 0 70px #ffffff05;pointer-events:none}
.brand{align-items:center;gap:13px;padding:13px 4px 20px;margin-bottom:18px;border-bottom:1px solid #ffffff21}
.brand-mark{width:50px;height:54px;border-radius:9px;display:grid;place-items:center;background:#f3c782;box-shadow:4px 4px 0 #172a3c;transform:rotate(-5deg);border:2px solid #fff6;flex:none;color:#3e4053}
.brand-mark span{font-family:Georgia,serif;font-size:19px;font-weight:bold;letter-spacing:-2px;transform:rotate(5deg)}
.brand strong{font-size:16px;line-height:1.03;letter-spacing:1.1px;color:#fff7ed;font-weight:900}
.brand small{font-size:10px;line-height:1.7;color:#c7d6d8}
.side-label{color:#bbd0ce;letter-spacing:2.1px;font-size:10px;padding-left:13px;margin:16px 0 9px}
.side-nav{display:grid;gap:5px}
.nav-btn{border-radius:8px;min-height:45px;border:1px solid transparent;color:#d9e5e0;background:transparent;padding:9px 12px;gap:10px;font-weight:700;font-size:12.5px;box-shadow:none;position:relative;justify-content:flex-start}
.nav-btn:hover{background:#ffffff15;transform:none;color:#fff}
.nav-btn.active{background:#f4e6c9;border-color:#fff6;color:#31475b;box-shadow:4px 4px 0 #1c2e40;transform:translateX(0)}
.nav-emoji{width:26px;height:26px;display:grid;place-items:center;border:1px solid currentColor;border-radius:7px;background:transparent;color:inherit;font-size:19px;font-weight:900}
.side-art{position:relative;margin-top:29px;padding:20px 14px 19px;text-align:center;background:#3e5c66;border:1px solid #d8e0ca4a;border-radius:78px 78px 15px 15px;box-shadow:0 7px 0 #1a3340}
.side-art-stars{color:#f8d5a0;font-size:16px;letter-spacing:4px}
.side-art-circle{height:117px;width:130px;max-width:100%;border-radius:80px 80px 20px 20px;background:#9dc3b9;margin:12px auto 18px;position:relative;overflow:hidden;display:grid;place-items:center;border:5px solid #f6ebcf;box-shadow:0 8px 0 #243e4c}
.side-art-circle>span:first-child{position:absolute;left:16px;top:10px;color:#fff5ca;font-size:21px}
.side-art-face{transform:scale(1.8) translateY(7px)}
.side-art h3{font-family:Nunito,system-ui,sans-serif;font-size:17px;color:#fff4dc;margin:9px 0 4px}
.side-art p{font-size:11.5px;line-height:1.55;margin:0;color:#e0eadd}
.sidebar-foot{font-size:9px;letter-spacing:1.4px;text-align:center;color:#a6bfc1;margin-top:20px}
.main{max-width:1500px;padding:25px clamp(15px,2.6vw,33px) 38px}
.top{margin-bottom:16px;align-items:center}
.eyebrow{font-size:10px;letter-spacing:2px;color:#8f635b;font-weight:900}
.thin-dot{padding:0 6px;color:#c6aa79}
.top h1{font-family:Nunito,sans-serif;font-size:clamp(24px,2.6vw,36px);font-weight:900;letter-spacing:-1.2px;margin-top:5px;color:#263849}
.top-actions{gap:7px}
.btn{color:#32465b;background:#fffdf7;border:1px solid #d9d3c8;border-radius:8px;box-shadow:2px 3px 0 #d3cbbd;padding:10px 14px;font-weight:800;font-size:12px;transition:transform .16s,box-shadow .16s}
.btn:hover:not(:disabled){filter:none;transform:translateY(-2px);box-shadow:2px 5px 0 #cfc4b7}
.btn.ghost{background:#fff8ee;border-color:#d9cab8;color:#5a5b67}
.btn.primary{color:#fffdf4;border-color:#34495b;background:#496579;box-shadow:3px 4px 0 #243949}
.btn.primary:hover:not(:disabled){box-shadow:3px 6px 0 #243949}
.btn.aqua{background:#bcded5;border-color:#90b5aa;color:#274a4e;box-shadow:3px 4px 0 #7ba398}
.btn.danger{color:#823b3f;background:#fbe2dd;border-color:#cda9a5;box-shadow:none}
.btn.xl{font-size:13px;padding:14px 23px;border-radius:8px}
.status{border-radius:99px;background:#e6efe8;color:#546d62;border:1px solid #bad1c4;padding:8px 10px;white-space:nowrap;font-size:11px}
.dot{box-shadow:none;background:#e7b46f}.dot.on{background:#71b593;box-shadow:none}
.intro-hero{min-height:158px;margin-bottom:18px;display:grid;grid-template-columns:minmax(0,1fr) 245px;align-items:stretch;gap:5px;background:#f0d8b6;border:1px solid #dfc3a4;border-radius:13px;box-shadow:4px 5px 0 #d5d1bf;position:relative;isolation:isolate;padding:0;overflow:hidden}
.intro-hero:before{content:'';position:absolute;inset:0;background:repeating-linear-gradient(125deg,#ffffff0e 0 2px,transparent 2px 16px);z-index:-1}
.intro-hero:after{content:'';position:absolute;left:0;top:0;bottom:0;width:10px;background:repeating-linear-gradient(180deg,#da866e 0 25px,#f5d595 25px 50px)}
.hero-copy{padding:21px 16px 20px 31px;z-index:1}
.hero-kicker{font-size:9px;letter-spacing:2.1px;font-weight:900;color:#865f55}
.intro-hero h2{font-family:Nunito,sans-serif;font-weight:900;font-size:clamp(22px,2.3vw,30px);line-height:1.11;color:#344757;margin:8px 0 7px;letter-spacing:-.7px;text-shadow:none}
.intro-hero h2 em{font-style:normal;color:#b35f57}
.intro-hero p{font-size:12px;line-height:1.6;color:#695d5c;max-width:450px;margin:0}
.hero-illustration{position:relative;min-height:151px;padding-top:9px;background:radial-gradient(ellipse at 50% 98%,#dab48c 0,transparent 66%)}
.hero-arch{position:absolute;bottom:0;right:25px;width:207px;height:152px;background:#527c7f;border:9px solid #d19a7e;border-bottom:0;border-radius:110px 110px 0 0;box-shadow:inset 0 0 0 6px #e4c4a0,0 2px 6px #8c654a3a;overflow:hidden}
.hero-arch:before{content:'';position:absolute;inset:0;background:repeating-conic-gradient(from 180deg at 50% 100%,#ebd5a80d 0 13deg,#ffdeae2a 13deg 22deg);opacity:.6}
.hero-stand{position:absolute;bottom:18px;z-index:2;filter:drop-shadow(0 5px 2px #203c4750)}
.hero-stand.h1{left:26px;transform:scale(1.2)}.hero-stand.h2{left:78px;bottom:13px;transform:scale(1.46);z-index:3}.hero-stand.h3{right:21px;transform:scale(1.16)}
.arch-star{position:absolute;color:#ffe3a1;font-size:23px}.arch-star.a{top:16px;left:29px}.arch-star.b{top:8px;right:25px}
.arch-floor{position:absolute;height:20px;bottom:0;left:0;right:0;background:#dc9d75;border-top:5px solid #f7cd9c}
.summary{gap:11px;margin-bottom:16px}
.stat{background:#fffdf7;border:1px solid #dedbd2;border-radius:10px;padding:10px 14px;gap:11px;box-shadow:2px 3px 0 #e0dbd2}
.stat:nth-child(2){background:#fff9ec}.stat:nth-child(3){background:#edf6f1}
.stat-icon{height:34px;width:34px;border-radius:7px;background:#f4e1c5;font-size:18px;box-shadow:none;border:0}
.stat:nth-child(2) .stat-icon{background:#ffebc0}.stat:nth-child(3) .stat-icon{background:#cde4d8}
.stat strong{font-family:Nunito,sans-serif;color:#34465a;font-size:23px}.stat small{color:#758092;font-size:10px}
.layout{gap:14px;grid-template-columns:minmax(0,1.55fr) minmax(280px,.84fr)}
.panel{border-radius:12px;background:#fffdfa;border:1px solid #ded7cc;box-shadow:3px 4px 0 #ded8cb;padding:18px;min-width:0}
.panel h2{color:#394c60;font-family:Nunito,sans-serif;font-size:18px;font-weight:900}
.panel .bar{margin-bottom:13px}
.panel .muted,.muted{color:#7f8290}
.mode-grid{gap:10px}
.mode-tile{--base:#e8d7c7;position:relative;min-height:126px;border-radius:9px 9px 13px 13px;background:var(--base);padding:9px 7px 11px;display:flex;flex-direction:column;align-items:center;justify-content:center;border:1px solid #5e596347;box-shadow:0 4px 0 #6c6376a3,inset 0 2px #ffffff74;transform:none;text-shadow:none;color:#354250;transition:transform .16s,box-shadow .16s}
.mode-tile:before{content:'';position:absolute;top:0;left:0;right:0;height:8px;background:#ffffff7a;border-radius:9px 9px 0 0;opacity:.7}
.mode-tile:after{content:'';position:absolute;bottom:8px;left:15%;right:15%;height:1px;background:#fff8}
.mode-tile:hover{transform:translateY(-3px) rotate(-.5deg);filter:none;box-shadow:0 7px 0 #6c6376a3}
.mode-tile.active{outline:3px solid #a66b4b;outline-offset:2px;transform:translateY(-2px);box-shadow:0 6px 0 #6c6376a3}
.mode-tile.game-wheel{--base:#dfc1d9}.mode-tile.game-duck{--base:#beded9}.mode-tile.game-rocket{--base:#efbba6}.mode-tile.game-marble{--base:#c7d4eb}.mode-tile.game-cards{--base:#edc8d0}.mode-tile.game-chest{--base:#f1d49b}.mode-tile.game-spotlight{--base:#c8d7cb}.mode-tile.game-tap{--base:#d7cae6}
.mode-number{position:absolute;top:11px;left:10px;font-size:10px;letter-spacing:1px;color:#303c5580;font-weight:900}
.mode-chevron{position:absolute;top:8px;right:12px;color:#303c5580;font-size:13px;font-weight:900}
.mode-tile .m-icon{font-size:0;filter:none;display:flex;justify-content:center;align-items:center;width:76px;height:69px;margin:3px 0 0}
.mode-tile .m-icon svg{width:70px;height:60px;filter:drop-shadow(0 5px 0 #293c4930);transition:transform .18s}
.mode-tile:hover .m-icon svg{transform:rotate(-5deg) translateY(-3px)}
.mode-tile .m-name{font-size:11.7px;font-weight:900;font-family:Nunito,sans-serif;color:#38475a}
.stage{min-height:355px;margin-top:22px;border-radius:13px;background:#304d5e;box-shadow:0 6px 0 #233d4b,0 16px 23px #4f54511e;overflow:hidden;border:6px solid #e4d1aa;color:#f9f1df}
.stage:before{content:'';position:absolute;inset:-10% -10% 0;background:repeating-conic-gradient(from 210deg at 50% 5%,#e9dca01c 0 13deg,transparent 13deg 27deg);pointer-events:none;opacity:.5}
.stage:after{content:'';position:absolute;bottom:0;left:0;right:0;height:9px;background:repeating-linear-gradient(90deg,#c67c65 0 36px,#efbb81 36px 72px);opacity:.85;pointer-events:none}
.stage-title{position:relative;z-index:1;display:flex;align-items:center;justify-content:space-between;text-align:left;padding:12px 18px 0;gap:17px;width:100%}
.stage-heading{display:flex;align-items:center;gap:9px}
.mini-art{width:41px;height:44px;display:grid;place-items:center;background:#ffffff25;border:1px solid #fff5;border-radius:8px}
.mini-art svg{width:40px;height:34px}
.stage-kicker{font-size:9px;font-weight:900;letter-spacing:2px;color:#eac994}
.stage-title h3{font-family:Nunito,sans-serif;font-weight:900;font-size:21px;margin:1px 0;color:#fff6e9;text-shadow:none}
.stage-title p{font-size:11px;line-height:1.5;color:#e4dfd2;max-width:240px;margin:0}
.stage-body{z-index:1;min-height:250px;padding:12px 15px 24px}
.stage-result{background:#f7d9aa;border:5px double #b66f66;color:#32475a;box-shadow:0 11px 22px #14243656;border-radius:15px}
.stage-result strong{color:#334959}
.textarea,.input{background:#fffdf8;border:1px solid #d2ccc4;color:#34495a;border-radius:9px}.field-label{color:#4d5364}
.list-people .person-row,.person-row{background:#f6f3ee;border:1px solid #e2ddd3;border-radius:8px;color:#3a4a60;box-shadow:none}
.person-row .name{color:#34485c}.person-row .icon-btn{background:#e5e3dc;color:#686d75;border-radius:6px}
.subpanel{border-radius:12px;background:#f7f3ea;border:1px solid #e1d9c9}.subpanel h2{color:#3d4a58}
.info{background:#eef6f0;border-color:#d0e0d4;color:#4b6a5b}
.no-config{background:#fff0d9;color:#725431;border-color:#ecd6aa}
.footer{color:#7e847f;font-size:10px;letter-spacing:1px}
/* LIVE RACE / visual identity lives in a stage, not the old one-tap leaderboard. */
.tap-studio{background:#fffcf7;border:1px solid #dfd7ca;box-shadow:3px 5px 0 #ded8ce;border-radius:14px;padding:20px 22px;min-width:0}
.tap-studio-head{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e9e1d5;padding-bottom:13px;gap:14px}
.tap-studio-head .stage-kicker{color:#ad7c5f}
.tap-studio-head h2{font-family:Nunito,sans-serif;font-size:clamp(26px,3vw,38px);margin:3px 0 1px;color:#30485a;letter-spacing:-.7px}
.tap-studio-head p{font-size:12px;color:#7a7d85;margin:0}
.tap-head-mark{width:74px;height:75px;border-radius:13px;display:grid;place-items:center;background:#e7d4a5;border:2px solid #cfae80;transform:rotate(6deg);box-shadow:4px 4px 0 #d9cbb2}
.tap-head-mark svg{width:66px;height:60px}
.tap-notice{background:#fff1d7;border:1px solid #ead2a2;color:#776042;padding:11px 15px;font-size:12px;line-height:1.6;border-radius:8px;margin:16px 0}
.tap-control{display:flex;flex-wrap:wrap;gap:14px;align-items:end;padding:18px 0}
.tap-setting{min-width:125px}.tap-setting>label{display:block;font-size:10px;letter-spacing:1.1px;font-weight:900;color:#79818c;margin-bottom:8px;text-transform:uppercase}
.tap-setting .input{min-width:110px;width:100%;font-weight:800;font-size:12px;padding:9px 10px}
.tap-options{display:flex;gap:9px;align-items:center;flex-wrap:wrap}
.tap-options label{border:1px solid #ded7cc;background:#f8f3e8;padding:10px 12px;border-radius:7px;font-weight:800;font-size:12px;color:#465467;white-space:nowrap;display:flex;align-items:center;gap:5px}
.tap-options input{accent-color:#44707b}
.tap-actions{display:flex;flex-direction:row;gap:7px;align-items:center;flex-wrap:wrap;flex:1}
.tap-actions .btn{white-space:nowrap;font-size:12px}
.race-console{overflow:hidden;border:6px solid #d9b989;background:#243d53;border-radius:15px;box-shadow:0 8px 0 #263846,0 17px 26px #34425137;color:#fffef5}
.race-console-top{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:13px 19px;background:#304f62;border-bottom:1px solid #77939e60}
.race-console-top>div:first-child{display:flex;align-items:center;gap:9px;flex-wrap:wrap;font-size:14px;font-weight:900;letter-spacing:1.5px}
.race-led{display:inline-block;width:8px;height:8px;background:#e9c57b;border-radius:50%;box-shadow:0 0 0 4px #e9c57b36}
.race-console-top small{font-size:10px;font-weight:600;color:#c4d6d5;letter-spacing:.2px}
.race-timer{display:flex;align-items:center;gap:10px;background:#172e42;padding:6px 12px;border:1px solid #8198a185;border-radius:8px}
.race-timer span{font-size:9px;letter-spacing:1.5px;color:#cfddda}.race-timer strong{font-family:Nunito,sans-serif;font-size:25px;color:#f5db9b;font-variant-numeric:tabular-nums;min-width:32px;text-align:center}
.race-startline{padding:10px 17px 5px;display:flex;align-items:center;justify-content:space-between;color:#cfdfdc;font-weight:900;font-size:9px;letter-spacing:1.8px}
.race-startline span{color:#e2bb7c;font-size:9px;font-weight:700;letter-spacing:.6px}
.tap-tracks{display:grid;gap:8px;padding:6px 15px 18px;max-height:620px;overflow-y:auto}
.tap-empty{padding:43px 12px;text-align:center;color:#d6e2dc;font-size:13px}
.tap-lane{--progress:0%;position:relative;display:grid;grid-template-columns:210px minmax(115px,1fr) 64px;gap:13px;align-items:center;background:#f6efe0;padding:7px 12px 7px 8px;border:1px solid #e9d1a8;border-radius:7px;min-height:58px;color:#334c5d;transition:background-color .25s}
.tap-lane:nth-child(even){background:#e5ece8;border-color:#a9c8c5}
.tap-lane.is-leading{background:#f7e1b2;border:2px solid #f2bd67;box-shadow:inset 0 0 0 2px #fff2d3}
.tap-lane.finished{border-color:#73a99b}
.tap-athlete{min-width:0;display:flex;align-items:center;gap:8px}
.tap-athlete .avatar{flex-shrink:0;transform:scale(.83);margin:0 -4px}
.tap-medal{display:grid;place-items:center;width:26px;height:26px;border:1px solid #bec8c2;border-radius:6px;background:#fff8e9;color:#51637a;font-size:10px;font-weight:900;flex:none}
.tap-lane.is-leading .tap-medal{background:#db9c57;color:white;border-color:#ad7848}
.tap-name{font-size:12px;font-weight:900;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tap-amount{margin-left:auto;white-space:nowrap;font-size:12px;color:#486477}.tap-amount b{font-family:Nunito,sans-serif;font-size:18px}
.tap-amount small{font-size:10px}
.tap-course{height:27px;position:relative;border-radius:4px;background:repeating-linear-gradient(90deg,#c3d0cb33 0 12px,#c3d0cb77 12px 13px);border:1px solid #b8c5bf;overflow:visible}
.tap-course-line{position:absolute;top:50%;left:0;right:0;border-top:2px dashed #8da69e60;pointer-events:none}
.tap-ribbon{position:absolute;top:5px;bottom:5px;left:0;width:var(--progress);max-width:100%;background:#81b1a7;border-radius:4px 4px 4px 4px;transition:width .3s cubic-bezier(.2,.75,.2,1);box-shadow:inset 0 1px #ffffff99}
.tap-lane:nth-child(3n) .tap-ribbon{background:#d39494}.tap-lane:nth-child(3n+2) .tap-ribbon{background:#d7b069}.tap-lane.is-leading .tap-ribbon{background:#dd9c54}
.tap-marker{position:absolute;left:clamp(0px,calc(var(--progress) - 16px),calc(100% - 27px));top:-11px;transition:left .3s cubic-bezier(.2,.75,.2,1);filter:drop-shadow(2px 3px 1px #1e3b5140);z-index:2;pointer-events:none}
.tap-marker .avatar{transform:scale(.69);transform-origin:top left}
.finish-flag{position:absolute;right:0;top:0;height:100%;width:23px;display:grid;place-items:center;color:#283f53;font-size:0;background:conic-gradient(#293e4b 25%,#fffdf0 0 50%,#293e4b 0 75%,#fffdf0 0);background-size:12px 12px;opacity:.85;border-left:1px solid #39576e}
.tap-status{font-size:9px;letter-spacing:1px;font-weight:900;text-align:right;color:#6b7886}
.tap-lane.is-leading .tap-status{color:#a77439}
.race-console-foot{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;background:#1e3448;padding:13px 19px;border-top:1px solid #ffffff17;color:#dce9e0;font-size:11px}
.race-console-foot b{color:#f3d39c}.race-console-foot>span:last-child{color:#b5c8c6}
.tap-award{display:flex;align-items:center;gap:15px;border:1px solid #e4be87;background:#fff1d6;border-radius:11px;padding:15px 19px;margin-top:24px;box-shadow:3px 4px 0 #e8d3b4}
.award-cup{font-family:Georgia,serif;font-size:42px;color:#ae7a3e}.tap-award small{font-size:10px;font-weight:900;letter-spacing:1px;color:#a77642}.tap-award h3{font-family:Nunito,sans-serif;font-size:29px;color:#385061;margin:2px 0}.tap-award p{font-size:12px;color:#777165;margin:0}
.tap-footnote{font-size:11px;line-height:1.6;color:#898c93;padding:19px 1px 0}
.tap-qr-shortcut{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px;border-top:1px dashed #d7d1c5;margin-top:15px;padding-top:14px}.tap-qr-shortcut span{font-size:11px;color:#8a9293}
/* Student mobile screen: warm playroom / high-tap ergonomics */
.student{background:radial-gradient(circle at 90% 3%,#f6d4ad 0,transparent 35%),#e8eee8;padding:12px;place-items:start center}
.student-card{width:min(480px,100%);margin:12px auto;background:#fffdf6;color:#30485a;border:1px solid #d5cbb8;border-radius:16px;box-shadow:5px 7px 0 #bbc9bf,0 17px 38px #314e4836;padding:18px 20px;overflow:hidden}
.student-card:before{content:'';height:7px;position:absolute;inset:0 0 auto;background:repeating-linear-gradient(90deg,#eebc87 0 35px,#a9c9bc 35px 70px,#deb0ad 70px 105px)}
.student-head{padding:13px 0 8px;text-align:center}
.student-monogram{font-family:Georgia,serif;display:grid;place-items:center;margin:0 auto 8px;background:#e9c38d;width:49px;height:44px;border:2px solid #bf9a63;border-radius:8px;transform:rotate(-3deg);font-size:21px;font-weight:900;color:#32485e}.student-monogram span{position:absolute;right:-9px;top:-8px;font-size:14px;color:#ac6f61}
.studio-badge{display:inline-block;border:1px solid #d1b797;padding:5px 9px;border-radius:4px;color:#8a694a;font-size:9px;letter-spacing:2px;font-weight:900}
.student-head h1{color:#324b5c;font-family:Nunito,sans-serif;font-size:27px;margin:7px 0 4px}.student-head p{color:#859090;font-size:12px;margin:0}
.room-banner{background:#f3ebda;border:1px solid #e2d8c2;border-radius:7px;color:#53636d;font-size:11px;margin:11px 0;padding:11px 12px;text-align:center}.room-banner strong{color:#415669}.room-banner span{color:#6b987e;font-weight:800;margin-left:5px}
.student-form h3{font-family:Nunito,sans-serif;font-size:19px;text-align:center;color:#394c5c;margin:21px 0 1px}.student-form .input{margin-bottom:6px}.student-form .custom-grid label{color:#546475}.student-form .avatar-preview{background:#e6ebdc;border-radius:88px 88px 16px 16px;border:5px solid #d3ad82;box-shadow:0 5px 0 #bf996d}
.student-live{text-align:center}
.student-identity{display:flex;align-items:center;text-align:left;gap:11px;margin:14px 0;padding:10px 15px;background:#e9eee5;border:1px solid #d3ddd1;border-radius:9px}
.student-identity-avatar{display:grid;place-items:center;min-width:58px;height:66px}.student-identity-avatar .avatar{transform:scale(1.05)}
.student-identity small{font-size:10px;letter-spacing:1px;color:#7b9390;font-weight:900}.student-identity h2{font-family:Nunito,sans-serif;color:#344c5e;font-size:22px;margin:3px 0}
.student-instruction{font-family:Nunito,sans-serif;font-weight:900;color:#526779;font-size:15px;margin:12px auto;min-height:23px}
.student-score{display:flex;align-items:center;justify-content:space-between;padding:9px 17px;background:#2f5261;border-radius:10px;color:#fff9e6;margin:9px 0 8px}
.student-score small{display:block;font-size:9px;letter-spacing:2px;color:#d0e0d6;text-align:left;font-weight:900}.student-score strong{font-family:Nunito,sans-serif;font-size:48px;line-height:1.1;font-variant-numeric:tabular-nums}.student-score em{font-size:15px;font-style:normal;color:#eec88d}.student-time{text-align:right}.student-time strong{font-size:29px}
.student-progress{width:100%;height:15px;background:#e5e0ce;border-radius:4px;overflow:hidden;border:1px solid #c9bea8;margin:13px 0 22px}.student-progress>div{height:100%;background:repeating-linear-gradient(115deg,#87b8a5 0 13px,#a2c9b8 13px 26px);transition:width .15s}
.student-tap-multi{touch-action:manipulation;-webkit-tap-highlight-color:transparent;user-select:none;position:relative;isolation:isolate;overflow:hidden;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;width:min(280px,74vw);height:min(280px,74vw);margin:18px auto 12px;border-radius:50%;border:10px solid #fff6e5;background:#e7a66b;color:#4e4653;box-shadow:0 10px 0 #9d6a52,0 23px 26px #364c4a4b,inset 0 4px 1px #fce9c3;transition:transform .07s,box-shadow .07s;padding:15px}
.student-tap-multi:before{content:'';position:absolute;inset:9px;border-radius:50%;border:2px dashed #fff5df9c;pointer-events:none}
.student-tap-multi .tap-palm{font-size:57px;filter:drop-shadow(0 3px #aa7957)}
.student-tap-multi b{font-family:Nunito,sans-serif;font-weight:900;font-size:clamp(22px,6vw,29px);letter-spacing:-.5px;z-index:1}
.student-tap-multi small{font-size:11px;font-weight:800;color:#725a58}
.student-tap-multi:active:not(:disabled){transform:translateY(7px) scale(.98);box-shadow:0 3px 0 #9d6a52,0 6px 12px #364c4a42}
.student-tap-multi.tapped{animation:studentTapPop .11s ease-out}
@keyframes studentTapPop{50%{filter:brightness(1.15);transform:scale(.97)}}
.student-tap-multi.inactive{background:#d1d4ca;color:#65746d;box-shadow:0 9px 0 #9aa9a0,inset 0 3px #ffffffb5;opacity:.82}
.student-sync{font-size:11px;color:#778c83;min-height:18px}.student-wait{margin:24px 0!important;color:#486875!important;background:#e5eee8!important;border-color:#cfddd4!important}
.student-result{margin:20px 0;background:#f4dfb9;border:1px solid #ceae78;border-radius:11px;color:#374e5e;padding:19px}.student-result small{font-size:10px;letter-spacing:2px}.student-result h2{font-family:Nunito,sans-serif;font-size:28px;margin:8px 0}
.student-footer{text-align:center;font-size:9px;letter-spacing:2px;color:#929789;margin:17px 0 0}
@media(max-width:1270px){.shell{grid-template-columns:216px minmax(0,1fr)}.main{padding:19px}.layout{grid-template-columns:1fr}.side{padding:25px 12px}.mode-tile{min-height:113px}.tap-lane{grid-template-columns:178px minmax(90px,1fr) 52px}}
@media(max-width:760px){.shell{display:block}.side{height:auto;position:relative;overflow:visible;padding:12px 14px 13px;border-bottom:4px solid #e7b77e}.side:before{height:4px}.brand{border:0;padding:0;margin:0}.brand strong{font-size:13px}.brand small{display:none}.side-label,.side-art,.sidebar-foot{display:none}.side-nav{display:flex;gap:7px;overflow-x:auto;padding:9px 0 2px}.nav-btn{min-width:150px;white-space:nowrap;font-size:11px}.nav-btn.active{box-shadow:2px 2px 0 #142638}.top{display:block}.top-actions{margin-top:12px}.main{padding:15px 12px}.intro-hero{grid-template-columns:1fr minmax(100px,32%);min-height:153px}.hero-arch{right:-46px;transform:scale(.85);transform-origin:bottom right}.hero-copy{padding:18px 12px 16px 21px}.intro-hero h2{font-size:22px}.intro-hero p{font-size:11px}.summary{grid-template-columns:repeat(3,minmax(0,1fr))}.stat{padding:8px;gap:6px}.stat-icon{height:26px;width:26px;font-size:14px}.stat strong{font-size:19px}.stat small{font-size:9px}.mode-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.mode-tile{min-height:87px;padding:9px 2px 8px;border-radius:7px}.mode-tile .m-icon{height:44px;width:45px}.mode-tile .m-icon svg{width:45px;height:43px}.mode-tile .m-name{font-size:9px}.mode-number{font-size:8px;top:5px;left:5px}.mode-chevron{display:none}.panel{padding:12px}.stage-title{display:block}.stage-title p{padding-left:48px;max-width:none;margin-top:5px}.stage{min-height:320px}.tap-studio{padding:12px}.tap-control{gap:9px}.tap-setting{flex:1}.tap-actions{width:100%;flex-basis:100%}.tap-head-mark{width:55px;height:58px}.tap-head-mark svg{width:47px}.tap-lane{grid-template-columns:120px minmax(60px,1fr) 45px;gap:5px;padding:7px 5px;min-height:53px}.tap-athlete{gap:3px}.tap-athlete>.avatar{display:none}.tap-name{font-size:11px}.tap-amount b{font-size:13px}.tap-amount small{display:none}.tap-medal{width:20px;height:20px;font-size:8px}.tap-status{font-size:8px}.tap-tracks{padding:6px 7px 17px}.race-console-top{padding:11px 9px}.race-console-top small{font-size:8px}.race-console-foot{padding:11px 9px}}
@media(max-width:430px){.intro-hero{grid-template-columns:1fr 105px}.hero-arch{right:-96px;transform:scale(.7)}.hero-copy{padding-left:16px}.intro-hero h2{font-size:19px}.intro-hero p{font-size:10px}.mode-grid{grid-template-columns:repeat(4,1fr)}.mode-tile .m-name{font-size:8px}.tap-lane{grid-template-columns:102px minmax(55px,1fr) 34px}.tap-name{max-width:48px}.tap-course{height:24px}.tap-marker{top:-8px}.race-startline span{font-size:7px}}
@media(prefers-reduced-motion:reduce){.mode-tile,.tap-ribbon,.tap-marker,.student-tap-multi,.student-progress>div{transition:none!important;animation:none!important}}

/* Explicit overrides for old game styles: preserve new handcrafted palette. */
.mode-tile.active{background:var(--base)!important;color:#354250!important}
.mode-tile.active .m-name{color:#354250!important}
.tap-options label:has(input:checked){background:#dcebe4!important;color:#31555a!important;border-color:#97b6aa!important}
.tap-setting .input{background:#fffdf7!important;color:#35465a!important;border:1px solid #d2ccc4!important}
