:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;font-synthesis:none;--background:#f8f8f6;--surface:#fff;--surface-muted:#f1f1ef;--surface-strong:#fff;--text:#171717;--text-muted:#676767;--text-subtle:#9a9a96;--border:#deded9;--border-strong:#bdbdb7;--shadow:0 12px 36px #0000000d;--success:#526b55;--danger:#9e4c4c;--chart-grid:#e2e2dd;--heatmap-high:#deded9;--heatmap-medium:#efefec;--heatmap-low:#b9b9b3;--heatmap-no-data:#f6f6f3;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;line-height:1.5}:root[data-theme=dark]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--background:#171817;--surface:#202221;--surface-muted:#292b2a;--surface-strong:#303331;--text:#f1f1ed;--text-muted:#b3b5ae;--text-subtle:#777b74;--border:#383b38;--border-strong:#555a55;--shadow:0 16px 40px #0003;--success:#9fc4a4;--danger:#e08b8b;--chart-grid:#373b37;--heatmap-high:#545a54;--heatmap-medium:#3e433f;--heatmap-low:#2f332f;--heatmap-no-data:#252725}*{box-sizing:border-box}html{background:var(--background);scrollbar-gutter:stable;min-width:320px}body{background:var(--background);min-width:320px;min-height:100vh;color:var(--text);margin:0}button,select{font:inherit}button,a{-webkit-tap-highlight-color:transparent}a{color:inherit;text-decoration:none}button{cursor:pointer}button:focus-visible,a:focus-visible,select:focus-visible{outline:2px solid var(--text);outline-offset:3px}.app-shell{min-height:100vh}.app-shell-play{--topbar-height:76px;height:100dvh;min-height:0;overflow:hidden}.app-shell-play .app-body{height:calc(100vh - var(--topbar-height));height:calc(100dvh - var(--topbar-height));min-height:0}.topbar{border-bottom:1px solid var(--border);align-items:center;width:100%;min-height:76px;padding:0 4.25vw;display:flex}.brand{letter-spacing:-.045em;margin-right:auto;font-size:1.05rem;font-weight:760}.top-navigation{grid-template-columns:repeat(4,4rem);align-items:center;gap:.5rem;margin-right:clamp(1.5rem,4vw,4.5rem);display:grid}.nav-link{width:4rem;min-height:2.5rem;color:var(--text-muted);justify-content:center;align-items:center;font-size:.88rem;transition:color .16s;display:inline-flex;position:relative}.nav-link:hover,.nav-link.active{color:var(--text)}.nav-link.active:after{background:var(--text);content:"";height:2px;position:absolute;bottom:0;left:0;right:0}.icon-button{width:38px;height:38px;color:var(--text);background:0 0;border:0;border-radius:999px;justify-content:center;align-items:center;padding:0;transition:background .16s;display:inline-flex}.icon-button:hover{background:var(--surface-muted)}.app-body{min-height:calc(100vh - 76px);display:flex}.main-content{width:min(100%,1440px);margin:0 auto;padding:clamp(2rem,4vw,4.25rem) clamp(1rem,4vw,4.5rem) 5rem}.app-shell-play .main-content{width:100%;height:100%;min-height:0;padding:0;overflow:hidden}.page{width:100%}.page-intro{justify-content:space-between;align-items:flex-end;gap:2rem;margin-bottom:2.25rem;display:flex}.page-intro h1,.page-intro h2,.page-intro p{margin:0}.page-intro h1{letter-spacing:-.07em;font-size:clamp(2rem,4vw,3.2rem);line-height:1}.eyebrow,.play-kicker{color:var(--text-subtle);letter-spacing:.15em;text-transform:uppercase;font-size:.67rem;font-weight:740;margin-bottom:.75rem!important}.page-description{max-width:560px;color:var(--text-muted);font-size:.92rem;margin-top:1rem!important}.page-intro-action,.page-actions{flex-wrap:wrap;gap:.65rem;display:flex}.button{border:1px solid #0000;border-radius:8px;justify-content:center;align-items:center;min-height:40px;padding:.6rem .95rem;font-size:.8rem;font-weight:700;transition:background .16s,border-color .16s,transform .16s;display:inline-flex}.button:hover{transform:translateY(-1px)}.button-dark{border-color:var(--text);background:var(--text);color:var(--background)}.button-dark:hover{background:var(--text-muted);border-color:var(--text-muted)}.button-quiet{border-color:var(--border-strong);color:var(--text);background:0 0}.button-quiet:hover{background:var(--surface-muted)}.button-danger{border-color:color-mix(in srgb, var(--danger) 60%, var(--border));color:var(--danger);background:0 0}.button-danger:hover{background:color-mix(in srgb, var(--danger) 9%, transparent)}.text-link,.back-link{color:var(--text-muted);font-size:.8rem;font-weight:700}.text-link:hover,.back-link:hover{color:var(--text)}.back-link{align-items:center;gap:.35rem;margin-bottom:2rem;display:inline-flex}.metric-grid{gap:.8rem;margin-bottom:.8rem;display:grid}.metric-grid-eight,.metric-grid-seven{grid-template-columns:repeat(4,minmax(0,1fr))}.metric-grid-six{grid-template-columns:repeat(6,minmax(0,1fr))}.metric-grid-five{grid-template-columns:repeat(5,minmax(0,1fr))}.metric-grid-four{grid-template-columns:repeat(4,minmax(0,1fr))}.metric-card,.panel,.chart-card,.ranking-card{border:1px solid var(--border);background:var(--surface);box-shadow:var(--shadow);border-radius:12px}.metric-card{min-height:126px;padding:1.2rem 1.35rem}.metric-label,.metric-value,.metric-detail{margin:0}.metric-label{color:var(--text-muted);font-size:.76rem;font-weight:650}.metric-value{letter-spacing:-.06em;text-overflow:ellipsis;white-space:nowrap;margin-top:1rem;font-size:clamp(1.45rem,3vw,2.3rem);font-weight:500;overflow:hidden}.metric-detail{color:var(--text-subtle);margin-top:.25rem;font-size:.7rem}.chart-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:.8rem;margin:2.25rem 0;display:grid}.chart-card{min-width:0;padding:1.2rem 1.35rem .8rem}.chart-card-header,.section-heading{justify-content:space-between;align-items:center;gap:1rem;display:flex}.chart-card-header h2,.section-heading h2,.ranking-card h3,.danger-zone h2{letter-spacing:-.03em;margin:0;font-size:.9rem}.chart-card-header span{color:var(--text-subtle);font-size:.7rem}.chart-container{height:230px;margin-top:.8rem}.chart-container-large{height:310px}.chart-note,.table-note{color:var(--text-subtle);margin:.8rem 0 0;font-size:.74rem}.panel{padding:clamp(1.1rem,2.2vw,1.65rem)}.section-heading{margin-bottom:1.25rem}.data-table{border-collapse:collapse;width:100%;font-size:.79rem}.data-table th{color:var(--text-subtle);text-align:left;text-transform:uppercase;font-size:.68rem;font-weight:700}.data-table th,.data-table td{border-bottom:1px solid var(--border);white-space:nowrap;padding:.85rem .7rem}.data-table th:first-child,.data-table td:first-child{padding-left:0}.data-table th:last-child,.data-table td:last-child{padding-right:0}.data-table tbody tr:last-child td{border-bottom:0}.data-table td{color:var(--text-muted)}.data-table td:first-child,.data-table .prompt-cell,.data-table td strong{color:var(--text)}.prompt-cell{letter-spacing:.12em;font-family:SFMono-Regular,Consolas,Liberation Mono,monospace}.position-table-wrapper,.history-table-wrapper,.compact-table-wrapper{overflow-x:auto}.danger-zone{border:1px solid color-mix(in srgb, var(--danger) 35%, var(--border));border-radius:12px;justify-content:space-between;align-items:center;gap:1rem;margin-top:2.5rem;padding:1.25rem 1.35rem;display:flex}.danger-zone p{color:var(--text-muted);margin:.35rem 0 0;font-size:.76rem}.empty-state,.loading-state{text-align:center;flex-direction:column;justify-content:center;align-items:center;min-height:300px;padding:2rem;display:flex}.empty-state-mark{border:1px solid var(--border-strong);width:48px;height:48px;color:var(--text-muted);border-radius:50%;place-items:center;margin-bottom:1.2rem;font-size:1.5rem;display:grid}.empty-state h2{margin:0;font-size:1rem}.empty-state p,.muted{color:var(--text-muted);font-size:.8rem}.empty-state p{margin:.55rem 0 0}.loading-state{color:var(--text-muted);font-size:.85rem}.storage-error,.save-retry{border:1px solid color-mix(in srgb, var(--danger) 45%, var(--border));background:color-mix(in srgb, var(--danger) 6%, var(--surface));border-radius:10px;justify-content:space-between;align-items:center;gap:1rem;margin-bottom:1.25rem;padding:.9rem 1rem;display:flex}.storage-error strong,.save-retry strong{font-size:.8rem}.storage-error p,.save-retry p{color:var(--text-muted);margin:.25rem 0 0;font-size:.75rem}.keyboard-panel{margin-bottom:.8rem}.select-control{color:var(--text-muted);align-items:center;gap:.65rem;font-size:.74rem;display:inline-flex}.select-control select{border:1px solid var(--border);background:var(--surface);min-width:125px;color:var(--text);border-radius:7px;padding:.55rem .7rem}.keyboard-map{flex-direction:column;align-items:center;gap:.5rem;padding:1rem 0 .75rem;display:flex}.keyboard-row{gap:clamp(.25rem,.75vw,.65rem);display:flex}.keyboard-row-2{margin-left:4%}.keyboard-row-3{margin-left:9%}.heatmap-key{border:1px solid var(--border-strong);width:clamp(42px,6.4vw,84px);height:clamp(50px,6.5vw,78px);color:var(--text);border-radius:8px;flex-direction:column;justify-content:center;align-items:center;transition:transform .16s,border-color .16s;display:flex}.heatmap-key:hover{border-color:var(--text);transform:translateY(-2px)}.heatmap-key strong{font-size:clamp(.8rem,1.7vw,1.2rem)}.heatmap-key span{color:var(--text-muted);margin-top:.25rem;font-size:clamp(.58rem,1vw,.7rem)}.heatmap-key.high,.legend-swatch.high{background:var(--heatmap-high)}.heatmap-key.medium,.legend-swatch.medium{background:var(--heatmap-medium)}.heatmap-key.low,.legend-swatch.low{background:var(--heatmap-low)}.heatmap-key.no-data,.legend-swatch.no-data{background:var(--heatmap-no-data)}.heatmap-legend{color:var(--text-muted);flex-wrap:wrap;gap:1rem;margin-top:.8rem;font-size:.72rem;display:flex}.heatmap-legend span{align-items:center;gap:.35rem;display:inline-flex}.legend-swatch{border:1px solid var(--border-strong);border-radius:3px;width:18px;height:14px;display:inline-block}.ranking-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:.8rem;display:grid}.ranking-card{padding:1.2rem 1.25rem}.ranking-list,.target-list{margin:1rem 0 0;padding:0;list-style:none}.ranking-list li+li{border-top:1px solid var(--border)}.ranking-list a{grid-template-columns:36px 1fr;gap:.1rem .75rem;padding:.7rem 0;display:grid}.ranking-key{grid-row:span 2;align-self:center;font-size:1.15rem;font-weight:750}.ranking-list strong{font-size:.95rem;font-weight:600}.ranking-list small{color:var(--text-subtle);font-size:.68rem}.detail-grid{grid-template-columns:minmax(0,.9fr) minmax(0,1.4fr);gap:.8rem;margin:.8rem 0;display:grid}.target-list li{border-bottom:1px solid var(--border);grid-template-columns:1fr auto auto;align-items:center;gap:1rem;padding:.85rem 0;display:grid}.target-list li:last-child{border-bottom:0}.target-list a{font-size:1.2rem;font-weight:750}.target-list span{color:var(--text);font-size:.82rem}.target-list small{color:var(--text-subtle);font-size:.72rem}.row-link{color:var(--text-muted);justify-content:center;align-items:center;display:inline-flex}.row-link:hover{color:var(--text)}.result-badge{border-radius:4px;padding:.2rem .45rem;font-size:.68rem;font-weight:700;display:inline-block}.result-badge.correct{background:color-mix(in srgb, var(--success) 15%, transparent);color:var(--success)}.result-badge.incorrect{background:color-mix(in srgb, var(--danger) 15%, transparent);color:var(--danger)}.detail-summary-panel{margin-top:.8rem}.detail-summary-panel p{max-width:760px;color:var(--text-muted);margin:0;font-size:.85rem;line-height:1.8}.play-page{flex-direction:column;justify-content:space-between;height:100%;min-height:0;padding:clamp(2rem,8vw,7rem) clamp(1.2rem,7vw,7rem) 2rem;display:flex;position:relative;overflow:hidden}.play-stage{flex-direction:column;flex:1;justify-content:center;align-items:center;min-height:0;padding-bottom:5rem;display:flex}.play-kicker{margin-bottom:2.1rem!important}.prompt{letter-spacing:.02em;justify-content:center;align-items:center;gap:clamp(.3rem,1.7vw,1.35rem);min-height:100px;font-family:SFMono-Regular,Consolas,Liberation Mono,monospace;font-size:clamp(2.3rem,7vw,6.4rem);line-height:1;display:flex}.prompt-character{border:1px solid #0000;border-radius:5px;justify-content:center;align-items:center;width:.78em;height:1.2em;transition:background .16s,border-color .16s,color .16s,opacity .16s;display:inline-flex}.prompt-character-completed{color:var(--text-subtle);opacity:.55}.prompt-character-current{border-color:var(--text);background:var(--surface);color:var(--text);font-weight:720;box-shadow:0 7px 20px #0000000f}.prompt-character-pending{color:var(--text-muted)}.prompt-progress{gap:clamp(.7rem,2vw,1.45rem);margin-top:2.5rem;display:flex}.progress-dot{border:1px solid var(--border-strong);border-radius:50%;width:8px;height:8px;display:block}.progress-dot.filled{border-color:var(--text);background:var(--text)}.play-hint{color:var(--text-subtle);margin:1.5rem 0 0;font-size:.75rem}.play-footer{color:var(--text-muted);justify-content:space-between;align-items:flex-end;font-size:.78rem;display:flex}.play-stats{gap:1.8rem;display:flex}.play-stats strong{color:var(--text);margin-left:.25rem;font-weight:600}.play-timer{color:var(--text);font-family:SFMono-Regular,Consolas,Liberation Mono,monospace;font-size:1rem}.result-panel-slot{width:100%;min-height:130px;margin-top:1.5rem}.result-panel{border:1px solid var(--border);background:var(--surface);max-width:720px;box-shadow:var(--shadow);border-radius:10px;align-items:center;gap:clamp(1.4rem,4vw,4rem);margin:0 auto;padding:1rem 1.25rem;display:flex}.result-panel h2{margin:0;font-family:SFMono-Regular,Consolas,Liberation Mono,monospace;font-size:1.35rem;font-weight:500}.result-stat{flex-direction:column;gap:.2rem;display:flex}.result-stat span{color:var(--text-subtle);font-size:.68rem}.result-stat strong{font-size:.95rem;font-weight:600}.save-retry{max-width:760px;margin:1.25rem auto 0}.app-shell-play .save-retry{z-index:1;margin:0;position:absolute;bottom:4.5rem;left:clamp(1.2rem,7vw,7rem);right:clamp(1.2rem,7vw,7rem)}@media (width<=1100px){.metric-grid-eight,.metric-grid-seven{grid-template-columns:repeat(4,minmax(0,1fr))}.metric-grid-six{grid-template-columns:repeat(3,minmax(0,1fr))}.ranking-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=780px){.topbar{min-height:66px;padding:0 1rem}.brand{font-size:.9rem}.top-navigation{grid-template-columns:repeat(4,3.5rem);gap:.25rem;margin-right:.4rem}.nav-link{width:3.5rem;font-size:.72rem}.app-body{min-height:calc(100vh - 66px)}.app-shell-play{--topbar-height:66px}.main-content{padding:2rem 1rem 3rem}.app-shell-play .main-content{padding:0}.page-intro{flex-direction:column;align-items:flex-start;gap:1.25rem;margin-bottom:1.5rem}.page-intro h1{font-size:2.35rem}.metric-grid-eight,.metric-grid-seven,.metric-grid-five,.metric-grid-four,.metric-grid-six{grid-template-columns:repeat(2,minmax(0,1fr))}.chart-grid,.detail-grid,.ranking-grid{grid-template-columns:1fr}.danger-zone,.storage-error,.save-retry{flex-direction:column;align-items:flex-start}.play-page{padding:2rem 1rem 1.5rem}.play-stage{padding-bottom:2rem}.prompt{gap:.1rem;font-size:clamp(2rem,10.5vw,4rem)}.prompt-progress{gap:.6rem;margin-top:1.7rem}.result-panel{grid-template-columns:repeat(2,1fr);gap:.8rem 1rem;display:grid}.result-panel-slot{min-height:105px;margin-top:1rem}.result-panel>:first-child{grid-column:span 2}.app-shell-play .save-retry{bottom:4rem;left:1rem;right:1rem}}@media (width<=460px){.top-navigation{grid-template-columns:repeat(3,3.5rem);gap:.5rem}.nav-link:nth-child(3){display:none}.metric-card{min-height:112px;padding:1rem}.metric-value{margin-top:.7rem;font-size:1.55rem}.keyboard-row{gap:.18rem}.keyboard-row-2{margin-left:2%}.keyboard-row-3{margin-left:5%}.heatmap-key{border-radius:5px;width:clamp(27px,8.6vw,42px);height:46px}.heatmap-key span{font-size:.53rem}.heatmap-legend{gap:.65rem;font-size:.62rem}.play-stats{gap:.8rem}}@media (height<=500px){.play-page{padding:.75rem 1rem .5rem}.play-stage{padding-bottom:0}.play-kicker{margin-bottom:.5rem!important}.prompt{min-height:64px;font-size:clamp(1.6rem,8vw,3rem)}.prompt-progress{gap:.4rem;margin-top:.6rem}.play-hint{margin-top:.6rem;font-size:.68rem}.result-panel-slot{min-height:105px;margin-top:.5rem}}@media (width<=460px),(height<=500px){.result-panel{grid-template-columns:repeat(4,minmax(0,1fr));gap:.5rem;padding:.75rem;display:grid}.result-panel>:first-child{grid-column:auto}.result-panel h2{font-size:1.1rem}.result-stat strong{font-size:.85rem}}@media (height<=360px){.play-page{padding:.5rem 1rem .35rem}.prompt{min-height:56px;font-size:clamp(1.5rem,8vw,2.5rem)}.play-hint{display:none}.result-panel-slot{min-height:91px}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important}}
