/* BDG Game — theme tokens. Colours sampled from the approved homepage screenshot. */
:root {
  --bg: #0b0620;
  --bg-glow: #2a0f55;
  --text: #ffffff;
  --text-dim: rgba(255, 255, 255, 0.88);
  --gold-1: #fff6c8;
  --gold-2: #ffd34d;
  --gold-3: #d48a12;
  --gold-4: #8a4a05;
  --tile-radius: 16px;
  --tile-height: 128px;
  --gap: 11px;
  --pad: 11px;
  --titlebar-bg: #f7f7f9;

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --content-top: 0px; /* Telegram fullscreen controls band, set from app.js */
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: Montserrat, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

body {
  background:
    radial-gradient(90% 35% at 50% 8%, var(--bg-glow) 0%, transparent 70%),
    var(--bg);
  padding: 0 var(--pad) calc(var(--safe-bottom) + 14px);
  max-width: 540px;
  margin: 0 auto;
}
body.fullscreen { padding-top: calc(var(--safe-top) + var(--content-top)); }

/* ---------- Fullscreen title bar (replaces Telegram's header, without its "mini app" label) ---------- */
.titlebar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 5;
  height: calc(var(--safe-top) + var(--content-top));
  padding-top: var(--safe-top);
  display: flex; align-items: center; justify-content: center;
  background: var(--titlebar-bg);
  color: #000; font: 600 17px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.titlebar[hidden] { display: none; }

/* ---------- Splash / loading ---------- */
.splash {
  position: fixed; inset: 0; z-index: 10;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--bg);
  transition: opacity .3s ease;
}
.splash.hide { opacity: 0; pointer-events: none; }
.splash-mark {
  font-size: 64px; line-height: 1; font-weight: 900; letter-spacing: 2px;
  background: linear-gradient(180deg, var(--gold-1), var(--gold-2) 45%, var(--gold-3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: pulse 1.2s ease-in-out infinite;
}
.splash-sub { margin-top: 6px; font-weight: 800; letter-spacing: 4px; color: var(--gold-2); font-size: 14px; }
@keyframes pulse { 50% { opacity: .55; } }

/* ---------- Hero ---------- */
.hero { position: relative; margin: 0 calc(var(--pad) * -1); text-align: center; }
.hero-bar {
  position: absolute; top: 10px; left: 12px; right: 12px; z-index: 3;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 6px; pointer-events: none;
}
.hero-bar-side { display: flex; gap: 6px; pointer-events: auto; }
.hero.stacked .hero-bar { position: static; padding: 10px 12px 2px; }
.hero-btn {
  display: inline-flex; align-items: center; gap: 4px; min-height: 28px;
  padding: 6px 10px; border-radius: 999px; cursor: pointer; white-space: nowrap;
  font: 700 12px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--gold-1); background: rgba(10, 5, 30, .65);
  border: 1px solid rgba(255, 211, 77, .6);
}
.hero-btn[hidden] { display: none; }
.hero-btn .caret { font-size: 10px; opacity: .85; }
.hero-icon { padding: 5px 7px; }
.hero-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.dropdown { position: relative; }
.dropdown-list {
  position: absolute; top: calc(100% + 6px); right: 0; min-width: 150px; margin: 0; padding: 6px;
  list-style: none; border-radius: 12px; background: #170d33; border: 1px solid rgba(255, 211, 77, .55);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .6); text-align: left;
}
.dropdown-list[hidden] { display: none; }
.dropdown-list button, .dropdown-list li {
  display: block; width: 100%; padding: 10px 12px; border: 0; border-radius: 8px; cursor: pointer;
  font: 600 14px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #fff; background: none; text-align: left; white-space: nowrap;
}
.dropdown-list button:hover, .dropdown-list button:focus-visible,
.dropdown-list li:hover, .dropdown-list li:focus-visible { background: rgba(255, 211, 77, .14); outline: none; }
.hero-art { margin: 0; line-height: 0; }
.hero-art img { width: 100%; height: auto; display: block; }
.tagline {
  margin: -2px 0 14px; font-size: clamp(11px, 3.6vw, 14.5px); font-weight: 600; color: var(--text-dim);
  text-shadow: 0 1px 3px rgba(0, 0, 0, .6);
}
.tagline span { margin: 0 3px; }

/* ---------- Promo banner (owner sets text and link on the admin page) ---------- */
.promo {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  margin: 0 0 var(--gap); padding: 10px 14px; border-radius: 12px; cursor: pointer;
  border: 1.5px solid var(--gold-2); color: var(--gold-1); font: inherit; font-weight: 700;
  font-size: clamp(12px, 3.8vw, 14px); line-height: 1.25;
  background: linear-gradient(90deg, rgba(255, 211, 77, .16), rgba(212, 138, 18, .30));
  box-shadow: 0 0 10px rgba(255, 190, 50, .35);
}
.promo[hidden] { display: none; }
.promo-text { overflow-wrap: anywhere; text-align: center; }
.promo svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.promo:active { transform: scale(.98); }
.promo[aria-busy="true"] { filter: brightness(.85); }

/* ---------- Channel button (owner sets the link on the admin page) ---------- */
.channel {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  margin: var(--gap) 0 0; padding: 11px 14px; border-radius: 12px; cursor: pointer; border: 0;
  color: #fff; font: inherit; font-weight: 700; font-size: clamp(12.5px, 3.9vw, 15px); line-height: 1.25;
  background: linear-gradient(180deg, #37aee2, #1e96c8); box-shadow: 0 2px 10px rgba(30, 150, 200, .45);
}
.channel[hidden] { display: none; }
.channel svg { width: 20px; height: 20px; flex: none; fill: currentColor; }
.channel:active { transform: scale(.98); }

/* ---------- Provider tiles ---------- */
.providers { display: flex; flex-direction: column; gap: var(--gap); }

.tile {
  position: relative; display: block; width: 100%; height: var(--tile-height);
  padding: 0; border-radius: var(--tile-radius);
  border: 1.5px solid var(--edge);
  background:
    linear-gradient(120deg, transparent 55%, rgba(255, 255, 255, .10) 62%, transparent 70%),
    radial-gradient(70% 90% at 62% 55%, var(--deep) 0%, transparent 75%),
    linear-gradient(90deg, var(--mid) 0%, var(--deep) 45%, var(--bright) 100%);
  box-shadow: 0 0 10px var(--glow), inset 0 0 12px rgba(255, 255, 255, .12);
  color: var(--text); font: inherit; cursor: pointer; overflow: hidden;
  transition: transform .12s ease, filter .12s ease;
}
.tile.featured { animation: featured 1.4s ease-in-out 3; }
@keyframes featured { 50% { box-shadow: 0 0 22px var(--glow), 0 0 0 3px var(--gold-2); } }
.tile:active { transform: scale(.98); filter: brightness(1.1); }
.tile:focus-visible { outline: 3px solid var(--gold-1); outline-offset: 2px; }
.tile[aria-busy="true"] { filter: brightness(.85); }

.tile[data-accent="red"]    { --deep: #4b0000; --mid: #7a0004; --bright: #b00210; --edge: #ff6a3a; --glow: rgba(255, 60, 30, .45); --ring: #ff3a2a; }
.tile[data-accent="blue"]   { --deep: #060c45; --mid: #0a2a8a; --bright: #2a10a0; --edge: #4fb6ff; --glow: rgba(60, 150, 255, .45); --ring: #3fa8ff; }
.tile[data-accent="green"]  { --deep: #012d01; --mid: #035a05; --bright: #07800a; --edge: #4dff5a; --glow: rgba(60, 255, 80, .40); --ring: #3cff52; }
.tile[data-accent="purple"] { --deep: #2a0253; --mid: #4a0388; --bright: #6b07a8; --edge: #e05cff; --glow: rgba(210, 70, 255, .45); --ring: #d24cff; }
.tile[data-accent="gold"]   { --deep: #4a1701; --mid: #8a3c02; --bright: #c96a06; --edge: #ffd35a; --glow: rgba(255, 190, 50, .50); --ring: #ffc23a; }

.tile-art {
  position: absolute; left: 0; top: 0; bottom: 0; width: 38%;
  background-size: cover; background-position: left center;
  -webkit-mask-image: linear-gradient(90deg, #000 72%, transparent 100%);
          mask-image: linear-gradient(90deg, #000 72%, transparent 100%);
}
.tile-art.letter {
  display: flex; align-items: center; justify-content: center;
  -webkit-mask-image: none; mask-image: none;
  font-size: 48px; font-weight: 900; font-style: italic; color: var(--gold-2);
}

.tile-body {
  position: absolute; left: 33%; right: 58px; top: 0; bottom: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
}
.tile-title {
  font-size: clamp(26px, 9vw, 36px); line-height: .95; font-weight: 900; letter-spacing: -.5px; white-space: nowrap;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .55)) drop-shadow(0 3px 6px rgba(0, 0, 0, .4));
}
.tile-title.long { font-size: clamp(20px, 7vw, 28px); letter-spacing: -1px; }
.tile-title.gold {
  background: linear-gradient(180deg, var(--gold-1) 0%, var(--gold-2) 40%, var(--gold-3) 70%, var(--gold-4) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tile-title.silver {
  font-style: italic;
  background: linear-gradient(180deg, #ffffff 0%, #f2f4ff 50%, #b9c3dc 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tile-kind {
  display: flex; align-items: center; gap: 6px; margin-top: 3px;
  font-size: clamp(12px, 4vw, 15px); font-weight: 800; letter-spacing: 2px; color: var(--kind, var(--gold-2));
  text-shadow: 0 2px 2px rgba(0, 0, 0, .5);
}
.tile-kind.italic { font-style: italic; }
.tile-kind[hidden] { display: none; }
.tile-kind::before, .tile-kind::after { content: ""; width: 18px; height: 1.5px; background: currentColor; opacity: .7; }
.tile-tagline {
  margin-top: 8px; max-width: 100%; font-size: clamp(10px, 2.9vw, 12px); line-height: 1.2; font-weight: 600; letter-spacing: -.2px; color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .7);
}

/* Per-provider title treatments, as in the reference. */
.tile[data-id="bdg"]     { --kind: var(--gold-2); }
.tile[data-id="sikkim"]  { --kind: #ffffff; }
.tile[data-id="tiranga"] { --kind: #c9ff4a; }
.tile[data-id="goa"]     { --kind: var(--gold-2); }
.tile[data-id="tashan"]  { --kind: var(--gold-1); }
.tile[data-id="bdg"] .tile-kind::before, .tile[data-id="bdg"] .tile-kind::after { display: none; }

.tile-go {
  position: absolute; right: 16px; top: 50%; width: 46px; height: 46px; margin-top: -23px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle, #1a0a0a 0%, #050208 100%);
  border: 2px solid var(--ring); box-shadow: 0 0 8px var(--glow);
}
.tile-go svg { width: 18px; height: 18px; stroke: #fff; stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* Favourite star (top right) and "last opened" label (top left). */
.tile-star {
  position: absolute; top: 5px; right: 6px; width: 26px; height: 26px; z-index: 2;
  display: flex; align-items: center; justify-content: center; border-radius: 50%;
  background: rgba(10, 5, 30, .45);
}
.tile-star svg { width: 16px; height: 16px; fill: none; stroke: rgba(255, 255, 255, .85); stroke-width: 1.8; stroke-linejoin: round; }
.tile-star[aria-pressed="true"] svg { fill: var(--gold-2); stroke: var(--gold-3); }
.tile-star::after { content: ""; position: absolute; inset: -8px; } /* bigger tap area */
.tile-star:focus-visible { outline: 2px solid var(--gold-1); }
.tile-last {
  position: absolute; top: 8px; left: 10px; z-index: 2; padding: 3px 8px; border-radius: 999px;
  font-size: 10px; font-weight: 700; letter-spacing: .3px; line-height: 1.2; color: #2a1600;
  background: linear-gradient(180deg, var(--gold-1), var(--gold-2));
}
.tile-last[hidden] { display: none; }
/* Owner-set badge (bottom left): NEW or HOT. */
.tile-badge {
  position: absolute; bottom: 8px; left: 10px; z-index: 2; padding: 3px 8px; border-radius: 6px;
  font-size: 10px; font-weight: 800; letter-spacing: .5px; line-height: 1.2; color: #fff;
  background: linear-gradient(180deg, #2fd16a, #12a04a); box-shadow: 0 1px 6px rgba(0, 0, 0, .45);
}
.tile-badge.hot { background: linear-gradient(180deg, #ff7a3a, #e0281e); }
.tile-badge[hidden] { display: none; }

@media (max-width: 370px) {
  :root { --tile-height: 116px; }
  .tile-body { right: 52px; }
  .tile-go { width: 40px; height: 40px; margin-top: -20px; right: 12px; }
}

/* ---------- Footer trust bar ---------- */
.trust {
  display: flex; justify-content: space-around; align-items: center; gap: 6px;
  margin-top: 18px; padding: 4px 0;
  font-size: clamp(10px, 3vw, 12.5px); font-weight: 600; color: #fff;
}
.trust-item { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.trust-link { padding: 4px 6px; margin: -4px -6px; border: 0; border-radius: 8px; background: none; color: inherit; font: inherit; cursor: pointer; text-decoration: underline; text-decoration-color: rgba(255, 211, 77, .6); text-underline-offset: 3px; }
.trust-link:active { background: rgba(255, 255, 255, .08); }
.trust svg { width: 20px; height: 20px; flex: none; }
.trust .fill { fill: var(--gold-2); }
.trust .line { fill: none; stroke: var(--gold-2); stroke-width: 2.4; }
.trust .tick { fill: none; stroke: #4a2a00; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 350px) { .trust { font-size: 10.5px; gap: 2px; } .trust-item { gap: 4px; } .trust svg { width: 18px; height: 18px; } }

/* ---------- In-club viewer (platform sites open here) ---------- */
.viewer {
  position: fixed; left: 0; right: 0; top: 0; bottom: 0; z-index: 4; /* under the fullscreen title bar */
  display: flex; flex-direction: column; background: var(--bg);
  padding-bottom: var(--safe-bottom);
}
body.fullscreen .viewer { top: calc(var(--safe-top) + var(--content-top)); }
.viewer[hidden] { display: none; }
body.viewing { overflow: hidden; }
.viewer-bar {
  flex: none; display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 8px;
  background: linear-gradient(180deg, #1c0f3d, #120829); border-bottom: 1px solid rgba(255, 211, 77, .35);
}
.viewer-btn {
  flex: none; padding: 7px 12px; border-radius: 999px; cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 700; line-height: 1; color: var(--gold-1);
  background: rgba(255, 211, 77, .12); border: 1px solid rgba(255, 211, 77, .55);
}
.viewer-out { padding: 7px 10px; font-weight: 600; color: var(--text-dim); border-color: rgba(255, 255, 255, .25); background: transparent; }
.viewer-title {
  flex: 1; min-width: 0; text-align: center; font-weight: 800; font-size: 14px; color: #fff;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.viewer iframe { flex: 1; width: 100%; border: 0; background: #fff; }
.viewer-btn[hidden] { display: none; }
.viewer-loading {
  position: absolute; left: 0; right: 0; top: 46px; display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px; color: var(--text-dim); font-size: 13px; pointer-events: none;
}
.viewer-loading[hidden] { display: none; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 211, 77, .3); border-top-color: var(--gold-2); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--safe-bottom) + 20px); transform: translateX(-50%);
  max-width: calc(100% - 32px); padding: 12px 16px; border-radius: 12px; z-index: 20;
  background: #2a0d14; border: 1px solid #ff6b6b; color: #fff; font-size: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .5);
}
.noscript { text-align: center; padding: 40px 16px; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ======================================================================
   BDG Game homepage (index.html, body.bdg): laid out like the BDG Win app.
   Colours sampled from the BDG Win screenshots.
   ====================================================================== */
body.bdg {
  --bg: #242424;
  --bar: #333331;
  --gold: #e9b52b;
  --gold-light: #ffe08a;
  --gold-dark: #b8860b;
  --text-dim: #d9d9d9;
  --titlebar-bg: #333331;
  --topbar-h: 46px;
  background: var(--bg);
  padding: var(--topbar-h) 0 calc(var(--safe-bottom) + 140px);
}
body.bdg.fullscreen { padding-top: calc(var(--safe-top) + var(--content-top) + var(--topbar-h)); }
body.bdg .titlebar { color: #fff; }
body.bdg .splash { background: var(--bg); }
body.bdg .splash-mark { background: linear-gradient(180deg, #fff2b0, var(--gold) 55%, var(--gold-dark)); -webkit-background-clip: text; background-clip: text; }
body.bdg .splash-sub { color: var(--gold); }

/* Top bar: fixed, so it stays in place while the page scrolls under it. */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 3;
  max-width: 540px; margin: 0 auto; box-sizing: border-box;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  height: var(--topbar-h); padding: 0 12px; background: var(--bar);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .35);
}
body.bdg.fullscreen .topbar { top: calc(var(--safe-top) + var(--content-top)); }
.logo {
  position: relative; margin: 0; padding: 3px 0 2px;
  border-top: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold);
  font-size: 19px; font-weight: 900; line-height: 1; letter-spacing: .5px; color: var(--gold);
}
.logo-crown { position: absolute; top: -8px; left: 50%; width: 16px; height: 8px; margin-left: -8px; fill: var(--gold); background: var(--bar); padding: 0 2px; box-sizing: content-box; }
.topbar-side { display: flex; align-items: center; gap: 8px; }
.top-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px; height: 30px; padding: 0 10px;
  border: 0; border-radius: 8px; cursor: pointer; background: none; color: var(--gold);
  font: 700 13px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; white-space: nowrap;
}
.top-btn[hidden] { display: none; }
.top-lang { border: 1px solid rgba(233, 181, 43, .55); }
.top-lang .caret { font-size: 10px; }
.top-icon { width: 34px; padding: 0; }
.top-icon svg { width: 23px; height: 23px; }
.top-icon .stroke { fill: none; stroke: var(--gold); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.top-btn:active { background: rgba(255, 255, 255, .08); }
body.bdg .dropdown-list { background: #2e2e2c; border-color: rgba(233, 181, 43, .6); min-width: 170px; z-index: 6; }
body.bdg .dropdown-list hr { margin: 4px 6px; border: 0; border-top: 1px solid rgba(255, 255, 255, .12); }
body.bdg .dropdown-list button[hidden] { display: none; }
body.bdg .dropdown-list button:hover, body.bdg .dropdown-list li:hover,
body.bdg .dropdown-list button:focus-visible, body.bdg .dropdown-list li:focus-visible { background: rgba(233, 181, 43, .16); }

/* Banners */
.banners { position: relative; margin: 10px 12px 0; }
.banner-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  border-radius: 12px; aspect-ratio: 551 / 253; background: #333;
}
.banner-track::-webkit-scrollbar { display: none; }
.banner { flex: 0 0 100%; scroll-snap-align: start; padding: 0; border: 0; background: none; cursor: pointer; }
.banner img { display: block; width: 100%; height: 100%; object-fit: cover; }
.banner-dots { position: absolute; left: 0; right: 0; bottom: 7px; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.banner-dots span { width: 6px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .45); transition: width .25s; }
.banner-dots span.on { width: 16px; background: var(--gold); }

/* Announcements */
.notice { display: flex; align-items: center; gap: 10px; margin: 10px 12px 0; }
.notice-icon { flex: none; width: 26px; height: 26px; }
.notice-icon .fill { fill: var(--gold); }
.notice-icon .stroke { fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; }
.notice-window { flex: 1; min-width: 0; height: 40px; overflow: hidden; display: flex; align-items: center; }
.notice-text {
  margin: 0; font-size: 13px; font-weight: 600; line-height: 20px; color: #fff;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  transition: transform .35s ease, opacity .35s ease;
}
.notice-text.out { transform: translateY(-100%); opacity: 0; }

/* Register / Login / Play */
.actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 12px 12px 0; }
.action {
  height: 44px; border-radius: 10px; cursor: pointer; border: 1.5px solid var(--gold);
  font: inherit; font-size: 15px; font-weight: 800; color: var(--gold); background: rgba(233, 181, 43, .08);
}
.action-play { color: #3a2500; border-color: transparent; background: linear-gradient(180deg, #ffe08a, var(--gold) 55%, #c98d10); box-shadow: 0 2px 10px rgba(233, 181, 43, .35); }
.action:active { transform: scale(.97); }

body.bdg .promo { margin: 12px 12px 0; width: auto; border-color: var(--gold); color: var(--gold-light); background: linear-gradient(90deg, rgba(233, 181, 43, .14), rgba(184, 134, 11, .28)); }

/* Game categories: same proportions as BDG Win (6 tiles, 3 rows). */
.games { display: grid; gap: 10px; margin: 14px 9px 0; }
.games-row { display: grid; column-gap: 4.4%; }
.games-row-3 { grid-template-columns: 199fr 151fr 152fr; }
.games-row-2 { grid-template-columns: 1fr 1fr; column-gap: 3.4%; }
.game { display: block; padding: 0; border: 0; background: none; cursor: pointer; line-height: 0; }
.game img { width: 100%; height: auto; display: block; }
.game:active { transform: scale(.97); filter: brightness(1.08); }
.game:focus-visible, .banner:focus-visible, .action:focus-visible, .dock-wheel:focus-visible, .dock-link:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; }

/* Bottom bar: Safe & Secure | half "Get ₹500" wheel | 24/7 Support, then the Telegram channel button. */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 3;
  max-width: 540px; margin: 0 auto; padding: 0 12px calc(var(--safe-bottom) + 8px);
  background: var(--bar); box-shadow: 0 -4px 14px rgba(0, 0, 0, .35);
}
.dock-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; height: 58px; }
.dock-item {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 3px; padding: 0 0 8px;
  font-size: 12px; font-weight: 700; color: #fff; white-space: nowrap;
}
.dock-link { border: 0; background: none; font-family: inherit; cursor: pointer; }
.dock-link:active { opacity: .75; }
.dock-item svg { width: 22px; height: 22px; }
.dock .fill { fill: var(--gold); }
.dock .line { fill: none; stroke: var(--gold); stroke-width: 2.4; }
.dock .tick { fill: none; stroke: #3a2500; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
/* The wheel's top half rises out of the bar, as on BDG Win. */
.dock-wheel {
  position: relative; display: flex; flex-direction: column; align-items: center; width: 104px; padding: 0 0 6px;
  border: 0; background: none; cursor: pointer; color: var(--gold); font: inherit; font-size: 15px; font-weight: 800;
}
.half-wheel { width: 86px; height: 56.8px; margin-top: -26px; filter: drop-shadow(0 -2px 8px rgba(255, 190, 40, .35)); }
.wheel-text { margin-top: 1px; white-space: nowrap; }
.dock-wheel:active { transform: scale(.96); }
.wheel-spin { transform-origin: 50px 50px; animation: wheel-spin 6s linear infinite; }
@keyframes wheel-spin { to { transform: rotate(360deg); } }
body.bdg .dock .channel { margin: 4px 0 0; width: 100%; padding: 10px 14px; }
body.viewing .dock { display: none; }

body.bdg .viewer { background: var(--bg); }
body.bdg .viewer-bar { background: var(--bar); border-bottom-color: rgba(233, 181, 43, .35); }
body.bdg .viewer-btn { color: var(--gold-light); background: rgba(233, 181, 43, .12); border-color: rgba(233, 181, 43, .55); }
body.bdg .toast { background: #2e2e2c; border-color: var(--gold); bottom: calc(var(--safe-bottom) + 140px); }

@media (max-width: 350px) {
  .logo { font-size: 17px; }
  .action { font-size: 13.5px; }
}
html:has(body.bdg) { background: #242424; overscroll-behavior: none; }
body.bdg { overscroll-behavior: none; }
