/* BumpSet Live — public view. Tokens from the design handoff. */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100% 125%;
  font-display: swap;
  src: url("/assets/fonts/archivo-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Chivo Mono";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/chivomono-latin.woff2") format("woff2");
}

:root {
  --ink: #15171C;
  --ink-2: #3E3C37;
  --muted: #5F5C55;
  --placeholder: #77736B;
  --paper: #F7F5F0;
  --card: #FFFFFF;
  --well: #EFECE4;
  --line: rgba(21,23,28,0.1);
  --live: #17994A;
  --amber-bg: #FBEFD2;
  --amber-bd: #D9A82E;
  --amber-tx: #4A3A08;
  --amber-lb: #6B4E06;
  --hl: rgba(27,79,216,0.07);
  --hinge: rgba(0,0,0,0.22);
  --accent: #1B4FD8;
  --font-ui: "Archivo", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Chivo Mono", ui-monospace, Menlo, Consolas, monospace;
  --stock: repeating-linear-gradient(0deg, rgba(0,0,0,0.022) 0 1px, transparent 1px 3px);
  --shadow-card: 0 8px 18px rgba(21,23,28,0.18);
  /* Overshoot easing: things land with a small bounce, like a broadcast score bug. */
  --bounce: cubic-bezier(0.3, 1.35, 0.5, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--paper); color: var(--ink); }
body {
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
.x { font-family: var(--font-ui); font-stretch: 125%; }
.mono, .num, .m { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.lbl { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

/* ---------- App shell ---------- */
[hidden] { display: none !important; }
.app { min-height: 100dvh; display: flex; flex-direction: column; }
.hdr {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-width: 0;
  padding: 8px 14px 10px; border-bottom: 1px solid var(--line);
  padding-top: max(8px, env(safe-area-inset-top));
  padding-left: max(14px, env(safe-area-inset-left)); padding-right: max(14px, env(safe-area-inset-right));
}
.hdr-l { min-width: 0; flex: 1 1 auto; }
.feed-name { font-family: var(--font-ui); font-stretch: 125%; font-weight: 700; font-size: 16px; letter-spacing: -0.005em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meta { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 2px; font-family: var(--font-ui); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); }
.fs { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 999px; border: 1px solid rgba(21,23,28,0.18); background: transparent; color: var(--muted); cursor: pointer; flex-shrink: 0; padding: 0; }
.fs.on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Status badge: one short word; the dot carries the state ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
  height: 32px; padding: 0 12px 0 11px; border-radius: 999px;
  border: 1px solid rgba(21,23,28,0.18); color: var(--muted); background: var(--paper);
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
}
.chip.pop { animation: pop 0.5s var(--bounce); }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); flex-shrink: 0; }
.chip .lb { font-family: var(--font-ui); font-stretch: 125%; white-space: nowrap; }
.chip-live .dot { animation: breathe 3.4s ease-in-out infinite; }
.chip-paused, .chip-timeout { background: var(--well); border-color: rgba(21,23,28,0.18); color: var(--ink); }
.chip-paused .dot, .chip-timeout .dot { background: var(--amber-bd); }
.chip-timeout .dot { animation: breathe 1.2s ease-in-out infinite; }
.chip-stale, .chip-inactive { background: #E3DED4; border-color: rgba(21,23,28,0.3); }
.chip-stale .dot, .chip-inactive .dot { background: var(--muted); }
.chip-final { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip-final .dot { background: #7BE08B; }

/* ---------- Message bar: timeouts, notes, pauses and finals slide in under the header ---------- */
.bug { flex-basis: 100%; order: 3; display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.5s var(--bounce); }
.bug.on { grid-template-rows: 1fr; }
.bug-clip { min-height: 0; overflow: hidden; }
.bug-pill {
  display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 12px 0 11px; margin-bottom: 2px;
  border-radius: 10px; border: 1px solid rgba(21,23,28,0.18); background: var(--well); color: var(--ink); overflow: hidden;
  transform: translateY(-12px) scale(0.97); opacity: 0;
  transition: transform 0.5s var(--bounce), opacity 0.25s ease;
}
.bug.on .bug-pill { transform: none; opacity: 1; }
.bug-pill.swap { animation: swap 0.45s var(--bounce); }
.bug-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex-shrink: 0; }
.bug-pill .lb { font-family: var(--font-ui); font-stretch: 125%; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; }
.bug-pill .dv { width: 1px; align-self: stretch; background: rgba(21,23,28,0.18); flex-shrink: 0; }
.bug-pill .tx { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1 1 auto; }
.bug-pill .clock { font-family: var(--font-mono); font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; margin-left: auto; }
.bug-to { background: var(--to-bg); border-color: var(--to-bd); }
.bug-to .dot { background: var(--to-bd); animation: breathe 1.2s ease-in-out infinite; }
.bug-official { background: var(--well); border-color: rgba(21,23,28,0.22); }
.bug-note { background: var(--amber-bg); border-color: var(--amber-bd); color: var(--amber-tx); }
.bug-note .dot { background: var(--amber-bd); }
.bug-note .dv { background: rgba(74,58,8,0.3); }
.bug-paused .dot { background: var(--amber-bd); }
.bug-stale, .bug-inactive { background: #E3DED4; border-color: rgba(21,23,28,0.3); }
.bug-final { background: var(--ink); border-color: var(--ink); color: #fff; }
.bug-final .dot { background: #7BE08B; }
.bug-final .dv { background: rgba(255,255,255,0.3); }

@keyframes breathe { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }
@keyframes pop { 0% { transform: scale(0.8); opacity: 0.4; } 100% { transform: none; opacity: 1; } }
@keyframes swap { 0% { transform: translateY(-8px); opacity: 0.3; } 100% { transform: none; opacity: 1; } }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.28); } 100% { transform: scale(1); } }
@keyframes ping { 0% { transform: scale(1); opacity: 0.9; } 100% { transform: scale(2.4); opacity: 0; } }
@keyframes lrow-in-l { 0% { transform: translateX(-16px); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes lrow-in-r { 0% { transform: translateX(16px); opacity: 0; } 100% { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .public *, .public *::before, .public *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
}

/* ---------- Body grid: desktop / portrait ---------- */
.body {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "a b" "tos tos" "sets sets";
  column-gap: 9px; row-gap: 10px; padding: 12px 12px 0; flex: 1; min-height: 0;
  padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right));
  padding-bottom: max(8px, env(safe-area-inset-bottom));
}
.team { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.team[data-t="0"] { grid-area: a; }
.team[data-t="1"] { grid-area: b; }
.team-head { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.mg {
  border-radius: 50%; background: var(--tc); color: #fff; display: grid; place-items: center;
  font-family: var(--font-ui); font-stretch: 125%; font-weight: 700; flex-shrink: 0;
  width: 48px; height: 48px; font-size: 22px;
}
.mg.two { font-size: 16px; letter-spacing: -0.02em; }
.tname { font-family: var(--font-ui); font-stretch: 125%; font-weight: 700; font-size: 16px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--tx); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
/* Serve tag: reserved on both sides so the heads stay level; visible for the serving team. */
.serve { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 999px; background: var(--tc); font-family: var(--font-ui); font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0; transform: scale(0.8); transition: opacity 0.25s ease, transform 0.5s var(--bounce); }
.serve.on { opacity: 1; transform: none; }
/* One shared label in the middle; each team's dots centered under its own card. */
.tos-bar { grid-area: tos; position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 9px; align-items: center; min-height: 18px; }
.tos-bar .lbl { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 9px; white-space: nowrap; }
.tos { display: flex; justify-content: center; align-items: center; gap: 7px; }
.to { position: relative; width: 12px; height: 12px; border-radius: 50%; background: var(--tc); border: 1.5px solid var(--tc); transition: transform 0.45s var(--bounce), background-color 0.25s ease, border-color 0.25s ease; }
.to.spent { background: transparent; border-color: rgba(21,23,28,0.3); transform: scale(0.85); }
.to.ping::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid var(--tc); animation: ping 0.6s ease-out forwards; }

/* ---------- Flip card ---------- */
.card {
  position: relative; width: 100%; margin-top: 10px; border-radius: 16px; overflow: hidden;
  background: var(--tint); background-image: var(--stock);
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255,255,255,0.35);
  container-type: size; aspect-ratio: 16 / 10;
  perspective: calc(240cqh);
}
.card .half, .card .flap {
  position: absolute; left: 0; right: 0; height: 50%; overflow: hidden;
  background: var(--tint); background-image: var(--stock);
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.card .top { top: 0; }
.card .bottom { bottom: 0; }
.card .digit {
  position: absolute; left: 0; right: 0; height: 200%; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 700; color: var(--tink, var(--ink)); line-height: 1;
  font-size: 70cqh; letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
}
.card .top .digit { top: 0; }
.card .bottom .digit { bottom: 0; }
/* The trim along the bottom flap's free edge, in the team's other color: a band, a gap, a line. */
.card .bottom::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 13cqw; pointer-events: none;
  background: linear-gradient(to top, var(--ttrim, var(--tint)) 0 9cqw, transparent 9cqw 11cqw, var(--ttrim, var(--tint)) 11cqw 13cqw); }
.card .flap { z-index: 2; transform-style: preserve-3d; will-change: transform; display: none; }
.card .flap.top { transform-origin: 50% 100%; }
.card .flap.bottom { transform-origin: 50% 0%; }
.card .flap.top::after, .card .flap.bottom::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.card .flap.top::after { background: linear-gradient(to bottom, rgba(0,0,0,0) 40%, rgba(0,0,0,0.12)); }
.card .flap.bottom::after { background: linear-gradient(to top, rgba(0,0,0,0) 40%, rgba(0,0,0,0.10)); }
.card .hinge { position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--hinge); z-index: 3; box-shadow: 0 1px 0 rgba(255,255,255,0.35); }
.card.final-loser { background: var(--card); background-image: none; }
.card.final-loser .half, .card.final-loser .flap { background: var(--card); background-image: none; }
.card.final-loser .digit { color: var(--muted); }
.card.final-loser .bottom::before { display: none; }
/* The WebGL card: the element keeps its footprint and drop shadow; the canvas draws past it so a flap can swing out. */
.team { position: relative; }
.team:has(.card.moving) { z-index: 1; }
.app { overflow-x: clip; }
.card.card-3d { background: transparent; background-image: none; box-shadow: none; overflow: visible; }
.card.card-3d::before { content: ""; position: absolute; inset: 9% 6% 5%; border-radius: 12px; box-shadow: var(--shadow-card); pointer-events: none; }
.card.card-3d .half, .card.card-3d .flap, .card.card-3d .hinge { display: none; }
.card-gl { position: absolute; left: -17%; top: -4%; width: 134%; height: 108%; display: block; pointer-events: none; }

/* ---------- Sets: tracks [slot][1fr][label][1fr][slot], shared by the head row and the ladder ---------- */
.sets { grid-area: sets; min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 8px; }
.sets-head { display: none; }
.set { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; flex: 0 0 auto; }
.set.live { border: 1.5px solid rgba(27,79,216,0.45); }
.set.live .set-head { background: var(--hl); }
.set.unplayed { border: 1px dashed rgba(21,23,28,0.28); background: transparent; }
.set.unplayed .sa, .set.unplayed .sb, .set.unplayed .sl { color: var(--placeholder); }
.set.unplayed .caret { visibility: hidden; }
.set-head {
  display: grid; grid-template-columns: 44px 1fr 58px 1fr 44px; align-items: center;
  padding: 10px 8px; min-height: 44px; cursor: pointer; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
}
.set.unplayed .set-head { cursor: default; }
.slot { display: flex; align-items: center; justify-content: center; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--live); animation: breathe 1.7s ease-in-out infinite alternate; }
.live-dot.pop { animation: pop 0.5s var(--bounce), breathe 1.7s ease-in-out 0.5s infinite alternate; }
.sa, .sb { font-family: var(--font-mono); font-size: 20px; text-align: center; color: var(--muted); font-weight: 400; }
.sa.w, .sb.w { color: var(--ink); font-weight: 700; }
.set.live .sa, .set.live .sb { font-weight: 700; color: var(--ink); }
.sa.bump, .sb.bump { animation: bump 0.45s var(--bounce); }
.sl { font-family: var(--font-ui); font-stretch: 125%; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-align: center; color: var(--ink-2); }
.sl .short { display: none; }
.caret { display: flex; align-items: center; justify-content: center; color: var(--ink-2); }
.caret svg { width: 16px; height: 16px; transition: transform 0.45s var(--bounce); }
.set.open .caret svg { transform: rotate(180deg); }
.ladder { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s var(--bounce); }
.set.open .ladder { grid-template-rows: 1fr; }
.ladder-in { min-height: 0; overflow: hidden; padding-bottom: 2px; }
/* The two team bands meet at a hairline seam; each band covers its half of the label column
   so the running totals stay centered under the scores above. No marker: the bands tell it. */
.lrow { display: grid; grid-template-columns: 44px 1fr 29px 29px 1fr 44px; border-top: 1px solid var(--line); min-height: 27px; margin: 0 8px; }
.lrow.new.from-l { animation: lrow-in-l 0.45s var(--bounce); }
.lrow.new.from-r { animation: lrow-in-r 0.45s var(--bounce); }
.lc { display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 14px; color: var(--ink); }
.lc.l { grid-column: 1 / 4; padding-left: 44px; padding-right: 29px; border-right: 1px solid var(--line); }
.lc.r { grid-column: 4 / 7; padding-left: 29px; padding-right: 44px; }

/* Desktop only extras */
@media (min-width: 700px) {
  .body { padding: 14px 20px 20px; column-gap: 24px; max-width: 1240px; margin: 0 auto; width: 100%; }
  .hdr { padding: 16px 24px 12px; max-width: 1240px; margin: 0 auto; width: 100%; }
  .hdr-l .feed-name { font-size: 22px; }
  .mg { width: 54px; height: 54px; font-size: 25px; }
  .mg.two { font-size: 18px; }
  .card { border-radius: 18px; }
  .tos-bar { column-gap: 24px; }
  .sets::before { content: "Score sheet"; font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding: 6px 0 2px; }
  .set-head { padding: 12px 10px; }
  .lrow { margin: 0 10px; }
}

/* ---------- Portrait phone: anchored to the viewport; only the score sheet scrolls ---------- */
@media (max-width: 699px) and (orientation: portrait) {
  .app { height: 100dvh; overflow: hidden; }
  .body { grid-template-rows: 300px auto minmax(0, 1fr); row-gap: 8px; }
  .team { height: 300px; }
  .team-head { gap: 4px; }
  .mg { width: 48px; height: 48px; font-size: 22px; }
  .mg.two { font-size: 16px; }
  .tname { font-size: 15px; }
  .card { flex: 1; min-height: 0; aspect-ratio: auto; margin-top: 8px; }
  .card .digit { font-size: max(92px, 70cqh); }
  .sets { overflow-y: auto; overscroll-behavior: contain; gap: 0; background: var(--card); border: 1px solid var(--line); border-radius: 14px; -webkit-overflow-scrolling: touch; }
  .set { border: 0; border-radius: 0; border-bottom: 1px solid var(--line); }
  .set:last-child { border-bottom: 0; }
  .set.live { border: 0; border-bottom: 1px solid var(--line); }
  .set.unplayed { border: 0; border-bottom: 1px solid var(--line); }
  .set-head { padding: 10px 8px; min-height: 52px; }
}

/* ---------- Landscape phone: current score only; the message bar lives in the header ---------- */
@media (orientation: landscape) and (max-height: 520px) {
  .app { height: 100dvh; overflow: hidden; }
  .hdr {
    flex-wrap: nowrap; gap: 12px; padding: 6px 22px 6px;
    padding-top: max(6px, env(safe-area-inset-top));
    padding-left: max(22px, env(safe-area-inset-left)); padding-right: max(22px, env(safe-area-inset-right));
  }
  .hdr-l { display: flex; align-items: baseline; gap: 12px; flex: 0 1 auto; }
  .meta { margin-top: 0; }
  /* Name · message bar · full-screen · badge, so the badge stays anchored at the right. */
  .bug { flex: 1 1 auto; order: 1; display: flex; justify-content: center; min-width: 0; }
  .fs { order: 2; }
  .chip { order: 3; }
  .bug-clip { overflow: visible; min-width: 0; max-width: 100%; }
  .bug-pill { margin: 0; min-height: 32px; }
  .body {
    grid-template-columns: minmax(0, 1fr) 176px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; grid-template-areas: none;
    column-gap: 14px; row-gap: 4px; padding: 4px 18px 8px;
    padding-left: max(18px, env(safe-area-inset-left)); padding-right: max(18px, env(safe-area-inset-right));
    padding-bottom: max(8px, env(safe-area-inset-bottom));
  }
  .team { align-items: stretch; min-height: 0; }
  .team[data-t="0"] { grid-area: 1 / 1 / 2 / 2; }
  .team[data-t="1"] { grid-area: 1 / 3 / 2 / 4; }
  .team-head { flex-direction: row; align-items: center; justify-content: flex-start; gap: 10px; height: 40px; }
  .serve { height: 20px; }
  .team[data-t="1"] .team-head { flex-direction: row-reverse; }
  .mg { width: 40px; height: 40px; font-size: 18px; }
  .mg.two { font-size: 13px; }
  .tname { font-size: 15px; }
  .card { flex: 1; min-height: 0; aspect-ratio: auto; margin-top: 4px; border-radius: 18px; box-shadow: 0 10px 22px rgba(21,23,28,0.16); }
  .card .digit { font-size: 70cqh; }
  .tos-bar { grid-area: 2 / 1 / 3 / 4; grid-template-columns: minmax(0, 1fr) 176px minmax(0, 1fr); column-gap: 14px; min-height: 16px; }
  .tos-bar .lbl { position: static; transform: none; grid-column: 2; justify-self: center; }
  .tos-bar .tos:first-child { grid-column: 1; }
  .tos-bar .tos:last-child { grid-column: 3; }
  .sets { grid-area: 1 / 2 / 2 / 3; display: flex; flex-direction: column; min-height: 0; gap: 0; }
  .sets::before { content: none; }
  .sets-head { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 40px; flex-shrink: 0; }
  .sets-head .lbl { font-size: 9px; }
  .sets-head .sum { font-family: var(--font-mono); font-size: 14px; font-weight: 700; }
  .sets-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin-top: 4px; }
  .set { border: 0; border-radius: 0; border-bottom: 1px solid var(--line); }
  .set:last-child { border-bottom: 0; }
  .set.live, .set.unplayed { border: 0; border-bottom: 1px solid var(--line); }
  .set-head { grid-template-columns: 20px 1fr 28px 1fr 20px; padding: 8px 4px; min-height: 40px; }
  .live-dot { width: 7px; height: 7px; }
  .caret svg { width: 12px; height: 12px; }
  .sa, .sb { font-size: 16px; }
  .sl .full { display: none; }
  .sl .short { display: inline; }
  .lrow { grid-template-columns: 20px 1fr 14px 14px 1fr 20px; min-height: 24px; margin: 0 4px; }
  .lc { font-size: 12px; }
  .lc.l { padding-left: 20px; padding-right: 14px; }
  .lc.r { padding-left: 14px; padding-right: 20px; }
}
@media (orientation: landscape) and (min-height: 521px) { .sets-scroll { display: contents; } }
@media (orientation: portrait) { .sets-scroll { display: contents; } }

/* ---------- Final state ---------- */
.final-pills { grid-area: sets; display: flex; flex-wrap: wrap; gap: 8px; }
.final-pills .pill { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 8px 13px; font-family: var(--font-mono); font-size: 14px; }
.final-pills .pill b { font-weight: 700; }

/* ---------- Plain pages ---------- */
.plain-main { max-width: 480px; margin: 0 auto; padding: 48px 20px; }
.plain-main h1 { font-family: var(--font-ui); font-stretch: 125%; font-weight: 700; font-size: 26px; letter-spacing: -0.01em; margin: 0 0 8px; }
.plain-main p { color: var(--ink-2); line-height: 1.5; }
.plain-main a { color: var(--accent); font-weight: 700; }
.plain-main code { font-family: var(--font-mono); }
.landing .brand { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; }
.brand-mark { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-family: var(--font-ui); font-stretch: 125%; font-weight: 700; font-size: 16px; }
.brand-name { font-family: var(--font-ui); font-stretch: 125%; font-weight: 700; font-size: 15px; }
.brand-dot { color: var(--accent); }
.lede { font-size: 15px; }
.code-form { display: flex; flex-direction: column; gap: 10px; margin: 20px 0 8px; }
.code-input { font-family: var(--font-mono); font-size: 22px; letter-spacing: 0.18em; text-align: center; min-height: 52px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); padding: 0 14px; outline: none; }
.code-input:focus { border-color: rgba(27,79,216,0.55); box-shadow: 0 0 0 1.5px rgba(27,79,216,0.35); }
.btn-primary { min-height: 52px; border: 0; border-radius: 14px; background: var(--ink); color: #fff; font-family: var(--font-ui); font-size: 15px; font-weight: 700; cursor: pointer; }
.err { color: #A3182B; font-weight: 700; }
.feed-list { margin: 26px 0 18px; display: flex; flex-direction: column; gap: 8px; }
.feed-list h2 { margin: 0 0 2px; font-size: 10px; }
.feed-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; min-height: 56px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none; }
.feed-row:active { background: var(--well); }
.feed-mark { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-family: var(--font-ui); font-stretch: 125%; font-weight: 700; font-size: 14px; flex-shrink: 0; }
.feed-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.feed-title { font-family: var(--font-ui); font-stretch: 125%; font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-sub { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.feed-live { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--live); }
.feed-live .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); animation: breathe 3.4s ease-in-out infinite; }
.fine { font-size: 12px; color: var(--muted); }
