:root {
  color-scheme: dark;
  --bg: #08090c;
  --bg-soft: #11151a;
  --panel: rgba(18, 24, 24, 0.86);
  --panel-solid: #121818;
  --line: rgba(255, 255, 255, 0.16);
  --text: #f7f3e9;
  --muted: #c8c1b3;
  --red: #d61935;
  --red-dark: #8e0f23;
  --green: #0c7a55;
  --felt: #0b513d;
  --gold: #f4c95d;
  --gold-dark: #b88920;
  --white: #ffffff;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.38);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(8, 9, 12, 0.08), var(--bg) 720px),
    radial-gradient(circle at top left, rgba(214, 25, 53, 0.22), transparent 390px),
    var(--bg);
  color: var(--text);
}

body.locked {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 1000;
  transform: translateY(-180%);
  background: var(--gold);
  color: #1b1303;
  padding: 0.65rem 1rem;
  border-radius: var(--radius);
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 9, 12, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 38%, #fff 38% 62%, transparent 62%),
    linear-gradient(0deg, transparent 38%, #fff 38% 62%, transparent 62%),
    var(--red);
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 4px rgba(244, 201, 93, 0.12);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  padding: 0.65rem 0.8rem;
  border-radius: var(--radius);
  font-size: 0.96rem;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a[aria-current="page"] {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.notice-bar {
  background: linear-gradient(90deg, var(--red-dark), var(--red), var(--green));
  color: #fff;
  font-weight: 800;
  text-align: center;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  min-height: min(720px, calc(100svh - 126px));
  display: grid;
  align-items: end;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(8, 9, 12, 0.92), rgba(8, 9, 12, 0.62) 48%, rgba(8, 9, 12, 0.32)),
    linear-gradient(0deg, var(--bg), transparent 44%),
    url("../images/hero-casino.png") center / cover;
  transform: scale(1.02);
}

.hero-content {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 8rem) 0 clamp(3.25rem, 7vw, 5.5rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--gold);
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin: 0 0 1rem;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.04;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  font-size: clamp(2.7rem, 7vw, 6.35rem);
}

.hero p,
.page-intro p {
  color: var(--muted);
  max-width: 720px;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  line-height: 1.65;
}

.hero-actions,
.actions,
.control-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.button,
.icon-button,
.chip-button,
.choice-button {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  text-decoration: none;
  font-weight: 900;
  min-height: 44px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.82rem 1.1rem;
}

.button:hover,
.button:focus-visible,
.icon-button:hover,
.icon-button:focus-visible,
.chip-button:hover,
.chip-button:focus-visible,
.choice-button:hover,
.choice-button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(244, 201, 93, 0.75);
  outline: none;
}

.button.primary,
.chip-button.is-active,
.choice-button.is-active {
  background: linear-gradient(135deg, var(--gold), #fff0aa);
  color: #1b1303;
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 14px 28px rgba(244, 201, 93, 0.22);
}

.button.danger {
  background: var(--red);
  color: #fff;
}

.button.ghost {
  background: rgba(8, 9, 12, 0.48);
}

.section {
  padding: clamp(3rem, 7vw, 6rem) 0;
}

.section.alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015));
  border-block: 1px solid var(--line);
}

.section-title {
  max-width: 760px;
  margin-bottom: 2rem;
}

.section-title h2,
.page-intro h1 {
  font-size: clamp(2rem, 4.4vw, 4rem);
}

.section-title p,
.legal-article p,
.legal-article li,
.game-copy p {
  color: var(--muted);
  line-height: 1.72;
}

.fact-grid,
.game-grid,
.legal-grid {
  display: grid;
  gap: 1rem;
}

.fact-grid {
  grid-template-columns: repeat(4, 1fr);
}

.game-grid {
  grid-template-columns: repeat(3, 1fr);
}

.legal-grid {
  grid-template-columns: repeat(2, 1fr);
}

.fact-card,
.game-card,
.legal-card,
.panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.fact-card,
.legal-card {
  padding: 1.25rem;
}

.fact-card strong {
  display: block;
  font-size: 1.08rem;
  margin-bottom: 0.4rem;
}

.fact-card p,
.legal-card p {
  color: var(--muted);
  margin: 0;
  line-height: 1.62;
}

.game-card {
  overflow: hidden;
  min-height: 100%;
}

.game-card-media {
  min-height: 220px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(214, 25, 53, 0.3), rgba(12, 122, 85, 0.3)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.055) 0 2px, transparent 2px 18px);
}

.game-card-media.cover {
  min-height: 250px;
}

.game-card-media.cover img {
  width: 100%;
  height: 100%;
  min-height: 250px;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 420ms ease, filter 420ms ease;
}

.game-card:hover .game-card-media.cover img {
  transform: scale(1.07);
  filter: saturate(1.08) contrast(1.04);
}

.game-card-media.cover::after,
.game-intro-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(8, 9, 12, 0.7));
  pointer-events: none;
}

.game-card-media.symbols {
  grid-template-columns: repeat(3, 74px);
  gap: 0.7rem;
}

.game-card-media.symbols img {
  width: 74px;
  height: 74px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.35));
}

.game-card-body {
  padding: 1.25rem;
}

.game-card h3 {
  font-size: 1.45rem;
}

.game-card p {
  color: var(--muted);
  line-height: 1.62;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #07080a;
  padding: 2.5rem 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: start;
}

.footer-links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.4rem 0.55rem;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--gold);
  outline: none;
}

.fineprint {
  color: var(--muted);
  line-height: 1.65;
  margin: 1rem 0 0;
  font-size: 0.95rem;
}

.page-intro {
  padding: clamp(3rem, 8vw, 5.5rem) 0 2rem;
}

.legal-article {
  padding: 0 0 5rem;
}

.legal-article h2 {
  margin-top: 2.2rem;
  font-size: 1.65rem;
}

.legal-article h3 {
  margin-top: 1.5rem;
  font-size: 1.12rem;
}

.legal-article ul {
  padding-left: 1.2rem;
}

.legal-article .panel {
  padding: clamp(1.2rem, 3vw, 2rem);
}

.game-main {
  padding: clamp(2rem, 5vw, 4rem) 0 5rem;
}

.game-heading {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  align-items: end;
  margin-bottom: 1.25rem;
}

.game-intro-stack {
  display: grid;
  gap: 1rem;
}

.game-intro-visual {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  border: 1px solid rgba(244, 201, 93, 0.34);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #0d1113;
}

.game-intro-visual img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.game-heading h1 {
  font-size: clamp(2.3rem, 5.2vw, 5rem);
}

.game-copy {
  max-width: 680px;
}

.game-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 1rem;
  align-items: start;
}

.game-shell {
  position: relative;
  overflow: hidden;
  padding: clamp(1rem, 3vw, 1.35rem);
}

.game-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(244, 201, 93, 0.1), transparent 36%),
    radial-gradient(circle at 80% 10%, rgba(214, 25, 53, 0.16), transparent 240px);
}

.game-shell > * {
  position: relative;
}

.scoreboard {
  display: grid;
  gap: 1rem;
}

.score-card {
  padding: 1rem;
}

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

.score-value {
  display: block;
  font-size: 2rem;
  font-weight: 950;
  color: var(--gold);
  margin-top: 0.2rem;
}

.status-box {
  min-height: 92px;
  padding: 1rem;
  color: var(--muted);
  line-height: 1.55;
}

.status-box strong {
  color: var(--text);
}

.stake-group,
.choice-group {
  display: grid;
  gap: 0.6rem;
}

.stake-group label,
.choice-group .group-label {
  color: var(--muted);
  font-weight: 800;
  font-size: 0.9rem;
}

.chip-list,
.choice-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip-button,
.choice-button,
.icon-button {
  min-width: 62px;
  padding: 0.65rem 0.85rem;
}

.icon-button {
  min-width: 46px;
  display: inline-grid;
  place-items: center;
}

.slot-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.slot-title {
  color: var(--gold);
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.slot-machine {
  background:
    linear-gradient(180deg, #2c1016, #120709 38%, #071612),
    radial-gradient(circle at top, rgba(255, 255, 255, 0.18), transparent 280px);
  border: 2px solid rgba(244, 201, 93, 0.72);
  border-radius: var(--radius);
  padding: clamp(0.75rem, 2vw, 1.1rem);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 22px 48px rgba(0, 0, 0, 0.38);
}

.reels {
  display: grid;
  grid-template-columns: repeat(5, minmax(70px, 1fr));
  gap: clamp(0.45rem, 1.4vw, 0.85rem);
}

.reel {
  display: grid;
  gap: clamp(0.45rem, 1.3vw, 0.7rem);
  padding: clamp(0.45rem, 1.2vw, 0.7rem);
  min-width: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  overflow: hidden;
}

.symbol {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: var(--radius);
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.symbol img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reel.is-spinning .symbol {
  animation: reelPulse 120ms linear infinite;
}

.symbol.is-winning {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(244, 201, 93, 0.24), 0 0 24px rgba(244, 201, 93, 0.52);
  animation: winPop 700ms ease infinite alternate;
}

.paytable {
  display: grid;
  gap: 0.5rem;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.93rem;
}

.paytable-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.14);
  padding-bottom: 0.45rem;
}

.wheel-zone {
  display: grid;
  place-items: center;
  min-height: 550px;
}

.wheel-stage {
  width: min(520px, 100%);
  aspect-ratio: 1;
  position: relative;
  display: grid;
  place-items: center;
  --wheel-symbol-radius: min(185px, 35vw);
}

.wheel-pointer {
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 18px solid transparent;
  border-right: 18px solid transparent;
  border-top: 42px solid var(--gold);
  z-index: 3;
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.4));
}

.fortune-wheel {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 12px solid #281606;
  position: relative;
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.18), 0 24px 60px rgba(0, 0, 0, 0.42);
  transition: transform 5.4s cubic-bezier(0.11, 0.78, 0.08, 1);
}

.fortune-wheel::after {
  content: "";
  position: absolute;
  inset: 35%;
  border-radius: 50%;
  background: radial-gradient(circle, #fff3b8, var(--gold) 55%, #70450a);
  border: 4px solid rgba(255, 255, 255, 0.45);
}

.wheel-symbol {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(38px, 8vw, 66px);
  height: clamp(38px, 8vw, 66px);
  transform:
    rotate(var(--angle))
    translateY(calc(var(--wheel-symbol-radius) * -1))
    rotate(calc(-1 * var(--angle)));
  transform-origin: center;
  margin: calc(-1 * clamp(19px, 4vw, 33px));
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.34));
}

.wheel-readout {
  display: grid;
  gap: 0.65rem;
}

.result-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius);
  background: rgba(244, 201, 93, 0.12);
  border: 1px solid rgba(244, 201, 93, 0.35);
  color: var(--gold);
  font-weight: 900;
}

.card-table {
  display: grid;
  gap: 1.25rem;
  min-height: 580px;
  padding: clamp(0.85rem, 2vw, 1.3rem);
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse at center, rgba(255, 255, 255, 0.08), transparent 52%),
    linear-gradient(145deg, #0a5a40, #073426);
  border: 2px solid rgba(244, 201, 93, 0.6);
}

.hand-area {
  display: grid;
  gap: 0.7rem;
  align-content: start;
}

.hand-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-weight: 900;
}

.hand-score {
  color: var(--gold);
}

.hand {
  display: flex;
  gap: clamp(0.5rem, 1.4vw, 0.8rem);
  flex-wrap: wrap;
  min-height: 154px;
}

.playing-card {
  width: clamp(82px, 11vw, 112px);
  aspect-ratio: 0.72;
  padding: 0.55rem;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fffdf7, #e9dcc9);
  color: #17110a;
  display: grid;
  grid-template-rows: auto 1fr auto;
  border: 1px solid rgba(0, 0, 0, 0.18);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.35);
  animation: dealCard 420ms ease both;
}

.playing-card.no-deal-animation {
  animation: none;
}

.playing-card.red {
  color: #b20e24;
}

.playing-card.is-hidden {
  padding: 0;
  background: transparent;
}

.playing-card.is-hidden img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

.card-rank {
  font-weight: 950;
  font-size: 1.1rem;
}

.card-suit {
  align-self: center;
  justify-self: center;
  width: 54%;
}

.card-suit.small {
  width: 24px;
  justify-self: end;
  align-self: end;
}

.confetti-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 5;
}

.coin {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff8c7, var(--gold) 55%, var(--gold-dark));
  animation: coinBurst 900ms ease-out forwards;
}

.age-modal {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  padding: 1rem;
  z-index: 200;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(12px);
}

.age-modal.is-visible {
  display: grid;
}

.age-dialog {
  width: min(560px, 100%);
  padding: clamp(1.2rem, 4vw, 2rem);
  background: linear-gradient(180deg, #171d1e, #0d1113);
  border: 1px solid rgba(244, 201, 93, 0.42);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.age-dialog h2 {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
}

.age-dialog p {
  color: var(--muted);
  line-height: 1.65;
}

.age-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

@keyframes reelPulse {
  0% {
    transform: translateY(-6px) scale(0.96);
    filter: blur(1px) brightness(1.25);
  }
  100% {
    transform: translateY(6px) scale(1.02);
    filter: blur(2px) brightness(0.82);
  }
}

@keyframes winPop {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.07) rotate(-1deg);
  }
}

@keyframes coinBurst {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(0.7);
  }
  100% {
    opacity: 0;
    transform: translate(var(--tx), var(--ty)) scale(1.2) rotate(300deg);
  }
}

@keyframes dealCard {
  0% {
    opacity: 0;
    transform: translateY(-24px) rotate(-4deg) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotate(0deg) scale(1);
  }
}

@media (max-width: 980px) {
  .fact-grid,
  .game-grid,
  .legal-grid,
  .game-heading,
  .game-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .game-layout {
    gap: 1.25rem;
  }

  .scoreboard {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 0.85rem 0;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .notice-bar {
    font-size: 0.88rem;
  }

  .hero {
    min-height: min(680px, calc(100svh - 178px));
  }

  .game-card-media.symbols {
    grid-template-columns: repeat(3, 64px);
  }

  .game-card-media.symbols img {
    width: 64px;
    height: 64px;
  }

  .reels {
    grid-template-columns: repeat(5, minmax(48px, 1fr));
  }

  .wheel-zone {
    min-height: 390px;
  }

  .wheel-stage {
    --wheel-symbol-radius: min(132px, 34vw);
  }

  .scoreboard {
    grid-template-columns: 1fr;
  }
}

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