:root{--bg: #f4f5f8;--surface: #ffffff;--text: #1b2030;--muted: #5d6475;--line: #dde1ea;--accent: #2f4a7a;--accent-soft: #e2e9f5;--good: #2f7a4b;--warn: #a86a12;--paper: #ffffff;--grid: #c9d3e6;--ink: #1b2030;--outline: #dde1ea;color-scheme:light}@media (prefers-color-scheme: dark){:root{--bg: #12141b;--surface: #1b1f29;--text: #e6e9f0;--muted: #98a0b2;--line: #2c3240;--accent: #8fb0ea;--accent-soft: #1d2840;--good: #6cc08d;--warn: #e0a54a;--paper: #1b1f29;--grid: #2a3550;--ink: #e6e9f0;--outline: #2c3240;color-scheme:dark}}*{box-sizing:border-box}html,body{margin:0}body{background:var(--bg);color:var(--text);font-family:system-ui,-apple-system,Segoe UI,Roboto,PingFang SC,Hiragino Sans,Noto Sans CJK SC,sans-serif;line-height:1.5;-webkit-text-size-adjust:100%}a{color:var(--accent)}.page{max-width:560px;margin:0 auto;padding:20px 16px 48px}.muted{color:var(--muted)}.small{font-size:.875rem}.masthead h1{margin:8px 0 4px;font-size:1.75rem;letter-spacing:-.01em}.masthead p{margin:0 0 20px}.card{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:16px}.button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 20px;border:none;border-radius:999px;background:var(--accent);color:#fff;font:inherit;font-weight:600;text-decoration:none;cursor:pointer}.button.secondary{background:transparent;color:var(--text);border:1px solid var(--line)}.error{border-color:var(--accent);margin-bottom:16px}.error p{margin-top:0}.streak{margin-bottom:24px}.streak-top{display:flex;justify-content:space-between;align-items:flex-end;gap:16px}.streak-number{font-size:2.75rem;font-weight:700;line-height:1;color:var(--accent);font-variant-numeric:tabular-nums}.streak-facts{text-align:right;font-size:.9rem}.history{display:grid;grid-template-columns:repeat(14,1fr);gap:4px;height:40px;margin:16px 0 8px;align-items:end}.history-day{height:100%;display:flex;align-items:flex-end}.history-bar{width:100%;border-radius:3px;background:var(--line)}.history-bar.on{background:var(--accent)}.streak-note{margin:0;font-size:.9rem;color:var(--muted)}.section-title{font-size:1.1rem;margin:0 0 12px}.decks{display:grid;gap:12px}.deck{display:flex;gap:14px;align-items:center;color:inherit;text-decoration:none}.deck:hover{border-color:var(--accent)}.deck-preview{flex:none;width:96px;border-radius:10px;overflow:hidden;border:1px solid var(--line);line-height:0}.deck.locked .deck-preview{opacity:.6}.deck-body{flex:1;min-width:0}.deck-title{font-weight:600}.meter{height:6px;background:var(--line);border-radius:3px;margin:8px 0 4px;overflow:hidden}.meter div{height:100%;background:var(--good)}.due{color:var(--warn)}.lock-note{margin-top:8px;font-weight:600;color:var(--accent)}.footer{margin-top:32px;text-align:center}.practice{padding-top:12px}.topbar{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;min-height:44px}.back{display:inline-flex;align-items:center;min-height:44px;color:var(--text);text-decoration:none;font-weight:500}.topbar-title{font-weight:600;text-align:center}.topbar-count{text-align:right;color:var(--muted);font-variant-numeric:tabular-nums}.actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin-top:16px}.summary{text-align:center}.summary h2{margin-top:4px}.browse{text-align:center;margin-top:24px}.browse a{display:inline-flex;align-items:center;min-height:44px;font-weight:600}.streak-inline{font-weight:700;color:var(--accent);font-size:1.2rem}.footer-links{display:flex;justify-content:center;flex-wrap:wrap;gap:4px 20px;margin-bottom:8px}.footer-links a{display:inline-flex;align-items:center;min-height:44px;color:var(--text);font-size:.95rem}.text-page h1{font-size:1.9rem;margin:8px 0 12px}.text-page h2{font-size:1.15rem;margin:28px 0 8px}.text-page h3{font-size:1rem;margin:18px 0 6px}.text-page ul{padding-left:1.2em}.text-page li{margin-bottom:6px}.text-page code{font-size:.9em;background:var(--surface);border:1px solid var(--line);border-radius:4px;padding:0 4px}.contact h2{margin-top:0}.contact .button{max-width:100%;white-space:normal;text-align:center}.account{margin-bottom:16px}.account.card{display:grid;gap:10px}.account .muted.small{margin:2px 0 0}.account-name{font-weight:600}.account-actions{display:flex;flex-direction:column;align-items:flex-start;gap:6px}.account-fallback{display:inline-flex;align-items:center;min-height:40px}.account-error{color:var(--accent);margin:0}.account.signed-in{display:flex;align-items:center;gap:12px;padding:8px 12px;background:var(--surface);border:1px solid var(--line);border-radius:16px}.account.signed-in img{border-radius:50%;flex:none}.account-who{flex:1;min-width:0}.account-who .account-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account.signed-in .button{min-height:40px;padding:0 14px;flex:none}.site-header{display:flex;justify-content:space-between;align-items:center;max-width:560px;margin:0 auto;padding:12px 16px 0}.site-header a{display:inline-flex;align-items:center;min-height:44px;color:var(--text);text-decoration:none}.site-header .brand{font-weight:700;color:var(--accent)}.sign-page h1{font-size:1.9rem;margin:8px 0 6px;line-height:1.2}.sign-page h2{font-size:1.15rem;margin:28px 0 8px}.sign-page .lead{font-size:1.05rem}.crumbs a{color:var(--muted)}.facts{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 12px}.facts span{padding:2px 10px;border-radius:999px;background:var(--surface);border:1px solid var(--line);font-size:.9rem}.site-nav{display:flex;gap:16px}.word-chips{list-style:none;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:6px}.word-chips a{display:inline-flex;align-items:center;min-height:40px;padding:0 14px;border-radius:999px;background:var(--surface);border:1px solid var(--line);color:var(--text);text-decoration:none;font-weight:600;letter-spacing:.04em}.word-chips a:hover{border-color:var(--accent);color:var(--accent)}.cta{margin-top:28px}.cta h2{margin-top:0}.scene{display:block;width:100%;height:auto;border-radius:12px;border:1px solid var(--line);background:#fff;user-select:none;-webkit-user-select:none}.round{margin-top:4px}.round-step{text-align:center;margin:0 0 8px}.ready,.intro{text-align:center}.ready p{margin-top:0}.intro h2{margin-top:0;font-size:1.15rem}.tips{text-align:left;padding-left:1.2em;margin:0 0 16px}.tips li{margin-bottom:8px}.study{display:grid;gap:10px}.study .button{justify-self:center}.countdown{display:flex;align-items:center;gap:10px}.countdown-bar{flex:1;height:8px;border-radius:4px;background:var(--line);overflow:hidden}.countdown-bar div{height:100%;background:var(--accent);transition:width .1s linear}.countdown-text{min-width:3.2em;text-align:right;font-weight:700;font-variant-numeric:tabular-nums}.ask>.small{text-align:center;margin:4px 0 8px}.question{display:grid;gap:14px}.question-prompt{font-size:1.25rem;font-weight:600;text-align:center;margin:0;line-height:1.35}.question .button{justify-self:center;min-width:160px}.question>.small{text-align:center;margin:0}.options{display:grid;grid-template-columns:1fr 1fr;gap:10px}.options.few{grid-template-columns:1fr}.options.chips{grid-template-columns:repeat(auto-fill,minmax(130px,1fr))}.option{min-height:56px;padding:10px 12px;border-radius:12px;border:2px solid var(--line);background:var(--surface);color:var(--text);font:inherit;font-weight:600;font-size:1.02rem;cursor:pointer;transition:border-color .15s,background .15s}.option:hover{border-color:var(--accent)}.option.picked{border-color:var(--accent);background:var(--accent-soft)}.option.right{border-color:var(--good);background:color-mix(in srgb,var(--good) 18%,var(--surface))}.option.wrong{border-color:#c2413b;background:color-mix(in srgb,#c2413b 16%,var(--surface))}.option.missed{border-color:var(--good);border-style:dashed}.option.dim{opacity:.5}.review{display:grid;gap:12px}.review h2{text-align:center;margin:4px 0 0}.review .button{justify-self:center;min-width:180px}.missed{margin:0;padding-left:1.2em}.missed li{margin-bottom:8px}.missed s{color:#c2413b}.summary-score{font-size:1.15rem}.summary-types{list-style:none;padding:0;margin:0 0 12px;text-align:left}.summary-types li{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid var(--line)}.summary-types li>span:first-child{flex:1 1 8em}.verdict{font-weight:600;color:var(--muted);text-align:right}.verdict.perfect{color:var(--good)}.verdict.missed{color:var(--warn)}.try-it{margin:16px 0 8px}.detail-list{padding-left:1.2em}.detail-list li{margin-bottom:8px}.faq h3{font-size:1rem;margin:18px 0 4px}.faq p{margin:0}.account.compact{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px}.account.compact .account-name{font-weight:500;font-size:.9rem;color:var(--muted)}.account.compact .account-actions{flex:none}.battles{margin-bottom:8px}.battles-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.battles-top .button{flex:none}.battle-list{list-style:none;padding:0;margin:12px 0 0}.battle-list li{border-top:1px solid var(--line)}.battle-list a{display:flex;flex-direction:column;padding:10px 0;color:inherit;text-decoration:none}.battle-list-title{font-weight:600}.battle-new .battle-preview{margin:12px 0;display:grid;gap:8px}.battle-new .battle-preview .actions{margin:0}.choice{border:0;padding:0;margin:14px 0 0}.choice legend{font-weight:600;margin-bottom:8px;padding:0}.choice-options{display:flex;flex-wrap:wrap;gap:8px}.chip{min-height:42px;padding:0 14px;border-radius:999px;border:2px solid var(--line);background:var(--surface);color:var(--text);font:inherit;font-weight:600;cursor:pointer}.chip.on{border-color:var(--accent);background:var(--accent-soft);color:var(--accent)}.field{display:grid;gap:6px;margin:16px 0;font-weight:600}.field input{min-height:46px;padding:0 12px;border-radius:10px;border:2px solid var(--line);background:var(--surface);color:var(--text);font:inherit;font-weight:400}.field input:focus{outline:none;border-color:var(--accent)}.battle-head h1{font-size:1.7rem;margin:0 0 8px;line-height:1.2}.battle-head p:first-child{margin:8px 0 2px}.battle .card{margin-bottom:14px}.result h2,.share h2,.lb-head h2{margin:0 0 6px;font-size:1.15rem}.lb-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:6px}.small-button{min-height:36px;padding:0 12px;font-size:.9rem}.leaderboard{list-style:none;padding:0;margin:0}.leaderboard li{display:flex;align-items:center;gap:10px;padding:10px 0;border-top:1px solid var(--line)}.leaderboard li.me{background:var(--accent-soft);margin:0 -10px;padding:10px;border-radius:8px}.leaderboard img,.lb-avatar{width:28px;height:28px;border-radius:50%;flex:none}.lb-avatar{display:grid;place-items:center;background:var(--accent);color:#fff;font-weight:700;font-size:.85rem}.lb-rank{width:1.6em;text-align:center;font-weight:700}.lb-name{flex:1;min-width:0;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.lb-badge{margin-left:6px;padding:1px 6px;border-radius:999px;background:var(--line);font-size:.75rem;font-weight:600;color:var(--muted)}.lb-score{font-weight:800;font-variant-numeric:tabular-nums}.lb-time{min-width:3.6em;text-align:right;font-variant-numeric:tabular-nums}.share-link{word-break:break-all;font-weight:600;margin:4px 0 10px}.share .actions{justify-content:flex-start}.scene-editor{display:grid;gap:8px}.scene-editor>p{margin:0}.edit-objects{display:flex;flex-wrap:wrap;gap:6px}.small-chip{min-height:34px;padding:0 11px;font-size:.88rem}.edit-panel{padding:12px 14px}.edit-panel .choice{margin-top:10px}.edit-panel-head{display:flex;justify-content:space-between;align-items:center;gap:8px}.edit-text{margin:10px 0 0}.edit-text-row{display:flex;gap:8px}.edit-text-row input{flex:1;min-width:0;text-transform:none}.edit-hint{color:var(--warn);font-weight:400}.undo-edits{justify-self:start}
