:root{--bg:#fff8e7;--surface:#fff;--ink:#1d2b36;--muted:#5b6b78;--line:#ece3cc;--brand:#ffd84d;--brand-ink:#3d3000;--blue:#0b63c4;--green:#3fb56b;--green-soft:#d5f0de;--amber-soft:#fdeec2;--red:#e5534b;--radius:18px;--tap:52px;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;color:var(--ink);background:var(--bg);-webkit-tap-highlight-color:transparent;font-family:ui-rounded,SF Pro Rounded,Nunito,system-ui,-apple-system,Segoe UI,sans-serif}*{box-sizing:border-box}body{background:var(--bg);margin:0;font-size:17px;line-height:1.45}button{font:inherit;color:inherit;cursor:pointer}input{font:inherit}h1{margin:0 0 4px;font-size:clamp(26px,4.5vw,36px);line-height:1.15}h2{margin:28px 0 12px;font-size:21px}h3{margin:0 0 8px;font-size:19px}p{margin:0 0 8px}.muted{color:var(--muted)}.small{font-size:14px}.tiny{margin-top:32px;font-size:12px}.error{color:var(--red);font-weight:600}.note{color:var(--green);font-weight:600}.shell{flex-direction:column;min-height:100dvh;display:flex}.page{width:100%;max-width:920px;padding:24px 20px calc(110px + env(safe-area-inset-bottom,0px));flex:1;margin:0 auto}.tabs{z-index:10;padding:6px 8px calc(6px + env(safe-area-inset-bottom,0px));background:var(--surface);border-top:1px solid var(--line);justify-content:center;gap:4px;display:flex;position:fixed;bottom:0;left:0;right:0}.tabs button{max-width:160px;min-height:60px;color:var(--muted);background:0 0;border:0;border-radius:14px;flex-direction:column;flex:1;justify-content:center;align-items:center;gap:2px;font-size:13px;font-weight:600;display:flex;position:relative}.tabs button span{font-size:24px;line-height:1}.tabs button.on{background:var(--brand);color:var(--brand-ink)}.badge{background:var(--red);color:#fff;border-radius:10px;min-width:20px;height:20px;padding:0 6px;font-size:12px;font-style:normal;line-height:20px;position:absolute;top:4px;right:calc(50% - 26px)}.btn{min-height:var(--tap);background:var(--ink);color:#fff;border:0;border-radius:14px;padding:0 22px;font-size:17px;font-weight:700}.btn:disabled{opacity:.4;cursor:default}.btn.big{width:100%;min-height:60px;font-size:19px}.btn.ghost{color:var(--ink);box-shadow:inset 0 0 0 2px var(--line);background:0 0}.back{color:var(--blue);background:0 0;border:0;min-height:44px;margin-bottom:8px;padding:8px 0;font-weight:600}.card{background:var(--surface);border-radius:var(--radius);box-shadow:0 1px 0 var(--line), 0 6px 18px #6b530010;text-align:left;border:0;padding:18px}.grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,240px),1fr));gap:14px;display:grid}.list{flex-direction:column;gap:12px;display:flex}.card.pack{flex-direction:column;gap:4px;min-height:170px;transition:transform .1s;display:flex}.card.pack:active{transform:scale(.98)}.card .icon{font-size:40px;line-height:1.1}.card.pack strong{font-size:20px}.card.game{grid-template-columns:auto 1fr auto;align-items:center;gap:16px;display:grid}@media (width<=520px){.card.game{grid-template-columns:auto 1fr}.card.game .btn{grid-column:1/-1}}.meter{background:#f1ead6;border-radius:5px;height:10px;margin-top:auto;display:flex;overflow:hidden}.meter i{height:100%;display:block}.meter .known{background:var(--green)}.meter .learning{background:#f2c200}.hello{margin-bottom:8px}.banner{border-radius:var(--radius);background:var(--brand);width:100%;color:var(--brand-ink);text-align:left;border:0;justify-content:space-between;align-items:center;gap:12px;margin:16px 0 0;padding:16px 18px;font-size:18px;font-weight:700;display:flex}.auth{place-items:center;min-height:100dvh;padding:24px 16px;display:grid}.auth-card{text-align:center;width:100%;max-width:440px}.auth-card .logo{width:72px;height:72px}.auth form{text-align:left;flex-direction:column;gap:14px;margin:18px 0;display:flex}.auth label{flex-direction:column;gap:6px;font-size:15px;font-weight:600;display:flex}.auth input,form.inline input{min-height:var(--tap);border:2px solid var(--line);background:var(--surface);border-radius:14px;padding:0 16px;font-size:19px}.auth input:focus,form.inline input:focus{border-color:var(--blue);outline:none}input.code,strong.code{letter-spacing:.2em;font-family:ui-monospace,SF Mono,Menlo,monospace;font-weight:700}.segmented{background:#f1ead6;border-radius:14px;margin-top:18px;padding:4px;display:flex}.segmented button{background:0 0;border:0;border-radius:11px;flex:1;min-height:46px;font-size:15px;font-weight:600}.segmented button.on{background:var(--surface);box-shadow:0 1px 3px #0002}.stage{background:#000;position:fixed;inset:0}.stage-game{padding:env(safe-area-inset-top,0px) 0 env(safe-area-inset-bottom,0px);position:absolute;inset:0;overflow:hidden}.exit{top:calc(10px + env(safe-area-inset-top,0px));z-index:5;color:#fff;background:#1d2b36cc;border:0;border-radius:50%;width:44px;height:44px;font-size:18px;position:absolute;left:10px}.overlay{z-index:6;background:#fff8e7f2;position:absolute;inset:0}.result{text-align:center;max-width:560px;margin:0 auto;padding-top:24px}.score{margin:8px 0;font-size:clamp(64px,16vw,104px);font-weight:800;line-height:1}.big-text{font-size:19px}.record{background:var(--brand);color:var(--brand-ink);border-radius:99px;padding:6px 14px;font-weight:700;display:inline-block}.actions{gap:12px;margin:24px 0;display:flex}.challenge-box,.result .standings{text-align:left;margin-top:12px}.chips{flex-wrap:wrap;gap:8px;margin:12px 0;display:flex}.chip{border:2px solid var(--line);background:var(--surface);border-radius:99px;min-height:44px;padding:0 16px;font-weight:600}.chip.on{background:var(--blue);border-color:var(--blue);color:#fff}.duel.open{box-shadow:inset 0 0 0 3px var(--brand), 0 6px 18px #6b530010}.duel-head{flex-wrap:wrap;justify-content:space-between;gap:8px;margin-bottom:8px;display:flex}.standings>div{border-top:1px solid var(--line);justify-content:space-between;padding:8px 0;display:flex}.standings>div.me{font-weight:700}.duel .btn{width:100%;margin-top:10px}.progress-pack{margin-bottom:28px}.progress-pack h2{justify-content:space-between;align-items:baseline;gap:12px;display:flex}.items{grid-template-columns:repeat(auto-fill,minmax(min(100%,200px),1fr));gap:8px;margin-top:12px;display:grid}.item{background:#f1ead6;border-radius:12px;flex-direction:column;gap:2px;padding:10px 12px;display:flex}.item.learning{background:var(--amber-soft)}.item.known{background:var(--green-soft)}.item .dots{gap:4px;min-height:10px;display:flex}.item .dots i{border-radius:50%;width:10px;height:10px}.item .dots i.ok{background:var(--green)}.item .dots i.no{background:var(--red)}.code-card{text-align:center;flex-direction:column;align-items:center;gap:4px;margin-top:16px;display:flex}.code-card .code{font-size:36px}.card.member{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;display:flex}form.inline{gap:8px;display:flex}form.inline input{width:140px}.logout{margin-top:32px}.center{text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:12px;min-height:100dvh;padding:24px;display:flex}.spinner{border:4px solid var(--line);border-top-color:var(--ink);border-radius:50%;width:40px;height:40px;animation:1s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}
