:root {
  --ink: #f7fffd;
  --muted: #a8cfd0;
  --deep: #06161d;
  --deep-2: #09242b;
  --panel: rgba(8, 34, 42, 0.86);
  --panel-strong: rgba(9, 43, 52, 0.94);
  --line: rgba(167, 251, 240, 0.22);
  --aqua: #22d8c7;
  --jade: #55e1a3;
  --gold: #f1bf5a;
  --coral: #ff7768;
  --magenta: #d85bd4;
  --sapphire: #3b8bf2;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(6, 22, 29, 0.96), rgba(8, 43, 48, 0.96) 48%, rgba(38, 24, 55, 0.92)),
    radial-gradient(circle at 72% 12%, rgba(255, 119, 104, 0.18), transparent 33%),
    linear-gradient(180deg, #06161d, #09242b 44%, #071218);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(115deg, transparent 0 46%, rgba(85, 225, 163, 0.08) 46% 47%, transparent 47% 100%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 82px);
  opacity: 0.75;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid rgba(255, 119, 104, 0.85);
  outline-offset: 3px;
}

.site-alert {
  display: grid;
  place-items: center;
  min-height: 40px;
  padding: 8px 18px;
  color: #082027;
  background: linear-gradient(90deg, var(--gold), #fff0a6, var(--aqua), var(--coral));
  font-size: 0.84rem;
  font-weight: 800;
  text-align: center;
}

.site-shell {
  min-height: 100vh;
  overflow: hidden;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(4, 18, 24, 0.82);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 14px 20px;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-weight: 900;
}

.brand img {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  box-shadow: 0 0 22px rgba(34, 216, 199, 0.28);
}

.brand span {
  font-size: 1.06rem;
}

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

.nav-links a {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 9px 12px;
  color: var(--muted);
  font-size: 0.91rem;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
  border-color: rgba(241, 191, 90, 0.48);
  background: rgba(255, 255, 255, 0.06);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 82svh;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(4, 17, 22, 0.93), rgba(4, 17, 22, 0.52) 46%, rgba(4, 17, 22, 0.18)),
    linear-gradient(180deg, rgba(4, 17, 22, 0.15), rgba(4, 17, 22, 0.86)),
    var(--hero-image, url("../assets/images/hero-khelmora.png")) center / cover no-repeat;
  filter: saturate(1.05);
}

.hero::after,
.game-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 90px;
  z-index: -1;
  background:
    radial-gradient(ellipse at 12% 20%, rgba(241, 191, 90, 0.22), transparent 34%),
    repeating-linear-gradient(120deg, rgba(34, 216, 199, 0.18) 0 2px, transparent 2px 16px);
  mask-image: linear-gradient(transparent, #000);
  opacity: 0.9;
}

.hero-inner,
.section-inner,
.footer-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding-inline: 20px;
}

.hero-copy {
  width: min(710px, 100%);
  padding: 70px 0 96px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--aqua));
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(3rem, 10vw, 7.4rem);
  line-height: 0.88;
  letter-spacing: 0;
}

.hero-subtitle {
  max-width: 650px;
  margin-bottom: 24px;
  color: #d4eeed;
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.7;
}

.disclaimer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 24px 0;
}

.pill {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 10px 13px;
  color: var(--ink);
  background: rgba(5, 30, 38, 0.64);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  font-size: 0.84rem;
  font-weight: 800;
  text-align: center;
}

.hero-actions,
.control-row,
.policy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  padding: 12px 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
  font-weight: 900;
  overflow: hidden;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.24), transparent);
  transform: translateX(-110%);
  transition: transform 520ms ease;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.34);
}

.btn:hover::before {
  transform: translateX(110%);
}

.btn-primary {
  color: #07181c;
  border-color: rgba(241, 191, 90, 0.74);
  background: linear-gradient(135deg, var(--gold), #ffe9a1 45%, var(--coral));
  box-shadow: 0 14px 36px rgba(241, 191, 90, 0.24);
}

.btn-aqua {
  color: #04191d;
  border-color: rgba(34, 216, 199, 0.65);
  background: linear-gradient(135deg, var(--aqua), #c9fff8);
}

.btn-ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
}

.section {
  padding: 76px 0;
}

.section.alt {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
    rgba(0, 0, 0, 0.12);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(260px, 0.5fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 34px;
}

.section-head h2,
.legal-page h1 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1;
}

.section-head p,
.legal-intro,
.card p,
.feature p,
.legal-card p,
.game-copy p,
.small-print,
.result-panel p {
  color: var(--muted);
  line-height: 1.72;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.game-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.game-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #08242b;
}

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

.game-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 34%, rgba(0, 0, 0, 0.62)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0 1px, transparent 1px 14px);
  opacity: 0.62;
}

.game-card:hover .game-card-media img {
  transform: scale(1.08);
  filter: saturate(1.12);
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid rgba(241, 191, 90, 0.42);
  border-radius: 999px;
  padding: 5px 10px;
  color: #ffe8a3;
  background: rgba(241, 191, 90, 0.09);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.game-card .badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.card h3 {
  margin-bottom: 8px;
  font-size: 1.25rem;
}

.card .btn {
  align-self: flex-start;
  margin-top: auto;
}

.lore-grid {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: 22px;
  align-items: stretch;
}

.lore-panel,
.feature {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
}

.lore-panel {
  display: grid;
  align-content: end;
  min-height: 420px;
  padding: 26px;
  background:
    linear-gradient(180deg, rgba(6, 22, 29, 0.2), rgba(6, 22, 29, 0.92)),
    url("../assets/images/hero-khelmora.png") center / cover;
  box-shadow: var(--shadow);
}

.lore-panel h2 {
  max-width: 500px;
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.98;
}

.feature-list {
  display: grid;
  gap: 14px;
}

.feature {
  padding: 22px;
}

.feature h3 {
  margin-bottom: 8px;
}

.oath-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
}

.oath-strip div {
  min-height: 108px;
  padding: 18px;
  background: rgba(5, 26, 33, 0.92);
}

.oath-strip strong {
  display: block;
  margin-bottom: 6px;
  color: var(--gold);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(2, 12, 16, 0.72);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  padding-block: 28px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-note {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.game-hero {
  position: relative;
  min-height: 470px;
  display: grid;
  align-items: end;
  isolation: isolate;
}

.game-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(4, 17, 22, 0.92), rgba(4, 17, 22, 0.46), rgba(4, 17, 22, 0.2)),
    linear-gradient(180deg, rgba(4, 17, 22, 0.08), rgba(4, 17, 22, 0.86)),
    var(--game-image, url("../assets/images/hero-khelmora.png")) center / cover no-repeat;
}

.game-hero.monsoon {
  --game-image: url("../assets/images/game-monsoon-mandala.png");
}

.game-hero.lagoon {
  --game-image: url("../assets/images/game-lagoon-wheel.png");
}

.game-hero.river {
  --game-image: url("../assets/images/game-river-pearl.png");
}

.game-copy {
  max-width: 760px;
  padding: 72px 0 72px;
}

.game-copy h1 {
  font-size: clamp(2.8rem, 7vw, 6.4rem);
}

.game-stage {
  padding: 54px 0 84px;
}

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

.game-table,
.side-panel,
.legal-card,
.age-card,
.cookie-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}

.game-table {
  position: relative;
  min-height: 500px;
  padding: clamp(16px, 2vw, 24px);
  overflow: hidden;
}

.game-table::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(34, 216, 199, 0.08), transparent 34%, rgba(255, 119, 104, 0.09)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 34px);
}

.side-panel {
  position: sticky;
  top: 112px;
  padding: 18px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.stat {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 12px;
  background: rgba(255, 255, 255, 0.055);
}

.stat span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.stat strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 1.35rem;
}

.stake-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 16px;
}

.chip-btn {
  min-height: 42px;
  border: 1px solid rgba(241, 191, 90, 0.28);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(241, 191, 90, 0.08);
  font-weight: 900;
}

.chip-btn.is-active {
  color: #06161d;
  background: linear-gradient(135deg, var(--gold), #fff2ae);
}

.result-panel {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.result-panel h2,
.side-panel h2 {
  margin-bottom: 8px;
  font-size: 1.12rem;
}

.mini-rules {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.mini-rules li {
  display: flex;
  gap: 9px;
  color: var(--muted);
  line-height: 1.55;
}

.mini-rules li::before {
  content: "";
  flex: 0 0 9px;
  height: 9px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--aqua);
  box-shadow: 0 0 10px rgba(34, 216, 199, 0.8);
}

.slot-machine {
  position: relative;
  display: grid;
  gap: 14px;
  z-index: 1;
}

.slot-title-row,
.table-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.slot-title-row h2,
.table-title-row h2 {
  margin: 0;
  font-size: clamp(1.2rem, 2.2vw, 2rem);
}

.reels {
  display: grid;
  grid-template-columns: repeat(5, minmax(62px, 1fr));
  gap: clamp(7px, 1.2vw, 12px);
  padding: clamp(10px, 2vw, 18px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(255, 255, 255, 0.04)),
    rgba(2, 14, 19, 0.72);
  box-shadow: inset 0 0 42px rgba(34, 216, 199, 0.12);
}

.reel {
  display: grid;
  grid-template-rows: repeat(3, minmax(70px, 1fr));
  gap: 9px;
  min-width: 0;
}

.slot-cell {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  min-height: 68px;
  border: 1px solid rgba(241, 191, 90, 0.24);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.12), transparent 44%),
    linear-gradient(145deg, rgba(12, 66, 74, 0.92), rgba(4, 20, 27, 0.92));
  overflow: hidden;
}

.slot-cell::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 35%, rgba(255, 255, 255, 0.2), transparent 65%);
  transform: translateX(-120%);
}

.slot-cell.is-win {
  border-color: var(--gold);
  box-shadow: 0 0 26px rgba(241, 191, 90, 0.44);
  animation: winPulse 900ms ease infinite alternate;
}

.slot-cell.is-win::after {
  animation: sheen 900ms ease infinite;
}

.slot-cell img {
  width: min(78%, 112px);
  height: min(78%, 112px);
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.42));
}

.slot-cell.is-spinning img {
  animation: reelBlur 140ms linear infinite;
}

.payline-note {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

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

.burst-drop {
  position: absolute;
  width: 8px;
  height: 14px;
  border-radius: 999px 999px 999px 0;
  background: linear-gradient(180deg, #f8ffcf, var(--aqua), var(--coral));
  transform: rotate(45deg);
  animation: dropBurst 900ms ease-out forwards;
}

.wheel-area {
  position: relative;
  display: grid;
  place-items: center;
  z-index: 1;
  min-height: 520px;
}

.wheel-frame {
  position: relative;
  width: min(72vw, 460px);
  aspect-ratio: 1;
}

.wheel {
  position: absolute;
  inset: 0;
  border: 12px solid rgba(241, 191, 90, 0.85);
  border-radius: 50%;
  background: conic-gradient(
    from -90deg,
    #0bd0c4 0 30deg,
    #203b83 30deg 60deg,
    #f1bf5a 60deg 90deg,
    #d85bd4 90deg 120deg,
    #55e1a3 120deg 150deg,
    #ff7768 150deg 180deg,
    #0bd0c4 180deg 210deg,
    #203b83 210deg 240deg,
    #f1bf5a 240deg 270deg,
    #d85bd4 270deg 300deg,
    #55e1a3 300deg 330deg,
    #ff7768 330deg 360deg
  );
  box-shadow: inset 0 0 36px rgba(0, 0, 0, 0.45), 0 24px 70px rgba(0, 0, 0, 0.42);
  transition: transform 5.2s cubic-bezier(0.12, 0.82, 0.16, 1);
  will-change: transform;
}

.wheel::before {
  content: "";
  position: absolute;
  inset: 15%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(5, 23, 30, 0.2), rgba(5, 23, 30, 0.72));
}

.wheel-symbol {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(42px, 9vw, 68px);
  height: clamp(42px, 9vw, 68px);
  transform:
    rotate(var(--angle))
    translateY(calc(-1 * min(29vw, 178px)))
    rotate(calc(-1 * var(--angle)))
    translate(-50%, -50%);
  transform-origin: 0 0;
  filter: drop-shadow(0 8px 15px rgba(0, 0, 0, 0.48));
}

.wheel-pointer {
  position: absolute;
  left: 50%;
  top: -24px;
  z-index: 4;
  width: 76px;
  height: 76px;
  transform: translateX(-50%);
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.55));
}

.wheel-center {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: min(32%, 136px);
  aspect-ratio: 1;
  border: 7px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  color: #06161d;
  background: linear-gradient(135deg, var(--gold), #fff3b5, var(--aqua));
  transform: translate(-50%, -50%);
  font-weight: 900;
  text-align: center;
  box-shadow: 0 0 28px rgba(241, 191, 90, 0.42);
}

.wheel.is-spinning {
  animation: wheelPulse 520ms ease-in-out infinite alternate;
}

.segment-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.segment-item {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 7px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.82rem;
}

.segment-item img {
  width: 28px;
  height: 28px;
}

.river-board {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(70px, 1fr));
  gap: clamp(8px, 1.4vw, 14px);
}

.river-card {
  position: relative;
  aspect-ratio: 0.78;
  min-height: 128px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  perspective: 1000px;
}

.river-card-inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 520ms cubic-bezier(0.18, 0.9, 0.18, 1);
}

.river-card.is-open .river-card-inner,
.river-card.is-matched .river-card-inner {
  transform: rotateY(180deg);
}

.river-face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  backface-visibility: hidden;
  border: 1px solid rgba(241, 191, 90, 0.25);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.12), transparent 46%),
    linear-gradient(150deg, rgba(11, 76, 84, 0.95), rgba(7, 19, 29, 0.94));
  box-shadow: inset 0 0 28px rgba(34, 216, 199, 0.12);
}

.river-face.back img {
  width: 72%;
  height: 72%;
  object-fit: contain;
}

.river-face.front {
  transform: rotateY(180deg);
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.13), transparent 42%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.1), rgba(8, 34, 42, 0.96));
}

.river-face.front img {
  width: 76%;
  height: 76%;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.4));
}

.river-card.is-matched .river-face.front {
  border-color: var(--gold);
  box-shadow: 0 0 24px rgba(241, 191, 90, 0.38);
}

.legal-page {
  padding: 74px 0;
}

.legal-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.legal-nav {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: rgba(255, 255, 255, 0.055);
}

.legal-nav a {
  border-radius: 999px;
  padding: 9px 11px;
  color: var(--muted);
  font-weight: 800;
}

.legal-nav a[aria-current="page"],
.legal-nav a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
}

.legal-stack {
  display: grid;
  gap: 16px;
}

.legal-card {
  padding: clamp(18px, 2.5vw, 28px);
}

.legal-card h2 {
  margin-bottom: 10px;
}

.legal-card ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.72;
}

.legal-card li + li {
  margin-top: 8px;
}

.age-gate,
.cookie-notice {
  position: fixed;
  z-index: 80;
}

.age-gate[hidden],
.cookie-notice[hidden] {
  display: none;
}

.age-gate {
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(2, 10, 14, 0.78);
  backdrop-filter: blur(18px);
}

.age-card {
  width: min(100%, 530px);
  padding: 26px;
}

.age-card img {
  width: 58px;
  height: 58px;
  margin-bottom: 16px;
  border-radius: 50%;
}

.age-card h2 {
  margin-bottom: 10px;
  font-size: 1.8rem;
}

.cookie-notice {
  right: 18px;
  bottom: 18px;
  width: min(420px, calc(100vw - 36px));
}

.cookie-panel {
  padding: 16px;
}

.cookie-panel p {
  margin-bottom: 12px;
  color: var(--muted);
  line-height: 1.6;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 70;
  min-width: min(92vw, 360px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 16px;
  color: var(--ink);
  background: rgba(6, 22, 29, 0.96);
  box-shadow: var(--shadow);
  text-align: center;
  transform: translate(-50%, 150%);
  transition: transform 260ms ease;
}

.toast.is-visible {
  transform: translate(-50%, 0);
}

@keyframes reelBlur {
  from {
    transform: translateY(-8px) scale(0.95);
    opacity: 0.55;
    filter: blur(2px);
  }
  to {
    transform: translateY(8px) scale(1.04);
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes winPulse {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-4px);
  }
}

@keyframes sheen {
  from {
    transform: translateX(-120%);
  }
  to {
    transform: translateX(120%);
  }
}

@keyframes dropBurst {
  0% {
    opacity: 1;
    transform: translate(0, 0) rotate(45deg) scale(0.8);
  }
  100% {
    opacity: 0;
    transform: translate(var(--dx), var(--dy)) rotate(405deg) scale(0.15);
  }
}

@keyframes wheelPulse {
  from {
    filter: saturate(1);
  }
  to {
    filter: saturate(1.28) brightness(1.08);
  }
}

@media (max-width: 980px) {
  .section-head,
  .lore-grid,
  .game-layout,
  .legal-layout {
    grid-template-columns: 1fr;
  }

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

  .side-panel,
  .legal-nav {
    position: static;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    flex-wrap: wrap;
  }

  .nav-links {
    display: none;
    width: 100%;
    justify-content: flex-start;
  }

  .nav-links.is-open {
    display: flex;
  }

  .hero {
    min-height: 78svh;
  }

  .disclaimer-grid,
  .oath-strip,
  .game-grid,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 54px 0 76px;
  }

  .section {
    padding: 54px 0;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

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

  .reel {
    grid-template-rows: repeat(3, minmax(52px, 1fr));
    gap: 6px;
  }

  .slot-cell {
    min-height: 52px;
  }

  .wheel-area {
    min-height: 430px;
  }

  .river-board {
    grid-template-columns: repeat(3, minmax(70px, 1fr));
  }

  .river-card {
    min-height: 112px;
  }
}

@media (max-width: 480px) {
  .nav {
    padding-inline: 14px;
  }

  .hero-inner,
  .section-inner,
  .footer-inner {
    padding-inline: 14px;
  }

  .hero-actions,
  .control-row,
  .policy-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .stake-row {
    grid-template-columns: 1fr;
  }

  .segment-list {
    grid-template-columns: 1fr;
  }
}

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