:root {
  --ink: #070508;
  --ink-soft: #0d080c;
  --panel: #150b10;
  --panel-raised: #1d0e15;
  --wine: #4b0b20;
  --wine-bright: #781033;
  --ruby: #a51445;
  --crimson: #dc1e55;
  --rose: #ff759c;
  --blush: #ffd0db;
  --ivory: #fff8f2;
  --parchment: #eadcc7;
  --muted: #cbb8bd;
  --faint: #8f777e;
  --gold: #c9a461;
  --gold-bright: #f0d99b;
  --gold-dark: #725020;
  --line: rgba(224, 184, 111, 0.28);
  --ruby-line: rgba(220, 30, 85, 0.34);
  --gothic: "Copperplate Gothic Light", Copperplate, "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --reading: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--ink); scroll-behavior: smooth; }
body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(240, 217, 155, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240, 217, 155, 0.025) 1px, transparent 1px),
    radial-gradient(circle at 50% 14%, rgba(121, 12, 48, 0.28), transparent 34%),
    var(--ink);
  background-size: 54px 54px, 54px 54px, auto, auto;
  color: var(--ivory);
  font-family: var(--reading);
}

a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 4px; }
button:disabled { cursor: not-allowed; }
::selection { background: var(--crimson); color: white; }

.ambient {
  position: fixed;
  z-index: -1;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(110px);
  opacity: 0.16;
}
.ambient-left { top: 30%; left: -300px; background: var(--crimson); }
.ambient-right { top: 4%; right: -300px; background: var(--ruby); }

.topbar {
  position: relative;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  min-height: 88px;
  padding: 12px clamp(20px, 4.8vw, 76px);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 5, 8, 0.88);
  backdrop-filter: blur(18px);
}

.brand { display: inline-flex; width: max-content; align-items: center; gap: 13px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold-bright);
  background: radial-gradient(circle, rgba(165, 20, 69, 0.38), rgba(7, 5, 8, 0.9));
  box-shadow: inset 0 0 0 4px rgba(7, 5, 8, 0.82), 0 0 28px rgba(165, 20, 69, 0.24);
  font: 700 15px/1 var(--gothic);
  letter-spacing: 0.05em;
}
.brand > span:last-child { display: grid; gap: 3px; }
.brand strong { color: var(--ivory); font: 700 18px/1 var(--gothic); letter-spacing: 0.04em; text-transform: uppercase; }
.brand small { color: var(--gold); font: 700 8px/1 var(--gothic); letter-spacing: 0.22em; text-transform: uppercase; }

.topbar nav { display: flex; align-items: center; gap: clamp(22px, 3vw, 46px); }
.topbar nav a, footer nav a {
  position: relative;
  padding: 10px 0;
  color: var(--muted);
  font: 700 10px/1 var(--gothic);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: color 180ms ease;
}
.topbar nav a::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 1px;
  background: var(--crimson);
  content: "";
  transform: scaleX(0);
  transition: transform 180ms ease;
}
.topbar nav a:hover, footer nav a:hover { color: var(--blush); }
.topbar nav a:hover::after { transform: scaleX(1); }

.age-mark { justify-self: end; display: flex; align-items: center; gap: 12px; }
.age-mark span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(220, 30, 85, 0.7);
  border-radius: 50%;
  color: var(--rose);
  font: 700 12px/1 var(--gothic);
}
.age-mark small { color: var(--faint); font: 700 8px/1.4 var(--gothic); letter-spacing: 0.15em; text-transform: uppercase; }

.game-page { width: min(1760px, 100%); margin: 0 auto; }
.hero { padding: clamp(72px, 8vw, 130px) clamp(20px, 5vw, 82px) clamp(44px, 5vw, 76px); text-align: center; }
.eyebrow, .panel-kicker {
  margin: 0 0 17px;
  color: var(--gold);
  font: 700 9px/1.4 var(--gothic);
  letter-spacing: 0.27em;
  text-transform: uppercase;
}
.eyebrow { display: flex; justify-content: center; align-items: center; gap: 12px; }
.eyebrow span { width: 34px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.eyebrow::after { width: 34px; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); content: ""; }
.hero h1 {
  margin: 0;
  color: var(--ivory);
  font: 400 clamp(59px, 8vw, 132px) / 0.84 var(--gothic);
  letter-spacing: -0.065em;
  text-transform: uppercase;
  text-shadow: 0 10px 60px rgba(0, 0, 0, 0.58);
}
.hero h1 em { display: block; color: var(--rose); font-size: 0.56em; font-style: normal; letter-spacing: 0.15em; text-shadow: 0 0 42px rgba(220, 30, 85, 0.32); }
.hero-copy { width: min(780px, 100%); margin: 31px auto 0; color: #e8dce0; font-size: clamp(16px, 1.4vw, 21px); line-height: 1.7; text-wrap: balance; }
.trial-keys { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin-top: 32px; }
.trial-keys span { padding: 10px 13px; border: 1px solid rgba(240, 217, 155, 0.2); background: rgba(21, 11, 16, 0.74); color: var(--muted); font: 700 8px/1 var(--gothic); letter-spacing: 0.15em; text-transform: uppercase; }

.casino-table {
  display: grid;
  grid-template-columns: minmax(240px, 0.68fr) minmax(500px, 1.5fr) minmax(250px, 0.72fr);
  gap: clamp(14px, 1.6vw, 26px);
  align-items: stretch;
  padding: 0 clamp(16px, 3.2vw, 52px);
}

.panel {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 3vw, 46px);
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.025), transparent 34%),
    radial-gradient(circle at 50% 0, rgba(126, 16, 53, 0.28), transparent 36%),
    linear-gradient(160deg, rgba(29, 14, 21, 0.98), rgba(10, 6, 9, 0.98));
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.3), inset 0 0 70px rgba(0, 0, 0, 0.24);
}
.panel::before, .panel::after { position: absolute; width: 74px; height: 74px; border: solid var(--gold-dark); opacity: 0.54; content: ""; pointer-events: none; }
.panel::before { top: 10px; left: 10px; border-width: 1px 0 0 1px; }
.panel::after { right: 10px; bottom: 10px; border-width: 0 1px 1px 0; }
.panel-corners::before, .panel-corners::after { position: absolute; width: 34px; height: 34px; color: var(--gold); content: "◆"; font-size: 8px; opacity: 0.64; }
.panel-corners::before { top: 19px; right: 18px; }
.panel-corners::after { bottom: 17px; left: 18px; }
.panel h2 { margin: 0; font: 400 clamp(29px, 2.5vw, 43px) / 1.02 var(--gothic); letter-spacing: -0.035em; }

.briefing-panel { display: flex; flex-direction: column; }
.old-guard-seal {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  width: 112px;
  height: 112px;
  margin-bottom: 36px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(166, 20, 68, 0.42), rgba(7, 5, 8, 0.94) 68%);
  box-shadow: inset 0 0 0 7px rgba(7, 5, 8, 0.84), inset 0 0 0 8px rgba(201, 164, 97, 0.32), 0 0 42px rgba(165, 20, 69, 0.22);
}
.old-guard-seal b { color: var(--gold-bright); font: 400 34px/1 var(--gothic); }
.old-guard-seal span { color: var(--gold); font: 700 6px/1 var(--gothic); letter-spacing: 0.13em; text-transform: uppercase; }
.briefing-panel > p:not(.panel-kicker, .motto) { margin: 24px 0 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.brief-facts { display: grid; gap: 0; margin: 35px 0 0; border-block: 1px solid rgba(240, 217, 155, 0.17); }
.brief-facts div { display: flex; justify-content: space-between; gap: 18px; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.brief-facts div:last-child { border: 0; }
.brief-facts dt { color: var(--faint); font: 700 7px/1 var(--gothic); letter-spacing: 0.15em; text-transform: uppercase; }
.brief-facts dd { margin: 0; color: var(--blush); font-size: 11px; text-align: right; }
.motto { margin: auto 0 0; padding-top: 36px; color: var(--gold-bright); font: italic 400 18px/1.4 var(--reading); }

.wheel-stage {
  position: relative;
  isolation: isolate;
  display: grid;
  justify-items: center;
  align-content: start;
  min-height: 740px;
  overflow: hidden;
  padding: 35px 24px 30px;
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(201, 164, 97, 0.05) 1px, transparent 1px),
    radial-gradient(circle at 50% 47%, rgba(221, 30, 85, 0.24), transparent 36%),
    radial-gradient(circle at 50% 12%, rgba(240, 217, 155, 0.11), transparent 32%),
    linear-gradient(180deg, #190a11, #080508 72%);
  background-size: 42px 100%, auto, auto, auto;
  box-shadow: 0 36px 100px rgba(0, 0, 0, 0.42), inset 0 -80px 130px rgba(0, 0, 0, 0.42);
}
.wheel-stage::before {
  position: absolute;
  z-index: -2;
  top: 80px;
  width: 86%;
  aspect-ratio: 1;
  border: 1px solid rgba(201, 164, 97, 0.21);
  border-radius: 50% 50% 0 0;
  box-shadow: 0 0 0 16px rgba(201, 164, 97, 0.025), 0 0 0 17px rgba(201, 164, 97, 0.08);
  content: "";
}
.stage-arch {
  position: absolute;
  inset: 15px;
  border: 1px solid rgba(201, 164, 97, 0.12);
  pointer-events: none;
}
.stage-arch::before, .stage-arch::after { position: absolute; top: -1px; width: 28%; height: 22px; border-top: 1px solid var(--gold-dark); content: ""; }
.stage-arch::before { left: -1px; border-left: 1px solid var(--gold-dark); }
.stage-arch::after { right: -1px; border-right: 1px solid var(--gold-dark); }
.wheel-caption { z-index: 5; display: grid; justify-items: center; gap: 8px; margin-bottom: 14px; }
.wheel-caption span { color: var(--gold); font: 700 8px/1 var(--gothic); letter-spacing: 0.2em; text-transform: uppercase; }
.wheel-caption b { color: var(--ivory); font: 400 clamp(17px, 1.7vw, 25px) / 1 var(--gothic); letter-spacing: 0.03em; }

.wheel-shell {
  position: relative;
  width: min(92%, 610px);
  aspect-ratio: 1;
  margin-top: 13px;
  border: clamp(8px, 1vw, 14px) solid #3c2916;
  border-radius: 50%;
  background: #090608;
  box-shadow:
    0 0 0 2px var(--gold),
    0 0 0 7px #1a1009,
    0 0 0 8px rgba(240, 217, 155, 0.45),
    0 35px 70px rgba(0, 0, 0, 0.7),
    inset 0 0 40px rgba(0, 0, 0, 0.88);
}
.pointer { position: relative; z-index: 20; width: 44px; height: 48px; margin-bottom: -53px; filter: drop-shadow(0 8px 7px rgba(0, 0, 0, 0.65)); }
.pointer::before { position: absolute; inset: 0; clip-path: polygon(50% 100%, 0 15%, 20% 0, 80% 0, 100% 15%); background: linear-gradient(90deg, #79501e, var(--gold-bright) 50%, #79501e); content: ""; }
.pointer i { position: absolute; top: 8px; left: 50%; width: 9px; height: 9px; border-radius: 50%; background: var(--wine); transform: translateX(-50%); }

.wheel-rotor {
  position: absolute;
  inset: 3.7%;
  border: 3px solid var(--gold-dark);
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 52%, rgba(7, 5, 8, 0.4) 52.3% 55%, transparent 55.3%),
    repeating-conic-gradient(from -4.865deg, #7f0d33 0 4.865deg, #120d0f 4.865deg 9.73deg);
  box-shadow: inset 0 0 0 4px #090608, inset 0 0 0 6px rgba(240, 217, 155, 0.5), inset 0 0 40px #000;
  transition: transform 3.8s cubic-bezier(0.11, 0.68, 0.08, 1);
  will-change: transform;
}
.wheel-rotor::before {
  position: absolute;
  inset: 3.2%;
  border: 2px solid rgba(240, 217, 155, 0.48);
  border-radius: 50%;
  content: "";
  box-shadow: inset 0 0 16px rgba(0, 0, 0, 0.8);
}
.wheel-rotor::after {
  position: absolute;
  inset: 26%;
  border: 2px solid var(--gold-dark);
  border-radius: 50%;
  background: radial-gradient(circle, #681027 0 35%, #1a0b11 38% 66%, #080508 70%);
  box-shadow: 0 0 0 6px #080508, 0 0 0 8px rgba(201, 164, 97, 0.52), inset 0 0 28px #000;
  content: "";
}
.wheel-numbers { position: absolute; inset: 0; z-index: 5; }
.wheel-numbers span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 28px;
  height: 50%;
  margin: -50% 0 0 -14px;
  padding-top: 4.3%;
  color: #fff6e8;
  font: 700 clamp(7px, 0.72vw, 11px) / 1 var(--gothic);
  text-align: center;
  text-shadow: 0 1px 2px black;
  transform-origin: 50% 100%;
}
.wheel-numbers span.gold-number { color: #130b0e; text-shadow: 0 1px rgba(255, 255, 255, 0.25); }
.wheel-numbers span.gold-number::before { position: absolute; z-index: -1; top: -5px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--gold-bright); box-shadow: 0 0 10px rgba(240, 217, 155, 0.38); content: ""; }
.wheel-track { position: absolute; z-index: 6; inset: 8.8%; border: 2px solid rgba(240, 217, 155, 0.36); border-radius: 50%; pointer-events: none; }
.wheel-bowl { position: absolute; z-index: 7; inset: 35%; border: 1px solid rgba(240, 217, 155, 0.62); border-radius: 50%; background: radial-gradient(circle, #a41644, #350b1b 48%, #090608 75%); box-shadow: inset 0 0 30px #000, 0 0 30px rgba(165, 20, 69, 0.36); }

.ball-orbit { position: absolute; z-index: 15; inset: 4.8%; border-radius: 50%; transition: transform 3.55s cubic-bezier(0.16, 0.7, 0.1, 1); will-change: transform; pointer-events: none; }
.ball-orbit i { position: absolute; top: 4.8%; left: 50%; width: clamp(9px, 1.2vw, 15px); height: clamp(9px, 1.2vw, 15px); border-radius: 50%; background: radial-gradient(circle at 35% 30%, white, #ded4c8 55%, #55483e); box-shadow: 0 3px 8px black, 0 0 10px rgba(255, 255, 255, 0.5); transform: translateX(-50%); }

.spin-core {
  position: absolute;
  z-index: 25;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  align-content: center;
  width: 29%;
  aspect-ratio: 1;
  border: 2px solid var(--gold-bright);
  border-radius: 50%;
  background: radial-gradient(circle at 45% 35%, #b82859, #5e0d2a 52%, #12080e 78%);
  box-shadow: inset 0 0 0 6px rgba(7, 5, 8, 0.42), inset 0 0 30px rgba(0, 0, 0, 0.6), 0 0 0 5px #110a0d, 0 0 0 7px var(--gold-dark), 0 0 42px rgba(220, 30, 85, 0.34);
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: filter 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}
.spin-core:hover:not(:disabled) { filter: brightness(1.18); box-shadow: inset 0 0 0 6px rgba(7, 5, 8, 0.42), inset 0 0 30px rgba(0, 0, 0, 0.6), 0 0 0 5px #110a0d, 0 0 0 7px var(--gold-bright), 0 0 58px rgba(220, 30, 85, 0.65); transform: translate(-50%, -50%) scale(1.035); }
.spin-core:disabled { opacity: 0.7; cursor: not-allowed; }
.spin-core .crown { margin-bottom: 3px; color: var(--gold-bright); font-size: clamp(15px, 2vw, 28px); }
.spin-core strong { color: white; font: 700 clamp(10px, 1.25vw, 18px) / 1 var(--gothic); letter-spacing: 0.13em; text-transform: uppercase; }
.spin-core small { margin-top: 6px; color: var(--blush); font: 700 clamp(5px, 0.53vw, 8px) / 1 var(--gothic); letter-spacing: 0.13em; text-transform: uppercase; }
.wheel-stage.is-spinning .wheel-shell { filter: drop-shadow(0 0 24px rgba(220, 30, 85, 0.42)); }
.wheel-stage.is-spinning .spin-core { animation: corePulse 760ms ease-in-out infinite alternate; }
@keyframes corePulse { to { filter: brightness(1.22); } }

.no-repeat { display: flex; align-items: center; gap: 10px; margin: 26px 0 0; color: var(--muted); font: 700 8px/1 var(--gothic); letter-spacing: 0.14em; text-transform: uppercase; }
.no-repeat i { width: 7px; height: 7px; border-radius: 50%; background: var(--crimson); box-shadow: 0 0 15px var(--crimson); }

.ledger-panel { display: flex; flex-direction: column; }
.rank-card { margin-top: 32px; padding: 22px; border: 1px solid rgba(201, 164, 97, 0.22); background: linear-gradient(135deg, rgba(92, 13, 40, 0.66), rgba(7, 5, 8, 0.72)); }
.rank-card span, .recent-block > span { color: var(--gold); font: 700 7px/1 var(--gothic); letter-spacing: 0.16em; text-transform: uppercase; }
.rank-card strong { display: block; margin-top: 11px; color: var(--blush); font: 400 clamp(23px, 2.2vw, 34px) / 1 var(--gothic); }
.rank-card small { display: block; margin-top: 9px; color: var(--faint); font-size: 10px; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 13px; border: 1px solid rgba(201, 164, 97, 0.15); background: rgba(201, 164, 97, 0.15); }
.stat-grid div { min-width: 0; padding: 17px 14px; background: rgba(8, 5, 8, 0.84); }
.stat-grid span { display: block; color: var(--faint); font: 700 6px/1 var(--gothic); letter-spacing: 0.13em; text-transform: uppercase; }
.stat-grid strong { display: block; overflow: hidden; margin-top: 9px; color: var(--ivory); font: 400 clamp(17px, 1.4vw, 23px) / 1 var(--gothic); text-overflow: ellipsis; white-space: nowrap; }
.recent-block { margin-top: 28px; }
#recentNumbers { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; }
#recentNumbers b { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(201, 164, 97, 0.38); border-radius: 50%; background: #11080d; color: var(--gold-bright); font: 700 11px/1 var(--gothic); }
#recentNumbers small { color: var(--faint); font-size: 11px; }
.text-button { display: flex; justify-content: space-between; align-items: center; width: 100%; margin-top: auto; padding: 17px 0 9px; border: 0; border-bottom: 1px solid var(--gold-dark); background: transparent; color: var(--muted); font: 700 8px/1 var(--gothic); letter-spacing: 0.13em; text-align: left; text-transform: uppercase; cursor: pointer; }
.text-button span { color: var(--gold); font-size: 18px; transition: transform 200ms ease; }
.text-button:hover span { transform: rotate(90deg); }

.verdict-card {
  position: relative;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) auto;
  align-items: stretch;
  margin: clamp(18px, 2vw, 30px) clamp(16px, 3.2vw, 52px) 0;
  overflow: hidden;
  border: 1px solid rgba(201, 164, 97, 0.44);
  background:
    linear-gradient(90deg, rgba(89, 49, 20, 0.11) 1px, transparent 1px),
    radial-gradient(circle at 60% 0, rgba(255, 255, 255, 0.52), transparent 36%),
    linear-gradient(105deg, #d6c2a6, #f1e5d2 44%, #dbc5a7);
  background-size: 18px 100%, auto, auto;
  color: #25141a;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.34), inset 0 0 60px rgba(102, 60, 28, 0.11);
}
.verdict-card::before, .verdict-card::after { position: absolute; width: 34px; height: 34px; border: solid rgba(103, 62, 27, 0.5); content: ""; }
.verdict-card::before { top: 10px; left: 10px; border-width: 1px 0 0 1px; }
.verdict-card::after { right: 10px; bottom: 10px; border-width: 0 1px 1px 0; }
.verdict-card > header { display: grid; align-content: center; justify-items: center; gap: 14px; padding: 30px 20px; border-right: 1px solid rgba(86, 47, 23, 0.22); background: rgba(80, 38, 17, 0.08); text-align: center; }
.verdict-card header > div p, .verdict-card header > span { margin: 0; color: #70482b; font: 700 7px/1 var(--gothic); letter-spacing: 0.15em; text-transform: uppercase; }
.verdict-card header > div strong { display: block; margin-top: 6px; color: var(--wine); font: 400 55px/1 var(--gothic); }
.verdict-card header > span { padding: 8px 10px; border: 1px solid rgba(112, 72, 43, 0.3); }
.verdict-card header > small { color: #69565a; font-size: 10px; line-height: 1.4; }
.verdict-body { display: grid; align-content: center; min-height: 260px; padding: clamp(34px, 4vw, 64px); }
.verdict-kicker { margin: 0 0 15px; color: #8a4c31; font: 700 8px/1 var(--gothic); letter-spacing: 0.2em; text-transform: uppercase; }
.verdict-body h2 { max-width: 1050px; margin: 0; color: #261219; font: 600 clamp(24px, 2.4vw, 40px) / 1.27 var(--gothic); letter-spacing: -0.025em; text-wrap: pretty; }
.task-note { max-width: 840px; margin: 19px 0 0; color: #6a5359; font-size: 12px; line-height: 1.55; }
.verdict-actions { display: grid; align-content: center; gap: 9px; width: 230px; padding: 28px; border-left: 1px solid rgba(86, 47, 23, 0.2); }
.verdict-actions button { min-height: 58px; border: 1px solid #6e3e27; color: #fff8f2; font: 700 8px/1.3 var(--gothic); letter-spacing: 0.11em; text-transform: uppercase; cursor: pointer; transition: transform 160ms ease, filter 160ms ease; }
.verdict-actions button:hover:not(:disabled) { transform: translateY(-2px); filter: brightness(1.12); }
.verdict-actions button:disabled { opacity: 0.42; }
.complete-button { background: linear-gradient(110deg, #4b0b20, #a51445); }
.complete-button span { margin-right: 7px; color: var(--gold-bright); }
.skip-button { background: #2b2020; }
.skip-button span { margin-left: 8px; color: var(--gold-bright); }
.verdict-card[data-status="active"] { box-shadow: 0 25px 70px rgba(0, 0, 0, 0.34), 0 0 42px rgba(201, 164, 97, 0.14), inset 0 0 60px rgba(102, 60, 28, 0.11); }
.verdict-card[data-status="completed"] { border-color: rgba(87, 112, 60, 0.72); }
.verdict-card[data-status="skipped"] { opacity: 0.86; }

.lower-grid { display: grid; grid-template-columns: 1.45fr 0.75fr; gap: clamp(14px, 1.6vw, 26px); padding: clamp(20px, 2.5vw, 38px) clamp(16px, 3.2vw, 52px) 0; }
.house-protocol, .trial-history { padding: clamp(30px, 4vw, 60px); border: 1px solid var(--line); background: linear-gradient(145deg, rgba(28, 13, 20, 0.98), rgba(8, 5, 8, 0.98)); }
.house-protocol h2, .trial-history h2, .closing-banner h2 { margin: 0; font: 400 clamp(35px, 4vw, 60px) / 1 var(--gothic); letter-spacing: -0.045em; }
.protocol-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 38px; border: 1px solid rgba(201, 164, 97, 0.14); background: rgba(201, 164, 97, 0.14); }
.protocol-grid section { min-height: 210px; padding: 27px; background: rgba(9, 5, 8, 0.92); }
.protocol-grid b { color: var(--crimson); font: 400 24px/1 var(--gothic); }
.protocol-grid h3 { margin: 40px 0 10px; color: var(--blush); font: 400 19px/1.1 var(--gothic); }
.protocol-grid p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }

.history-heading { display: flex; justify-content: space-between; gap: 20px; align-items: flex-end; }
.history-heading > span { flex: 0 0 auto; color: var(--gold); font: 700 7px/1 var(--gothic); letter-spacing: 0.13em; text-transform: uppercase; }
.trial-history ol { display: grid; gap: 8px; margin: 33px 0 0; padding: 0; list-style: none; }
.trial-history li { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 13px; min-height: 58px; padding: 13px; border: 1px solid rgba(255, 255, 255, 0.08); background: rgba(84, 12, 38, 0.18); }
.trial-history li > b { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--gold-dark); border-radius: 50%; color: var(--gold-bright); font: 700 9px/1 var(--gothic); }
.trial-history li div { min-width: 0; }
.trial-history li span { display: block; color: var(--rose); font: 700 6px/1 var(--gothic); letter-spacing: 0.12em; text-transform: uppercase; }
.trial-history li p { display: -webkit-box; overflow: hidden; margin: 6px 0 0; color: var(--muted); font-size: 10px; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.trial-history li.empty-history { display: block; padding: 24px; color: var(--faint); font-size: 12px; line-height: 1.6; }
.trial-history li[data-result="completed"] { border-color: rgba(97, 128, 69, 0.34); }
.trial-history li[data-result="skipped"] { opacity: 0.68; }

.closing-banner { display: flex; justify-content: space-between; align-items: center; gap: 35px; margin: clamp(20px, 2.5vw, 38px) clamp(16px, 3.2vw, 52px) 0; padding: clamp(42px, 5vw, 76px); border: 1px solid var(--ruby-line); background: radial-gradient(circle at 12% 50%, rgba(220, 30, 85, 0.26), transparent 23%), linear-gradient(110deg, #210a14, #070508); }
.closing-banner a { display: flex; justify-content: space-between; align-items: center; gap: 32px; min-width: 245px; padding: 19px 20px; border: 1px solid var(--gold-dark); background: rgba(76, 10, 33, 0.66); color: var(--ivory); font: 700 8px/1 var(--gothic); letter-spacing: 0.13em; text-transform: uppercase; transition: background 180ms ease, transform 180ms ease; }
.closing-banner a:hover { background: var(--ruby); transform: translateY(-2px); }
.closing-banner a span { color: var(--gold-bright); font-size: 18px; }

footer { display: grid; grid-template-columns: 1fr minmax(280px, 0.8fr) auto; align-items: center; gap: 50px; margin-top: 60px; padding: 55px clamp(20px, 4.8vw, 76px); border-top: 1px solid var(--line); background: #050305; }
.footer-brand .brand-mark { width: 42px; height: 42px; }
footer > p { margin: 0; color: var(--faint); font-size: 11px; line-height: 1.6; }
footer nav { display: flex; gap: 25px; }

.dialog-backdrop { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 22px; background: rgba(4, 2, 4, 0.86); backdrop-filter: blur(12px); }
.dialog-backdrop[hidden] { display: none; }
.restart-dialog { width: min(540px, 100%); padding: clamp(34px, 5vw, 60px); border: 1px solid var(--gold); background: radial-gradient(circle at 50% 0, rgba(165, 20, 69, 0.28), transparent 36%), #10080d; box-shadow: 0 40px 120px rgba(0, 0, 0, 0.72); text-align: center; }
.restart-dialog h2 { margin: 0; font: 400 clamp(34px, 5vw, 52px) / 1 var(--gothic); }
.restart-dialog > p:not(.panel-kicker) { margin: 22px 0 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.restart-dialog > div { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 30px; }
.restart-dialog button { min-height: 54px; border: 1px solid var(--gold-dark); background: #25131a; color: var(--ivory); font: 700 8px/1.2 var(--gothic); letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; }
#confirmRestart { border-color: var(--crimson); background: var(--ruby); }
.screen-reader-status { position: fixed; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

@media (max-width: 1220px) {
  .casino-table { grid-template-columns: minmax(210px, 0.62fr) minmax(460px, 1.35fr); }
  .ledger-panel { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: 24px; align-items: center; }
  .ledger-panel .panel-kicker, .ledger-panel h2 { grid-column: 1; }
  .rank-card { grid-column: 1; margin: 0; }
  .stat-grid { grid-column: 2; grid-row: 1 / span 3; margin: 0; }
  .recent-block { grid-column: 3; grid-row: 1 / span 2; margin: 0; }
  .text-button { grid-column: 3; margin: 0; }
  .wheel-stage { min-height: 690px; }
  .verdict-card { grid-template-columns: 160px minmax(0, 1fr); }
  .verdict-actions { grid-column: 1 / -1; display: flex; width: auto; padding: 16px 25px 25px; border: 0; }
  .verdict-actions button { flex: 1; }
}

@media (max-width: 900px) {
  .topbar { grid-template-columns: 1fr auto; min-height: 76px; }
  .topbar nav { display: none; }
  .casino-table { grid-template-columns: 1fr; }
  .wheel-stage { grid-row: 1; min-height: auto; padding-bottom: 38px; }
  .wheel-stage::before { width: 76%; }
  .briefing-panel { grid-row: 2; }
  .briefing-panel, .ledger-panel { min-height: auto; }
  .briefing-panel { display: grid; grid-template-columns: auto 1fr; gap: 0 30px; }
  .old-guard-seal { grid-row: 1 / span 4; margin: 0; }
  .briefing-panel .panel-kicker, .briefing-panel h2, .briefing-panel > p:not(.panel-kicker, .motto) { grid-column: 2; }
  .brief-facts, .motto { grid-column: 1 / -1; }
  .briefing-panel > p:not(.panel-kicker, .motto) { margin-top: 16px; }
  .ledger-panel { display: grid; grid-template-columns: 1fr 1fr; }
  .ledger-panel .panel-kicker, .ledger-panel h2, .rank-card { grid-column: 1; }
  .stat-grid { grid-column: 2; grid-row: 1 / span 3; }
  .recent-block { grid-column: 1; grid-row: auto; }
  .text-button { grid-column: 2; align-self: end; }
  .lower-grid { grid-template-columns: 1fr; }
  footer { grid-template-columns: 1fr auto; }
  footer > p { grid-column: 1 / -1; grid-row: 2; }
}

@media (max-width: 640px) {
  .topbar { padding-inline: 15px; }
  .brand-mark { width: 41px; height: 41px; }
  .brand strong { font-size: 14px; }
  .age-mark small { display: none; }
  .hero { padding: 63px 18px 38px; }
  .hero h1 { font-size: clamp(50px, 17vw, 78px); line-height: 0.88; }
  .hero h1 em { margin-top: 7px; font-size: 0.52em; }
  .hero-copy { margin-top: 24px; font-size: 15px; }
  .trial-keys { gap: 5px; margin-top: 25px; }
  .trial-keys span { flex: 1 1 30%; padding: 9px 7px; font-size: 6px; }
  .casino-table { padding-inline: 10px; }
  .wheel-stage { padding: 27px 12px 31px; }
  .wheel-stage::before { top: 72px; width: 89%; }
  .stage-arch { inset: 8px; }
  .wheel-caption b { font-size: 16px; }
  .wheel-shell { width: min(89vw, 520px); margin-top: 9px; }
  .wheel-numbers span { width: 20px; margin-left: -10px; font-size: 6px; }
  .wheel-numbers span.gold-number::before { top: -4px; left: 0; width: 20px; height: 20px; }
  .pointer { width: 34px; height: 39px; margin-bottom: -43px; }
  .spin-core { width: 31%; }
  .spin-core strong { font-size: clamp(9px, 3vw, 14px); }
  .spin-core small { font-size: 5px; }
  .no-repeat { font-size: 6px; letter-spacing: 0.1em; }
  .panel { padding: 28px 22px; }
  .briefing-panel { display: block; }
  .old-guard-seal { width: 88px; height: 88px; margin: 0 0 25px; }
  .old-guard-seal b { font-size: 27px; }
  .brief-facts { margin-top: 25px; }
  .motto { padding-top: 25px; }
  .ledger-panel { display: block; }
  .rank-card, .stat-grid, .recent-block, .text-button { margin-top: 18px; }
  .verdict-card { grid-template-columns: 1fr; margin-inline: 10px; }
  .verdict-card > header { grid-template-columns: auto 1fr; justify-items: start; gap: 7px 20px; padding: 22px; border: 0; border-bottom: 1px solid rgba(86, 47, 23, 0.22); text-align: left; }
  .verdict-card header > div { grid-row: 1 / span 2; text-align: center; }
  .verdict-card header > div strong { font-size: 45px; }
  .verdict-card header > span { align-self: end; }
  .verdict-card header > small { align-self: start; }
  .verdict-body { min-height: 310px; padding: 35px 24px; }
  .verdict-body h2 { font-size: clamp(23px, 7vw, 31px); line-height: 1.3; }
  .verdict-actions { display: grid; grid-template-columns: 1fr 1fr; padding: 0 20px 25px; }
  .verdict-actions button { min-height: 60px; padding-inline: 8px; font-size: 6px; }
  .lower-grid { padding-inline: 10px; }
  .house-protocol, .trial-history { padding: 34px 22px; }
  .protocol-grid { grid-template-columns: 1fr; }
  .protocol-grid section { min-height: auto; }
  .protocol-grid h3 { margin-top: 24px; }
  .history-heading { align-items: flex-start; flex-direction: column; }
  .closing-banner { align-items: stretch; flex-direction: column; margin-inline: 10px; padding: 42px 24px; }
  .closing-banner a { width: 100%; min-width: 0; }
  footer { grid-template-columns: 1fr; gap: 22px; padding: 44px 22px; }
  footer > p { grid-column: auto; grid-row: auto; }
  footer nav { flex-wrap: wrap; }
  .restart-dialog > div { grid-template-columns: 1fr; }
}

@media (max-width: 390px) {
  .brand small { display: none; }
  .age-mark span { width: 34px; height: 34px; }
  .wheel-numbers span { font-size: 5px; }
  .verdict-actions { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 1ms !important; animation-duration: 1ms !important; animation-iteration-count: 1 !important; }
}
