/* Приложение OVI — по бренду OVI из прототипа заказчика (тёмно-синий, красный, хоккей), не дизайн-система nego
   (РЕШЕНИЯ.md). Эскизы — ovi/sketch.html. */
:root {
  --navy: #08142b; --navy2: #0f2142; --card: #15294f; --card2: #1c3462; --line: #2a4475;
  --red: #d3122f; --red2: #a80d25; --ice: #eef3f9; --white: #fff; --muted: #9db0cc; --dim: #6f86a8;
  --ok: #22b07d; --warn: #f2b233;
  /* текст на тёмном (макеты Claude Design, 26.11.2026): вторичный, красный и «верно/неверно» — --red для мелкого текста тёмный */
  --text2: #c9d6ea; --red-text: #ff6b7f; --ok-text: #6fe0b4; --bad-text: #ff9aa8;
  --head: "Montserrat", -apple-system, BlinkMacSystemFont, sans-serif;
  --body: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --safe-top: env(safe-area-inset-top, 0px); --safe-bot: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { touch-action: manipulation; -webkit-text-size-adjust: 100%; }
html, body { margin: 0; background: var(--navy); color: var(--white); font: 15px/1.45 var(--body); min-height: 100%; }
body { overscroll-behavior-y: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.hidden { display: none !important; }
.boot { min-height: 100vh; display: grid; place-items: center; }

/* общие */
.logo { font: italic 900 24px/1 var(--head); letter-spacing: 1px; }
.logo i { color: var(--red); }
.logo.big { font-size: 52px; }
.big { font: 900 26px/1.12 var(--head); text-transform: uppercase; margin: 0; letter-spacing: .3px; }
.h2 { font: 800 18px/1.2 var(--head); text-transform: uppercase; margin: 0; }
.mut { color: var(--muted); font-size: 14px; }
.small { font-size: 12.5px; }
.btn { display: block; width: 100%; border: 0; border-radius: 12px; padding: 14px; font: 800 15px var(--head);
  text-transform: uppercase; letter-spacing: .4px; background: var(--red); color: #fff; text-align: center;
  text-decoration: none; cursor: pointer; transition: background .18s; }
.btn:active { background: var(--red2); }
.btn.white { background: #fff; color: var(--red); }
.btn.ghost { background: transparent; border: 1.5px solid var(--line); color: #fff; }
.btn:disabled, .btn.off { background: var(--card2); color: var(--dim); cursor: default; }
.btn.sm { display: inline-block; width: auto; padding: 8px 14px; font-size: 12.5px; border-radius: 10px; }
.link { color: var(--muted); font-size: 13px; background: none; border: 0; text-decoration: underline; cursor: pointer; }
.card { background: var(--card); border-radius: 16px; padding: 14px; }
.chip { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; font-size: 11.5px; color: var(--muted); }
.tag { display: inline-block; background: var(--red); color: #fff; border-radius: 4px; font: 800 10px var(--head); padding: 2px 6px; text-transform: uppercase; letter-spacing: .5px; }
.tag.warn { background: var(--warn); color: #2a1c00; }
.tag.ok { background: var(--ok); }

/* каркас */
.screen { min-height: 100vh; display: flex; flex-direction: column; padding: calc(var(--safe-top) + 12px) 16px calc(var(--safe-bot) + 90px); max-width: 560px; margin: 0 auto; }
.screen.center { justify-content: center; text-align: center; gap: 16px; padding-bottom: calc(var(--safe-bot) + 24px); }
.screen.full { padding-bottom: calc(var(--safe-bot) + 24px); }
.top { position: sticky; top: 0; z-index: 10; background: var(--navy); display: flex; align-items: center; gap: 10px;
  padding: calc(var(--safe-top) + 10px) 16px 10px; max-width: 560px; margin: 0 auto; }
.top .sp { flex: 1; }
.top .back { background: none; border: 0; font-size: 30px; line-height: 1; min-width: 44px; min-height: 44px; margin: -8px 0 -8px -12px; padding: 0 0 4px; cursor: pointer; color: #fff; }
.top .title { font: 800 15px var(--head); text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ava { width: 34px; height: 34px; border-radius: 50%; background: var(--red); display: grid; place-items: center; font: 800 12px var(--head); border: 0; cursor: pointer; color: #fff; flex: none; }
.ava.org { font-size: 9px; }
.body { padding: 0 16px calc(var(--safe-bot) + 96px); max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.body.full { padding-bottom: calc(var(--safe-bot) + 24px); }
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; background: var(--navy2); border-top: 1px solid var(--line);
  padding: 6px 4px calc(var(--safe-bot) + 8px); justify-content: center; }
.tabs .in { display: flex; width: 100%; max-width: 560px; }
.tab { flex: 1; text-align: center; font-size: 11px; color: var(--dim); position: relative; background: none; border: 0; cursor: pointer; padding: 4px 0; }
.tab svg { display: block; margin: 0 auto 2px; width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tab.on { color: #fff; }
.tab.on svg { stroke: var(--red); }
.bdg { position: absolute; top: 0; left: calc(50% + 6px); background: var(--red); color: #fff; font: 700 10px var(--body); border-radius: 999px; padding: 1px 6px; min-width: 18px; }
.dbgbar { position: sticky; top: 0; z-index: 30; background: var(--warn); color: #2a1c00; font-size: 12px; font-weight: 700; padding: calc(var(--safe-top) + 4px) 12px 4px; text-align: center; cursor: pointer; }

/* первый вход */
.steps { display: flex; flex-direction: column; gap: 10px; text-align: left; }
.steps { list-style: none; margin: 0; padding: 0; }
.step { display: flex; gap: 14px; align-items: center; background: var(--card); border-radius: 14px; padding: 14px 16px; font-size: 16px; line-height: 1.35; }
.step i { width: 30px; height: 30px; border-radius: 50%; background: var(--red); display: grid; place-items: center; font: normal 800 15px var(--head); flex: none; }
.step svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 2; vertical-align: -4px; }

/* лента */
.tbtn { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; background: #fff; color: var(--navy); border: 0; border-radius: 16px; padding: 15px 18px; cursor: pointer; text-align: left; }
.tbtn b { font: 900 14.5px var(--head); text-transform: uppercase; }
.tbtn span { font-size: 14px; color: #44577a; white-space: nowrap; }
.tbtn.quiet { background: #ffffff26; color: #fff; }
.tbtn.quiet span { color: #fff; }
.dayhead { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.dayhead span { text-transform: none; letter-spacing: 0; font: 400 13.5px var(--body); color: var(--muted); }
.dayhead em { font: 400 13px var(--body); font-style: normal; text-transform: none; letter-spacing: 0; color: var(--muted); margin-left: auto; }
.post { position: relative; }
.readtag { position: absolute; top: 12px; left: 12px; z-index: 2; background: var(--navy); color: #fff; border-radius: 999px; padding: 4px 11px; font: 700 12.5px var(--body); display: flex; align-items: center; gap: 4px; }
.readtag svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 3; }
.dayhead { font: 800 12px var(--head); text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-top: 6px; }
.dayhead b { color: #fff; }
.post { background: var(--card); border-radius: 16px; overflow: hidden; cursor: pointer; }
.post .in { padding: 12px 14px 14px; }
.media { position: relative; background: #0b1a36; }
.media img { display: block; width: 100%; max-height: 340px; object-fit: cover; }
.media.two { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.media.two img { height: 180px; }
.media video { display: block; width: 100%; max-height: 420px; background: #000; }
.media .play { position: absolute; inset: 0; display: grid; place-items: center; }
.media .play span { width: 60px; height: 60px; border-radius: 50%; background: #000a; display: grid; place-items: center; }
.media .play span::after { content: ""; border-left: 20px solid #fff; border-top: 12px solid transparent; border-bottom: 12px solid transparent; margin-left: 5px; }
.rub { font: 800 11px var(--head); color: var(--red); text-transform: uppercase; letter-spacing: .8px; margin-bottom: 3px; }
.ttl { font: 800 17px/1.2 var(--head); text-transform: uppercase; margin: 0 0 6px; }
.txt { color: #d6e0ee; font-size: 14.5px; white-space: pre-line; }
.txt.clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.cta { font-weight: 700; margin-top: 8px; font-size: 14px; }
.reacts { display: flex; gap: 8px; margin-top: 12px; }
.r { flex: 1; background: var(--card2); border: 0; border-radius: 10px; padding: 8px 0; text-align: center; font-size: 15px; cursor: pointer; color: #fff; transition: background .18s; }
.r.me { background: var(--red); }
.meta { font-size: 12.5px; color: var(--muted); margin-top: 10px; display: flex; justify-content: space-between; }
.stub { font-size: 11.5px; color: var(--warn); margin-top: 6px; }

.compose { position: sticky; bottom: 0; background: var(--navy); padding: 10px 0 calc(var(--safe-bot) + 10px); display: flex; gap: 8px; }
.compose textarea, .field { flex: 1; background: var(--card); border: 1.5px solid var(--line); border-radius: 12px; color: #fff; font: 16px var(--body); padding: 11px 12px; resize: none; min-height: 46px; max-height: 140px; outline: none; }
.compose textarea:focus, .field:focus { border-color: var(--muted); }
.compose .btn { width: auto; padding: 0 16px; }

/* кик-офф */
.ice { background: var(--ice); color: #14223e; border-radius: 16px; padding: 14px; }
.week { display: flex; justify-content: space-between; position: relative; padding-top: 6px; }
.week::before { content: ""; position: absolute; left: 10px; right: 10px; top: 13px; height: 2px; background: #7d95b4; }
.week span { display: flex; flex-direction: column; align-items: center; gap: 5px; position: relative; font: 800 10.5px var(--head); text-align: center; }
.week span::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--red); }
.quote { font-style: italic; color: #d6e0ee; }

/* квизы */
.q { font: 900 24px/1.2 var(--head); margin: 8px 0 4px; }
.qtop { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.qk { font: 800 12px var(--head); text-transform: uppercase; letter-spacing: 1.2px; color: var(--muted); }
.qk.fin { color: var(--warn); }
.qn { font: 600 15px var(--body); color: var(--muted); }
.qn b { font: italic 900 30px var(--head); color: #fff; margin-right: 4px; }
.ring { position: relative; width: 76px; height: 76px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 7; }
.ring .bg { stroke: var(--card2); }
.ring .fg { stroke: var(--text2); stroke-linecap: round; }
.ring.hot .fg { stroke: var(--red-text); }
.ring > div { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.ring b { font: 900 26px var(--head); }
.ring.hot b { color: var(--red-text); }
.ring small { font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.segs.q i.d { background: #fff; }
.segs.q i.c { background: var(--warn); }
.opts { display: flex; flex-direction: column; gap: 10px; }
.opts.grid { display: grid; grid-template-columns: 1fr 1fr; }
.opt { display: flex; gap: 12px; align-items: center; background: var(--card); border: 1.5px solid var(--line); border-radius: 16px; padding: 14px 16px; font: 700 16px var(--body); text-align: left; color: #fff; cursor: pointer; transition: background .18s, border-color .18s, opacity .18s; }
.opts.grid .opt { justify-content: center; text-align: center; min-height: 96px; font: 900 20px/1.2 var(--head); }
.opt:disabled { cursor: default; }
.opt .ob:empty { display: none; }
.opt .ob { width: 28px; height: 28px; border-radius: 50%; flex: none; display: grid; place-items: center; color: var(--navy); }
.opt .ob svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.opt .ot small { display: block; font: 400 13px var(--body); }
.opt .ot small:empty { display: none; }
.opt.ok { border-color: var(--ok); background: #0f3a33; }
.opt.ok .ob { background: var(--ok); }
.opt.ok small { color: var(--ok-text); }
.opt.bad { border-color: var(--red-text); background: #3e1828; }
.opt.bad .ob { background: var(--red-text); }
.opt.bad small { color: var(--bad-text); }
.opt.dim { background: var(--navy2); color: var(--muted); }
.opt.picked { border-color: #fff; }
.verdict { border-radius: 16px; padding: 14px 16px; font-size: 15px; background: var(--card); color: var(--text2); margin-bottom: 12px; }
.verdict b { display: block; color: var(--ok-text); font-size: 16px; margin-bottom: 4px; }
.verdict.bad b { color: var(--bad-text); }
.offnote { text-align: center; color: var(--muted); font-size: 14px; margin-top: 18px; }
.offnote svg { width: 18px; height: 18px; vertical-align: -4px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
.quizrun { min-height: 100vh; }
.num { font: 900 52px/1 var(--head); }
.stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; text-align: center; }
.stats div { background: var(--card); border-radius: 12px; padding: 10px 4px; }
.stats b { display: block; font: 900 22px var(--head); }
.stats span { font-size: 11px; color: var(--muted); }
.seg { display: flex; background: var(--card); border-radius: 10px; padding: 3px; font-size: 13px; }
.seg button { flex: 1; text-align: center; padding: 7px; border-radius: 8px; color: var(--muted); background: none; border: 0; cursor: pointer; }
.seg button.on { background: var(--card2); color: #fff; font-weight: 700; }
.list { display: flex; flex-direction: column; gap: 8px; }
.li { display: flex; justify-content: space-between; gap: 10px; background: var(--card); border-radius: 12px; padding: 12px 14px; font-size: 14px; border: 0; color: #fff; text-align: left; cursor: default; }
button.li { cursor: pointer; }
.li span:last-child { color: var(--muted); text-align: right; }
.banner { background: var(--card2); border: 1px dashed var(--line); border-radius: 12px; padding: 12px; text-align: center; font-size: 14px; }
.countdown { font: 900 46px var(--head); text-align: center; }

/* призы */
.prize { display: flex; gap: 12px; background: var(--card); border-radius: 14px; padding: 10px; align-items: center; }
.prize img { width: 70px; height: 70px; border-radius: 10px; object-fit: cover; flex: none; background: var(--card2); }
.prize b { display: block; font-size: 14px; }
.prize span { font-size: 12.5px; color: var(--muted); }
.prize .pr { margin-left: auto; text-align: right; font: 800 15px var(--head); white-space: nowrap; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.track { display: flex; flex-direction: column; font-size: 14px; }
.track div { display: flex; gap: 12px; align-items: flex-start; padding: 7px 0; }
.track i { width: 16px; height: 16px; border-radius: 50%; background: var(--card2); flex: none; margin-top: 2px; border: 2px solid var(--line); }
.track .d i { background: var(--ok); border-color: var(--ok); }
.track .c i { background: var(--red); border-color: var(--red); }
.track small { display: block; color: var(--muted); font-size: 12px; }

/* входящие и чат */
.msg { display: flex; gap: 12px; padding: 12px 4px; border-bottom: 1px solid #1d3157; font-size: 14px; align-items: flex-start; cursor: pointer; background: none; border-left: 0; border-right: 0; border-top: 0; color: #fff; text-align: left; width: 100%; }
.msg .ic { width: 36px; height: 36px; border-radius: 10px; background: var(--card2); flex: none; display: grid; place-items: center; }
.msg .ic svg { width: 18px; height: 18px; stroke: #fff; fill: none; stroke-width: 2; }
.msg b { display: block; font-size: 14px; }
.msg span { color: var(--muted); }
.msg .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); margin-left: auto; margin-top: 6px; flex: none; }
.msg time { font-size: 11px; color: var(--dim); margin-left: auto; white-space: nowrap; }
.chatpin { background: linear-gradient(135deg, #1f3a6e, #15294f); border-radius: 14px; padding: 12px 14px; display: flex; gap: 12px; align-items: center; cursor: pointer; border: 0; color: #fff; width: 100%; text-align: left; }
.bubs { display: flex; flex-direction: column; gap: 8px; }
.bub { max-width: 82%; padding: 10px 12px; border-radius: 16px; font-size: 14.5px; white-space: pre-line; }
.bub.them { background: var(--card); border-bottom-left-radius: 4px; }
.bub.me { background: var(--red); margin-left: auto; border-bottom-right-radius: 4px; }
.bub small { display: block; font-size: 10.5px; opacity: .7; margin-top: 3px; }

/* отладка */
.debug { border: 1.5px dashed var(--warn); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.debug h4 { margin: 0; font: 800 12px var(--head); color: var(--warn); text-transform: uppercase; letter-spacing: 1px; }
.days { display: flex; flex-wrap: wrap; gap: 6px; }
.days button { border: 1px solid var(--line); border-radius: 999px; padding: 6px 11px; font-size: 13px; background: none; color: #fff; cursor: pointer; }
.days button.on { background: var(--warn); color: #2a1c00; border-color: var(--warn); font-weight: 800; }

/* плашки */
.toast { position: fixed; left: 16px; right: 16px; bottom: calc(var(--safe-bot) + 84px); z-index: 50; background: #fff; color: #14223e; border-radius: 12px; padding: 12px 14px; font-size: 14px; font-weight: 600; max-width: 528px; margin: 0 auto; }
.update { position: fixed; left: 16px; right: 16px; top: calc(var(--safe-top) + 8px); z-index: 49; box-shadow: 0 6px 24px #0008; background: #fff; color: #14223e; border-radius: 14px; padding: 10px 12px; display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; max-width: 528px; margin: 0 auto; }
.update .btn { margin-left: auto; }
.offline { position: fixed; top: calc(var(--safe-top) + 6px); left: 50%; transform: translateX(-50%); z-index: 60; background: var(--warn); color: #2a1c00; font-size: 12px; font-weight: 800; border-radius: 999px; padding: 4px 12px; }
.modal { position: fixed; inset: 0; z-index: 70; background: #000a; display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: var(--navy2); border-radius: 18px 18px 0 0; padding: 18px 16px calc(var(--safe-bot) + 18px); width: 100%; max-width: 560px; display: flex; flex-direction: column; gap: 12px; }

/* инструкция установки на iPhone — шаги со снимками */
.tuts { display: flex; flex-direction: column; gap: 14px; }
.tut { display: flex; flex-direction: column; gap: 8px; }
.tut img { width: 100%; border-radius: 14px; border: 1px solid var(--line); display: block; }

/* полоса отладки над шапкой: шапка без второго отступа под вырез экрана и прилипает под полосой */
.dbgbar + .top { padding-top: 10px; top: calc(var(--safe-top) + 26px); }

/* иконки внутри текста — размером со строку, цветом текста (П1-2) */
.mut svg, .small svg, .note svg, .lead svg, .btn.ic svg { width: 1em; height: 1em; vertical-align: -0.15em; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* установка: шаг на экран, Telegram, Android (П1-1, П1-3, П2-10) */
.wiz { position: relative; gap: 14px; padding-bottom: calc(var(--safe-bot) + 20px); }
.wiz.pointed { padding-top: calc(var(--safe-top) + 104px); }
.wiz .big { font-size: 26px; line-height: 1.1; }
.wizhead { display: flex; justify-content: space-between; align-items: center; font: 800 13px var(--head); text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.wizhead .link { font: 600 14px var(--body); text-transform: none; letter-spacing: 0; }
.segs { display: flex; gap: 6px; }
.segs i { flex: 1; height: 4px; border-radius: 2px; background: var(--line); }
.segs i.on { background: var(--red); }
.appicon { width: 96px; height: 96px; border-radius: 22px; background: var(--navy); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font: italic 900 28px var(--head); white-space: nowrap; letter-spacing: 1px; }
.appicon i, .logo.mid i { color: var(--red); }
.logo.mid { font-size: 34px; }
.lead { margin: 0; font-size: 16px; line-height: 1.5; color: var(--text2); }
.eyebrow { font: 800 12px var(--head); text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.note { display: flex; gap: 10px; background: var(--card); border-radius: 14px; padding: 12px 14px; font-size: 14px; line-height: 1.45; color: var(--text2); }
.note > svg { color: var(--warn); width: 20px; height: 20px; flex: none; margin-top: 1px; vertical-align: 0; }
.note b { color: #fff; }
.note.outline { background: none; border: 1px solid var(--line); }
.key { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 24px; padding: 0 4px; border: 1.5px solid var(--muted); border-radius: 8px; font-size: 15px; vertical-align: 1px; }
.wizbtns { margin-top: auto; display: flex; gap: 10px; padding-top: 6px; }
.wizbtns .btn.ghost { flex: 0 0 34%; }
.wizbtns.col { flex-direction: column; }
.wizbtns.col .btn.ghost { flex: none; }
.btn.ic { display: flex; align-items: center; justify-content: center; gap: 10px; }
.btn.ic svg { width: 20px; height: 20px; vertical-align: 0; }
.row2 { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.link.strong { color: #fff; font-weight: 600; font-size: 14px; padding: 10px 0; }
.pointer { position: absolute; top: calc(var(--safe-top) + 4px); right: 14px; display: flex; flex-direction: column; align-items: flex-end; pointer-events: none; }
.pointer svg { width: 74px; height: 70px; stroke: var(--warn); fill: none; stroke-width: 3; stroke-linecap: round; }
.pointer span { background: var(--warn); color: var(--navy); font-weight: 700; font-size: 13px; border-radius: 10px; padding: 6px 10px; margin: -4px 8px 0 0; }

/* квизы списком (П2-4): пройдено, сегодня, под замком, финал */
.qlist { display: flex; flex-direction: column; gap: 10px; }
.qrow { display: flex; gap: 14px; align-items: center; background: var(--card); border: 1.5px solid var(--card); border-radius: 18px; padding: 14px 16px; color: #fff; text-align: left; width: 100%; font: inherit; }
button.qrow { cursor: pointer; }
.qrow.now { border-color: var(--red); }
.qrow.lock { background: var(--navy2); border-color: var(--line); }
.qi { width: 42px; height: 42px; border-radius: 50%; flex: none; display: grid; place-items: center; }
.qi svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.qi.ok { background: #22b07d2e; color: var(--ok-text); }
.qi.num { background: var(--red); font: 900 17px var(--head); }
.qi.lk { border: 1.5px dashed var(--line); color: var(--muted); }
.qm { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.qm small { font-size: 13px; color: var(--muted); }
.qm small.hot { color: var(--red-text); font-weight: 700; }
.qm b { font-size: 16px; line-height: 1.25; }
.qr { text-align: right; display: flex; flex-direction: column; gap: 2px; flex: none; }
.qr b { font-size: 15px; }
.qr b.sc { font: italic 900 22px var(--head); }
.qr span { font-size: 12.5px; color: var(--muted); }
.qrow .btn.sm { flex: none; }
.qfinal { display: flex; flex-direction: column; gap: 6px; border: 2px solid var(--warn); border-radius: 18px; padding: 14px 16px; background: var(--card); color: #fff; text-align: left; width: 100%; font: inherit; }
button.qfinal { cursor: pointer; }
.qfh { display: flex; justify-content: space-between; align-items: center; }
.qfh small { font: 800 12px var(--head); text-transform: uppercase; letter-spacing: 1px; color: var(--warn); }
.qfh svg { width: 18px; height: 18px; stroke: var(--warn); fill: none; stroke-width: 2; }
.qfinal b { font: 900 18px/1.2 var(--head); text-transform: uppercase; }
.qfinal p { margin: 0; font-size: 14px; color: var(--text2); }
.qfinal .btn.sm { align-self: flex-start; margin-top: 4px; }

/* ответы: выбранный и правильный словами, пояснение под ошибкой (П1-6, П2-3) */
.answers { display: flex; flex-direction: column; gap: 8px; }
.ans { background: var(--card); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.ans .aq { color: var(--muted); font-size: 13px; }
.ans > b { font-size: 15px; }
.ans .av { display: flex; flex-wrap: wrap; gap: 4px 14px; font-weight: 600; }
.ans .av .mut { margin-left: auto; }
.ans .av svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2.6; stroke-linecap: round; vertical-align: -2px; margin-right: 4px; }
.ans .y { color: var(--ok-text); }
.ans .n { color: var(--bad-text); }
.ans .ax { color: var(--text2); font-size: 13px; }

/* итог финала и лидерборд (П2-7) */
.myplace { background: var(--red); border-radius: 22px; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.myplace > small { font: 800 12px var(--head); text-transform: uppercase; letter-spacing: 1.5px; opacity: .85; }
.mpr { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.mpl b { font: italic 900 56px/1 var(--head); }
.mpl span { font: italic 900 22px var(--head); margin-left: 6px; }
.mpl em { font: 700 15px/1.35 var(--body); font-style: normal; display: block; max-width: 200px; }
.mps { text-align: right; }
.mps b { display: block; font: italic 900 28px var(--head); }
.mps span { font-size: 13px; opacity: .9; }
.mpreg { font-size: 14px; }
.seg.big { padding: 4px; border-radius: 14px; }
.seg.big button { padding: 10px; font-size: 14px; font-weight: 700; border-radius: 10px; }
.lb { display: flex; flex-direction: column; margin-top: 6px; }
.lbr { display: flex; gap: 12px; align-items: center; padding: 10px 4px; border-bottom: 1px solid var(--card2); }
.lbr .rk { width: 28px; font: 900 16px var(--head); color: var(--muted); text-align: center; flex: none; }
.lbr .rk.r1 { color: var(--warn); }
.lbr .rk.r3 { color: #e8955a; }
.lbr .who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lbr .who b { font-size: 15px; }
.lbr .who small { font-size: 12.5px; color: var(--muted); }
.lbr .sc { font-size: 15px; }
.lbr .tm { font-size: 13px; color: var(--muted); min-width: 52px; text-align: right; }
.lbr.me { border: 1.5px solid var(--red); border-radius: 14px; background: var(--card); padding: 10px 12px; margin-top: 4px; }
.lbgap { text-align: center; color: var(--muted); letter-spacing: 3px; }

/* призы (П1-7): витрина 2×2, баланс, заявка листом, карточка в ленте до открытия магазина */
.balance { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; }
.balance small { display: block; font-size: 14px; color: var(--text2); }
.balance b { font: italic 900 34px/1.1 var(--head); }
.balance span { font: 900 15px var(--head); color: var(--text2); }
.banner.left { text-align: left; }
.pgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pcard { background: var(--navy2); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; }
.pimg { display: block; position: relative; overflow: hidden; background: var(--card2); aspect-ratio: 4 / 3; }
.pimg img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.pin { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.pin b { font-size: 14.5px; line-height: 1.25; }
.pin small { font-size: 12.5px; color: var(--muted); }
.pin .pp { margin-top: auto; padding-top: 6px; font: 900 15px var(--head); color: var(--text2); }
.pin .pn { font-size: 12.5px; color: var(--red-text); }
.pbtn { margin-top: auto; display: flex; justify-content: space-between; align-items: center; background: var(--red); color: #fff; border: 0; border-radius: 12px; padding: 9px 12px; font: 800 14px var(--body); cursor: pointer; }
.pbtn b { font: 900 15px var(--head); }
.sheet .grab { display: block; width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: -6px auto 4px; }
.sheet .ph { display: flex; gap: 14px; align-items: center; }
.sheet .ph .pimg { width: 76px; height: 76px; border-radius: 16px; overflow: hidden; flex: none; aspect-ratio: auto; }
.sheet .li b { color: #fff; }
.flow { display: flex; gap: 6px; font-size: 12.5px; color: var(--muted); }
.flow div { flex: 1; border-top: 3px solid var(--line); padding-top: 6px; }
.flow div.on { border-color: var(--red); color: #fff; font-weight: 700; }
.soon { display: flex; flex-direction: column; gap: 10px; background: var(--card); border: 2px solid var(--warn); border-radius: 18px; padding: 14px 16px; color: #fff; text-align: left; width: 100%; font: inherit; cursor: pointer; }
.soon small { font: 800 12px var(--head); text-transform: uppercase; letter-spacing: 1.2px; color: var(--warn); }
.soon > b { font: 900 19px/1.2 var(--head); text-transform: uppercase; }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.thumbs span { display: block; position: relative; aspect-ratio: 1; border-radius: 12px; background: var(--card2); overflow: hidden; }
.thumbs img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.thumbs small { display: block; font: 400 11.5px/1.3 var(--body); text-transform: none; letter-spacing: 0; color: var(--text2); margin-top: 4px; }
.soon .how { border-top: 1px solid var(--line); padding-top: 10px; font-size: 14px; }
#run { display: flex; flex-direction: column; gap: 14px; }
.qk:empty { display: none; }

/* поле сообщения внизу, круглая кнопка-стрелка; чат поддержки; ответ организатора (П2-6) */
.compose { position: sticky; bottom: 0; z-index: 5; background: var(--navy2); border-top: 1px solid var(--line); margin: 0 -16px; padding: 10px 12px calc(var(--safe-bot) + 10px); display: flex; gap: 10px; align-items: flex-end; }
.compose textarea { background: var(--navy); border: 1.5px solid var(--line); border-radius: 24px; padding: 12px 18px; }
.send { width: 48px; height: 48px; border-radius: 50%; background: var(--red); border: 0; display: grid; place-items: center; cursor: pointer; flex: none; transition: background .18s; }
.send:active { background: var(--red2); }
.send svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.chatwrap { min-height: calc(100vh - var(--safe-top) - 150px); display: flex; flex-direction: column; gap: 14px; }
.chatwrap .bubs { margin-top: auto; }
.daysep { text-align: center; margin: 6px 0; }
.daysep span { background: var(--card); color: var(--muted); border-radius: 999px; padding: 4px 12px; font-size: 13px; }
.bub { font-size: 15.5px; line-height: 1.4; padding: 12px 14px; border-radius: 20px; }
.bub em { display: block; font-style: normal; font-weight: 700; color: var(--warn); font-size: 13.5px; margin-bottom: 2px; }
.bub small { text-align: right; }
.faq { display: flex; flex-direction: column; gap: 8px; }
.faq > div:last-child { display: flex; flex-wrap: wrap; gap: 8px; }
.chipbtn { background: none; border: 1.5px solid var(--line); border-radius: 999px; padding: 8px 14px; color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; }
.body.full { min-height: calc(100vh - var(--safe-top) - 64px); }
.compose { margin-top: auto; }

/* кик-офф (П2-8) */
.more { color: var(--red-text); font-weight: 700; text-decoration: none; font-size: 14px; align-self: flex-start; }
.thumbs.plain { background: none; border: 0; padding: 0; text-align: left; cursor: pointer; color: #fff; width: 100%; }
.stickybtn { position: sticky; bottom: 0; background: var(--navy); border-top: 1px solid var(--line); margin: 0 -16px; padding: 12px 16px calc(var(--safe-bot) + 12px); }

/* уведомления отдельным шагом (П2-9) */
.ni { width: 30px; height: 30px; border-radius: 8px; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font: italic 900 10px var(--head); flex: none; }
.ni i { color: var(--red); }
ul.dots { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15.5px; }
ul.dots li { display: flex; gap: 12px; align-items: baseline; }
ul.dots li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); flex: none; transform: translateY(-2px); }

/* «Входящие» (П3-1) */
.msg { align-items: center; }
.msg .ic { width: 42px; height: 42px; border-radius: 12px; }
.msg > div { flex: 1; min-width: 0; }
.msg b { font-weight: 600; font-size: 15px; }
.msg.new b { font-weight: 800; }
.msg.new .ic svg { stroke: var(--red-text); }
.msg time { align-self: flex-start; margin-top: 2px; }
.msg .dot { align-self: flex-start; margin: 7px 0 0 -4px; }
.chatpin { border: 1px solid var(--line); border-radius: 18px; padding: 14px; background: var(--card); }
.chatpin .ci { width: 48px; height: 48px; border-radius: 14px; background: var(--red); display: grid; place-items: center; flex: none; }
.chatpin .ci svg { width: 24px; height: 24px; stroke: #fff; fill: none; stroke-width: 2; }
.chatpin .cpm { flex: 1; min-width: 0; }
.chatpin .cpm b { font-size: 16px; }
.chatpin .cpm span { display: block; color: var(--text2); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chatpin time { font-size: 12.5px; color: var(--muted); }
.chatpin .cnt { background: var(--red); color: #fff; border-radius: 999px; min-width: 24px; height: 24px; display: grid; place-items: center; font: 700 12.5px var(--body); flex: none; }

/* Safari iOS 26+: плавающая панель браузера внизу поверх страницы — высота экрана по видимой области (dvh), иначе
   кнопки внизу экрана («Дальше», «Поехали», поле сообщения) уходят под панель (проверка в симуляторе, 26.11.2026) */
.screen { min-height: 100dvh; }
.body.full { min-height: calc(100dvh - var(--safe-top) - 64px); }
.chatwrap { min-height: calc(100dvh - var(--safe-top) - 150px); }
.quizrun { min-height: 100dvh; }

/* Лента — вход в тренировки (26.11.2026; сегодняшний день — .day.now: «.top» — это липкая шапка приложения): день сверху — факт крупно, две истории плитками, «Играть»; прошлые дни —
   итог игры и истории строками; до старта — карточка «Старт» с правилами. Вкладки «Квиз» нет. */
.day { display: flex; flex-direction: column; gap: 10px; }
.dh { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.dh small { flex-basis: 100%; font: 800 12px var(--head); text-transform: uppercase; letter-spacing: 1.2px; color: var(--muted); }
.day.now .dh small { color: var(--red-text); }
.dh b { font: 700 15px var(--body); }
.dh em { margin-left: auto; font: 400 13px var(--body); font-style: normal; color: var(--muted); }
.playbtn { display: flex; align-items: center; gap: 12px; width: 100%; border: 1.5px solid var(--red); background: transparent; color: #fff; border-radius: 16px; padding: 12px 16px; text-align: left; cursor: pointer; }
.playbtn > div { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.playbtn small { font: 800 11px var(--head); text-transform: uppercase; letter-spacing: 1px; color: var(--red-text); }
.playbtn b { font: 900 18px/1.1 var(--head); text-transform: uppercase; }
.playbtn span { font-size: 13px; color: var(--text2); }
.playbtn i { font-style: normal; font: 800 22px var(--head); }
.playbtn.big { background: var(--red); border-color: var(--red); padding: 16px 18px; border-radius: 20px; }
.playbtn.big small { color: #ffffffcc; }
.playbtn.big b { font-size: 26px; }
.playbtn.big span { color: #ffffffe6; }
.res { display: flex; flex-direction: column; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; color: #fff; text-align: left; width: 100%; font: inherit; }
button.res { cursor: pointer; }
.res .rh { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.res .rh small { flex-basis: 100%; display: flex; align-items: center; gap: 5px; font: 800 11px var(--head); text-transform: uppercase; letter-spacing: 1px; color: var(--ok-text); }
.res .rh small svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 3; }
.res .rh b { font: 900 24px var(--head); }
.res .rh span { color: var(--muted); font-size: 13.5px; }
.rbar { height: 8px; border-radius: 4px; background: var(--card2); overflow: hidden; }
.rbar i { display: block; height: 100%; background: var(--ok); border-radius: 4px; }
.res .rl { font-size: 14px; }
.res .ra { display: flex; justify-content: space-between; gap: 12px; margin-top: 4px; }
.nextl { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text2); }
.nextl svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; flex: none; }
.start { background: var(--red); border-radius: 22px; padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.start small { font: 800 12px var(--head); text-transform: uppercase; letter-spacing: 1.4px; opacity: .9; }
.start > b { font: 900 22px/1.15 var(--head); text-transform: uppercase; }
.how { margin: 0 0 6px; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; }
.how span { opacity: .8; white-space: nowrap; }
.pushask { display: flex; align-items: center; gap: 12px; }
.pushask > div { flex: 1; display: flex; align-items: center; gap: 8px; font-size: 14px; }
.pushask svg { width: 20px; height: 20px; stroke: var(--warn); fill: none; stroke-width: 2; flex: none; }
.pushask .btn { width: auto; padding: 10px 14px; }
/* экран истории: «Дальше» закреплена внизу */
.tbtn.nextb { border: 0; }
.stickybtn { margin-top: auto; }          /* на короткой истории «Дальше» — у нижнего края, а не посреди экрана */
.body.full > .stickybtn:last-child { margin-bottom: calc(-1 * (var(--safe-bot) + 24px)); }
/* кик-офф в ленте (26.11.2026): у каждого руководителя заготовка под видео, лозунг, абзац; «Начнём игру» — над вкладками */
.kickoff .kimg img { border-radius: 16px; }
.kickoff .lead { color: var(--text2); }
.kleader { background: var(--card); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.kleader .media { border-radius: 12px; overflow: hidden; }
.vph { aspect-ratio: 16 / 9; border-radius: 12px; border: 1.5px dashed var(--line); background: #0b1a36; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px; color: var(--muted); font-size: 13px; }
.vph svg { width: 34px; height: 34px; fill: var(--muted); stroke: none; }
.kleader .ln { display: flex; flex-direction: column; }
.kleader .ln b { font: 800 15px var(--head); text-transform: uppercase; }
.kleader .ln small { color: var(--muted); font-size: 12.5px; }
.startpad { height: 76px; }
.startbar { position: fixed; left: 0; right: 0; bottom: calc(var(--safe-bot) + 62px); z-index: 19; padding: 10px 16px;
  background: linear-gradient(to top, var(--navy) 70%, #08142b00); display: flex; justify-content: center; }
.startbar .btn { max-width: 528px; }
.startbar .btn:disabled { font: 700 14.5px var(--body); text-transform: none; letter-spacing: 0; }
.txt.clamp3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
/* Овечкин приглашает в игру — крупный блок на всю ширину: фото во весь блок, снизу затемнение, крупный призыв;
   «Начнём игру» — сразу под блоком (фото временное, итоговое — от заказчика) */
.invite { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 4.4; background: var(--red2); margin-top: 6px; }
.invite img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 35% 15%; }
.invite::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, #08142b00 30%, #08142bcc 62%, var(--red2) 100%); }
.ivin { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 20px 20px 22px; }
.ivin small { display: block; font: 800 13px var(--head); text-transform: uppercase; letter-spacing: 1.6px; color: #ffffffd9; }
.ivin b { display: block; font: 900 44px/1 var(--head); text-transform: uppercase; color: #fff; margin-top: 6px; letter-spacing: .3px; }
/* «Как это работает» — пункты с иконками (26.11.2026) */
.howto { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.howto li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; line-height: 1.4; color: var(--text2); }
.howto li b { color: #fff; }
.howto i { width: 32px; height: 32px; border-radius: 50%; background: var(--card2); display: grid; place-items: center; flex: none; }
.howto i svg { width: 17px; height: 17px; stroke: var(--red-text); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* история в ленте раскрыта; заготовка под видео руководителя — на всю ширину карточки */
.post .vph { border: 0; border-radius: 0; border-bottom: 1.5px dashed var(--line); }
.post .more { display: block; padding: 4px 0 0; color: var(--red-text); font: 700 13.5px var(--body); text-decoration: none; }
.post .cta { margin-top: 8px; }
/* разделитель между днями: линия и плашка с датой */
.sep { display: flex; align-items: center; gap: 10px; margin: 14px 0 2px; }
.sep:first-child { margin-top: 4px; }
.sep::before, .sep::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.sep span { font: 800 12px var(--head); text-transform: uppercase; letter-spacing: 1px; color: var(--text2); background: var(--card);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; white-space: nowrap; }
.sep.now span { background: var(--red); border-color: var(--red); color: #fff; }
.sep.now::before, .sep.now::after { background: var(--red); opacity: .6; }
.review { display: flex; flex-direction: column; gap: 10px; scroll-margin-top: 80px; }
.review .ax { color: var(--text2); }

/* Установка на iPhone — все шаги лентой, у шага кусок настоящего экрана Safari (решение владельца 26.11.2026) */
.howios { padding-bottom: calc(var(--safe-bot) + 24px); }
.isteps { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.isteps li { display: flex; flex-direction: column; gap: 10px; }
.ist { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.4; }
.ist i { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--red); color: #fff; font: 800 14px/28px var(--head); font-style: normal; text-align: center; }
.ist span { padding-top: 3px; }
.ist .en { color: var(--muted); white-space: nowrap; }
.isteps img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); }
.isteps img.iico { width: 72px; border-radius: 16px; margin-left: 40px; }
.isteps .mut.small { margin: 0 0 0 40px; }
/* Уведомления — одна мысль и кнопка */
.nbell { width: 72px; height: 72px; margin: 0 auto; border-radius: 50%; background: var(--card); display: grid; place-items: center; }
.nbell svg { width: 34px; height: 34px; stroke: var(--red); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.notify .lead { margin-top: -8px; text-wrap: balance; }

/* ---------- отклик на нажатия (ovi/web/netlog.js, 30.11.2026: «нажал — непонятно, что-то происходит или нет») ---------- */
/* касание: сразу видно, что нажалось */
button:not(:disabled):active, .btn:active, .tbtn:active, .opt:not(:disabled):active, [data-go]:active { opacity: .7; transition: none; }
/* нажатие ждёт ответа сервера: значок крутится, повторно не нажать */
.busy { pointer-events: none; cursor: progress; }
.busy::after { content: ""; display: inline-block; flex: none; width: 14px; height: 14px; margin-left: 8px; vertical-align: -2px;
  border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: ovispin .7s linear infinite; }
@keyframes ovispin { to { transform: rotate(360deg); } }
/* бегущая полоска сверху, пока идут запросы, которые запустил человек */
#loadbar { position: fixed; left: 0; right: 0; top: var(--safe-top); height: 3px; z-index: 61; overflow: hidden; pointer-events: none;
  opacity: 0; transition: opacity .15s; }
#loadbar.on { opacity: 1; }
#loadbar::before { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; background: var(--red); border-radius: 3px;
  animation: oviload 1.1s ease-in-out infinite; }
@keyframes oviload { from { left: -40%; } to { left: 100%; } }
/* ответа нет дольше 5 с */
.slownote { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--safe-bot) + 84px); z-index: 49;
  max-width: calc(100% - 32px); padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; text-align: center;
  background: #fff; color: #14223e; box-shadow: 0 4px 14px #0006; }
@media (prefers-reduced-motion: reduce) { #loadbar::before { animation-duration: 2.5s; } .busy::after { animation-duration: 1.4s; } }

/* оферта (30.11.2026): текст прокручивается внутри, галочки и кнопка всегда видны */
.screen.offer { justify-content: flex-start; gap: 14px; padding-top: calc(var(--safe-top) + 24px); padding-bottom: calc(var(--safe-bot) + 16px); min-height: 100dvh; }
.screen.offer .logo.mid { margin: 0; }
.screen.offer h1 { margin: 0; }
.offertext { flex: 1 1 auto; min-height: 180px; max-height: 52dvh; overflow-y: auto; -webkit-overflow-scrolling: touch; background: var(--card);
  border-radius: 14px; padding: 14px 16px; font-size: 14px; line-height: 1.5; white-space: pre-line; color: var(--text2); }
.offerchecks { display: flex; flex-direction: column; gap: 10px; }
.chk { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.chk input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--red); }
.screen.offer .btn:disabled { opacity: .45; }

/* итог игры: доля верных и время — два равных блока (30.11.2026) */
.sct { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.sct > div { background: var(--card2); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; text-align: left; }
.sct b { font: 900 30px/1 var(--head); color: #fff; }
.sct span { font-size: 13px; color: var(--muted); }
.sct.lg b { font-size: 40px; }
.sct.onred > div { background: rgba(0, 0, 0, .18); }
.sct.onred span { color: #fff; opacity: .85; }

/* облако синхронизации в шапке (30.11.2026) */
.sync { display: flex; align-items: center; gap: 4px; background: none; border: 0; color: var(--muted); cursor: pointer; padding: 6px 4px; margin-right: 6px; min-height: 40px; }
.sync svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sync small { font-size: 11.5px; white-space: nowrap; }
.sync.ok { color: var(--ok-text); }
.sync.ok small { color: var(--muted); }
.sync.ing svg { animation: ovisync 1s ease-in-out infinite alternate; }
.sync.wait { color: var(--warn); }
.sync.off, .sync.err { color: var(--dim); }
@keyframes ovisync { from { opacity: 1; } to { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .sync.ing svg { animation: none; opacity: .6; } }
.ava { position: relative; }
.ava .bdg { top: -4px; left: auto; right: -6px; }
.tabs .in.two { max-width: 420px; }
.tabs .in.three { max-width: 480px; }
.tab .ava.mini { width: 24px; height: 24px; margin: 0 auto 2px; font-size: 9px; background: var(--card2); color: var(--dim); position: static; cursor: inherit; }
.tab .ava.mini.org { font-size: 7px; }
.tab.on .ava.mini { background: var(--red); color: #fff; }

/* первая загрузка */
.pbar2 { width: 100%; height: 8px; border-radius: 99px; background: var(--card2); overflow: hidden; }
.pbar2 i { display: block; height: 100%; background: var(--red); border-radius: 99px; transition: width .3s; }

/* профиль: мои тренировки */
.prof { display: flex; gap: 14px; align-items: center; }
.prof .ava { width: 60px; height: 60px; font-size: 18px; cursor: default; }
.prof b { font-size: 17px; }
.trn { background: var(--card); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.trn .dayhead { margin: 0; }
.tcols { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; align-items: end; }
.tcol { display: flex; flex-direction: column; align-items: center; gap: 4px; background: none; border: 0; padding: 0; color: #fff; font: inherit; cursor: pointer; }
div.tcol { cursor: default; }
.tcol .tv { font: 700 12px var(--body); }
.tcol .tv svg { width: 13px; height: 13px; stroke: var(--dim); fill: none; stroke-width: 2; }
.tbar { height: 92px; width: 100%; display: flex; align-items: flex-end; }
.tcol i.hi { background: #1fa37a; }
.tcol i.mid { background: #e8a93a; }
.tcol i.lo { background: #d9465a; }
.tcol i { display: block; width: 100%; border-radius: 7px; }
.tcol i.todo { height: 100%; border: 1.5px dashed var(--red-text); box-sizing: border-box; }
.tcol small { font-size: 11px; color: var(--muted); text-align: center; line-height: 1.3; }
.tcol .play { color: var(--red-text); }
.tcol i.lock { height: 100%; border: 1px solid var(--line); background: var(--navy2); box-sizing: border-box; }
.li .cnt { background: var(--red); color: #fff; border-radius: 99px; padding: 0 7px; font-size: 12px; }

/* квиз: закреплённый финал с отсчётом, строки тренировок */
.fpin { background: var(--red); border-radius: 22px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.fpin > small { font: 800 12px var(--head); text-transform: uppercase; letter-spacing: 1.5px; opacity: .9; }
.fsub { font-size: 14px; font-weight: 600; }
.fnote, .fpl { font-size: 13.5px; opacity: .92; }
.cdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cdown > div { background: rgba(0, 0, 0, .2); border-radius: 12px; padding: 8px 4px; text-align: center; display: flex; flex-direction: column; }
.cdown b { font: 900 28px/1.1 var(--head); font-variant-numeric: tabular-nums; }
.cdown span { font-size: 11.5px; opacity: .85; }
.btn.light { background: #fff; color: var(--red); }
.qrows { display: flex; flex-direction: column; gap: 8px; }
.qrow { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--card); border: 0; border-radius: 14px; padding: 12px 14px; color: #fff; text-align: left; font: inherit; cursor: pointer; width: 100%; }
.qrow small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.qrow .qr { text-align: right; flex: none; }
.qrow .qr b { display: block; font: 900 20px var(--head); }
.qrow .qr span { font-size: 12.5px; color: var(--muted); }
.qrow .qr .play { font: 700 14px var(--body); color: var(--red-text); }
.card.prize { display: flex; gap: 10px; align-items: flex-start; }
.card.prize svg { width: 22px; height: 22px; flex: none; stroke: var(--warn); fill: none; stroke-width: 2; }

/* «Играть» под замком — пока нет реакций на все истории дня (30.11.2026) */
.playbtn.locked { background: var(--card); border: 1.5px dashed var(--line); cursor: default; }
.playbtn.locked b { display: flex; align-items: center; gap: 8px; font-size: 18px; }
.playbtn.locked b svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.2; }
.qrow .qr .play svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.2; vertical-align: -2px; }
.playbtn.locked b { font-size: 17px; }
.playbtn.locked span { text-transform: none; letter-spacing: 0; font: 400 13.5px var(--body); color: var(--muted); }

/* истории дня по одной (30.11.2026) */
.tbtn.nextb.wait { opacity: .8; cursor: default; }
.tbtn.nextb.wait svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }
.dbgnext { border-color: var(--warn); color: var(--warn); }
