/* Движение. Спортивная блочная эстетика: плотные цветные блоки вместо карточек с рамками,
   узкий курсивный шрифт спортивных трансляций для чисел и заголовков.
   У каждого раздела свой цвет: тренировка — оранжевый, соревнования — синий, награды — жёлтый.
   Сетка: одна колонка до 560px, нижняя панель вкладок; подход — во весь экран поверх камеры. */
:root {
  /* Графит, а не чёрный: фон и плашки на ступень светлее друг друга */
  --ink: #222429;
  --ink-2: #2c2f35;
  --ink-3: #363940;
  --ink-4: #42464e;
  --line: #474b53;
  --chalk: #f3f3ef;
  --dim: #a8adb7;
  --signal: #ff5b14;
  --signal-text: #ff7a3d;
  --on-signal: #170700;
  --blue: #3460ff;
  --blue-text: #8ea8ff;
  --on-blue: #ffffff;
  --gold: #ffd21a;
  --on-gold: #1a1400;
  --ok: #2bd687;
  --no: #ff4b55;
  --warn: #ffb020;
  --font-display: 'Sofia Sans Extra Condensed', 'Arial Narrow', 'Roboto Condensed', sans-serif;
  --font-body: 'Sofia Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --r: 14px;
  --r-sm: 10px;
  --icon: 22px;
  --tabbar-h: 62px;
  --gutter: 18px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--chalk);
  font: 400 16px/1.5 var(--font-body);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
[hidden] { display: none !important; }
button { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--chalk); outline-offset: 3px; }
svg { flex: none; }

/* ---------- типографика ---------- */
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
.display, h1 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  line-height: 0.92;
}
h1 { font-size: clamp(40px, 12vw, 56px); }
h2 { font: italic 800 28px/1 var(--font-display); text-transform: uppercase; }
h3 { font: 700 17px/1.3 var(--font-body); }
.num { font-family: var(--font-display); font-style: italic; font-weight: 900; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.lead { color: var(--dim); font-size: 17px; max-width: 34em; }
.muted { color: var(--dim); }
.small { font-size: 14px; }
.tiny { font-size: 12px; }
/* Подпись раздела */
.label {
  display: inline-flex; align-items: center; gap: 8px;
  font: 700 13px/1 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim);
}
.label.orange { color: var(--signal-text); }
.label.blue { color: var(--blue-text); }
.label.gold { color: var(--gold); }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack-lg { display: flex; flex-direction: column; gap: 20px; }
.row { display: flex; align-items: center; gap: 12px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* ---------- каркас ---------- */
#app { min-height: 100%; display: flex; flex-direction: column; }
.screen {
  flex: 1 0 auto;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding-top: max(14px, env(safe-area-inset-top));
  padding-bottom: max(28px, env(safe-area-inset-bottom));
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: enter 0.28s var(--ease) both;
}
.screen.tabbed { padding-bottom: calc(var(--tabbar-h) + 28px + env(safe-area-inset-bottom)); }
.screen.has-cta { padding-bottom: calc(112px + env(safe-area-inset-bottom)); }
/* Только прозрачность: transform на экране сделал бы его «окном» для фиксированных панелей. */
@keyframes enter { from { opacity: 0; } }

.appbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; }
.appbar .title { font: 700 15px var(--font-body); color: var(--dim); text-align: center; }
.wordmark {
  font: italic 900 26px/1 var(--font-display); letter-spacing: 0.02em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 10px;
}
.logo-mark { width: 32px; height: 32px; display: block; }
/* Вкладка без шапки: заголовок раздела сразу сверху */
.page-head { padding-top: 12px; }

/* ---------- нижняя панель ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 6;
  background: rgba(34, 36, 41, 0.96);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  padding: 0 max(8px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(8px, env(safe-area-inset-left));
}
.tabbar nav { max-width: 560px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); }
.tab {
  position: relative; min-height: var(--tabbar-h); border: 0; background: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--dim); font: 600 11px/1 var(--font-body); letter-spacing: 0.02em;
  transition: color 0.15s;
}
.tab svg { width: 24px; height: 24px; }
.tab[aria-current='page'] { color: var(--chalk); }
.tab[aria-current='page'] svg { color: var(--tab-color, var(--signal)); }
.tab[aria-current='page']::before {
  content: ''; position: absolute; top: -1px; left: 50%; width: 28px; height: 3px; margin-left: -14px;
  background: var(--tab-color, var(--signal)); border-radius: 0 0 2px 2px;
}
.tab:active { opacity: 0.7; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 20px;
  border-radius: var(--r-sm); border: 0;
  background: var(--ink-3); color: var(--chalk);
  font: 700 16px var(--font-body);
  cursor: pointer; text-decoration: none;
  transition: background 0.15s, opacity 0.15s, transform 0.1s var(--ease);
}
.btn svg { width: var(--icon); height: var(--icon); }
.btn:active { transform: scale(0.98); opacity: 0.9; }
.btn:disabled { opacity: 0.4; cursor: default; transform: none; }
.btn-primary, .btn-blue, .btn-gold {
  font: italic 900 22px/1 var(--font-display); text-transform: uppercase; letter-spacing: 0.02em;
}
.btn-primary { background: var(--signal); color: var(--on-signal); }
.btn-blue { background: var(--blue); color: var(--on-blue); }
.btn-gold { background: var(--gold); color: var(--on-gold); }
.btn-ghost { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.btn-block { width: 100%; }
.btn-sm { min-height: 44px; padding: 0 14px; font-size: 15px; }
.btn-primary.btn-sm, .btn-blue.btn-sm, .btn-gold.btn-sm { font-size: 18px; }
.icon-btn {
  width: 44px; height: 44px; display: inline-grid; place-items: center;
  border-radius: var(--r-sm); border: 0; background: var(--ink-2); cursor: pointer; padding: 0;
}
.icon-btn svg { width: var(--icon); height: var(--icon); }
.icon-btn:active { opacity: 0.7; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: var(--ink-3); font: italic 900 22px var(--font-display); cursor: pointer;
}
.avatar.lg { width: 72px; height: 72px; font-size: 38px; background: var(--signal); color: var(--on-signal); cursor: default; }

.cta-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 5;
  padding: 14px max(var(--gutter), env(safe-area-inset-right)) calc(14px + env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left));
  background: linear-gradient(to top, var(--ink) 70%, rgba(34, 36, 41, 0));
}
.cta-bar > * { max-width: 524px; margin: 0 auto; display: flex; }

/* ---------- блоки ---------- */
.block {
  position: relative; overflow: hidden;
  border-radius: var(--r); padding: 18px;
  display: flex; flex-direction: column; gap: 10px;
}
.block.orange { background: var(--signal); color: var(--on-signal); }
.block.blue { background: var(--blue); color: var(--on-blue); }
.block.gold { background: var(--gold); color: var(--on-gold); }
.block .label { color: inherit; opacity: 0.8; }
.block > * { position: relative; z-index: 1; }
.block .btn { background: rgba(0, 0, 0, 0.82); color: var(--chalk); }
.block.blue .btn { background: #fff; color: #0b1a55; }
.block.blue .btn.btn-ghost-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.55); }

.tile { border-radius: var(--r); background: var(--ink-2); padding: 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.tile-link { cursor: pointer; border: 0; text-align: left; width: 100%; }
.tile-link:active { background: var(--ink-3); }

.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kpi { border-radius: var(--r-sm); background: var(--ink-2); padding: 12px 12px 10px; min-width: 0; }
.kpi b { display: block; font: italic 900 34px/0.95 var(--font-display); font-variant-numeric: tabular-nums; }
.kpi span { display: block; margin-top: 4px; font-size: 13px; color: var(--dim); }
.block .kpi { background: rgba(0, 0, 0, 0.12); }
.block .kpi span { color: inherit; opacity: 0.75; }

.today-num { font: italic 900 clamp(84px, 26vw, 120px)/0.85 var(--font-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.bar { height: 8px; border-radius: 4px; background: var(--ink-4); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 4px; background: var(--signal); transform-origin: left; animation: grow 0.6s var(--ease) both; }
.bar.gold i { background: var(--gold); }
.bar.blue i { background: var(--blue); }
.block .bar { background: rgba(0, 0, 0, 0.18); }
.block .bar i { background: currentColor; }
@keyframes grow { from { transform: scaleX(0); } }

/* ---------- поля ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.input {
  min-height: 58px; padding: 0 16px; border-radius: var(--r-sm); border: 2px solid var(--ink-3);
  background: var(--ink-2); color: var(--chalk); font: 600 20px var(--font-body); width: 100%;
}
.input:focus { outline: none; border-color: var(--signal); }
.input-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
.unit { color: var(--dim); font-weight: 600; }

/* ---------- онбординг ---------- */
.steps-dots { display: flex; gap: 6px; }
.steps-dots span { width: 26px; height: 4px; border-radius: 2px; background: var(--ink-4); }
.steps-dots span.on { background: var(--signal); }
.hero-figure { width: 100%; aspect-ratio: 16 / 10; display: block; border-radius: var(--r); background: var(--ink-2); }
.promise { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.promise li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; padding: 12px; border-radius: var(--r-sm); background: var(--ink-2); }
.ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; }
.ic svg { width: 22px; height: 22px; }
.ic.orange { background: color-mix(in srgb, var(--signal) 18%, transparent); color: var(--signal); }
.ic.blue { background: color-mix(in srgb, var(--blue) 28%, transparent); color: var(--blue-text); }
.ic.gold { background: color-mix(in srgb, var(--gold) 18%, transparent); color: var(--gold); }
.ic.ok { background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); }
.howto { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; counter-reset: how; }
.howto li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 14px; border-radius: var(--r); background: var(--ink-2); }
.howto li::before {
  counter-increment: how; content: counter(how);
  font: italic 900 46px/0.9 var(--font-display); color: var(--signal); text-align: center;
}
.howto h3 { margin-bottom: 2px; }
.notice { padding: 14px 16px; border-radius: var(--r-sm); background: var(--ink-2); }
.notice.bad { box-shadow: inset 3px 0 0 var(--no); }
.notice ol { margin: 8px 0 0; padding-left: 20px; color: var(--dim); }

/* ---------- вкладка «Тренировка» ---------- */
.ex-list { display: flex; flex-direction: column; gap: 8px; }
.ex-row {
  display: grid; grid-template-columns: 92px 1fr auto; gap: 14px; align-items: center;
  padding: 8px 14px 8px 8px; border-radius: var(--r); background: var(--ink-2);
  border: 0; text-align: left; cursor: pointer; width: 100%; transition: background 0.15s;
}
.ex-row:active { background: var(--ink-3); }
.ex-row canvas { width: 92px; height: 72px; border-radius: var(--r-sm); background: var(--ink); display: block; }
.ex-row .name { font: italic 900 26px/1 var(--font-display); text-transform: uppercase; }
.ex-row .meta { color: var(--dim); font-size: 13px; margin-top: 4px; }
.ex-row .rec { text-align: right; }
.ex-row .rec b { display: block; font: italic 900 30px/0.95 var(--font-display); font-variant-numeric: tabular-nums; }
.ex-row .rec span { font-size: 12px; color: var(--dim); }
.chev { color: var(--dim); }

.ex-hero { position: relative; border-radius: var(--r); overflow: hidden; background: var(--ink-2); }
.ex-hero canvas { width: 100%; aspect-ratio: 16 / 10; display: block; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 44px; padding: 0 16px; border-radius: var(--r-sm); border: 0;
  background: var(--ink-2); font-weight: 700; font-size: 15px; cursor: pointer; transition: background 0.15s;
}
.tile .chip { background: var(--ink-3); }
.chip[aria-pressed='true'], .tile .chip[aria-pressed='true'] { background: var(--chalk); color: var(--ink); }
.chip:disabled { opacity: 0.45; cursor: default; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 6px; font: 700 12px/1.3 var(--font-body);
  letter-spacing: 0.03em; background: var(--ink-3); color: var(--chalk);
}
.pill.ok { background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); }
.pill.bad { background: color-mix(in srgb, var(--no) 18%, transparent); color: #ff8a91; }
.pill.orange { background: color-mix(in srgb, var(--signal) 20%, transparent); color: #ff8a57; }
.pill.blue { background: color-mix(in srgb, var(--blue) 30%, transparent); color: var(--blue-text); }
.pill.gold { background: color-mix(in srgb, var(--gold) 20%, transparent); color: var(--gold); }

.segmented { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 12px; background: var(--ink-2); }
.segmented button {
  min-height: 46px; border: 0; border-radius: 9px; background: transparent; cursor: pointer;
  font-weight: 700; font-size: 15px; color: var(--dim); transition: background 0.15s, color 0.15s;
}
.segmented button[aria-pressed='true'] { background: var(--ink-4); color: var(--chalk); }
.segmented button:disabled { opacity: 0.4; cursor: default; }

.section { display: flex; flex-direction: column; gap: 12px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.link-btn { border: 0; background: none; color: var(--dim); font-weight: 700; font-size: 14px; cursor: pointer; padding: 10px 0; min-height: 44px; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.link-btn svg { width: 18px; height: 18px; }

.placement-card { border-radius: var(--r); background: var(--ink-2); padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.placement { width: 100%; height: auto; display: block; }
.pp-gridline { fill: none; stroke: var(--line); stroke-width: 0.6; opacity: 0.6; }
.pp-fov { fill: var(--signal); fill-opacity: 0.08; stroke: var(--signal); stroke-opacity: 0.5; stroke-dasharray: 4 4; }
.pp-body { fill: var(--ink-3); stroke: var(--chalk); stroke-width: 1.6; }
.pp-head { fill: var(--ink-3); stroke: var(--chalk); stroke-width: 1.6; }
.pp-nose { fill: none; stroke: var(--chalk); stroke-width: 1.6; stroke-linecap: round; }
.pp-gear { stroke: var(--dim); stroke-width: 4; stroke-linecap: round; }
.pp-phone { fill: var(--signal); }
.pp-lens { fill: var(--on-signal); }
.pp-dim { stroke: var(--dim); stroke-width: 1.2; }
.pp-arc { fill: none; stroke: var(--signal); stroke-width: 1.5; }
.pp-label { fill: var(--chalk); font: 600 12px var(--font-body); }
.pp-label-dim { fill: var(--dim); }

.rules { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.rules li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; }
.rules li svg { width: 20px; height: 20px; color: var(--ok); margin-top: 2px; }

/* ---------- достижения ---------- */
.ladder { display: flex; flex-direction: column; gap: 10px; }
.ladder-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.ladder-amount { font: italic 900 40px/0.9 var(--font-display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ladder-now { font: italic 900 26px/1 var(--font-display); text-transform: uppercase; }
.ladder-steps { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; }
.ladder-steps i { height: 6px; border-radius: 3px; background: var(--ink-4); }
.ladder-steps i.on { background: var(--gold); }
.ladder-steps i.now { background: linear-gradient(90deg, var(--gold) var(--p), var(--ink-4) var(--p)); }
.ladder-next { font-size: 14px; color: var(--dim); }
.ladder-next b { color: var(--chalk); }

.badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.badge {
  border-radius: var(--r-sm); background: var(--ink-2); padding: 12px 10px; min-width: 0;
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
}
.medal {
  width: 44px; height: 44px; display: grid; place-items: center;
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  background: var(--ink-4); color: var(--dim);
}
.medal svg { width: 22px; height: 22px; }
.badge.done .medal { background: var(--gold); color: var(--on-gold); }
.badge b { font: 700 14px/1.2 var(--font-body); }
.badge span { font-size: 12px; line-height: 1.3; color: var(--dim); }
.badge .bar { width: 100%; height: 4px; margin-top: auto; }
.badge:not(.done) b { color: var(--dim); }

.unlocks { display: flex; flex-direction: column; gap: 8px; }
.unlock { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; padding: 10px; border-radius: var(--r-sm); background: rgba(0, 0, 0, 0.1); }
.unlock .medal { background: var(--on-gold); color: var(--gold); }
.unlock b { display: block; font: italic 900 22px/1 var(--font-display); text-transform: uppercase; }

/* ---------- соревнования ---------- */
.duel-score { display: flex; gap: 22px; align-items: baseline; }
.duel-score b { display: block; font: italic 900 52px/0.9 var(--font-display); font-variant-numeric: tabular-nums; }
.duel-score span { display: block; font-size: 13px; opacity: 0.85; }
.rec-row {
  display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center;
  padding: 10px 10px 10px 14px; border-radius: var(--r-sm); background: var(--ink-2);
}
.rec-row .name { font: italic 900 22px/1 var(--font-display); text-transform: uppercase; }
.rec-row .meta { font-size: 13px; color: var(--dim); margin-top: 2px; }
.rec-row > b { font: italic 900 32px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.rec-row.race { grid-template-columns: 1fr auto; }
.soon { border-radius: var(--r); padding: 16px; background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 8px; }

/* ---------- профиль ---------- */
.profile-head { display: flex; align-items: center; gap: 16px; }
.profile-head .who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.profile-head .who b { font: italic 900 34px/0.95 var(--font-display); text-transform: uppercase; overflow-wrap: anywhere; }
.setting { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.setting:last-child { border-bottom: 0; }
.setting span { display: block; font-size: 13px; color: var(--dim); }
.switch { position: relative; width: 52px; height: 32px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.switch i { position: absolute; inset: 0; border-radius: 999px; background: var(--ink-4); transition: background 0.15s; pointer-events: none; }
.switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: var(--chalk); transition: transform 0.18s var(--ease); }
.switch input:checked + i { background: var(--ok); }
.switch input:checked + i::after { transform: translateX(20px); }
.switch input:focus-visible + i { outline: 2px solid var(--chalk); outline-offset: 2px; }
details.tile summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 28px; }
details.tile summary::-webkit-details-marker { display: none; }
/* Свёрнутая плашка — без пустого отступа под заголовком */
details.tile:not([open]) { gap: 0; }
details.tile summary svg { width: 20px; height: 20px; transition: transform 0.2s; color: var(--dim); }
details.tile[open] summary svg { transform: rotate(90deg); }

/* ---------- история ---------- */
.hist-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.hist-item {
  display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; width: 100%; text-align: left;
  padding: 12px 14px; border-radius: var(--r-sm); background: var(--ink-2); border: 0; cursor: pointer;
}
.hist-item:active { background: var(--ink-3); }
.hist-item b { font: italic 900 32px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.hist-item .meta { font-size: 13px; color: var(--dim); }
.empty { padding: 26px 16px; text-align: center; color: var(--dim); border-radius: var(--r); background: var(--ink-2); }

/* ---------- подход (во весь экран) ---------- */
.session { position: fixed; inset: 0; background: #000; overflow: hidden; z-index: 10; color: var(--chalk); }
.stage { position: absolute; inset: 0; }
.stage video, .stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.stage .mirror { transform: scaleX(-1); }
.stage.demo { background: radial-gradient(ellipse at 50% 60%, #1a1b20 0%, #0c0d10 70%); }

.s-top {
  position: absolute; z-index: 3; top: 0; left: 0; right: 0;
  padding: max(12px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.s-top .title { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; min-width: 0; }
.s-top .title b { font: italic 900 22px/1 var(--font-display); text-transform: uppercase; }
.s-top .icon-btn { background: rgba(15, 16, 19, 0.72); backdrop-filter: blur(8px); }
.glass { background: rgba(15, 16, 19, 0.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }

.prompt {
  position: absolute; z-index: 3;
  left: max(12px, env(safe-area-inset-left)); right: max(12px, env(safe-area-inset-right));
  bottom: max(12px, env(safe-area-inset-bottom));
  border-radius: var(--r); padding: 16px 16px 16px 20px;
  display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; align-items: start;
  box-shadow: inset 4px 0 0 var(--signal);
}
.prompt .p-step { grid-column: 1 / -1; }
.prompt h2 { font: italic 900 clamp(28px, 8vw, 40px)/0.95 var(--font-display); text-transform: uppercase; }
.prompt .p-sub { grid-column: 1; color: var(--dim); font-size: 16px; }
.prompt .p-sub.hint { color: var(--warn); font-weight: 700; }
.prompt .p-art { grid-row: 2 / span 2; grid-column: 2; width: 88px; height: 88px; }
.prompt .p-art canvas { width: 88px; height: 88px; display: block; }
.prompt .p-art .placement { width: 120px; }
.checks { grid-column: 1 / -1; list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.checks li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 6px; font-size: 13px; font-weight: 600; background: rgba(255, 255, 255, 0.06); color: var(--dim); }
.checks li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--dim); }
.checks li.ok { color: var(--chalk); }
.checks li.ok::before { background: var(--ok); }
.checks li.bad::before { background: var(--warn); }
.prompt .p-actions { grid-column: 1 / -1; display: flex; gap: 8px; margin-top: 6px; }

.countdown {
  position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; pointer-events: none;
  font: italic 900 min(64vmin, 440px)/1 var(--font-display); color: var(--signal);
  text-shadow: 0 6px 40px rgba(0, 0, 0, 0.6);
}
.countdown span { animation: pop 0.9s var(--ease) both; }
@keyframes pop { from { transform: scale(1.35); opacity: 0; } 20% { opacity: 1; } to { transform: scale(0.9); opacity: 0.2; } }

.hud { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hud-panel {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 40px max(16px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  background: linear-gradient(to top, rgba(0, 0, 0, 0.86) 55%, rgba(0, 0, 0, 0));
  display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; align-items: end;
}
.count-block { display: flex; flex-direction: column; min-width: 0; }
.count {
  font: italic 900 clamp(150px, 46vmin, 400px)/0.8 var(--font-display);
  font-variant-numeric: tabular-nums; letter-spacing: -0.03em; text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}
.count.pts { font-size: clamp(88px, 25vmin, 230px); white-space: nowrap; }
.count.bump { animation: bump 0.25s var(--ease); }
@keyframes bump { 40% { transform: scale(1.06); color: var(--signal); } }
.count-label { display: flex; gap: 12px; flex-wrap: wrap; font-size: 15px; font-weight: 600; color: var(--dim); }
.count-label .rej { color: #ff8a91; }
.side-col { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.timer { font: italic 900 clamp(40px, 11vmin, 72px)/1 var(--font-display); font-variant-numeric: tabular-nums; }
.timer.warn { color: var(--signal); }

.gauge {
  position: absolute; z-index: 2; right: max(14px, env(safe-area-inset-right)); top: 50%;
  width: 16px; height: min(44vh, 300px); transform: translateY(-60%);
  border-radius: 4px; background: rgba(255, 255, 255, 0.12); overflow: hidden;
}
.gauge i { position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: var(--chalk); transition: background 0.1s; }
.gauge i.hit { background: var(--ok); }
.gauge::after { content: ''; position: absolute; left: -4px; right: -4px; top: calc(100% / 1.15 * 0.15); height: 3px; background: var(--signal); }

.flash {
  position: absolute; z-index: 3; left: 50%; top: 20%; transform: translateX(-50%);
  padding: 10px 18px; border-radius: 8px; font: italic 900 26px/1 var(--font-display); text-transform: uppercase; white-space: nowrap;
  max-width: calc(100% - 32px); overflow: hidden; text-overflow: ellipsis; opacity: 0; pointer-events: none;
}
.flash.show { animation: flash 1.6s var(--ease) both; }
.flash.ok { background: var(--ok); color: #03140c; }
.flash.bad { background: var(--no); color: #1d0306; }
.flash.cue { background: rgba(15, 16, 19, 0.9); color: var(--warn); }
@keyframes flash { 0% { opacity: 0; transform: translate(-50%, 8px); } 10% { opacity: 1; transform: translate(-50%, 0); } 75% { opacity: 1; } 100% { opacity: 0; } }

.pause {
  position: absolute; z-index: 3; left: 50%; top: 40%; transform: translate(-50%, -50%);
  padding: 16px 22px; border-radius: var(--r); text-align: center; font: 700 20px/1.3 var(--font-body); color: var(--warn);
  max-width: calc(100% - 48px);
}

.rope { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 6px; }
.rope-track { position: relative; height: 14px; border-radius: 3px; background: rgba(255, 255, 255, 0.12); }
.rope-track::before, .rope-track::after { content: ''; position: absolute; top: 0; bottom: 0; width: 12%; }
.rope-track::before { left: 0; background: color-mix(in srgb, var(--no) 55%, transparent); }
.rope-track::after { right: 0; background: color-mix(in srgb, var(--ok) 55%, transparent); }
.rope-track .mid { position: absolute; left: 50%; top: -4px; bottom: -4px; width: 2px; background: rgba(255, 255, 255, 0.4); }
.rope-knot {
  position: absolute; top: 50%; width: 22px; height: 22px; margin-left: -11px; margin-top: -11px;
  background: var(--blue); box-shadow: 0 0 0 3px #fff; transform: rotate(45deg); transition: left 0.25s var(--ease);
}
.rope-labels { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; color: var(--dim); }
.rope-labels b { color: var(--chalk); font-variant-numeric: tabular-nums; }
.ghost-line { grid-column: 1 / -1; font-size: 15px; font-weight: 600; color: var(--dim); }
.ghost-line b { color: var(--chalk); font-variant-numeric: tabular-nums; }
.finish-btn { pointer-events: auto; }
.loading { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; text-align: center; padding: 24px; background: rgba(15, 16, 19, 0.94); }
.loading .spin { width: 36px; height: 36px; margin: 0 auto 16px; border-radius: 50%; border: 3px solid var(--ink-4); border-top-color: var(--signal); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (orientation: landscape) and (max-height: 560px) {
  .prompt h2 { font-size: 30px; }
  .prompt .p-sub { font-size: 14px; }
  .prompt .p-art, .prompt .p-art canvas { width: 64px; height: 64px; }
  .prompt { left: auto; width: min(40%, 380px); top: calc(max(12px, env(safe-area-inset-top)) + 56px); bottom: max(12px, env(safe-area-inset-bottom)); overflow-y: auto; align-content: start; }
  .hud-panel {
    left: auto; top: 0; width: min(42%, 420px);
    padding-top: calc(max(12px, env(safe-area-inset-top)) + 64px);
    background: linear-gradient(to left, rgba(0, 0, 0, 0.86) 60%, rgba(0, 0, 0, 0));
    grid-template-columns: 1fr; align-content: end; justify-items: end; text-align: right;
  }
  .count { font-size: clamp(120px, 58vh, 320px); }
  .count.pts { font-size: clamp(80px, 34vh, 220px); }
  .count-label { justify-content: flex-end; }
  .side-col { flex-direction: row-reverse; align-items: center; }
  .gauge { right: auto; left: max(14px, env(safe-area-inset-left)); }
}

/* ---------- онлайн-дуэль ---------- */
.duel-code { font: italic 900 clamp(64px, 20vw, 96px)/0.9 var(--font-display); letter-spacing: 0.06em; }
.spin-sm { display: inline-block; width: 20px; height: 20px; flex: none; border-radius: 50%; border: 2.5px solid var(--ink-4); border-top-color: var(--blue-text); animation: spin 0.8s linear infinite; vertical-align: middle; }
.opp-pip {
  position: absolute; z-index: 3; right: max(12px, env(safe-area-inset-right)); top: calc(max(12px, env(safe-area-inset-top)) + 58px);
  width: min(34vw, 180px); border-radius: var(--r-sm); overflow: hidden; background: rgba(15, 16, 19, 0.82);
  box-shadow: inset 0 0 0 2px var(--blue);
}
.opp-pip canvas { width: 100%; aspect-ratio: 3 / 4; display: block; }
.opp-tag { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; padding: 4px 8px 6px; background: var(--blue); color: #fff; font-size: 12px; font-weight: 700; }
.opp-tag span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.opp-tag b { font: italic 900 24px/1 var(--font-display); }
@media (orientation: landscape) and (max-height: 560px) {
  .opp-pip { right: auto; left: max(48px, env(safe-area-inset-left) + 40px); width: min(22vw, 160px); }
}

/* ---------- шкала качества ---------- */
.q-scale { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12px; font-weight: 600; color: var(--dim); }
.q-scale span { display: inline-flex; align-items: center; gap: 6px; }
.q-scale i { width: 10px; height: 10px; border-radius: 3px; }
.q-poor i, .strip i.q-poor { background: var(--no); }
.q-fair i, .strip i.q-fair { background: var(--warn); }
.q-good i, .strip i.q-good { background: var(--ok); }
.q-perfect i, .strip i.q-perfect { background: var(--gold); }
.strip i.miss { opacity: 0.35; }
.flash.g-perfect { background: var(--gold); color: var(--on-gold); }
.flash.g-good { background: var(--ok); color: #03140c; }
.flash.g-fair { background: var(--warn); color: #1d1300; }
.flash.g-poor { background: var(--no); color: #1d0306; }
.segmented.two { grid-template-columns: repeat(2, 1fr); }

/* ---------- аккаунт, рейтинг, таблица лидеров ---------- */
.tag { font: 600 13px var(--font-body); font-style: normal; color: var(--dim); letter-spacing: 0; text-transform: none; }
.code-input { font: italic 900 30px var(--font-display); letter-spacing: 0.2em; text-transform: uppercase; }
.code-big { display: block; text-align: center; font: italic 900 clamp(56px, 18vw, 84px)/1 var(--font-display); letter-spacing: 0.12em; color: var(--signal); padding: 6px 0; }
.rating-rows { display: flex; flex-direction: column; gap: 6px; }
.rating-row {
  display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; width: 100%; text-align: left;
  min-height: 52px; padding: 8px 14px; border: 0; border-radius: var(--r-sm); background: var(--ink-2); cursor: pointer; font-weight: 700;
}
.rating-row:active { background: var(--ink-3); }
.rating-row .meta { font-size: 12px; font-weight: 600; color: var(--dim); }
.rating-row b { font: italic 900 28px/1 var(--font-display); font-variant-numeric: tabular-nums; color: var(--blue-text); }
.rating-row b.muted { color: var(--dim); }
.rating-start { display: inline-flex; align-items: baseline; gap: 8px; font-weight: 700; }
.rating-start b { font: italic 900 30px/1 var(--font-display); color: var(--blue-text); font-variant-numeric: tabular-nums; }
.lb { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.lb-row { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 10px 14px 10px 10px; border-radius: var(--r-sm); background: var(--ink-2); }
.lb-row.me { box-shadow: inset 0 0 0 2px var(--blue); background: color-mix(in srgb, var(--blue) 14%, var(--ink-2)); }
.lb-rank { font: italic 900 28px/1 var(--font-display); text-align: center; color: var(--dim); font-variant-numeric: tabular-nums; }
.lb-row:nth-child(1) .lb-rank { color: var(--gold); }
.lb-name { min-width: 0; }
.lb-name b { font-weight: 700; overflow-wrap: anywhere; }
.lb-name .meta { display: block; font-size: 12px; color: var(--dim); }
.lb-rating { font: italic 900 30px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.lb-gap { height: 1px; margin: 8px 0; background: var(--line); }
.rating-change { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: baseline; padding: 10px 12px; border-radius: var(--r-sm); background: var(--ink-3); }
.rating-change span { font-size: 13px; color: var(--dim); }
.rating-change b { font: italic 900 26px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.rating-change em { font: italic 900 22px/1 var(--font-display); font-style: italic; }
.rating-change.up em { color: var(--ok); }
.rating-change.down em { color: #ff8a91; }
.hist-item b small { font-size: 16px; }

/* ---------- лист «поделиться» ---------- */
.sheet-backdrop { position: fixed; inset: 0; z-index: 30; background: rgba(0, 0, 0, 0.6); display: flex; align-items: flex-end; justify-content: center; animation: fade 0.2s both; }
.sheet {
  width: 100%; max-width: 560px; background: var(--ink-2); border-radius: var(--r) var(--r) 0 0;
  padding: 20px max(var(--gutter), env(safe-area-inset-right)) calc(20px + env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left));
  display: flex; flex-direction: column; gap: 12px; animation: sheet 0.28s var(--ease) both;
}
.sheet input { font: 500 13px var(--font-body); min-height: 48px; }
@keyframes sheet { from { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }

/* ---------- итог ---------- */
.result-head { display: flex; flex-direction: column; gap: 4px; }
.big-count { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.big-count b { font: italic 900 clamp(120px, 40vw, 180px)/0.8 var(--font-display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.big-count span { font-size: 17px; font-weight: 600; color: var(--dim); }
.outcome b { font: italic 900 32px/0.95 var(--font-display); text-transform: uppercase; }
.outcome.win { background: var(--ok); color: #03140c; }
.outcome.lose { background: var(--no); color: #1d0306; }
.outcome.draw { background: var(--ink-3); }
.strip { display: flex; align-items: flex-end; gap: 3px; height: 64px; }
.strip i { flex: 1 1 0; min-width: 3px; max-width: 18px; border-radius: 3px 3px 0 0; background: var(--ok); }
.strip-legend { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--dim); }
.strip-legend span:nth-child(2) { flex: 1; text-align: center; }
.reasons { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.reasons li { display: flex; justify-content: space-between; gap: 12px; }
.reasons li b { font-variant-numeric: tabular-nums; color: #ff8a91; }
.integrity { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.integrity li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; }
.integrity li svg { width: 20px; height: 20px; margin-top: 2px; }
.integrity li.ok svg { color: var(--ok); }
.integrity li.bad svg { color: var(--warn); }
.integrity li span { display: block; font-size: 13px; color: var(--dim); }
.replay canvas { width: 100%; max-height: 60vh; margin: 0 auto; display: block; border-radius: var(--r-sm); background: var(--ink); }
.replay-bar { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; }
.timeline { position: relative; height: 28px; cursor: pointer; touch-action: none; }
.timeline .track { position: absolute; left: 0; right: 0; top: 12px; height: 4px; background: var(--ink-4); }
.timeline .tick { position: absolute; top: 6px; width: 3px; height: 16px; border-radius: 2px; }
.timeline .tick.ok { background: var(--ok); }
.timeline .tick.bad { background: var(--no); }
.timeline .head { position: absolute; top: 3px; width: 4px; height: 22px; margin-left: -2px; background: var(--signal); }
.actions { display: flex; flex-direction: column; gap: 8px; }
.share-box { display: flex; flex-direction: column; gap: 8px; }
.share-box input { font: 500 13px var(--font-body); min-height: 44px; }

.toast {
  position: fixed; z-index: 40; left: 50%; bottom: calc(var(--tabbar-h) + 16px + env(safe-area-inset-bottom));
  transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px);
  display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center;
  padding: 10px 16px 10px 10px; border-radius: var(--r-sm); background: var(--gold); color: var(--on-gold);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); animation: toast 3.2s var(--ease) both; pointer-events: none;
}
.toast .medal { width: 40px; height: 40px; background: var(--on-gold); color: var(--gold); }
.toast b { display: block; font: italic 900 20px/1 var(--font-display); text-transform: uppercase; }
@keyframes toast { 0% { opacity: 0; transform: translate(-50%, 12px); } 8% { opacity: 1; transform: translate(-50%, 0); } 88% { opacity: 1; } 100% { opacity: 0; } }

.debug { position: absolute; z-index: 3; left: max(12px, env(safe-area-inset-left)); top: calc(max(12px, env(safe-area-inset-top)) + 56px); font: 600 12px/1.5 ui-monospace, Menlo, monospace; padding: 8px 10px; border-radius: 8px; white-space: pre; pointer-events: none; }

@media (hover: hover) {
  .btn:hover:not(:disabled) { opacity: 0.92; }
  .ex-row:hover, .tile-link:hover, .hist-item:hover { background: var(--ink-3); }
  .tab:hover { color: var(--chalk); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- главная ---------- */
.hello { display: flex; flex-direction: column; gap: 6px; }
.hello .muted::first-letter { text-transform: uppercase; }
.streak { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; font-size: 14px; }
.streak svg { width: 18px; height: 18px; }
/* Неделя: столбик — чистые повторы за день, сегодня выделено */
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; height: 92px; margin-top: 4px; }
.day { display: grid; grid-template-rows: 16px 1fr 18px; gap: 4px; justify-items: center; min-width: 0; }
/* Столбик — дорожка на всю высоту, заливка снизу по числу повторов */
.day i { width: 100%; max-width: 30px; border-radius: 5px; background: rgba(0, 0, 0, 0.12); position: relative; overflow: hidden; }
.day i::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: var(--h);
  background: var(--on-signal); transform-origin: bottom; animation: rise 0.6s var(--ease) both;
}
.day.future i { background: none; box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, 0.14); }
.day-n { font: italic 900 15px/16px var(--font-display); font-variant-numeric: tabular-nums; }
.day-l { font: 700 12px/18px var(--font-body); opacity: 0.7; }
.day.today .day-l { opacity: 1; background: var(--on-signal); color: var(--signal); border-radius: 4px; padding: 0 5px; }
@keyframes rise { from { transform: scaleY(0); } }

/* Быстрый старт: лента упражнений во всю ширину экрана */
.quick {
  display: grid; grid-auto-flow: column; grid-auto-columns: 136px; gap: 8px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); scroll-padding: 0 var(--gutter);
}
.quick::-webkit-scrollbar { display: none; }
.qx {
  scroll-snap-align: start; display: flex; flex-direction: column; gap: 4px; align-items: flex-start;
  padding: 6px 6px 12px; border-radius: var(--r); background: var(--ink-2); border: 0; cursor: pointer; text-align: left;
  transition: background 0.15s;
}
.qx:active { background: var(--ink-3); }
.qx canvas { width: 100%; height: 88px; border-radius: var(--r-sm); background: var(--ink); display: block; margin-bottom: 6px; }
.qx b { font: italic 900 22px/1 var(--font-display); text-transform: uppercase; padding: 0 6px; }
.qx span { font-size: 13px; color: var(--dim); padding: 0 6px; }

.live { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13px; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: #7dffb5; box-shadow: 0 0 0 3px rgba(125, 255, 181, 0.25); }
.demo-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 14px; border-radius: var(--r-sm); box-shadow: inset 0 0 0 1px var(--line); color: var(--dim); }
.demo-bar b { color: var(--chalk); }

/* ---------- режимы подхода ---------- */
.modes { display: flex; flex-direction: column; gap: 6px; }
.mode {
  display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; width: 100%;
  padding: 12px 14px 12px 12px; border-radius: var(--r-sm); border: 0; background: var(--ink-2);
  text-align: left; cursor: pointer; box-shadow: inset 0 0 0 2px transparent; transition: background 0.15s, box-shadow 0.15s;
}
.mode b { display: block; font-size: 16px; line-height: 1.3; }
.mode-sub { display: block; margin-top: 2px; font-size: 14px; line-height: 1.4; color: var(--dim); }
.mode-ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--ink-3); color: var(--dim); }
.mode-ic svg { width: 22px; height: 22px; }
.mode[aria-checked='true'] { box-shadow: inset 0 0 0 2px var(--signal); background: color-mix(in srgb, var(--signal) 8%, var(--ink-2)); }
.mode[aria-checked='true'] .mode-ic { background: var(--signal); color: var(--on-signal); }
.mode[data-m='rope'][aria-checked='true'] { box-shadow: inset 0 0 0 2px var(--blue); background: color-mix(in srgb, var(--blue) 12%, var(--ink-2)); }
.mode[data-m='rope'][aria-checked='true'] .mode-ic { background: var(--blue); color: #fff; }
.mode:disabled { opacity: 0.5; cursor: default; }
.chip-n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 6px; border-radius: 10px; background: var(--blue); color: #fff; font-size: 12px; font-weight: 800; }
.chip b { margin-left: 4px; font-variant-numeric: tabular-nums; }
