/* Arcade Haven BD — dark lobby theme (original) */
:root {
  --ah-bg: #04060f;
  --ah-bg-2: #080d18;
  --ah-surface: #0f172a;
  --ah-surface-2: #15213a;
  --ah-border: rgba(255, 255, 255, 0.08);
  --ah-border-strong: rgba(255, 255, 255, 0.16);
  --ah-text: #eaf1ff;
  --ah-muted: #a7b5c8;
  --ah-gold: #ffc65b;
  --ah-blue: #39d2ff;
  --ah-ok: #3ad29f;
  --ah-warn: #ff7a72;
  --ah-radius: 16px;
  --ah-gap: 12px;
  --ah-section: 24px;
  --ah-header-h: 56px;
  --ah-bottom-h: 68px;
  --ah-shadow: 0 10px 24px rgba(2, 6, 16, 0.45);
  --ah-glow: 0 0 0 1px rgba(255, 198, 91, 0.28), 0 12px 28px rgba(255, 158, 43, 0.12);
  --ah-font: "Hind Siliguri", "Noto Sans Bengali", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html {
  background: var(--ah-bg);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--ah-font);
  font-size: 16px;
  line-height: 1.62;
  color: var(--ah-text);
  background:
    radial-gradient(1100px 520px at 12% -8%, rgba(57, 210, 255, 0.14), transparent 62%),
    radial-gradient(900px 480px at 92% 4%, rgba(255, 198, 91, 0.12), transparent 60%),
    linear-gradient(180deg, var(--ah-bg) 0%, var(--ah-bg-2) 42%, var(--ah-bg) 100%);
  background-attachment: fixed;
  padding-bottom: calc(var(--ah-bottom-h) + env(safe-area-inset-bottom) + 12px);
  overflow-x: hidden;
}

h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 8px; font-weight: 700; letter-spacing: 0; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1.02rem; }
h4 { font-size: 0.98rem; }
p { margin: 0 0 10px; }
a { color: var(--ah-blue); text-decoration: none; }
a:hover, a:focus-visible { color: #7ce3ff; }
img { max-width: 100%; display: block; }
small { font-size: 0.78rem; }
:focus-visible { outline: 2px solid var(--ah-gold); outline-offset: 2px; border-radius: 8px; }

.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

/* ---------- utilities ---------- */
.container-ah { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 14px; }
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 2000;
  background: var(--ah-gold); color: #1a1204; padding: 10px 16px; border-radius: 10px;
  font-weight: 700; transition: top 0.18s ease;
}
.skip-link:focus { top: 10px; color: #1a1204; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.muted { color: var(--ah-muted); }
.tiny { font-size: 0.74rem; line-height: 1.45; color: var(--ah-muted); }
.section { margin-top: var(--ah-section); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-head .eyebrow { color: var(--ah-gold); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.section-link { font-size: 0.86rem; font-weight: 700; white-space: nowrap; }
.rule-divider { height: 1px; background: linear-gradient(90deg, transparent, var(--ah-border-strong), transparent); border: 0; margin: var(--ah-section) 0 0; opacity: 0.7; }

.chip, .tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 600;
  background: rgba(57, 210, 255, 0.1); color: #bfeeff; border: 1px solid rgba(57, 210, 255, 0.24);
  white-space: nowrap;
}
.tag-gold { background: rgba(255, 198, 91, 0.12); color: #ffdf9e; border-color: rgba(255, 198, 91, 0.3); }
.tag-soft { background: rgba(255, 255, 255, 0.05); color: var(--ah-muted); border-color: var(--ah-border); }
.tag-ok { background: rgba(58, 210, 159, 0.12); color: #9ff0d2; border-color: rgba(58, 210, 159, 0.3); }
.tag-warn { background: rgba(255, 122, 114, 0.12); color: #ffc4c0; border-color: rgba(255, 122, 114, 0.3); }
.dot-status { width: 8px; height: 8px; border-radius: 50%; background: var(--ah-muted); display: inline-block; }
.dot-status.on { background: var(--ah-ok); box-shadow: 0 0 0 3px rgba(58, 210, 159, 0.18); }

/* ---------- buttons (Bootstrap overrides) ---------- */
.btn {
  --bs-btn-font-weight: 700; --bs-btn-border-radius: 12px; --bs-btn-padding-y: 0.5rem;
  --bs-btn-padding-x: 0.95rem; --bs-btn-font-size: 0.92rem;
  min-height: 44px; border-radius: 12px; font-family: inherit;
}
.btn-ah-gold {
  background: linear-gradient(180deg, #ffd781, #ffb43d); color: #241703; border: 1px solid #ffcf6f;
  box-shadow: 0 8px 20px rgba(255, 168, 40, 0.22);
}
.btn-ah-gold:hover, .btn-ah-gold:focus { background: linear-gradient(180deg, #ffe3a1, #ffc156); color: #241703; }
.btn-ah-ghost { background: rgba(255, 255, 255, 0.04); color: var(--ah-text); border: 1px solid var(--ah-border-strong); }
.btn-ah-ghost:hover, .btn-ah-ghost:focus { background: rgba(255, 255, 255, 0.09); color: #fff; }
.btn-ah-blue { background: rgba(57, 210, 255, 0.14); color: #cdefff; border: 1px solid rgba(57, 210, 255, 0.34); }
.btn-ah-blue:hover, .btn-ah-blue:focus { background: rgba(57, 210, 255, 0.24); color: #fff; }
.btn-ah-danger { background: rgba(255, 122, 114, 0.14); color: #ffd0cd; border: 1px solid rgba(255, 122, 114, 0.34); }
.btn-sm { --bs-btn-font-size: 0.82rem; --bs-btn-padding-y: 0.32rem; --bs-btn-padding-x: 0.7rem; min-height: 38px; }
.btn-icon {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px; padding: 0;
}
.btn[disabled], .btn:disabled { opacity: 0.55; }

.form-control, .form-select, .input-group-text {
  background: rgba(4, 8, 18, 0.7); color: var(--ah-text); border: 1px solid var(--ah-border-strong);
  border-radius: 12px; min-height: 44px; font-family: inherit;
}
.form-control::placeholder { color: #7c8ba1; }
.form-control:focus, .form-select:focus {
  background: rgba(8, 14, 28, 0.9); color: #fff; border-color: rgba(57, 210, 255, 0.6);
  box-shadow: 0 0 0 0.2rem rgba(57, 210, 255, 0.16);
}
.form-label { color: var(--ah-muted); font-size: 0.84rem; margin-bottom: 4px; }
.form-check-input { background-color: #0b1424; border-color: var(--ah-border-strong); }
.form-check-input:checked { background-color: var(--ah-gold); border-color: var(--ah-gold); }
.form-switch .form-check-input { width: 2.6em; height: 1.4em; }

/* ---------- header ---------- */
.ah-topbar {
  position: sticky; top: 0; z-index: 1030;
  background: rgba(4, 6, 15, 0.86); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ah-border);
}
.ah-topbar-inner { display: flex; align-items: center; gap: 8px; min-height: var(--ah-header-h); padding-block: 6px; }
.ah-brand { display: flex; align-items: center; gap: 9px; color: var(--ah-text); min-width: 0; }
.ah-brand:hover, .ah-brand:focus { color: #fff; }
.ah-brand-mark {
  width: 34px; height: 34px; flex: 0 0 34px; border-radius: 11px; position: relative;
  background: conic-gradient(from 210deg, #ffc65b, #39d2ff, #7a5cff, #ffc65b);
  box-shadow: inset 0 0 0 2px rgba(4, 6, 15, 0.8), 0 6px 16px rgba(57, 210, 255, 0.25);
}
.ah-brand-mark::after {
  content: "A"; position: absolute; inset: 4px; border-radius: 8px; background: #070c17;
  color: var(--ah-gold); font-size: 15px; font-weight: 800; display: grid; place-items: center;
  font-family: "Segoe UI", system-ui, sans-serif;
}
.ah-brand-text { display: flex; flex-direction: column; line-height: 1.12; min-width: 0; }
.ah-brand-text b { font-size: 0.98rem; letter-spacing: 0.01em; white-space: nowrap; }
.ah-brand-text span { font-size: 0.68rem; color: var(--ah-muted); white-space: nowrap; }
.ah-lang {
  font-size: 0.72rem; font-weight: 700; color: #cfe3ff; background: rgba(57, 210, 255, 0.1);
  border: 1px solid var(--ah-border-strong); border-radius: 999px; padding: 3px 9px; white-space: nowrap;
}
.ah-topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.ah-balance-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 198, 91, 0.18), rgba(255, 198, 91, 0.06));
  border: 1px solid rgba(255, 198, 91, 0.34); font-size: 0.78rem; font-weight: 700; color: #ffe1a6;
}
.ah-avatar {
  width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; flex: 0 0 34px;
  background: linear-gradient(150deg, #23324f, #0d1626); border: 1px solid var(--ah-border-strong);
  color: var(--ah-gold); font-weight: 800; font-size: 0.82rem;
}
.ah-badge-dot {
  position: absolute; top: 4px; right: 4px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--ah-warn); border: 2px solid #04060f;
}
.ah-nav-desktop { display: none; gap: 4px; }
.ah-nav-desktop a {
  color: var(--ah-muted); font-size: 0.88rem; font-weight: 600; padding: 8px 11px; border-radius: 10px;
}
.ah-nav-desktop a:hover, .ah-nav-desktop a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, 0.07); }

/* ---------- hero ---------- */
.ah-hero { margin-top: 14px; }
.ah-hero .swiper { border-radius: var(--ah-radius); box-shadow: var(--ah-shadow); background: #060b16; }
.ah-hero .swiper-wrapper { min-height: 1px; }
.hero-slide {
  aspect-ratio: 2 / 1;
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
  padding: 14px 14px 30px; position: relative; min-height: 190px;
  background:
    radial-gradient(520px 220px at 88% 116%, rgba(122, 92, 255, 0.42), transparent 62%),
    linear-gradient(135deg, #0a1226 0%, #131a3a 48%, #241338 100%);
}
.hero-slide h3 { font-size: 1.05rem; margin: 0; max-width: 30ch; }
.hero-slide .hero-sub { color: #c9d6ea; font-size: 0.8rem; margin: 0; }
.hero-art {
  width: 100%; height: auto; aspect-ratio: 1920 / 210; object-fit: cover; border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4);
  background: #05080f;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hero-scope { position: absolute; top: 12px; right: 12px; }
.ah-hero .swiper-pagination-bullet { background: #7f8ea6; opacity: 0.7; width: 9px; height: 9px; }
.ah-hero .swiper-pagination-bullet-active { background: var(--ah-gold); opacity: 1; width: 22px; border-radius: 6px; }
.ah-hero .swiper-button-prev, .ah-hero .swiper-button-next {
  width: 38px; height: 38px; border-radius: 12px; background: rgba(4, 8, 18, 0.7);
  border: 1px solid var(--ah-border-strong); color: var(--ah-gold); top: 45%;
}
.ah-hero .swiper-button-prev::after, .ah-hero .swiper-button-next::after { font-size: 15px; font-weight: 800; }

/* ---------- jackpot ---------- */
.jackpot {
  margin-top: 14px; border-radius: var(--ah-radius); padding: 14px 16px; position: relative; overflow: hidden;
  background: linear-gradient(120deg, rgba(255, 198, 91, 0.16), rgba(15, 23, 42, 0.9) 42%, rgba(57, 210, 255, 0.16));
  border: 1px solid rgba(255, 198, 91, 0.26); box-shadow: var(--ah-glow);
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px; justify-content: space-between;
}
.jackpot::before {
  content: ""; position: absolute; inset: -40% -10% auto -10%; height: 160%;
  background: linear-gradient(100deg, transparent 35%, rgba(255, 255, 255, 0.14) 50%, transparent 62%);
  animation: ah-sheen 7s linear infinite;
}
@keyframes ah-sheen { 0% { transform: translateX(-60%); } 100% { transform: translateX(60%); } }
.jackpot-main { position: relative; min-width: 0; }
.jackpot-label { font-size: 0.74rem; letter-spacing: 0.06em; color: #ffe3ad; text-transform: uppercase; font-weight: 700; }
.jackpot-amount { font-size: 1.72rem; font-weight: 800; color: #fff5df; line-height: 1.2; }
.jackpot-side { position: relative; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.jackpot-pulse { font-size: 0.74rem; color: #cfe0f5; display: flex; align-items: center; gap: 6px; }

/* ---------- category chips ---------- */
.chip-rail {
  display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; padding: 4px 14px 12px;
  margin-inline: -14px; scrollbar-width: none;
}
.chip-rail::-webkit-scrollbar { display: none; }
.chip-rail > * { scroll-snap-align: start; }
.chip-btn {
  border: 1px solid var(--ah-border-strong); background: rgba(255, 255, 255, 0.04); color: #d7e3f5;
  border-radius: 999px; padding: 8px 14px; font-size: 0.86rem; font-weight: 700; white-space: nowrap;
  min-height: 44px; cursor: pointer;
}
.chip-btn:hover { background: rgba(255, 255, 255, 0.09); color: #fff; }
.chip-btn[aria-pressed="true"], .chip-btn.active {
  background: linear-gradient(180deg, rgba(255, 198, 91, 0.24), rgba(255, 198, 91, 0.1));
  border-color: rgba(255, 198, 91, 0.55); color: #ffe7b6;
}
.chip-btn:disabled { color: #7e8ca1; background: rgba(255, 255, 255, 0.02); border-style: dashed; cursor: not-allowed; }

/* ---------- game cards ---------- */
.game-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(158px, 46%);
  gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 2px 14px 14px; margin-inline: -14px; scrollbar-width: thin;
}
.game-rail::-webkit-scrollbar { height: 6px; }
.game-rail::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.14); border-radius: 99px; }
.game-rail > .game-card { scroll-snap-align: start; }
.game-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.game-card {
  background: linear-gradient(180deg, var(--ah-surface), #0b1322);
  border: 1px solid var(--ah-border); border-radius: var(--ah-radius); overflow: hidden;
  box-shadow: var(--ah-shadow); display: flex; flex-direction: column; position: relative;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.game-card:hover, .game-card:focus-within { transform: translateY(-3px); border-color: var(--ah-border-strong); }
.game-media { position: relative; aspect-ratio: 301 / 180; background: #070c17; overflow: hidden; }
.game-media img { width: 100%; height: 100%; object-fit: cover; }
.game-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(4, 6, 15, 0) 40%, rgba(4, 6, 15, 0.82) 100%);
}
.game-flag { position: absolute; top: 8px; left: 8px; z-index: 2; }
.fav-btn {
  position: absolute; top: 6px; right: 6px; z-index: 3; width: 34px; height: 34px; border-radius: 10px;
  border: 1px solid var(--ah-border-strong); background: rgba(4, 8, 18, 0.66); color: #cdd9ea;
  display: grid; place-items: center; cursor: pointer; padding: 0;
}
.fav-btn[aria-pressed="true"] { color: var(--ah-gold); border-color: rgba(255, 198, 91, 0.6); background: rgba(255, 198, 91, 0.16); }
.game-body { padding: 10px 11px 12px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.game-title { font-size: 0.88rem; font-weight: 700; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.game-blurb { font-size: 0.74rem; color: var(--ah-muted); margin: 0; }
.game-actions { display: flex; gap: 6px; margin-top: auto; }
.game-actions .btn { flex: 1; }
.soon-ribbon { font-size: 0.68rem; color: #ffdf9e; }

/* featured wide card */
.feature-card {
  display: grid; grid-template-columns: 1fr; gap: 0; border-radius: 18px; overflow: hidden;
  background: linear-gradient(120deg, #101a30, #0a1120); border: 1px solid var(--ah-border);
  box-shadow: var(--ah-shadow);
}
.feature-card .game-media { aspect-ratio: 16 / 9; border-radius: 0; }
.feature-body { padding: 14px; display: flex; flex-direction: column; gap: 10px; }

/* ---------- generic panels ---------- */
.panel {
  background: linear-gradient(180deg, var(--ah-surface), #0b1220); border: 1px solid var(--ah-border);
  border-radius: var(--ah-radius); padding: 14px; box-shadow: var(--ah-shadow);
}
.panel-2 { background: var(--ah-surface-2); }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); gap: 10px; }
.stat {
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--ah-border); border-radius: 14px; padding: 11px 12px;
}
.stat b { display: block; font-size: 1.16rem; color: #fff; }
.stat span { font-size: 0.74rem; color: var(--ah-muted); }
.list-tight { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.kv { display: flex; justify-content: space-between; gap: 12px; font-size: 0.86rem; padding: 7px 0; border-bottom: 1px dashed rgba(255, 255, 255, 0.08); }
.kv:last-child { border-bottom: 0; }
.kv span { color: var(--ah-muted); }
.empty-state {
  text-align: center; padding: 22px 14px; border: 1px dashed var(--ah-border-strong);
  border-radius: var(--ah-radius); background: rgba(255, 255, 255, 0.02); color: var(--ah-muted);
}
.empty-state i { font-size: 1.5rem; color: #55637a; display: block; margin-bottom: 8px; }

.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.step-card {
  text-align: left; background: linear-gradient(180deg, var(--ah-surface), #0a111f); border: 1px solid var(--ah-border);
  border-radius: 14px; padding: 12px; display: flex; gap: 10px; align-items: flex-start; color: var(--ah-text);
  cursor: pointer; font-family: inherit; width: 100%;
}
.step-card:hover { border-color: rgba(255, 198, 91, 0.42); }
.step-num {
  flex: 0 0 30px; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: rgba(255, 198, 91, 0.16); color: var(--ah-gold); font-weight: 800; border: 1px solid rgba(255, 198, 91, 0.3);
  font-size: 0.9rem;
}
.step-card h3 { font-size: 0.92rem; margin-bottom: 2px; }
.step-card p { font-size: 0.76rem; color: var(--ah-muted); margin: 0; }

.how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.how-card { display: grid; grid-template-columns: 84px 1fr; gap: 12px; align-items: start; }
.how-thumb { border-radius: 12px; overflow: hidden; border: 1px solid var(--ah-border); aspect-ratio: 301 / 180; }
.how-thumb img { width: 100%; height: 100%; object-fit: cover; }
.how-card ol { margin: 0 0 10px; padding-left: 18px; font-size: 0.82rem; color: #cdd9ea; }
.how-card li { margin-bottom: 3px; }

.promo-card { border-radius: var(--ah-radius); overflow: hidden; border: 1px solid var(--ah-border); background: var(--ah-surface); box-shadow: var(--ah-shadow); display: flex; flex-direction: column; }
.promo-media { position: relative; aspect-ratio: 1920 / 380; background: linear-gradient(120deg, #16204a, #2a1436); }
.promo-media img { position: absolute; inset: auto 0 0 0; width: 100%; height: auto; aspect-ratio: 1920 / 210; object-fit: cover; }
.promo-media .promo-title { position: absolute; top: 10px; left: 12px; right: 12px; z-index: 2; }
.promo-body { padding: 12px 13px 14px; display: flex; flex-direction: column; gap: 10px; flex: 1; }

.accordion { --bs-accordion-bg: transparent; --bs-accordion-border-color: var(--ah-border); --bs-accordion-btn-focus-box-shadow: 0 0 0 0.2rem rgba(57,210,255,.18); }
.accordion-item { background: rgba(255, 255, 255, 0.02); border-radius: 12px !important; overflow: hidden; }
.accordion-button {
  background: rgba(255, 255, 255, 0.03); color: var(--ah-text); font-weight: 700; font-size: 0.92rem;
  font-family: inherit; box-shadow: none !important; padding: 13px 14px;
}
.accordion-button:not(.collapsed) { background: rgba(57, 210, 255, 0.1); color: #eaf6ff; }
.accordion-button::after { filter: invert(1) hue-rotate(180deg); }
.accordion-body { background: rgba(4, 8, 18, 0.5); color: #cdd9ea; font-size: 0.88rem; padding: 12px 14px 16px; }

/* ---------- trial machine ---------- */
.trial-shell { display: grid; gap: 12px; }
.reel-frame {
  border-radius: 18px; padding: 12px; background: radial-gradient(600px 200px at 50% 0%, rgba(57, 210, 255, 0.14), rgba(9, 15, 28, 0.95));
  border: 1px solid var(--ah-border-strong);
}
.reel-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.reel-cell {
  aspect-ratio: 1 / 1; border-radius: 14px; display: grid; place-items: center; font-size: 1.9rem;
  background: linear-gradient(180deg, #16223c, #0a1222); border: 1px solid var(--ah-border);
  color: var(--ah-gold); box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.6);
}
.reel-cell.spinning { animation: ah-spin 0.45s linear infinite; }
@keyframes ah-spin { 0% { transform: translateY(-3px); opacity: 0.7; } 50% { transform: translateY(3px); opacity: 1; } 100% { transform: translateY(-3px); opacity: 0.7; } }
.trial-log { max-height: 190px; overflow-y: auto; font-size: 0.8rem; }
.trial-controls { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
.bet-stepper { display: inline-flex; align-items: center; gap: 6px; }
.progress { background: rgba(255, 255, 255, 0.08); border-radius: 999px; height: 8px; }
.progress-bar { background: linear-gradient(90deg, var(--ah-gold), var(--ah-blue)); }

/* ---------- tables / records ---------- */
.table-ah { width: 100%; border-collapse: collapse; font-size: 0.84rem; }
.table-ah th { text-align: left; color: var(--ah-muted); font-weight: 600; font-size: 0.76rem; padding: 8px 10px; border-bottom: 1px solid var(--ah-border); white-space: nowrap; }
.table-ah td { padding: 10px; border-bottom: 1px dashed rgba(255, 255, 255, 0.07); vertical-align: top; }
.table-ah tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid var(--ah-border); background: rgba(255, 255, 255, 0.02); }

/* ---------- chat ---------- */
.chat-log { display: flex; flex-direction: column; gap: 8px; max-height: 320px; overflow-y: auto; padding: 4px; }
.bubble { max-width: 86%; padding: 9px 12px; border-radius: 14px; font-size: 0.86rem; }
.bubble.bot { background: var(--ah-surface-2); border: 1px solid var(--ah-border); border-bottom-left-radius: 4px; }
.bubble.me { background: rgba(57, 210, 255, 0.14); border: 1px solid rgba(57, 210, 255, 0.3); align-self: flex-end; border-bottom-right-radius: 4px; }

/* ---------- footer ---------- */
.ah-footer { margin-top: 34px; border-top: 1px solid var(--ah-border); background: rgba(4, 6, 15, 0.85); padding: 22px 0 28px; }
.ah-footer h3 { font-size: 0.88rem; color: #fff; margin-bottom: 8px; }
.ah-footer a { display: inline-block; color: var(--ah-muted); font-size: 0.86rem; padding: 3px 0; }
.ah-footer a:hover { color: var(--ah-gold); }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.ah-footer .age-badge {
  display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(255, 122, 114, 0.42);
  color: #ffc4c0; border-radius: 999px; padding: 4px 12px; font-weight: 800; font-size: 0.82rem;
}
.partner-note { border: 1px dashed var(--ah-border-strong); border-radius: 14px; padding: 12px; background: rgba(255, 255, 255, 0.02); }

/* ---------- bottom nav ---------- */
.ah-bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040;
  background: rgba(6, 9, 20, 0.96); backdrop-filter: blur(12px);
  border-top: 1px solid var(--ah-border);
  padding-bottom: env(safe-area-inset-bottom);
}
.ah-bottomnav ul { display: grid; grid-template-columns: repeat(5, 1fr); list-style: none; margin: 0; padding: 0; }
.ah-bottomnav a {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px 9px;
  color: #93a3ba; font-size: 0.68rem; font-weight: 700; min-height: var(--ah-bottom-h); position: relative;
}
.ah-bottomnav a i { font-size: 1.12rem; }
.ah-bottomnav a[aria-current="page"] { color: var(--ah-gold); }
.ah-bottomnav a[aria-current="page"]::before {
  content: ""; position: absolute; top: 0; left: 22%; right: 22%; height: 3px; border-radius: 0 0 4px 4px;
  background: var(--ah-gold);
}
.nav-flag { position: absolute; top: 5px; right: 26%; min-width: 8px; height: 8px; border-radius: 99px; background: var(--ah-warn); }

/* ---------- modals / toasts (dark) ---------- */
.modal-content, .offcanvas {
  background: #0a1120; color: var(--ah-text); border: 1px solid var(--ah-border-strong); border-radius: 18px;
}
.modal-header, .modal-footer { border-color: var(--ah-border); }
.modal-title { font-size: 1.02rem; font-weight: 700; }
.btn-close { filter: invert(1) grayscale(100%) brightness(200%); }
.offcanvas-header { border-bottom: 1px solid var(--ah-border); }
.toast-region { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--ah-bottom-h) + 18px); z-index: 1090; width: min(92vw, 420px); display: flex; flex-direction: column; gap: 8px; }
.ah-toast {
  background: #101c31; border: 1px solid var(--ah-border-strong); border-left: 4px solid var(--ah-blue);
  border-radius: 12px; padding: 10px 13px; font-size: 0.86rem; box-shadow: var(--ah-shadow); color: #e7f1ff;
}
.ah-toast.ok { border-left-color: var(--ah-ok); }
.ah-toast.warn { border-left-color: var(--ah-warn); }
.ah-toast.gold { border-left-color: var(--ah-gold); }
.alert { border-radius: 14px; font-size: 0.86rem; }
.alert-ah { background: rgba(57, 210, 255, 0.1); border: 1px solid rgba(57, 210, 255, 0.28); color: #d7effc; }
.alert-warn-ah { background: rgba(255, 198, 91, 0.1); border: 1px solid rgba(255, 198, 91, 0.28); color: #ffe7bd; }
.skeleton { background: linear-gradient(90deg, #0e1626, #182640, #0e1626); background-size: 300% 100%; animation: ah-sk 1.2s ease infinite; border-radius: 14px; min-height: 168px; }
@keyframes ah-sk { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

.anchor-target { scroll-margin-top: calc(var(--ah-header-h) + 26px); }
[id] { scroll-margin-top: calc(var(--ah-header-h) + 26px); }
.view[hidden] { display: none !important; }
.legal-copy h2 { margin-top: 18px; font-size: 1.06rem; color: #fff; }
.legal-copy h3 { margin-top: 14px; font-size: 0.96rem; }
.legal-copy p, .legal-copy li { color: #c9d5e8; font-size: 0.9rem; }
.legal-copy ul { padding-left: 20px; }

/* ---------- responsive ---------- */
@media (min-width: 576px) {
  .game-rail { grid-auto-columns: minmax(178px, 38%); }
}
@media (min-width: 768px) {
  :root { --ah-radius: 18px; --ah-section: 30px; }
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.38rem; }
  .hero-slide { padding: 20px 22px 34px; min-height: 240px; }
  .hero-slide h3 { font-size: 1.34rem; }
  .jackpot-amount { font-size: 2.1rem; }
  .feature-card { grid-template-columns: 300px 1fr; }
  .feature-card .game-media { aspect-ratio: 301 / 180; height: 100%; }
  .toast-region { bottom: 24px; }
}
@media (min-width: 992px) {
  :root { --ah-header-h: 68px; }
  body { padding-bottom: 34px; }
  .ah-bottomnav { display: none; }
  .ah-nav-desktop { display: flex; }
  .game-rail {
    grid-auto-flow: row; grid-auto-columns: unset; grid-template-columns: repeat(auto-fit, minmax(186px, 1fr));
    overflow: visible; padding-inline: 0; margin-inline: 0;
  }
  .game-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
  .container-ah { padding-inline: 22px; }
  .chip-rail { margin-inline: 0; padding-inline: 0; overflow: visible; flex-wrap: wrap; }
  .trial-shell { grid-template-columns: 1.35fr 1fr; align-items: start; }
  .trial-shell .trial-side { grid-column: auto; }
  .promo-card { grid-column: span 1; }
  .promo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
}
@media (min-width: 1400px) {
  .container-ah { max-width: 1280px; }
}

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

@media print { .ah-bottomnav, .ah-topbar { position: static; } }

/* hero slide sizing: keep the 2:1 panel on phones, cap the desktop height */
.ah-hero .swiper-slide { display: flex; }
.ah-hero .hero-slide { flex: 1 1 auto; }
@media (min-width: 992px) {
  .hero-slide { max-height: 400px; justify-content: space-evenly; }
}
