/* tm2027 · Пиксельный ход — живой борд восьмибитной моторики.
   Все стоячие анимации шагают дискретными кадрами по 125 мс (8 Гц),
   как breath-часы деки; конечные тики играют и держат паузу. */

:root {
  --canvas: #0b0f14;
  --panel: #10151c;
  --bar: #11161d;
  --control: #1b2230;
  --control-hover: #252d3a;
  --selection: #1d365d;
  --selection-border: #5b7cfa;
  --border: #252d38;
  --border-strong: #303947;
  --ink: #f4f7fb;
  --body: #e8edf2;
  --muted: #9aa6b5;
  --live: #62d6a7;
  --live-text: #83d9b2;
  --amber: #d5a64a;
  --amber-deep: #8a6a2f;
  --blocked: #f19aa7;
  --focus: #7fa7ff;
  --mono: "Cascadia Mono", "Hack", Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { background: var(--canvas); }

body {
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--body);
  background:
    linear-gradient(var(--canvas), var(--canvas));
  padding-bottom: 84px;
}

/* ---------- masthead ---------- */

.masthead {
  border-bottom: 1px solid var(--border);
  background: var(--panel);
}

.mast-inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 40px 24px 32px;
}

.mast-brand {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--muted);
  text-transform: lowercase;
}

.mast-dot { color: var(--selection-border); }

h1 {
  font-size: 34px;
  font-weight: 650;
  color: var(--ink);
  letter-spacing: -.01em;
  margin: 10px 0 12px;
}

.lede {
  max-width: 72ch;
  color: var(--body);
  margin-bottom: 22px;
}

.rules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

@media (max-width: 720px) {
  .rules { grid-template-columns: 1fr; }
}

.rule {
  background: var(--canvas);
  padding: 12px 14px;
  font-size: 12.5px;
  color: var(--muted);
}

.rule-name {
  display: block;
  color: var(--body);
  font-weight: 600;
  margin-bottom: 2px;
}

/* ---------- campaigns ---------- */

main { max-width: 1060px; margin: 0 auto; padding: 12px 24px; }

.campaign { padding: 36px 0 8px; border-bottom: 1px solid var(--border); }
.campaign:last-of-type { border-bottom: 0; }

.camp-head {
  display: flex;
  gap: 16px;
  align-items: baseline;
  margin-bottom: 20px;
}

.camp-no {
  font-family: var(--mono);
  font-size: 26px;
  color: var(--selection-border);
  min-width: 34px;
  text-align: right;
}

.camp-head h2 { font-size: 21px; font-weight: 650; color: var(--ink); }

.camp-head p { max-width: 78ch; color: var(--muted); margin-top: 4px; font-size: 13.5px; }
.camp-head em { font-style: normal; color: var(--body); }

.variants {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 14px;
  padding-bottom: 28px;
}

.variant {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px;
  cursor: pointer;
  transition: border-color 80ms linear, background-color 80ms linear;
}

.variant:hover { background: #131a23; border-color: var(--border-strong); }

.variant.picked {
  background: #12203a;
  border-color: var(--selection-border);
  box-shadow: inset 0 0 0 1px var(--selection-border);
}

.v-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  border: 1px solid var(--border-strong);
  padding: 1px 7px;
  border-radius: 3px;
  background: var(--canvas);
  z-index: 2;
}

.variant.picked .v-tag {
  color: var(--ink);
  background: var(--selection);
  border-color: var(--selection-border);
}

.variant h3 {
  font-size: 15px;
  font-weight: 650;
  color: var(--ink);
  margin: 12px 0 6px;
}

.ctrl-note {
  font-size: 10px;
  font-weight: 400;
  font-family: var(--mono);
  color: var(--muted);
  border: 1px solid var(--border-strong);
  padding: 1px 6px;
  border-radius: 999px;
  vertical-align: 2px;
  margin-left: 6px;
}

.variant > p { font-size: 12.5px; color: var(--muted); }

/* ---------- stages ---------- */

.stage {
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: 4px;
  min-height: 132px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  overflow: hidden;
}

.stage-center { align-items: center; }

.stage-caption {
  font-family: var(--mono);
  font-size: 10px;
  color: #5c6774;
  margin-top: 4px;
}

/* mini deck rows */

.mini-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 12px;
  color: var(--body);
  position: relative;
}

.mini-name { flex: 1; font-family: var(--mono); font-size: 11.5px; }

.mini-badge {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .06em;
  padding: 1px 7px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--muted);
}

.mini-badge.live { color: var(--live-text); border-color: #2c5347; }
.mini-badge.work { color: var(--amber); border-color: #55462a; }

.dot {
  width: 6px; height: 6px;
  background: var(--live);
  border-radius: 999px;
  flex: none;
}

/* ============ 1A phosphor ============ */

@keyframes ph-step {
  0%, 12.4%   { opacity: .35; }
  12.5%, 24.9%{ opacity: .55; }
  25%, 37.4%  { opacity: .8;  }
  37.5%, 49.9%{ opacity: 1;   }
  50%, 62.4%  { opacity: 1;   }
  62.5%, 74.9%{ opacity: .8;  }
  75%, 87.4%  { opacity: .55; }
  87.5%, 100% { opacity: .35; }
}

.ph-dot { animation: ph-step 2s infinite; }

.focus-row { border: 1px solid transparent; background: var(--panel); }

.ph-aura {
  border-color: var(--focus);
  animation: ph-step 2s infinite .25s;
}

/* ============ 1B sprite flip ============ */

.flip-list { position: relative; display: flex; flex-direction: column; gap: 2px; }

.flip-sel {
  position: absolute;
  left: 0; right: 0;
  height: 30px;
  background: var(--selection);
  border: 1px solid var(--selection-border);
  border-radius: 4px;
  animation: flip-move 4s infinite;
}

@keyframes flip-move {
  0%, 43.6%   { top: 0;    opacity: 1; }
  43.7%, 46.8%{ top: 16px; opacity: .5; }
  46.9%, 93.6%{ top: 32px; opacity: 1; }
  93.7%, 100% { top: 16px; opacity: .5; }
}

.flip-list .mini-row { z-index: 1; height: 30px; }

/* ============ 1C raster ============ */

.raster-box { position: relative; }

.raster-line {
  position: absolute;
  left: -4px; right: -4px;
  height: 2px;
  background: var(--amber);
  opacity: 0;
  animation: raster-sweep 5s infinite;
}

@keyframes raster-sweep {
  0%, 2.4%    { top: -6px;  opacity: 1; background: var(--amber); }
  2.5%, 4.9%  { top: 2px;   opacity: 1; background: var(--amber); }
  5%, 7.4%    { top: 10px;  opacity: 1; background: var(--amber); }
  7.5%, 9.9%  { top: 18px;  opacity: 1; background: var(--amber); }
  10%, 12.4%  { top: 26px;  opacity: 1; background: var(--amber); }
  12.5%, 49.9%{ top: 32px;  opacity: 0; }
  50%, 52.4%  { top: -6px;  opacity: 1; background: var(--live); }
  52.5%, 54.9%{ top: 2px;   opacity: 1; background: var(--live); }
  55%, 57.4%  { top: 10px;  opacity: 1; background: var(--live); }
  57.5%, 59.9%{ top: 18px;  opacity: 1; background: var(--live); }
  60%, 62.4%  { top: 26px;  opacity: 1; background: var(--live); }
  62.5%, 100% { top: 32px;  opacity: 0; }
}

.raster-dot { animation: raster-dot 5s infinite; }

@keyframes raster-dot {
  0%, 9.9%   { background: var(--live); }
  10%, 59.9% { background: var(--amber); }
  60%, 100%  { background: var(--live); }
}

.raster-badge { animation: raster-badge 5s infinite; }

@keyframes raster-badge {
  0%, 9.9%   { color: var(--live-text); border-color: #2c5347; }
  10%, 59.9% { color: var(--amber); border-color: #55462a; }
  60%, 100%  { color: var(--live-text); border-color: #2c5347; }
}

/* ============ 1D dither pulse ============ */

.dither-dot { position: relative; width: 8px; height: 8px; flex: none; }

.dphase {
  position: absolute; inset: 0;
  background-image: conic-gradient(var(--live) 25%, transparent 0 50%, var(--live) 0 75%, transparent 0);
  background-size: 4px 4px;
}

.dphase.b { transform: translate(2px, 0); }

.dphase.a { animation: dph-a .5s infinite; }
.dphase.b { animation: dph-b .5s infinite; }

@keyframes dph-a { 0%, 49.9% { opacity: 1; } 50%, 100% { opacity: .25; } }
@keyframes dph-b { 0%, 49.9% { opacity: .25; } 50%, 100% { opacity: 1; } }

/* ============ 2 dots ============ */

.dotstage {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.sq-dot {
  width: 6px; height: 6px;
  background: var(--live);
  display: block;
}

.step-size { animation: dot-size 1.5s infinite; }

@keyframes dot-size {
  0%, 16.5%  { width: 4px; height: 4px; }
  16.6%, 33.2%{ width: 6px; height: 6px; }
  33.3%, 49.9%{ width: 8px; height: 8px; }
  50%, 66.5% { width: 8px; height: 8px; }
  66.6%, 83.2%{ width: 6px; height: 6px; }
  83.3%, 100%{ width: 4px; height: 4px; }
}

.halo-wrap { position: relative; width: 6px; height: 6px; }
.halo-wrap .sq-dot { position: absolute; inset: 0; }

#halo-a, #halo-b {
  position: absolute;
  left: -5px; top: -5px;
  width: 1px; height: 1px;
}

#halo-a { animation: dph-a .5s infinite; }
#halo-b { animation: dph-b .5s infinite; }

.step-shade { animation: dot-shade 2s infinite; }

@keyframes dot-shade {
  0%, 12.4%   { background: #2e6b52; }
  12.5%, 24.9%{ background: #3f9a75; }
  25%, 37.4%  { background: var(--live); }
  37.5%, 62.4%{ background: var(--live-text); }
  62.5%, 74.9%{ background: var(--live); }
  75%, 87.4%  { background: #3f9a75; }
  87.5%, 100% { background: #2e6b52; }
}

/* ============ 3 WORKING ============ */

.flag-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .08em;
  color: var(--amber);
  background: var(--bar);
  border: 1px solid #55462a;
  padding: 4px 10px;
  border-radius: 3px;
  position: relative;
  overflow: hidden;
}

.spinner {
  display: grid;
  grid-template-columns: 2px 2px;
  grid-template-rows: 2px 2px;
  gap: 1px;
}

.q { background: var(--amber); opacity: .2; }

.q1 { animation: q-on 0.5s infinite; }
.q2 { animation: q-on 0.5s infinite .125s; }
.q4 { animation: q-on 0.5s infinite .25s; }
.q3 { animation: q-on 0.5s infinite .375s; }

@keyframes q-on {
  0%, 24.9% { opacity: 1; }
  25%, 100% { opacity: .2; }
}

.tape-chip {
  background:
    repeating-linear-gradient(115deg, rgba(213,166,74,.28) 0 3px, rgba(213,166,74,.07) 3px 8px),
    var(--bar);
  background-size: 16px 100%, auto;
  animation: tape-run 1s steps(8) infinite;
}

@keyframes tape-run {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 16px 0, 0 0; }
}

.dots3 {
  display: inline-flex;
  gap: 2px;
  align-items: flex-end;
  height: 8px;
}

.dots3 i { width: 2px; height: 2px; background: var(--amber); opacity: .15; }

.dots3 .p1 { animation: dq 1.5s infinite; }
.dots3 .p2 { animation: dq 1.5s infinite .25s; }
.dots3 .p3 { animation: dq 1.5s infinite .5s; }

@keyframes dq {
  0%, 49.9% { opacity: 1; }
  50%, 100% { opacity: .15; }
}

/* ============ 4 BELL ============ */

.bell-tile {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .08em;
  color: var(--amber);
  background: var(--bar);
  border: 1px solid var(--amber);
  padding: 5px 12px;
  border-radius: 3px;
}

.bellcv {
  width: 18px; height: 16px;
  image-rendering: pixelated;
}

.bell-word { line-height: 1; }

#bell-b.invert { background: var(--amber); color: #0b0f14; }
#bell-b.invert .bell-word { color: #0b0f14; }

.bell-tile.off { opacity: 0; }

/* ============ 5 DONE ============ */

.checkcv {
  width: 36px; height: 30px;
  image-rendering: pixelated;
}

/* ============ 6 setup ============ */

.setup-line {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
}

.setup-word {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--amber);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.zx-strip {
  width: 108px;
  height: 5px;
  background: repeating-linear-gradient(105deg, #e8cd60 0 4px, #2b57c8 4px 8px);
  background-size: 16px 100%;
  animation: tape-run2 .5s steps(4) infinite;
  border-radius: 1px;
}

@keyframes tape-run2 {
  from { background-position: 0 0; }
  to   { background-position: 16px 0; }
}

.c64-word {
  background: repeating-linear-gradient(180deg,
    #e8cd8a 0 3px, var(--amber) 3px 6px, #8a6a2f 6px 9px, var(--amber) 9px 12px);
  background-size: 100% 12px;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: c64-bars 1s steps(4) infinite;
}

@keyframes c64-bars {
  from { background-position: 0 0; }
  to   { background-position: 0 12px; }
}

/* ============ 7 attach ============ */

.panecv {
  width: 192px; height: 120px;
  image-rendering: pixelated;
  border: 1px solid var(--border-strong);
  border-radius: 3px;
  background: #0a0f16;
}

/* ============ 8 cat ============ */

.stage-cat { align-items: center; justify-content: center; }

.catcv {
  width: 132px; height: 102px;
  image-rendering: pixelated;
}

.c64-field { background: #40318d; border-color: #7869c4; }

.crt-wrap { position: relative; display: inline-block; line-height: 0; }

.crt-veil {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(180deg,
    transparent 0 4px, rgba(0,0,0,.42) 4px 6px);
  pointer-events: none;
}

/* ============ 9 corner cards ============ */

.stage-corner {
  position: relative;
  align-items: flex-end;
  justify-content: flex-end;
  background:
    linear-gradient(var(--canvas), var(--canvas));
}

.stage-corner::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid #1c232e;
  border-radius: 4px;
  pointer-events: none;
}

.ccard {
  position: relative;
  display: flex;
  gap: 8px;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 10.5px;
  color: var(--muted);
  font-family: var(--mono);
  margin: 4px;
  overflow: hidden;
}

.ccard b { color: var(--live-text); font-weight: 600; }

.cdot { width: 5px; height: 5px; background: var(--live); border-radius: 999px; flex: none; }

.slide-in { animation: card-slide 4.5s infinite; }

@keyframes card-slide {
  0%, 2.7%    { transform: translateX(32px); opacity: 0; }
  2.8%, 5.5%  { transform: translateX(24px); opacity: 1; }
  5.6%, 8.3%  { transform: translateX(16px); opacity: 1; }
  8.4%, 11.1% { transform: translateX(8px);  opacity: 1; }
  11.2%, 84%  { transform: translateX(0);    opacity: 1; }
  84.1%, 100% { transform: translateX(0);    opacity: 0; }
}

.dv {
  position: absolute; inset: 0;
  background-image: conic-gradient(var(--canvas) 25%, transparent 0 50%, var(--canvas) 0 75%, transparent 0);
  background-size: 4px 4px;
}

.dv2 { background-position: 2px 0; }

.dither-in { animation: card-hold 4.5s infinite; }
.dither-in .dv1 { animation: dv-1 4.5s infinite; }
.dither-in .dv2 { animation: dv-2 4.5s infinite; }

@keyframes card-hold {
  0%, 84%     { opacity: 1; }
  84.1%, 100% { opacity: 0; }
}

@keyframes dv-1 {
  0%, 2.7%   { opacity: 1; }
  2.8%, 100% { opacity: 0; }
}

@keyframes dv-2 {
  0%, 5.5%   { opacity: 1; }
  5.6%, 100% { opacity: 0; }
}

.flash-in { animation: card-flash 4.5s infinite; }

@keyframes card-flash {
  0%, 2.7%    { border-color: var(--live); box-shadow: inset 0 0 0 1px var(--live); opacity: 1; }
  2.8%, 84%   { border-color: var(--border-strong); box-shadow: none; opacity: 1; }
  84.1%, 100% { opacity: 0; }
}

/* ================= ВОЛНА 2 ================= */

.wave-divider {
  max-width: 1060px;
  margin: 0 auto;
  padding: 44px 24px 4px;
}

.wave-label {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--amber);
  border: 1px solid #55462a;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--bar);
}

.wave-note { max-width: 78ch; color: var(--muted); font-size: 13px; margin-top: 10px; }

.bold-note {
  font-size: 10px;
  font-weight: 400;
  font-family: var(--mono);
  color: var(--amber);
  border: 1px solid #55462a;
  padding: 1px 6px;
  border-radius: 999px;
  vertical-align: 2px;
  margin-left: 6px;
}

.variant code {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--live-text);
}

/* ---- 1E щелчок автомата ---- */

.badge-stack { position: relative; display: inline-flex; }

.badge-stack .mini-badge { transition: none; }

.click-stale { position: absolute; inset: 0; color: var(--amber); border-color: #55462a; }

.click-live  { animation: click-live 5s infinite; }
.click-stale { animation: click-stale 5s infinite; }
.click-dot   { animation: click-dot 5s infinite; }

@keyframes click-live {
  0%, 47.4%   { opacity: 1; background: transparent; color: var(--live-text); }
  47.5%, 49.9%{ opacity: 1; background: var(--live); color: #0b0f14; }
  50%, 100%   { opacity: 0; }
}

@keyframes click-stale {
  0%, 47.4%   { opacity: 0; }
  47.5%, 49.9%{ opacity: 0; }
  50%, 52.4%  { opacity: 1; background: var(--amber); color: #0b0f14; }
  52.5%, 97.4%{ opacity: 1; background: transparent; color: var(--amber); }
  97.5%, 100% { opacity: 0; }
}

@keyframes click-dot {
  0%, 49.9%  { background: var(--live); }
  50%, 100%  { background: var(--amber); }
}

/* ---- 1F фосфорный след ---- */

.ghost-strip { display: flex; gap: 8px; }

.chip {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
  background: var(--control);
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  padding: 4px 10px;
}

.ghost-chip { animation: ghost 4s infinite; }

@keyframes ghost {
  0%, 54.9%   { opacity: 1; }
  55%, 58.1%  { opacity: .25; background: transparent; }
  58.2%, 87.4%{ opacity: 0; }
  87.5%, 100% { opacity: 1; }
}

/* ---- 10 запуск ---- */

.post-box {
  font-family: var(--mono);
  font-size: 11px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.post-row {
  color: var(--body);
  padding: 2px 8px;
  min-height: 16px;
}

.post-row::before { content: attr(data-t); }

.post-row.off { visibility: hidden; }

.post-count {
  color: var(--muted);
  padding: 2px 8px;
  min-height: 16px;
  font-size: 10px;
  letter-spacing: .06em;
}

.post-count .ready { color: var(--live-text); }

.crt-on, .tape-inner, .instant-on {
  position: relative;
  width: 150px; height: 92px;
  background: #0a0f16;
  border: 1px solid var(--border-strong);
  border-radius: 3px;
  overflow: hidden;
}

.crt-rail {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 34px;
  background: var(--panel);
  border-right: 1px solid var(--border);
}

.crt-glass i {
  position: absolute;
  left: 42px;
  height: 3px;
  background: #3d4a5c;
}

.crt-glass i:nth-child(1) { top: 14px; width: 70px; }
.crt-glass i:nth-child(2) { top: 24px; width: 52px; background: #2a3442; }
.crt-glass i:nth-child(3) { top: 34px; width: 84px; background: #2a3442; }

.crt-line {
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  background: #dfe6ee;
  opacity: 0;
  z-index: 2;
  animation: crt-line 5s infinite;
}

.crt-on .crt-content { animation: crt-content 5s infinite; }

@keyframes crt-line {
  0%, 2.4%   { opacity: 1; height: 1px; margin-top: 0; }
  2.5%, 4.9% { opacity: 1; height: 10px; margin-top: -5px; }
  5%, 7.4%   { opacity: .5; height: 92px; margin-top: -46px; }
  7.5%, 100% { opacity: 0; height: 1px; }
}

@keyframes crt-content {
  0%, 4.9%   { opacity: 0; }
  5%, 89.9%  { opacity: 1; }
  90%, 100%  { opacity: 0; }
}

.tape-border {
  padding: 6px;
  border-radius: 4px;
  background: repeating-linear-gradient(105deg, #e8cd60 0 5px, #2b57c8 5px 10px);
  background-size: 20px 100%;
  animation: tape-border-run .5s steps(4) infinite, tape-border-calm 6s steps(1) infinite;
}

@keyframes tape-border-run {
  from { background-position: 0 0; }
  to   { background-position: 20px 0; }
}

/* после «первого полла» рамка гаснет в обычную */
@keyframes tape-border-calm {
  0%, 29.9% { filter: none; }
  30%, 100% { filter: grayscale(1) brightness(.35); }
}

.tape-inner .crt-rail, .tape-inner .crt-glass i { animation: crt-content 6s infinite steps(1); }

.tape-inner .crt-rail { animation-name: tape-content; }
.tape-inner .crt-glass i { animation-name: tape-content; }

@keyframes tape-content {
  0%, 29.9%  { opacity: 0; }
  30%, 94.9% { opacity: 1; }
  95%, 100%  { opacity: 0; }
}

.instant-on .crt-rail, .instant-on .crt-glass i { animation: instant-blink 5s infinite steps(1); }

@keyframes instant-blink {
  0%, 4.9%   { opacity: 0; }
  5%, 100%   { opacity: 1; }
}

/* ---- 12 эхо ---- */

.type-line {
  font-family: var(--mono);
  font-size: 14px;
  color: #dfe6ee;
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 180px;
}

.type-line .prompt { color: var(--live); margin-right: 6px; }

.type-line .typed { white-space: pre; letter-spacing: 1px; }

.type-line .typed span.fresh { color: #ffffff; background: rgba(255,255,255,.14); }

.type-line .typed span.lattice {
  color: transparent;
  background-image: conic-gradient(#8fa3bb 25%, transparent 0 50%, #8fa3bb 0 75%, transparent 0);
  background-size: 4px 4px;
}

.cursor-block {
  width: 8px; height: 16px;
  background: #7fa7ff;
  display: inline-block;
}

/* ---- 13 пульс опроса ---- */

.radar-wrap { position: relative; width: 6px; height: 6px; }
.radar-wrap .sq-dot { position: absolute; inset: 0; }

.radar-ring {
  position: absolute;
  border: 1px solid var(--live);
  opacity: 0;
  animation: radar 2s infinite;
}

@keyframes radar {
  0%, 6.2%    { opacity: .9; left: -4px; top: -4px; right: -4px; bottom: -4px; }
  6.3%, 12.4% { opacity: .45; left: -8px; top: -8px; right: -8px; bottom: -8px; }
  12.5%, 100% { opacity: 0; }
}

.rtt-dot { animation: rtt 4s infinite; }

@keyframes rtt {
  0%, 3.1%    { background: #c8ffe4; }
  3.2%, 49.9% { background: var(--live); }
  50%, 53.1%  { background: #3f9a75; }
  53.2%, 100% { background: var(--live); }
}

.rtt-caption { position: relative; min-width: 70px; text-align: center; }

.rtt-fast, .rtt-slow { position: absolute; left: 0; right: 0; }

.rtt-fast { animation: rtt-cap-a 4s infinite steps(1); }
.rtt-slow { animation: rtt-cap-b 4s infinite steps(1); }

@keyframes rtt-cap-a { 0%, 49.9% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes rtt-cap-b { 0%, 49.9% { opacity: 0; } 50%, 100% { opacity: 1; } }

.today-breath { animation: today-breath 2.4s ease-in-out infinite; }

@keyframes today-breath {
  0%, 100% { opacity: .4; }
  50%      { opacity: 1; }
}

/* ---- 15 бэкдроп ---- */

.flagcv {
  width: 120px; height: 90px;
  image-rendering: pixelated;
}

.on-field { color: #a99fe0; }

/* ---- 16 кот ---- */

.cat-scene { position: relative; }

.mini-card {
  position: absolute;
  top: 12px; right: 12px;
  padding: 5px 9px;
  font-size: 9.5px;
  opacity: 0;
}

.mini-card.show { opacity: 1; }

.catcv.small { width: 88px; height: 68px; }

.cat-install {
  display: flex;
  align-items: center;
  gap: 18px;
}

.zx-strip.narrow { width: 80px; }

/* ---------- pick bar ---------- */

.pickbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--bar);
  border-top: 1px solid var(--border-strong);
  z-index: 10;
}

.pick-inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.pick-count { font-size: 12.5px; color: var(--muted); flex: none; }

.pick-codes {
  flex: 1;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--live-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#copy-btn {
  font-family: inherit;
  font-size: 12.5px;
  color: var(--body);
  background: var(--control);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  padding: 6px 14px;
  cursor: pointer;
}

#copy-btn:hover { background: var(--control-hover); }

#copy-btn.done { color: var(--live-text); border-color: #2c5347; }

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
  body::after {
    content: "MOTION: REDUCED — борд стоит, как стояла бы дека.";
    position: fixed;
    bottom: 64px; left: 50%;
    transform: translateX(-50%);
    font-family: var(--mono);
    font-size: 11px;
    color: var(--amber);
    background: var(--bar);
    border: 1px solid #55462a;
    padding: 4px 12px;
    border-radius: 999px;
  }
}
