:root {
  --paper: #e7e0ea;
  --paper-2: #f5f0f6;
  --ink: #241a29;
  --plum: #552b58;
  --plum-dark: #351a3a;
  --brass: #c79a45;
  --brass-light: #f0d18a;
  --forest: #274e3d;
  --danger: #922e4a;
  --line: #2d2032;
  --shadow: 7px 7px 0 var(--line);
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --radius: 999px;
  --content: 72rem;
  --reading: 70ch;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    repeating-radial-gradient(circle at 20% 30%, rgba(36, 26, 41, .035) 0 1px, transparent 1px 4px);
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, figure { margin-top: 0; }
h1, h2, h3 {
  font-family: Impact, "Arial Narrow", "Avenir Next Condensed", sans-serif;
  font-stretch: condensed;
  line-height: .98;
  letter-spacing: .015em;
  text-transform: uppercase;
}
h1 { max-width: 13ch; margin-bottom: var(--space-5); font-size: clamp(3.4rem, 10vw, 8.5rem); }
h2 { margin-bottom: var(--space-5); font-size: clamp(2.25rem, 6vw, 4.7rem); }
h3 { margin-bottom: var(--space-3); font-size: clamp(1.35rem, 3vw, 2rem); }
p, li { max-width: var(--reading); }
:focus-visible { outline: 4px solid var(--brass); outline-offset: 3px; }

.skip-link {
  position: fixed;
  top: .5rem;
  left: .5rem;
  z-index: 1000;
  padding: .75rem 1rem;
  transform: translateY(-160%);
  background: var(--ink);
  color: #fff;
}
.skip-link:focus { transform: none; }

.container { width: min(calc(100% - 2rem), var(--content)); margin-inline: auto; }
.reading { max-width: var(--reading); }
.stack { display: flex; flex-direction: column; gap: var(--space-4); }
.stack--lg { gap: var(--space-6); }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.grid { display: grid; gap: var(--space-5); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  padding: var(--space-4) 0;
  background: var(--paper-2);
  border-bottom: 3px solid var(--line);
}
.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: Impact, "Arial Narrow", sans-serif;
  font-size: 1.35rem;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}
.brand__mark { width: 2.6rem; height: 2.6rem; flex: 0 0 auto; }
.main-nav {
  display: flex;
  align-items: center;
  gap: .2rem;
  padding: .35rem;
  background: var(--plum);
  border: 3px solid var(--line);
  border-radius: var(--radius);
}
.main-nav a {
  position: relative;
  padding: .55rem .85rem;
  border-radius: var(--radius);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}
.main-nav a::after,
.text-link::after,
.prose a::after {
  position: absolute;
  right: .85rem;
  bottom: .35rem;
  left: .85rem;
  height: 2px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .18s ease;
}
.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after,
.text-link:hover::after,
.prose a:hover::after { transform: scaleX(1); }
.button.nav-toggle { display: none; }
.header-balance { flex: 0 0 auto; }

.age-strip {
  padding: .65rem 1rem;
  background: var(--brass-light);
  border-bottom: 3px solid var(--line);
  font-size: .92rem;
  font-weight: 700;
  text-align: center;
}
.age-strip a { font-weight: 900; }

.hero { padding: clamp(4rem, 9vw, 8rem) 0 var(--space-7); }
.hero__intro {
  max-width: 62ch;
  font-size: clamp(1.15rem, 2.3vw, 1.55rem);
}
.hero__flag {
  display: inline-block;
  margin-bottom: var(--space-5);
  padding: .35rem .65rem;
  color: var(--plum);
  border: 2px solid var(--plum);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hero__compliance {
  margin-top: var(--space-6);
  padding: var(--space-5);
  background: var(--brass-light);
  border: 3px solid var(--line);
  box-shadow: var(--shadow);
  font-weight: 800;
}

.section { padding: var(--space-8) 0; border-top: 3px solid var(--line); }
.section--paper { background: var(--paper-2); }
.section--plum { background: var(--plum); color: #fff; }
.section--brass { background: var(--brass-light); }
.section-index {
  display: block;
  margin-bottom: var(--space-3);
  color: var(--plum);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: .86rem;
  font-weight: 900;
  letter-spacing: .12em;
}
.section--plum .section-index { color: var(--brass-light); }

.tile {
  background: var(--paper-2);
  border-left: 9px solid var(--plum);
  box-shadow: var(--shadow);
}
.game-row {
  display: grid;
  grid-template-columns: minmax(13rem, 21rem) 1fr;
  min-height: 20rem;
  overflow: hidden;
}
.game-row > * { min-width: 0; }
.game-row__art {
  width: 100%;
  height: 100%;
  min-height: 18rem;
  object-fit: cover;
  filter: saturate(.72) contrast(1.08);
  border-right: 3px solid var(--line);
}
.game-row__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(1.5rem, 4vw, 3.5rem);
}
.scorecard {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: var(--space-4);
  margin: var(--space-4) 0 var(--space-5);
}
.scorecard dt {
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.scorecard dd { margin: 0; font-weight: 800; }

.badge {
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: .25rem .55rem;
  color: var(--plum);
  border: 2px solid currentColor;
  border-radius: var(--radius);
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.section--plum .badge { color: var(--brass-light); }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: .65rem 1rem;
  background: var(--brass);
  border: 3px solid var(--line);
  box-shadow: 4px 4px 0 var(--line);
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}
.button::before { margin-right: .5rem; content: "▶"; font-size: .72em; }
.button:hover { background: var(--brass-light); }
.button:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--line); }
.button--quiet { background: var(--paper-2); }
.button--reset::before { content: "↺"; }
.text-link, .prose a { position: relative; color: var(--plum); font-weight: 800; text-decoration: none; }
.text-link::after, .prose a::after { right: 0; bottom: -.15em; left: 0; }

.quick-box {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: var(--space-5);
  margin: var(--space-6) 0;
  padding: var(--space-5);
  background: var(--brass-light);
  border: 3px solid var(--line);
}
.quick-box strong { font-family: Impact, "Arial Narrow", sans-serif; font-size: 1.7rem; text-transform: uppercase; }
.quick-box p { margin: 0; }

.toc {
  margin: 0 0 var(--space-7);
  padding: var(--space-5);
  background: var(--paper-2);
  border-left: 9px solid var(--brass);
}
.toc h2 { font-size: 1.3rem; }
.toc ol { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 0; padding-left: 1.2rem; }
.toc a { font-weight: 800; }

.prose > * + * { margin-top: var(--space-4); }
.prose h2 { margin-top: var(--space-7); }
.prose h3 { margin-top: var(--space-6); }
.prose ul, .motif-list { padding: 0; list-style: none; }
.prose li, .motif-list li { position: relative; padding-left: 1.6rem; }
.prose li::before, .motif-list li::before {
  position: absolute;
  left: 0;
  color: var(--plum);
  content: "✦";
  font-weight: 900;
}
.editorial-image {
  width: 100%;
  margin: var(--space-6) 0;
  border: 3px solid var(--line);
  filter: saturate(.72) contrast(1.06);
  box-shadow: var(--shadow);
}
.caption { margin-top: calc(var(--space-6) * -1 + .5rem); font-size: .85rem; }

.faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); }
.faq-item {
  padding: var(--space-5);
  background: var(--paper-2);
  border-left: 9px solid var(--brass);
}
.faq-item h3 { font-size: 1.45rem; }
.faq-item p { margin-bottom: 0; }

.disclaimer {
  padding: var(--space-5);
  background: var(--ink);
  color: #fff;
  border-left: 9px solid var(--brass);
}

.game-shell { padding: var(--space-7) 0 var(--space-8); }
.game-heading h1 { font-size: clamp(3rem, 8vw, 6.5rem); }
.game-cabinet {
  margin-top: var(--space-6);
  padding: clamp(1rem, 3vw, 2rem);
  background: var(--plum-dark);
  border: 8px solid var(--line);
  box-shadow: var(--shadow);
  color: #fff;
}
.cabinet-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-4);
  border-bottom: 3px solid var(--brass);
}
.coin-panel {
  display: inline-flex;
  align-items: baseline;
  gap: .5rem;
  padding: .5rem .75rem;
  background: var(--ink);
  border: 2px solid var(--brass);
  color: var(--brass-light);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
}
.coin-panel.is-changing { animation: coinPulse .35s ease; }
@keyframes coinPulse { 50% { background: var(--plum); color: #fff; } }
.controls { display: flex; flex-wrap: wrap; align-items: end; gap: var(--space-3); }
.field { display: grid; gap: .3rem; }
.field label { font-size: .75rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.field select, .field input {
  min-height: 3rem;
  padding: .55rem;
  background: #fff;
  border: 3px solid var(--line);
  color: var(--ink);
}
.result {
  min-height: 3.25rem;
  margin: var(--space-5) 0 0;
  padding: .75rem 1rem;
  background: var(--ink);
  border-left: 7px solid var(--brass);
  color: #fff;
  font-weight: 800;
}
.worthless-note { margin: var(--space-4) 0 0; color: #efe5f1; font-size: .84rem; }
.game-board { min-height: 18rem; margin-top: var(--space-5); padding: var(--space-5); background: #f4edf5; color: var(--ink); border: 4px solid var(--brass); }
.rules-panel { margin-top: var(--space-7); }

.card-table { display: flex; justify-content: center; align-items: center; gap: clamp(.5rem, 2vw, 1rem); min-height: 15rem; }
.playing-card {
  display: grid;
  place-items: center;
  width: clamp(7.5rem, 24vw, 12rem);
  aspect-ratio: 2.5 / 3.5;
  background: #fff;
  border: 4px solid var(--line);
  box-shadow: 5px 5px 0 var(--brass);
  font-family: Georgia, serif;
  font-size: clamp(2.4rem, 8vw, 5rem);
  font-weight: 800;
}
.playing-card.red { color: var(--danger); }
.streak { text-align: center; font-family: ui-monospace, monospace; font-size: 1.1rem; font-weight: 900; }

.wheel-wrap { position: relative; display: grid; place-items: center; min-height: 22rem; }
.wheel-pointer { position: absolute; z-index: 2; top: .2rem; font-size: 2.5rem; color: var(--brass); filter: drop-shadow(2px 2px 0 var(--line)); }
.prize-wheel {
  width: min(74vw, 20rem);
  aspect-ratio: 1;
  border: 9px solid var(--brass);
  border-radius: 50%;
  background: conic-gradient(#552b58 0 45deg, #d7bdde 45deg 90deg, #274e3d 90deg 135deg, #c79a45 135deg 180deg, #552b58 180deg 225deg, #d7bdde 225deg 270deg, #274e3d 270deg 315deg, #c79a45 315deg);
  box-shadow: 0 0 0 5px var(--line);
  transition: transform 3.2s cubic-bezier(.12, .67, .12, 1);
}
.wheel-labels { position: absolute; inset: 0; pointer-events: none; }
.wheel-labels span { position: absolute; left: 50%; top: 50%; transform-origin: 0 0; color: #fff; font-family: ui-monospace, monospace; font-weight: 900; text-shadow: 1px 1px var(--ink); }

.keno-grid { display: grid; grid-template-columns: repeat(10, minmax(2.1rem, 1fr)); gap: .35rem; }
.number-cell {
  min-height: 2.55rem;
  padding: 0;
  background: #fff;
  border: 2px solid var(--line);
  font-family: ui-monospace, monospace;
  font-weight: 900;
  cursor: pointer;
}
.number-cell.is-picked { background: var(--brass); }
.number-cell.is-drawn { box-shadow: inset 0 0 0 4px var(--plum); }
.number-cell.is-hit { background: var(--forest); color: #fff; box-shadow: inset 0 0 0 4px var(--brass); }

.roulette-layout { display: grid; grid-template-columns: minmax(15rem, 1fr) minmax(18rem, 1.4fr); gap: var(--space-5); align-items: center; }
.roulette-wheel {
  position: relative;
  width: min(68vw, 19rem);
  margin: auto;
  aspect-ratio: 1;
  border: 9px solid var(--brass);
  border-radius: 50%;
  background: repeating-conic-gradient(#b12c46 0 9.73deg, #161116 9.73deg 19.46deg);
  box-shadow: 0 0 0 5px var(--line);
}
.roulette-wheel::after {
  position: absolute;
  inset: 27%;
  display: grid;
  place-items: center;
  content: "0";
  background: var(--forest);
  border: 5px solid var(--brass);
  border-radius: 50%;
  color: #fff;
  font-family: ui-monospace, monospace;
  font-size: 2rem;
  font-weight: 900;
}
.roulette-wheel.is-spinning { animation: rouletteSpin 2.4s cubic-bezier(.15, .7, .2, 1); }
@keyframes rouletteSpin { to { transform: rotate(1440deg); } }
.roulette-bets { display: grid; grid-template-columns: repeat(3, 1fr); gap: .45rem; }
.roulette-bets .number-cell:first-child { grid-column: 1 / -1; background: var(--forest); color: #fff; }
.outside-bets { display: grid; grid-template-columns: repeat(3, 1fr); gap: .45rem; margin-top: .45rem; }
.bet-choice[aria-pressed="true"] { background: var(--brass); box-shadow: inset 0 0 0 3px var(--plum); }

.policy-table { width: 100%; border-collapse: collapse; margin: var(--space-5) 0; }
.policy-table th, .policy-table td { padding: .8rem; border: 2px solid var(--line); text-align: left; vertical-align: top; }
.policy-table th { background: var(--brass-light); }

.contact-form { display: grid; gap: var(--space-4); max-width: 42rem; }
.contact-form input, .contact-form textarea { width: 100%; padding: .75rem; border: 3px solid var(--line); background: #fff; }

.cookie-banner {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--space-4);
  max-width: 62rem;
  margin-inline: auto;
  padding: var(--space-4);
  background: var(--ink);
  border: 3px solid var(--brass);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, .45);
  color: #fff;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; }

.footer-brand {
  padding: var(--space-7) 0;
  background: var(--plum);
  border-top: 3px solid var(--line);
  color: #fff;
}
.footer-grid { display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); gap: var(--space-6); }
.footer-grid h2 { max-width: 12ch; font-size: 2.4rem; }
.footer-grid h3 { font-size: 1rem; letter-spacing: .08em; }
.footer-grid ul { margin: 0; padding: 0; list-style: none; }
.footer-grid a { color: #fff; font-weight: 700; }
.footer-legal { padding: var(--space-4) 0; background: var(--ink); color: #fff; font-size: .8rem; }
.footer-legal p { margin: 0; max-width: none; }

@media (max-width: 760px) {
  .nav-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }
  .header-balance {
    grid-column: 1 / -1;
    justify-content: center;
    width: 100%;
  }
  .button.nav-toggle { display: inline-flex; }
  .main-nav {
    position: absolute;
    top: 4.5rem;
    right: 1rem;
    z-index: 20;
    display: none;
    width: min(18rem, calc(100% - 2rem));
    flex-direction: column;
    align-items: stretch;
    border-radius: 1.2rem;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { text-align: center; }
  .game-row { display: block; }
  .quick-box, .roulette-layout, .footer-grid { grid-template-columns: 1fr; }
  .game-row__art { max-height: 19rem; border-right: 0; border-bottom: 3px solid var(--line); }
  .game-row__copy { width: 100%; }
  .grid--2, .faq-grid { grid-template-columns: 1fr; }
  .scorecard { grid-template-columns: repeat(3, 1fr); width: 100%; }
  .keno-grid { grid-template-columns: repeat(8, minmax(2rem, 1fr)); }
  .roulette-bets { grid-template-columns: repeat(3, 1fr); }
  .cookie-banner { grid-template-columns: 1fr; }
}

@media (max-width: 440px) {
  .container { width: min(calc(100% - 1.25rem), var(--content)); }
  .brand span { max-width: 5.5rem; }
  .header-balance { font-size: .78rem; }
  .hero { padding-top: var(--space-7); }
  .game-cabinet { border-width: 5px; }
  .keno-grid { grid-template-columns: repeat(5, 1fr); }
  .outside-bets { grid-template-columns: repeat(2, 1fr); }
}

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