:root {
  --bg: #07040d;
  --bg-alt: #100818;
  --panel: #160b24;
  --panel-2: #1e1230;
  --line: rgba(230, 195, 92, 0.28);
  --line-strong: #e6c35c;
  --gold: #e6c35c;
  --gold-bright: #f8e7a0;
  --gold-ink: #2a1c04;
  --purple: #8b5cf6;
  --purple-deep: #4c1d95;
  --cream: #f6f1e6;
  --muted: #b7a9c9;
  --win: #5ee9b5;
  --danger: #fb7185;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --font-display: Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --font-body: "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 18px;
  --header-offset: 0px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--cream);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(124, 58, 237, 0.28), transparent 55%),
    radial-gradient(900px 420px at 100% 0%, rgba(230, 195, 92, 0.12), transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, #0c0614 40%, var(--bg-alt) 100%);
  line-height: 1.6;
}

img,
svg {
  max-width: 100%;
}

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

a:hover {
  color: var(--gold);
}

h1,
h2,
h3,
.brand-text strong,
.cabinet-kicker {
  font-family: var(--font-display);
  letter-spacing: 0.02em;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 1.08;
  font-weight: 600;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

h3 {
  font-size: 1.2rem;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 2000;
  padding: 0.6rem 0.9rem;
  background: var(--gold);
  color: var(--gold-ink);
  font-weight: 700;
}

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

.compliance-banner {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0.55rem 1rem;
  background: linear-gradient(90deg, #3b0764, #1e0b2a 40%, #3b0764);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  text-align: center;
}

.compliance-banner p {
  margin: 0 auto;
  max-width: 1100px;
  color: var(--gold-bright);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(7, 4, 13, 0.78);
  backdrop-filter: blur(16px);
}

.header-inner,
.footer-inner,
.hero,
.game-section,
.lobby-section,
.facts-section,
.legal-wrap {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.9rem 0 1.1rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--cream);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  box-shadow: inset 0 0 12px rgba(230, 195, 92, 0.35);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 1.25rem;
}

.brand-text em {
  font-style: normal;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.primary-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.15rem;
}

.primary-nav a {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.95rem;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  color: var(--gold);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.age-badge {
  display: inline-grid;
  place-items: center;
  min-width: 2.4rem;
  height: 2.4rem;
  padding: 0 0.35rem;
  border: 2px solid var(--gold);
  border-radius: 999px;
  color: var(--gold-bright);
  font-weight: 800;
  font-size: 0.85rem;
}

.coin-chip {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.75rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.coin-icon {
  color: var(--gold);
  font-size: 1.1rem;
}

.coin-label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.coin-balance {
  font-variant-numeric: tabular-nums;
  color: var(--gold-bright);
}

.btn,
.btn-spin {
  appearance: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  transition: transform 0.18s ease, filter 0.18s ease, background 0.18s ease;
}

.btn:hover,
.btn-spin:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.btn:disabled,
.btn-spin:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
  filter: none;
}

.btn {
  border-radius: 999px;
  padding: 0.7rem 1.05rem;
  font-size: 0.88rem;
}

.btn-lg {
  padding: 0.9rem 1.3rem;
  font-size: 1rem;
}

.btn-gold {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: var(--gold-ink);
  box-shadow: 0 8px 24px rgba(230, 195, 92, 0.25);
}

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

.hero {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 2rem;
  padding: 3.5rem 0 2.5rem;
}

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

.lede {
  margin-top: 1rem;
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.hero-panel,
.paytable,
.game-card,
.facts-grid article,
.legal-card {
  background: linear-gradient(180deg, rgba(30, 18, 48, 0.92), rgba(16, 8, 24, 0.92));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 1.5rem;
}

.hero-panel h2 {
  margin-bottom: 0.8rem;
}

.hero-panel ul,
.paytable ul {
  margin: 0;
  padding-left: 1.1rem;
}

.hero-panel li + li,
.paytable li + li {
  margin-top: 0.45rem;
}

.disclaimer-callout,
.legal-quote {
  margin-top: 1.2rem;
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--gold);
  background: rgba(76, 29, 149, 0.28);
  color: var(--gold-bright);
  font-weight: 600;
}

.section-heading {
  max-width: 42rem;
  margin-bottom: 1.8rem;
}

.section-heading p:last-child {
  margin-top: 0.6rem;
  color: var(--muted);
}

.game-section,
.lobby-section,
.facts-section {
  padding: 1.5rem 0 3.2rem;
}

.game-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 1.4rem;
  align-items: start;
}

.slot-cabinet {
  position: relative;
  padding: 1.4rem 1.3rem 1.6rem;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(230, 195, 92, 0.16), transparent 18%),
    linear-gradient(180deg, #241433, #120818 55%, #1a0c22);
  border: 1px solid var(--line-strong);
  box-shadow:
    inset 0 0 0 6px rgba(7, 4, 13, 0.55),
    0 0 80px rgba(124, 58, 237, 0.18);
}

.slot-cabinet.is-win {
  animation: cabinet-win 0.9s ease;
}

.slot-cabinet.is-jackpot {
  animation: cabinet-jackpot 1.2s ease;
}

.cabinet-lights {
  display: flex;
  justify-content: space-between;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
}

.cabinet-lights span {
  flex: 1;
  height: 10px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
  animation: marquee 1.4s linear infinite;
}

.cabinet-lights span:nth-child(odd) {
  animation-delay: 0.35s;
  background: var(--purple);
  box-shadow: 0 0 10px var(--purple);
}

.cabinet-kicker {
  text-align: center;
  color: var(--gold-bright);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 1rem;
}

.reels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
  padding: 0.7rem;
  background: #07040d;
  border-radius: 16px;
  border: 1px solid rgba(230, 195, 92, 0.2);
}

.reel-window {
  height: 132px;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(180deg, #2a183d, #140a1e);
  box-shadow: inset 0 12px 18px rgba(0, 0, 0, 0.45);
}

.reel-strip {
  will-change: transform;
}

.reel-strip.is-spinning {
  filter: blur(1.5px);
}

.reel-symbol {
  height: 132px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.4rem;
  line-height: 1;
}

.spin-result {
  min-height: 3.2em;
  margin: 1rem 0 1.1rem;
  text-align: center;
  color: var(--muted);
}

.spin-result.is-win {
  color: var(--win);
  font-weight: 700;
}

.spin-result.is-lose {
  color: var(--muted);
}

.btn-spin {
  width: 100%;
  flex-direction: column;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  background: linear-gradient(180deg, #f8e7a0, #c9a227);
  color: var(--gold-ink);
  box-shadow: 0 10px 24px rgba(230, 195, 92, 0.28);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.btn-spin span {
  font-family: var(--font-display);
  font-size: 1.4rem;
}

.btn-spin small {
  letter-spacing: 0.08em;
  font-weight: 600;
  opacity: 0.8;
}

.btn-spin.is-spinning {
  animation: spin-pulse 0.45s linear infinite;
}

.paytable {
  padding: 1.25rem;
}

.paytable-note,
.muted {
  color: var(--muted);
  font-size: 0.92rem;
}

.paytable ul {
  list-style: none;
  padding: 0.8rem 0 1rem;
}

.paytable li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(230, 195, 92, 0.12);
}

.lobby-grid,
.facts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.game-card,
.facts-grid article {
  padding: 1.2rem;
}

.game-card p,
.facts-grid p {
  color: var(--muted);
  margin: 0.55rem 0 1rem;
}

.card-tag {
  display: inline-block;
  margin-bottom: 0.55rem;
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}

.game-card.is-live {
  border-color: var(--gold);
}

.legal-quote {
  margin: 1.8rem 0 0;
}

.site-footer {
  margin-top: 1rem;
  padding: 2rem 0 1.4rem;
  border-top: 1px solid var(--line);
  background: #080510;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-bottom: 1.2rem;
}

.footer-brand p + p {
  color: var(--muted);
  margin: 0.4rem 0 0.7rem;
  max-width: 28rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.1rem;
  align-items: flex-start;
}

.site-footer nav a {
  color: var(--cream);
  text-decoration: none;
}

.site-footer nav a:hover {
  color: var(--gold);
}

.footer-notice {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  background: rgba(76, 29, 149, 0.2);
  color: var(--gold-bright);
  font-size: 0.88rem;
  font-weight: 600;
}

.legal-page .legal-wrap {
  padding: 2.4rem 0 3.5rem;
}

.legal-card {
  padding: clamp(1.3rem, 3vw, 2.2rem);
}

.legal-card h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.legal-meta {
  color: var(--muted);
  margin: 0.7rem 0 1.4rem;
}

.legal-card h2 {
  margin: 1.6rem 0 0.55rem;
  font-size: 1.3rem;
}

.legal-card p,
.legal-card li {
  color: var(--muted);
}

.legal-card p + p,
.legal-card ul {
  margin-top: 0.7rem;
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1200;
  max-width: min(22rem, calc(100% - 2rem));
  padding: 0.85rem 1rem;
  background: var(--panel-2);
  border: 1px solid var(--gold);
  color: var(--cream);
  box-shadow: var(--shadow);
  animation: toast-in 0.25s ease;
}

@keyframes marquee {
  0%,
  100% { opacity: 0.35; transform: scale(0.92); }
  50% { opacity: 1; transform: scale(1); }
}

@keyframes cabinet-win {
  0%,
  100% { box-shadow: inset 0 0 0 6px rgba(7, 4, 13, 0.55), 0 0 80px rgba(124, 58, 237, 0.18); }
  50% { box-shadow: inset 0 0 0 6px rgba(7, 4, 13, 0.55), 0 0 90px rgba(94, 233, 181, 0.35); }
}

@keyframes cabinet-jackpot {
  0%,
  100% { filter: none; }
  40% { filter: drop-shadow(0 0 18px var(--gold)); }
}

@keyframes spin-pulse {
  50% { filter: brightness(1.15); }
}

@keyframes toast-in {
  from { transform: translateY(8px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 980px) {
  .hero,
  .game-layout,
  .lobby-grid,
  .facts-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero,
  .lobby-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .header-inner {
    align-items: flex-start;
  }

  .header-tools {
    width: 100%;
  }

  .header-tools .btn {
    width: 100%;
  }

  .primary-nav {
    width: 100%;
    order: 3;
  }

  .facts-grid,
  .game-layout {
    grid-template-columns: 1fr;
  }

  .reel-window,
  .reel-symbol {
    height: 104px;
  }

  .reel-symbol {
    font-size: 2.6rem;
  }

  .btn-spin span {
    font-size: 1.2rem;
  }

  .compliance-banner p,
  .footer-notice {
    font-size: 0.75rem;
    letter-spacing: 0.02em;
    text-transform: none;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
