/* A web game inside the website, with the native palette and shared chart engine. */
:root{--blue:#194de6;--magenta:#9d229e;--ink:#102447;--muted:#52617a;--bg:#f9fbff;--line:#dce5f4}
html,body{margin:0;width:100%;height:100%;min-height:0;background:var(--bg);overflow:hidden;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.workspace{display:block;width:100%;height:calc(100dvh - 76px);min-height:0;padding:0}
.phone{display:flex;flex-direction:column;width:100%;max-width:none;height:100%;min-height:0;border:0;border-radius:0;box-shadow:none;background:var(--bg)}
.phone .status{display:none}.phone .screen{flex:1;align-self:center;width:min(100%,1208px);height:auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:42px 24px 24px!important}
.phone .screen>h2,.phone .screen>.tag,.phone .screen>.subtitle,.phone .screen>.stats,.phone .screen>.card,.phone .screen>.game,.phone .screen>details:not(.more-practice),.phone .screen>.chapter-list,.phone .screen>.learn-head,.phone .screen>.learn-path,.phone .screen>.chapter-card{max-width:820px;margin-left:auto;margin-right:auto}
.phone>nav{display:none}.phone input:not([type=checkbox]):not([type=range]){box-sizing:border-box;max-width:100%;border:1px solid #bccce6;background:#fff;border-radius:10px;font-size:16px}
.phone .card{box-sizing:border-box;background:#fff;border:1px solid var(--line);box-shadow:none;border-radius:16px}.phone button{font-family:inherit}.phone .primary{background:var(--blue);box-shadow:none;border-radius:10px;font-size:15px;min-height:48px}.phone .onboarding-actions{position:static;margin-top:24px}
.phone h2{font-size:30px;line-height:1.15;letter-spacing:-.9px;overflow-wrap:anywhere}.phone h3{letter-spacing:-.5px}.phone .subtitle{font-size:15px;line-height:1.6}.phone button:disabled{opacity:.5}.phone .chart{max-width:100%;background:#fff;border:1px solid #e5ecf7;border-radius:0}
.phone .site-button{font-size:15px;font-weight:650;min-height:48px;margin:0;width:auto;white-space:nowrap;box-shadow:none}.phone .site-button svg{width:20px;height:20px}.phone .site-button.outline{background:#fff;color:var(--blue)}
.dashboard-heading{margin-bottom:30px}.dashboard-heading h1{font-size:clamp(38px,4.6vw,62px);font-weight:750;line-height:1.06;letter-spacing:-2px;margin:0 0 13px}.dashboard-heading p{font-size:clamp(17px,2vw,24px);line-height:1.5;color:var(--muted);margin:0}
.game-dashboard{display:grid;grid-template-columns:minmax(0,2.1fr) minmax(270px,.9fr);gap:20px;align-items:start}.dashboard-main{display:grid;gap:16px}.training-panel,.learning-panel,.arena-panel,.mode-row{background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:none}.training-panel{padding:24px;text-align:center}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px;text-align:left}.panel-heading h2{margin:0;font-size:24px;letter-spacing:-.6px}.panel-heading span{font-size:12px;color:var(--muted)}.training-panel .chart{height:240px;margin:0}.training-panel .legend:empty{display:none}.training-panel .legend{font-size:11px;padding:7px 0}.training-panel>.site-button{margin-top:20px;min-width:270px}
.mode-row{display:flex;align-items:center;gap:18px;padding:20px}.mode-icon{display:inline-flex;align-items:center;justify-content:center;background:#edf4ff;color:var(--blue);width:52px;height:52px;border-radius:10px;flex-shrink:0}.mode-icon svg{width:30px;height:30px}.mode-icon.pink{color:var(--magenta);background:#f7f0fb}.mode-row h2{font-size:23px!important;margin:0 0 6px!important;letter-spacing:-.6px!important}.mode-row p{font-size:14px;line-height:1.5;color:var(--muted);margin:0}.mode-row>.site-button{margin-left:auto;min-width:100px}.dashboard-side{display:grid;gap:18px}.learning-panel,.arena-panel{padding:26px}.learning-panel>.mode-icon{float:left;margin-right:16px;margin-bottom:16px}.learning-panel h2{font-size:23px!important;margin:6px 0 26px!important;letter-spacing:-.5px!important}.learning-panel>p{font-size:16px;line-height:1.6;color:var(--muted);margin:7px 0 0}.learning-panel>p:nth-of-type(2){clear:both;margin:22px 0 24px;font-size:16px}.learning-panel>.site-button{width:100%}.arena-panel h2{font-size:23px!important;margin:0 0 20px!important}.arena-panel dl{margin:0 0 24px}.arena-panel dl>div{display:flex;align-items:center;gap:20px;padding:16px 0}.arena-panel dl>div+div{border-top:1px solid var(--line)}.arena-panel dt{font-size:14px;color:var(--muted)}.arena-panel dd{font-size:30px;font-weight:750;letter-spacing:-.7px;margin:5px 0 0;line-height:1.15}.arena-panel>a{display:inline-flex;align-items:center;gap:5px;font-size:15px;font-weight:650;text-decoration:none;color:var(--blue)}.arena-panel>a svg{width:18px;height:18px}.more-practice{margin:26px 0;color:var(--ink)}.more-practice>summary{font-size:15px;color:var(--muted);padding:12px 0;min-height:44px;cursor:pointer}#practice-modes{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:12px 0}#practice-modes>.card{margin:0;padding:18px;text-align:left;min-height:56px;color:var(--blue);font-size:14px}.game-footer{border-top:1px solid var(--line);padding:24px 0 4px;margin-top:28px;text-align:right;font-size:11px;color:var(--muted)}
#web-message{padding:16px;background:#fff1cb;border:1px solid #dec68b;border-radius:10px;font-size:14px;line-height:1.5}#duel-timer{font-variant-numeric:tabular-nums}#screen>button.card{display:block;text-align:left;min-height:64px}.phone .game{margin:auto;max-width:820px}.phone .game .chart{height:300px}.phone .chart-toolhead{background:#edf4ff;border:1px solid var(--line);border-radius:12px 12px 0 0}.phone .drawing-chart{border-radius:0 0 12px 12px}.phone .order-ticket{background:#f2f6ff;border:1px solid var(--line);border-radius:14px}
button,input,select,a{-webkit-tap-highlight-color:transparent}input,select{font-size:16px}#screen>.card>p{overflow-wrap:anywhere}.phone .site-button:focus-visible{outline:3px solid var(--magenta);outline-offset:3px}
@media(max-width:950px){.phone .screen{padding:32px 24px 24px!important}.game-dashboard{grid-template-columns:minmax(0,1fr) 280px;gap:16px}.training-panel{padding:20px}.mode-row{padding:18px;gap:12px}.mode-row .mode-icon{display:none}.learning-panel,.arena-panel{padding:22px}.dashboard-heading h1{font-size:48px}}
@media(max-width:720px){.game-dashboard{grid-template-columns:1fr}.dashboard-side{grid-template-columns:1fr 1fr;gap:14px}.learning-panel>.mode-icon{display:none}.learning-panel h2{font-size:20px!important;margin-bottom:16px!important}.learning-panel>p:nth-of-type(2){font-size:14px;margin:12px 0 20px}.arena-panel dl>div{padding:8px 0}.arena-panel .mode-icon{width:36px;height:36px}.arena-panel .mode-icon svg{width:22px;height:22px}.arena-panel dd{font-size:25px}.arena-panel h2{font-size:20px!important}.arena-panel dl{margin-bottom:15px}}
@media(max-width:600px){.workspace{height:calc(100dvh - 110px)}.phone .screen{padding:28px 20px 24px!important}.phone>nav{display:flex;flex-shrink:0;justify-content:center;width:100%;height:auto;min-height:64px;border:0;border-top:1px solid var(--line);border-radius:0;background:#fff;padding:6px max(12px,env(safe-area-inset-right)) max(6px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left))}.phone>nav button{flex:1;width:auto;min-height:48px;max-width:160px;font-size:11px}.dashboard-heading{margin-bottom:24px}.dashboard-heading h1{font-size:38px;letter-spacing:-1.5px}.dashboard-heading p{font-size:16px;max-width:300px}.training-panel{padding:18px 14px}.panel-heading{margin-bottom:16px}.panel-heading h2{font-size:21px!important}.panel-heading span{font-size:10px}.training-panel .chart{height:190px}.training-panel>.site-button{width:100%;min-width:0;margin-top:16px}.mode-row{padding:18px 15px}.mode-row h2{font-size:20px!important}.mode-row p{font-size:12px;max-width:175px}.mode-row>.site-button{min-width:78px;padding:12px;font-size:13px}.mode-row>.site-button svg{width:16px;height:16px}.dashboard-side{grid-template-columns:1fr}.learning-panel,.arena-panel{padding:22px}.learning-panel>.mode-icon{display:flex}.learning-panel h2{font-size:22px!important;margin-bottom:24px!important}.learning-panel>p:nth-of-type(2){font-size:15px;margin-bottom:20px}.arena-panel dl{display:flex;gap:32px}.arena-panel dl>div+div{border-top:0}.arena-panel dl>div{gap:12px}.arena-panel .mode-icon{display:none}.game-footer{text-align:center;padding:20px 0 0}.phone .game .chart{height:240px}#practice-modes{grid-template-columns:1fr}.phone .dial{max-width:210px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}
.web-calculator{border:1px solid var(--line);border-radius:16px;background:#fff;color:#102447;width:min(340px,calc(100vw - 48px));padding:24px;box-shadow:0 24px 100px #10244744}.web-calculator::backdrop{background:#10244755}.web-calculator output{display:block;text-align:right;padding:20px 0;font:32px monospace;overflow-wrap:anywhere}#calculator-keys{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}#calculator-keys button{min-height:52px;margin:0;padding:8px;text-align:center;justify-content:center}
@media(min-width:1000px){.phone .screen{width:min(100%,1424px)}.dashboard-heading h1{font-size:70px;letter-spacing:-2.5px;margin-bottom:8px}.dashboard-heading p{font-size:28px;line-height:1.4}.dashboard-heading{margin-bottom:28px}.training-panel .chart{height:270px}.panel-heading h2{font-size:26px}.training-panel>.site-button{width:min(356px,100%);min-height:56px;font-size:18px}.mode-row{padding:22px}.mode-row .mode-icon{width:60px;height:60px}.mode-row .site-button{min-height:54px}.learning-panel>.site-button{min-height:54px}.learning-panel{padding:30px}.learning-panel h2{font-size:25px!important}.learning-panel>p:nth-of-type(2){font-size:18px}.arena-panel{padding:28px}.arena-panel dd{font-size:34px}.arena-panel dl>div{padding:18px 0}}
#mission-board,#mission-controls,#mission-feedback{max-width:820px;margin-left:auto;margin-right:auto}
/* Native ArenaStyle: rounded glass surfaces and instrument-based competition. */
:root{--bg:#f7faff;--line:#e3eaf7}
.phone{background:radial-gradient(ellipse at 95% 5%,#194de611,transparent 52%),radial-gradient(ellipse at 0 75%,#9d229e08,transparent 55%),var(--bg)}
.phone .card,.training-panel,.learning-panel,.arena-panel,.mode-row{border-radius:24px;border-color:#dfe7f7;background:#ffffffd9;box-shadow:0 8px 24px #194de608}
.phone .primary,.phone .site-button{border-radius:26px;background:linear-gradient(125deg,#194de6,#2945c4);box-shadow:0 5px 12px #194de622;justify-content:center;gap:10px;min-height:52px}
.phone .primary svg,.native-text-button svg{width:20px;height:20px;flex-shrink:0}.phone .chart{border-radius:18px}.dashboard-heading h1{font-size:clamp(38px,4vw,54px);letter-spacing:-1.7px}.dashboard-heading p{font-size:18px}
.compete-layout{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(320px,.9fr);gap:40px;max-width:1120px;margin:auto}.compete-main,.compete-duels{min-width:0}.compete-heading{padding:24px;border-radius:28px;background:linear-gradient(135deg,#194de62e,#9d229e1f);margin-bottom:26px}.compete-heading h1{font-size:42px;line-height:1.05;letter-spacing:-1.5px;margin:16px 0 14px}.compete-heading p{display:flex;align-items:center;gap:10px;font-size:14px;color:var(--blue);line-height:1.5;margin:0}.compete-heading p svg{width:20px;height:20px;flex-shrink:0}.compete-layout p,.home-sprints>p{font-size:14px;line-height:1.6;color:var(--muted)}
.native-section-label{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:22px 0 14px}.native-section-label h2{font-size:21px!important;letter-spacing:-.5px!important;line-height:1.2!important;margin:0!important}.native-section-label>span{font-size:11px;color:var(--muted);text-align:right}.native-rush-stage{padding:24px;border-radius:32px;background:linear-gradient(145deg,#fff,#e0edff 55%,#f7e8fa);border:1.5px solid #fff;box-shadow:0 12px 30px #194de618}.rush-stage-label{display:flex;align-items:center;justify-content:space-between;gap:12px}.rush-stage-label>span:first-child{display:flex;align-items:center;gap:7px;font-size:11px;font-weight:750;letter-spacing:1.8px;text-transform:uppercase;color:var(--blue)}.rush-stage-label>span>svg{width:17px;height:17px}.rush-hearts{display:flex;gap:5px;color:var(--magenta)}.rush-hearts svg{width:18px;height:18px;stroke:currentColor;stroke-width:1.5;fill:transparent}.rush-hearts svg.full{fill:currentColor}.rush-stage-instruments{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:14px 0}.rush-stage-instruments>div:first-child>strong{display:block;font-size:80px;font-weight:300;letter-spacing:-5px;line-height:1.1}.rush-stage-instruments>div:first-child>span{font-size:12px;color:var(--muted)}
.instrument-dial{position:relative;width:124px;height:124px;flex-shrink:0;color:var(--ink)}.instrument-dial>svg{position:absolute;width:100%;height:100%;inset:0}.instrument-dial line{stroke:var(--blue);stroke-width:1;opacity:.14}.instrument-dial line.lit{opacity:.85}.instrument-dial line:nth-child(5n+1){stroke-width:1.5}.instrument-dial circle{stroke:#fff;fill:none}.instrument-dial>div{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px}.instrument-dial b{font:500 42px ui-monospace,SFMono-Regular,monospace;letter-spacing:-2px}.instrument-dial small{font:600 9px ui-monospace,monospace;text-transform:uppercase;letter-spacing:2px}.native-rush-stage .chart{height:130px!important;background:#ffffff80;border:0;border-radius:14px}.native-rush-stage .legend{display:none}.rush-caption{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:16px 0;font-size:14px;font-weight:550}.rush-caption small{font:8px ui-monospace,monospace;text-transform:uppercase;color:var(--muted)}.native-rush-stage>.primary{margin:0}.native-rush-stage>p{font-size:11px;line-height:1.5;margin:16px 0 0}
.compete-metrics{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:18px 0}.compete-metrics>div{display:flex;flex-direction:column;align-items:flex-start;gap:9px;background:#ffffffb8;border:1px solid #e1e9f8;border-radius:20px;padding:18px;box-shadow:0 8px 20px #194de607}.compete-metrics>div>svg{width:22px;height:22px;color:var(--blue)}.compete-metrics strong{font-size:26px;font-weight:700;letter-spacing:-.6px;line-height:1.1;font-variant-numeric:tabular-nums}.compete-metrics>div>span:last-child{font-size:11px;color:var(--muted)}
.native-link-row{display:flex;align-items:center;gap:12px;width:100%;min-height:60px;padding:18px;border:1px solid #e1e9f8;border-radius:20px;background:#ffffffc9;color:var(--blue);font-weight:600;font-size:14px;text-align:left}.native-link-row svg{width:21px;height:21px;flex-shrink:0}.native-link-row svg:last-child{margin-left:auto;width:17px}.sprint-section{margin-top:28px}.sprint-cards{display:grid;grid-template-columns:1fr 1fr;gap:12px}.sprint-card{position:relative;display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:12px;padding:20px;border-radius:22px;background:#194de60f;border:1px solid #194de60a;min-width:0}.sprint-card>svg:first-child{width:26px;height:26px;color:var(--blue)}.sprint-card>strong{font-size:19px;letter-spacing:-.4px}.sprint-card>span,.sprint-card>small{font-size:12px;color:var(--muted);line-height:1.5}.sprint-card>svg:last-child{position:absolute;right:18px;top:24px;width:16px;height:16px;color:var(--blue)}.native-help{font-size:11px!important;line-height:1.6!important;color:var(--muted);margin:14px 0 0}.home-sprints{margin-top:30px;max-width:100%}
.invite-panel,.lobby-panel,.native-match{border:1px solid #e0e8f7;border-radius:24px;padding:22px;background:#ffffffce;box-shadow:0 8px 22px #194de607;margin:18px 0}.invite-panel h3,.lobby-panel h3{margin:0;font-size:19px;letter-spacing:-.4px}.native-text-button{display:inline-flex;align-items:center;gap:8px;min-height:44px;color:var(--blue);font-size:13px;font-weight:600;padding:8px 0}.your-handle{font-size:11px!important;overflow-wrap:anywhere}.your-handle strong{font-family:ui-monospace,monospace}.invite-panel label{display:block;font-size:12px;margin:20px 0 8px}.invite-panel input{width:100%;padding:15px;margin:0 0 16px;border-radius:12px!important}.invite-panel .primary{margin:0}.invite-panel #invite-message:empty{display:none}.lobby-title{display:flex;align-items:center;gap:12px}.lobby-title>svg{width:23px;height:23px;color:var(--blue)}#lobby-counts{margin:18px 0}.lobby-numbers{display:flex;gap:28px;font-size:12px;color:var(--muted)}.lobby-numbers strong{font-size:28px;display:block;color:var(--ink);font-variant-numeric:tabular-nums}.lobby-choice{display:flex;align-items:center;gap:12px;font-size:13px;min-height:44px;line-height:1.5}.lobby-choice input{width:20px;height:20px;accent-color:var(--blue);flex-shrink:0}.available-player{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;border-top:1px solid var(--line);padding:16px 0;text-align:left;font-size:12px;overflow-wrap:anywhere}.available-player b{display:flex;align-items:center;gap:5px;color:var(--blue);font-weight:600;white-space:nowrap}.available-player svg{width:16px;height:16px}.native-match>div{display:flex;justify-content:space-between;align-items:center;gap:16px}.native-match>div>strong{font-size:24px;font-variant-numeric:tabular-nums}.native-match .primary{margin:0}.empty-matches{padding:30px 16px;text-align:center}.empty-matches>svg{width:40px;height:40px;color:var(--blue)}.empty-matches h3{font-size:19px;letter-spacing:-.3px}.empty-matches p{max-width:290px;margin:auto}.compete-duels>.native-section-label:first-child{margin-top:0}
.rush-play-hud{margin:14px 0 20px}.rush-play-hud>div:first-child{display:flex;align-items:center;justify-content:space-between}.rush-mode-label{font-size:13px;color:var(--muted);font-weight:600}.rush-clock-row{display:flex;align-items:center;justify-content:space-between;margin-top:8px}.rush-clock-row .instrument-dial{width:96px;height:96px}.rush-clock-row .instrument-dial b{font-size:25px;letter-spacing:-1px}.rush-clock-row .instrument-dial small{font-size:7px;letter-spacing:1px}.solved-count{display:flex;align-items:baseline;gap:9px}.solved-count strong{font-size:36px;letter-spacing:-1px;font-variant-numeric:tabular-nums}.solved-count span{font-size:12px;color:var(--muted)}.phone .game .game-head button{min-height:44px;min-width:44px}.phone .game .question{font-size:20px;font-weight:600;line-height:1.45}.phone .option{font-size:15px;min-height:52px;border-radius:18px}.phone .game .section-head h2{font-size:26px!important}.phone .game .section-head>span{font:10px ui-monospace,monospace;white-space:nowrap;color:var(--muted)}
.sprint-clock{display:flex;justify-content:space-between;align-items:center;padding:18px 0 22px;max-width:820px;margin:auto;gap:16px}.sprint-clock>div{display:flex;flex-direction:column;gap:7px}.sprint-clock>div:last-child{text-align:right}.sprint-clock span{font:10px ui-monospace,monospace;color:var(--muted);letter-spacing:1px}.sprint-clock b{font-size:45px;font-weight:300;font-variant-numeric:tabular-nums;letter-spacing:-2px;line-height:1}.sprint-clock strong{font-size:32px;font-weight:500;font-variant-numeric:tabular-nums}.sprint-progress{height:4px;background:#194de617;border-radius:4px;max-width:820px;margin:0 auto 24px}.sprint-progress i{display:block;height:100%;background:var(--blue);border-radius:4px}
@media(min-width:1000px){.phone .screen{padding-top:32px!important}.home-sprints .sprint-cards{max-width:760px}.dashboard-heading h1{font-size:54px}.dashboard-heading p{font-size:19px}}
@media(max-width:800px){.compete-layout{grid-template-columns:1fr;max-width:560px;gap:34px}.compete-heading h1{font-size:36px}.compete-duels>.native-section-label:first-child{margin-top:0}.compete-layout p{font-size:14px}}
@media(max-width:600px){.compete-heading{padding:22px}.compete-heading h1{font-size:34px;letter-spacing:-1px}.compete-heading p{font-size:12px}.native-rush-stage{padding:22px}.rush-stage-instruments>div:first-child>strong{font-size:72px}.rush-stage-instruments{gap:8px}.rush-stage-instruments .instrument-dial{width:112px;height:112px}.rush-stage-instruments>div:first-child>span{font-size:10px}.rush-caption{font-size:12px}.native-section-label h2{font-size:20px!important}.native-section-label>span{font-size:10px}.sprint-card{padding:18px 15px;gap:10px}.sprint-card>strong{font-size:17px}.sprint-card>span,.sprint-card>small{font-size:11px}.compete-layout{gap:30px}.compete-metrics strong{font-size:25px}.lobby-panel,.invite-panel{padding:20px}.phone>nav{background:#ffffffd9;border:1px solid #e0e8f7;border-radius:26px;width:calc(100% - 28px);margin:0 14px 6px;box-shadow:0 8px 20px #194de608;padding:5px 5px max(5px,env(safe-area-inset-bottom));min-height:62px}.phone>nav .ui-icon{width:21px;height:21px}.phone .screen{padding-bottom:26px!important}.phone .game .section-head h2{font-size:23px!important}.phone .game .chart{height:230px}.phone .primary{padding:16px;font-size:14px}}
@media(prefers-reduced-transparency:reduce){.phone,.phone .card,.native-match,.invite-panel,.lobby-panel,.compete-metrics>div{background:#fff}}
@media(hover:hover){.sprint-card:hover,.native-link-row:hover,.available-player:hover{background:#194de617}}
/* Route headings receive focus for screen readers, not a control-shaped outline. */
#screen h1[tabindex="-1"]:focus,#screen h2[tabindex="-1"]:focus{outline:none}
#screen>.game-head,#screen>#answers,#screen>#round-feedback,#screen>.question{max-width:820px;margin-left:auto;margin-right:auto}
/* App navigation participates in layout so it can never cover an answer. */
.phone>nav{position:static;inset:auto;transform:none;flex:0 0 auto}
.app-install-shortcut{display:none;align-items:center;gap:7px;min-height:44px;padding:8px 12px;border:1px solid var(--line);border-radius:24px;color:var(--blue);font-size:13px;font-weight:650;white-space:nowrap;margin-left:auto}.app-settings-shortcut{display:none}
.app-install-shortcut svg{width:18px;height:18px}.arena-installed .app-install-shortcut{display:none}
.puzzle-allowance{display:flex;align-items:center;justify-content:space-between;gap:12px;max-width:1120px;margin:0 auto 22px;padding:12px 16px;border:1px solid var(--line);border-radius:18px;background:#ffffffb8;color:var(--muted);font-size:12px}.puzzle-allowance button{min-height:32px;color:var(--blue);font-size:12px;font-weight:650;text-align:right}.allowance-gate{max-width:520px;margin:32px auto;padding:28px;border:1px solid var(--line);border-radius:28px;background:linear-gradient(145deg,#fff,#edf3ff)}.allowance-gate h2{font-size:36px;margin:22px 0 16px}.allowance-gate .primary,.allowance-gate .site-button{margin-top:20px;width:100%}.allowance-complete{font-size:14px;line-height:1.6;padding:16px;border-radius:18px;background:#194de60c;color:var(--blue)}
.install-sheet{box-sizing:border-box;width:min(440px,calc(100% - 24px));max-height:calc(100dvh - 32px);max-height:calc(var(--arena-height,100dvh) - 32px);overflow-y:auto;overscroll-behavior:contain;margin:auto;padding:24px;border:1px solid #fff;border-radius:32px;background:linear-gradient(155deg,#fff,#eff4ff 70%,#f7eafa);color:var(--ink);box-shadow:0 24px 90px #10244735;font-family:inherit}
.install-sheet::backdrop{background:#10244770;backdrop-filter:blur(8px)}.install-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.install-close{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:#194de60a;color:var(--muted);font-size:28px}.install-app-icon{width:88px;height:88px;border-radius:24px;background:#fff;box-shadow:0 8px 22px #194de614;display:grid;place-items:center;margin:12px 0 22px}.install-app-icon img{border-radius:18px}.install-sheet h2{font-size:36px;line-height:1.08;letter-spacing:-1.2px;margin:0 0 14px}.install-lead{font-size:14px;line-height:1.6;color:var(--muted);margin:0 0 18px}.install-benefits{display:flex;gap:18px;font-size:11px;color:var(--blue);font-weight:650;margin-bottom:22px}.install-benefits span{display:flex;align-items:center;gap:6px}.install-benefits svg{width:17px;height:17px}.install-platforms{display:flex;padding:4px;border:1px solid #dbe4f4;background:#fff7;border-radius:18px;margin-bottom:18px}.install-platforms button{flex:1;min-height:44px;border-radius:14px;font-size:13px;color:var(--muted)}.install-platforms button[aria-pressed=true]{background:#fff;color:var(--blue);font-weight:700;box-shadow:0 3px 8px #194de610}.install-sheet .primary{border-radius:24px;justify-content:center;gap:8px;min-height:50px;font-size:14px;margin-bottom:18px}.install-sheet .primary svg{width:20px;height:20px}.install-steps{counter-reset:install;list-style:none;margin:0;padding:0}.install-steps li{position:relative;padding:0 0 18px 38px;font-size:13px;line-height:1.5}.install-steps li:before{counter-increment:install;content:counter(install);position:absolute;left:0;top:0;display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#194de610;color:var(--blue);font-size:11px;font-weight:750}.install-steps b{display:block;margin:2px 0 4px}.install-steps span{color:var(--muted);font-size:12px}.install-sheet #install-message{font-size:11px;line-height:1.6;color:var(--muted);margin:0 0 14px}.install-continue{display:block;width:100%;min-height:48px;border-radius:24px;color:var(--blue);background:#ffffffa8;font-size:14px;font-weight:650}.install-sheet button:focus-visible{outline:3px solid var(--magenta);outline-offset:2px}
@media(max-width:800px),(max-height:500px) and (max-width:1000px),(hover:none) and (pointer:coarse){
 html,body{height:var(--arena-height,100dvh);min-height:0;overscroll-behavior:none}body{display:flex;flex-direction:column}
 .arena-header{display:flex;height:auto;min-height:60px;flex:0 0 auto;gap:10px;padding:calc(8px + env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) 8px max(16px,env(safe-area-inset-left));background:#f7faff;border-bottom:1px solid #e3eaf7}
 .arena-header nav{display:none}.arena-header .arena-brand{font-size:18px;gap:8px;white-space:nowrap}.arena-header .arena-mark{width:28px;height:28px}.arena-header .account-link{display:none}
 .app-install-shortcut{display:inline-flex;font-size:11px;padding:6px 10px;min-height:40px}.app-install-shortcut svg{width:16px;height:16px}.app-settings-shortcut{display:grid;place-items:center;border:1px solid var(--line);border-radius:50%;font-size:12px;letter-spacing:1px;width:40px;height:40px;color:var(--blue)}.arena-installed .app-settings-shortcut{margin-left:auto}
 .workspace{height:auto;min-height:0;flex:1 1 0;width:100%;padding:0}.phone{height:100%;min-height:0;width:100%;border-radius:0}
 .phone .screen{width:100%;height:auto;min-height:0;flex:1 1 0;scroll-padding-block:16px;padding:22px max(18px,env(safe-area-inset-right)) 28px max(18px,env(safe-area-inset-left))!important;-webkit-overflow-scrolling:touch}
 .phone>nav{display:flex;position:static;inset:auto;align-items:stretch;justify-content:space-around;width:100%;height:auto;min-height:66px;flex:0 0 auto;margin:0;border-radius:0;border:0;border-top:1px solid #dfe7f7;box-shadow:0 -3px 16px #194de605;background:#fdfdff;padding:6px max(10px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left));z-index:1;backdrop-filter:none}
 .phone>nav button{flex:1;max-width:120px;min-height:48px;width:auto;gap:5px;padding:5px 0;font-size:10px;line-height:1.2;border-radius:16px}.phone>nav button.active{background:#194de60a}.phone>nav .ui-icon{width:22px;height:22px}
 body:has(#screen .game,#screen #round-exit,#screen #mission-back,#screen .skill-activity,#screen #duel-timer) .phone>nav,.arena-keyboard .phone>nav{display:none}
 body:has(#screen .game,#screen #round-exit,#screen #mission-back,#screen .skill-activity,#screen #duel-timer) .arena-header{display:none}
 body:has(#screen .game,#screen #round-exit,#screen #mission-back,#screen .skill-activity,#screen #duel-timer) .phone .screen{padding-top:calc(14px + env(safe-area-inset-top))!important;padding-bottom:calc(24px + env(safe-area-inset-bottom))!important}
 .phone .game-head{gap:12px;margin-bottom:16px}.phone .game-head button{min-height:44px;min-width:44px;border-radius:22px;background:#194de60a;padding:9px 13px;font-size:12px;white-space:nowrap}
 .phone .game .chart{height:clamp(190px,28dvh,260px)}.phone .game .question,.phone>.screen>.question{font-size:17px;line-height:1.5}.phone .option{min-height:52px;padding:15px;font-size:14px}.phone .skip{min-height:44px;padding:10px;margin:12px auto;font-size:13px}
 .dashboard-heading h1{font-size:36px;letter-spacing:-1.3px}.dashboard-heading p{font-size:15px}.compete-heading{margin-bottom:22px}.compete-heading h1{font-size:32px}.phone .section-head{gap:10px}.phone .section-head h2{font-size:22px!important;line-height:1.2}.phone .card p{font-size:13px}.phone .lesson p{font-size:15px;line-height:1.7}.phone select{font-size:16px;min-height:48px}
 .install-sheet{padding:20px;border-radius:28px}.install-app-icon{width:72px;height:72px;margin:4px 0 18px;border-radius:20px}.install-app-icon img{width:60px;height:60px}.install-sheet h2{font-size:32px}.install-lead{font-size:13px;margin-bottom:16px}.install-benefits{margin-bottom:18px}.install-steps li{padding-bottom:16px}
 .allowance-gate{margin:8px auto;padding:22px}.allowance-gate h2{font-size:30px;margin:16px 0 12px}.allowance-gate .subtitle{font-size:14px}.puzzle-allowance{padding:8px 12px;margin-bottom:20px;font-size:11px}.puzzle-allowance button{font-size:11px}
}
@media(max-height:500px) and (orientation:landscape){.arena-header{min-height:48px}.phone .screen{padding-top:14px!important}.phone .game .chart{height:180px}.install-sheet h2{font-size:28px}}
@media(max-width:600px){.compete-heading{padding:18px;margin-bottom:18px}.compete-heading h1{font-size:30px;margin:14px 0 12px}.compete-heading p{font-size:11px}.native-rush-stage{padding:20px}.rush-stage-instruments{padding:8px 0}.rush-stage-instruments>div:first-child>strong{font-size:64px}.rush-stage-instruments .instrument-dial{width:96px;height:96px}.native-rush-stage .chart{height:96px!important}.rush-caption{margin:12px 0}.native-rush-stage>p{margin-top:12px}.allowance-gate .native-help{font-size:11px}}

.install-sheet h2:focus{outline:none}
.mission-result{background:#194de60d;border:1px solid #d5e1f9;border-radius:20px;padding:16px;color:var(--blue);font-size:14px;line-height:1.6}#screen[data-feedback] .mission-result{animation:answer-in .23s ease-out}
.phone .option.answer-selected{background:#e3ebff;border-color:var(--blue);opacity:1}
.phone .chart-toolhead .drawing-cue{display:block;font-size:12px;min-height:0;line-height:1.5;margin:8px 0 2px;font-weight:400}.phone .chart-toolhead .drawing-cue.ready{font-weight:650}.chart-toolhead:has(.drawing-cue.ready) #next-stroke{font-weight:750;background:#194de610;border-radius:16px;padding:8px 12px}
/* Render the final navigation in HTML, while the game connects. */
#app-loading{min-height:50dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:var(--muted)}#app-loading .arena-mark{width:50px;height:50px;color:var(--blue)}#app-loading h1{font-size:32px;color:var(--ink);letter-spacing:-1px;margin:20px 0 8px}#app-loading p{font-size:13px}.arena-booting .phone>nav{pointer-events:none;opacity:.65}
button,a,summary,input[type=checkbox]{touch-action:manipulation;-webkit-tap-highlight-color:transparent}button,summary{-webkit-user-select:none;user-select:none}button:not(:disabled):active,.site-button:active{transform:scale(.975);filter:brightness(.95)}button{transition:background-color .12s,border-color .12s,transform .08s}.answer-pending{color:var(--blue);padding:16px;border-radius:18px;background:#194de60d;font-size:14px}.answer-pending:before{content:'';display:inline-block;width:8px;height:8px;background:currentColor;border-radius:50%;margin-right:10px;animation:answer-pulse .6s ease-in-out infinite alternate}#screen[data-feedback=correct] .feedback{animation:answer-in .23s ease-out}#screen[data-feedback=wrong] .feedback{animation:answer-in .23s ease-out}.drawing-cue{font-size:13px;line-height:1.5;color:var(--muted);min-height:40px;margin:12px 0}.drawing-cue.ready{color:var(--blue);font-weight:600}.stroke-task .stroke-status{display:grid;place-items:center;flex:0 0 23px;height:23px;border:2px solid #9baac5;border-radius:50%;font:700 13px system-ui;color:#fff}.stroke-task.selected .stroke-status{border-color:var(--blue)}.stroke-task .stroke-status.complete{border-color:var(--blue);background:var(--blue)}.phone .stroke-task{min-height:58px}.draw-top-nav button{min-height:44px}.drawing-chart{touch-action:none}
.learn-heading h2{font-size:36px;line-height:1.12;letter-spacing:-1.1px;margin:18px 0 24px}.learn-overview{display:flex;align-items:center;gap:18px;padding:18px;border:1px solid #e1e9f8;background:#ffffffc4;border-radius:26px;margin-bottom:20px}.learn-overview .dial{width:98px;height:98px;flex-shrink:0;margin:0}.learn-overview .dial b{font-size:30px}.learn-overview .dial small{font-size:8px}.learn-overview h3{font-size:16px;line-height:1.3;margin:0 0 8px}.learn-overview p{font-size:13px;color:var(--muted);margin:0 0 9px}.learn-overview small{font-size:11px;line-height:1.5;color:var(--muted);display:block}.learn-next{display:flex;align-items:center;justify-content:space-between;gap:18px;width:100%;padding:20px;border:1px solid #dbe5f9;border-radius:24px;background:#fff9;text-align:left}.learn-next>span{display:flex;flex-direction:column;gap:9px}.learn-next b{font-size:16px;color:var(--ink);line-height:1.4}.learn-next small{font-size:12px;color:var(--muted)}.learn-next>.ui-icon{flex-shrink:0;color:var(--blue);width:22px;height:22px}.learn-tools{display:flex;gap:16px;margin:14px 0 24px}.learn-tools .skill-link{font-size:12px;width:auto;flex:1}.course-chapters{display:grid;gap:14px;max-width:820px;margin:auto}.course-chapter{background:#ffffffc9;border:1px solid #e1e9f8;border-radius:24px;overflow:hidden}.course-chapter>summary{list-style:none;cursor:pointer;padding:20px}.course-chapter>summary::-webkit-details-marker{display:none}.chapter-meta{display:flex;align-items:center;gap:14px}.chapter-number{font:500 21px ui-monospace,monospace;color:var(--blue)}.chapter-meta .tag{margin-left:auto}.chapter-chevron{color:var(--blue);font-size:21px;line-height:1;transition:transform .15s}.course-chapter[open] .chapter-chevron{transform:rotate(180deg)}.course-chapter h3{font-size:19px;margin:14px 0;font-weight:650;letter-spacing:-.3px}.chapter-progress{display:flex;align-items:center;gap:12px}.chapter-progress .progress{flex:1;margin:0;height:4px}.chapter-progress small{font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums}.chapter-lessons{padding:0 20px 12px}.chapter-lessons>p{font-size:13px;line-height:1.6;color:var(--muted);margin:0 0 14px}.chapter-lessons .lesson-option{display:flex;gap:12px;align-items:center;padding:16px 0;border:0;border-top:1px solid #e3eaf7;border-radius:0;background:none;box-shadow:none;margin:0;min-height:64px}.chapter-lessons .lesson-option>span:nth-child(2){flex:1}.chapter-lessons .lesson-option b{font-size:13px;line-height:1.5;font-weight:550}.chapter-lessons .lesson-option small{font-size:11px;line-height:1.5;margin-top:5px}.lesson-state{display:grid;place-items:center;width:21px;height:21px;flex:0 0 21px;border:1.5px solid var(--blue);color:var(--blue);border-radius:50%;font-size:11px}.lesson-state.complete{background:var(--blue);color:#fff}.lesson-chevron{font-size:20px;color:var(--muted)}
@media(min-width:801px) and (hover:hover){.learn-heading,.learn-overview,.learn-next,.learn-tools,#screen:has(.course-chapters)>.section-head,#screen:has(.course-chapters)>.subtitle{max-width:820px;margin-left:auto;margin-right:auto}.learn-heading h2{font-size:42px}}
@keyframes answer-pulse{to{opacity:.3}}@keyframes answer-in{from{opacity:.4;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){button,.chapter-chevron{transition:none}.answer-pending:before,#screen[data-feedback] .feedback{animation:none}button:not(:disabled):active,.site-button:active{transform:none}}
.install-sheet{padding:0;overflow:hidden}.install-sheet[open]{display:flex;flex-direction:column}.install-scroll{padding:24px 24px 8px;overflow-y:auto;min-height:0;overscroll-behavior:contain;scrollbar-width:thin}.install-footer{flex:0 0 auto;padding:12px 24px 20px;background:#f4f5ff;border-top:1px solid #e3eaf7}.install-footer .install-continue{background:#fff}
@media(max-width:800px),(max-height:500px) and (max-width:1000px),(hover:none) and (pointer:coarse){.install-sheet{padding:0}.install-scroll{padding:20px 20px 8px}.install-footer{padding:12px 20px 16px}}
.trade-workspace{box-sizing:border-box;max-width:1120px;overflow:hidden;margin:20px auto;border:1px solid #cad8ef;border-radius:22px;background:#fff;box-shadow:0 14px 40px #194de60b}
.desk-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:18px 22px;background:#eef3ff;border-bottom:1px solid #dce5f5}
.desk-toolbar>span:first-child{display:flex;flex-direction:column;gap:5px}.desk-toolbar b{font-size:16px;letter-spacing:.5px}.desk-toolbar small{font-size:12px;color:var(--muted)}
.desk-live-label{padding:7px 10px;border:1px solid #becff5;border-radius:8px;color:var(--blue);font:10px monospace;letter-spacing:1px}
.desk-grid{display:grid;grid-template-columns:minmax(0,1fr) 255px}.desk-chart{min-width:0;padding:18px 14px}.desk-chart-heading{display:flex;justify-content:space-between;gap:12px;padding:0 8px 12px;color:var(--muted);font-size:11px}.phone .trade-workspace .chart{width:100%;height:auto!important;border:0;background:#fff}.trade-workspace .legend{font-size:11px;line-height:1.6}.trade-workspace .chart-data{font-size:11px}
.desk-ticket{min-width:0;padding:12px 16px;background:#f6f8ff;border-left:1px solid #dce5f5}.desk-ticket .card{margin:0;padding:10px 0;border:0;box-shadow:none;background:transparent}.desk-ticket .card .tag{font-size:9px;letter-spacing:.7px}.desk-ticket dt,.desk-ticket dd{font-size:12px}.desk-ticket .native-help{font-size:11px;line-height:1.6}
.phone .game:has(.trade-workspace){max-width:1120px}.phone .lesson:has(.trade-workspace){max-width:1120px}
.trade-workspace.order-checked{border-color:#245bff}.trade-workspace.order-checked .desk-live-label{background:#245bff;color:white;animation:ticket-confirm .35s ease-out}
@keyframes ticket-confirm{from{transform:scale(.9);opacity:.5}to{transform:scale(1);opacity:1}}
.run-learning-bridge{margin:24px 0;padding:22px;background:linear-gradient(135deg,#e6eeff,#f8effc);border:1px solid #d6e1f5;border-radius:22px}.run-learning-bridge h3{font-size:22px;letter-spacing:-.4px;margin:12px 0 18px}.run-lesson-link{display:flex;flex-direction:column;align-items:flex-start;gap:8px;text-align:left;width:100%;padding:16px;margin-top:10px;border:1px solid #d9e3f5;border-radius:14px;background:#ffffffc9;min-height:64px}.run-lesson-link b{font-size:15px}.run-lesson-link span{font-size:12px;color:var(--blue)}.level-label{font-size:11px;line-height:1.4;text-align:right;max-width:125px}.puzzle-allowance{gap:12px}.puzzle-allowance>span{font-size:12px;line-height:1.5}
@media(max-width:700px){.desk-grid{grid-template-columns:1fr}.desk-ticket{border-left:0;border-top:1px solid #dce5f5;padding:12px 18px}.desk-ticket .card>dl{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}.desk-ticket .card>dl>div{gap:8px!important;flex-direction:column;margin:8px 0!important}.desk-ticket dd{text-align:left!important;font-weight:650}.desk-toolbar{padding:16px}.desk-chart{padding:15px 8px}.desk-live-label{font-size:9px}.run-learning-bridge{padding:18px}.run-learning-bridge h3{font-size:21px}}
@media(prefers-reduced-motion:reduce){.trade-workspace.order-checked .desk-live-label{animation:none}}

.phone .chart-toolhead{position:sticky;top:0;z-index:4;box-shadow:0 4px 14px #1024470a;background:#edf4ff}.phone .chart-toolhead .chart-action-row .primary{min-height:44px;margin:0}.phone .chart-toolhead .chart-action-row button{touch-action:manipulation}.phone .chart-toolhead .chart-action-reason p{font-size:12px}.phone .chart-toolhead .drawing-cue{margin:5px 0 0}.phone .chart-toolhead .draw-top-nav{gap:8px}.phone .chart-toolhead .draw-top-nav button{min-height:36px;padding:4px 0}.phone .chart-toolhead .draw-top-nav button:disabled{opacity:.35}
