:root { --bg:#14161d; --card:#fff; --ink:#111; --mute:#6b6b74; --line:#262a36; --or:#ff6a3d; --bl:#5b6cff; --gr:#1fa971; --u:1; color-scheme:light; }
* { box-sizing:border-box; margin:0; }
html { font-size:16px; }
body { background:var(--bg); color:#fff; font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif; line-height:1.4; -webkit-tap-highlight-color:transparent; }
main { max-width:560px; min-height:100dvh; margin:auto; padding:calc(16px + env(safe-area-inset-top)) 16px calc(20px + env(safe-area-inset-bottom)); display:flex; flex-direction:column; gap:14px; }
h1 { font-size:1.9rem; line-height:1.15; text-wrap:balance; } h2 { font-size:1.35rem; line-height:1.2; text-wrap:balance; }
.lead { color:#c3c6d2; }
.card { background:var(--card); color:var(--ink); border-radius:24px; padding:22px; display:flex; flex-direction:column; gap:12px; }
.card .mute { color:var(--mute); } .mute { color:#a4a8b8; font-size:.92rem; }
.big { font-size:1.3rem; line-height:1.42; overflow-wrap:anywhere; } .q { font-weight:800; font-size:1.45rem; }
.head { display:flex; align-items:center; gap:12px; }
.av { width:44px; height:44px; border-radius:50%; display:grid; place-items:center; font-size:1.4rem; background:var(--or); flex:none; }
.head b { overflow-wrap:anywhere; }
.tag { margin-left:auto; background:#ffe4da; color:#8a2c0c; font-weight:700; font-size:.82rem; padding:5px 12px; border-radius:99px; white-space:nowrap; }
button { font:inherit; font-weight:700; border:0; border-radius:16px; padding:14px 18px; min-height:52px; cursor:pointer; background:var(--line); color:#fff; }
button:active { transform:scale(.98); } button:disabled { opacity:.4; cursor:default; }
:focus-visible { outline:3px solid #ffd23d; outline-offset:2px; }
.pri { background:var(--or); color:#111; font-size:1.1rem; } .card button:not(.pri) { background:#eceef5; color:#111; }
.link { background:none; color:#c3c6d2; min-height:44px; font-weight:500; }
.card .link { background:none!important; color:var(--mute)!important; }
.grow { flex:1; } .row { display:flex; gap:10px; } .row > * { flex:1; min-width:0; }
.top { display:flex; align-items:center; gap:8px; min-height:44px; } .top button { min-height:44px; padding:8px 14px; } .top .mute { flex:1; text-align:center; }
.seg { display:grid; grid-auto-flow:column; grid-auto-columns:1fr; gap:6px; } .seg button { padding:8px 4px; min-height:46px; }
button[aria-pressed=true], .card button[aria-pressed=true] { background:var(--bl)!important; color:#fff!important; }
input { font:inherit; width:100%; padding:13px 14px; border-radius:14px; border:2px solid #d4d7e2; background:#fff; color:#111; min-height:50px; }
label, .lab { font-weight:700; }
.v0 { background:var(--gr)!important; color:#061b11!important; } .v1 { background:var(--or)!important; color:#111!important; } .v2 { background:var(--bl)!important; color:#fff!important; }
.bar { height:16px; border-radius:99px; background:#eceef5; overflow:hidden; } .bar i { display:block; height:100%; border-radius:99px; }
.badge { background:#ffd23d; color:#111; font-weight:800; padding:10px 16px; border-radius:14px; text-align:center; }
.timer { font-size:1.6rem; font-weight:800; font-variant-numeric:tabular-nums; text-align:center; } .timer.low { color:#ff8a66; }
.step { display:flex; align-items:center; justify-content:space-between; gap:10px; } .step div { display:flex; align-items:center; gap:10px; } .step b { min-width:2ch; text-align:center; font-size:1.3rem; } .step button { min-width:52px; padding:0; }
.img { width:100%; height:34dvh; min-height:160px; object-fit:contain; background:#e9ebf5; border-radius:18px; } .credit { font-size:.72rem; color:var(--mute); }
.opts { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.opt { background:#eceef5; border-radius:14px; padding:12px; font-weight:700; display:flex; gap:8px; overflow-wrap:anywhere; } .opt span { color:#4050d8; }
.opt.ok { background:var(--gr); } .opt.ok span { color:#111; } .opt.no { opacity:.5; }
.team { display:flex; align-items:center; gap:12px; padding:12px 0; border-top:1px solid #e3e5ee; } .team:first-of-type { border:0; } .team b { flex:1; overflow-wrap:anywhere; } .team .n { font-variant-numeric:tabular-nums; font-weight:800; font-size:1.2rem; }
.win { text-align:center; align-items:center; } .win .cup { font-size:4rem; line-height:1; }
#toast { position:fixed; left:16px; right:16px; top:calc(12px + env(safe-area-inset-top)); pointer-events:none; max-width:528px; margin:auto; background:#ffd23d; color:#111; font-weight:700; padding:14px 18px; border-radius:16px; display:none; z-index:9; } #toast.on { display:block; }
/* Телевизор: крупно и в две колонки */
html.tv body { font-size:1rem; } .tv main { max-width:none; padding:2vh 3vw; }
html.tv { font-size:clamp(16px,1.75vw,34px); }
@media (min-aspect-ratio:1/1) {
  .tv .stage { display:grid; grid-template-columns:1.05fr 1fr; gap:1.2rem; align-items:center; flex:1; }
  .tv .img { height:62vh; } .tv .opts { grid-template-columns:1fr; } .tv .opt { font-size:1.25rem; }
  .tv .stage .q { font-size:1.8rem; } .tv .timer { font-size:2.6rem; }
}
.stage { display:flex; flex-direction:column; gap:14px; }
@media (prefers-reduced-motion:reduce) { * { transition:none!important; } }
.pack { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; } .back { aspect-ratio:3/4; font-size:2.4rem; background:var(--bl); border:6px solid #fff; border-radius:20px; }
.fact { font-weight:700; }

/* Комикс */
:root{--bg:#ffd84a;--or:#ff4f8b;--bl:#4b3bff;--gr:#19c8a0;--line:#fff}
body{background:#ffd84a radial-gradient(#f5b800 18%,transparent 19%) 0 0/22px 22px;color:#16131f}
.lead,.mute,.link{color:#3b3320}.card .mute{color:#5c5670}
.card,.pri,button,.badge{border:3px solid #16131f;box-shadow:5px 5px 0 #16131f}.card button{box-shadow:none}.link{border:0;box-shadow:none}
button{color:#16131f}.pri{color:#16131f;background:#ff6fa3}.badge{background:#19c8a0}.av{border:3px solid #16131f;background:#ff9dc0}
.back{background:#4b3bff;color:#ffd84a;border:4px solid #16131f}h1{font-weight:900}

html{background:#ffd84a}
.card .opt,.card .seg button,.card .step button{border-width:2px}
.card button.pri{box-shadow:4px 4px 0 #16131f}
button:active{transform:translate(2px,2px);box-shadow:2px 2px 0 #16131f}
.link:active,.card button:active{box-shadow:none}
button:disabled{opacity:.45}
:focus-visible{outline-color:#4b3bff}
#toast{background:#16131f;color:#ffd84a}
.timer.low{color:#b3003c}.opt span{color:#3527d6}
.img{border:3px solid #16131f}.opt{border:2px solid #16131f}
h1{text-transform:none;letter-spacing:-.02em}
.cup{filter:drop-shadow(3px 3px 0 #16131f33)}
.card.win{background:#fff8dc}
.qr{display:block;width:100%;max-width:420px;margin:auto}[hidden]{display:none!important}
.brand{display:flex;align-items:center;gap:10px;font-weight:900;font-size:1.35rem;color:#16131f;text-decoration:none;letter-spacing:-.02em}
.btn{display:flex;align-items:center;justify-content:center;font-weight:700;border-radius:16px;padding:14px 18px;min-height:52px;background:#eceef5;color:#16131f;text-decoration:none;border:3px solid #16131f}.btn.pri{background:#ff6fa3;font-size:1.1rem;box-shadow:4px 4px 0 #16131f}main a{color:inherit}
