:root{--bg:#0e0f12;--surface:#15171c;--surface-2:#1d2027;--line:#2a2e37;--line-strong:#3a3f4a;--text:#ecebe6;--muted:#8b909c;--accent:#e4b551;--accent-ink:#17130a;--good:#7ccf9a;--bad:#ee8b87;--radius:10px;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Inter,Roboto,sans-serif;font-size:15px;line-height:1.45}*{box-sizing:border-box}html,body,#root{min-height:100%}body{color:var(--text);background:var(--bg);-webkit-tap-highlight-color:transparent;margin:0}h1,h2,p{margin:0}h1{letter-spacing:-.02em;font-size:1.5rem;font-weight:650}h2{font-size:.95rem;font-weight:600}a{color:var(--accent);text-underline-offset:3px}.screen{width:100%;max-width:520px;padding:calc(20px + env(safe-area-inset-top)) calc(16px + env(safe-area-inset-right)) calc(40px + env(safe-area-inset-bottom)) calc(16px + env(safe-area-inset-left));flex-direction:column;gap:12px;margin:0 auto;display:flex}.screen.center{justify-content:center;align-items:center;min-height:100dvh}.screen>*{min-width:0}.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);min-width:0;padding:16px}.stack{flex-direction:column;gap:12px;display:flex}.stack.tight{gap:6px}.row{align-items:center;gap:8px;display:flex}.row.wrap{flex-wrap:wrap}.row.between{justify-content:space-between}.center{text-align:center;align-self:center;align-items:center}.topbar{justify-content:space-between;align-items:center;gap:12px;padding:4px 2px;display:flex}.hero{padding:24px 2px 8px}.hero h1{font-size:1.9rem}.hero p{max-width:34ch;margin-top:6px}.small-title{letter-spacing:-.01em;font-size:1.05rem;font-weight:600}.divider{color:var(--muted);text-transform:lowercase;align-items:center;gap:10px;font-size:.8rem;display:flex}.divider:before,.divider:after{content:"";background:var(--line);flex:1;height:1px}.muted{color:var(--muted)}.small{font-size:.85rem}.label{color:var(--muted);font-size:.78rem;font-weight:500}.good{color:var(--good)}.bad{color:var(--bad)}.warn{color:var(--accent)}.question{letter-spacing:-.01em;font-size:1.25rem;font-weight:600}.score-big{letter-spacing:-.03em;font-variant-numeric:tabular-nums;font-size:3rem;font-weight:600}input[type=text],input[type=url],input:not([type]){width:100%;min-height:42px;font:inherit;color:var(--text);background:var(--bg);border:1px solid var(--line-strong);border-radius:8px;outline:none;padding:9px 12px}input::placeholder{color:#5d626d}input:focus-visible{border-color:var(--accent)}input[type=range]{accent-color:var(--accent);width:100%;min-height:28px}input[readonly]{color:var(--muted)}.code-input{letter-spacing:.25em;text-align:center;font-variant-numeric:tabular-nums;text-transform:uppercase;font-size:1.25rem}.code-display{letter-spacing:.25em;text-align:center;background:var(--bg);border:1px solid var(--line-strong);-webkit-user-select:all;user-select:all;border-radius:8px;flex:1;padding:9px 12px;font-size:1.4rem;font-weight:600}.btn{min-height:42px;font:inherit;color:var(--text);background:var(--surface-2);border:1px solid var(--line-strong);cursor:pointer;border-radius:8px;padding:9px 16px;font-weight:550;transition:background .12s,border-color .12s}.btn:hover:not(:disabled){background:#242831;border-color:#4a5060}.btn:active:not(:disabled){background:#1a1d23}.btn:disabled{opacity:.4;cursor:not-allowed}.btn.primary{color:var(--accent-ink);background:var(--accent);border-color:var(--accent)}.btn.primary:hover:not(:disabled){background:#eec464;border-color:#eec464}.btn.big{min-height:48px;font-size:1rem}.btn:focus-visible,.link:focus-visible,.answer:focus-visible,.library-item:focus-visible,.segmented button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.link{font:inherit;color:var(--muted);cursor:pointer;background:0 0;border:0;padding:4px 2px;font-size:.875rem}.link:hover:not(:disabled){color:var(--text)}.link:disabled{opacity:.5;cursor:default}.check{cursor:pointer;align-items:center;gap:10px;min-height:30px;display:flex}.check input{width:16px;height:16px;accent-color:var(--accent);margin:0}.segmented{background:var(--bg);border:1px solid var(--line);border-radius:9px;grid-template-columns:1fr 1fr;gap:3px;padding:3px;display:grid}.segmented button{min-height:36px;font:inherit;color:var(--muted);cursor:pointer;background:0 0;border:0;border-radius:6px;font-weight:500}.segmented button:hover{color:var(--text)}.segmented button.active{color:var(--text);background:var(--surface-2);box-shadow:inset 0 0 0 1px var(--line-strong)}.pill{font-variant-numeric:tabular-nums;border:1px solid var(--line-strong);border-radius:6px;padding:3px 10px;font-size:.85rem;font-weight:600}.banner{border-radius:8px;justify-content:space-between;align-items:center;gap:12px;padding:10px 12px;display:flex}.banner.error{color:#f6cfcd;background:#ee8b8714;border:1px solid #ee8b874d}.library{border:1px solid var(--line);border-radius:8px;flex-direction:column;max-height:240px;margin:0;padding:0;list-style:none;display:flex;overflow-y:auto}.library li+li{border-top:1px solid var(--line)}.library-item{text-align:left;width:100%;font:inherit;color:var(--text);cursor:pointer;background:0 0;border:0;border-left:2px solid #0000;align-items:center;gap:12px;padding:8px 10px;display:flex}.library-item:hover:not(:disabled){background:var(--surface-2)}.library-item.selected{border-left-color:var(--accent);background:var(--surface-2)}.library-item:disabled{cursor:default}.library-text{flex-direction:column;min-width:0;display:flex}.library-name,.answer-title{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.loaded{border-left:2px solid var(--accent);background:var(--surface-2);border-radius:0 8px 8px 0;padding:10px 12px}.cover{object-fit:cover;background:var(--surface-2);flex:none;display:block}.cover.placeholder{background:var(--surface-2);border:1px solid var(--line);box-sizing:border-box}.player{flex-direction:column;gap:8px;display:flex}.progress{background:var(--line);border-radius:999px;height:3px;overflow:hidden}.progress-fill{background:var(--accent);height:100%;transition:width .3s linear}.player-row{justify-content:space-between;gap:10px;display:flex}.time{font-variant-numeric:tabular-nums;font-size:.8rem}.volume{align-items:center;gap:8px;width:150px;margin-left:auto;font-size:.8rem;display:flex}.busy{align-items:center;gap:8px;font-size:.8rem;display:inline-flex}.spinner{border:1.5px solid var(--line-strong);border-top-color:var(--accent);border-radius:50%;width:12px;height:12px;animation:.8s linear infinite spin;display:inline-block}.big-spinner{border-width:2px;width:28px;height:28px}@keyframes spin{to{transform:rotate(360deg)}}.choices{grid-template-columns:minmax(0,1fr);gap:6px;display:grid}.answer{text-align:left;width:100%;min-height:60px;font:inherit;color:var(--text);background:var(--surface-2);border:1px solid var(--line);cursor:pointer;border-left:2px solid #0000;border-radius:8px;align-items:center;gap:12px;min-width:0;padding:8px 12px 8px 10px;transition:background .12s;display:flex}.answer:hover:not(:disabled){background:#242831}.answer:disabled{cursor:default}.answer.correct{border-left-color:var(--good);background:#7ccf9a12}.answer.wrong{border-left-color:var(--bad);background:#ee8b8712}.answer.dim{opacity:.4}.answer-num{width:22px;color:var(--muted);font-variant-numeric:tabular-nums;text-align:center;flex:none;font-size:.8rem}.answer-text{flex-direction:column;min-width:0;display:flex}.answer-title{font-weight:550}.reveal{flex-direction:column;gap:8px;min-width:0;display:flex}.reveal-body{align-items:center;gap:14px;min-width:0;display:flex}.reveal-body>div{min-width:0}.reveal-title{letter-spacing:-.01em;font-size:1.1rem;font-weight:600}.marks{flex-wrap:wrap;gap:6px;display:flex}.mark{border:1px solid var(--line-strong);border-radius:6px;padding:2px 8px;font-size:.8rem;font-weight:500}.mark.good{color:var(--good);border-color:#7ccf9a59}.mark.bad{color:var(--bad);border-color:#ee8b8759}@media (prefers-reduced-motion:reduce){*{transition-duration:.01ms!important;animation-duration:.01ms!important}}
