/* ============================================================
   প্ল্যানেট ২৭০৪ — মোবাইল-ফার্স্ট গেম লবি
   Design seed: site_001:playplanetbd2704.info
   Custom dark theme (no framework defaults)
   ============================================================ */

:root {
  color-scheme: dark;
  --bg: #070B18;
  --bg-deep: #050810;
  --surface: #101A33;
  --surface-2: #182442;
  --surface-3: #1F2E52;
  --text: #EAF1FF;
  --muted: #A8B7D9;
  --gold: #F5C25B;
  --gold-deep: #C9942F;
  --accent: #38BDF8;
  --accent-deep: #0E7490;
  --success: #4ADE80;
  --danger: #FB7185;
  --warn: #FBBF24;
  --line: rgba(234, 241, 255, .09);
  --line-strong: rgba(234, 241, 255, .18);
  --shadow-sm: 0 6px 18px -12px rgba(0, 0, 0, .85);
  --shadow: 0 22px 44px -26px rgba(0, 0, 0, .92);
  --shadow-lg: 0 34px 70px -30px rgba(0, 0, 0, .95);
  --radius-lg: 22px;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-xs: 9px;
  --gutter: 14px;
  --content: 1280px;
  --topbar-h: 58px;
  --tabbar-h: 64px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --scroll-offset: calc(var(--topbar-h) + var(--safe-top) + 14px);
  --fs-h1: clamp(1.5rem, 1.16rem + 1.7vw, 1.875rem);
  --fs-h2: clamp(1.125rem, 1.02rem + .55vw, 1.375rem);
  --fs-h3: clamp(1rem, .96rem + .3vw, 1.125rem);
  --fs-body: clamp(.875rem, .84rem + .16vw, .9375rem);
  --fs-sm: .8125rem;
  --fs-xs: .75rem;
  --font-bn: "Hind Siliguri", "Noto Sans Bengali", "Baloo Da 2", "Shonar Bangla", sans-serif;
  --font-latin: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-main: var(--font-bn), var(--font-latin), "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--scroll-offset);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(120% 62% at 12% -8%, rgba(56, 189, 248, .16) 0%, rgba(7, 11, 24, 0) 60%),
    radial-gradient(105% 55% at 92% 4%, rgba(245, 194, 91, .13) 0%, rgba(7, 11, 24, 0) 58%),
    linear-gradient(180deg, #0A1124 0%, var(--bg) 42%, var(--bg-deep) 100%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-main);
  font-size: var(--fs-body);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

img { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
li { list-style: none; }
p { margin: 0 0 .55rem; }
p:last-child { margin-bottom: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; }
table { border-collapse: collapse; width: 100%; }
caption { text-align: start; }

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

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 1.15em; height: 1.15em;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  vertical-align: -0.18em;
}
.icon--lg { width: 2rem; height: 2rem; }

.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;
}

.skip-link {
  position: absolute;
  left: 12px; top: calc(-1 * var(--topbar-h) - 20px);
  z-index: 90;
  padding: .55rem .9rem;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text);
  transition: top .18s ease;
}
.skip-link:focus { top: calc(8px + var(--safe-top)); text-decoration: none; }

/* ---------- typography ---------- */
h1, h2, h3, h4 { margin: 0 0 .35rem; font-weight: 700; line-height: 1.28; letter-spacing: -.01em; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3, .h4 { font-size: var(--fs-h3); }
h4 { font-size: 1rem; }

.eyebrow {
  display: flex; align-items: center; gap: .4rem;
  margin: 0 0 .3rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow--gold { color: var(--gold); }

.tag {
  display: inline-flex; align-items: center; gap: .25rem;
  padding: .12rem .48rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(56, 189, 248, .1);
  color: var(--muted);
  font-size: var(--fs-xs);
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}
.tag--gold { background: rgba(245, 194, 91, .16); border-color: rgba(245, 194, 91, .4); color: var(--gold); }
.tag--local { background: rgba(56, 189, 248, .13); border-color: rgba(56, 189, 248, .35); color: #86D6F8; }
.tag--sample { background: rgba(251, 191, 36, .14); border-color: rgba(251, 191, 36, .38); color: var(--warn); }
.tag--success { background: rgba(74, 222, 128, .14); border-color: rgba(74, 222, 128, .38); color: var(--success); }
.tag--danger { background: rgba(251, 113, 133, .14); border-color: rgba(251, 113, 133, .4); color: var(--danger); }

.note {
  margin: .5rem 0 0;
  padding: .5rem .65rem;
  border-radius: var(--radius-sm);
  background: rgba(168, 183, 217, .08);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--fs-sm);
  line-height: 1.5;
}
.note--sm { font-size: var(--fs-xs); padding: .4rem .55rem; }
.note--warn { background: rgba(251, 191, 36, .1); border-color: rgba(251, 191, 36, .3); color: #FBD98A; }
.note--bad { background: rgba(251, 113, 133, .12); border-color: rgba(251, 113, 133, .35); color: #FFC3CD; }
.note .icon { color: var(--warn); }
.noscript-note { margin: 0 var(--gutter) 12px; }

.ext-note {
  margin-left: .3rem;
  padding: .05rem .35rem;
  border-radius: 6px;
  background: rgba(7, 11, 24, .4);
  border: 1px dashed rgba(245, 194, 91, .55);
  color: var(--gold);
  font-size: .6875rem;
  font-weight: 600;
  white-space: nowrap;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .35rem;
  min-height: 40px;
  padding: .5rem .9rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: transform .14s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease, opacity .18s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn--sm { min-height: 32px; padding: .3rem .65rem; font-size: var(--fs-sm); }
.btn--primary {
  background: linear-gradient(180deg, #4FCBFA 0%, #1A9BD8 100%);
  color: #04182A;
  box-shadow: 0 12px 24px -16px rgba(56, 189, 248, .9);
}
.btn--primary:hover { background: linear-gradient(180deg, #6BD6FB 0%, #23A9E6 100%); }
.btn--gold {
  background: linear-gradient(180deg, #FFD888 0%, var(--gold-deep) 100%);
  color: #2A1C02;
  box-shadow: 0 12px 26px -16px rgba(245, 194, 91, .85);
}
.btn--gold:hover { background: linear-gradient(180deg, #FFE3A3 0%, #D8A03A 100%); }
.btn--ghost {
  background: rgba(234, 241, 255, .05);
  border-color: var(--line-strong);
  color: var(--text);
}
.btn--ghost:hover { background: rgba(234, 241, 255, .1); }
.btn--danger { background: rgba(251, 113, 133, .16); border-color: rgba(251, 113, 133, .45); color: #FFC3CD; }
.btn--danger:hover { background: rgba(251, 113, 133, .26); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn[disabled]:hover, .btn[aria-disabled="true"]:hover { background-color: transparent; }
.btn--block { width: 100%; }

.icon-btn {
  display: inline-flex; align-items: center; gap: .3rem;
  min-height: 32px;
  padding: .25rem .55rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(7, 11, 24, .45);
  color: var(--muted);
  cursor: pointer;
  font-size: var(--fs-xs);
  font-weight: 600;
}
.icon-btn:hover { color: var(--text); border-color: var(--line-strong); }
.icon-btn--bare { border-color: transparent; background: transparent; }
.icon-btn.is-active { color: var(--gold); border-color: rgba(245, 194, 91, .5); background: rgba(245, 194, 91, .12); }
.icon-btn__text { letter-spacing: .01em; }

.actions-inline { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; margin: .6rem 0 0; }

/* ---------- topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(9, 14, 29, .88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding-top: var(--safe-top);
}
.topbar__inner {
  max-width: var(--content);
  margin: 0 auto;
  min-height: var(--topbar-h);
  padding: .3rem var(--gutter);
  display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .5rem;
}
.brand { display: flex; align-items: center; gap: .5rem; color: var(--text); flex: 1 1 auto; min-width: 0; }
.brand:hover { text-decoration: none; }
.logo-mark { width: 30px; height: 30px; color: var(--accent); flex: 0 0 auto; }
.brand__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.brand__name { font-size: 1rem; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
.brand__meta { font-family: var(--font-latin); font-size: .625rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand__latin { color: var(--gold); }

.topbar__nav { display: none; }
.topbar__link {
  color: var(--muted);
  font-size: .8125rem;
  font-weight: 600;
  padding: .35rem .55rem;
  border-radius: 999px;
  white-space: nowrap;
}
.topbar__link:hover { color: var(--text); background: rgba(234, 241, 255, .07); text-decoration: none; }
.topbar__link[aria-current="page"] { color: var(--gold); background: rgba(245, 194, 91, .12); }

.topbar__actions { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .35rem; }
.auth-guest, .auth-user { display: flex; align-items: center; gap: .35rem; }

.lang { position: relative; }
.lang__btn {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .25rem .5rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(16, 26, 51, .8);
  font-size: var(--fs-xs);
  font-weight: 600;
  cursor: pointer;
  color: var(--muted);
}
.lang__btn:hover { color: var(--text); }
.lang__note {
  position: absolute;
  right: 0; top: calc(100% + 8px);
  width: min(248px, 76vw);
  margin: 0;
  padding: .5rem .6rem;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  color: var(--muted);
  font-size: var(--fs-xs);
  line-height: 1.45;
  z-index: 5;
}

.wallet-chip {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .25rem .55rem;
  border-radius: 999px;
  background: rgba(245, 194, 91, .13);
  border: 1px solid rgba(245, 194, 91, .4);
  color: var(--gold);
  font-size: .75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.wallet-chip:hover { text-decoration: none; background: rgba(245, 194, 91, .2); }
.user-chip { display: inline-flex; align-items: center; gap: .4rem; color: var(--text); min-width: 0; }
.user-chip__avatar {
  display: grid; place-items: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--surface-3), #0B132A);
  border: 1px solid var(--line-strong);
  color: var(--gold);
  font-size: .75rem;
}
.user-chip__name { max-width: 88px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-xs); font-weight: 600; }

/* ---------- layout ---------- */
.main {
  flex: 1 1 auto;
  width: 100%;
  max-width: calc(var(--content) + (var(--gutter) * 2));
  margin: 0 auto;
  padding: 10px var(--gutter) calc(var(--tabbar-h) + var(--safe-bottom) + 26px);
  scroll-margin-top: var(--scroll-offset);
}

.view { display: block; }
.view[hidden] { display: none !important; }
.view__head { padding: 14px 2px 10px; scroll-margin-top: var(--scroll-offset); }
.view__title { font-size: var(--fs-h1); }
.view__sub { color: var(--muted); font-size: var(--fs-sm); margin: 0; }

.block { margin: 18px 0; scroll-margin-top: var(--scroll-offset); }
.block--slim { margin: 14px 0; }
.block__head {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: .5rem;
  margin-bottom: .6rem;
  scroll-margin-top: var(--scroll-offset);
}
.block__head > div { min-width: 0; }
.block__title { position: relative; padding-left: .7rem; font-size: var(--fs-h2); margin: 0; }
.block__title::before {
  content: "";
  position: absolute; left: 0; top: .18em; bottom: .18em;
  width: 4px; border-radius: 4px;
  background: linear-gradient(180deg, var(--gold), var(--accent));
}
.block__sub { margin: .1rem 0 0 .7rem; color: var(--muted); font-size: var(--fs-sm); }
.block__aside { margin: 0 0 0 auto; }
.block__more { margin: .7rem 0 0; text-align: center; }

.card {
  background: linear-gradient(180deg, rgba(24, 36, 66, .92) 0%, rgba(16, 26, 51, .96) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 14px;
  scroll-margin-top: var(--scroll-offset);
}
.card--slim { margin-top: 14px; }
.card > .h4:first-child { margin-bottom: .5rem; }

.split { display: grid; gap: 12px; }

.entry-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.entry-card {
  display: flex; flex-direction: column; gap: .2rem;
  padding: .75rem .8rem;
  border-radius: var(--radius-sm);
  background: rgba(16, 26, 51, .82);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: .875rem;
  font-weight: 600;
}
.entry-card .icon { color: var(--gold); }
.entry-card:hover { border-color: rgba(245, 194, 91, .45); text-decoration: none; background: rgba(24, 36, 66, .95); }
.entry-card__sub { color: var(--muted); font-size: var(--fs-xs); font-weight: 500; }

/* ---------- lobby intro / H1 ---------- */
.lobby-intro { padding: 12px 2px 10px; }
.lobby-intro__title { font-size: var(--fs-h1); margin: 0 0 .2rem; }
.lobby-intro__title::first-line { color: var(--text); }
.lobby-intro__sub { margin: 0 0 .45rem; color: var(--muted); font-size: var(--fs-sm); }
.lobby-intro__meta { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; }

/* ---------- hero carousel ---------- */
.hero {
  position: relative;
  margin: 4px 0 18px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--surface);
  touch-action: pan-y;
  scroll-margin-top: var(--scroll-offset);
}
.hero__track {
  display: flex;
  gap: 0;
  transition: transform .42s cubic-bezier(.22, .61, .36, 1);
  list-style: none;
}
.hero__track.is-instant { transition: none; }
.hero-slide {
  position: relative;
  flex: 0 0 100%;
  min-width: 100%;
  aspect-ratio: 2 / 1;
  min-height: 214px;
  display: flex; flex-direction: column;
  background:
    radial-gradient(90% 70% at 82% 8%, rgba(56, 189, 248, .22) 0%, rgba(16, 26, 51, 0) 62%),
    linear-gradient(160deg, #16224A 0%, #0C142C 100%);
}
/* 1920x210 ব্যানার স্ট্রিপ — উপরে ছবি, নিচে কপি */
.hero-slide__art {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  line-height: 0;
  border-bottom: 1px solid rgba(245, 194, 91, .18);
}
.hero-img { width: 100%; height: auto; aspect-ratio: 1920 / 210; object-fit: cover; object-position: center; }
.hero-slide::after {
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(7, 11, 24, .3) 0%, rgba(7, 11, 24, .04) 22%, rgba(7, 11, 24, .55) 100%);
  pointer-events: none;
}
.hero-slide__copy {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  display: flex; flex-direction: column; justify-content: center; gap: .25rem;
  padding: .7rem .85rem 2.6rem;
  min-width: 0;
}
.hero-slide__title { font-size: clamp(1.05rem, .95rem + 1vw, 1.4rem); margin: 0; text-wrap: balance; }
.hero-slide__text { margin: 0; color: #C9D6F2; font-size: var(--fs-sm); max-width: 46ch; }
.hero-slide__cta { display: flex; flex-wrap: wrap; gap: .45rem; margin: .45rem 0 0; }
.hero-slide[aria-hidden="true"] { visibility: hidden; }

.hero__nav {
  position: absolute;
  top: 38%;
  z-index: 4;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(7, 11, 24, .62);
  color: var(--text);
  cursor: pointer;
  transition: background-color .18s ease, transform .18s ease;
}
.hero__nav:hover { background: rgba(24, 36, 66, .95); }
.hero__nav--prev { left: 8px; }
.hero__nav--next { right: 8px; }

.hero__foot {
  position: absolute;
  left: 0; right: 0; bottom: 6px;
  z-index: 4;
  display: flex; align-items: center; gap: .5rem;
  padding: 0 10px;
}
.hero__dots { display: flex; align-items: center; gap: 6px; list-style: none; }
.hero__dot {
  width: 22px; height: 4px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(234, 241, 255, .3);
  cursor: pointer;
}
.hero__dot[aria-current="true"] { background: var(--gold); width: 30px; }
.hero__toggle {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .2rem .5rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(7, 11, 24, .6);
  color: var(--muted);
  font-size: .6875rem;
  font-weight: 600;
  cursor: pointer;
}
.hero__toggle:hover { color: var(--text); }

/* ---------- focus / jackpot bar ---------- */
.focus-bar {
  display: grid; gap: 12px;
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(245, 194, 91, .28);
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(245, 194, 91, .18) 0%, rgba(16, 26, 51, 0) 60%),
    linear-gradient(160deg, #16224A 0%, #0C142C 100%);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.focus-bar::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .13) 48%, transparent 62%);
  transform: translateX(-100%);
  animation: shimmer 6.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes shimmer {
  0%, 62% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.focus-bar__label { display: flex; align-items: center; gap: .4rem; margin: 0 0 .15rem; color: var(--muted); font-size: var(--fs-xs); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.focus-bar__amount {
  margin: 0;
  font-size: clamp(1.5rem, 1.1rem + 2.6vw, 2.35rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 8px 26px rgba(245, 194, 91, .28);
}
.focus-bar__hint { margin: .3rem 0 0; color: var(--muted); font-size: var(--fs-xs); }
.focus-bar__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-self: center; }
.focus-bar__stats li {
  display: flex; flex-direction: column; gap: .1rem;
  padding: .5rem .6rem;
  border-radius: var(--radius-sm);
  background: rgba(7, 11, 24, .5);
  border: 1px solid var(--line);
}
.stat__k { color: var(--muted); font-size: .6875rem; }
.stat__v { font-size: 1.05rem; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }

/* ---------- category rail ---------- */
.rail { margin: 16px 0; }
.rail__note { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: 0 0 .45rem; color: var(--muted); font-size: var(--fs-xs); }
.rail__track {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding: 2px 2px 8px;
}
.rail__item { scroll-snap-align: start; flex: 0 0 auto; }
.rail__link {
  display: inline-flex; align-items: center; gap: .35rem;
  min-height: 36px;
  padding: .35rem .8rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(16, 26, 51, .82);
  color: var(--text);
  font-size: .8125rem;
  font-weight: 600;
  white-space: nowrap;
}
.rail__link:hover { text-decoration: none; border-color: rgba(56, 189, 248, .5); }
.rail__link--active, .rail__link[aria-current="true"] {
  background: linear-gradient(180deg, rgba(245, 194, 91, .22), rgba(245, 194, 91, .08));
  border-color: rgba(245, 194, 91, .6);
  color: var(--gold);
}
.rail__link--soon { color: var(--muted); background: rgba(168, 183, 217, .07); border-style: dashed; cursor: not-allowed; }

/* ---------- feature cards ---------- */
.feature-grid { display: grid; gap: 12px; }
.feature {
  display: grid;
  grid-template-columns: 38% minmax(0, 1fr);
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(150deg, rgba(31, 46, 82, .95), rgba(12, 20, 44, .96));
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
}
.feature__media { position: relative; display: block; background: #0B122A; }
.feature__img { width: 100%; height: 100%; min-height: 108px; aspect-ratio: 16 / 9; object-fit: cover; }
.feature__media .tag { position: absolute; left: 8px; top: 8px; }
.feature__body { padding: .7rem .75rem .8rem; display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.feature__title { font-size: var(--fs-h3); margin: 0; font-family: var(--font-latin), var(--font-bn); }
.feature__sub { margin: 0; color: var(--muted); font-size: var(--fs-xs); }
.feature__actions { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-top: auto; }

/* ---------- game grid & cards ---------- */
.game-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}
.game-grid--row {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
  scrollbar-width: thin;
}
.game-grid--row > .game-card { flex: 0 1 46%; min-width: 148px; max-width: 240px; scroll-snap-align: start; }

.game-card {
  display: flex; flex-direction: column;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(24, 36, 66, .9), rgba(13, 21, 42, .96));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.game-card:hover { transform: translateY(-2px); border-color: rgba(56, 189, 248, .45); box-shadow: var(--shadow); }
.game-card[hidden] { display: none; }
.game-card__media { position: relative; display: block; aspect-ratio: 16 / 9; background: #0A122A; }
.game-card__img { width: 100%; height: 100%; object-fit: cover; }
.game-card__badge {
  position: absolute; right: 6px; bottom: 6px;
  padding: .1rem .45rem;
  border-radius: 999px;
  background: rgba(7, 11, 24, .72);
  border: 1px solid rgba(245, 194, 91, .45);
  color: var(--gold);
  font-size: .6875rem;
  font-weight: 700;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .16s ease, transform .16s ease;
}
.game-card:hover .game-card__badge, .game-card:focus-within .game-card__badge { opacity: 1; transform: none; }
.game-card__body { display: flex; flex-direction: column; gap: .3rem; padding: .5rem .55rem .55rem; flex: 1 1 auto; }
.game-card__title {
  margin: 0;
  font-family: var(--font-latin), var(--font-bn);
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.game-card__tags { display: flex; flex-wrap: wrap; gap: .25rem; margin: 0; }
.game-card__actions { display: flex; align-items: center; gap: .3rem; margin-top: auto; padding-top: .15rem; }
.game-card__actions .btn { flex: 1 1 auto; }
.game-card.is-fav { border-color: rgba(245, 194, 91, .5); }
.game-card.is-fav .js-fav { color: var(--gold); border-color: rgba(245, 194, 91, .5); background: rgba(245, 194, 91, .12); }

/* image error state */
.img-error {
  display: grid; gap: .25rem; place-items: center;
  aspect-ratio: 16 / 9;
  padding: .5rem;
  text-align: center;
  background: repeating-linear-gradient(135deg, rgba(251, 113, 133, .09) 0 8px, rgba(16, 26, 51, .9) 8px 16px);
  color: #FFC3CD;
  font-size: .6875rem;
}
.img-error .icon { color: var(--danger); }
.img-error--banner { aspect-ratio: 1920 / 210; }

/* ---------- promotions ---------- */
.promo-grid { display: grid; gap: 12px; }
.promo { display: flex; flex-direction: column; gap: .35rem; position: relative; overflow: hidden; }
.promo::after {
  content: "";
  position: absolute; right: -34px; top: -34px;
  width: 110px; height: 110px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 194, 91, .22), transparent 68%);
  pointer-events: none;
}
.promo__head { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.promo__title { font-size: var(--fs-h3); margin: 0; }
.promo__desc { margin: 0; color: var(--muted); font-size: var(--fs-sm); }
.promo__bullets { display: grid; gap: .25rem; margin: .2rem 0 0; }
.promo__bullets li { position: relative; padding-left: .95rem; color: #C6D3EE; font-size: var(--fs-xs); }
.promo__bullets li::before { content: ""; position: absolute; left: .15rem; top: .55em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.promo__rules { margin-top: .3rem; border-radius: var(--radius-sm); border: 1px dashed var(--line-strong); background: rgba(7, 11, 24, .35); }
.promo__rules summary { padding: .4rem .6rem; cursor: pointer; font-size: var(--fs-sm); font-weight: 600; color: var(--gold); list-style: none; }
.promo__rules summary::-webkit-details-marker { display: none; }
.promo__rules summary::after { content: "+"; float: right; color: var(--muted); }
.promo__rules[open] summary::after { content: "−"; }
.promo__rules ul { padding: 0 .7rem .55rem; }
.promo__rules li { position: relative; padding-left: .9rem; font-size: var(--fs-xs); color: var(--muted); }
.promo__rules li::before { content: ""; position: absolute; left: .2rem; top: .55em; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }
.promo__actions { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: auto; padding-top: .3rem; }
.promo--claimed { border-color: rgba(74, 222, 128, .45); }

/* ---------- how to play / steps ---------- */
.how-grid { display: grid; gap: 12px; }
.how .steps--sm { margin-top: .35rem; }
.steps { display: grid; gap: .35rem; counter-reset: st; }
.steps--sm li {
  position: relative;
  padding-left: 1.55rem;
  font-size: var(--fs-sm);
  color: #C6D3EE;
  counter-increment: st;
}
.steps--sm li::before {
  content: counter(st, bengali);
  position: absolute; left: 0; top: .05rem;
  width: 1.2rem; height: 1.2rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(56, 189, 248, .16);
  border: 1px solid rgba(56, 189, 248, .4);
  color: #9BDDF9;
  font-size: .6875rem;
  font-weight: 700;
}
.steps-grid { display: grid; gap: 10px; counter-reset: step; }
.step-card {
  position: relative;
  padding: .8rem .85rem .85rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(24, 36, 66, .9), rgba(13, 21, 42, .95));
  border: 1px solid var(--line);
}
.step-card__num {
  display: grid; place-items: center;
  width: 26px; height: 26px;
  margin-bottom: .35rem;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--gold), var(--gold-deep));
  color: #2A1C02;
  font-weight: 700;
  font-size: .8125rem;
}
.step-card .h4 { font-size: .9375rem; margin-bottom: .2rem; }
.step-card__text { margin: 0 0 .5rem; color: var(--muted); font-size: var(--fs-sm); }

/* ---------- records / quotes ---------- */
.table-scroll { overflow-x: auto; margin: 0 -.35rem; padding: 0 .35rem; scrollbar-width: thin; }
.table { font-size: var(--fs-sm); min-width: 340px; }
.table th, .table td { padding: .45rem .5rem; text-align: start; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table thead th {
  position: sticky; top: 0;
  background: rgba(16, 26, 51, .96);
  color: var(--muted);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.table tbody tr { cursor: default; }
.table tbody tr[data-tx-row]:hover { background: rgba(56, 189, 248, .07); }
.table .num { font-variant-numeric: tabular-nums; white-space: nowrap; text-align: end; }
.table .pos { color: var(--success); }
.table .neg { color: var(--danger); }
.table .cell-empty { color: var(--muted); text-align: center; padding: .9rem .5rem; }
.table tbody tr.is-skeleton td { color: transparent; }
.table tbody tr.is-skeleton td::after {
  content: "";
  display: block; height: 12px; border-radius: 6px;
  background: linear-gradient(90deg, rgba(234, 241, 255, .06), rgba(234, 241, 255, .16), rgba(234, 241, 255, .06));
}
.table__id { font-family: var(--font-latin); font-size: .6875rem; color: var(--muted); }

.quotes { display: grid; gap: .5rem; }
.quote { padding: .6rem .7rem; border-radius: var(--radius-sm); background: rgba(7, 11, 24, .42); border: 1px solid var(--line); }
.quote p { margin: 0 0 .25rem; color: #D3DEF6; font-size: var(--fs-sm); }
.quote__who { color: var(--muted); font-size: .6875rem; }

.mini-list { display: grid; gap: .4rem; }
.mini-list li {
  display: flex; align-items: center; gap: .55rem;
  padding: .4rem .5rem;
  border-radius: var(--radius-sm);
  background: rgba(7, 11, 24, .38);
  border: 1px solid var(--line);
  font-size: var(--fs-sm);
}
.mini-list li img { width: 56px; height: 32px; border-radius: 6px; object-fit: cover; flex: 0 0 auto; }
.mini-list .grow { flex: 1 1 auto; min-width: 0; }
.mini-list .name { font-family: var(--font-latin); font-weight: 600; font-size: var(--fs-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.mini-list .meta { color: var(--muted); font-size: .6875rem; }
.mini-list .empty { justify-content: center; color: var(--muted); background: transparent; border-style: dashed; text-align: center; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 8px; }
.faq__item {
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(16, 26, 51, .82);
  overflow: hidden;
  scroll-margin-top: var(--scroll-offset);
}
.faq__q {
  display: flex; align-items: center; gap: .5rem;
  padding: .65rem .75rem;
  cursor: pointer;
  font-weight: 600;
  font-size: .875rem;
  list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__icon { margin-left: auto; transition: transform .2s ease; color: var(--muted); }
.faq__item[open] .faq__icon { transform: rotate(180deg); color: var(--gold); }
.faq__item[open] { border-color: rgba(245, 194, 91, .35); }
.faq__a { margin: 0; padding: 0 .75rem .7rem; color: var(--muted); font-size: var(--fs-sm); line-height: 1.6; }

/* ---------- prose / legal ---------- */
.prose { display: grid; gap: .3rem; padding-bottom: .5rem; }
.prose .h4 { margin-top: .9rem; color: var(--gold); }
.prose__list { display: grid; gap: .35rem; margin: 0 0 .2rem; }
.prose__list li { position: relative; padding-left: 1rem; color: #CDD8F0; font-size: var(--fs-sm); }
.prose__list li::before { content: ""; position: absolute; left: .1rem; top: .6em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

/* ---------- forms ---------- */
.toolbar {
  display: grid; gap: 10px;
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(16, 26, 51, .86);
  margin-bottom: 12px;
}
.toolbar > .field { flex: 1 1 auto; }
.toolbar__status { margin: 0 0 10px; color: var(--muted); font-size: var(--fs-xs); }
.field { display: grid; gap: .25rem; min-width: 0; }
.field__label { font-size: var(--fs-xs); font-weight: 700; color: var(--muted); letter-spacing: .02em; }
.field__wrap { position: relative; display: flex; align-items: center; }
.field__wrap .icon { position: absolute; left: 10px; color: var(--muted); pointer-events: none; }
.field__wrap .input { padding-left: 2rem; }
.field__error { margin: 0; padding: .35rem .5rem; border-radius: 8px; background: rgba(251, 113, 133, .14); border: 1px solid rgba(251, 113, 133, .4); color: #FFC3CD; font-size: var(--fs-xs); }
.field__error[hidden] { display: none; }

.input {
  width: 100%;
  min-height: 42px;
  padding: .5rem .7rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: rgba(7, 11, 24, .62);
  color: var(--text);
  font: inherit;
  font-size: .875rem;
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}
.input::placeholder { color: rgba(168, 183, 217, .65); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(56, 189, 248, .22); background: rgba(7, 11, 24, .82); }
.input--invalid { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(251, 113, 133, .2); }
textarea.input { min-height: 96px; resize: vertical; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 16px) 19px, calc(100% - 11px) 19px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 2rem; }
.check { display: flex; align-items: flex-start; gap: .45rem; font-size: var(--fs-sm); color: var(--muted); }
.check input { width: 18px; height: 18px; margin-top: .15rem; accent-color: var(--gold); flex: 0 0 auto; }

.chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.chip {
  min-height: 32px;
  padding: .25rem .7rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(7, 11, 24, .5);
  color: var(--muted);
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
}
.chip:hover { color: var(--text); border-color: var(--accent); }
.chip--active, .chip[aria-pressed="true"] { background: rgba(245, 194, 91, .16); border-color: rgba(245, 194, 91, .55); color: var(--gold); }
.chip--block[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }

fieldset { border: 0; margin: .35rem 0 .55rem; padding: 0; }
legend { padding: 0; font-size: var(--fs-xs); font-weight: 700; color: var(--muted); }
.avatars .chip { font-size: 1rem; }

.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 10px; scrollbar-width: thin; }
.tab {
  min-height: 34px;
  padding: .3rem .8rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(16, 26, 51, .8);
  color: var(--muted);
  font-size: var(--fs-sm);
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.tab--active, .tab[aria-selected="true"] { background: rgba(56, 189, 248, .16); border-color: rgba(56, 189, 248, .5); color: #9BDDF9; }

/* ---------- wallet / profile ---------- */
.wallet-card {
  position: relative;
  overflow: hidden;
  padding: 16px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(245, 194, 91, .3);
  background:
    radial-gradient(90% 130% at 8% 0%, rgba(245, 194, 91, .2), rgba(16, 26, 51, 0) 55%),
    linear-gradient(150deg, #17244A 0%, #0B122A);
  box-shadow: var(--shadow);
  margin-bottom: 12px;
}
.wallet-card::after {
  content: "";
  position: absolute; inset: auto -40px -60px auto;
  width: 190px; height: 190px; border-radius: 50%;
  border: 1px solid rgba(245, 194, 91, .22);
  box-shadow: inset 0 0 60px rgba(56, 189, 248, .18);
}
.wallet-card__label { margin: 0; color: var(--muted); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; }
.wallet-card__value { margin: .1rem 0 0; font-size: clamp(2rem, 1.4rem + 3.4vw, 2.9rem); font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; line-height: 1.05; }
.wallet-card__unit { margin: .1rem 0 0; color: var(--muted); font-size: var(--fs-xs); }
.wallet-card__meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin-top: .8rem; position: relative; z-index: 1; }
.wallet-card__meta li { display: flex; flex-direction: column; padding: .45rem .55rem; border-radius: var(--radius-sm); background: rgba(7, 11, 24, .45); border: 1px solid var(--line); font-size: .6875rem; color: var(--muted); }
.wallet-card__meta strong { color: var(--text); font-size: .875rem; font-variant-numeric: tabular-nums; }

.profile-card {
  display: flex; align-items: center; gap: .75rem;
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: linear-gradient(150deg, rgba(31, 46, 82, .9), rgba(12, 20, 44, .95));
  margin-bottom: 12px;
}
.profile-card__avatar {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(150deg, rgba(245, 194, 91, .3), rgba(56, 189, 248, .22));
  border: 1px solid rgba(245, 194, 91, .45);
  color: var(--gold); font-size: 1.25rem;
  flex: 0 0 auto;
}
.profile-card__name { margin: 0; font-weight: 700; }
.profile-card__meta { margin: 0; color: var(--muted); font-size: var(--fs-xs); }
.status-line { margin: .5rem 0 0; font-size: var(--fs-xs); color: var(--muted); }
.status-line[data-state="ok"] { color: var(--success); }
.status-line[data-state="bad"] { color: var(--danger); }

/* ---------- detail & trial ---------- */
.detail { display: grid; gap: 12px; padding-top: 6px; }
.detail[hidden] { display: none; }
.detail__grid { display: grid; gap: 14px; }
.detail__media { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-strong); background: #0A122A; box-shadow: var(--shadow); }
.detail__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.detail__info { min-width: 0; }
.detail__title { font-size: clamp(1.25rem, 1.05rem + 1.1vw, 1.6rem); font-family: var(--font-latin), var(--font-bn); margin-bottom: .3rem; }
.detail__desc { color: #CBD7F0; }
.detail__how { margin-top: .8rem; padding-top: .7rem; border-top: 1px dashed var(--line-strong); }
.trial {
  margin-top: .9rem;
  padding: .85rem;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(24, 36, 66, .95), rgba(11, 18, 42, .95));
}
.trial__head { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; }
.trial__label { margin: 0; color: var(--muted); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .06em; }
.trial__balance { margin: 0; font-size: 1.35rem; font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; }
.trial__bets { margin: .55rem 0 .65rem; }
.trial__controls { display: flex; flex-wrap: wrap; gap: .5rem; }
.trial__controls .btn { flex: 1 1 auto; }
.trial__result {
  margin: .7rem 0 0;
  padding: .6rem .7rem;
  border-radius: var(--radius-sm);
  background: rgba(7, 11, 24, .55);
  border: 1px dashed var(--line-strong);
  font-size: var(--fs-sm);
  min-height: 3.2rem;
}
.trial__result[data-outcome="win"] { border-color: rgba(74, 222, 128, .5); background: rgba(74, 222, 128, .1); }
.trial__result[data-outcome="lose"] { border-color: rgba(251, 113, 133, .45); background: rgba(251, 113, 133, .08); }
.trial__result strong { font-variant-numeric: tabular-nums; }
.reels { display: flex; gap: 6px; margin-bottom: .55rem; }
.reels span {
  flex: 1 1 0;
  display: grid; place-items: center;
  min-height: 52px;
  border-radius: 10px;
  background: rgba(7, 11, 24, .6);
  border: 1px solid var(--line-strong);
  font-size: 1.4rem;
}
.reels.is-spinning span { animation: pulse .5s ease-in-out infinite alternate; }
@keyframes pulse { from { transform: translateY(0); opacity: .75; } to { transform: translateY(-3px); opacity: 1; } }

/* ---------- help ---------- */
.result-list { display: grid; gap: .5rem; }
.result-list li { padding: .55rem .65rem; border-radius: var(--radius-sm); background: rgba(7, 11, 24, .4); border: 1px solid var(--line); font-size: var(--fs-sm); }
.result-list li strong { display: block; font-size: .875rem; }
.result-list li span { color: var(--muted); }
.result-list a { color: var(--gold); font-size: var(--fs-xs); font-weight: 600; }
.chat { display: grid; gap: .45rem; max-height: 260px; overflow-y: auto; margin-bottom: .6rem; }
.chat li { padding: .5rem .6rem; border-radius: var(--radius-sm); font-size: var(--fs-sm); max-width: 92%; }
.chat li[data-from="user"] { margin-left: auto; background: rgba(56, 189, 248, .16); border: 1px solid rgba(56, 189, 248, .38); }
.chat li[data-from="bot"] { background: rgba(7, 11, 24, .55); border: 1px solid var(--line); color: #CBD7F0; }
.chat li[data-from="system"] { background: rgba(251, 191, 36, .12); border: 1px dashed rgba(251, 191, 36, .45); color: #FBD98A; font-size: var(--fs-xs); }
.chat__form { display: flex; gap: .45rem; }
.chat__form .input { flex: 1 1 auto; }

/* ---------- empty / error states ---------- */
.empty-state {
  display: grid; justify-items: center; gap: .35rem;
  padding: 22px 14px;
  border-radius: var(--radius);
  border: 1px dashed var(--line-strong);
  background: rgba(7, 11, 24, .4);
  text-align: center;
  margin-top: 12px;
}
.empty-state[hidden] { display: none; }
.empty-state .icon--lg { color: var(--muted); }
.empty-state h3 { margin: .2rem 0 0; }
.empty-state p { color: var(--muted); font-size: var(--fs-sm); max-width: 46ch; }

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(9, 14, 29, .5), rgba(5, 8, 16, .95));
  padding: 18px var(--gutter) calc(var(--tabbar-h) + var(--safe-bottom) + 18px);
}
.footer__inner { max-width: var(--content); margin: 0 auto; }
.footer__brand { display: flex; align-items: center; gap: .6rem; margin-bottom: .9rem; }
.footer__name { margin: 0; font-weight: 700; }
.footer__tag { margin: 0; color: var(--muted); font-size: var(--fs-xs); }
.footer__cols { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.footer__h { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--gold); margin-bottom: .35rem; }
.footer__cols li { margin-bottom: .2rem; }
.footer__cols a { color: var(--muted); font-size: var(--fs-sm); }
.footer__cols a:hover { color: var(--text); }
.footer__note { margin-top: 1rem; color: #C6D3EE; font-size: var(--fs-xs); }
.footer__legal { margin-top: .35rem; color: var(--muted); font-size: .6875rem; font-family: var(--font-latin); }

/* ---------- mobile tabbar ---------- */
.tabbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 55;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2px;
  padding: 6px 6px calc(6px + var(--safe-bottom));
  background: rgba(9, 14, 29, .94);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line-strong);
}
.tabbar__item {
  display: grid; justify-items: center; gap: 2px;
  padding: .3rem .1rem;
  border-radius: 12px;
  color: var(--muted);
  font-size: .625rem;
  font-weight: 600;
  text-decoration: none;
}
.tabbar__item .icon { width: 20px; height: 20px; }
.tabbar__item:hover { color: var(--text); text-decoration: none; }
.tabbar__item[aria-current="page"] { color: var(--gold); background: rgba(245, 194, 91, .12); }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: end center; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(4, 7, 15, .74); backdrop-filter: blur(3px); }
.modal__box {
  position: relative;
  width: min(560px, 100%);
  max-height: min(86vh, 720px);
  display: flex; flex-direction: column;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: linear-gradient(180deg, var(--surface-2), #0E1730);
  border: 1px solid var(--line-strong);
  border-bottom: 0;
  box-shadow: var(--shadow-lg);
  animation: sheet-up .22s ease-out;
}
@keyframes sheet-up { from { transform: translateY(14px); opacity: .6; } to { transform: none; opacity: 1; } }
.modal__head { display: flex; align-items: center; gap: .5rem; padding: 12px 14px 8px; border-bottom: 1px solid var(--line); }
.modal__title { margin: 0; font-size: 1.0625rem; }
.modal__head .icon-btn { margin-left: auto; }
.modal__body { padding: 14px; overflow-y: auto; display: grid; gap: .6rem; }
.modal__foot { display: flex; flex-wrap: wrap; gap: .5rem; padding: 12px 14px calc(14px + var(--safe-bottom)); border-top: 1px solid var(--line); }
.modal__foot .btn { flex: 1 1 auto; }
.modal__list { display: grid; gap: .4rem; }
.modal__list li { display: flex; align-items: center; gap: .5rem; padding: .5rem .6rem; border-radius: var(--radius-sm); border: 1px solid var(--line); background: rgba(7, 11, 24, .4); }
.modal__list button { margin-left: auto; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: .25rem .7rem; font-size: var(--fs-sm); }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-variant-numeric: tabular-nums; word-break: break-word; }

/* ---------- toasts ---------- */
.toast-region {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 12px);
  transform: translateX(-50%);
  z-index: 90;
  display: grid; gap: 8px;
  width: min(420px, calc(100% - 24px));
  pointer-events: none;
}
.toast {
  display: flex; align-items: flex-start; gap: .5rem;
  padding: .6rem .75rem;
  border-radius: var(--radius-sm);
  background: rgba(24, 36, 66, .97);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  color: var(--text);
  font-size: var(--fs-sm);
  animation: toast-in .2s ease-out;
  pointer-events: auto;
}
.toast[data-tone="ok"] { border-color: rgba(74, 222, 128, .5); }
.toast[data-tone="bad"] { border-color: rgba(251, 113, 133, .55); }
.toast[data-tone="warn"] { border-color: rgba(251, 191, 36, .5); }
.toast .icon { color: var(--gold); }
.toast__close { margin-left: auto; background: transparent; border: 0; color: var(--muted); cursor: pointer; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- ≥600px ---------- */
@media (min-width: 600px) {
  :root { --gutter: 20px; }
  .split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .promo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .how-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .entry-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toolbar { grid-template-columns: minmax(180px, 2fr) minmax(140px, 1fr) auto auto; align-items: end; }
  .footer__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .detail__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: start; }
  .modal { place-items: center; }
  .modal__box { border-radius: var(--radius-lg); border-bottom: 1px solid var(--line-strong); }
  .game-grid--row > .game-card { flex-basis: 31%; }
}

/* ---------- ≥900px: desktop shell ---------- */
@media (min-width: 900px) {
  :root { --gutter: 28px; --tabbar-h: 0px; }
  .tabbar { display: none; }
  .main { padding-bottom: 34px; }
  .footer { padding-bottom: 24px; }
  .topbar__inner { min-height: 66px; gap: 1rem; }
  .topbar__nav { display: flex; align-items: center; gap: .1rem; margin-left: .6rem; }
  .hero-slide { aspect-ratio: 10 / 3; min-height: 244px; max-height: 360px; }
  .hero-slide__copy { padding: .9rem 1.7rem 3rem; max-width: 62%; }
  .hero-slide__text { font-size: .9375rem; }
  .focus-bar { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: center; padding: 18px 20px; }
  .game-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
  .game-grid--row { display: grid; overflow: visible; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
  .game-grid--row > .game-card { flex: none; max-width: none; }
  .promo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .feature { grid-template-columns: 40% minmax(0, 1fr); }
  .game-card__title { font-size: .875rem; }
  .toast-region { bottom: 20px; }
}

/* ---------- ≥1200px ---------- */
@media (min-width: 1200px) {
  .game-card__badge { opacity: 1; transform: none; }
  .hero-slide__copy { max-width: 55%; }
}

/* ---------- short viewports ---------- */
@media (max-height: 620px) {
  .hero-slide { min-height: 178px; }
}

/* ---------- 320-420px: খাস্তা সংকীর্ণ স্ক্রিন ---------- */
@media (max-width: 479px) {
  .brand__meta { display: none; }
  .brand__name { font-size: .9375rem; }
  .user-chip__name { max-width: 64px; }
  .lang__btn { padding: .2rem .4rem; }
  .auth-guest .btn, .auth-user .btn { padding: .25rem .5rem; font-size: var(--fs-xs); }
  .auth-user [data-logout] { display: none; }
  .focus-bar__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .focus-bar::before { display: none; }
  .reels.is-spinning span { animation: none; }
}

/* ---------- forced colors / print ---------- */
@media (forced-colors: active) {
  .btn, .card, .game-card, .input { border: 1px solid ButtonText; }
}
@media print {
  .topbar, .tabbar, .hero__nav, .hero__foot, .toast-region { display: none !important; }
  body { background: #fff; color: #000; }
}
