@property --fill {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 50%;
}
@property --heat {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 50%;
}
@property --ring {
  syntax: "<angle>";
  inherits: false;
  initial-value: 360deg;
}
@property --spin {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

:root {
  --bg: #0c0909;
  --card: #161010;
  --card-2: #1c1414;
  --line: #3a2224;
  --gold: #d22736;
  --gold-dim: #8a3a42;
  --cream: #f2ebe3;
  --text: #f3eee8;
  --muted: #a39890;
  --up: #14845f;
  --dn: #d22736;
  --mag: #c41e2a;
  --cyan: #14845f;
  --wait: #e8d9c4;
  --warn: #6b5648;
  --font: "IBM Plex Sans", "Segoe UI", Tahoma, sans-serif;
  --mono: "IBM Plex Mono", "Consolas", "Cascadia Mono", monospace;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 13px;
}
body { padding: 10px 14px 40px; }

.brand-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 4px 2px 10px;
  border-bottom: 2px solid var(--gold);
  margin-bottom: 10px;
  color: var(--gold);
  letter-spacing: 0.08em;
  font-size: 11px;
  font-weight: 600;
}
.logo-marquee {
  overflow: hidden;
  margin: 0 -14px 6px;
  padding: 4px 0;
  border-bottom: 1px solid var(--gold-dim);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.logo-track {
  display: flex;
  width: max-content;
  animation: logo-scroll 100s linear infinite;
}
.logo-track img {
  height: 64px;
  width: auto;
  display: block;
  margin-right: 48px;
  flex-shrink: 0;
}
.logo-marquee:hover .logo-track { animation-play-state: paused; }
@keyframes logo-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .logo-track { animation: none; }
}
.training-sweep {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  pointer-events: none;
  z-index: 190;
}
.training-sweep span {
  white-space: nowrap;
  font-size: clamp(56px, 11vw, 180px);
  font-weight: 800;
  letter-spacing: 0.12em;
  color: rgba(190, 190, 190, 0.22);
  text-shadow: 0 0 18px rgba(0, 0, 0, 0.35);
  transform: translateX(100vw);
  visibility: hidden;
}
.training-sweep.run span {
  visibility: visible;
  animation: training-sweep 14s linear 1 both;
}
@keyframes training-sweep {
  from { transform: translateX(100vw); }
  to { transform: translateX(-100%); }
}
@media (prefers-reduced-motion: reduce) {
  .training-sweep span { transform: none; margin: 0 auto; }
  .training-sweep.run span { animation: training-fade 6s ease-in-out 1 both; }
  @keyframes training-fade { 0%, 100% { opacity: 0; } 20%, 80% { opacity: 1; } }
}
.brand-left, .brand-right { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.wl-stack {
  display: flex;
  gap: 8px;
  align-items: stretch;
  flex-shrink: 0;
  margin: -4px 0 10px 86px;
}
.wl-box {
  display: flex;
  align-items: baseline;
  gap: 5px;
  border: 1px solid var(--line);
  background: #120c0c;
  padding: 2px 8px 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  font-weight: 700;
}
.wl-tag {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.12em;
}
.wl-box .mono { font-size: 13px; }
.wl-slash { color: var(--muted); font-size: 12px; }
.wl-box .wl-pct { color: var(--gold); font-size: 11px; white-space: nowrap; }
.wl-box .wl-streak { color: var(--muted); }
.wl-box .wl-streak.up { color: var(--up); }
.brand-left { flex: 1; min-width: 0; }
.brand-sep { color: var(--gold-dim); }
.brand-name { color: var(--gold); }
.brand-name .copy {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  margin-left: 2px;
  vertical-align: 1px;
}

.muted { color: var(--muted); }
.tiny { font-size: 11px; }
.mono { font-family: var(--mono); }
.gold { color: var(--gold); }
.up { color: var(--up); }
.dn { color: var(--dn); }
.mag { color: var(--mag); }

.pill {
  border: 1px solid var(--gold-dim);
  color: var(--gold);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.08em;
}
.pill.live { border-color: var(--up); color: var(--up); }
.desk-status { border-color: var(--gold-dim); color: var(--gold); }
.desk-status.ok { border-color: var(--up); color: var(--up); }
.desk-status.bad { border-color: var(--dn); color: var(--dn); }
.alarm-pill {
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.08em;
}
.alarm-pill.off {
  border-color: var(--line);
  color: var(--muted);
}
.alarm-pill.on {
  border-color: var(--up);
  color: var(--up);
}
.alarm-pill.armed-flash {
  animation: alarm-flash 0.8s ease-out;
}
@keyframes alarm-flash {
  0% { background: #14845f44; }
  100% { background: transparent; }
}

.tv-wrap {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 12px;
}
.tv-head, .tv-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
}
.tv-title { letter-spacing: 0.12em; font-size: 12px; color: var(--cream); }
.tv-size { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.tv-size button {
  background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 12px;
  padding: 0;
}
.tv-size button.on { color: var(--cream); }
.tv-size #tv-fs { color: var(--up); }
.slash { color: var(--muted); }
.linkish {
  background: none; border: 0; color: var(--up); cursor: pointer; font-size: 12px;
}
.tv-wrap.half .tv-frame { height: 210px; min-height: 210px; }
.tv-wrap.collapsed .tv-toolbar,
.tv-wrap.collapsed .tv-frame { display: none; }
.tv-wrap.collapsed .tv-head { padding-bottom: 10px; }
.tf-row { display: flex; gap: 6px; }
.tf-row button {
  background: #201616;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 3px 8px;
  cursor: pointer;
}
.tf-row button.on { color: var(--cream); border-color: var(--gold); background: #2a181a; }
.tv-frame { height: 420px; min-height: 420px; background: #120c0c; position: relative; overflow: hidden; }
.tv-host, .tv-fallback { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 420px; }
.tv-host iframe { width: 100%; height: 100%; border: 0; display: block; }
.tv-fallback { display: block; }
.tv-wrap.half .tv-host,
.tv-wrap.half .tv-fallback { min-height: 210px; }
.tv-status {
  position: absolute; left: 10px; bottom: 6px;
  color: var(--muted); font-size: 10px; letter-spacing: 0.06em;
  pointer-events: none;
}
.tv-frame.fs {
  position: fixed; inset: 0; z-index: 50; height: 100vh;
}

.mom-wrap { margin-bottom: 8px; }
.mom-card { padding: 3px 10px; }
.mom-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 22px;
}
.mom-kicker {
  flex: 0 0 auto;
  font-size: 10px;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--gold);
}
.mom-end {
  flex: 0 0 auto;
  font-size: 9px;
  letter-spacing: 0.08em;
  font-weight: 700;
}
.mom-tug {
  --mom-pct: 50%;
  flex: 1 1 auto;
  min-width: 72px;
  max-width: 360px;
}
.mom-bar {
  position: relative;
  height: 6px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--dn) 0%, #6a3030 42%, #3a3330 50%, #1a4a38 58%, var(--up) 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35);
}
.mom-bar::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -2px;
  bottom: -2px;
  width: 1px;
  background: rgba(242, 235, 227, 0.38);
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 1;
}
.mom-pull {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 0;
  border-radius: 99px;
  pointer-events: none;
  z-index: 1;
  transition: left 0.18s ease, width 0.18s ease, background 0.18s ease;
}
.mom-tug.win-up .mom-pull {
  left: 50%;
  width: calc(var(--mom-pct) - 50%);
  background: rgba(20, 132, 95, 0.72);
}
.mom-tug.win-dn .mom-pull {
  left: var(--mom-pct);
  width: calc(50% - var(--mom-pct));
  background: rgba(210, 39, 54, 0.72);
}
.mom-knob {
  position: absolute;
  top: -3px;
  width: 2px;
  height: 12px;
  background: #fff;
  left: var(--mom-pct, 50%);
  transform: translateX(-50%);
  border-radius: 1px;
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
  z-index: 2;
  transition: left 0.18s ease;
}
.mom-label {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  min-width: 3.2em;
}
.mom-label.up { color: var(--up); }
.mom-label.dn { color: var(--dn); }
.mom-label.flat { color: var(--wait); }
#mom-factors {
  flex: 0 1 auto;
  margin: 0;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (prefers-reduced-motion: reduce) {
  .mom-pull, .mom-knob { transition: none; }
}

.win-banner {
  background: #120c0c;
  border-top: 1px solid var(--gold);
  color: var(--cream);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  height: 30px;
  line-height: 30px;
  overflow: hidden;
  width: 100%;
  position: relative;
}
.win-banner-slide {
  display: inline-block;
  min-width: 100%;
  white-space: nowrap;
  will-change: transform;
  animation: win-banner-ltr 90s linear infinite;
}
.win-banner-text {
  display: inline-block;
  white-space: nowrap;
  padding: 0 18px;
  color: var(--cream);
}
.win-banner-text .win-gold { color: var(--gold); font-weight: 700; }
.win-banner-text .win-gap { color: var(--gold-dim); }
@keyframes win-banner-ltr {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.wr-ticker {
  margin: 0;
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
}
.wr-ticker .win-banner-slide {
  animation-duration: 180s;
}
.news-ticker {
  margin: 0 0 10px;
  border-bottom: 1px solid var(--gold);
  border-top: none;
}
.news-ticker .win-banner-slide {
  animation: news-rtl 600s linear infinite;
}
.news-ticker .win-banner-text {
  padding: 0;
  font-size: 13px;
}
@keyframes news-rtl {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.row { display: grid; gap: 10px; margin-bottom: 10px; overflow: visible; }
.row.four { grid-template-columns: 1fr 1.3fr 0.9fr 1.3fr; }
.row.three { grid-template-columns: 1fr 1fr 1fr; }
.row.five { grid-template-columns: repeat(5, 1fr); }
.split-ind { grid-template-columns: 1.7fr 1fr; }
.split-lean { grid-template-columns: 1.4fr 1fr; }
.split-multi { grid-template-columns: 1.6fr 0.9fr; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px 12px;
  min-width: 0;
}
#decision-card {
  position: relative;
  isolation: isolate;
}
#decision-card .call-orbit {
  display: none;
}
#decision-card.call-on {
  border-color: #f0d070;
  box-shadow:
    0 0 0 1px #ffe566aa,
    0 0 22px #e8c36a88,
    0 0 48px #e8c36a55,
    0 0 70px #d2273633,
    inset 0 0 28px #e8c36a18;
}
#decision-card.call-on .call-orbit {
  display: block;
  position: absolute;
  inset: -6px;
  border-radius: 12px;
  padding: 6px;
  background: conic-gradient(
    from var(--spin),
    #3a2a10 0deg,
    transparent 40deg,
    transparent 210deg,
    #6b4a10 240deg,
    #c9a227 270deg,
    #e8c36a 292deg,
    #fff3b0 312deg,
    #ffffff 328deg,
    #ffe566 340deg,
    #e8c36a 350deg,
    #6b4a10 360deg
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  filter: drop-shadow(0 0 6px #fff3b0) drop-shadow(0 0 16px #e8c36a) drop-shadow(0 0 28px #d22736);
  animation: call-orbit-spin 1.25s linear infinite;
  pointer-events: none;
  z-index: 2;
}
@keyframes call-orbit-spin {
  to { --spin: 360deg; }
}
@media (prefers-reduced-motion: reduce) {
  #decision-card.call-on .call-orbit { animation: none; --spin: 40deg; }
}

.pizza-sting {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  background: transparent;
}
.pizza-sting.on {
  background: rgba(10, 4, 4, 0.62);
}
.pizza-sting[hidden] { display: none !important; }
.pizza-flash {
  position: absolute;
  inset: 0;
  background: #fff8dc;
  opacity: 0;
}
.pizza-sting.on .pizza-flash {
  animation: pizza-strobe 0.55s steps(1, end);
}
.pizza-stage {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  opacity: 0;
  transform: scale(0.35);
}
.pizza-sting.on .pizza-stage {
  animation: pizza-pop 2.05s cubic-bezier(0.18, 1.4, 0.32, 1) both;
}
.pizza-rail {
  width: min(420px, 72vw);
  height: 14px;
  border-radius: 999px;
  position: relative;
  background: #1a1008;
  box-shadow:
    0 0 16px #e8c36a,
    0 0 36px #e8c36a88,
    0 0 60px #d2273644;
}
.pizza-rail .gold-orbit {
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  padding: 5px;
  background: conic-gradient(
    from var(--spin),
    #3a2a10 0deg,
    transparent 40deg,
    transparent 210deg,
    #6b4a10 240deg,
    #c9a227 270deg,
    #e8c36a 292deg,
    #fff3b0 312deg,
    #ffffff 328deg,
    #ffe566 340deg,
    #e8c36a 350deg,
    #6b4a10 360deg
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  filter: drop-shadow(0 0 6px #fff3b0) drop-shadow(0 0 16px #e8c36a) drop-shadow(0 0 28px #d22736);
  animation: call-orbit-spin 1.25s linear infinite;
}
.pizza-logo {
  height: min(220px, 36vh);
  width: auto;
  filter: drop-shadow(0 0 18px #e8c36a88) drop-shadow(0 12px 28px #000);
}
.pizza-sting.on .pizza-logo {
  animation: pizza-logo-punch 0.55s cubic-bezier(0.18, 1.6, 0.32, 1) both;
}
.pizza-yell {
  font-size: clamp(48px, 9vw, 110px);
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 0.95;
  color: #fff8dc;
  text-shadow:
    0 0 8px #fff,
    0 0 18px #ffe566,
    0 0 36px #e8c36a,
    0 0 70px #d22736,
    0 6px 0 #8a3a42;
  text-align: center;
}
.pizza-sting.on .pizza-yell {
  animation: pizza-yell-slam 0.5s cubic-bezier(0.12, 1.5, 0.3, 1) 0.08s both;
}
@keyframes pizza-strobe {
  0% { opacity: 0; background: #fff; }
  8% { opacity: 1; background: #fff; }
  16% { opacity: 0; }
  24% { opacity: 1; background: #ffe566; }
  36% { opacity: 0; }
  44% { opacity: 0.85; background: #d22736; }
  58% { opacity: 0; }
  100% { opacity: 0; }
}
@keyframes pizza-pop {
  0% { opacity: 0; transform: scale(0.28); }
  12% { opacity: 1; transform: scale(1.12); }
  22% { transform: scale(0.96); }
  78% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.06); }
}
@keyframes pizza-logo-punch {
  0% { transform: scale(0.2) rotate(-8deg); }
  70% { transform: scale(1.12) rotate(2deg); }
  100% { transform: scale(1) rotate(0deg); }
}
@keyframes pizza-yell-slam {
  0% { transform: scale(2.2); opacity: 0; letter-spacing: 0.28em; }
  70% { transform: scale(0.94); opacity: 1; }
  100% { transform: scale(1); opacity: 1; letter-spacing: 0.08em; }
}
@media (prefers-reduced-motion: reduce) {
  .pizza-sting.on .pizza-flash { animation: none; opacity: 0.25; }
  .pizza-sting.on .pizza-stage { animation: none; opacity: 1; transform: none; }
  .pizza-sting.on .pizza-logo,
  .pizza-sting.on .pizza-yell { animation: none; }
  .pizza-rail .gold-orbit { animation: none; --spin: 40deg; }
}
.cashout-pop {
  position: fixed;
  inset: 0;
  z-index: 230;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.cashout-pop[hidden] { display: none; }
.cashout-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 45%, rgba(40, 90, 40, 0.55), rgba(6, 4, 4, 0.82));
  opacity: 0;
  transition: opacity 0.3s ease;
}
.cashout-pop.show .cashout-backdrop { opacity: 1; }
.cashout-rain { position: absolute; inset: 0; pointer-events: none; }
.cashout-bill {
  position: absolute;
  top: -10%;
  font-size: 34px;
  animation: cashout-fall var(--dur, 3s) ease-in var(--delay, 0s) forwards;
  opacity: 0;
}
@keyframes cashout-fall {
  0% { transform: translate(0, 0) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  100% { transform: translate(var(--drift, 0), 115vh) rotate(var(--spin, 360deg)); opacity: 0.9; }
}
.cashout-card {
  position: relative;
  min-width: 300px;
  max-width: 90vw;
  padding: 26px 34px 22px;
  text-align: center;
  background: linear-gradient(180deg, #1d2a17, #121810);
  border: 2px solid #6fd36f;
  border-radius: 14px;
  box-shadow: 0 0 40px rgba(111, 211, 111, 0.45), 0 18px 50px rgba(0, 0, 0, 0.6);
  transform: scale(0.6);
  opacity: 0;
}
.cashout-pop.show .cashout-card { animation: cashout-pop-in 0.55s cubic-bezier(0.2, 1.4, 0.4, 1) forwards; }
@keyframes cashout-pop-in {
  0% { transform: scale(0.6) rotate(-4deg); opacity: 0; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}
.cashout-icon { font-size: 54px; animation: cashout-bounce 0.9s ease-in-out 0.4s 3; }
@keyframes cashout-bounce { 50% { transform: translateY(-10px) scale(1.12); } }
.cashout-title { font-size: 15px; letter-spacing: 0.3em; color: #9fe39f; margin-top: 4px; }
.cashout-amt { font-size: 46px; font-weight: 800; color: #7dff7d; text-shadow: 0 0 18px rgba(125, 255, 125, 0.55); margin: 6px 0; }
.cashout-sub { font-size: 13px; color: #d8e8d0; }
.cashout-note { font-size: 11px; color: #8fa58a; margin-top: 8px; }
.cashout-close {
  margin-top: 14px;
  padding: 7px 22px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #0d150b;
  background: #6fd36f;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}
@media (prefers-reduced-motion: reduce) {
  .cashout-pop.show .cashout-card, .cashout-icon { animation: none; transform: none; opacity: 1; }
}
.streak-sting {
  position: fixed;
  inset: 0;
  z-index: 205;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  overflow: hidden;
}
.streak-sting.on { background: rgba(10, 4, 4, 0.55); }
.streak-sting[hidden] { display: none !important; }
.streak-rain { position: absolute; inset: 0; }
.streak-pie {
  position: absolute;
  left: 0;
  line-height: 1;
  will-change: transform;
  filter: drop-shadow(0 6px 10px #000a);
  animation: streak-fly var(--dur) linear var(--delay) both;
}
.streak-pie.rtl { animation-name: streak-fly-rtl; }
@keyframes streak-fly {
  0%   { transform: translate(-15vw, 0) rotate(0deg); opacity: 0; }
  6%   { opacity: 1; }
  50%  { transform: translate(50vw, var(--arc)) rotate(calc(var(--spin) / 2)); }
  94%  { opacity: 1; }
  100% { transform: translate(115vw, 0) rotate(var(--spin)); opacity: 0; }
}
@keyframes streak-fly-rtl {
  0%   { transform: translate(115vw, 0) rotate(0deg); opacity: 0; }
  6%   { opacity: 1; }
  50%  { transform: translate(50vw, var(--arc)) rotate(calc(var(--spin) / -2)); }
  94%  { opacity: 1; }
  100% { transform: translate(-15vw, 0) rotate(calc(var(--spin) * -1)); opacity: 0; }
}
.streak-stage {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  opacity: 0;
}
.streak-sting.on .streak-stage {
  animation: streak-pop 4.4s cubic-bezier(0.18, 1.4, 0.32, 1) both;
}
.streak-label {
  font-size: clamp(22px, 4vw, 44px);
  font-weight: 900;
  letter-spacing: 0.22em;
  color: #ffe566;
  text-shadow: 0 0 12px #e8c36a, 0 0 30px #d22736, 0 4px 0 #6b4a10;
}
.streak-num {
  font-size: clamp(110px, 22vw, 260px);
  font-weight: 900;
  line-height: 0.9;
  color: #fff8dc;
  text-shadow:
    0 0 10px #fff,
    0 0 26px #ffe566,
    0 0 60px #e8c36a,
    0 0 110px #d22736,
    0 8px 0 #8a3a42;
}
.streak-sting.on .streak-num {
  animation: pizza-yell-slam 0.55s cubic-bezier(0.12, 1.5, 0.3, 1) 0.15s both;
}
.streak-sub {
  font-size: clamp(13px, 2vw, 20px);
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #fff3b0;
  text-shadow: 0 0 10px #000;
}
@keyframes streak-pop {
  0% { opacity: 0; transform: scale(0.3); }
  10% { opacity: 1; transform: scale(1.1); }
  18% { transform: scale(0.97); }
  85% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.05); }
}
@media (prefers-reduced-motion: reduce) {
  .streak-pie { animation: none; display: none; }
  .streak-sting.on .streak-stage { animation: none; opacity: 1; }
  .streak-sting.on .streak-num { animation: none; }
}
#flip-card.flip-risk {
  border-color: #ff2a3c;
  animation: flip-card-pulse 1.1s ease-in-out infinite;
}
#flip-card.flip-risk #chaos-touch { color: #ff4d5c; font-weight: 800; }
#flip-card.flip-imminent {
  border-color: #ff2a3c;
  animation: flip-card-pulse 0.7s ease-in-out infinite;
}
.flip-meter.imminent #flip-meter-pct { font-weight: 800; }
@keyframes flip-card-pulse {
  0%, 100% {
    box-shadow: inset 0 0 0 1px rgba(255, 42, 60, 0.35), 0 0 0 0 rgba(255, 42, 60, 0);
    background-color: var(--card, #161010);
  }
  50% {
    box-shadow: inset 0 0 0 2px #ff2a3c, 0 0 22px 4px rgba(255, 42, 60, 0.55);
    background-color: #3a0c12;
  }
}

.flip-sting {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.flip-sting.on { background: rgba(30, 0, 4, 0.7); }
.flip-sting[hidden] { display: none !important; }
.flip-flash {
  position: absolute;
  inset: 0;
  background: #ff2a3c;
  opacity: 0;
}
.flip-sting.on .flip-flash { animation: flip-strobe 0.9s steps(1, end); }
.flip-stage {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  opacity: 0;
}
.flip-sting.on .flip-stage {
  animation: flip-pop 4.6s cubic-bezier(0.18, 1.4, 0.32, 1) both;
}
.flip-logo {
  height: min(160px, 26vh);
  width: auto;
  filter: drop-shadow(0 0 18px #ff2a3c) drop-shadow(0 12px 28px #000);
}
.flip-yell {
  font-size: clamp(52px, 10vw, 124px);
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 0.95;
  color: #fff1f1;
  text-align: center;
  text-shadow:
    0 0 8px #fff,
    0 0 18px #ff6b78,
    0 0 40px #ff2a3c,
    0 0 80px #d22736,
    0 6px 0 #5a0a12;
}
.flip-sting.on .flip-yell {
  animation:
    pizza-yell-slam 0.5s cubic-bezier(0.12, 1.5, 0.3, 1) 0.08s both,
    flip-yell-throb 0.8s ease-in-out 0.6s 5;
}
.flip-sub {
  font-family: ui-monospace, Consolas, monospace;
  font-size: clamp(14px, 2.4vw, 22px);
  letter-spacing: 0.12em;
  color: #ffd2d6;
  text-shadow: 0 0 10px #ff2a3c;
}
@keyframes flip-strobe {
  0% { opacity: 0; }
  6% { opacity: 0.95; background: #ff2a3c; }
  14% { opacity: 0; }
  22% { opacity: 0.9; background: #fff; }
  30% { opacity: 0; }
  40% { opacity: 0.85; background: #ff2a3c; }
  52% { opacity: 0; }
  100% { opacity: 0; }
}
@keyframes flip-pop {
  0% { opacity: 0; transform: scale(0.3); }
  6% { opacity: 1; transform: scale(1.1); }
  11% { transform: scale(0.97); }
  90% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.05); }
}
@keyframes flip-yell-throb {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
@media (prefers-reduced-motion: reduce) {
  #flip-card.flip-risk { animation: none; box-shadow: inset 0 0 0 2px #ff2a3c; }
  .flip-sting.on .flip-flash { animation: none; opacity: 0.25; }
  .flip-sting.on .flip-stage { animation: none; opacity: 1; transform: none; }
  .flip-sting.on .flip-yell { animation: none; }
}

.rsi-mtf { margin-top: 6px; padding: 6px 0 2px; border-bottom: 1px solid #2a181a; }
.rsi-mtf-h {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.rsi-mtf .kv.tight { border-bottom: 0; padding: 2px 0; }
.rsi-mtf .bull { color: var(--up); }
.rsi-mtf .bear { color: var(--dn); }

.flip-meter { margin: 8px 0 4px; }
.flip-meter-h {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.flip-meter-h .tiny { font-weight: 400; letter-spacing: 0; }
.flip-meter-track {
  position: relative;
  height: 10px;
  margin-top: 4px;
  border-radius: 5px;
  background: #241416;
  overflow: hidden;
}
.flip-meter-track i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: 5px;
  background: var(--up);
  transition: width 0.4s ease, background 0.4s ease;
}
.flip-meter-track b {
  position: absolute;
  top: -2px;
  bottom: -2px;
  width: 2px;
  background: #ffd27a;
}
.flip-meter.lvl-MED .flip-meter-track i { background: #d9a227; }
.flip-meter.lvl-HIGH .flip-meter-track i { background: var(--dn); }
.flip-meter.lvl-LOW #flip-meter-pct { color: var(--up); }
.flip-meter.lvl-MED #flip-meter-pct { color: #d9a227; }
.flip-meter.lvl-HIGH #flip-meter-pct { color: var(--dn); }

.flipwarn-sting {
  position: fixed;
  inset: 0;
  z-index: 205;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.flipwarn-sting[hidden] { display: none !important; }
.flipwarn-flash {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(ellipse at center, rgba(255, 170, 40, 0.55), rgba(210, 39, 54, 0.35) 60%, transparent 85%);
}
.flipwarn-sting.on .flipwarn-flash { animation: flipwarn-flash 1.6s ease-out both; }
.flipwarn-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
}
.flipwarn-sting.on .flipwarn-stage { animation: flipwarn-pop 1.6s cubic-bezier(0.18, 1.4, 0.32, 1) both; }
.flipwarn-yell {
  font-size: clamp(36px, 7vw, 84px);
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #fff4dc;
  text-align: center;
  text-shadow: 0 0 8px #fff, 0 0 20px #ffb347, 0 0 44px #ff6b1a, 0 0 70px #d22736, 0 5px 0 #5a2a0a;
}
@keyframes flipwarn-flash {
  0% { opacity: 0; }
  10% { opacity: 1; }
  25% { opacity: 0.2; }
  38% { opacity: 0.85; }
  100% { opacity: 0; }
}
@keyframes flipwarn-pop {
  0% { opacity: 0; transform: scale(0.5) translateY(10px); }
  12% { opacity: 1; transform: scale(1.08); }
  20% { transform: scale(1); }
  80% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.96); }
}
@media (prefers-reduced-motion: reduce) {
  .flipwarn-sting.on .flipwarn-flash { animation: none; opacity: 0.3; }
  .flipwarn-sting.on .flipwarn-stage { animation: none; opacity: 1; }
}

.gold-edge { border-color: #5a2228; box-shadow: inset 0 0 0 1px rgba(210, 39, 54, 0.14); }
.card-h {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  color: var(--gold);
  letter-spacing: 0.08em;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 8px;
}
.card-h.mag { color: var(--mag); }
.subhead { margin: -4px 0 8px; }

.kv {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid #2a181a;
}
.train-bar {
  position: relative;
  height: 16px;
  background: #1a0f10;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.train-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: linear-gradient(90deg, #8a5a12, var(--gold));
  opacity: 0.55;
  transition: width 1s ease;
}
.train-bar.done .train-fill {
  background: var(--up);
}
.train-text {
  position: relative;
  display: block;
  text-align: center;
  font-size: 10px;
  line-height: 16px;
  letter-spacing: 0.08em;
  color: #f3e6c8;
  white-space: nowrap;
}
.brain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  column-gap: 24px;
}
.kv.tight { padding: 4px 0; }
.kv .k { color: var(--muted); }
.kv .v { text-align: right; }

.hint { color: var(--muted); font-size: 11px; line-height: 1.45; margin: 8px 0 0; }
.flip-note { color: var(--cream); }
.warn-line {
  color: var(--mag);
  font-size: 10px;
  letter-spacing: 0.04em;
  line-height: 1.4;
  margin: 0 0 8px;
}

.countdown-box { display: flex; gap: 14px; align-items: center; padding: 8px 0; }
.ring {
  width: 118px; height: 118px; border-radius: 50%;
  background: conic-gradient(var(--up) var(--ring), #2a181a 0deg);
  display: grid; place-items: center; flex-shrink: 0;
  transition: --ring 0.8s linear;
}
.ring-hole {
  width: 92px; height: 92px; border-radius: 50%;
  background: var(--card);
  display: grid; place-items: center;
}
.count-num { font-family: var(--mono); font-size: 22px; transition: opacity 0.2s ease, color 0.3s ease; }

.live {
  color: var(--up);
  border: 1px solid #1a4a38;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.08em;
}
.live.off { color: var(--dn); border-color: #5a2228; }

.decision-stage {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.wait-box, .buy-box {
  border: 2px solid var(--up);
  color: var(--cream);
  background: #1a1410;
  padding: 16px 28px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.14em;
  border-radius: 2px;
}
.buy-box.up { border-color: var(--up); color: var(--up); }
.buy-box.dn { border-color: var(--dn); color: var(--dn); }
.wait-box.lean { border-style: dashed; font-size: 18px; }
.wait-box.lean.up { border-color: var(--up); color: var(--up); }
.wait-box.lean.dn { border-color: var(--dn); color: var(--dn); }
.conf { font-family: var(--mono); font-size: 12px; }
.settle-read { margin-top: 8px; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; color: var(--cream); }
.settle-read .up { color: var(--up, #2fbf71); }
.settle-read .dn { color: var(--dn, #ff4d5c); }
.settle-read.steady { animation: steady-pulse 2.6s ease-in-out infinite; }
@keyframes steady-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.62; }
}
@media (prefers-reduced-motion: reduce) {
  .settle-read.steady { animation: none; }
}
.settle-parts { margin-top: 3px; }

.chaos-mode {
  color: var(--cream);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 4px 0 6px;
}
.pattern-line {
  margin: 2px 0 8px;
  font-size: 12px;
  letter-spacing: 0.05em;
  font-weight: 700;
  min-height: 1.1em;
}
.pattern-line.hold-up { color: var(--up); }
.pattern-line.hold-dn { color: var(--dn); }
.pattern-line.no-edge { color: var(--cream); opacity: 0.88; font-weight: 600; }

.rsi-row { align-items: center; }
.rsi-track, .pct-track, .flow-bar, .heat-bar {
  position: relative;
  height: 8px;
  background: linear-gradient(90deg, #0e5c44 0%, #2a2420 48%, #7a1c24 100%);
  border-radius: 99px;
  flex: 1;
}
.pct-track, .flow-bar { background: #241818; margin: 6px 0 10px; }
.rsi-track i, .pct-track i {
  position: absolute; top: -3px; width: 4px; height: 14px;
  background: #fff; border-radius: 1px;
  left: 50%;
  transition: left 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.flow-bar {
  display: block;
  overflow: hidden;
  height: 10px;
  background: linear-gradient(90deg, var(--up) 0 var(--fill), var(--dn) var(--fill) 100%);
  transition: --fill 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}
.flow-bar i { display: none; }

.dual-bar { display: flex; justify-content: space-between; margin-bottom: 4px; }
.control-pill {
  margin-top: 10px;
  text-align: center;
  padding: 6px;
  background: #3a1418;
  color: var(--dn);
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: 700;
}
.control-pill.buy { background: #0e2a20; color: var(--up); }

.sig-log { font-family: var(--mono); font-size: 12px; }
.sig-row {
  display: flex; justify-content: space-between;
  padding: 5px 0; border-bottom: 1px dashed #2a181a; color: var(--muted);
}
.sig-row .lean { color: var(--text); }
.sig-row .up { color: var(--up); }
.sig-row .dn { color: var(--dn); }

.heat { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.heat-bar {
  height: 10px; flex: 1;
  background: linear-gradient(90deg, var(--dn), #3a3a3a 50%, var(--up));
  position: relative;
}
.heat-bar::after {
  content: "";
  position: absolute;
  top: -3px;
  width: 3px; height: 16px;
  background: #fff;
  left: var(--heat, 50%);
  transition: left 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.factors { color: var(--muted); line-height: 1.5; margin: 10px 0 0; }
.section-label {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.14em;
  margin: 18px 0 8px;
  font-weight: 700;
}

.zone {
  margin-top: 10px;
  text-align: center;
  padding: 6px;
  letter-spacing: 0.08em;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid #4a1c22;
}
.zone.mag { background: #3a1418; color: var(--cream); }
.zone.ok { background: #0e2a20; color: var(--up); border-color: #1a4a38; }
.zone.gold { background: #2a1416; color: var(--gold); border-color: #5a2228; margin-top: 6px; }

.big-pct { font-size: 42px; color: var(--muted); font-weight: 600; margin: 6px 0; }
.call-list { min-height: 80px; font-size: 12px; }
.btn-row { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.ghost {
  background: #1c1414;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 6px;
  cursor: pointer;
}
.ghost:hover { color: var(--text); }

.large-list, .recent-list { font-family: var(--mono); font-size: 12px; }
.lg-row, .rc-row {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid #2a181a;
}
.tag {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 2px;
  letter-spacing: 0.08em;
  font-weight: 700;
}
.tag.up { background: #0e2a20; color: var(--up); }
.tag.dn { background: #3a1418; color: var(--dn); }
.sell { color: var(--dn); }

.how {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px 16px;
  margin: 12px 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 12px;
}
.how h3 { color: var(--gold); margin: 0 0 8px; font-size: 13px; letter-spacing: 0.06em; }
.how .legal { color: var(--gold); }
.foot {
  text-align: center;
  color: var(--gold-dim);
  font-size: 11px;
  letter-spacing: 0.06em;
  margin-top: 18px;
}

.asset-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  margin-bottom: 8px;
}
.asset-top { display: flex; justify-content: space-between; align-items: baseline; }
.asset-name { font-weight: 700; }
.yn {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}
.yn > div {
  background: #120c0c;
  border: 1px solid #2a181a;
  padding: 8px;
}
.yn .lab { color: var(--muted); font-size: 10px; letter-spacing: 0.08em; }
.yn .px { font-size: 16px; margin-top: 2px; }
.asset-bot { display: flex; justify-content: space-between; margin-top: 6px; color: var(--muted); font-size: 11px; }

.live-px { font-size: 28px; font-weight: 600; margin: 4px 0; transition: color 0.35s ease; }
.count-num { transition: opacity 0.2s ease; }
.wait-box, .buy-box, .chaos-mode, .score-badge, .control-pill, .mom-label {
  transition: color 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}
.wait-box.pop, .buy-box.pop, .chaos-mode.pop, .mom-label.pop {
  animation: pop 0.32s ease;
}
@keyframes pop {
  0% { transform: scale(0.96); opacity: 0.65; }
  100% { transform: scale(1); opacity: 1; }
}
.v, .gold, .px, .count-num { transition: color 0.3s ease; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
  .win-banner-slide {
    transform: none !important;
    animation: none !important;
  }
}
.side-stack { display: flex; flex-direction: column; gap: 10px; }
.score-card { text-align: center; }
.score-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--cream);
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 3px;
  letter-spacing: 0.04em;
  margin: 4px 0 12px;
}

@media (max-width: 1200px) {
  .row.four, .row.five, .row.three, .split-ind, .split-lean, .split-multi {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 800px) {
  .row.four, .row.five, .row.three, .split-ind, .split-lean, .split-multi {
    grid-template-columns: 1fr;
  }
  .tv-frame { height: 280px; min-height: 280px; }
  .tv-host, .tv-fallback { min-height: 280px; }
}

/* Phone desk: countdown + Decision on one row, momentum directly below. Desktop unchanged. */
@media (max-width: 720px), (max-width: 820px) and (hover: none) and (pointer: coarse) {
  body {
    padding: 8px 8px 28px;
    font-size: 13px;
  }
  .brand-bar {
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 8px;
  }
  .logo-marquee { margin: 0 -8px 6px; }
  .logo-track img { height: 44px; margin-right: 32px; }
  .brand-left {
    flex: 1 1 160px;
    letter-spacing: 0.04em;
    font-size: 10px;
  }
  .brand-right { justify-content: flex-end; }
  .pill, .alarm-pill {
    min-height: 36px;
    padding: 8px 12px;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
  }
  .wl-stack {
    margin: 0 0 8px;
    gap: 4px;
    flex-wrap: nowrap;
  }
  .wl-box { padding: 5px 5px; gap: 3px; letter-spacing: 0; min-width: 0; }
  .wl-tag { font-size: 8px; letter-spacing: 0.04em; }
  .wl-box .mono { font-size: 12px; }
  .wl-box .wl-pct { font-size: 10px; }
  .wl-slash { font-size: 10px; }

  .desk-stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
    margin-bottom: 10px;
    align-items: stretch;
  }
  .desk-stage .row.four {
    display: contents;
  }
  .desk-stage .mom-wrap {
    grid-column: 1 / -1;
    order: 3;
    margin-bottom: 0;
  }
  .mom-card { padding: 3px 8px; }
  .mom-strip { gap: 6px; min-height: 20px; }
  .mom-tug { max-width: none; }
  .mom-label { font-size: 10px; letter-spacing: 0.08em; min-width: 2.8em; }
  #mom-factors { font-size: 9px; max-width: 28vw; }
  .tv-wrap { margin-top: 8px; }
  #countdown-card { order: 1; }
  #decision-card { order: 2; }
  .row.four > .card:nth-child(2),
  .row.four > .card:nth-child(4) {
    grid-column: 1 / -1;
    order: 5;
  }
  #flip-card { order: 4; }

  #countdown-card,
  #decision-card {
    padding: 8px 8px 10px;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  #countdown-card .card-h,
  #decision-card .card-h {
    font-size: 10px;
    margin-bottom: 6px;
  }
  #countdown-card .countdown-box {
    flex-direction: column;
    gap: 8px;
    padding: 4px 0 0;
    align-items: center;
    text-align: center;
  }
  #countdown-card .ring {
    width: 92px;
    height: 92px;
  }
  #countdown-card .ring-hole {
    width: 72px;
    height: 72px;
  }
  #countdown-card .count-num { font-size: 20px; }
  #countdown-card .hint:not(#timing-line):not(#timing-flip) { display: none; }
  #countdown-card .count-meta { width: 100%; }
  #timing-line, #timing-flip {
    font-size: 10px;
    margin-top: 4px;
  }

  #decision-card .decision-stage {
    min-height: 132px;
    flex: 1;
    gap: 6px;
    padding: 4px 0;
  }
  #decision-card .wait-box,
  #decision-card .buy-box {
    padding: 12px 10px;
    font-size: 16px;
    letter-spacing: 0.1em;
    width: 100%;
    text-align: center;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  #decision-note {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 10px;
    margin-top: 4px;
  }

  .tv-head, .tv-toolbar {
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 10px;
  }
  .tv-title { font-size: 11px; }
  .tv-size { gap: 4px; }
  .tv-size button,
  .tf-row button,
  .linkish {
    min-height: 36px;
    padding: 6px 10px;
    font-size: 13px;
  }
  .tf-row button {
    background: #201616;
    border: 1px solid var(--line);
    border-radius: 4px;
  }

  /* Full on a phone ≈ half the viewport so the canvas actually paints. */
  .tv-frame {
    height: min(46vh, 380px);
    min-height: 220px;
    max-height: 50vh;
  }
  .tv-host, .tv-fallback {
    min-height: 0;
    height: 100%;
  }
  .tv-wrap.half .tv-frame {
    height: min(32vh, 260px);
    min-height: 180px;
    max-height: 36vh;
  }
  .tv-wrap.half .tv-host,
  .tv-wrap.half .tv-fallback { min-height: 0; }
  .tv-frame.fs {
    max-height: none;
    height: 100vh;
    min-height: 100vh;
  }

  .win-banner {
    height: 34px;
    line-height: 34px;
    font-size: 12px;
  }
  .ghost {
    min-height: 40px;
    padding: 10px 12px;
    font-size: 13px;
  }
  .btn-row { gap: 8px; }
  .lg-row, .rc-row {
    grid-template-columns: 84px 1fr auto;
    gap: 6px;
  }
  .pizza-logo { height: min(180px, 28vh); }
  .pizza-yell { font-size: clamp(36px, 12vw, 72px); }
  .live-px { font-size: 26px; }
}

.bet-pause {
  position: fixed;
  left: 10px;
  bottom: 10px;
  z-index: 40;
  max-width: 220px;
  padding: 6px 9px;
  background: var(--card);
  border: 1px solid var(--gold-dim);
  border-left: 3px solid var(--gold);
  border-radius: 4px;
  font-size: 11px;
  line-height: 1.35;
  color: var(--text);
  pointer-events: none;
}
.bet-pause[hidden] { display: none; }
.bet-pause-title { color: var(--gold); font-weight: 700; letter-spacing: 0.06em; font-size: 10px; }
.bet-pause-text { color: var(--muted); }

.cashout-btn, .resume-btn { cursor: pointer; font-weight: 700; letter-spacing: 0.06em; }
.cashout-btn { background: #3a1418; color: #ff6b76; border: 1px solid var(--dn); }
.cashout-btn:hover { background: #5a1a20; }
.cashout-btn:disabled { opacity: 0.7; cursor: default; }
.resume-btn { background: #0e2a20; color: var(--up); border: 1px solid var(--up); }

body.remote #cashout-btn,
body.remote #resume-btn,
body.remote #bet-pause,
body.remote #btn-clear,
body.remote #btn-broken { display: none !important; }

.access-lock {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 5, 5, 0.97);
  backdrop-filter: blur(6px);
}
.access-lock[hidden] { display: none; }
body.locked > *:not(.access-lock) { visibility: hidden; }
.access-card {
  width: min(420px, 92vw);
  padding: 26px 24px 20px;
  background: var(--card);
  border: 1px solid var(--gold-dim);
  border-top: 3px solid var(--gold);
  border-radius: 6px;
  text-align: center;
  font-family: var(--mono);
}
.access-logo { height: 64px; margin-bottom: 10px; }
.access-title { color: var(--gold); font-weight: 700; letter-spacing: 0.1em; font-size: 14px; }
.access-sub { color: var(--muted); font-size: 12px; line-height: 1.45; margin: 8px 0 16px; }
.access-input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  background: #0d0909;
  color: var(--cream);
  border: 1px solid var(--gold-dim);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-align: center;
}
.access-input:focus { outline: none; border-color: var(--gold); }
.access-btn {
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  background: #3a1418;
  color: var(--cream);
  border: 1px solid var(--gold);
  border-radius: 4px;
  font-family: var(--mono);
  font-weight: 700;
  letter-spacing: 0.12em;
  cursor: pointer;
}
.access-btn:disabled { opacity: 0.6; cursor: default; }
.access-err { min-height: 18px; margin-top: 10px; color: #ff6b76; font-size: 12px; }
