:root {
  --bg-base: #06182b;
  --bg-base-2: #0a2440;
  --bg-elevated: #0b2f55;
  --bg-elevated-2: #103f71;
  --bg-gradient-start: #145DC1;
  --bg-gradient-end: #E129F9;
  --accent: #FC735D;
  --button: #F42DBF;
  --button-text: #000000;
  --text-primary: #EAF2FF;
  --text-secondary: #B8CBE4;
  --border-subtle: rgba(234, 242, 255, 0.14);
  --head-h: 58px;
  --bottom-h: 62px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: radial-gradient(1200px 500px at 80% -100px, #123f78 0%, var(--bg-base) 55%) fixed, var(--bg-base);
  color: var(--text-primary);
  font-family: "Noto Sans Bengali", "Outfit", "Segoe UI", system-ui, sans-serif;
  line-height: 1.55;
  padding-top: calc(var(--head-h) + env(safe-area-inset-top));
  padding-bottom: calc(var(--bottom-h) + env(safe-area-inset-bottom) + 8px);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: 1240px; margin: 0 auto; padding-inline: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }
[data-game-id][hidden], .g-card[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 0; border-radius: 12px; padding: 10px 16px; cursor: pointer;
  font: 700 14px/1.2 "Noto Sans Bengali", "Outfit", sans-serif;
  text-decoration: none; color: var(--text-primary);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn.solid, .btn.play { background: var(--button); color: var(--button-text); box-shadow: 0 6px 18px #f42dbf44; }
.btn.solid:hover, .btn.play:hover { filter: brightness(1.08); }
.btn.ghost { background: #ffffff14; border: 1px solid var(--border-subtle); color: var(--text-primary); }
.btn.ghost:hover { background: #ffffff22; }
.btn.gradient { background: linear-gradient(90deg, var(--bg-gradient-start), var(--bg-gradient-end)); color: #fff; box-shadow: 0 8px 22px #145dc155; }
.btn.gradient:hover { filter: brightness(1.08); }
.btn.dl { background: #103f71; border: 1px solid var(--accent); color: var(--text-primary); }
.btn.dl svg { width: 16px; height: 16px; }
.btn.dl:hover { background: var(--bg-elevated-2); }

/* header */
.site-head {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: calc(var(--head-h) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 14px 0;
  background: linear-gradient(90deg, #06182bee, #0a2440ee);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(8px);
}
.brand {
  font: 800 20px/1.2 "Outfit", "Noto Sans Bengali", sans-serif; letter-spacing: .4px;
  text-decoration: none; white-space: nowrap;
  background: linear-gradient(90deg, #6fb2ff, #f07dff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.head-actions { display: flex; align-items: center; gap: 8px; }
.icon-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px;
  border: 1px solid var(--border-subtle); border-radius: 10px; background: #ffffff10;
  text-decoration: none; font-weight: 600; font-size: 13px;
}
.icon-chip svg { width: 16px; height: 16px; }
.icon-chip:hover { background: #ffffff1f; }
.head-reg { white-space: nowrap; }
@media (max-width: 560px) {
  .head-reg { display: none; }
  .btn.ghost { padding: 8px 10px; }
  .lang-text { display: none; }
}

/* ticker */
.ticker {
  margin: 14px 0 6px; border: 1px solid var(--border-subtle); border-radius: 12px;
  background: linear-gradient(90deg, #0b2f55, #10213a); overflow: hidden;
}
.ticker-track { display: flex; width: max-content; }
.ticker-track.is-running { animation: tk-move 38s linear infinite; }
.ticker-track.is-running.is-paused { animation-play-state: paused; }
@keyframes tk-move { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker-set { display: flex; gap: 42px; list-style: none; margin: 0; padding: 9px 21px; }
.ticker-set li { white-space: nowrap; color: var(--text-secondary); font-size: 13.5px; }
.ticker-set li::before { content: "◆"; color: var(--accent); margin-right: 8px; font-size: 10px; }
.ticker-track.is-static { width: 100%; }
.ticker-track.is-static .ticker-set { padding: 9px 14px; }
.ticker-track.is-static .ticker-set li { display: none; white-space: normal; }
.ticker-track.is-static .ticker-set li:first-child { display: block; }
.ticker-track.is-static .ticker-set li.tk-show { display: block; }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* hero carousel */
.hero { margin-top: 12px; }
.kicker {
  display: inline-block; margin: 10px 0 6px; padding: 5px 12px; border-radius: 999px;
  background: #ffffff12; border: 1px solid var(--border-subtle);
  color: var(--accent); font-weight: 700; font-size: 12.5px; letter-spacing: .4px;
}
.h1 { font-size: clamp(22px, 4.6vw, 36px); margin: 6px 0; line-height: 1.28; font-weight: 800; }
.lede { color: var(--text-secondary); max-width: 720px; margin: 4px 0 14px; }
.hframe {
  position: relative; width: 100%; max-width: 900px; margin: 0 auto;
  border-radius: 18px; border: 1px solid var(--border-subtle);
  background: linear-gradient(135deg, #0b2f55, #101a35 60%, #1b0f33);
  box-shadow: 0 18px 44px #00000066; overflow: hidden;
}
.hslides { display: grid; }
[data-home-slide] { grid-area: 1 / 1; display: flex; flex-direction: column; }
[data-home-slide][inert] { display: none; }
.hbanner-media { display: block; aspect-ratio: 740 / 280; background: #0a2440; }
.hbanner-media img { width: 100%; height: 100%; object-fit: contain; }
.hbanner-caption { padding: 10px 16px 4px; }
.hbanner-caption h3 { margin: 0 0 2px; font-size: clamp(15px, 2.6vw, 19px); }
.hbanner-caption p { margin: 0 0 8px; color: var(--text-secondary); font-size: 13.5px; }
.slide-cta { margin: 0 16px 14px; align-self: flex-start; }
.hdots { display: flex; justify-content: center; gap: 10px; margin: 12px 0 6px; }
.hdot {
  min-width: 34px; height: 34px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--border-subtle); background: #ffffff10; color: var(--text-primary);
  font: 700 14px "Noto Sans Bengali", "Outfit", sans-serif;
}
.hdot:hover { background: #ffffff22; }

/* stats */
.stats {
  margin: 18px 0 6px; display: grid; gap: 10px;
  grid-template-columns: repeat(2, 1fr);
}
.stat-card {
  background: linear-gradient(160deg, var(--bg-elevated), #0a2038);
  border: 1px solid var(--border-subtle); border-radius: 14px; padding: 12px 14px;
  display: flex; flex-direction: column; gap: 2px;
}
.stat-card small { color: var(--text-secondary); font-size: 12.5px; }
.stat-card strong { font-size: clamp(18px, 3vw, 26px); font-variant-numeric: tabular-nums; letter-spacing: .3px; }
.stat-card strong.bump { animation: bump .5s ease; }
@keyframes bump { 0% { color: var(--accent); transform: translateY(2px); } 100% { color: var(--text-primary); transform: none; } }
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, 1fr); } }
@media (prefers-reduced-motion: reduce) { .stat-card strong.bump { animation: none; } }

/* section headings */
section h2 { font-size: clamp(18px, 3.4vw, 26px); margin: 26px 0 4px; }
.sec-intro { color: var(--text-secondary); margin: 0 0 14px; max-width: 800px; }

/* category rail */
.cat-rail {
  display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 12px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.cat-rail::-webkit-scrollbar { display: none; }
.cat-btn {
  flex: none; border-radius: 999px; padding: 9px 15px; cursor: pointer;
  border: 1px solid var(--border-subtle); background: #ffffff0d; color: var(--text-secondary);
  font: 700 13.5px "Noto Sans Bengali", "Outfit", sans-serif; white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.cat-btn:hover { background: #ffffff1c; color: var(--text-primary); }
.cat-btn.is-active {
  background: linear-gradient(90deg, var(--bg-gradient-start), var(--bg-gradient-end));
  color: #fff; border-color: transparent;
}

/* game grid */
.g-grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
}
@media (min-width: 768px) { .g-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; } }
@media (min-width: 1280px) { .g-grid { grid-template-columns: repeat(6, 1fr); } }
.g-card {
  background: linear-gradient(165deg, var(--bg-elevated), #081f38);
  border: 1px solid var(--border-subtle); border-radius: 16px; padding: 10px;
  display: flex; flex-direction: column; gap: 8px;
}
.g-cover { position: relative; display: block; border-radius: 14px; overflow: hidden; }
.g-cover img { aspect-ratio: 1 / 1; width: 100%; height: auto; object-fit: cover; border-radius: 14px; }
.g-cover:hover img { filter: brightness(1.07); }
.chip {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  background: #06182bd9; border: 1px solid var(--accent); color: var(--accent);
  font-size: 10.5px; font-weight: 800; padding: 3px 8px; border-radius: 999px; letter-spacing: .5px;
}
.chip + .chip { left: auto; right: 8px; }
.g-name { margin: 0; font-size: 14.5px; line-height: 1.35; }
.g-title-link { text-decoration: none; color: var(--text-primary); }
.g-title-link:hover { color: #9cc4ff; text-decoration: underline; }
.btn.play { margin-top: auto; width: 100%; }
.g-empty { color: var(--text-secondary); padding: 26px 6px; text-align: center; }

/* featured */
.f-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .f-grid { grid-template-columns: 1fr 1fr; } }
.featured .g-card { flex-direction: row; align-items: stretch; gap: 12px; }
.featured .g-cover { width: 45%; flex: none; }
.featured .g-cover img { height: 100%; }
.featured .g-name { font-size: 17px; margin-top: 4px; }
.featured .g-card > .btn.play { margin-top: auto; align-self: flex-start; width: auto; }
.featured .g-card > * + * { }
.featured .g-card { display: grid; grid-template-columns: minmax(0, 45%) 1fr; grid-template-rows: auto 1fr auto; }
.featured .g-cover { grid-row: 1 / 4; }
.featured .g-name { grid-column: 2; }
.featured .btn.play { grid-column: 2; align-self: end; }

/* offers on home */
.p-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .p-grid { grid-template-columns: 1fr 1fr; } }
.promo-card {
  border-radius: 16px; padding: 16px; border: 1px solid var(--border-subtle);
  display: flex; flex-direction: column; gap: 8px; align-items: flex-start;
}
.promo-card.tone-a { background: linear-gradient(135deg, #10467e, #0a2440 65%, #1a0f3a); }
.promo-card.tone-b { background: linear-gradient(135deg, #0b3b66, #13203f 60%, #34123f); }
.promo-card h3 { margin: 0; font-size: 17px; }
.promo-card p { margin: 0; color: var(--text-secondary); font-size: 14px; flex: 1; }
.promo-card .btn { margin-top: 6px; }
.more-row { margin: 14px 0 0; }
.more-link {
  color: #9cc4ff; font-weight: 700; text-decoration: none; font-size: 14.5px;
}
.more-link:hover { text-decoration: underline; color: #c4dcff; }
.back-row { margin: 8px 0 2px; }

/* mini game entry */
.mini-entry {
  margin: 26px 0 8px; border-radius: 18px; padding: 18px;
  border: 1px dashed var(--accent);
  background: linear-gradient(120deg, #0b2f55, #10213a 70%, #2a1140);
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}
.mini-copy h2 { margin: 0 0 4px; }
.mini-copy p { margin: 0; color: var(--text-secondary); }

/* faq */
.faq-list { display: grid; gap: 8px; }
.faq-item {
  border: 1px solid var(--border-subtle); border-radius: 12px;
  background: #0b2f5580; padding: 4px 14px;
}
.faq-item summary { cursor: pointer; font-weight: 700; padding: 8px 0; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; float: right; color: var(--accent); font-weight: 800; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin: 0 0 10px; color: var(--text-secondary); font-size: 14px; }

/* footer */
.site-foot {
  margin-top: 36px; border-top: 1px solid var(--border-subtle);
  background: #041222ee; padding: 26px 0 18px;
}
.foot-grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr 1fr 1fr; } }
.foot-brand p { color: var(--text-secondary); font-size: 13.5px; max-width: 340px; }
.foot-brand .age { color: var(--accent); font-weight: 700; }
.foot-col h4 { margin: 0 0 8px; font-size: 14px; letter-spacing: .4px; }
.flink {
  display: block; width: fit-content; background: none; border: 0; padding: 3px 0; cursor: pointer;
  color: var(--text-secondary); text-decoration: none; font: 500 14px "Noto Sans Bengali", "Outfit", sans-serif;
}
.flink:hover { color: var(--text-primary); text-decoration: underline; }
.foot-base { margin-top: 18px; color: #7f95b3; font-size: 12.5px; }

/* bottom nav */
.site-bottom {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: repeat(6, 1fr); align-items: stretch;
  background: #071e36f7; border-top: 1px solid var(--border-subtle);
  padding-bottom: env(safe-area-inset-bottom);
  backdrop-filter: blur(8px);
}
.bn-slot { display: flex; min-width: 0; }
.bnav-link {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; min-height: var(--bottom-h); padding: 6px 2px; border: 0; background: none; cursor: pointer;
  color: var(--text-secondary); text-decoration: none;
  font: 600 11px/1.15 "Noto Sans Bengali", "Outfit", sans-serif;
}
.bnav-link svg { width: 21px; height: 21px; }
.bnav-link:hover { color: var(--text-primary); background: #ffffff0d; }
.bnav-link.is-active { color: var(--text-primary); }

/* floating bits */
.float-mini {
  position: fixed; right: 12px; z-index: 55;
  bottom: calc(var(--bottom-h) + env(safe-area-inset-bottom) + 108px);
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
  color: #fff; border: 2px solid #ffffff33; box-shadow: 0 10px 24px #0008; text-decoration: none;
}
.float-mini svg { width: 26px; height: 26px; }
.float-mini:hover { filter: brightness(1.1); }
.back-top {
  position: fixed; right: 16px; z-index: 55;
  bottom: calc(var(--bottom-h) + env(safe-area-inset-bottom) + 16px);
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg-elevated-2); color: var(--text-primary);
  border: 1px solid var(--border-subtle); text-decoration: none; box-shadow: 0 8px 20px #0007;
}
.back-top svg { width: 20px; height: 20px; }
.back-top:hover { background: #16508c; }

/* winner float */
.winner-zone {
  position: fixed; left: 10px; bottom: calc(var(--bottom-h) + env(safe-area-inset-bottom) + 14px);
  z-index: 58; pointer-events: none; display: flex; flex-direction: column; gap: 8px;
}
.winner-float {
  min-width: 220px; max-width: min(78vw, 320px);
  border-radius: 14px; padding: 10px 14px;
  background: #0b2f55ee; border: 1px solid var(--border-subtle);
  box-shadow: 0 12px 28px #000a; color: var(--text-primary);
}
.winner-float strong { display: block; font-size: 13.5px; }
.winner-float span { color: #7df29b; font-weight: 800; font-variant-numeric: tabular-nums; }
.winner-float.is-static { animation: wf-hide 4.2s forwards; }
@keyframes wf-hide { 0%, 78% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .winner-float.is-static { transition: opacity .4s; } }

/* promotions page */
.promo-main { padding-top: 8px; }
.pcards { display: grid; gap: 18px; margin: 18px 0 8px; }
.pcard {
  background: linear-gradient(165deg, var(--bg-elevated), #081f38);
  border: 1px solid var(--border-subtle); border-radius: 18px; overflow: hidden;
}
.pmedia { display: block; background: #0a2440; }
.pmedia img { width: 100%; height: auto; }
.pbody { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.pbody h2 { margin: 0; font-size: clamp(17px, 3vw, 22px); }
.pbody p { margin: 0; color: var(--text-secondary); }
.pbody .btn { margin-top: 4px; }
@media (min-width: 900px) {
  .pcards { max-width: 760px; margin-inline: auto; }
}

/* small screens */
@media (max-width: 380px) {
  .g-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .btn.play { padding: 9px 10px; }
  .featured .g-card { grid-template-columns: 1fr; }
  .featured .g-cover { width: 100%; grid-row: auto; }
  .featured .g-name, .featured .btn.play { grid-column: 1; }
}
