/* পিক্সেল হারবার — dark lobby theme (hand written, no build step) */
:root {
  --bg: #050816;
  --bg-2: #070b1f;
  --surface: #10172e;
  --surface-2: #141c38;
  --surface-3: #1a2344;
  --line: rgba(148, 163, 184, 0.18);
  --line-strong: rgba(148, 163, 184, 0.32);
  --gold: #ffc542;
  --gold-dim: rgba(255, 197, 66, 0.16);
  --blue: #2ea8ff;
  --blue-dim: rgba(46, 168, 255, 0.16);
  --green: #22c55e;
  --amber: #f59e0b;
  --red: #ef4444;
  --disabled: #64748b;
  --text: #f8fafc;
  --text-2: #b7c2d8;
  --text-3: #7d8aa6;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 20px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.38);
  --shadow-soft: 0 10px 24px rgba(0, 0, 0, 0.3);
  --top-h: 68px;
  --bottom-h: 66px;
  --gutter: 12px;
  --font-body: "Hind Siliguri", "Noto Sans Bengali", -apple-system, "Segoe UI", sans-serif;
  --font-display: "Noto Sans Bengali", "Hind Siliguri", -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1100px 520px at 12% -8%, rgba(46, 168, 255, 0.14), transparent 62%),
    radial-gradient(900px 480px at 88% 4%, rgba(255, 197, 66, 0.1), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 42%, var(--bg) 100%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.62;
  padding-top: var(--top-h);
  padding-bottom: calc(var(--bottom-h) + env(safe-area-inset-bottom, 0px) + 14px);
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.32; margin: 0; letter-spacing: 0; }
h1 { font-size: 24px; font-weight: 800; }
h2 { font-size: 19px; font-weight: 700; }
h3 { font-size: 16px; font-weight: 700; }
h4 { font-size: 15px; font-weight: 700; }
p { margin: 0 0 10px; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { margin: 0 0 10px; padding-left: 20px; }
li { margin-bottom: 5px; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
strong { color: var(--text); font-weight: 700; }
small { font-size: 12px; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 90;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 999px;
  transition: top .18s ease;
}
.skip-link:focus { top: 10px; }

.wrap {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap-narrow { max-width: 940px; }

.muted { color: var(--text-2); }
.dim { color: var(--text-3); }
.gold { color: var(--gold); }
.blue { color: var(--blue); }
.good { color: var(--green); }
.bad { color: var(--red); }
.tiny { font-size: 12px; line-height: 1.5; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

/* ---------- top bar ---------- */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: var(--top-h);
  background: rgba(7, 11, 31, 0.9);
  border-bottom: 1px solid var(--line);
  transition: height .2s ease, background .2s ease;
}
.topbar.is-scrolled { height: 56px; background: rgba(5, 8, 22, 0.97); }
.topbar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand { display: flex; align-items: center; gap: 9px; min-width: 0; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 38px; height: 38px;
  flex: 0 0 auto;
  border-radius: 12px;
  background: linear-gradient(150deg, #16204a, #0a1024);
  border: 1px solid rgba(255, 197, 66, 0.34);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-soft);
}
.brand-mark svg { width: 24px; height: 24px; }
.brand-text { min-width: 0; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: .1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-sub {
  font-size: 10px;
  color: var(--text-3);
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.topbar.is-scrolled .brand-sub { display: none; }

.top-search { display: none; flex: 1 1 auto; max-width: 340px; position: relative; }
.top-search input {
  width: 100%;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(16, 23, 46, 0.86);
  color: var(--text);
  padding: 0 40px 0 38px;
}
.top-search i { position: absolute; left: 14px; top: 12px; color: var(--text-3); font-size: 14px; }
.top-search button {
  position: absolute; right: 4px; top: 4px;
  width: 32px; height: 32px;
  border-radius: 999px; border: 0;
  background: var(--gold-dim); color: var(--gold);
}
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }

.chip-btn {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(20, 28, 56, 0.8);
  color: var(--text-2);
  font-size: 13px;
  cursor: pointer;
}
.chip-btn:hover { color: var(--text); border-color: var(--line-strong); text-decoration: none; }
.chip-btn.bal { color: var(--gold); border-color: rgba(255, 197, 66, 0.34); background: var(--gold-dim); font-weight: 700; }
.chip-btn.user { max-width: 46%; }
.chip-btn.user .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.lang-wrap { position: relative; }
.lang-menu {
  position: absolute;
  right: 0; top: calc(100% + 8px);
  min-width: 210px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 8px;
  z-index: 70;
}
.lang-menu[hidden] { display: none; }
.lang-option {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%;
  padding: 10px 10px;
  border: 0; border-radius: 10px;
  background: transparent; color: var(--text-2);
  cursor: pointer; text-align: left;
}
.lang-option:hover { background: var(--surface-3); color: var(--text); }
.lang-option[aria-checked="true"] { color: var(--gold); background: var(--gold-dim); }
.lang-note { padding: 8px 10px 4px; border-top: 1px solid var(--line); margin-top: 6px; }

.menubar { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: var(--surface-2);
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  text-align: center;
}
.btn:hover { text-decoration: none; }
.btn-gold { background: linear-gradient(180deg, #ffd776, var(--gold)); color: #2b1d00; border-color: rgba(255, 197, 66, 0.5); }
.btn-gold:hover { filter: brightness(1.06); }
.btn-blue { background: var(--blue-dim); color: #cfeaff; border-color: rgba(46, 168, 255, 0.42); }
.btn-blue:hover { background: rgba(46, 168, 255, 0.26); }
.btn-ghost { background: rgba(20, 28, 56, 0.72); border-color: var(--line); color: var(--text-2); }
.btn-ghost:hover { color: var(--text); border-color: var(--line-strong); }
.btn-danger { background: rgba(239, 68, 68, 0.14); color: #ffc9c9; border-color: rgba(239, 68, 68, 0.42); }
.btn-outline-green { background: rgba(34, 197, 94, 0.12); color: #b6f3c9; border-color: rgba(34, 197, 94, 0.4); }
.btn-sm { min-height: 38px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { color: var(--disabled); cursor: not-allowed; opacity: .72; }
.icon-btn {
  width: 44px; height: 44px;
  display: inline-grid; place-items: center;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: rgba(16, 23, 46, 0.8);
  color: var(--text-2);
  cursor: pointer;
}
.icon-btn:hover { color: var(--text); border-color: var(--line-strong); text-decoration: none; }
.icon-btn.is-fav { color: var(--gold); border-color: rgba(255, 197, 66, 0.44); background: var(--gold-dim); }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- chips / tags ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .01em;
  border: 1px solid var(--line);
  background: rgba(20, 28, 56, 0.86);
  color: var(--text-2);
  white-space: nowrap;
}
.chip-gold { color: #4a3200; background: linear-gradient(180deg, #ffd776, var(--gold)); border-color: rgba(255, 197, 66, .6); }
.chip-blue { color: #d6ecff; background: var(--blue-dim); border-color: rgba(46, 168, 255, .4); }
.chip-green { color: #bff5cf; background: rgba(34, 197, 94, .16); border-color: rgba(34, 197, 94, .4); }
.chip-red { color: #ffcdcd; background: rgba(239, 68, 68, .16); border-color: rgba(239, 68, 68, .4); }
.chip-amber { color: #ffe1ab; background: rgba(245, 158, 11, .16); border-color: rgba(245, 158, 11, .4); }
.chip-grey { color: var(--text-3); }

.pill-row { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- cards / sections ---------- */
.section { padding-block: 18px; scroll-margin-top: calc(var(--top-h) + 12px); }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
  margin-bottom: 12px;
}
.section-head h2 { display: flex; align-items: center; gap: 8px; }
.section-head h2 i { color: var(--gold); font-size: 15px; }
.section-kicker { color: var(--text-3); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.section-note { color: var(--text-2); font-size: 13px; max-width: 62ch; margin-bottom: 12px; }
.card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-pad { padding: 14px; }

/* ---------- hero carousel ---------- */
.hero { padding-top: 12px; }
.hero-shell { position: relative; }
.swiper { border-radius: var(--radius-lg); overflow: hidden; }
.swiper-slide, .slide { height: auto; }
.slide-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 197, 66, 0.22);
  background:
    radial-gradient(600px 220px at 90% -30%, rgba(255, 197, 66, 0.14), transparent 60%),
    linear-gradient(180deg, #0c1430, #131b39);
  box-shadow: var(--shadow);
}
.slide-art {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0a1024;
  background: linear-gradient(120deg, #0a1024, #101a3c);
}
.slide-art img { width: 100%; height: auto; aspect-ratio: 1920 / 210; object-fit: cover; display: block; }
.slide-copy { display: flex; flex-direction: column; gap: 8px; padding: 2px 4px 4px; }
.slide-copy h2 { font-size: 19px; }
.slide-copy p { color: var(--text-2); font-size: 13.5px; margin: 0; }
.slide-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.carousel-fallback { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; }
.carousel-fallback > * { scroll-snap-align: center; flex: 0 0 100%; }
.hero-nav-btn {
  position: absolute;
  top: 32%;
  width: 44px; height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(5, 8, 22, 0.72);
  color: var(--text);
  z-index: 5;
  display: none;
  place-items: center;
  cursor: pointer;
}
.hero-nav-btn.prev { left: 8px; }
.hero-nav-btn.next { right: 8px; }
.hero-controls { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 10px; }

/* ---------- jackpot strip ---------- */
.jackpot {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
  padding: 14px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 197, 66, 0.26);
  background:
    radial-gradient(700px 200px at 8% 0%, rgba(255, 197, 66, 0.16), transparent 60%),
    linear-gradient(180deg, #101731, #0b1229);
  box-shadow: var(--shadow);
}
.jackpot-label { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 13px; }
.jackpot-amount {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: .5px;
  line-height: 1.2;
  text-shadow: 0 6px 24px rgba(255, 197, 66, 0.22);
}
.jackpot-side { display: grid; gap: 8px; }
.mini-stat {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 12px;
  border-radius: 12px;
  background: rgba(9, 13, 30, 0.6);
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-2);
}
.mini-stat b { color: var(--text); font-weight: 700; }

/* ---------- category rail ---------- */
.rail-shell { position: relative; margin-top: 14px; }
.rail {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 3px 2px 10px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}
.rail::-webkit-scrollbar { height: 6px; }
.rail::-webkit-scrollbar-thumb { background: rgba(148,163,184,.28); border-radius: 99px; }
.rail-item {
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(16, 23, 46, 0.82);
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
}
.rail-item i { font-size: 13px; color: var(--blue); }
.rail-item:hover { color: var(--text); border-color: var(--line-strong); text-decoration: none; }
.rail-item[aria-current="true"] {
  background: var(--gold-dim);
  border-color: rgba(255, 197, 66, 0.5);
  color: var(--gold);
}
.rail-item[aria-current="true"] i { color: var(--gold); }
.rail-item.is-locked { color: var(--disabled); border-style: dashed; background: rgba(10, 14, 30, 0.6); }
.rail-item.is-locked i { color: var(--disabled); }

/* ---------- game grid & cards ---------- */
.game-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
}
.game-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface), #0f1631);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  scroll-margin-top: calc(var(--top-h) + 78px);
}
.game-card.is-flash { border-color: rgba(255, 197, 66, 0.7); box-shadow: 0 0 0 3px rgba(255, 197, 66, 0.18), var(--shadow); }
.card-media { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: #0a1024; }
.card-media:hover { text-decoration: none; }
.media-blur {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: blur(16px) saturate(120%);
  transform: scale(1.22);
  opacity: .5;
}
.media-main {
  position: relative;
  width: 100%; height: 100%;
  object-fit: contain;
  transition: transform .28s ease;
}
.card-media:hover .media-main { transform: scale(1.05); }
.card-badges { position: absolute; top: 8px; left: 8px; display: flex; flex-direction: column; gap: 5px; align-items: flex-start; z-index: 2; }
.card-play {
  position: absolute; inset: auto 0 0 0;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 16px 8px 8px;
  font-size: 12.5px; font-weight: 700;
  color: var(--text);
  background: linear-gradient(180deg, transparent, rgba(5, 8, 22, 0.86));
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease;
}
.card-media:hover .card-play, .card-media:focus-visible .card-play { opacity: 1; transform: none; }
.card-body { padding: 10px 11px 11px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-title { font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-sub { color: var(--text-3); font-size: 12px; margin: 0; min-height: 34px; }
.card-actions { display: flex; align-items: center; gap: 6px; margin-top: auto; }
.card-actions .btn { flex: 1; }
.card-actions .icon-btn { width: 40px; height: 40px; flex: 0 0 auto; }
@media (hover: none), (max-width: 599px) { .card-actions .icon-btn { width: 44px; height: 44px; } }

/* featured big cards */
.feature-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
.feature-card {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 197, 66, 0.24);
  background: linear-gradient(140deg, #141c38, #0c1329 60%);
  background: linear-gradient(140deg, #141c38, #0b1027);
  background-color: #0d142c;
  box-shadow: var(--shadow);
}
.feature-cover { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 5; background: #0a1024; border: 1px solid var(--line); }
.feature-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.feature-body h3 { font-size: 16px; }
.feature-body p { color: var(--text-2); font-size: 13px; margin: 0; }
.feature-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.feature-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }

/* ---------- how to play / steps ---------- */
.stack-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
.how-card { padding: 14px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface), #0e1530); }
.how-card h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.how-card h3 i { color: var(--blue); }
.steps { list-style: none; counter-reset: st; padding: 0; margin: 0; display: grid; gap: 8px; }
.steps li {
  counter-increment: st;
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 9px;
  align-items: start;
  color: var(--text-2);
  font-size: 13px;
  margin: 0;
}
.steps li::before {
  content: counter(st);
  display: grid; place-items: center;
  width: 24px; height: 24px;
  border-radius: 8px;
  background: var(--gold-dim);
  color: var(--gold);
  font-weight: 800;
  font-size: 12px;
  font-family: var(--font-display);
}
.onboard { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.onboard-step {
  position: relative;
  padding: 13px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #111a36, #0d142c);
  background-color: #0d142c;
}
.onboard-step .num {
  position: absolute; top: 10px; right: 12px;
  font-size: 11px; color: var(--text-3);
  font-family: var(--font-display);
}
.onboard-step i.lead { font-size: 18px; color: var(--gold); }
.onboard-step h3 { font-size: 14.5px; margin: 6px 0 4px; }
.onboard-step p { font-size: 12.5px; color: var(--text-2); margin: 0 0 8px; }

/* ---------- offers ---------- */
.offer-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
.offer-card { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: linear-gradient(150deg, #131b39, #0d142c 70%); background-color: #0d142c; box-shadow: var(--shadow-soft); }
.offer-card h3 { display: flex; align-items: center; gap: 8px; }
.offer-card h3 i { color: var(--gold); }
.offer-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.offer-value { font-family: var(--font-display); font-weight: 800; color: var(--gold); font-size: 20px; }
.offer-art { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.offer-art img { width: 100%; aspect-ratio: 1920/210; object-fit: cover; }
.offer-foot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: auto; }
.offer-status { font-size: 12px; color: var(--text-3); }
.rules { border: 1px dashed var(--line-strong); border-radius: 12px; padding: 10px 12px; background: rgba(9, 13, 30, 0.5); }
.rules ul { margin: 0; padding-left: 18px; }
.rules li { font-size: 12.5px; color: var(--text-2); }
details.faq-item { border: 1px solid var(--line); border-radius: 14px; background: rgba(16, 23, 46, 0.7); margin-bottom: 8px; }
details.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 13px 14px;
  display: flex; align-items: center; gap: 10px;
  font-weight: 700;
  font-size: 14px;
  min-height: 44px;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: "\f078";
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands";
  font-weight: 900;
  margin-left: auto;
  color: var(--text-3);
  font-size: 12px;
  transition: transform .2s ease;
}
details.faq-item[open] summary::after { transform: rotate(180deg); }
details.faq-item .faq-body { padding: 0 14px 14px; color: var(--text-2); font-size: 13.5px; }

/* ---------- tables & lists ---------- */
.table-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid var(--line); background: rgba(9, 13, 30, 0.44); }
table.data { width: 100%; border-collapse: collapse; min-width: 560px; }
table.data caption { text-align: right; padding: 8px 10px; color: var(--text-3); font-size: 12px; }
table.data th, table.data td { padding: 10px 12px; text-align: left; font-size: 13px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { color: var(--text-3); font-weight: 700; background: rgba(16, 23, 46, 0.8); position: sticky; top: 0; }
table.data tr:last-child td { border-bottom: 0; }
table.data td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.list-plain { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.list-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(16, 23, 46, 0.66);
  font-size: 13px;
}
.list-row .grow { flex: 1; min-width: 0; }
.list-row .thumb { width: 44px; height: 44px; border-radius: 10px; overflow: hidden; flex: 0 0 auto; background: #0a1024; }
.list-row .thumb img { width: 100%; height: 100%; object-fit: cover; }

.reviews { display: grid; gap: 12px; grid-template-columns: 1fr; }
.review { padding: 13px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, #111a36, #0c1329); background-color: #0c1329; }
.review-head { display: flex; align-items: center; gap: 9px; margin-bottom: 7px; }
.avatar {
  width: 36px; height: 36px; border-radius: 999px;
  display: grid; place-items: center;
  background: linear-gradient(150deg, #26315c, #16204a);
  border: 1px solid var(--line-strong);
  color: var(--gold);
  font-weight: 800; font-size: 13px;
  flex: 0 0 auto;
}
.stars { color: var(--gold); font-size: 11px; letter-spacing: 2px; }
.review p { font-size: 13px; color: var(--text-2); margin: 0 0 6px; }

/* ---------- forms ---------- */
.field { display: grid; gap: 6px; margin-bottom: 12px; }
.field > label { font-size: 13px; color: var(--text-2); font-weight: 700; }
.input, select.input, textarea.input {
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(9, 13, 30, 0.7);
  color: var(--text);
  padding: 10px 12px;
  font: inherit;
}
textarea.input { min-height: 96px; resize: vertical; }
.input:focus { border-color: rgba(46, 168, 255, 0.6); outline: none; box-shadow: 0 0 0 3px rgba(46, 168, 255, 0.16); }
.hint { color: var(--text-3); font-size: 12px; }
.inline-warn {
  display: flex; gap: 9px; align-items: flex-start;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.1);
  color: #ffe3ae;
  font-size: 12.5px;
}
.inline-warn.info { border-color: rgba(46, 168, 255, 0.4); background: rgba(46, 168, 255, 0.1); color: #cfeaff; }
.inline-warn.ok { border-color: rgba(34, 197, 94, 0.38); background: rgba(34, 197, 94, 0.1); color: #c2f5d2; }
.inline-warn i { margin-top: 3px; }
.bullets-check { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.bullets-check li { display: grid; grid-template-columns: 20px 1fr; gap: 8px; font-size: 13px; color: var(--text-2); margin: 0; }
.bullets-check li i { color: var(--green); margin-top: 4px; }

.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(16, 23, 46, 0.6); }
.switch { position: relative; width: 48px; height: 28px; flex: 0 0 auto; }
.switch input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: rgba(100, 116, 139, 0.45); transition: background .18s ease; pointer-events: none; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 999px; background: #e8eefc; transition: transform .18s ease; }
.switch input:checked + span { background: var(--green); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { box-shadow: 0 0 0 3px rgba(46, 168, 255, 0.3); }

/* ---------- trial machine ---------- */
.trial-shell { display: grid; gap: 14px; grid-template-columns: 1fr; }
.trial-stage {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(46, 168, 255, 0.26);
  background: radial-gradient(500px 220px at 50% -20%, rgba(46, 168, 255, 0.18), transparent 65%), linear-gradient(180deg, #101a3c, #0a1024 85%);
  background-color: #0a1024;
  padding: 14px;
}
.reels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.reel {
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, #0b1027, #0f1631);
  background-color: #0c1329;
  min-height: 78px;
  display: grid; place-items: center;
  font-size: 27px;
  color: var(--gold);
  overflow: hidden;
}
.reel.rolling { animation: reelFlicker .42s linear infinite; color: var(--blue); }
@keyframes reelFlicker { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
.trial-readout { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.readout { padding: 9px 11px; border-radius: 12px; border: 1px solid var(--line); background: rgba(9, 13, 30, 0.55); }
.readout .k { color: var(--text-3); font-size: 11.5px; }
.readout .v { font-weight: 800; font-family: var(--font-display); font-size: 15px; }
.stake-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.stake {
  min-height: 44px; padding: 0 13px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(16, 23, 46, 0.8);
  color: var(--text-2);
  font-weight: 700;
  cursor: pointer;
}
.stake[aria-pressed="true"] { border-color: rgba(255, 197, 66, 0.5); background: var(--gold-dim); color: var(--gold); }
.spin-log { max-height: 232px; overflow-y: auto; display: grid; gap: 7px; }

/* ---------- modal ---------- */
.modal-root { position: fixed; inset: 0; z-index: 90; display: none; }
.modal-root.is-open { display: block; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(3, 6, 18, 0.72); }
.modal-panel {
  position: absolute;
  left: 50%; bottom: 0;
  transform: translate(-50%, 0);
  width: min(620px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  border-radius: 20px 20px 0 0;
  border: 1px solid var(--line);
  border-bottom: 0;
  background: linear-gradient(180deg, #141c38, #0c1329);
  background-color: #0e1430;
  box-shadow: 0 -18px 40px rgba(0, 0, 0, 0.5);
}
.modal-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.modal-head h2 { font-size: 18px; flex: 1; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.modal-actions .btn { flex: 1 1 160px; }

/* ---------- toast ---------- */
.toast-host {
  position: fixed;
  left: 50%;
  bottom: calc(var(--bottom-h) + env(safe-area-inset-bottom, 0px) + 12px);
  transform: translateX(-50%);
  z-index: 95;
  display: grid;
  gap: 8px;
  width: min(520px, calc(100% - 24px));
  pointer-events: none;
}
.toast {
  display: flex; align-items: flex-start; gap: 9px;
  padding: 11px 13px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: rgba(16, 23, 46, 0.97);
  color: var(--text);
  font-size: 13px;
  box-shadow: var(--shadow);
  pointer-events: auto;
  animation: toastIn .22s ease;
}
.toast i { margin-top: 3px; color: var(--blue); }
.toast.warn i { color: var(--amber); }
.toast.err i { color: var(--red); }
.toast.ok i { color: var(--green); }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- states ---------- */
.empty {
  display: grid;
  gap: 9px;
  place-items: center;
  text-align: center;
  padding: 26px 16px;
  border-radius: var(--radius);
  border: 1px dashed var(--line-strong);
  background: rgba(9, 13, 30, 0.42);
  color: var(--text-2);
  font-size: 13.5px;
}
.empty i { font-size: 22px; color: var(--text-3); }
.skeleton-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); }
.skeleton { border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(100deg, #10172e 20%, #182246 40%, #10172e 60%); background-size: 220% 100%; animation: shimmer 1.1s linear infinite; aspect-ratio: 4 / 6.4; }
@keyframes shimmer { from { background-position: 120% 0; } to { background-position: -40% 0; } }
.is-hidden { display: none !important; }

/* ---------- footer & bottom nav ---------- */
.site-footer {
  margin-top: 22px;
  padding: 22px 0 8px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(9, 13, 30, 0.5), rgba(5, 8, 22, 0.9));
}
.footer-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
.footer-col h3 { font-size: 14px; margin-bottom: 9px; color: var(--text); }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.footer-links a { color: var(--text-2); font-size: 13px; }
.footer-links a:hover { color: var(--gold); }
.age-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(239, 68, 68, 0.44);
  background: rgba(239, 68, 68, 0.12);
  color: #ffcccc;
  font-weight: 800;
  font-family: var(--font-display);
}
.footer-note { color: var(--text-3); font-size: 12px; max-width: 74ch; }
.footer-legal { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }

.bottomnav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 65;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
  background: rgba(7, 11, 31, 0.97);
  border-top: 1px solid var(--line);
}
.bottomnav a {
  display: grid;
  place-items: center;
  gap: 3px;
  min-height: 52px;
  border-radius: 12px;
  color: var(--text-3);
  font-size: 11px;
  font-weight: 700;
}
.bottomnav a i { font-size: 17px; }
.bottomnav a:hover { color: var(--text-2); text-decoration: none; }
.bottomnav a[aria-current="page"] { color: var(--gold); background: var(--gold-dim); }
.fab-stack { position: fixed; right: 12px; bottom: calc(var(--bottom-h) + env(safe-area-inset-bottom, 0px) + 16px); z-index: 64; display: grid; gap: 8px; }
.fab {
  width: 46px; height: 46px;
  border-radius: 999px;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  background: rgba(16, 23, 46, 0.94);
  color: var(--gold);
  box-shadow: var(--shadow);
  cursor: pointer;
}
.fab:hover { text-decoration: none; color: var(--text); }

/* ---------- view routing ---------- */
.view { display: none; }
.view.is-active { display: block; }
.view-head { padding: 16px 0 6px; }
.view-head .crumbs { color: var(--text-3); font-size: 12px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.view-head .crumbs a { color: var(--text-3); }
.view-head h1 { font-size: 22px; margin: 6px 0 4px; }
.view-head p { color: var(--text-2); font-size: 13.5px; max-width: 70ch; }
.two-col { display: grid; gap: 14px; grid-template-columns: 1fr; }
.side-card { padding: 14px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface), #0d142c); }
.side-card h3 { margin-bottom: 8px; }

.game-hero { display: grid; gap: 14px; grid-template-columns: 1fr; }
.game-hero-cover { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: #0a1024; position: relative; }
.game-hero-cover img { width: 100%; height: 100%; object-fit: contain; aspect-ratio: 4 / 5; }
.kv { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.kv li { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--text-2); border-bottom: 1px dashed var(--line); padding-bottom: 6px; }
.kv li b { color: var(--text); font-weight: 700; text-align: right; }
.balance-hero {
  padding: 16px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 197, 66, 0.28);
  background: radial-gradient(520px 200px at 12% 0%, rgba(255, 197, 66, 0.16), transparent 62%), linear-gradient(180deg, #131b39, #0b1027);
  background-color: #0b1027;
}
.balance-hero .amount { font-family: var(--font-display); font-size: 32px; font-weight: 800; color: var(--gold); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.tab {
  min-height: 44px; padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(16, 23, 46, 0.8);
  color: var(--text-2);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}
.tab[aria-selected="true"] { background: var(--blue-dim); border-color: rgba(46, 168, 255, 0.46); color: #d6ecff; }
.chat-log { display: grid; gap: 8px; max-height: 320px; overflow-y: auto; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: rgba(9, 13, 30, 0.5); }
.chat-bubble { max-width: 84%; padding: 9px 12px; border-radius: 14px; font-size: 13px; }
.chat-bubble.me { margin-left: auto; background: var(--blue-dim); color: #dcecff; border: 1px solid rgba(46, 168, 255, 0.32); }
.chat-bubble.system { background: rgba(16, 23, 46, 0.86); border: 1px solid var(--line); color: var(--text-2); }
.prose h2 { margin: 18px 0 8px; }
.prose h3 { margin: 14px 0 6px; }
.prose p, .prose li { color: var(--text-2); font-size: 13.8px; }
.prose .callout { margin: 12px 0; }
.badge-soft { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: rgba(148, 163, 184, 0.12); border: 1px solid var(--line); color: var(--text-2); font-size: 12px; }
.divider { height: 1px; background: var(--line); border: 0; margin: 16px 0; }
.grid-2 { display: grid; gap: 12px; grid-template-columns: 1fr; }
.notice-strip { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(9, 13, 30, 0.5); font-size: 12.5px; color: var(--text-2); }

/* ---------- breakpoints ---------- */
@media (min-width: 600px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  h1 { font-size: 28px; }
  h2 { font-size: 21px; }
  .offer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .onboard { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .game-grid { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-nav-btn { display: grid; width: 44px; height: 44px; }
  .modal-panel { left: 50%; bottom: auto; top: 50%; transform: translate(-50%, -50%); border-radius: 20px; border-bottom: 1px solid var(--line); }
}

@media (min-width: 900px) {
  .stack-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .two-col { grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); align-items: start; }
  .trial-shell { grid-template-columns: minmax(0, 1.35fr) minmax(280px, 1fr); align-items: start; }
  .game-hero { grid-template-columns: 300px minmax(0, 1fr); }
  .jackpot { grid-template-columns: minmax(0, 1.1fr) minmax(280px, 1fr); align-items: center; }
  .footer-grid { grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); }
  .onboard { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .slide-copy { flex-direction: row; align-items: center; gap: 16px; }
  .slide-copy .slide-text { flex: 1 1 auto; }
  .slide-actions { margin-left: auto; }
}

@media (min-width: 1024px) {
  :root { --top-h: 76px; --gutter: 24px; }
  body { padding-bottom: 34px; }
  .bottomnav, .fab-stack { display: none; }
  .top-search { display: block; }
  .menubar { display: flex; gap: 2px; margin-left: 8px; }
  .menubar a {
    padding: 8px 12px;
    border-radius: 10px;
    color: var(--text-2);
    font-size: 13.5px;
    font-weight: 700;
  }
  .menubar a:hover { color: var(--text); background: rgba(148, 163, 184, 0.1); text-decoration: none; }
  .menubar a[aria-current="page"] { color: var(--gold); background: var(--gold-dim); }
  h1 { font-size: 34px; }
  .view-head h1 { font-size: 30px; }
  h2 { font-size: 23px; }
  .game-grid { grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 16px; }
  .skeleton-grid { grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); }
  .hero-nav-btn { display: grid; }
  .card-pad, .offer-card, .how-card { padding: 18px; }
  .section { padding-block: 24px; }
}

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

/* ---------- runtime helpers ---------- */
[x-cloak] { display: none !important; }
.gate-hidden { display: none !important; }
.field > .label { font-size: 13px; color: var(--text-2); font-weight: 700; }
.swiper-slide[data-active] { opacity: 1; }
.carousel-fallback { scroll-behavior: smooth; }
code { background: rgba(148, 163, 184, 0.14); border: 1px solid var(--line); border-radius: 6px; padding: 1px 5px; font-size: .92em; }
.faq-mini .faq-item summary { font-size: 13px; }
.faq-mini .faq-body { font-size: 13px; }

.hero-dots { display: flex; gap: 2px; align-items: center; }
.hero-dots button {
  width: 28px; height: 44px; padding: 0;
  border: 0; background: transparent;
  display: grid; place-items: center;
  cursor: pointer;
}
.hero-dots button span {
  display: block; width: 9px; height: 9px; border-radius: 999px;
  background: rgba(148, 163, 184, 0.42);
  border: 1px solid var(--line-strong);
  transition: width .18s ease, background .18s ease;
}
.hero-dots button[aria-current="true"] span { background: var(--gold); border-color: var(--gold); width: 22px; }
