/* ============================================================
   MeadowRidgeWorks — Lumen Reef social casino
   ============================================================ */

:root {
  --abyss: #041018;
  --deep: #07202f;
  --surface: #0b2a3c;
  --surface-2: #103449;
  --panel: rgba(11, 42, 60, 0.72);
  --line: rgba(125, 255, 240, 0.14);
  --line-strong: rgba(125, 255, 240, 0.28);
  --text: #e8f7fa;
  --muted: #9ab9c6;
  --aqua: #2fe1c8;
  --aqua-soft: #7dfff0;
  --azure: #35a9e0;
  --coral: #ff7a59;
  --coral-soft: #ffb27a;
  --gold: #ffd27a;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 0 1px rgba(125, 255, 240, 0.12), 0 18px 50px rgba(0, 0, 0, 0.5);

  --wrap: 1180px;
  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Manrope", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(47, 225, 200, 0.13), transparent 60%),
    radial-gradient(900px 600px at 5% 10%, rgba(53, 169, 224, 0.12), transparent 62%),
    radial-gradient(800px 600px at 50% 110%, rgba(255, 122, 89, 0.09), transparent 60%),
    var(--abyss);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

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

a { color: var(--aqua); text-decoration: none; transition: color .2s ease, opacity .2s ease; }
a:hover { color: var(--aqua-soft); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 .6em;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }

p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.25rem; }
li { margin-bottom: .5em; }

.wrap { width: min(var(--wrap), calc(100% - 40px)); margin-inline: auto; }

.section { padding: 72px 0; position: relative; }
.section--tight { padding: 52px 0; }
.section--alt {
  background: linear-gradient(180deg, rgba(7, 32, 47, 0) 0%, rgba(7, 32, 47, 0.75) 12%, rgba(7, 32, 47, 0.75) 88%, rgba(7, 32, 47, 0) 100%);
}

.section-head { max-width: 760px; margin-bottom: 38px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); margin-bottom: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: .74rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--aqua);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: linear-gradient(90deg, var(--aqua), transparent);
}

.muted { color: var(--muted); }
.accent { color: var(--aqua); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .22s ease, background .22s ease, border-color .22s ease, color .22s ease;
  text-align: center;
}
.btn:active { transform: translateY(1px) scale(.99); }

.btn--primary {
  background: linear-gradient(135deg, var(--aqua-soft), var(--aqua) 45%, var(--azure));
  color: #032029;
  box-shadow: 0 12px 30px rgba(47, 225, 200, 0.28);
}
.btn--primary:hover { color: #032029; box-shadow: 0 16px 40px rgba(47, 225, 200, 0.42); transform: translateY(-2px); }

.btn--coral {
  background: linear-gradient(135deg, var(--coral-soft), var(--coral));
  color: #2a0d05;
  box-shadow: 0 12px 30px rgba(255, 122, 89, 0.28);
}
.btn--coral:hover { color: #2a0d05; transform: translateY(-2px); box-shadow: 0 16px 40px rgba(255, 122, 89, 0.4); }

.btn--ghost {
  background: rgba(125, 255, 240, 0.06);
  border-color: var(--line-strong);
  color: var(--text);
}
.btn--ghost:hover { background: rgba(125, 255, 240, 0.12); border-color: var(--aqua); color: var(--aqua-soft); transform: translateY(-2px); }

.btn--sm { padding: 9px 18px; font-size: .84rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none !important; box-shadow: none; }

/* ---------- Header ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(4, 16, 24, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.topbar__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 74px;
}

.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand img { width: 40px; height: 40px; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
}
.brand__name span { color: var(--aqua); }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav__list a {
  display: block;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  font-size: .92rem;
}
.nav__list a:hover { color: var(--text); background: rgba(125, 255, 240, 0.08); }
.nav__list a.is-active { color: var(--aqua); background: rgba(47, 225, 200, 0.12); }

.topbar__side { display: flex; align-items: center; gap: 10px; }

.balance-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(47, 225, 200, 0.08);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .88rem;
  white-space: nowrap;
}
.balance-chip i {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--aqua);
  box-shadow: 0 0 10px var(--aqua);
}

.age-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 122, 89, .5);
  background: rgba(255, 122, 89, .12);
  color: var(--coral-soft);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .78rem;
}

.burger {
  display: none;
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(125, 255, 240, 0.06);
  cursor: pointer;
  padding: 11px 10px;
  flex-direction: column;
  justify-content: space-between;
}
.burger span { display: block; height: 2px; border-radius: 2px; background: var(--text); transition: transform .25s ease, opacity .2s ease; }
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Notice strip under header */
.notice-strip {
  background: linear-gradient(90deg, rgba(47, 225, 200, .12), rgba(255, 122, 89, .12));
  border-bottom: 1px solid var(--line);
  font-size: .8rem;
  color: #cfe9ef;
  text-align: center;
  padding: 8px 0;
  letter-spacing: .02em;
}

/* ---------- Hero ---------- */
.hero { padding: 76px 0 60px; position: relative; overflow: hidden; }
.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -50% auto;
  width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(47, 225, 200, .16), transparent 62%);
  pointer-events: none;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 54px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero h1 { margin-bottom: .35em; }
.hero h1 em { font-style: normal; color: var(--aqua); }
.hero__lead { font-size: 1.08rem; color: var(--muted); max-width: 52ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 38px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.hero__stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--aqua-soft);
}
.hero__stat span { font-size: .82rem; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }

.hero__art {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  background: var(--deep);
}
.hero__art img { width: 100%; height: 100%; object-fit: cover; }
.hero__art::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(4, 16, 24, .7));
  pointer-events: none;
}
.hero__art-tag {
  position: absolute;
  left: 18px; bottom: 16px;
  z-index: 2;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(4, 16, 24, .72);
  border: 1px solid var(--line-strong);
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--aqua-soft);
}

/* ---------- Marquee ---------- */
.marquee {
  border-block: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(47, 225, 200, .1), rgba(53, 169, 224, .08), rgba(255, 122, 89, .1));
  overflow: hidden;
  padding: 12px 0;
}
.marquee__track {
  display: flex;
  gap: 42px;
  width: max-content;
  animation: drift 32s linear infinite;
  font-family: var(--font-display);
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #bfe6ee;
  white-space: nowrap;
}
.marquee__track span::before { content: "◈"; color: var(--aqua); margin-right: 12px; }
@keyframes drift { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative;
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(16, 52, 73, .85), rgba(7, 32, 47, .82));
  box-shadow: var(--shadow-glow);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: -1px -1px auto -1px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--aqua), transparent);
  opacity: .5;
  transition: opacity .25s ease;
}
.card:hover { transform: translateY(-5px); border-color: var(--line-strong); box-shadow: 0 0 0 1px rgba(125,255,240,.2), 0 26px 60px rgba(0,0,0,.55); }
.card:hover::before { opacity: 1; }
.card h3 { margin-bottom: .5em; }
.card p:last-child { margin-bottom: 0; }

.card__icon {
  width: 46px; height: 46px;
  border-radius: 14px;
  display: grid; place-items: center;
  margin-bottom: 16px;
  background: rgba(47, 225, 200, .12);
  border: 1px solid var(--line-strong);
}
.card__icon svg { width: 24px; height: 24px; }

.card--coral::before { background: linear-gradient(90deg, transparent, var(--coral), transparent); }
.card--coral .card__icon { background: rgba(255, 122, 89, .14); border-color: rgba(255, 122, 89, .32); }

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tag {
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(125, 255, 240, .06);
  color: var(--muted);
}

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 34px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 9px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--aqua), rgba(53, 169, 224, .5), rgba(255, 122, 89, .5));
  border-radius: 2px;
}
.timeline__item { position: relative; padding: 0 0 26px 8px; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: -33px; top: 8px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--abyss);
  border: 2px solid var(--aqua);
  box-shadow: 0 0 0 4px rgba(47, 225, 200, .12);
}
.timeline__item h3 { margin-bottom: .3em; font-size: 1.12rem; }
.timeline__item p { color: var(--muted); margin-bottom: 0; }
.timeline__stamp {
  font-family: var(--font-display);
  font-size: .74rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--coral-soft);
}

/* ---------- Quotes ---------- */
.quote {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  border-left: 3px solid var(--coral);
  background: linear-gradient(160deg, rgba(16, 52, 73, .8), rgba(7, 32, 47, .8));
  box-shadow: var(--shadow-glow);
}
.quote p { font-size: 1.02rem; font-style: italic; color: #dcf1f5; }
.quote footer { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.quote__avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--aqua), var(--azure));
  color: #04202a;
  font-family: var(--font-display);
  font-weight: 700;
}
.quote__meta strong { display: block; font-size: .92rem; }
.quote__meta span { font-size: .8rem; color: var(--muted); }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-glow); }
table { width: 100%; border-collapse: collapse; min-width: 560px; background: rgba(7, 32, 47, .7); }
thead th {
  background: rgba(47, 225, 200, .12);
  font-family: var(--font-display);
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-align: left;
  padding: 14px 20px;
  color: var(--aqua-soft);
}
tbody td { padding: 16px 20px; border-top: 1px solid var(--line); vertical-align: top; color: var(--muted); }
tbody td:first-child { color: var(--text); font-weight: 600; }
tbody tr:hover td { background: rgba(125, 255, 240, .04); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq__item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(11, 42, 60, .6);
  overflow: hidden;
  transition: border-color .22s ease, background .22s ease;
}
.faq__item.is-open { border-color: var(--line-strong); background: rgba(16, 52, 73, .8); }
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  background: none;
  border: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.faq__q::after {
  content: "";
  flex: none;
  width: 10px; height: 10px;
  border-right: 2px solid var(--aqua);
  border-bottom: 2px solid var(--aqua);
  transform: rotate(45deg) translateY(-2px);
  transition: transform .25s ease;
}
.faq__item.is-open .faq__q::after { transform: rotate(-135deg) translateY(-2px); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .32s ease; }
.faq__a > div { padding: 0 22px 20px; color: var(--muted); }

/* ---------- Game ---------- */
.game-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}

.game-board-card {
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(600px 400px at 50% 0%, rgba(47, 225, 200, .12), transparent 65%),
    linear-gradient(165deg, rgba(16, 52, 73, .92), rgba(5, 24, 35, .95));
  box-shadow: var(--shadow);
}

.game-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.game-topline h3 { margin: 0; font-size: 1.12rem; }

.meter-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.meter {
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(4, 16, 24, .5);
  text-align: center;
}
.meter span {
  display: block;
  font-size: .66rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.meter strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--aqua-soft);
}
.meter--warm strong { color: var(--coral-soft); }

.board {
  position: relative;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(8, 1fr);
  gap: 6px;
  padding: 10px;
  border-radius: var(--radius);
  background: rgba(3, 14, 21, .7);
  border: 1px solid var(--line);
  aspect-ratio: 1 / 1;
  touch-action: manipulation;
}

.cell {
  position: relative;
  border-radius: 12px;
  border: 1px solid rgba(125, 255, 240, .08);
  background: rgba(16, 52, 73, .5);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .2s ease, background .2s ease, opacity .22s ease;
  user-select: none;
}
.cell:hover { background: rgba(47, 225, 200, .1); }
.cell svg { width: 74%; height: 74%; pointer-events: none; }
.cell.is-selected {
  background: rgba(47, 225, 200, .2);
  box-shadow: 0 0 0 2px var(--aqua), 0 0 22px rgba(47, 225, 200, .45);
  transform: scale(1.05);
}
.cell.is-clearing { animation: pop .28s ease forwards; }
.cell.is-falling { animation: drop .26s ease; }
.cell.is-hint { box-shadow: 0 0 0 2px rgba(255, 210, 122, .8); }

@keyframes pop {
  0% { transform: scale(1); opacity: 1; }
  45% { transform: scale(1.22); filter: brightness(1.6); }
  100% { transform: scale(.25); opacity: 0; }
}
@keyframes drop {
  from { transform: translateY(-38%); opacity: .3; }
  to { transform: translateY(0); opacity: 1; }
}

.board__veil {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  border-radius: var(--radius);
  background: rgba(3, 14, 21, .88);
  backdrop-filter: blur(4px);
  z-index: 3;
}
.board__veil h4 { font-family: var(--font-display); font-size: 1.3rem; margin: 0 0 .4em; }
.board__veil p { color: var(--muted); max-width: 34ch; margin-inline: auto; }
.board__veil[hidden] { display: none; }

.game-log {
  margin-top: 16px;
  min-height: 46px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px dashed var(--line-strong);
  background: rgba(4, 16, 24, .45);
  font-size: .9rem;
  color: var(--aqua-soft);
}

.game-side { display: grid; gap: 16px; }
.side-panel {
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(16, 52, 73, .8), rgba(7, 32, 47, .85));
}
.side-panel h4 {
  font-family: var(--font-display);
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--aqua);
  margin-bottom: 14px;
}
.paytable { display: grid; gap: 9px; }
.paytable__row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .88rem;
  color: var(--muted);
}
.paytable__row svg { width: 26px; height: 26px; flex: none; }
.paytable__row b { margin-left: auto; color: var(--aqua-soft); font-family: var(--font-display); }

.side-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: .89rem; color: var(--muted); }
.side-list li { padding-left: 20px; position: relative; margin: 0; }
.side-list li::before {
  content: "";
  position: absolute; left: 0; top: .55em;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 8px rgba(255, 122, 89, .7);
}

.game-controls { display: grid; gap: 10px; }

/* ---------- Game cards grid (games page) ---------- */
.game-tile {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(16, 52, 73, .85), rgba(7, 32, 47, .85));
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease;
  box-shadow: var(--shadow-glow);
}
.game-tile:hover { transform: translateY(-5px); border-color: var(--line-strong); }
.game-tile__art {
  height: 150px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 40%, rgba(47, 225, 200, .2), rgba(4, 16, 24, .1));
  border-bottom: 1px solid var(--line);
}
.game-tile__art svg { width: 76px; height: 76px; }
.game-tile__body { padding: 20px; }
.game-tile__body h3 { font-size: 1.05rem; margin-bottom: .4em; }
.game-tile__body p { color: var(--muted); font-size: .92rem; margin-bottom: 14px; }
.pill {
  display: inline-block;
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 210, 122, .14);
  border: 1px solid rgba(255, 210, 122, .3);
  color: var(--gold);
}
.pill--live { background: rgba(47, 225, 200, .14); border-color: var(--line-strong); color: var(--aqua-soft); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  padding: 46px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(700px 300px at 15% 0%, rgba(47, 225, 200, .18), transparent 60%),
    radial-gradient(700px 300px at 90% 100%, rgba(255, 122, 89, .16), transparent 60%),
    linear-gradient(160deg, rgba(16, 52, 73, .9), rgba(5, 24, 35, .95));
  box-shadow: var(--shadow);
  text-align: center;
}
.cta-band h2 { margin-bottom: .4em; }
.cta-band p { color: var(--muted); max-width: 58ch; margin-inline: auto; }
.cta-band .hero__actions { justify-content: center; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding: 62px 0 34px;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(800px 320px at 20% 0%, rgba(47, 225, 200, .12), transparent 65%);
}
.page-hero h1 { margin-bottom: .3em; }
.page-hero p { color: var(--muted); max-width: 66ch; margin-bottom: 0; }
.crumbs { font-size: .82rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--aqua); }
.crumbs span { margin: 0 8px; opacity: .5; }

/* ---------- Legal / prose ---------- */
.prose { max-width: 860px; }
.prose h2 { margin-top: 1.8em; font-size: 1.45rem; }
.prose h3 { margin-top: 1.4em; font-size: 1.12rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: #c9dde4; }
.prose li::marker { color: var(--aqua); }

.callout {
  padding: 20px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--coral);
  background: rgba(255, 122, 89, .07);
  margin: 26px 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--coral-soft); }

.note-box {
  padding: 18px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(47, 225, 200, .07);
  margin: 24px 0;
  font-size: .95rem;
}
.note-box p:last-child { margin-bottom: 0; }

.updated {
  display: inline-block;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  margin-bottom: 26px;
}

/* ---------- Contact form ---------- */
.form-grid { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label {
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(4, 16, 24, .6);
  color: var(--text);
  font-family: inherit;
  font-size: .95rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--aqua);
  box-shadow: 0 0 0 3px rgba(47, 225, 200, .16);
}
.field select option { background: #07202f; }
.checkline { display: flex; gap: 11px; align-items: flex-start; font-size: .88rem; color: var(--muted); }
.checkline input { width: 18px; height: 18px; accent-color: var(--aqua); margin-top: 3px; flex: none; }
.form-status { font-size: .9rem; color: var(--aqua-soft); min-height: 22px; }

.contact-list { display: grid; gap: 14px; list-style: none; padding: 0; margin: 0; }
.contact-list li { display: grid; gap: 3px; margin: 0; }
.contact-list span {
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-list strong { font-weight: 600; font-size: .98rem; }

/* ---------- Footer ---------- */
.footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(7, 32, 47, .55), rgba(4, 16, 24, .95));
  padding: 56px 0 28px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 36px;
}
.footer h4 {
  font-family: var(--font-display);
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--aqua);
  margin-bottom: 16px;
}
.footer p, .footer li, .footer address { color: var(--muted); font-size: .9rem; font-style: normal; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer ul a { color: var(--muted); }
.footer ul a:hover { color: var(--aqua); }
.footer__brand { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer__brand img { width: 36px; height: 36px; }
.footer__brand strong { font-family: var(--font-display); font-size: 1.05rem; color: var(--text); }

.rg-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 26px;
  padding: 26px 0;
  margin-top: 40px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.rg-badges a {
  display: grid;
  place-items: center;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
  transition: border-color .22s ease, background .22s ease, transform .22s ease;
}
.rg-badges a:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, .08); transform: translateY(-3px); }
.rg-badges img { height: 34px; width: auto; object-fit: contain; opacity: .85; }
.rg-badges a:hover img { opacity: 1; }
.rg-badges .rg-age {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--coral-soft);
  border: 2px solid var(--coral);
  border-radius: 50%;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  font-size: .9rem;
}

.footer__legal {
  margin-top: 26px;
  font-size: .8rem;
  color: #7fa0ad;
  line-height: 1.7;
  text-align: center;
}
.footer__bottom {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: .82rem;
  color: #7fa0ad;
}

/* ---------- Modals ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(2, 9, 14, .82);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .26s ease, visibility .26s ease;
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal__box {
  position: relative;
  width: min(560px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  padding: 34px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(500px 260px at 50% 0%, rgba(47, 225, 200, .16), transparent 65%),
    linear-gradient(165deg, rgba(16, 52, 73, .98), rgba(5, 24, 35, .99));
  box-shadow: 0 40px 90px rgba(0, 0, 0, .6);
  transform: translateY(18px) scale(.97);
  transition: transform .3s cubic-bezier(.2, .9, .3, 1.2);
  text-align: center;
}
.modal.is-open .modal__box { transform: translateY(0) scale(1); }
.modal__box h2 { font-size: 1.55rem; }
.modal__box p { color: var(--muted); font-size: .95rem; }
.modal__logo { width: 62px; height: 62px; margin: 0 auto 18px; }
.modal__actions { display: grid; gap: 10px; margin-top: 24px; }
.modal__small { font-size: .78rem; color: #7fa0ad; margin: 18px 0 0; }
.modal__close {
  position: absolute;
  top: 14px; right: 14px;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(4, 16, 24, .7);
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease;
}
.modal__close:hover { color: var(--coral); border-color: var(--coral); }
.modal--form .modal__box { text-align: left; }
.modal--form .modal__box h2 { text-align: center; }

/* ---------- Cookie banner ---------- */
.cookie-bar {
  position: fixed;
  left: 20px; right: 20px; bottom: 20px;
  z-index: 150;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: rgba(6, 26, 38, .96);
  backdrop-filter: blur(12px);
  box-shadow: 0 26px 60px rgba(0, 0, 0, .55);
  transform: translateY(160%);
  transition: transform .45s cubic-bezier(.2, .9, .3, 1);
  max-width: 1180px;
  margin-inline: auto;
}
.cookie-bar.is-visible { transform: translateY(0); }
.cookie-bar p { margin: 0; font-size: .88rem; color: var(--muted); flex: 1 1 340px; }
.cookie-bar__actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; gap: 36px; }
  .game-shell { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 880px) {
  .burger { display: flex; }
  .nav {
    position: fixed;
    inset: 74px 0 auto 0;
    background: rgba(4, 16, 24, .98);
    border-bottom: 1px solid var(--line);
    padding: 14px 20px 22px;
    display: none;
  }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav__list a { padding: 13px 16px; border-radius: 12px; }
  .topbar__side .balance-chip { display: none; }
}

@media (max-width: 720px) {
  .section { padding: 54px 0; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cta-band { padding: 32px 22px; }
  .footer__grid { grid-template-columns: 1fr; }
  .modal__box { padding: 26px 22px; }
  .cookie-bar { left: 12px; right: 12px; bottom: 12px; padding: 18px; }
  .cookie-bar__actions { width: 100%; }
  .cookie-bar__actions .btn { flex: 1; }
  .meter-row { grid-template-columns: 1fr; }
  .board { gap: 4px; padding: 7px; }
  .cell { border-radius: 9px; }
  .hero__stats { gap: 20px; }
}

@media (max-width: 420px) {
  .brand__name { font-size: 1rem; }
  .hero__actions .btn { width: 100%; }
}
