/* WILCARD Survey — те же токены, что у визиток WILCARD («Cardo — тёмный премиум»). */
:root {
  --k-bg: #0B0D0F;
  --k-bg-deep: #07090A;
  --k-bar: #0E1113;
  --k-surface: #14181B;
  --k-surface-2: #1A1F23;
  --k-border: rgba(255, 255, 255, 0.07);
  --k-border-strong: rgba(255, 255, 255, 0.14);
  --k-text: #F2F5F4;
  --k-muted: #8A9491;
  --k-muted2: #94A09D;
  --k-dim: #5C6664;
  --k-accent: #00C2A8;
  --k-on-accent: #052722;
  --k-accent-soft: rgba(0, 194, 168, 0.14);
  --k-danger: #FF3D6E;
  --k-warn: #FFB547;
  --k-font: 'Hanken Grotesk', 'HK Grotesk', -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;
  --k-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html, body, #app { min-height: 100%; }
html { color-scheme: dark; }
body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
  background: var(--k-bg);
  color: var(--k-text);
  font-family: var(--k-font);
  font-size: 15px;
  line-height: 1.45;
}
img, svg { max-width: 100%; }
button, input, select, textarea { font-family: inherit; }
a { color: var(--k-accent); text-decoration: none; }
:focus-visible { outline: 2px solid var(--k-accent); outline-offset: 2px; }
[hidden] { display: none !important; }

/* --- Общие компоненты ---------------------------------------------------- */
.k-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 22px; border: 0; border-radius: 16px;
  font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; text-decoration: none;
  transition: transform .15s ease, opacity .15s ease, background .15s ease;
  white-space: nowrap;
}
.k-btn:active { transform: translateY(1px); }
.k-btn:disabled { opacity: .45; cursor: default; transform: none; }
.k-btn--primary { background: var(--k-accent); color: var(--k-on-accent); box-shadow: 0 12px 32px rgba(0,194,168,.28); }
.k-btn--light { background: var(--k-text); color: var(--k-bg); }
.k-btn--secondary { background: var(--k-accent-soft); color: var(--k-accent); }
.k-btn--ghost { background: rgba(255,255,255,.06); color: var(--k-text); }
.k-btn--tertiary { background: transparent; color: var(--k-muted2); min-height: 44px; font-weight: 400; font-size: 14px; }
.k-btn--danger { background: transparent; color: var(--k-danger); border: 1px solid rgba(255,61,110,.35); }
.k-btn--sm { min-height: 38px; padding: 0 14px; font-size: 14px; border-radius: 12px; }
.k-btn--block { width: 100%; }

.k-chip {
  flex: none; height: 32px; padding: 0 13px; border-radius: 999px;
  border: 1px solid var(--k-border-strong); background: transparent; color: var(--k-muted);
  font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap;
}
.k-chip.is-on { background: var(--k-accent); border-color: var(--k-accent); color: var(--k-on-accent); }

.k-surface { padding: 18px; border-radius: 20px; background: var(--k-surface); border: 1px solid var(--k-border); }
.k-eyebrow { margin: 0; font-family: var(--k-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--k-accent); }
.k-label { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--k-muted2); }
.k-h1 { margin: 0; font-size: 42px; font-weight: 600; line-height: 1.08; letter-spacing: -.03em; }
.k-h2 { margin: 0; font-size: 26px; font-weight: 600; line-height: 1.15; letter-spacing: -.02em; }
.k-h3 { margin: 0; font-size: 17px; font-weight: 600; }
.k-sub { margin: 0; font-size: 15px; line-height: 1.55; color: var(--k-muted); text-wrap: pretty; }
.k-hint { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--k-muted2); }
.k-mono { font-family: var(--k-mono); font-size: 12px; color: var(--k-muted2); word-break: break-all; }
.k-danger { color: var(--k-danger); }

.k-field {
  display: flex; flex-direction: column; gap: 6px; padding: 12px 16px; border-radius: 14px;
  background: var(--k-surface); border: 1px solid var(--k-border); transition: border-color .15s ease;
}
.k-field:focus-within { border-color: rgba(0,194,168,.5); }
.k-field > span { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--k-muted2); }
.k-field:focus-within > span { color: var(--k-accent); }
.k-field input, .k-field textarea, .k-field select {
  width: 100%; padding: 0; border: 0; background: transparent; color: var(--k-text);
  font: inherit; font-size: 17px; line-height: 1.35;
}
.k-field input:focus, .k-field textarea:focus, .k-field select:focus { outline: none; }
.k-field input::placeholder, .k-field textarea::placeholder { color: var(--k-dim); }
.k-field textarea { resize: vertical; min-height: 72px; }
.k-field select option { background: var(--k-surface); color: var(--k-text); }

.k-glow { position: absolute; width: 420px; height: 420px; border-radius: 999px; pointer-events: none;
  background: radial-gradient(circle, rgba(0,194,168,.30) 0%, rgba(0,194,168,0) 68%); }
.k-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--k-text); font-size: 13px; font-weight: 600; letter-spacing: .24em; text-decoration: none; }
.k-brand::before { content: ''; width: 9px; height: 9px; border-radius: 999px; background: var(--k-accent); }
.k-brand small { letter-spacing: .12em; color: var(--k-muted); font-weight: 500; }

.k-badge { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .04em; }
.k-badge--draft { background: rgba(255,255,255,.08); color: var(--k-muted2); }
.k-badge--live { background: var(--k-accent-soft); color: var(--k-accent); }
.k-badge--live::before { content: ''; width: 7px; height: 7px; border-radius: 999px; background: var(--k-accent); animation: pulse 1.4s ease-in-out infinite; }
.k-badge--finished { background: rgba(255,181,71,.14); color: var(--k-warn); }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1);} 50% { opacity: .4; transform: scale(.7);} }

.k-toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 50;
  padding: 12px 18px; border-radius: 14px; background: var(--k-text); color: var(--k-bg); font-weight: 600; font-size: 14px;
  box-shadow: 0 16px 40px rgba(0,0,0,.5); animation: toast .25s ease; }
.k-toast--err { background: var(--k-danger); color: #fff; }
@keyframes toast { from { opacity: 0; transform: translate(-50%, 10px);} to { opacity: 1; transform: translate(-50%, 0);} }

.page { position: relative; min-height: 100dvh; overflow: hidden; padding: 0 20px 48px; }
.nav { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 12px; max-width: 1180px; margin: 0 auto; padding: 22px 0; }
.nav__right { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.wrap { position: relative; max-width: 1180px; margin: 0 auto; }
.wrap--narrow { max-width: 560px; }

/* --- Лендинг --------------------------------------------------------------- */
.ld-glow { top: -160px; right: -140px; }
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; padding: 30px 0 60px; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; padding-top: 10px; } }
.hero .k-h1 { font-size: clamp(34px, 5.2vw, 54px); }
.accent { color: var(--k-accent); }
.hero__lead { margin: 20px 0 28px; font-size: 16px; max-width: 46ch; }
.start { display: flex; flex-direction: column; gap: 10px; max-width: 440px; }
.hero__demo { position: relative; height: 420px; }
@media (max-width: 900px) { .hero__demo { height: 320px; } }
.demo-bubble { position: absolute; padding: 10px 16px; border-radius: 999px; background: var(--k-surface); border: 1px solid var(--k-border-strong); font-weight: 600; white-space: nowrap; box-shadow: 0 16px 40px rgba(0,0,0,.45); animation: float 6s ease-in-out infinite; }
.demo-bubble--accent { background: var(--k-accent); color: var(--k-on-accent); border-color: transparent; }
@keyframes float { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-14px);} }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; padding-bottom: 60px; }
.steps article h3 { margin: 12px 0 8px; font-size: 16px; font-weight: 600; }
.steps article p:last-child { margin: 0; color: var(--k-muted); font-size: 13.5px; line-height: 1.55; }
.recent { padding-bottom: 60px; }
.recent__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-top: 14px; }
.recent__item { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: 16px; background: var(--k-surface); border: 1px solid var(--k-border); color: var(--k-text); transition: border-color .15s; }
.recent__item:hover { border-color: var(--k-border-strong); }
.recent__item strong { font-size: 15px; }
.foot { display: flex; justify-content: space-between; align-items: center; max-width: 1180px; margin: 0 auto; padding: 24px 0 0; color: var(--k-dim); font-size: 13px; border-top: 1px solid var(--k-border); }

/* --- Ведущий -------------------------------------------------------------- */
.adm-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-bottom: 20px; }
.adm-title { flex: 1 1 320px; display: flex; flex-direction: column; gap: 4px; }
.adm-title input { width: 100%; border: 0; background: transparent; color: var(--k-text); font: inherit; font-size: 28px; font-weight: 600; letter-spacing: -.02em; padding: 0; }
.adm-title input::placeholder { color: var(--k-dim); }
.adm-title input:focus { outline: none; }
.adm-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
@media (max-width: 960px) { .adm-grid { grid-template-columns: 1fr; } }
.adm-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 16px; }
@media (max-width: 960px) { .adm-side { position: static; } }

.links { display: flex; flex-direction: column; gap: 10px; }
.link-card { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border-radius: 16px; background: var(--k-surface); border: 1px solid var(--k-border); }
.link-card__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.link-card__head .k-h3 { font-size: 15px; }
.link-card__url { display: flex; align-items: center; gap: 8px; }
.link-card__url .k-mono { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; word-break: normal; }
.link-card--join { border-color: rgba(0,194,168,.35); }
.join-row { display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: center; }
.join-row .qr { width: 120px; height: 120px; padding: 8px; border-radius: 14px; background: #fff; }
.join-row .qr svg { width: 100%; height: 100%; display: block; }
.join-code { font-family: var(--k-mono); font-size: 30px; font-weight: 700; letter-spacing: .14em; color: var(--k-text); }

.q-list { display: flex; flex-direction: column; gap: 10px; }
.q-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 14px 14px 14px 12px; border-radius: 18px; background: var(--k-surface); border: 1px solid var(--k-border); transition: border-color .15s; }
.q-row.is-open { border-color: var(--k-accent); box-shadow: 0 0 0 1px rgba(0,194,168,.35), 0 12px 40px rgba(0,194,168,.12); }
.q-row.is-closed { opacity: .85; }
.q-row__ord { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: rgba(255,255,255,.06); font-family: var(--k-mono); font-size: 13px; color: var(--k-muted2); }
.q-row.is-open .q-row__ord { background: var(--k-accent); color: var(--k-on-accent); }
.q-row__main { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.q-row__text { width: 100%; border: 0; background: transparent; color: var(--k-text); font: inherit; font-size: 17px; line-height: 1.35; resize: none; padding: 0; min-height: 24px; }
.q-row__text:focus { outline: none; }
.q-row__text::placeholder { color: var(--k-dim); }
.q-row__meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.q-row__meta .sel { height: 32px; padding: 0 30px 0 12px; border-radius: 999px; border: 1px solid var(--k-border-strong); background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%238A9491' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") no-repeat right 12px center; color: var(--k-text); font: inherit; font-size: 13px; appearance: none; }
.q-row__meta .sel option { background: var(--k-surface); }
.timer-in { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 6px 0 12px; border-radius: 999px; border: 1px solid var(--k-border-strong); font-size: 13px; color: var(--k-muted); }
.timer-in input { width: 48px; border: 0; background: transparent; color: var(--k-text); font: inherit; font-size: 13px; text-align: right; padding: 0; -moz-appearance: textfield; }
.timer-in input::-webkit-outer-spin-button, .timer-in input::-webkit-inner-spin-button { -webkit-appearance: none; }
.timer-in input:focus { outline: none; }
.q-row__actions { display: flex; flex-direction: column; gap: 4px; }
.icon-btn { width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: var(--k-muted); cursor: pointer; font-size: 15px; }
.icon-btn:hover { background: rgba(255,255,255,.06); color: var(--k-text); }
.icon-btn:disabled { opacity: .3; cursor: default; background: transparent; }
.icon-btn--danger:hover { color: var(--k-danger); }
.q-add { display: flex; gap: 10px; align-items: center; margin-top: 12px; flex-wrap: wrap; }

.live-card { display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: 20px; background: linear-gradient(160deg, rgba(0,194,168,.16), rgba(0,194,168,.02)), var(--k-surface); border: 1px solid rgba(0,194,168,.35); }
.live-card__top { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
.live-card__q { font-size: 22px; font-weight: 600; line-height: 1.25; letter-spacing: -.01em; }
.live-card__ctrl { display: flex; gap: 8px; flex-wrap: wrap; }
.stat { display: flex; gap: 18px; flex-wrap: wrap; }
.stat div { display: flex; flex-direction: column; gap: 2px; }
.stat b { font-size: 22px; font-weight: 600; letter-spacing: -.02em; }

.ans-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ans-table th { text-align: left; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--k-muted2); font-weight: 500; padding: 6px 8px; border-bottom: 1px solid var(--k-border); }
.ans-table td { padding: 8px; border-bottom: 1px solid var(--k-border); vertical-align: top; }
.ans-table td.val { font-weight: 500; }
.ans-table td.name { color: var(--k-muted); white-space: nowrap; }
.ans-table td.time { color: var(--k-dim); font-family: var(--k-mono); font-size: 12px; white-space: nowrap; }
.ans-empty { color: var(--k-dim); font-size: 14px; padding: 8px 0; }
.q-row__answers { margin-top: 6px; }
.q-row__toggle { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: transparent; color: var(--k-muted2); font: inherit; font-size: 13px; cursor: pointer; }
.q-row__toggle:hover { color: var(--k-text); }

.hist { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; align-items: end; height: 72px; margin: 8px 0 2px; }
.hist div { position: relative; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }
.hist i { display: block; min-height: 2px; border-radius: 4px 4px 2px 2px; background: var(--k-accent-soft); transition: height .4s cubic-bezier(.22,1,.36,1); }
.hist i.is-top { background: var(--k-accent); }
.hist b { position: absolute; left: 0; right: 0; bottom: -18px; text-align: center; font-family: var(--k-mono); font-size: 11px; font-weight: 500; color: var(--k-dim); }
.hist-wrap { padding-bottom: 20px; }

/* --- Участник ------------------------------------------------------------- */
.pt { max-width: 560px; margin: 0 auto; padding: 18px 0; display: flex; flex-direction: column; gap: 16px; min-height: calc(100dvh - 48px); }
.pt__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pt__title { flex: 1; min-width: 0; font-size: 13px; color: var(--k-muted); text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt__wait { flex: 1; width: 100%; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; padding: 40px 0; }
.pt__wait .start { width: 100%; text-align: left; }
.pt__wait .k-h2 { max-width: 100%; overflow-wrap: anywhere; text-wrap: balance; }
.pt { width: 100%; min-width: 0; }
.pt__wait .dot { width: 14px; height: 14px; border-radius: 999px; background: var(--k-accent); animation: pulse 1.4s ease-in-out infinite; box-shadow: 0 0 40px rgba(0,194,168,.5); }
.pt__q { display: flex; flex-direction: column; gap: 18px; }
.pt__progress { display: flex; justify-content: space-between; align-items: center; }
.pt__question { font-size: clamp(22px, 5.5vw, 30px); font-weight: 600; line-height: 1.2; letter-spacing: -.02em; text-wrap: pretty; }
.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.scale button { height: 56px; border-radius: 14px; border: 1px solid var(--k-border-strong); background: var(--k-surface); color: var(--k-text); font: inherit; font-size: 20px; font-weight: 600; cursor: pointer; transition: all .12s; }
.scale button.is-on { background: var(--k-accent); border-color: var(--k-accent); color: var(--k-on-accent); transform: scale(1.04); }
.scale-legend { display: flex; justify-content: space-between; font-size: 12px; color: var(--k-dim); }
.pt__done { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 28px 18px; border-radius: 20px; background: var(--k-surface); border: 1px solid var(--k-border); }
.pt__done .check { width: 56px; height: 56px; border-radius: 999px; display: grid; place-items: center; background: var(--k-accent-soft); color: var(--k-accent); font-size: 26px; }
.pt__done .mine { font-size: 20px; font-weight: 600; }

/* Кольцо таймера */
.ring { position: relative; width: 64px; height: 64px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 5; }
.ring .bg { stroke: rgba(255,255,255,.08); }
.ring .fg { stroke: var(--k-accent); stroke-linecap: round; transition: stroke-dashoffset .3s linear, stroke .3s; }
.ring.is-late .fg { stroke: var(--k-danger); }
.ring span { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--k-mono); font-size: 15px; font-weight: 600; }
.ring--lg { width: 92px; height: 92px; }
.ring--lg span { font-size: 22px; }
.ring--none span { font-size: 18px; color: var(--k-muted2); }

/* --- Экран ---------------------------------------------------------------- */
.ds { position: relative; height: 100dvh; overflow: hidden; display: flex; flex-direction: column; background: var(--k-bg); }
.ds__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 28px; border-bottom: 1px solid var(--k-border); background: rgba(14,17,19,.7); backdrop-filter: blur(12px); z-index: 2; }
.ds__bar-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--k-muted); font-size: 15px; text-align: center; }
.ds__join { display: flex; align-items: center; gap: 12px; }
.ds__join .k-mono { font-size: 13px; color: var(--k-muted); word-break: normal; }
.ds__join .code { font-family: var(--k-mono); font-size: 20px; font-weight: 700; letter-spacing: .14em; }
.ds__head { display: grid; grid-template-columns: 92px minmax(0, 1fr) 92px; gap: 24px; align-items: center; padding: 26px 40px 10px; z-index: 2; }
.ds__question { text-align: center; font-size: clamp(26px, 3.4vw, 46px); font-weight: 600; line-height: 1.18; letter-spacing: -.025em; text-wrap: balance; }
.ds__count { text-align: center; font-family: var(--k-mono); font-size: 13px; color: var(--k-muted2); letter-spacing: .06em; }
.ds__count b { display: block; font-size: 26px; color: var(--k-text); letter-spacing: 0; }
.ds__stage { position: relative; flex: 1; min-height: 0; }
.ds__glow { left: 50%; top: 50%; width: 720px; height: 720px; transform: translate(-50%, -50%); opacity: .35; }
.ds__wait { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; text-align: center; padding: 20px; }
.ds__qr { width: min(38vh, 340px); height: min(38vh, 340px); padding: 18px; border-radius: 28px; background: #fff; box-shadow: 0 30px 80px rgba(0,0,0,.55); }
.ds__qr svg { width: 100%; height: 100%; display: block; }
.ds__bigcode { font-family: var(--k-mono); font-size: clamp(32px, 5vw, 56px); font-weight: 700; letter-spacing: .18em; }
.ds__closed { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); padding: 10px 18px; border-radius: 999px; background: rgba(255,255,255,.08); color: var(--k-muted2); font-size: 14px; font-weight: 600; letter-spacing: .04em; z-index: 3; backdrop-filter: blur(8px); }
.ds__foot { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 40px 24px; z-index: 3; }
.ds__foot .hist { height: 120px; gap: 8px; }
.ds__foot .hist b { font-size: 14px; bottom: -22px; }
.ds__foot .hist-wrap { padding-bottom: 26px; }
.ds__avg { display: flex; justify-content: center; gap: 30px; margin-bottom: 8px; }
.ds__avg div { text-align: center; }
.ds__avg b { display: block; font-size: 40px; font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.ds__avg span { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--k-muted2); }

.bubble { position: absolute; left: 0; top: 0; will-change: transform; padding: 12px 20px; border-radius: 999px;
  background: var(--k-surface-2); border: 1px solid var(--k-border-strong); color: var(--k-text);
  font-weight: 600; line-height: 1.25; max-width: 34vw; text-wrap: balance; text-align: center;
  box-shadow: 0 18px 50px rgba(0,0,0,.45); animation: pop .55s cubic-bezier(.22,1,.36,1) both; }
.bubble--s1 { font-size: 16px; }
.bubble--s2 { font-size: 20px; }
.bubble--s3 { font-size: 26px; background: var(--k-accent-soft); border-color: rgba(0,194,168,.4); }
.bubble--s4 { font-size: 34px; background: var(--k-accent); color: var(--k-on-accent); border-color: transparent; box-shadow: 0 24px 60px rgba(0,194,168,.35); }
.bubble--num { width: 72px; height: 72px; padding: 0; display: grid; place-items: center; font-size: 28px; font-family: var(--k-mono); max-width: none; }
.bubble sup { font-size: .6em; margin-left: 6px; opacity: .7; font-family: var(--k-mono); }
.bubble.is-leaving { animation: leave .6s ease both; }
@keyframes pop { from { opacity: 0; scale: .3; } to { opacity: 1; scale: 1; } }
@keyframes leave { to { opacity: 0; scale: .6; } }
.ds__thanks { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.ds__thanks .k-h1 { font-size: clamp(36px, 6vw, 80px); }

.err-page { min-height: 100dvh; display: grid; place-items: center; text-align: center; padding: 20px; }

/* Переключатель языка RU · EN — пилюля в шапке. */
.k-langs { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--k-border-strong); background: rgba(255,255,255,.03); }
.k-langs__btn { height: 28px; padding: 0 10px; border: 0; border-radius: 999px; background: transparent; color: var(--k-muted); font: inherit; font-size: 12px; font-weight: 600; letter-spacing: .08em; cursor: pointer; }
.k-langs__btn.is-on { background: var(--k-accent); color: var(--k-on-accent); }
.ds__bar .k-langs { margin-left: 6px; }

/* Вопрос с выбором: редактор вариантов (ведущий), кнопки (участник), полосы (везде). */
.opts { display: flex; flex-direction: column; gap: 6px; padding-top: 4px; }
.opt-row { display: grid; grid-template-columns: 26px minmax(0, 1fr) 32px; gap: 8px; align-items: center; }
.opt-row__n { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; background: rgba(255,255,255,.06); font-family: var(--k-mono); font-size: 12px; color: var(--k-muted2); }
.opt-row input { height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--k-border); background: rgba(255,255,255,.03); color: var(--k-text); font: inherit; font-size: 15px; }
.opt-row input:focus { outline: none; border-color: rgba(0,194,168,.5); }
.opt-row input:disabled { opacity: .7; }
.opts__foot { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.choice { display: flex; flex-direction: column; gap: 8px; }
.choice__btn { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--k-border-strong); background: var(--k-surface); color: var(--k-text); font: inherit; font-size: 17px; font-weight: 500; text-align: left; cursor: pointer; transition: all .12s; }
.choice__btn .choice__n { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: rgba(255,255,255,.07); font-family: var(--k-mono); font-size: 13px; color: var(--k-muted2); }
.choice__btn.is-on { background: var(--k-accent); border-color: var(--k-accent); color: var(--k-on-accent); }
.choice__btn.is-on .choice__n { background: rgba(5,39,34,.18); color: var(--k-on-accent); }
.cbars { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 4px; }
.cbar__head { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; margin-bottom: 4px; }
.cbar__lbl { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cbar__val { flex: none; font-family: var(--k-mono); font-size: 12px; color: var(--k-muted2); }
.cbar__track { height: 10px; border-radius: 6px; background: rgba(255,255,255,.06); overflow: hidden; }
.cbar__track i { display: block; height: 100%; border-radius: 6px; background: var(--k-accent-soft); transition: width .5s cubic-bezier(.22,1,.36,1); }
.cbar.is-top .cbar__track i { background: var(--k-accent); }
.cbars--lg { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 10px 32px; max-width: 1400px; margin: 0 auto; }
.cbars--lg .cbar__head { font-size: 20px; font-weight: 600; }
.cbars--lg .cbar__val { font-size: 16px; }
.cbars--lg .cbar__track { height: 16px; }
