/* Crapslette — casino glam: deep green / black / gold */
:root {
  --bg: #050d09;
  --bg-elev: #0a1f14;
  --bg-card: #0e281c;
  --felt: #0d3b28;
  --felt-deep: #072218;
  --gold: #d4af37;
  --gold-bright: #f0c84a;
  --gold-dim: #c9a227;
  --cream: #f5efd8;
  --muted: #a8b5a0;
  --line: rgba(212, 160, 23, 0.28);
  --loss: #c45c5c;
  --win: #3ecf8e;
  --radius: 14px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --font-display: "Cinzel", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --max: 1100px;
  --header-h: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--cream);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--gold-bright);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #fff;
}

strong {
  font-weight: 700;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  background: var(--gold);
  color: #111;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-weight: 700;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.container.narrow {
  width: min(100% - 2rem, 720px);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(5, 13, 9, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--cream);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
}

.logo:hover {
  color: var(--gold-bright);
}

.logo-mark {
  color: var(--gold);
  font-size: 1.1rem;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--cream);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.1rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--cream);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-sm {
  padding: 0.45rem 0.95rem;
  font-size: 0.85rem;
}

.btn-gold {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: #1a1200;
  border-color: var(--gold-dim);
  box-shadow: 0 8px 24px rgba(212, 160, 23, 0.25);
}

.btn-gold:hover {
  color: #000;
  filter: brightness(1.06);
}

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 3.5rem 0 4rem;
  border-bottom: 1px solid var(--line);
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.felt {
  position: absolute;
  inset: 10% -20% -30%;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(212, 160, 23, 0.12), transparent 55%),
    radial-gradient(ellipse at 70% 60%, rgba(13, 59, 40, 0.9), transparent 50%),
    linear-gradient(180deg, transparent, var(--felt-deep));
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.45;
}

.glow-1 {
  width: 280px;
  height: 280px;
  background: var(--gold);
  top: -80px;
  right: 10%;
  opacity: 0.15;
}

.glow-2 {
  width: 320px;
  height: 320px;
  background: #1a6b45;
  bottom: -100px;
  left: -40px;
}

.chip {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 4px dashed rgba(245, 239, 216, 0.35);
  background: radial-gradient(circle at 35% 35%, #2a2a2a, #111);
  box-shadow: var(--shadow);
  opacity: 0.5;
}

.chip-a {
  top: 18%;
  left: 6%;
  border-color: rgba(212, 160, 23, 0.5);
}

.chip-b {
  bottom: 12%;
  right: 8%;
  width: 36px;
  height: 36px;
  border-color: rgba(62, 207, 142, 0.4);
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
  }
}

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin: 0 0 0.75rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.4rem, 6vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: 0.02em;
  margin: 0 0 1.1rem;
}

.gold-text {
  color: var(--gold-bright);
  text-shadow: 0 0 40px rgba(212, 160, 23, 0.35);
}

.lede {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 36rem;
  margin: 0 0 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.disclaimer-inline {
  font-size: 0.82rem;
  color: var(--muted);
  opacity: 0.85;
  max-width: 32rem;
  margin: 0;
}

.hero-visual {
  position: relative;
  min-height: 280px;
  display: grid;
  place-items: center;
}

.wheel-ring {
  width: min(100%, 280px);
  aspect-ratio: 1;
  border-radius: 50%;
  padding: 10px;
  background:
    conic-gradient(
      from 0deg,
      #8b1e1e 0 20deg,
      #0a1f14 20deg 40deg,
      #8b1e1e 40deg 60deg,
      #0a1f14 60deg 80deg,
      #8b1e1e 80deg 100deg,
      #0a1f14 100deg 120deg,
      #8b1e1e 120deg 140deg,
      #0a1f14 140deg 160deg,
      #1a6b2a 160deg 180deg,
      #8b1e1e 180deg 200deg,
      #0a1f14 200deg 220deg,
      #8b1e1e 220deg 240deg,
      #0a1f14 240deg 260deg,
      #8b1e1e 260deg 280deg,
      #0a1f14 280deg 300deg,
      #8b1e1e 300deg 320deg,
      #0a1f14 320deg 340deg,
      #1a6b2a 340deg 360deg
    );
  box-shadow:
    0 0 0 4px var(--gold-dim),
    0 0 0 8px rgba(0, 0, 0, 0.5),
    var(--shadow);
  animation: slow-spin 40s linear infinite;
}

@keyframes slow-spin {
  to {
    transform: rotate(360deg);
  }
}

.wheel-face {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #163d2a, #071810);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  border: 3px solid rgba(212, 160, 23, 0.4);
  animation: slow-spin 40s linear infinite reverse;
}

.wheel-label {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold-bright);
  font-size: 1.35rem;
}

.wheel-label.odd {
  color: #f0a0a0;
}

.wheel-or {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.dice-stack {
  position: absolute;
  bottom: 8%;
  left: 50%;
  translate: -50% 0;
  display: flex;
  gap: 0.55rem;
}

.die {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(145deg, #1a3d2c, #0a1a12);
  border: 2px solid var(--gold);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--gold-bright);
  transform: rotate(-8deg);
}

.die-2 {
  transform: rotate(4deg) translateY(-8px);
  background: linear-gradient(145deg, #2a1a3d, #120a1a);
  border-color: #c9a227;
}

.die-3 {
  transform: rotate(12deg);
  background: linear-gradient(145deg, #3d2a1a, #1a100a);
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(10, 31, 20, 0.65), rgba(5, 13, 9, 0.2));
  border-block: 1px solid var(--line);
}

.section-head {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  margin: 0 0 0.5rem;
  letter-spacing: 0.03em;
}

.section-sub {
  color: var(--muted);
  margin: 0 auto;
  max-width: 36rem;
}

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem 1.6rem;
  box-shadow: var(--shadow);
}

.step-num {
  font-family: var(--font-display);
  color: var(--gold-dim);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
}

.step-icon {
  font-size: 1.75rem;
  margin: 0.6rem 0;
}

.step-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
}

.step-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* Rules */
.rules-grid {
  display: grid;
  gap: 1.15rem;
}

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

.rule-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.35rem;
}

.rule-card h3 {
  font-family: var(--font-display);
  margin: 0 0 0.75rem;
  color: var(--gold-bright);
  font-size: 1.15rem;
}

.rule-card ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
}

.rule-card li + li {
  margin-top: 0.45rem;
}

.rule-card.highlight {
  background: linear-gradient(145deg, #163528, #0a1f14);
  border-color: rgba(212, 160, 23, 0.55);
  grid-column: 1 / -1;
}

.claim {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--gold-bright);
  margin: 0 0 0.75rem;
}

.rule-card.highlight p:last-child {
  margin: 0;
  color: var(--muted);
}

/* Martingale */
.mart-panel {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.mart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 0.4rem;
  vertical-align: middle;
}

.dot.loss {
  background: var(--loss);
}

.dot.win {
  background: var(--win);
}

.dot.floor {
  background: var(--gold);
}

.mart-steps {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 800px) {
  .mart-steps {
    grid-template-columns: 200px 1fr;
    align-items: stretch;
  }
}

.ladder {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.rung {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 0.9rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.rung .stake {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--cream);
}

.rung .tag {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.rung.active {
  border-color: var(--gold);
  background: rgba(212, 160, 23, 0.12);
  box-shadow: 0 0 0 1px rgba(212, 160, 23, 0.2);
}

.rung[data-level="1"] {
  border-left: 3px solid var(--gold);
}

.mart-flow {
  display: grid;
  gap: 1rem;
}

@media (min-width: 560px) {
  .mart-flow {
    grid-template-columns: 1fr 1fr;
  }
}

.flow-card {
  border-radius: var(--radius);
  padding: 1.15rem;
  border: 1px solid var(--line);
  background: var(--bg-elev);
}

.flow-card h4 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
}

.flow-card p {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.loss-flow {
  border-color: rgba(196, 92, 92, 0.45);
}

.win-flow {
  border-color: rgba(62, 207, 142, 0.45);
}

.flow-arrow {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--gold-bright);
  letter-spacing: 0.04em;
}

.mart-note {
  margin: 1.25rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

/* Demo */
.demo-board {
  background: linear-gradient(160deg, #0e281c, #071810);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  text-align: center;
}

.demo-bank {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.demo-bank > div {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem 0.5rem;
}

.demo-bank .label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.demo-bank strong {
  font-family: var(--font-display);
  font-size: clamp(1rem, 3vw, 1.35rem);
  color: var(--gold-bright);
}

.demo-dice {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.demo-die {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: linear-gradient(145deg, #1f4634, #0c1f16);
  border: 2px solid var(--gold);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--cream);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease;
}

.demo-die:nth-child(1) {
  transform: rotate(-6deg);
  background: linear-gradient(145deg, #1a3d2c, #0a1a12);
}

.demo-die:nth-child(2) {
  transform: rotate(3deg);
  background: linear-gradient(145deg, #2e1f45, #140e22);
  border-color: #c9a227;
}

.demo-die:nth-child(3) {
  transform: rotate(8deg);
  background: linear-gradient(145deg, #45301f, #1f140c);
}

.demo-die.rolling {
  animation: wobble 0.35s ease-in-out infinite;
}

@keyframes wobble {
  0%,
  100% {
    transform: rotate(-8deg) scale(1);
  }
  50% {
    transform: rotate(8deg) scale(1.05);
  }
}

.demo-call {
  color: var(--muted);
  margin: 0 0 1.25rem;
  min-height: 1.6em;
}

.demo-call .call-even {
  color: var(--gold-bright);
  font-family: var(--font-display);
  letter-spacing: 0.08em;
}

.demo-call .call-odd {
  color: #f0a0a0;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
}

.roulette-mock {
  margin: 0 auto 1.5rem;
  max-width: 220px;
}

.rm-wheel {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  background:
    conic-gradient(
      #8b1e1e 0 10%,
      #0a1f14 10% 20%,
      #8b1e1e 20% 30%,
      #0a1f14 30% 40%,
      #8b1e1e 40% 50%,
      #0a1f14 50% 60%,
      #8b1e1e 60% 70%,
      #0a1f14 70% 80%,
      #1a6b2a 80% 85%,
      #8b1e1e 85% 95%,
      #0a1f14 95% 100%
    );
  border: 4px solid var(--gold);
  box-shadow: var(--shadow);
  transition: transform 2.2s cubic-bezier(0.15, 0.75, 0.2, 1);
}

.rm-wheel.spinning {
  /* transform set inline by JS */
}

.rm-pointer {
  position: absolute;
  top: -8px;
  left: 50%;
  translate: -50% 0;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 14px solid var(--gold-bright);
  z-index: 2;
}

.rm-hub {
  position: absolute;
  inset: 28%;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #1a3d2c, #050d09);
  border: 2px solid rgba(212, 160, 23, 0.5);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gold-bright);
}

.rm-status {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.demo-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.demo-fine {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
  opacity: 0.9;
}

.result-win {
  color: var(--win) !important;
}

.result-loss {
  color: var(--loss) !important;
}

/* Why */
.why-grid {
  display: grid;
  gap: 1.15rem;
}

@media (min-width: 700px) {
  .why-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.why-card {
  padding: 1.4rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-card);
}

.why-card h3 {
  font-family: var(--font-display);
  margin: 0 0 0.5rem;
  color: var(--gold-bright);
  font-size: 1.15rem;
}

.why-card p {
  margin: 0;
  color: var(--muted);
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.15rem 1rem;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  padding: 0.95rem 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.98rem;
}

/* CTA */
.cta-section {
  padding-bottom: 5rem;
}

.cta-panel {
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(212, 160, 23, 0.15), transparent 55%),
    var(--bg-card);
  border: 1px solid rgba(212, 160, 23, 0.4);
  border-radius: calc(var(--radius) + 8px);
  padding: 2.5rem 1.5rem;
  box-shadow: var(--shadow);
}

.cta-panel h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin: 0 0 0.75rem;
}

.cta-panel > p {
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.cta-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.cta-form input {
  flex: 1 1 220px;
  max-width: 320px;
  padding: 0.85rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.4);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1rem;
}

.cta-form input::placeholder {
  color: rgba(168, 181, 160, 0.6);
}

.cta-form input:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.form-note {
  color: var(--win);
  font-size: 0.9rem;
  margin: 0 0 1rem;
}

.disclaimer-block {
  text-align: left;
  font-size: 0.82rem;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  margin: 1.25rem 0 0;
  border: 1px solid rgba(255, 255, 255, 0.06);
  line-height: 1.5;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.75rem 0;
  background: #040a07;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--muted);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  color: var(--cream);
}

.footer-inner a {
  text-decoration: none;
}

/* Mobile nav */
@media (max-width: 820px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(5, 13, 9, 0.97);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 1rem 1rem;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .site-nav .btn {
    margin-top: 0.5rem;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .wheel-ring,
  .wheel-face,
  .demo-die.rolling {
    animation: none;
  }

  .rm-wheel {
    transition: none;
  }
}


/* ——— Rules + video side rail ——— */
.rules-layout {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 960px) {
  .rules-layout {
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.75fr);
    gap: 1.75rem;
  }

  .rules-videos-inner {
    position: sticky;
    top: calc(var(--header-h) + 16px);
  }
}

.rules-videos-inner {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.1rem 0.9rem 1.2rem;
  box-shadow: var(--shadow);
}

.rules-videos-inner > h3 {
  font-family: var(--font-display);
  margin: 0 0 0.25rem;
  font-size: 1.2rem;
  color: var(--cream);
}

.shorts-hint {
  margin: 0 0 0.85rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.shorts-feed {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  max-height: min(78vh, 720px);
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  overscroll-behavior: contain;
  padding-right: 0.15rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 175, 55, 0.55) transparent;
}

.short-card {
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.short-frame {
  position: relative;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  aspect-ratio: 9 / 16;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.45);
  background: #000;
  box-shadow:
    0 0 0 3px rgba(10, 31, 20, 0.85),
    0 12px 28px rgba(0, 0, 0, 0.45);
}

.short-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  background: #000;
}

.short-overlay {
  pointer-events: none;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.4rem 0.85rem 0.85rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
}

.short-badge {
  display: inline-block;
  margin-bottom: 0.35rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: #0a1f14;
  background: var(--gold-bright);
  font-weight: 700;
}

.short-overlay h4 {
  font-family: var(--font-display);
  margin: 0 0 0.15rem;
  font-size: 1.05rem;
  color: var(--cream);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.video-meta {
  margin: 0;
  font-size: 0.76rem;
  color: rgba(245, 240, 230, 0.82);
}

@media (min-width: 960px) {
  .shorts-feed {
    max-height: min(82vh, 780px);
  }

  .short-frame {
    max-width: 100%;
  }
}

@media (max-width: 959px) {
  .shorts-feed {
    flex-direction: row;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    gap: 0.85rem;
    padding-bottom: 0.35rem;
  }

  .short-card {
    flex: 0 0 min(78vw, 280px);
  }

  .short-frame {
    max-width: none;
  }
}

/* ——— Odds section ——— */
.odds-honest {
  background: linear-gradient(145deg, #163528, #0a1f14);
  border: 1px solid rgba(212, 175, 55, 0.55);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  margin-bottom: 1.75rem;
}

.odds-honest > p:first-child {
  margin: 0 0 0.75rem;
  color: var(--cream);
  font-size: 0.98rem;
}

.odds-notes {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.odds-notes li + li {
  margin-top: 0.35rem;
}

.odds-pdf-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin: 0;
}

.odds-pdf-hint {
  font-size: 0.82rem;
  color: var(--muted);
}

.odds-h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--gold-bright);
  margin: 0 0 0.65rem;
}

.odds-h3-spaced {
  margin-top: 1.75rem;
}

.odds-sublabel {
  display: inline;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}

.odds-hint {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.odds-he-cards {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 0.5rem;
}

@media (min-width: 700px) {
  .odds-he-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  #odds-dice-cards {
    grid-template-columns: 1fr;
    max-width: 360px;
  }
}

.he-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
  text-align: center;
}

.he-card.featured {
  border-color: rgba(212, 175, 55, 0.65);
  background: linear-gradient(160deg, #143526, #0a1f14);
}

.he-card .he-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--cream);
  margin: 0 0 0.35rem;
}

.he-card .he-edge {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--gold-bright);
  margin: 0;
}

.he-card .he-meta {
  margin: 0.4rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.odds-panel {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  padding: 1.25rem;
  margin-top: 1.25rem;
  box-shadow: var(--shadow);
}

.odds-panel-head {
  margin-bottom: 0.85rem;
}

.odds-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.odds-tab {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.3);
  color: var(--muted);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.odds-tab:hover {
  border-color: var(--gold);
  color: var(--cream);
}

.odds-tab.active {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--gold);
  color: var(--gold-bright);
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.odds-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 240px;
}

.odds-table th,
.odds-table td {
  padding: 0.55rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.odds-table th {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(0, 0, 0, 0.25);
}

.odds-table td {
  color: var(--cream);
  font-variant-numeric: tabular-nums;
}

.odds-table tbody tr:nth-child(even) {
  background: rgba(0, 0, 0, 0.18);
}

.odds-model {
  margin: 1.25rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  font-style: italic;
}

/* Demo: side pick + majority */
.demo-side {
  margin-bottom: 1.25rem;
}

.demo-side .label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.45rem;
}

.side-toggles {
  display: inline-flex;
  gap: 0.5rem;
}

.side-btn {
  min-width: 96px;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
  color: var(--muted);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.side-btn:hover {
  border-color: var(--gold);
  color: var(--cream);
}

.side-btn.active[data-side="EVEN"] {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.18);
  color: var(--gold-bright);
}

.side-btn.active[data-side="ODD"] {
  border-color: rgba(240, 160, 160, 0.7);
  background: rgba(140, 40, 40, 0.25);
  color: #f0a0a0;
}

.majority-panel {
  margin: 0 auto 1.5rem;
  max-width: 240px;
}

.majority-hub {
  background: radial-gradient(circle at 40% 35%, #1a3d2c, #050d09);
  border: 2px solid rgba(212, 175, 55, 0.5);
  border-radius: 16px;
  padding: 1.1rem 1rem;
  box-shadow: var(--shadow);
}

.majority-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

#majority-result {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gold-bright);
  letter-spacing: 0.06em;
}

#majority-result.is-even {
  color: var(--gold-bright);
}

#majority-result.is-odd {
  color: #f0a0a0;
}


.odds-panel-featured {
  border-color: rgba(212, 175, 55, 0.65);
  background: linear-gradient(160deg, #123024, #0a1f14);
}

.odds-h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--gold);
  margin: 1.25rem 0 0.65rem;
}

.odds-table-wide {
  min-width: 520px;
}

.odds-table-wide td:nth-child(2) {
  font-size: 0.82rem;
  color: var(--muted);
}
