:root{--bg: #f2f2f7;--surface: #ffffff;--surface-2: #f2f2f7;--text: #1c1c1e;--muted: #6c6c70;--border: rgba(60, 60, 67, .18);--primary: #1c1c1e;--on-primary: #ffffff;--blue: #007aff;--green: #34c759;--yellow: #ffcc00;--red: #ff3b30;--orange: #ff9500;--purple: #af52de;--teal: #30b0c7;--bar: rgba(249, 249, 249, .86);--radius: 14px;color-scheme:light dark}@media (prefers-color-scheme: dark){:root{--bg: #000000;--surface: #1c1c1e;--surface-2: #2c2c2e;--text: #f2f2f7;--muted: #98989f;--border: rgba(235, 235, 245, .18);--primary: #f2f2f7;--on-primary: #000000;--blue: #0a84ff;--green: #30d158;--yellow: #ffd60a;--red: #ff453a;--orange: #ff9f0a;--purple: #bf5af2;--teal: #40c8e0;--bar: rgba(22, 22, 23, .86)}}*{box-sizing:border-box}html,body{margin:0;background:var(--bg);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,Hiragino Sans,Hiragino Kaku Gothic ProN,Noto Sans JP,Yu Gothic UI,sans-serif;-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit}a{color:var(--blue)}.app{max-width:560px;margin:0 auto;min-height:100dvh;display:flex;flex-direction:column}.navbar{position:sticky;top:0;z-index:10;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:8px;padding:10px 16px;padding-top:max(10px,env(safe-area-inset-top));background:var(--bar);backdrop-filter:saturate(180%) blur(20px);-webkit-backdrop-filter:saturate(180%) blur(20px);border-bottom:.5px solid var(--border)}.navbar-title{font-weight:600;font-size:17px;white-space:nowrap}.navbar-left{justify-self:start}.navbar-right{justify-self:end}.nav-btn{display:inline-flex;align-items:center;gap:2px;background:none;border:0;color:var(--blue);font-size:17px;padding:4px 0;cursor:pointer}.icon-btn{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;border:0;background:none;color:var(--muted);cursor:pointer}.page{flex:1;padding:16px;display:flex;flex-direction:column;gap:16px}.page.with-bar{padding-bottom:calc(120px + env(safe-area-inset-bottom))}.hero{text-align:center;padding:12px 0 4px}.hero h1{margin:0;font-size:30px;font-weight:800;letter-spacing:.02em}.hero p{margin:4px 0 0;color:var(--muted);font-size:14px}.section-label{font-size:13px;color:var(--muted);margin:4px 4px -8px}.card{background:var(--surface);border-radius:var(--radius);padding:14px 16px}.card-btn{display:flex;align-items:center;gap:14px;width:100%;text-align:left;border:0;background:var(--surface);border-radius:var(--radius);padding:14px 16px;cursor:pointer}.card-btn:active{opacity:.7}.card-btn:disabled{cursor:default;opacity:.5}.card-icon{flex:none;width:44px;height:44px;border-radius:11px;display:grid;place-items:center;color:#fff}.card-body{flex:1;min-width:0}.card-title{font-weight:700;font-size:17px;display:flex;align-items:center;gap:6px}.card-sub{font-size:13px;color:var(--muted);margin-top:2px}.chev{color:var(--muted);flex:none}.badge{display:inline-block;font-size:11px;font-weight:700;padding:2px 7px;border-radius:999px;white-space:nowrap;line-height:1.4}.list{background:var(--surface);border-radius:var(--radius);overflow:hidden}.list>*+*{border-top:.5px solid var(--border)}.list-row{display:flex;align-items:center;gap:12px;padding:12px 16px;width:100%;border:0;background:none;text-align:left}button.list-row{cursor:pointer}button.list-row:active{background:var(--surface-2)}.banner{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:var(--radius);background:linear-gradient(135deg,#af52de2e,#ff2d9229);border:1px solid rgba(175,82,222,.35);text-decoration:none;color:var(--text)}.banner-title{font-weight:700;font-size:15px}.banner-sub{font-size:12.5px;color:var(--muted);margin-top:2px}.segmented{display:flex;background:var(--surface-2);border-radius:9px;padding:2px;gap:2px}.segmented button{flex:1;border:0;background:none;padding:6px 4px;border-radius:7px;font-size:13px;font-weight:500;cursor:pointer;white-space:nowrap;display:inline-flex;align-items:center;justify-content:center;gap:3px}.segmented button.on{background:var(--surface);font-weight:600;box-shadow:0 1px 3px #0000001f}@media (prefers-color-scheme: dark){.segmented{background:#1c1c1e}.segmented button.on{background:#636366}}.session-head{display:flex;align-items:center;gap:12px}.pill{display:inline-flex;align-items:center;gap:6px;padding:5px 10px;border-radius:999px;font-weight:700;font-size:15px;font-variant-numeric:tabular-nums}.combo{font-size:12px;font-weight:700;color:var(--orange);background:#ff950026;padding:3px 8px;border-radius:999px;display:inline-flex;align-items:center;gap:3px}.timer{font-variant-numeric:tabular-nums;color:var(--muted);min-width:48px;text-align:right}.spacer{flex:1}.tile{display:block;background:#fff;border:.5px solid rgba(0,0,0,.25);object-fit:contain;-webkit-user-select:none;user-select:none;-webkit-user-drag:none}.hand{display:flex;gap:1px;width:100%}.hand .tile-slot{flex:1 1 0;min-width:0}.hand .tile{width:100%;height:auto;aspect-ratio:3 / 4;border-radius:4px}.notation{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;color:var(--muted);text-align:center;-webkit-user-select:text;user-select:text;margin-top:4px}.question-text{text-align:center;font-weight:600;font-size:17px;margin:0}.ok{color:var(--green)}.ng{color:var(--red)}.muted{color:var(--muted)}.choice-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:6px}.choice{display:flex;flex-direction:column;align-items:center;gap:2px;padding:6px 2px 4px;min-height:64px;border-radius:8px;border:2px solid var(--border);background:var(--surface);cursor:pointer;font-size:11px}.choice .tile{height:40px;width:auto;aspect-ratio:3 / 4;border-radius:3px}.choice:disabled{cursor:default}.choice.sel{border-color:var(--blue);background:#007aff33}.choice.hit{border-color:var(--green);background:#34c7594d}.choice.miss{border-color:var(--yellow);background:#ffcc004d}.choice.wrong{border-color:var(--red);background:#ff3b304d}.hand-pick{display:flex;gap:1px;width:100%}.hand-pick button{flex:1 1 0;min-width:0;padding:0;border:0;background:none;cursor:pointer;transition:transform .12s ease;position:relative}.hand-pick button .tile{width:100%;height:auto;aspect-ratio:3 / 4;border-radius:4px}.hand-pick button.sel{transform:translateY(-10px)}.hand-pick button.sel .tile{outline:2px solid var(--blue);outline-offset:-1px}.hand-pick button.best .tile{outline:2px solid var(--green);outline-offset:-1px}.hand-pick button.wrong .tile{outline:2px solid var(--red);outline-offset:-1px}.hand-pick button:disabled{cursor:default}.text-choices{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.text-choice{padding:12px 8px;border-radius:10px;border:2px solid var(--border);background:var(--surface);font-weight:600;font-size:15px;cursor:pointer;white-space:nowrap}.text-choice.sel{border-color:var(--blue);background:#007aff33}.text-choice.hit{border-color:var(--green);background:#34c7594d}.text-choice.miss{border-color:var(--yellow);background:#ffcc004d}.text-choice.wrong{border-color:var(--red);background:#ff3b304d}.text-choice:disabled{cursor:default}.secondary-btn{width:100%;padding:12px;border-radius:12px;border:1.5px solid var(--border);background:var(--surface);font-weight:600;cursor:pointer}.secondary-btn.on{border-color:var(--blue);background:#007aff33}.secondary-btn.hit{border-color:var(--green);background:#34c7594d}.secondary-btn.wrong{border-color:var(--red);background:#ff3b304d}.bottom-bar{position:fixed;bottom:0;left:50%;transform:translate(-50%);width:min(560px,100%);z-index:20;padding:10px 16px;padding-bottom:max(10px,env(safe-area-inset-bottom));background:var(--bar);backdrop-filter:saturate(180%) blur(20px);-webkit-backdrop-filter:saturate(180%) blur(20px);border-top:.5px solid var(--border);display:flex;flex-direction:column;gap:8px}.cta{width:100%;padding:14px;border-radius:12px;border:0;background:var(--primary);color:var(--on-primary);font-weight:700;font-size:17px;cursor:pointer}.cta:disabled{opacity:.35;cursor:default}.link-btn{background:none;border:0;color:var(--blue);font-size:15px;padding:6px;cursor:pointer}.result-score{text-align:center}.result-score .num{font-size:56px;font-weight:800;font-variant-numeric:tabular-nums;line-height:1.1}.result-score .unit{font-size:20px;font-weight:700;margin-left:4px}.stats{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.stat{background:var(--surface);border-radius:12px;padding:12px}.stat-label{font-size:12px;color:var(--muted)}.stat-value{font-size:22px;font-weight:700;font-variant-numeric:tabular-nums;margin-top:2px}.new-badge{color:var(--orange);font-size:11px;font-weight:800;margin-left:6px}.rank-box{text-align:center;background:var(--surface);border-radius:var(--radius);padding:14px}.rank-row{display:flex;align-items:center;gap:12px;padding:10px 16px}.rank-no{width:28px;text-align:center;font-weight:800;font-variant-numeric:tabular-nums}.rank-name{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rank-meta{font-size:12px;color:var(--muted)}.rank-score{font-weight:800;font-variant-numeric:tabular-nums;white-space:nowrap}.rank-row.me{background:#007aff1f}.you{font-size:10px;font-weight:800;color:#fff;background:var(--blue);padding:1px 5px;border-radius:4px;margin-left:6px}.overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:50;background:#0006;display:flex;align-items:flex-end;justify-content:center}@media (min-width: 600px){.overlay{align-items:center}}.sheet{width:100%;max-width:480px;background:var(--bg);border-radius:16px 16px 0 0;padding:20px 16px;padding-bottom:max(20px,env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:14px}@media (min-width: 600px){.sheet{border-radius:16px}}.sheet h2{margin:0;font-size:20px;text-align:center}.sheet p{margin:0;font-size:14px;color:var(--muted);text-align:center;line-height:1.6}.text-input{width:100%;padding:12px 14px;border-radius:10px;border:1px solid var(--border);background:var(--surface);color:var(--text);font-size:16px}.text-input:focus{outline:2px solid var(--blue);outline-offset:-1px}.check-row{display:flex;align-items:center;gap:8px;font-size:14px;color:var(--muted);justify-content:center}.toast{position:fixed;left:50%;bottom:calc(90px + env(safe-area-inset-bottom));transform:translate(-50%);z-index:60;background:var(--primary);color:var(--on-primary);padding:10px 16px;border-radius:999px;font-size:14px;font-weight:600;white-space:nowrap;box-shadow:0 4px 16px #0003}.mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12.5px;word-break:break-all}.footer{text-align:center;font-size:12px;color:var(--muted);padding:8px 16px 24px;line-height:1.8}.footer a{color:var(--muted)}.ad-slot{display:flex;justify-content:center;min-height:50px}.spinner{width:22px;height:22px;border:2.5px solid var(--border);border-top-color:var(--muted);border-radius:50%;animation:spin .8s linear infinite;margin:16px auto}@keyframes spin{to{transform:rotate(360deg)}}.tile.dora{height:36px;width:auto;aspect-ratio:3 / 4;border-radius:3px}.tile.wait-tile{height:34px;width:auto;aspect-ratio:3 / 4;border-radius:3px;margin:0 auto 2px}.tile.cand-tile{height:28px;width:auto;aspect-ratio:3 / 4;border-radius:3px}.hand-pick button.sel.best,.hand-pick button.sel.wrong{transform:translateY(-10px)}.tile.flex-tile{width:100%;height:auto;aspect-ratio:3 / 4;border-radius:4px}.tile.block-tile{height:26px;width:auto;aspect-ratio:3 / 4;border-radius:3px}
