/* bonanzalook — dark casino hall theme (frozen palette) */
:root {
  --bg: #7D0B19;
  --bg-deep: #4d0510;
  --bg-black: #2a0409;
  --panel: #3a0810;
  --panel-2: #570c18;
  --gold: #FFD026;
  --gold-soft: #FCD535;
  --grad-a: #C9123A;
  --grad-b: #FF5226;
  --ink: #fff6e3;
  --ink-dim: #e8c9b8;
  --line: #ffffff26;
  --hdr-h: 58px;
  --bnav-h: 66px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(120% 60% at 50% 0%, var(--grad-a) 0%, transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 34%, var(--bg-black) 100%) fixed;
  color: var(--ink);
  line-height: 1.55;
  overflow-x: hidden;
  padding-top: var(--hdr-h);
  padding-bottom: calc(var(--bnav-h) + env(safe-area-inset-bottom) + 8px);
}
.loc-bn { font-family: "Noto Sans Bengali", "Hind Siliguri", "Segoe UI", system-ui, sans-serif; }
.loc-en { font-family: Inter, "Segoe UI", system-ui, sans-serif; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-soft); text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 8px;
}
h1, h2, h3 { line-height: 1.3; margin: 0 0 .35em; overflow-wrap: anywhere; }
p { overflow-wrap: anywhere; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- header ---------- */
.hdr {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  height: calc(var(--hdr-h) + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);
  background: linear-gradient(90deg, #300209f2, #5c0713f2);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 18px #1c020680;
}
.hdr-in {
  max-width: 1280px; margin: 0 auto; height: var(--hdr-h);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 0 14px;
}
.brand {
  font-weight: 800; font-size: 21px; letter-spacing: .3px;
  color: var(--gold); display: inline-flex; align-items: center; gap: 8px;
  white-space: nowrap;
}
.brand i { color: var(--grad-b); font-size: 17px; }
.hdr-nav { display: flex; align-items: center; gap: 8px; min-width: 0; }
.lang-link { font-size: 13.5px; font-weight: 700; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line); white-space: nowrap; }
.lang-link:hover { background: #ffffff14; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 0; border-radius: 10px; cursor: pointer;
  font: inherit; font-weight: 700; font-size: 14.5px;
  padding: 9px 15px; transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold), #ffb300);
  color: #000;
  box-shadow: 0 3px 14px #ffd02640, inset 0 0 0 1px #fff3;
}
.btn-gold:hover { box-shadow: 0 5px 20px #ffd02666, inset 0 0 0 1px #fff5; }
.btn-ghost { background: #ffffff14; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { background: #ffffff24; }
.btn-outline { background: transparent; color: var(--gold-soft); border: 1.5px solid var(--gold-soft); }
.btn-outline:hover { background: #fcd5351f; }
.btn-dl { background: #ffffff10; color: var(--ink); border: 1px solid var(--line); }
.btn-dl:hover { background: #ffffff1f; }
@media (max-width: 420px) {
  .hdr .btn { padding: 8px 10px; font-size: 13px; }
}

/* ---------- layout ---------- */
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 14px 26px; }
.wrap.narrow { max-width: 780px; }
section { scroll-margin-top: calc(var(--hdr-h) + 12px); }
.sec-head { margin: 30px 2px 14px; }
.sec-head h2 { font-size: clamp(20px, 3.4vw, 27px); color: var(--gold-soft); }
.sec-head p { margin: 0; color: var(--ink-dim); font-size: 14.5px; }

/* ---------- intro ---------- */
.intro { padding-top: 18px; }
.intro h1 {
  font-size: clamp(24px, 5.4vw, 40px);
  background: linear-gradient(90deg, #fff2cf, var(--gold), #ff9a5e);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { color: var(--ink-dim); font-size: clamp(14px, 2.4vw, 16.5px); max-width: 70ch; }

/* ---------- ticker ---------- */
.ticker {
  overflow: hidden; border: 1px solid var(--line); border-radius: 12px;
  background: linear-gradient(90deg, #33040c, #5a0a16);
  margin: 14px 0 4px;
}
.ticker-track {
  display: inline-flex; gap: 44px; white-space: nowrap;
  padding: 9px 22px; min-width: 200%;
  animation: tick 46s linear infinite;
  font-size: 14px; color: var(--gold-soft);
}
.tick-item i { font-size: 7px; vertical-align: middle; margin-right: 8px; color: var(--grad-b); }
@keyframes tick { from { transform: translateX(-50%); } to { transform: translateX(0); } }

/* ---------- carousel ---------- */
.hero { margin-top: 12px; }
.carousel { position: relative; }
.slides { position: relative; }
.slide { display: block; }
[data-home-slide][aria-hidden="true"] { display: none; }
.slide[inert] { display: none; }
.banner-media {
  border-radius: 16px; overflow: hidden;
  aspect-ratio: 740 / 280;
  background: #1c0308;
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px #17020586;
}
.banner-media a { display: block; height: 100%; }
.banner-media img { width: 100%; height: 100%; object-fit: contain; }
.banner-caption { padding: 12px 6px 4px; min-height: 92px; }
.banner-caption h2 { font-size: clamp(17px, 3vw, 23px); color: var(--gold); margin-bottom: 4px; }
.banner-caption p { margin: 0; color: var(--ink-dim); font-size: 14.5px; }
.dots { display: flex; gap: 8px; justify-content: center; padding: 4px 0 2px; }
.dot {
  min-width: 38px; height: 34px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--line); background: #ffffff10; color: var(--ink);
  font: inherit; font-weight: 700; font-size: 14px;
}
.dot:hover { background: #ffffff22; }

/* ---------- stats ---------- */
.stats { margin-top: 18px; }
.stats-in {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}
.stat {
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: 13px; padding: 12px 14px;
  box-shadow: inset 0 1px 0 #ffffff12;
}
.stat small { display: block; color: var(--ink-dim); font-size: 12px; letter-spacing: .02em; }
.stat strong {
  display: block; margin-top: 3px; font-size: clamp(15px, 2.6vw, 20px);
  color: var(--gold); font-variant-numeric: tabular-nums; white-space: nowrap;
  overflow-wrap: normal;
}

/* ---------- game cards ---------- */
.fnav, .cnav { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: thin; }
.fbtn, .cbtn {
  flex: 0 0 auto; border-radius: 999px; padding: 8px 15px; cursor: pointer;
  border: 1px solid var(--line); background: #ffffff10; color: var(--ink);
  font: inherit; font-weight: 700; font-size: 13.5px; white-space: nowrap;
}
.fbtn.active, .cbtn.active {
  background: linear-gradient(135deg, var(--gold), #ffb300); color: #000;
  border-color: transparent; box-shadow: 0 3px 12px #ffd02645;
}
.grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 158px), 1fr));
}
.g-card {
  background: linear-gradient(165deg, var(--panel-2), #24040b);
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 6px 18px #18020580;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.g-card:hover { transform: translateY(-3px); border-color: #fcd53566; box-shadow: 0 10px 26px #18020a99; }
.g-card .cover { position: relative; display: block; }
.g-card .cover img { width: 100%; aspect-ratio: 301 / 180; object-fit: cover; }
.badge {
  position: absolute; top: 8px; left: 8px; border-radius: 7px;
  font-size: 11px; font-weight: 800; letter-spacing: .04em; padding: 3px 7px;
}
.badge.hot { background: linear-gradient(90deg, var(--grad-b), #ff7a3d); color: #fff; }
.badge.new { background: #fcd53522; color: var(--gold-soft); border: 1px solid #fcd53555; }
.cbody { padding: 10px 11px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.prov { font-size: 11.5px; color: var(--ink-dim); }
.cname { font-size: 14.5px; margin: 0; color: var(--ink); flex: 1; overflow-wrap: anywhere; }
.btn-play { margin-top: 6px; background: linear-gradient(135deg, var(--gold), #ffb300); color: #000; width: 100%; }
.btn-play:hover { box-shadow: 0 4px 16px #ffd02655; }
.feat-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.g-card.featured .cover img { aspect-ratio: 301 / 180; object-fit: cover; }
.g-card.featured .cname { font-size: 18px; }

/* ---------- offers / mini / winners / faq ---------- */
.op-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.op-card {
  background: linear-gradient(165deg, #6a0d1c, #2c050c);
  border: 1px solid var(--line); border-radius: 14px; padding: 16px;
  display: flex; flex-direction: column; gap: 7px; align-items: flex-start;
}
.op-card i { font-size: 24px; color: var(--gold); }
.op-card h3 { font-size: 17px; color: var(--gold-soft); margin: 0; }
.op-card p { margin: 0; font-size: 14px; color: var(--ink); }
.op-card small { color: var(--ink-dim); font-size: 12.5px; }
.op-card .btn { margin-top: 6px; }
.offer-foot { text-align: center; margin: 18px 0 0; }
.minisec { margin-top: 26px; }
.mini-card {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  background: linear-gradient(120deg, var(--grad-a), #7a1508);
  border: 1px solid #fcd53533; border-radius: 16px; padding: 18px;
}
.mini-card i { font-size: 34px; color: var(--gold); }
.mini-card div { flex: 1; min-width: 200px; }
.mini-card h2 { margin: 0 0 4px; color: #fff4d6; font-size: clamp(18px, 3vw, 24px); }
.mini-card p { margin: 0; color: #ffe9d0; font-size: 14.5px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.win-table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 14px; }
.win-table th, .win-table td { padding: 10px 13px; text-align: left; }
.win-table thead th { background: #5a0a16; color: var(--gold-soft); font-weight: 700; }
.win-table tbody tr:nth-child(odd) { background: #ffffff08; }
.win-table td.amt { color: var(--gold); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.faq-sec { margin-top: 28px; }
.faq { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 9px; background: #26050c; }
.faq summary { cursor: pointer; padding: 13px 15px; font-weight: 700; color: var(--gold-soft); list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 800; color: var(--gold); }
.faq[open] summary::after { content: "−"; }
.faq p { margin: 0; padding: 0 15px 13px; color: var(--ink-dim); font-size: 14.5px; }
.empty { text-align: center; color: var(--ink-dim); padding: 30px 10px; border: 1px dashed var(--line); border-radius: 12px; }

/* ---------- footer ---------- */
.ftr { border-top: 1px solid var(--line); background: #220308; margin-top: 34px; }
.ftr-in { max-width: 1280px; margin: 0 auto; padding: 24px 16px 18px; display: grid; gap: 18px; }
.fb { font-weight: 800; color: var(--gold); font-size: 20px; }
.ftr-brand p { margin: 6px 0 0; color: var(--ink-dim); font-size: 13.5px; max-width: 60ch; }
.ftr-brand .age { margin-top: 8px; color: var(--gold-soft); font-weight: 600; }
.ftr-links { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; }
.ftr-links a { color: var(--ink); padding: 4px 2px; border-radius: 6px; }
.ftr-links a:hover { color: var(--gold); }
.ftr-rights { color: #d9b3a299; font-size: 12.5px; margin: 0; }
@media (min-width: 900px) { .ftr-in { grid-template-columns: 1.4fr 1fr auto; align-items: start; } }

/* ---------- bottom navigation ---------- */
.bnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  background: linear-gradient(180deg, #42050df8, #22020848);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}
.bn-item {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 5px 2px; border-radius: 10px; color: var(--ink-dim);
  font-size: 11.5px; font-weight: 700; min-height: 46px;
}
.bn-item i { font-size: 17px; }
.bn-item span { white-space: nowrap; overflow-wrap: normal; }
.bn-item:hover, .bn-item[aria-current="page"] { color: var(--gold); }
.bn-dl { color: var(--gold-soft); }
@media (min-width: 1024px) {
  .bn-item { font-size: 12.5px; }
}

/* ---------- floating controls ---------- */
.mini-float {
  position: fixed; right: 12px; z-index: 55;
  bottom: calc(var(--bnav-h) + env(safe-area-inset-bottom) + 58px);
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; font-size: 21px; color: #000;
  background: radial-gradient(circle at 32% 28%, #ffe9a0, var(--gold) 55%, #d99a00);
  border: 2px solid #fff6;
  box-shadow: 0 6px 18px #1a0206a8, 0 0 0 4px #ffd02622;
}
.mini-float:hover { transform: translateY(-2px); }
.back-top {
  position: fixed; right: 14px; z-index: 55;
  bottom: calc(var(--bnav-h) + env(safe-area-inset-bottom) + 120px);
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; color: var(--gold-soft);
  background: #3c060fe0; border: 1px solid var(--line);
  box-shadow: 0 4px 14px #17020586;
}
.back-top:hover { background: #570c18; color: var(--gold); }

/* ---------- winner toast ---------- */
.toast {
  position: fixed; left: 12px; z-index: 70;
  bottom: calc(var(--bnav-h) + env(safe-area-inset-bottom) + 12px);
  max-width: min(340px, calc(100vw - 90px));
  background: linear-gradient(140deg, #5e0b18, #2c050c);
  border: 1px solid #fcd53544; border-radius: 12px;
  padding: 10px 14px; font-size: 13.5px; color: var(--ink);
  box-shadow: 0 8px 24px #14010499;
  opacity: 0; transform: translateY(8px);
  transition: opacity .35s ease, transform .35s ease;
}
.toast.show { opacity: 1; transform: translateY(0); }

/* ---------- promotions page ---------- */
.promo-stack { display: grid; gap: 20px; margin-top: 20px; }
.promo-card {
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  background: linear-gradient(170deg, var(--panel-2), #230409);
  box-shadow: 0 8px 22px #1702057a;
}
.p-img { display: block; background: #170307; }
.p-img img { width: 100%; height: 100%; object-fit: contain; }
.p-body { padding: 16px 18px 18px; }
.p-body h2 { color: var(--gold); font-size: clamp(18px, 3vw, 23px); }
.p-body p { margin: 0 0 8px; }
.p-rules { color: var(--ink-dim); font-size: 13px; }
.p-rules i { color: var(--gold-soft); margin-right: 4px; }
.p-claim { margin-top: 8px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
  .g-card, .btn, .mini-float, .toast { transition: none; }
}
