/* =========================================================
   THEME — change colours and fonts here
   ========================================================= */
:root {
  --bg: #050814;
  --card: #0b1330;
  --card-2: #13205a;
  --line: rgba(120, 190, 255, 0.18);
  --line-strong: rgba(110, 200, 255, 0.55);

  --cyan: #38d6ff;
  --cyan-soft: #8fd3ff;
  --blue: #2f5bff;
  --purple: #7f5dff;
  --indigo-1: #2c3fc4;
  --indigo-2: #5b6cff;
  --pink-1: #c2187a;
  --pink-2: #ff4fa3;
  --gold: #ffc83d;
  --gold-2: #ff9f1c;
  --red: #ff3b30;

  --text: #f5f7ff;
  --text-2: #cbd5e1;
  --muted: #94a3b8;

  --radius: 14px;
  --radius-sm: 10px;
  --header-h: 56px;
  --nav-h: 66px;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Orbitron", "Inter", sans-serif;
}

/* =========================================================
   BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  min-height: 100vh;
  background:
    radial-gradient(900px 500px at 15% -5%, rgba(47, 91, 255, .28), transparent 60%),
    radial-gradient(900px 500px at 85% -5%, rgba(127, 93, 255, .22), transparent 60%),
    var(--bg);
  color: var(--text);
  font: 14px/1.5 var(--font);
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom));
}
body.no-scroll { overflow: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

.i {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.i--sm { width: 16px; height: 16px; }

/* =========================================================
   BUTTONS & PILLS
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text); font: 700 13px var(--font);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s, filter .2s, background .2s, box-shadow .2s;
}
.btn:hover { background: rgba(255, 255, 255, 0.1); }
.btn:active { transform: scale(.97); }
.btn--primary {
  border: 1px solid rgba(160, 200, 255, .45);
  background: linear-gradient(180deg, var(--indigo-2), var(--indigo-1));
  box-shadow: 0 4px 14px rgba(47, 91, 255, .4), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.btn--primary:hover { filter: brightness(1.12); background: linear-gradient(180deg, var(--indigo-2), var(--indigo-1)); }
.btn--pink {
  border: 1px solid rgba(255, 170, 210, .45);
  background: linear-gradient(180deg, var(--pink-2), var(--pink-1));
  box-shadow: 0 4px 14px rgba(255, 79, 163, .35), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.btn--pink:hover { filter: brightness(1.1); background: linear-gradient(180deg, var(--pink-2), var(--pink-1)); }
.btn--gold {
  border: 0; color: #2a1800;
  background: linear-gradient(180deg, #ffe07a, var(--gold) 45%, var(--gold-2));
  box-shadow: 0 4px 14px rgba(255, 170, 40, .35), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.btn--gold:hover { filter: brightness(1.08); background: linear-gradient(180deg, #ffe07a, var(--gold) 45%, var(--gold-2)); }
.btn--sm { height: 32px; padding: 0 14px; font-size: 12px; border-radius: 999px; }
.btn--xs { height: 28px; padding: 0 14px; font-size: 11px; border-radius: 999px; }
.btn--icon { width: 40px; padding: 0; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 12px 0 8px; width: max-content;
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  font: 700 12px var(--font); text-decoration: none; cursor: pointer;
}
.pill img { width: 18px; height: 18px; border-radius: 50%; }
.pill--right { justify-self: end; padding: 0 14px; }

/* =========================================================
   2. HEADER
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 40;
  height: var(--header-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 16px;
  background: linear-gradient(180deg, rgba(14, 22, 64, .97), rgba(7, 11, 28, .97));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .35);
}
.logo {
  font: 900 22px/1 var(--font-display); letter-spacing: .08em;
  text-decoration: none;
  text-shadow: 0 0 18px rgba(56, 214, 255, .45);
}
.logo span { color: var(--cyan); }
.logo img { display: block; height: 40px; width: auto; }
.footer__brand .logo img { height: 48px; }

/* =========================================================
   3. TICKER
   ========================================================= */
.ticker {
  overflow: hidden; white-space: nowrap;
  padding: 7px 0;
  background: linear-gradient(90deg, rgba(44, 63, 196, .25), rgba(127, 93, 255, .2));
  border-bottom: 1px solid var(--line);
  font-size: 12px; font-weight: 500; color: var(--cyan-soft);
}
.ticker__track { display: inline-flex; animation: ticker 40s linear infinite; }
.ticker__track span { padding-right: 64px; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* =========================================================
   4. LAYOUT
   ========================================================= */
.layout {
  max-width: 1440px; margin: 0 auto; padding: 16px;
  display: grid;
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr) minmax(300px, 360px);
  gap: 20px; align-items: start;
}
.col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.col--center { border-inline: 1px solid var(--line); padding-inline: 20px; gap: 20px; }

/* Cards keep their full height — never squash them */
.col > * { flex-shrink: 0; }

/* Side columns stay in view while the center scrolls.
   script.js sets --stick-top so a column taller than the screen
   scrolls until its bottom is visible, then stays put. */
.col--left, .col--right { position: sticky; top: var(--stick-top, calc(var(--header-h) + 12px)); }

.card {
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, .06);
  overflow: hidden;
}
.card__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; border-bottom: 1px solid var(--line);
  font: 800 12px var(--font); letter-spacing: .08em; text-transform: uppercase;
  color: var(--cyan-soft);
}

.section-title {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 12px;
}
.section-title h2 {
  display: flex; align-items: center; gap: 10px;
  font: 800 15px var(--font); letter-spacing: .06em; text-transform: uppercase;
}
.section-title h2::before {
  content: ""; width: 4px; height: 18px; border-radius: 4px;
  background: linear-gradient(180deg, var(--cyan), var(--purple));
}
.section-title span { font-size: 12px; color: var(--muted); }

/* ---------- Banner carousel ---------- */
.hero {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
}
.hero__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.hero__track::-webkit-scrollbar { display: none; }
.slide {
  position: relative; flex: 0 0 100%; scroll-snap-align: start;
  aspect-ratio: 16 / 9; overflow: hidden;
  display: flex; align-items: center;
  padding: 16px 18px; text-decoration: none;
}
.slide--1 { background: radial-gradient(circle at 78% 50%, rgba(255, 200, 61, .55), transparent 45%), linear-gradient(115deg, #160f3d 0%, #3b1c7a 55%, #7a3b12 100%); }
.slide--2 { background: radial-gradient(circle at 78% 50%, rgba(127, 93, 255, .7), transparent 48%), linear-gradient(115deg, #071233 0%, #1c2f99 55%, #4b1ca0 100%); }
.slide--3 { background: radial-gradient(circle at 78% 50%, rgba(56, 214, 255, .5), transparent 48%), linear-gradient(115deg, #061a2e 0%, #0b4f7a 55%, #2b2a8f 100%); }
.slide::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(5, 8, 20, .55), transparent 55%);
}
.slide__copy { position: relative; z-index: 1; max-width: 56%; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.slide__kicker { font: 800 10px var(--font); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.slide__title { font: 900 clamp(17px, 4.6vw, 22px)/1.1 var(--font-display); text-shadow: 0 2px 10px rgba(0, 0, 0, .5); }
.slide__text { font-size: 11.5px; line-height: 1.35; color: var(--text-2); margin-bottom: 6px; }
.slide__art {
  position: absolute; z-index: 1; right: -4%; top: 50%;
  height: 102%; width: auto; max-width: none;
  transform: translateY(-50%);
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .55));
}
.slide__art--card { right: 5%; height: 84%; border-radius: 16px; transform: translateY(-50%) rotate(6deg); }
.hero__dots { position: absolute; left: 0; right: 0; bottom: 8px; z-index: 2; display: flex; justify-content: center; gap: 6px; }
.hero__dots button {
  width: 6px; height: 6px; padding: 0; border: 0; border-radius: 999px;
  background: rgba(255, 255, 255, .45); cursor: pointer; transition: width .2s, background .2s;
}
.hero__dots button.is-active { width: 18px; background: var(--gold); }

/* ---------- Jackpot ---------- */
.jackpot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px; border-radius: var(--radius);
  background: linear-gradient(90deg, #172478, #3a1d86);
  border: 1px solid var(--line-strong);
  box-shadow: inset 0 0 24px rgba(127, 93, 255, .4), 0 8px 24px rgba(0, 0, 0, .3);
}
.jackpot__label {
  font: 900 13px/1.15 var(--font-display); letter-spacing: .05em; text-transform: uppercase;
  background: linear-gradient(180deg, #fff, #ffd56b);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.jackpot__digits { display: flex; gap: 3px; }
.jackpot__digits span {
  width: 24px; height: 32px; display: grid; place-items: center;
  border-radius: 6px; background: linear-gradient(180deg, #ffffff, #c9d3e6);
  color: #0b1030; font: 900 17px var(--font-display);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .2), 0 2px 6px rgba(0, 0, 0, .3);
}

/* ---------- Live activity ---------- */
.live { display: inline-flex; align-items: center; gap: 6px; color: #4ade80; }
.live i { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.activity__cols { display: grid; grid-template-columns: 1fr 1fr; }
.activity__cols > div + div { border-left: 1px solid var(--line); }
.activity__sub {
  padding: 6px; text-align: center;
  font: 800 11px var(--font); letter-spacing: .08em; text-transform: uppercase;
  background: linear-gradient(90deg, rgba(44, 63, 196, .75), rgba(91, 108, 255, .75));
}
.activity__cols > div + div .activity__sub { background: linear-gradient(90deg, rgba(194, 24, 122, .65), rgba(255, 79, 163, .6)); }
.activity__list { list-style: none; }
.activity__list li {
  display: flex; justify-content: space-between; gap: 8px;
  padding: 7px 10px; font-size: 12px;
  border-top: 1px solid rgba(255, 255, 255, .05);
}
.activity__list li span:first-child { color: var(--muted); }
.activity__list li span:last-child { color: var(--cyan-soft); font-variant-numeric: tabular-nums; }

/* ---------- Referral card ---------- */
.refer__head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.refer__icon { width: 40px; height: 40px; flex: none; object-fit: contain; }
.refer__title { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.refer__title strong { font-size: 14px; }
.refer__title span { font-size: 11px; color: var(--muted); }
.refer__stats { display: flex; gap: 6px; }
.refer__stats div {
  display: flex; flex-direction: column; align-items: center;
  padding: 4px 8px; border-radius: 8px;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line);
}
.refer__stats b { font-size: 12px; color: var(--gold); }
.refer__stats small { font-size: 10px; color: var(--muted); }
.refer__body { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; padding: 16px 14px; }

.tree { display: flex; flex-direction: column; align-items: center; }
.tree__you {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; font: 800 11px var(--font);
  background: linear-gradient(135deg, var(--blue), var(--purple));
  box-shadow: 0 0 16px rgba(127, 93, 255, .6);
}
.tree__line { width: 2px; height: 14px; background: var(--line-strong); }
.tree__row { position: relative; display: flex; gap: 12px; padding-top: 14px; }
.tree__row::before { content: ""; position: absolute; top: 0; left: 15px; right: 15px; height: 2px; background: var(--line-strong); }
.tree__row span {
  position: relative; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-size: 11px;
  background: var(--card); border: 1px solid var(--line-strong);
}
.tree__row span::before {
  content: ""; position: absolute; bottom: 100%; left: 50%;
  width: 2px; height: 14px; transform: translateX(-50%); background: var(--line-strong);
}
.refer__info { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.refer__info li {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line);
}
.refer__info img { width: 30px; height: 30px; flex: none; object-fit: contain; }
.refer__info div { display: flex; flex-direction: column; min-width: 0; }
.refer__info strong { font-size: 12px; }
.refer__info span { font-size: 11px; color: var(--muted); }
.refer__tabs { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.refer__tabs button {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 10px 4px; border: 0; background: none;
  font-size: 11px; font-weight: 700; color: var(--muted); cursor: pointer;
}
.refer__tabs button + button { border-left: 1px solid var(--line); }
.refer__tabs button.is-active { color: var(--text); background: linear-gradient(180deg, rgba(91, 108, 255, .4), rgba(91, 108, 255, .1)); }

/* ---------- Category tabs (image tiles) ---------- */
.cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.cat {
  padding: 0; border: 0; background: none; cursor: pointer;
  border-radius: 18px;
  filter: saturate(.55) brightness(.72);
  transition: transform .2s, filter .2s;
}
.cat img { width: 100%; height: auto; }
.cat:hover { filter: saturate(.9) brightness(.95); }
.cat.is-active { filter: drop-shadow(0 0 12px rgba(255, 200, 61, .6)); transform: translateY(-3px); }

/* "All" tile — drawn in CSS to match the image tiles */
.cat--all { aspect-ratio: 338 / 325; padding: 3.5%; }
.cat__frame {
  height: 100%; display: flex; flex-direction: column; align-items: center;
  border-radius: 16px; overflow: hidden;
  border: 3px solid #a9c8ff;
  background: linear-gradient(180deg, #1b2a8c 0%, #13206b 55%, #2a3cc4 100%);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .12), inset 0 -12px 22px rgba(0, 0, 0, .3);
}
.cat__label {
  width: 100%; padding: 6% 0 5%;
  font: 800 clamp(11px, 1.6vw, 19px)/1 var(--font); letter-spacing: .04em; text-transform: uppercase;
  background: linear-gradient(180deg, #5c8dff, #3657d6);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
}
.cat__frame img { width: 64%; margin: auto; }

/* ---------- Provider grid ---------- */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ptile {
  position: relative; display: block; border-radius: 16px;
  transition: transform .2s, filter .2s;
}
.ptile img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.ptile:hover { transform: translateY(-4px); filter: drop-shadow(0 10px 18px rgba(56, 214, 255, .35)); }
.badge {
  position: absolute; top: 6%; left: 6%; z-index: 1;
  padding: 2px 8px; border-radius: 999px;
  background: linear-gradient(90deg, var(--red), #ff6b3d);
  font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .4);
}

/* Fallback tile when an item has no image */
.ptile--blank {
  aspect-ratio: 1; display: grid; place-items: center; text-align: center; padding: 10px;
  border: 2px solid var(--line-strong);
  background: linear-gradient(180deg, var(--card-2), var(--card));
  font: 800 13px var(--font-display); text-decoration: none;
}

/* ---------- Game rails (horizontal rows) ---------- */
.rail__nav { display: flex; gap: 6px; }
.rail__nav button {
  width: 28px; height: 28px; display: grid; place-items: center;
  border-radius: 8px; border: 1px solid var(--line); background: rgba(255, 255, 255, .05);
  cursor: pointer; color: var(--text-2);
}
.rail__nav button:hover { background: rgba(255, 255, 255, .12); color: var(--text); }
.rail__row {
  --per: 3; --gap: 10px;
  display: flex; gap: var(--gap); overflow-x: auto;
  scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none;
}
.rail__row::-webkit-scrollbar { display: none; }
.rail__row--wide { --per: 5; }
.gtile {
  position: relative; flex: 0 0 calc((100% - (var(--per) - 1) * var(--gap)) / var(--per));
  aspect-ratio: 294 / 400; scroll-snap-align: start;
  border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .35);
}
.gtile img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gtile__play {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(5, 8, 20, .5); opacity: 0; transition: opacity .2s;
}
.gtile__play span {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  color: #2a1800; background: linear-gradient(180deg, #ffe07a, var(--gold-2));
  box-shadow: 0 4px 14px rgba(255, 170, 40, .5);
}
.gtile:hover img { transform: scale(1.06); }
.gtile:hover .gtile__play, .gtile:focus-visible .gtile__play { opacity: 1; }

.hot { padding: 0 12px 12px; }
.hot__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.hot__tag {
  padding: 5px 12px; border-radius: 0 0 8px 8px;
  background: linear-gradient(90deg, var(--red), #ff6b3d);
  font: 800 11px var(--font); letter-spacing: .08em; text-transform: uppercase;
}
.hot__head .rail__nav { padding-top: 8px; }

/* ---------- Promo banners ---------- */
.promos { display: flex; flex-direction: column; gap: 10px; }
.promo {
  position: relative; overflow: hidden;
  min-height: 112px; padding: 12px 16px;
  display: flex; align-items: center; justify-content: flex-end;
  text-decoration: none;
  border-radius: var(--radius); border: 1px solid var(--line-strong);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .35);
  transition: transform .2s, box-shadow .2s;
}
.promo:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0, 0, 0, .45), 0 0 0 1px var(--cyan); }
.promo__art {
  position: absolute; left: -6px; top: 50%; width: 118px; height: 118px; object-fit: contain;
  transform: translateY(-50%) rotate(-8deg);
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .5));
  transition: transform .3s;
}
.promo:hover .promo__art { transform: translateY(-50%) rotate(0) scale(1.05); }
.promo__copy { position: relative; max-width: 60%; display: flex; flex-direction: column; align-items: flex-end; text-align: right; gap: 2px; }
.promo__kicker { font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.promo__title {
  font: 900 19px/1.05 var(--font-display); text-transform: uppercase;
  background: linear-gradient(180deg, #fff, var(--cyan-soft));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.promo__text { font-size: 11px; color: var(--text-2); margin-bottom: 6px; }
.promo--1 { background: radial-gradient(circle at 15% 50%, rgba(255, 200, 61, .35), transparent 40%), linear-gradient(110deg, #1d1660 0%, #2c3fc4 55%, #0b7fa8 100%); }
.promo--2 { background: radial-gradient(circle at 15% 50%, rgba(255, 79, 163, .35), transparent 40%), linear-gradient(110deg, #3a0f63 0%, #6a1fb0 50%, #2c3fc4 100%); }
.promo--3 { background: radial-gradient(circle at 15% 50%, rgba(255, 159, 28, .35), transparent 40%), linear-gradient(110deg, #3b1606 0%, #7a2e8f 50%, #2b2a8f 100%); }

/* ---------- Wallet card ---------- */
.wallet { padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.wallet__auth { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wallet__actions { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; }
.wallet__balance {
  display: flex; align-items: baseline; justify-content: center; gap: 10px;
  padding: 12px 0; border-radius: var(--radius-sm);
  background: radial-gradient(circle at 50% 120%, rgba(91, 108, 255, .35), transparent 70%);
}
.wallet__balance span { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.wallet__balance strong { font: 900 28px var(--font-display); }
.wallet__stats { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.wallet__stats div { padding: 8px 4px; text-align: center; }
.wallet__stats div + div { border-left: 1px solid var(--line); }
.wallet__stats dt { font-size: 10px; color: var(--muted); }
.wallet__stats dd { font-size: 12px; font-weight: 800; }
#refreshBtn.is-spinning .i { animation: spin .8s linear; }
@keyframes spin { to { transform: rotate(360deg); } }

/* =========================================================
   5. ABOUT / SEO
   ========================================================= */
.about { max-width: 880px; margin: 32px auto 0; padding: 0 16px; text-align: center; }
.about h1 { font: 800 22px/1.25 var(--font); margin-bottom: 10px; }
.about > p { color: var(--text-2); margin-bottom: 12px; }
.about > .btn { margin-top: 4px; }
#aboutMore { margin-top: 24px; text-align: left; }
#aboutMore > * + * { margin-top: 8px; }
#aboutMore h2 {
  font: 800 18px/1.3 var(--font);
  margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line);
}
#aboutMore > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
#aboutMore h3 { font-size: 15px; margin-top: 20px; color: var(--cyan-soft); }
#aboutMore p { color: var(--text-2); }
#aboutMore ul { padding-left: 20px; color: var(--text-2); }
#aboutMore li + li { margin-top: 2px; }
#aboutMore li::marker { color: var(--cyan); }
#aboutMore .about__cta { margin-top: 12px; }
#aboutMore .about__games {
  list-style: none; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px;
}
#aboutMore .about__games li {
  margin: 0; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(255, 255, 255, .03);
  color: var(--text); font-weight: 600;
}
.about__limits { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; }
.about__limits > div {
  padding: 10px 14px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(255, 255, 255, .03);
}
.about__limits dt { font-weight: 700; }
.about__limits dd { color: var(--text-2); margin-top: 2px; }
#aboutMore details {
  margin-top: 8px; padding: 10px 14px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(255, 255, 255, .03);
}
#aboutMore summary { cursor: pointer; font-weight: 600; }
#aboutMore details p { margin-top: 6px; }

/* =========================================================
   6. FOOTER
   ========================================================= */
.site-footer { margin-top: 36px; border-top: 1px solid var(--line); background: #03050d; }
.logo-band {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px 36px;
  max-width: 1440px; margin: 0 auto; padding: 22px 16px;
  border-bottom: 1px solid var(--line);
}
.logo-band img { height: 26px; width: auto; opacity: .6; transition: opacity .2s; }
.logo-band img:hover { opacity: 1; }
.footer__inner {
  max-width: 1440px; margin: 0 auto; padding: 28px 16px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 24px;
}
.footer__brand p { margin: 10px 0 14px; color: var(--muted); font-size: 13px; }
.social { display: flex; gap: 10px; }
.social a { display: block; border-radius: 50%; transition: transform .2s; }
.social a:hover { transform: translateY(-2px); }
.social img { width: 34px; height: 34px; object-fit: contain; }
.site-footer h4 { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--cyan-soft); margin-bottom: 10px; }
.site-footer nav a { display: block; padding: 3px 0; color: var(--text-2); text-decoration: none; font-size: 13px; }
.site-footer nav a:hover { color: var(--text); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 6px; font-size: 11px; color: var(--text-2);
  background: rgba(255, 255, 255, .06); border: 1px solid var(--line);
}
.chips img { width: 16px; height: 16px; }
.payment-methods { gap: 8px; }
.payment-methods .payment-method {
  min-height: 38px; padding: 8px 12px; justify-content: center;
  background: #f5f7ff; border-color: rgba(255, 255, 255, .18);
  color: #172345; font-size: 12px; font-weight: 700;
}
.payment-methods .payment-method--visa {
  color: #1434cb; font-size: 20px; font-weight: 900; font-style: italic; text-transform: uppercase;
}
.payment-methods .payment-method--payid { color: #262044; font-size: 18px; }
.payment-method--bank svg { flex-shrink: 0; }
.footer__bottom {
  max-width: 1440px; margin: 0 auto; padding: 16px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  border-top: 1px solid var(--line); font-size: 12px; color: var(--muted);
}
.footer__bottom p:last-child { margin-left: auto; }
.age { width: 34px; height: 34px; }

/* =========================================================
   7. BOTTOM NAV + FLOATING BUTTONS
   ========================================================= */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding-inline: max(0px, calc((100% - 720px) / 2));
  background: linear-gradient(180deg, rgba(14, 22, 64, .95), rgba(5, 8, 20, .97));
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line-strong);
}
.bottom-nav > a, .bottom-nav > button {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  border: 0; background: none; cursor: pointer;
  font-size: 11px; font-weight: 700; color: var(--muted); text-decoration: none;
}
.bottom-nav > a:hover { color: var(--text); }
.bottom-nav > .is-active { color: var(--cyan); }
.bubble {
  width: 56px; height: 56px; margin-top: -30px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 35%, #3b4fd8, #1a1f6b);
  border: 3px solid var(--line-strong);
  box-shadow: 0 0 22px rgba(91, 108, 255, .7);
}
.bubble img { width: 38px; height: 38px; object-fit: contain; }
.bottom-nav__center { color: var(--text) !important; }

/* =========================================================
   8. PROMO POPUP
   ========================================================= */
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; padding: 16px;
  background: rgba(2, 4, 12, .72); backdrop-filter: blur(6px);
}
.modal[hidden] { display: none; }
.modal__panel {
  position: relative;
  width: min(760px, 100%); height: min(520px, calc(100vh - 32px));
  display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 16px;
  padding: 16px; border-radius: 20px;
  background: linear-gradient(180deg, #16205a, #0b1027);
  border: 1px solid var(--line-strong);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
  animation: pop .25s ease-out;
}
@keyframes pop { from { transform: scale(.95); opacity: 0; } }
.modal__close {
  position: absolute; top: -12px; right: -12px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: #2a2f55; border: 1px solid rgba(255, 255, 255, .2);
}
.modal__tabs {
  display: flex; flex-direction: column; gap: 6px;
  padding: 10px; border-radius: 14px; overflow-y: auto;
  background: rgba(255, 255, 255, .04);
}
.modal__tab {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border: 0; border-radius: 10px;
  background: none; text-align: left; cursor: pointer;
  font: 800 12px var(--font); text-transform: uppercase;
}
.modal__tab img { width: 30px; height: 30px; flex: none; object-fit: contain; }
.modal__tab:hover { background: rgba(255, 255, 255, .07); }
.modal__tab.is-active { color: #2a1800; background: linear-gradient(90deg, var(--gold), var(--gold-2)); }
.modal__content {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  padding: 12px; overflow-y: auto; text-align: center;
}
.modal__art {
  flex: none; width: 100%; max-width: 380px; height: clamp(110px, 24vh, 180px);
  border-radius: 14px; overflow: hidden;
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 50% 55%, rgba(255, 200, 61, .45), transparent 55%),
    linear-gradient(120deg, #1d1660, #2c3fc4 60%, #6a1fb0);
  border: 1px solid var(--line-strong);
}
.modal__art img { height: 78%; width: auto; max-width: 70%; object-fit: contain; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .5)); }
.modal__content h3 { font-size: 20px; font-weight: 800; }
.modal__content p { max-width: 420px; color: var(--text-2); }
.modal__content ul { list-style: none; color: var(--text-2); }
.modal__content li::before { content: "\2713\00a0\00a0"; color: var(--gold); }

.toast {
  position: fixed; left: 50%; bottom: calc(var(--nav-h) + 24px); z-index: 120;
  padding: 10px 16px; border-radius: 999px;
  background: #1e2a6e; border: 1px solid var(--line-strong);
  font-size: 13px; pointer-events: none;
  opacity: 0; transform: translate(-50%, 12px); transition: opacity .2s, transform .2s;
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* Tablet & mobile: single column, sections re-ordered */
@media (max-width: 1023px) {
  .layout { display: flex; flex-direction: column; align-items: stretch; gap: 14px; max-width: 640px; padding: 12px; }
  .col { display: contents; }
  .o-1 { order: 1; } .o-2 { order: 2; } .o-3 { order: 3; }
  .o-4 { order: 4; } .o-5 { order: 5; } .o-6 { order: 6; }
  .o-7 { order: 7; } .o-8 { order: 8; } .o-9 { order: 9; } .o-10 { order: 10; }
  .rail__row--wide { --per: 3.4; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .grid { gap: 10px; }
  .cats { gap: 8px; }
  .cat__frame { border-width: 2px; border-radius: 12px; }
  .rail__row { --per: 3.2; }
  .logo-band { gap: 14px 24px; }
  .logo-band img { height: 20px; }
  .modal__panel { grid-template-columns: minmax(0, 1fr); grid-template-rows: 1fr auto; height: auto; max-height: calc(100vh - 32px); }
  .modal__tabs { order: 2; flex-direction: row; overflow-x: auto; padding: 8px; scrollbar-width: none; }
  .modal__tab { flex: none; border-radius: 999px; background: #f5f7ff; color: #111827; font-size: 11px; padding: 6px 12px 6px 6px; }
  .modal__tab img { width: 24px; height: 24px; }
  .footer__bottom p:last-child { margin-left: 0; }
}

@media (max-width: 380px) {
  .jackpot { justify-content: center; }
  .jackpot__digits span { width: 20px; height: 28px; font-size: 15px; }
  .refer__body { grid-template-columns: 1fr; justify-items: center; }
}

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