:root{--bg:#0f1220;--surface:#1a1f36;--surface-hover:#232a4a;--text:#f2f4ff;--muted:#9aa3c7;--accent:#4cc38a;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}*{box-sizing:border-box}body{background:var(--bg);min-height:100vh;color:var(--text);padding:max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif}header{max-width:1100px;margin:0 auto 24px}h1{margin:0;font-size:clamp(28px,6vw,44px)}header p{color:var(--muted);margin:4px 0 0}.grid{grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px;max-width:1100px;margin:0 auto;display:grid}.card{background:var(--surface);min-height:48px;color:inherit;touch-action:manipulation;-webkit-tap-highlight-color:transparent;border-radius:16px;flex-direction:column;text-decoration:none;transition:transform .12s,background .12s;display:flex;overflow:hidden}.card:hover,.card:focus-visible{background:var(--surface-hover)}.card:active{transform:scale(.98)}.card:focus-visible{outline:3px solid var(--accent);outline-offset:2px}.thumb{aspect-ratio:16/9;background:linear-gradient(135deg,#2b3a67,#1d6b4f);justify-content:center;align-items:center;font-size:64px;font-weight:700;display:flex}.thumb img{object-fit:cover;width:100%;height:100%}.body{padding:16px}.body h2{margin:0 0 6px;font-size:20px}.body p{color:var(--muted);margin:0;line-height:1.4}.tags{flex-wrap:wrap;gap:6px;margin:12px 0 0;padding:0;list-style:none;display:flex}.tags li{background:#ffffff14;border-radius:999px;padding:4px 10px;font-size:12px}.header-top{align-items:center;gap:12px;min-height:48px;margin-bottom:8px;display:flex}.spacer{flex:1}.back-link,.player-chip,.text-button{background:var(--surface);min-height:48px;color:var(--text);cursor:pointer;touch-action:manipulation;border:0;border-radius:24px;align-items:center;gap:8px;padding:0 16px;font-family:inherit;font-size:16px;font-weight:600;text-decoration:none;display:inline-flex}.player-chip .avatar{font-size:24px}.player-chip .switch{color:var(--muted);font-size:14px}.back-link:focus-visible,.player-chip:focus-visible,.text-button:focus-visible,.choice-card:focus-visible,.pick-row:focus-visible,.tile:focus-visible,.jump-chip:focus-visible,.path-card:focus-visible,.topics-toggle:focus-visible,.player-card:focus-visible,button.primary:focus-visible{outline:3px solid var(--accent);outline-offset:2px}h2.subject{max-width:1100px;color:var(--muted);margin:0 auto 12px;font-size:22px}.card .body h3{margin:0 0 6px;font-size:20px}.mastery{color:var(--muted);flex-direction:column;gap:6px;margin-top:12px;font-size:13px;display:flex}.mastery-bar{background:#ffffff1a;border-radius:4px;height:8px;display:flex;overflow:hidden}.mastery-solid,.mastery-fill,.mastery-almost,.mastery-started{background:var(--accent);height:100%}.mastery-solid,.tile-solid{background:#1f8a5b}.mastery-almost{opacity:.55}.mastery-started{opacity:.28}.best{letter-spacing:.1em;font-size:18px;color:#ffd43b!important;margin-top:10px!important}.best.score{letter-spacing:0;font-weight:700}.choice-card{background:var(--surface);max-width:1100px;color:inherit;touch-action:manipulation;border:2px solid #3a4166;border-radius:20px;margin:0 auto 24px;padding:16px 20px;text-decoration:none;display:block}.choice-card:active{transform:scale(.98)}.choice-label{letter-spacing:.08em;color:var(--muted);font-size:13px;font-weight:700}.choice-top{align-items:flex-start;gap:12px;display:flex}.choice-top h1{flex:1;min-width:0;font-size:clamp(26px,5vw,40px)}.change-pill{background:var(--accent);min-height:48px;color:var(--bg);border-radius:24px;flex:none;align-items:center;padding:0 18px;font-size:16px;font-weight:700;display:inline-flex}.choice-sub{color:var(--muted);margin:4px 0 0;font-size:16px}.facts-link-row{flex-wrap:wrap;gap:8px;max-width:1100px;margin:-8px auto 12px;display:flex}.facts-link{background:var(--surface);min-height:48px;color:var(--text);touch-action:manipulation;border-radius:24px;align-items:center;padding:0 18px;font-size:16px;font-weight:600;text-decoration:none;display:inline-flex}.facts-link:focus-visible{outline:3px solid var(--accent);outline-offset:2px}@media (height<=500px){.choice-card{margin-bottom:16px;padding:12px 16px}.choice-top h1{font-size:26px}.path-card{min-height:0;padding:12px 14px}.path-card .path-emoji{font-size:32px}}.picker{max-width:1100px;margin:0 auto}.picker section+section{margin-top:20px}.picker h2.subject{margin-bottom:4px}.hint{color:var(--muted);margin:0 0 12px;font-size:15px}.jump-chips{z-index:2;background:var(--bg);flex-wrap:nowrap;gap:8px;max-width:1100px;margin:0 auto;padding:8px 0;display:flex;position:sticky;top:0;overflow-x:auto}.jump-chip{min-height:48px;color:var(--text);cursor:pointer;touch-action:manipulation;background:#ffffff1a;border:0;border-radius:24px;flex:none;align-items:center;padding:0 18px;font-family:inherit;font-size:16px;font-weight:600;text-decoration:none;display:inline-flex}.picker h2.subject{color:var(--text)}.path-cards{grid-template-columns:1fr;gap:14px;display:grid}@media (width>=700px){.path-cards{grid-template-columns:repeat(2,1fr)}}.path-card{background:linear-gradient(135deg, var(--path-from), var(--surface) 85%);border:2px solid var(--path-edge);min-height:112px;color:inherit;touch-action:manipulation;border-radius:20px;align-items:flex-start;gap:14px;padding:18px 20px;text-decoration:none;display:flex;position:relative}.path-card:active{transform:scale(.98)}.path-card.current{outline:3px solid var(--accent);outline-offset:3px}.path-card .path-emoji{flex:none;font-size:44px;line-height:1}.path-body{flex:1;min-width:0}.path-card h3{margin:0;font-size:clamp(20px,3.2vw,26px)}.path-card.current h3{padding-right:52px}.path-card p{color:#d6dbf5;margin:4px 0 0;font-size:15px}.path-card .mastery{margin-top:8px}.now-badge{background:var(--accent);color:var(--bg);border-radius:12px;padding:2px 10px;font-size:13px;font-weight:700;position:absolute;top:10px;right:12px}.start-badge{background:var(--accent);color:var(--bg);vertical-align:middle;border-radius:12px;margin-left:10px;padding:3px 10px;font-size:14px;font-weight:700;display:inline-block}.or-divider{color:var(--muted);align-items:center;gap:12px;margin:28px 0 16px;font-size:15px;display:flex}.or-divider:before,.or-divider:after{content:"";background:#ffffff26;flex:1;height:1px}.topics-toggle{width:100%;min-height:64px;color:var(--text);text-align:left;font:inherit;cursor:pointer;touch-action:manipulation;background:0 0;border:2px solid #ffffff1f;border-radius:14px;align-items:center;gap:12px;padding:12px 16px;display:flex}.toggle-emoji{font-size:24px}.toggle-text strong{font-size:18px}.toggle-text small{color:var(--muted);font-size:14px;display:block}.toggle-chevron{color:var(--muted);margin-left:auto;font-size:20px}.one-topic{margin-top:12px}.pick-grid{grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px;display:grid}.pick-row{background:var(--surface);min-height:64px;color:inherit;touch-action:manipulation;border-radius:14px;padding:12px 16px;text-decoration:none;display:block}.pick-row:active,.tile:active{transform:scale(.98)}.pick-row h3{margin:0;font-size:18px}.pick-row p{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;margin:2px 0 0;font-size:14px;overflow:hidden}.pick-row .mastery{margin-top:8px}.pick-row.current,.tile.current{outline:3px solid var(--accent)}.pick-section{scroll-margin-top:72px}h3.pick-subject{margin:8px 0;font-size:20px}.tile-label{color:var(--muted);margin:0 0 6px;font-size:14px}.tiles{grid-template-columns:repeat(5,1fr);gap:8px;max-width:720px;margin-bottom:12px;display:grid}@media (width>=560px){.tiles{grid-template-columns:repeat(10,1fr)}}.tile{aspect-ratio:1;background:var(--surface);min-width:56px;min-height:56px;color:inherit;touch-action:manipulation;border-radius:12px;justify-content:center;align-items:center;text-decoration:none;display:flex;position:relative;overflow:hidden}.tile-n{font-size:22px;font-weight:700}.tile-done{color:var(--accent);font-size:12px;font-weight:700;position:absolute;top:3px;right:6px}.tile-bar{background:#ffffff1a;height:4px;display:flex;position:absolute;bottom:0;left:0;right:0}.tile-solid,.tile-fill,.tile-almost,.tile-started{background:var(--accent);height:100%;display:block}.tile-almost{opacity:.55}.tile-started{opacity:.28}.players{grid-template-columns:repeat(auto-fill,minmax(140px,1fr))}.player-card{background:var(--surface);min-height:140px;color:var(--text);cursor:pointer;touch-action:manipulation;border:3px solid #0000;border-radius:20px;flex-direction:column;align-items:center;gap:8px;padding:16px;font-family:inherit;display:flex;position:relative}.player-card.current{border-color:var(--accent)}.player-card.add{background:0 0;border:3px dashed #3a4166}.player-card.removing{border-color:#ff6b6b}.player-card .avatar{font-size:56px;line-height:1}.player-card .name{word-break:break-word;font-size:18px;font-weight:700}.player-card .remove{color:#ff6b6b;font-weight:700}.tools{max-width:1100px;margin:24px auto 0}.new-player{background:var(--surface);border-radius:20px;flex-direction:column;gap:16px;max-width:560px;margin:0 auto 24px;padding:20px;display:flex}.new-player[hidden]{display:none}.new-player h2{margin:0}.new-player input[type=text],.account-form input,.dialog-form input{background:var(--bg);min-height:56px;color:var(--text);border:2px solid #3a4166;border-radius:14px;padding:0 16px;font-family:inherit;font-size:22px;font-weight:600}.avatars{border:0;grid-template-columns:repeat(auto-fill,minmax(56px,1fr));gap:8px;margin:0;padding:0;display:grid}.avatars legend{color:var(--muted);margin-bottom:8px}.avatars label{cursor:pointer;position:relative}.avatars input{opacity:0;position:absolute}.avatars span{background:var(--bg);border:3px solid #0000;border-radius:14px;justify-content:center;align-items:center;height:56px;font-size:32px;display:flex}.avatars input:checked+span{border-color:var(--accent)}.avatars input:focus-visible+span{outline:3px solid var(--accent);outline-offset:2px}button.primary:disabled{opacity:.6;cursor:default}button.primary{background:var(--accent);min-height:56px;color:var(--bg);cursor:pointer;touch-action:manipulation;border:0;border-radius:28px;font-family:inherit;font-size:20px;font-weight:700}.player-card .cloud{color:var(--muted);font-size:16px;line-height:1;position:absolute;top:8px;right:10px}.account{max-width:1100px;margin:16px auto 0}.account-open{min-height:48px}.account-row{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.account-info{min-width:0;color:var(--muted);flex:100%;align-items:baseline;gap:6px;font-size:16px;display:flex}.account-status{color:var(--text);flex:none;font-weight:600}.account-email{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.account-notice,.account-note{color:var(--muted);margin:0 0 12px;font-size:16px}.account-form{margin-bottom:0}.account-form input,.dialog-form input{width:100%;font-size:18px}.account-tabs{gap:8px;display:flex}.account-tab{min-height:48px;color:var(--text);cursor:pointer;touch-action:manipulation;background:0 0;border:2px solid #3a4166;border-radius:14px;flex:1 1 0;padding:0 8px;font-family:inherit;font-size:16px;font-weight:700}.account-tab[aria-pressed=true]{border-color:var(--accent);background:var(--accent);color:var(--bg)}.account-form .text-button{justify-content:center}.error{color:#ff8a8a;margin:0;font-size:16px;font-weight:600}.dialog-backdrop{z-index:10;background:#050710b3;justify-content:center;align-items:center;padding:16px;display:flex;position:fixed;inset:0;overflow-y:auto}.dialog{background:var(--surface);border-radius:20px;flex-direction:column;gap:12px;width:100%;max-width:360px;padding:20px;display:flex}.dialog h2,.dialog p{overflow-wrap:anywhere;margin:0}.dialog p{color:var(--muted);font-size:16px}.dialog p.error{color:#ff8a8a}.dialog .text-button{background:var(--bg);text-align:center;justify-content:center}.dialog-form{flex-direction:column;gap:12px;display:flex}.dialog-form .text-button,.dialog-form button.primary,.dialog-form button.danger{justify-content:center;min-height:48px}button.danger{color:#2a0d0d;cursor:pointer;touch-action:manipulation;background:#ff8a8a;border:0;border-radius:24px;padding:0 20px;font-family:inherit;font-size:18px;font-weight:700}button.danger:disabled{opacity:.4;cursor:default}.account-extras{flex-direction:column;align-items:stretch;gap:12px;display:flex}.account-extras:empty{display:none}.google-button{justify-content:center;align-items:center;min-height:48px;display:flex}.google-stand-in{width:100%;max-width:280px;min-height:48px;color:var(--text);border:2px solid #3a4166;border-radius:24px;justify-content:center;align-items:center;font-size:16px;font-weight:600;display:inline-flex}.account-verify{color:var(--text);flex-wrap:wrap;flex:100%;align-items:center;gap:8px 12px;font-size:16px;display:flex}.account-sheet-email{overflow-wrap:anywhere}.link-page{max-width:560px;margin:0 auto}.link-result{background:var(--surface);overflow-wrap:anywhere;border-radius:20px;margin:0 0 24px;padding:20px;font-size:22px;font-weight:700}.link-result.ok{color:var(--accent)}.account-tab:focus-visible,.dialog-form input:focus-visible,.account-form input:focus-visible{outline:3px solid var(--accent);outline-offset:2px}.facts-page .mastery{margin:0 0 12px}.facts-page h2.subject{margin:20px 0 8px}.fact-legend{margin-bottom:4px}.fact-chips{flex-wrap:wrap;gap:8px;display:flex}.fact-chip{background:var(--surface);border-radius:10px;flex-wrap:wrap;align-items:center;gap:4px 10px;padding:8px 12px;font-size:16px;display:flex}.fact-answer{color:#5cf2b0}.fact-dots{letter-spacing:.1em;white-space:nowrap}.dot-on{color:var(--accent)}.dot-off{color:var(--muted)}.fact-solid{color:var(--accent);font-weight:700}.card-review{color:var(--muted);margin-top:6px;font-size:13px}.fact-ready{color:var(--muted);white-space:nowrap;font-size:13px}.typing-board{width:100%;max-width:640px;margin:12px auto 4px}.typing-board-legend{color:var(--muted);flex-wrap:wrap;justify-content:center;gap:12px;font-size:13px;display:flex}.typing-board-legend .legend-item{align-items:center;gap:6px;display:inline-flex}.swatch{box-sizing:border-box;border-radius:3px;width:14px;height:14px;display:inline-block}.key-cap{border:1px solid #ffffff40;border-radius:6px;justify-content:center;align-items:center;min-width:28px;height:28px;padding:0 6px;font:700 15px ui-monospace,SFMono-Regular,Menlo,monospace;display:inline-flex}.speed-chip{gap:8px}.typing-best{font-weight:700}
