.setup-learn{margin-top:12px;min-height:44px}
.statistics-dialog{max-width:680px;width:calc(100% - 32px);padding:24px}
.statistics-content{font-size:16px;line-height:1.5}
.statistics-scope{color:var(--muted);margin:0 0 18px;font-size:14px}
.statistics-empty,.statistics-warning{border:1px solid var(--border);background:var(--bg);padding:12px;border-radius:8px;font-size:14px;margin:0 0 16px}
.statistics-warning{color:var(--lime)}
.statistics-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:20px}
.statistics-cards>div{border:1px solid var(--border);background:var(--bg);border-radius:9px;padding:10px;display:flex;flex-direction:column;gap:5px}
.statistics-cards span{color:var(--muted);font-size:14px}
.statistics-cards strong{font:500 28px/1.1 var(--display);color:var(--text)}
.statistics-cards>div:nth-child(2) strong{color:var(--lime)}
.statistics-table{border-collapse:collapse;width:100%;font-size:14px;text-align:right;font-variant-numeric:tabular-nums}
.statistics-table caption{text-align:left;font-weight:500;font-size:16px;color:var(--text);margin-bottom:8px}
.statistics-table th,.statistics-table td{padding:7px 6px;border-bottom:1px solid var(--border);font-weight:400}
.statistics-table thead th{color:var(--muted)}
.statistics-table th:first-child{text-align:left}
.statistics-note{font-size:14px;line-height:1.4;color:var(--muted);max-width:420px}
.statistics-dialog .theme-dialog-footer{gap:16px}
.result-dialog{max-width:560px}
.result-saving{font-size:14px;color:var(--muted);margin-bottom:18px}
.result-saving p{margin:0 0 4px}
.rematch-choice{display:flex;gap:10px;align-items:center;padding:14px;border:1px solid var(--border);border-radius:8px;font-size:16px;background:var(--bg)}
.rematch-choice input{width:18px;height:18px;accent-color:var(--lime)}
#rematch-status{color:var(--muted);font-size:14px;line-height:1.5;min-height:42px;margin:14px 0}
.result-actions{display:flex;gap:10px;flex-wrap:wrap}
.result-actions .primary-button,.result-actions .secondary-button{min-height:44px;padding:12px 18px}
.result-actions #result-statistics{width:100%;text-align:center;justify-content:center;padding:10px}
.tutorial-dialog{width:calc(100% - 32px);max-width:540px}
.tutorial-dialog .theme-intro{font-size:16px;line-height:1.5;margin-bottom:14px}
.tutorial-board{width:min(100%,300px,calc(100dvh - 370px));min-width:180px;aspect-ratio:1;display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin:0 auto}
.tutorial-small{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;padding:3px;position:relative;background:var(--bg);border:1px solid var(--border);border-radius:6px}
.tutorial-small button{padding:0;background:var(--surface);border:0;border-radius:2px;aspect-ratio:1;font:500 clamp(16px,3vw,25px)/1 var(--display);color:var(--lime);min-width:0;opacity:1}
.tutorial-small button.o{color:var(--blue)}
.tutorial-active{border-color:var(--lime);box-shadow:0 0 0 1px var(--lime)}
.tutorial-small button.tutorial-target{background:var(--lime);color:var(--bg);outline:2px solid var(--lime);cursor:pointer}
.tutorial-target:after{content:'×';opacity:.4}
.tutorial-target:focus-visible{outline:3px solid var(--text);outline-offset:1px}
.tutorial-claim{position:absolute;inset:0;display:grid;place-items:center;font:500 58px/1 var(--display);background:var(--surface);border-radius:5px;color:var(--lime)}
.tutorial-feedback{min-height:44px;line-height:1.5;font-size:14px;color:var(--muted);margin:14px 0}
.tutorial-dialog .theme-dialog-footer{margin-top:14px;padding-top:14px}
.tutorial-dialog .theme-close,.statistics-dialog .theme-close,.result-dialog .theme-close{flex-shrink:0}
.tutorial-dialog button:disabled,.result-actions button:disabled{opacity:.5;cursor:default}
@media(min-width:781px){.header-note{margin-left:auto}.site-header .header-actions{margin-left:0}}
@media(max-width:700px){.site-header .header-actions{gap:10px}.statistics-dialog,.tutorial-dialog{padding:20px}.statistics-cards{gap:8px}.statistics-cards>div{padding:10px}.statistics-note{max-width:220px}.statistics-dialog .theme-dialog-footer{align-items:flex-start}.tutorial-dialog h2{font-size:26px}.tutorial-board{width:min(100%,280px,calc(100dvh - 360px))}}
@media(max-width:430px){.site-header .header-actions{gap:8px}.site-header .theme-picker{padding:7px}.site-header .theme-picker span{display:none}.statistics-cards span{font-size:14px}.statistics-table th,.statistics-table td{padding:8px 3px}.result-actions .primary-button,.result-actions .secondary-button{flex:1 1 120px;justify-content:center}.statistics-dialog h2{font-size:27px}}
@media(max-height:650px){.tutorial-dialog{padding:20px}.tutorial-dialog h2{font-size:26px}.tutorial-dialog .theme-dialog-top{margin-bottom:12px}.tutorial-dialog .theme-intro{font-size:14px}.tutorial-feedback{margin:10px 0}.tutorial-dialog .theme-dialog-footer{margin-top:10px;padding-top:10px}}
