/* Shared interface components. Layouts live in the lower-priority layouts layer. */
*{box-sizing:border-box}[hidden]{display:none!important}body{font-family:var(--font);color:var(--ink);background:var(--bg)}h1,h2,h3{font-family:var(--display);font-weight:600;letter-spacing:0;line-height:1.12}h2{font-size:32px}button,input,select{font-family:var(--font)}a,button,input,select,summary{touch-action:manipulation}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid var(--accent);outline-offset:4px}button:disabled{cursor:not-allowed;opacity:.45}button:active{transform:none}.skip-link{position:fixed;left:16px;top:-80px;z-index:100;padding:12px 20px;background:var(--paper);color:var(--bg)}.skip-link:focus{top:12px}.site-header{height:84px;gap:32px;border-bottom:1px solid var(--line)}.site-header nav{gap:28px}.site-header nav a{min-height:44px;font-size:16px;font-weight:600}.site-header nav a[aria-current=page]:after{height:3px;border-radius:0}.site-header .brand{margin-right:auto}.site-header .join{margin-left:16px;white-space:nowrap}.ui-button{min-height:var(--control-height);display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 20px;border:1px solid var(--control-line);border-radius:var(--radius);font:600 16px/1.25 var(--font);text-decoration:none;text-align:center;cursor:pointer;transition:background-color var(--motion-fast),border-color var(--motion-fast),color var(--motion-fast);box-shadow:none;background:transparent;color:var(--ink)}.ui-button-primary{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}.ui-button-primary:hover:not(:disabled){background:var(--accent-hover);border-color:var(--accent-hover);color:var(--on-accent)}.ui-button-secondary:hover:not(:disabled){background:var(--surface-raised);border-color:var(--muted);color:var(--ink)}.ui-button-icon{width:44px;padding:8px}.ui-field{min-height:44px;width:100%;border:1px solid var(--control-line);border-radius:var(--radius);background:var(--bg);color:var(--ink);padding:10px 12px;font:400 16px/1.35 var(--font)}select.ui-field{padding-right:32px}input[type=checkbox]{accent-color:var(--accent);width:18px;height:18px}.field-hint,.field-error{font-size:13px;line-height:1.5}.field-hint{color:var(--muted)}.field-error{color:var(--danger)}.field-error:empty{display:none}.segments{border-color:var(--control-line)}.segments button{min-height:40px;font:600 14px var(--font);transition:background-color var(--motion-fast)}.segments button[aria-pressed=true]{background:var(--accent);color:var(--on-accent)}.tabs{gap:12px}.tabs button{min-height:48px;padding:0 16px 14px;font-size:18px;gap:10px}.tabs button[aria-pressed=true]:after{height:3px}.routine h1{font-size:34px}.routine>p{font-size:16px;line-height:1.5}.routine legend{font-size:14px;font-weight:600;margin-bottom:8px}.routine .primary{margin-top:24px}.playbook h2,.recent h2{font-size:32px}.story h3{font-family:var(--font);font-size:23px;font-weight:600}.lore-intro h1,.ladder-intro h1{font-size:52px;letter-spacing:0}.editor-note{transform:none;border-radius:var(--radius)}.player-index strong{font-family:var(--display);font-size:30px;letter-spacing:0}.player-index a>span:last-child{font-size:13px}.study-heading h2{font-size:64px;letter-spacing:0}.study-thesis h3{font-size:32px;letter-spacing:0}.mechanics li,.evidence-note p,.study-thesis p,.study-practice>p{font-size:16px;line-height:1.65}.study-practice h3{font-size:32px}.study-practice>small,.study-sources,.spray-note{font-size:13px}.study-sources summary{min-height:44px;display:list-item;padding:12px 0}.review-cue p{font-size:22px}.category-tabs button{min-height:48px;font:600 16px var(--font)}.category-tabs button[aria-pressed=true]{color:var(--accent)}.leaderboard-table{font-size:15px}.dojo-page{padding:0;max-width:none;font:16px/1.5 var(--font)}.dojo-header{height:72px;padding:0 28px;gap:24px;background:var(--bg);border-bottom:1px solid var(--line)}.dojo-header .brand{margin-right:auto}.dojo-header #mode-label,.dojo-header #fps-display{font:12px var(--mono);color:var(--muted)}.dojo-page .panel{width:min(440px,calc(100% - 32px));padding:28px;background:var(--panel);border:1px solid var(--line);border-radius:8px;box-shadow:0 16px 60px #0005;max-height:calc(100dvh - 110px);overflow:auto}.dojo-page .panel h1{font-size:38px;letter-spacing:0;margin:8px 0 12px}.dojo-page .panel h2{font-size:28px}.dojo-page .panel p{color:var(--muted);font-size:14px;line-height:1.55}.dojo-page .eyebrow{color:var(--accent);font:600 12px var(--mono);letter-spacing:1.5px}.panel-heading{margin-bottom:24px}.dojo-page .panel label{display:block;font:600 14px var(--font);margin:14px 0 8px}.dojo-page .settings{display:grid;grid-template-columns:1fr 1fr;gap:16px}.dojo-page .panel .check{display:flex;gap:10px;align-items:center;min-height:44px;font-weight:400}.settings-group{border-top:1px solid var(--line);margin-top:20px}.settings-group summary{cursor:pointer;min-height:48px;padding:14px 0;font-weight:600}.settings-content{padding-bottom:8px}.panel-actions{margin-top:24px}.dojo-page .panel .ui-button{width:100%;margin:8px 0 0;font-size:16px;min-height:44px}.dojo-page .panel small{display:block;font-size:12px;color:var(--muted);line-height:1.5}.dojo-page .panel #message{margin:14px 0 6px}.dojo-page #results{width:min(620px,calc(100% - 32px))}.dojo-page #analysis-card{border-top:1px solid var(--line);margin-top:24px;padding-top:20px}.dojo-page #review-path{max-width:100%;height:auto}.dojo-page #hud{font-family:var(--mono);background:var(--bg)}.dojo-page #hint{font-size:10px}.dojo-page #exercise-help{margin:8px 0}.dojo-page #sens-value{float:right;color:var(--muted)}
@media(max-width:1000px){.site-header{gap:16px}.site-header nav{gap:18px}.site-header .brand-name{width:150px}.site-header .join{margin-left:0;padding:10px 14px}.tabs{gap:0}.tabs button{padding-inline:10px;font-size:16px}}
@media(max-width:760px){.site-header{height:auto;min-height:120px;display:grid;grid-template-columns:1fr auto;gap:8px 12px;padding-top:16px}.site-header .brand-name{width:150px}.site-header .brand-symbol{width:24px;height:32px}.site-header nav{grid-column:1/-1;grid-row:2;width:100%;height:48px;display:flex;justify-content:space-between;gap:8px;order:unset}.site-header nav a{font-size:14px}.site-header .join{grid-column:2;grid-row:1;font-size:14px}.lore-intro h1,.ladder-intro h1{font-size:40px}.dojo-header{height:64px;padding:0 16px;gap:12px}.dojo-header .brand-name{width:110px}.dojo-header .brand-symbol{width:22px}.dojo-header #mode-label{display:none}.dojo-header #fps-display{font-size:10px}.dojo-header .ui-button{font-size:13px;padding:8px}.dojo-page .panel{padding:22px;max-height:calc(100dvh - 100px)}.dojo-page .panel h1{font-size:34px}.tabs button{font-size:15px;gap:6px;padding-inline:8px}.tabs button svg{width:19px}.player-index a>span:last-child{font-size:10px}.player-index strong{font-size:23px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
.routine .ui-button{width:100%}.ladder-panel .section-heading{gap:12px}.ladder-panel .section-heading h2{font-size:30px;white-space:nowrap}.ladder-panel .section-heading select{width:140px;min-width:120px;font-size:14px}.ladder-switch button{min-height:36px;padding:6px 12px;font:600 14px var(--font);border-radius:var(--radius)}.ladder-switch button[aria-pressed=true]{background:var(--surface-raised);color:var(--ink)}.dojo-header{top:0;left:0;right:0}.dojo-header .wordmark{display:inline-flex;align-items:center;gap:12px}.dojo-header .brand-symbol{width:28px;height:34px;fill:none;stroke:currentColor;stroke-width:2.1}.dojo-header .brand-name{width:160px;height:26px}.dojo-page .panel{top:calc(50% + 25px);max-height:calc(100dvh - 130px)}.dojo-page .settings-group{margin-top:12px}.dojo-page .panel-heading{margin-bottom:16px}.dojo-page .panel-actions{margin-top:16px}
@media(max-width:760px){.dojo-header .brand-name{width:110px}.dojo-page #hint{display:none}.dojo-page .panel{top:calc(50% + 25px);max-height:calc(100dvh - 100px)}.ladder-panel .section-heading h2{font-size:28px}}
@media(max-width:380px){.site-header{gap:8px}.site-header .brand-name{width:118px}.site-header .wordmark{gap:6px}.site-header .join{font-size:12px;padding:8px 10px}.site-header nav{min-width:0;gap:6px}.site-header nav a{font-size:13px}.category-tabs a{padding-inline:4px}.category-tabs a span{font-size:14px}.ladder-panel .section-heading h2{font-size:25px}.ladder-panel .section-heading select{min-width:105px;width:105px}}
