/* ==========================================================================
   HotSignals by Stockliga — Live tips page
   Builds on app.css tokens. A card reads top to bottom like a short story:
   the clock, the match on a scoreboard, the bet on a paper slip, the reasons.
   ========================================================================== */

.live-main { max-width: 1180px; margin: 0 auto; padding: 28px 24px 80px; display: grid; gap: 26px; }

/* --- Hero ------------------------------------------------------------------ */

.live-hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; align-items: end; }
.live-hero h1 {
  font-size: clamp(2rem, 5.2vw, 3.4rem); font-weight: 800; font-stretch: 70%; line-height: 1; text-wrap: balance;
}
.hero-count {
  display: inline-block; min-width: .8em; padding: 0 .14em; border-radius: 10px; text-align: center;
  background: var(--flare); color: var(--flare-ink); font-variant-numeric: tabular-nums;
}
.lede { margin: 12px 0 0; color: var(--muted); font-size: 1.05rem; max-width: 58ch; }
.lede a { color: var(--text); }

.today {
  display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; justify-content: flex-end;
  padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line);
}
.t-label { width: 100%; font-size: .78rem; font-weight: 700; color: var(--muted); }
.t-item { font-size: .95rem; color: var(--muted); }
.t-item b { font-family: var(--sans); font-stretch: 72%; font-weight: 800; font-size: 1.7rem; color: var(--text); margin-right: 3px; font-variant-numeric: tabular-nums; }
.t-item.won b { color: var(--mark-won); }
.t-item.lost b { color: var(--mark-lost); }

/* --- Controls -------------------------------------------------------------- */

.controls { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; }
.stake-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: .9rem; color: var(--muted); font-weight: 600; }
.refresh-note { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.refresh-note b { color: var(--text); font-weight: 700; }

/* Countdown ring: drains towards the next check, spins while checking, ticks when fresh */
.ring { width: 22px; height: 22px; flex: none; transform: rotate(-90deg); overflow: visible; }
.ring circle { fill: none; stroke-width: 3.5; }
.ring-track { stroke: var(--line); }
.ring-fill { stroke: var(--mark-won); stroke-linecap: round; stroke-dasharray: 100; transition: stroke-dashoffset 1s linear, stroke .3s; }
.ring-tick { fill: none; stroke: var(--mark-won); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 24; stroke-dashoffset: 24; transform: rotate(90deg); transform-origin: 18px 18px; }
.refresh-note.checking .ring-fill { stroke-dashoffset: 72 !important; transition: none; transform-origin: 18px 18px; animation: ring-spin .8s linear infinite; }
.refresh-note.fresh .ring-fill { stroke-dashoffset: 0 !important; }
.refresh-note.fresh .ring-tick { animation: ring-tick .45s .1s ease-out forwards; }
.refresh-note.waiting .ring-fill { stroke: var(--line); }
@keyframes ring-spin { to { transform: rotate(360deg); } }
@keyframes ring-tick { to { stroke-dashoffset: 0; } }

/* --- Quiet spell ------------------------------------------------------------ */

.quiet {
  --night: #3A4C86;
  display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; padding: 14px 18px; border-radius: 14px;
  background: linear-gradient(100deg, color-mix(in srgb, var(--night) 12%, var(--surface)), var(--surface) 70%);
  border: 1px solid color-mix(in srgb, var(--night) 30%, var(--line));
}
[data-theme="dark"] .quiet { --night: #7D93E0; }
.q-moon { font-size: 1.5rem; line-height: 1.2; flex: none; }
.q-body { min-width: 0; display: grid; gap: 6px; }
.q-head { margin: 0; font-size: .98rem; line-height: 1.5; color: var(--text); }
.q-head > b { font-weight: 800; }
.q-g { white-space: nowrap; }
.q-g b { font-family: var(--mono); font-weight: 600; }
.q-g.focus b { color: color-mix(in srgb, var(--night) 75%, var(--text)); }
.q-clocks { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: .86rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.q-clocks b { font-family: var(--mono); color: var(--text); font-weight: 600; }
.q-since { color: var(--muted); }
/* Technical pause: same calm banner, coffee-coloured */
.quiet.pause { --night: #B7791F; }
[data-theme="dark"] .quiet.pause { --night: #E0A84E; }
.quiet.pause.watch { --night: #2F9E6A; }
[data-theme="dark"] .quiet.pause.watch { --night: #4CC38A; }

/* --- Cards ----------------------------------------------------------------- */

.live-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 500px), 1fr)); gap: 20px; align-items: start; }

.lcard {
  position: relative; overflow: hidden;
  display: grid; gap: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}
.lcard.arriving { animation: card-in .7s cubic-bezier(.2, 1.1, .3, 1) both; }
@keyframes card-in {
  0% { transform: translateY(-18px) scale(.97); opacity: 0; box-shadow: 0 0 0 0 var(--flare); }
  60% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--flare) 40%, transparent); }
  100% { transform: none; opacity: 1; }
}

/* Countdown */
.lc-timer {
  position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px;
  padding: 14px 18px 10px; font-size: .84rem; color: var(--muted);
}
.lc-bar { position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--line); }
.lc-bar i { display: block; height: 100%; width: 100%; background: var(--flare); transition: width 1s linear, background-color .4s ease; }
.lc-left b { font-family: var(--mono); font-weight: 600; color: var(--text); font-size: .95rem; }
.lcard.hurry .lc-bar i { background: var(--mark-lost); }
.lcard.hurry .lc-left b { color: var(--mark-lost); animation: blink 1s ease-in-out infinite; }

/* Match on a scoreboard */
.lc-match { padding: 4px 18px 16px; display: grid; gap: 10px; }
.lc-league { display: flex; align-items: center; font-size: .86rem; font-weight: 600; color: var(--muted); }
.lc-league .cflag { width: 20px; height: 15px; margin-right: 8px; }
.board {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 12px;
  background: linear-gradient(180deg, #0A1018, #121B29); color: #F2F5F8;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), inset 0 -2px 0 rgba(0, 0, 0, .4);
}
.bt { font-weight: 800; font-stretch: 78%; font-size: clamp(1.05rem, 2.6vw, 1.35rem); line-height: 1.1; overflow-wrap: anywhere; }
.bt.away { text-align: right; }
.bt.picked { color: #FFB59E; }
.bt.picked::after { content: " ●"; color: var(--flare); font-size: .6em; vertical-align: .2em; }
.bt.away.picked::after { content: none; }
.bt.away.picked::before { content: "● "; color: var(--flare); font-size: .6em; vertical-align: .2em; }
.bs { display: inline-flex; align-items: center; gap: 4px; font-family: var(--mono); }
.bs b { display: grid; place-items: center; min-width: 38px; height: 44px; border-radius: 6px; background: #000; font-size: 1.7rem; font-weight: 600; color: #FFD27A; text-shadow: 0 0 10px rgba(255, 190, 80, .45); }
.bs i { font-style: normal; color: #6B778A; font-size: 1.3rem; }
.lc-when { margin: 0; font-size: .95rem; }
.lc-when .now { display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: 99px; font-size: .8rem; font-weight: 700; background: var(--flare); color: var(--flare-ink); }

/* The bet, on paper */
.lc-k { display: block; font-size: .74rem; font-weight: 800; letter-spacing: .04em; color: var(--ink-soft); margin-bottom: 4px; }
.lc-bet {
  margin: 0 12px; padding: 16px 16px 14px; border-radius: 10px; color: var(--ink);
  background:
    repeating-linear-gradient(0deg, transparent 0 23px, rgba(80, 60, 30, .04) 23px 24px),
    linear-gradient(180deg, var(--paper), var(--paper-2));
}
.lc-headline { margin: 0; font-size: clamp(1.25rem, 3vw, 1.6rem); font-weight: 800; font-stretch: 80%; line-height: 1.12; text-wrap: balance; }
.lc-detail { margin: 6px 0 0; font-size: .92rem; color: var(--ink-soft); line-height: 1.45; }
.lc-price { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; margin-top: 14px; padding-top: 12px; border-top: 1.5px dashed var(--ink-line); }
.odds-big { display: grid; justify-items: center; padding: 6px 12px 8px; border: 2px solid var(--ink); border-radius: 8px; }
.odds-big span { font-size: .7rem; font-weight: 700; color: var(--ink-soft); }
.odds-big b { font-family: var(--mono); font-size: 2rem; font-weight: 600; line-height: 1; letter-spacing: -.02em; }
.payout p { margin: 0; font-size: .98rem; line-height: 1.4; }
.payout p + p { margin-top: 4px; font-size: .8rem; }
.payout .muted { color: var(--ink-soft); }
.payout b { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nowrap { white-space: nowrap; }
.payout .win { color: #12783F; }

/* Safer companion inside the bet box */
.lc-safe {
  display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; padding: 10px 12px;
  border-radius: 8px; border: 1.5px solid color-mix(in srgb, var(--won) 45%, var(--ink-line));
  background: color-mix(in srgb, var(--won) 8%, transparent);
}
.ls-shield { flex: none; font-size: 1.15rem; line-height: 1.3; }
.ls-body { min-width: 0; flex: 1; }
.ls-body .lc-k { display: block; }
.ls-head { margin: 2px 0 0; font-weight: 700; font-size: .98rem; line-height: 1.3; }
.ls-odds { font-family: var(--mono); font-weight: 700; margin-left: 4px; white-space: nowrap; }
.ls-pay { margin: 3px 0 0; font-size: .85rem; color: var(--ink-soft); }
.ls-pay b { color: var(--ink); font-weight: 800; white-space: nowrap; }
.ls-pay .win { color: #12783F; }
.ls-mine { display: inline-block; margin-top: 6px; font-size: .8rem; font-weight: 600; color: #12783F; }
.lc-safe .btn-sm { margin-top: 8px; padding: 4px 10px; font-size: .8rem; color: var(--ink); border-color: var(--ink-line); }
.r-safe { font-size: .85em; }

/* Why */
.lc-why { padding: 16px 18px 6px; display: grid; gap: 10px; }
.lc-why .lc-k { color: var(--muted); }
.lc-signal { margin: 0; font-size: 1rem; line-height: 1.45; }
.lc-signal i { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 8px; vertical-align: 0; background: var(--fc, var(--flare)); }
.lc-signal[data-flag="PRESSURE"]  { --fc: var(--f-pressure); }
.lc-signal[data-flag="INACTIVE"]  { --fc: var(--f-inactive); }
.lc-signal[data-flag="CHAOS"]     { --fc: var(--f-chaos); }
.lc-signal[data-flag="GOAL_SOON"] { --fc: var(--f-goal); }
.lc-signal[data-flag="CORNERS"]   { --fc: var(--f-corners); }
.lc-facts { margin: 0; padding-left: 1.1em; display: grid; gap: 3px; font-size: .92rem; color: var(--muted); }
.lc-facts b { color: var(--text); font-family: var(--mono); font-weight: 600; }
.lc-read { margin: 0; font-size: .95rem; font-style: italic; color: var(--text); }
.lc-heat { display: flex; align-items: center; gap: 10px; font-size: .84rem; color: var(--muted); }
.flames { display: inline-flex; gap: 3px; align-items: flex-end; }
.flames i { width: 9px; border-radius: 2px 2px 1px 1px; background: var(--line); }
.flames i:nth-child(1) { height: 8px; } .flames i:nth-child(2) { height: 11px; } .flames i:nth-child(3) { height: 14px; }
.flames i:nth-child(4) { height: 17px; } .flames i:nth-child(5) { height: 20px; }
.flames i.on { background: linear-gradient(0deg, var(--f-goal), var(--flare)); }
.lc-heat b { color: var(--text); }

/* Actions */
.lc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 18px 18px; }
.lc-hint { font-size: .82rem; color: var(--muted); }
.lc-mybet { font-size: .9rem; padding: 8px 12px; border-radius: 8px; background: color-mix(in srgb, var(--won) 14%, transparent); border: 1px solid color-mix(in srgb, var(--won) 45%, transparent); }
.lc-mybet a { color: var(--text); font-weight: 600; margin-left: 4px; }
.lc-form { padding: 0 18px 18px; }
.place-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.place-form .field { flex: 1 1 130px; }

/* Leaving for the archive */
.lc-leave {
  position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; gap: 6px; text-align: center; padding: 24px;
  background: color-mix(in srgb, var(--bg) 84%, transparent); backdrop-filter: blur(3px);
  animation: leave-in .35s ease-out both;
}
.lc-leave b { font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 800; font-stretch: 70%; }
.lc-leave span { color: var(--muted); max-width: 34ch; }
.lc-leave.won b { color: var(--mark-won); }
.lc-leave.lost b { color: var(--mark-lost); }
.lc-leave.score b { color: var(--f-goal); }
@keyframes leave-in { from { opacity: 0; } }
.lcard .confetti { z-index: 4; }

/* --- Empty state ----------------------------------------------------------- */

.empty-live {
  display: grid; gap: 10px; justify-items: start; padding: 28px; border-radius: 16px;
  background: var(--surface); border: 1px dashed var(--line);
}
.empty-live h2 { font-size: 1.6rem; font-stretch: 72%; }
.empty-live p { margin: 0; color: var(--muted); max-width: 60ch; }
.empty-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }

/* With the newest Signal Desk post beside it (wide screens), stacked below on narrow ones */
.empty-main { display: grid; gap: 10px; justify-items: start; min-width: 0; }
.empty-live.has-desk { grid-template-columns: minmax(0, 1fr) minmax(280px, 420px); gap: 28px; align-items: start; justify-items: stretch; }
@media (max-width: 900px) { .empty-live.has-desk { grid-template-columns: minmax(0, 1fr); } }

/* The desk post: a printed note on ticket paper */
.desk-teaser {
  position: relative; display: grid; gap: 8px; padding: 18px 20px 16px; border-radius: 10px; text-decoration: none;
  background: var(--paper); color: var(--ink); filter: var(--shadow-ticket); rotate: .6deg;
  border-top: 5px solid var(--mark-lost); transition: rotate .2s ease, transform .2s ease;
}
.desk-teaser:hover { rotate: 0deg; transform: translateY(-2px); }
.desk-teaser:focus-visible { outline: 3px solid var(--flare); outline-offset: 3px; }
.dt-head { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: .72rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.dt-head time { margin-left: auto; text-transform: none; letter-spacing: 0; }
.dt-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--mark-lost);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--mark-lost) 25%, transparent); }
.dt-title { font-size: 1.32rem; font-weight: 800; font-stretch: 78%; line-height: 1.15; text-wrap: balance; }
.dt-text { font-size: .92rem; line-height: 1.55; color: color-mix(in srgb, var(--ink) 82%, transparent);
  display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.dt-more { margin-top: 4px; padding-top: 10px; border-top: 1.5px dashed var(--ink-line); font-weight: 700; font-size: .9rem; }
.desk-teaser:hover .dt-more { text-decoration: underline; text-underline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) {
  .dt-dot { animation: dt-blink 1.6s ease-in-out infinite; }
  @keyframes dt-blink { 50% { opacity: .35; } }
}

/* One-line version while tips are live */
.desk-strip {
  display: flex; align-items: center; gap: 8px; min-width: 0; padding: 10px 14px; border-radius: 10px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--mark-lost); color: var(--muted); font-size: .9rem;
}
.desk-strip b { color: var(--text); }
.desk-strip time { font-family: var(--mono); font-size: .8rem; }
.ds-title { color: var(--text); font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ds-go { margin-left: auto; color: var(--text); }
.desk-strip:hover { border-color: var(--mark-lost); }

.empty-clock { margin: 4px 0 2px; font-size: 1.05rem; font-weight: 600; color: var(--muted); }
.empty-clock b {
  display: inline-block; min-width: 3.2ch; margin-left: 4px; font-family: var(--mono); font-size: 2.1rem; font-weight: 600;
  color: var(--text); font-variant-numeric: tabular-nums; vertical-align: -.12em;
}

/* --- Results reel: a short typographic film on a scoreboard ---------------- */

.reel {
  --rb: #0A1018; --rb2: #131E2E; --rink: #F2F5F8; --rsoft: #93A1B5;
  --ramber: #FFD27A; --rwon: #3DDC84; --rlost: #FF6B6B; --rvoid: #B8C0CC;
  container-type: inline-size;
  margin: 12px 0 14px; border-radius: 14px; overflow: hidden;
  background: radial-gradient(120% 90% at 85% 0%, #1B2A40 0%, transparent 55%), linear-gradient(180deg, var(--rb), var(--rb2));
  color: var(--rink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 10px 30px rgba(10, 16, 24, .18);
}
.reel-stage {
  position: relative; height: clamp(250px, 30cqi, 300px); overflow: hidden;
  /* faint LED scanlines */
  background-image: repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 3px);
}
.reel-stage.clickable { cursor: pointer; }

.scene { position: absolute; inset: 0; padding: clamp(16px, 3.4cqi, 30px) clamp(18px, 4cqi, 36px); }
.scene.play { animation: cam var(--dur, 4s) linear both; }
.scene.out { animation: scene-out .38s ease-in forwards; }
@keyframes cam { from { transform: scale(1); } to { transform: scale(1.035); } }
@keyframes scene-out { to { opacity: 0; transform: scale(.97); filter: blur(5px); } }

/* Building blocks: rise-in letters, reveal, zoom, flip, stretch */
.scene .c { display: inline-block; transform: translateY(110%); }
.scene .w { display: inline-block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; vertical-align: top; }
.scene.play .c { animation: rise .62s cubic-bezier(.2, .9, .25, 1) calc(var(--i) * 26ms + 150ms) both; }
.scene .rv, .scene .zm, .scene .flip, .scene .st span { opacity: 0; }
.scene.play .rv { animation: reveal .6s cubic-bezier(.2, .8, .2, 1) calc(var(--d) * 1ms) both; }
.scene.play .zm { animation: zoom .75s cubic-bezier(.16, 1, .3, 1) calc(var(--d) * 1ms) both; }
.scene.play .flip { animation: flip .5s cubic-bezier(.3, 1.4, .5, 1) calc(var(--d) * 1ms) both; }
.scene.play .st span { animation: stretch .9s cubic-bezier(.16, 1, .3, 1) calc(var(--d) * 1ms + 200ms) both; }
.scene.play .st::before { animation: wipe .5s cubic-bezier(.7, 0, .2, 1) calc(var(--d) * 1ms) both; }
@keyframes rise { from { transform: translateY(110%); } to { transform: none; } }
@keyframes reveal { from { opacity: 0; transform: translateY(12px); clip-path: inset(0 0 100% 0); } to { opacity: 1; transform: none; clip-path: inset(0 0 -20% 0); } }
@keyframes zoom { from { opacity: 0; transform: scale(2.6); filter: blur(10px); } 60% { opacity: 1; } to { opacity: 1; transform: none; filter: none; } }
@keyframes flip { from { opacity: 0; transform: perspective(300px) rotateX(-90deg); } to { opacity: 1; transform: none; } }
@keyframes stretch { from { opacity: 0; font-stretch: 62%; letter-spacing: .25em; } to { opacity: 1; font-stretch: 112%; letter-spacing: -.01em; } }
@keyframes wipe { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Title: the tally */
.s-title { display: grid; align-content: center; gap: 4px; }
.rl-lead { margin: 0; font-size: clamp(1rem, 2.6cqi, 1.3rem); font-weight: 600; color: var(--rsoft); }
.rl-tally { margin: 0; display: flex; flex-wrap: wrap; gap: 0 clamp(18px, 5cqi, 48px); align-items: baseline; }
.tal { display: inline-flex; align-items: baseline; gap: 10px; }
.tal b { display: inline-block; font-size: clamp(4.2rem, 17cqi, 9rem); font-weight: 800; font-stretch: 70%; line-height: .95; letter-spacing: -.03em; }
.tal span { font-size: clamp(1.4rem, 4.5cqi, 2.4rem); font-weight: 700; font-stretch: 85%; }
.tal.won b { color: var(--rwon); }
.tal.lost b { color: var(--rlost); }
.rl-sub { margin: 4px 0 0; color: var(--rsoft); font-size: clamp(.9rem, 2.2cqi, 1.05rem); }

/* One result */
.s-result {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto 1fr auto;
  column-gap: clamp(12px, 3cqi, 28px); row-gap: 6px;
}
.rl-league { grid-column: 1 / -1; margin: 0; display: flex; align-items: center; gap: 8px; font-size: clamp(.82rem, 2cqi, .95rem); font-weight: 600; color: var(--rsoft); }
.rl-league img { width: 22px; height: 16px; border-radius: 2px; }
.rl-teams { grid-column: 1; align-self: center; min-width: 0; }
.rl-team { margin: 0; font-size: clamp(1.9rem, 7.4cqi, 4rem); font-weight: 800; font-stretch: 72%; line-height: 1.02; letter-spacing: -.015em; overflow-wrap: anywhere; }
.s-result.long .rl-team { font-size: clamp(1.5rem, 5.4cqi, 3rem); }
.rl-team + .rl-team { color: color-mix(in srgb, var(--rink) 78%, var(--rb)); }
.rl-score { grid-column: 2; grid-row: 2; align-self: center; margin: 0; display: flex; align-items: center; gap: 6px; font-family: var(--mono); }
.rl-score .ft { font-family: var(--sans); font-size: .8rem; font-weight: 700; color: var(--rsoft); margin-right: 4px; }
.rl-score b {
  display: grid; place-items: center; min-width: clamp(44px, 9cqi, 70px); height: clamp(54px, 11cqi, 84px); border-radius: 8px;
  background: #000; color: var(--ramber); font-size: clamp(2rem, 6.4cqi, 3.4rem); font-weight: 600;
  text-shadow: 0 0 14px rgba(255, 190, 80, .5);
}
.rl-score i { font-style: normal; color: #6B778A; font-size: 1.6rem; }
.rl-bet { grid-column: 1; grid-row: 3; align-self: end; margin: 0; font-size: clamp(.95rem, 2.5cqi, 1.2rem); font-weight: 700; }
.rl-min { display: block; font-size: .78em; font-weight: 500; color: var(--rsoft); }
.rl-safe { color: var(--rwon); font-weight: 600; }
.rl-odds {
  position: absolute; right: clamp(18px, 4cqi, 36px); bottom: calc(clamp(16px, 3.4cqi, 30px) + clamp(40px, 7cqi, 56px));
  margin: 0; font-family: var(--mono); font-size: clamp(1.3rem, 3.6cqi, 1.9rem); font-weight: 600; color: var(--ramber);
}
.rl-verdict { position: relative; grid-column: 2; grid-row: 3; justify-self: end; align-self: end; margin: 0; padding: 4px 14px 6px; isolation: isolate; }
.rl-verdict::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 6px; background: var(--vc); transform-origin: left; transform: scaleX(0); }
.rl-verdict span { display: block; font-size: clamp(1.4rem, 4.6cqi, 2.5rem); font-weight: 800; font-stretch: 112%; line-height: 1; color: #06110B; white-space: nowrap; }
.rl-verdict.won { --vc: var(--rwon); }
.rl-verdict.lost { --vc: var(--rlost); }
.rl-verdict.lost span { color: #1A0606; }
.rl-verdict.void { --vc: var(--rvoid); }

/* Outro: units and the next check */
.s-outro { display: grid; align-content: center; gap: 2px; }
.rl-units { margin: 0; }
.rl-units b { display: inline-block; font-family: var(--mono); font-size: clamp(3.4rem, 14cqi, 7.5rem); font-weight: 600; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.rl-units.won b { color: var(--rwon); }
.rl-units.lost b { color: var(--rlost); }
.rl-units-label { margin: 0; font-size: clamp(1rem, 2.8cqi, 1.35rem); font-weight: 600; color: var(--rsoft); }
.rl-next { margin: 16px 0 0; font-size: clamp(1rem, 2.6cqi, 1.25rem); font-weight: 600; }
.rl-next b { font-family: var(--mono); color: var(--ramber); font-variant-numeric: tabular-nums; }

/* Controls: pause, one segment per scene, open the ticket */
.reel-bar { display: flex; align-items: center; gap: 12px; padding: 8px 14px 10px; border-top: 1px solid rgba(255, 255, 255, .07); }
.reel-btn {
  flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .18); background: transparent; color: var(--rink); cursor: pointer;
}
.reel-btn svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; fill: none; }
.reel-btn .i-play { display: none; fill: currentColor; stroke: none; }
.reel.paused .reel-btn .i-pause { display: none; }
.reel.paused .reel-btn .i-play { display: block; }
.reel-btn:focus-visible, .reel-open:focus-visible { outline: 2px solid var(--ramber); outline-offset: 2px; }
.reel-track { flex: 1; min-width: 0; }
.reel-steps { display: flex; gap: 4px; }
.reel-steps i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.reel-steps i.done { background: rgba(255, 255, 255, .5); }
.reel-steps i.now::after { content: ""; display: block; height: 100%; background: var(--rink); transform-origin: left; animation: seg var(--dur, 4s) linear both; }
@keyframes seg { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.reel-open {
  flex: none; border: 0; background: none; color: var(--ramber); font: inherit; font-size: .85rem; font-weight: 700;
  cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.reel.paused .scene, .reel.paused .scene *, .reel.paused .scene *::before, .reel.paused .reel-steps i::after { animation-play-state: paused !important; }

@container (max-width: 520px) {
  .s-result { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto 1fr auto; }
  .rl-score { grid-column: 1; grid-row: 3; align-self: start; }
  .rl-score b { min-width: 42px; height: 50px; font-size: 1.9rem; }
  .rl-bet { grid-row: 4; padding-right: 110px; }
  .rl-verdict { grid-column: 1; grid-row: 4; }
  .rl-odds { right: auto; left: calc(clamp(18px, 4cqi, 36px) + 150px); bottom: auto; top: calc(50% + 6px); }
}

@media (prefers-reduced-motion: reduce) {
  .scene .c, .scene .rv, .scene .zm, .scene .flip, .scene .st span { opacity: 1; transform: none; animation: none !important; }
  .scene.play, .scene.out { animation: none; }
  .rl-verdict::before { transform: none; animation: none !important; }
  .refresh-note.checking .ring-fill { animation: none; }
}

/* --- Moved + results lists ------------------------------------------------- */

.moved h2, .results h2 { font-size: 1.3rem; font-stretch: 75%; }
.results-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.results-head a { color: var(--muted); font-weight: 600; font-size: .9rem; }
.moved-list, .result-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.moved-item, .result-list li {
  display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 9px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-size: .9rem;
}
.mi-tag, .r-tag {
  justify-self: start; padding: 2px 8px; border-radius: 99px; font-size: .74rem; font-weight: 800;
  background: var(--line); color: var(--text); white-space: nowrap;
}
.won .mi-tag, .won .r-tag { background: var(--mark-won); color: #fff; }
.lost .mi-tag, .lost .r-tag { background: var(--mark-lost); color: #fff; }
.score .mi-tag { background: var(--f-goal); color: #1C1300; }
.mi-text, .r-text { min-width: 0; overflow-wrap: anywhere; }
.moved-item time, .result-list time { font-family: var(--mono); font-size: .8rem; color: var(--muted); }
.r-empty { grid-template-columns: 1fr !important; color: var(--muted); }

.small-print { margin: 0; color: var(--muted); font-size: .84rem; max-width: 80ch; }

/* --- Responsive ------------------------------------------------------------ */

@media (max-width: 860px) {
  .live-hero { grid-template-columns: minmax(0, 1fr); }
  .today { justify-content: flex-start; }
}
@media (max-width: 560px) {
  .live-main { padding: 18px 16px 60px; }
  .board { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; padding: 10px; }
  .bs b { min-width: 30px; height: 38px; font-size: 1.4rem; }
  .lc-price { grid-template-columns: minmax(0, 1fr); }
  .odds-big { justify-self: start; grid-auto-flow: column; gap: 8px; align-items: baseline; }
  .moved-item, .result-list li { grid-template-columns: minmax(0, 1fr) auto; }
  .mi-tag, .r-tag { grid-column: 1 / -1; }
  .stake-pick .seg { width: 100%; }
  .stake-pick .seg button { flex: 1; padding: 0 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .lc-bar i { transition: none; }
}

/* --- Clickable result rows: match, bet and odds in their own columns --------- */

.result-list li, .moved-item { display: block; padding: 0; background: none; border: 0; }
.result-list li.r-empty { padding: 9px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.r-row {
  width: 100%; display: grid; align-items: center; text-align: left; cursor: pointer;
  grid-template-columns: 96px minmax(0, 1.25fr) minmax(0, 1fr) 70px 48px; gap: 20px;
  padding: 12px 16px; border-radius: 10px; font: inherit; font-size: .92rem; color: var(--text);
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color .15s ease, transform .12s ease;
}
.r-row { border-left: 4px solid var(--line); } /* same width for every status, so columns line up */
.r-row:hover { border-color: var(--muted); }
.r-row:active { transform: scale(.995); }
.r-match { font-weight: 700; overflow-wrap: anywhere; }
.r-match .vs { color: var(--muted); font-weight: 400; margin: 0 2px; }
.r-bet { color: var(--muted); overflow-wrap: anywhere; }
.r-odds { font-family: var(--mono); font-weight: 700; font-size: 1rem; text-align: right; color: var(--text); }
.r-row time { font-family: var(--mono); font-size: .8rem; color: var(--muted); text-align: right; }
.won .r-row { border-left: 4px solid var(--mark-won); }
.lost .r-row { border-left: 4px solid var(--mark-lost); }
.moved-item.score .r-row { border-left: 4px solid var(--f-goal); }

/* --- Ticket window ------------------------------------------------------------- */

.tip-modal .modal-body { gap: 14px; }
.td-head { flex: 1; min-width: 0; display: grid; gap: 4px; }
.td-head h2 { font-size: clamp(1.3rem, 3vw, 1.7rem); font-stretch: 75%; text-wrap: balance; }
.td-outcome { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; padding: 10px 14px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); }
.td-outcome b { font-size: 1.3rem; font-weight: 800; font-stretch: 75%; }
.td-outcome span { color: var(--muted); font-size: .9rem; }
.td-outcome.won { border-color: color-mix(in srgb, var(--mark-won) 55%, var(--line)); }
.td-outcome.won b { color: var(--mark-won); }
.td-outcome.lost { border-color: color-mix(in srgb, var(--mark-lost) 55%, var(--line)); }
.td-outcome.lost b { color: var(--mark-lost); }
.td-score-note { margin: -6px 0 0; font-size: .82rem; color: var(--muted); }
.tip-modal .lc-bet { margin: 0; }
.td-price { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 10px; padding-top: 10px; border-top: 1.5px dashed var(--ink-line); }
.td-odds { font-family: var(--mono); font-weight: 700; font-size: 1.8rem; line-height: 1; }
.td-price p { margin: 0; flex: 1 1 220px; font-size: .95rem; }
.td-price .win { color: #12783F; }
.td-facts { margin: 0; display: grid; gap: 10px; }
.td-facts div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; }
.td-facts dt { font-size: .82rem; font-weight: 700; color: var(--muted); }
.td-facts dd { margin: 0; font-size: .95rem; }
.td-facts .lc-facts { padding-left: 1.1em; }
.td-actions { display: flex; justify-content: flex-end; }

@media (max-width: 760px) {
  .r-row { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 14px; }
  .r-row .r-tag, .r-row .mi-tag { grid-column: 1 / -1; }
  .r-match { grid-column: 1; }
  .r-odds { grid-column: 2; grid-row: 2 / span 2; align-self: center; font-size: 1.15rem; }
  .r-bet { grid-column: 1; }
  .r-row time { grid-column: 1 / -1; text-align: left; }
  .td-facts div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

.lc-why .stats-note, .td-facts .stats-note { margin: 0; color: var(--muted); border-color: var(--line); font-size: .88rem; }
.td-facts .stats-note { display: inline-block; }

.btn-donate { background: #FFDD00; border-color: #E5C700; color: #1A1A1A; font-weight: 700; }
.btn-donate:hover { background: #FFE53B; }
.empty-donate { font-size: .86rem; }
.empty-donate a { color: var(--text); font-weight: 600; }

/* Visitors right now */
.controls .online-now { margin-left: auto; }
.online-now { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600; color: var(--text); }
.on-dot { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--mark-won); }
.on-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--mark-won); opacity: 0; animation: on-ping 2.4s ease-out infinite; }
.online-now.solo .on-dot { background: var(--muted); }
.online-now.solo .on-dot::after { display: none; }
@keyframes on-ping { 0% { transform: scale(.6); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .on-dot::after { animation: none; } }

.lc-actions .lc-share { margin-left: auto; }
.td-actions { gap: 8px; flex-wrap: wrap; }

.results-more { margin: 14px 0 0; display: flex; justify-content: center; }
/* "N tips moved to the archive · see archive" (a batch of moves collapsed into one line) */
.moved-summary .r-row { text-decoration: none; color: inherit; border-left: 4px solid var(--muted); }
.moved-summary .r-bet { font-weight: 700; color: var(--text); }
