/* ===========================================================
   299bt base stylesheet (prefix: g112-)
   Mobile-first gaming canvas (320-430px).
   Palette: #1A1A2E (dark bg) / #F5F5F5 (light text) /
            #00695C (deep teal) / #80CBC4 (mid teal) / #AFEEEE (light teal accent)
   Nav direction: edge-aligned functional header, layered dropdown,
                  segmented bottom action bar, borderless symbols with text,
                  top indicator active line, short vertical lift micro-interaction.
   =========================================================== */

:root {
  --g112-bg: #1A1A2E;
  --g112-bg-2: #15152a;
  --g112-bg-3: #202038;
  --g112-card: #232342;
  --g112-text: #F5F5F5;
  --g112-text-dim: #c9c9e0;
  --g112-muted: #8a8aae;
  --g112-deep: #00695C;
  --g112-mid: #80CBC4;
  --g112-light: #AFEEEE;
  --g112-line: rgba(175, 238, 238, 0.18);
  --g112-line-strong: rgba(175, 238, 238, 0.42);
  --g112-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
  --g112-radius: 14px;
  --g112-radius-sm: 10px;
  --g112-header-h: 58px;
  --g112-bottom-h: 66px;
  --g112-max: 440px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--g112-bg);
  color: var(--g112-text);
  font-family: "Hind Siliguri", "Noto Sans Bengali", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--g112-light); text-decoration: none; }
a:focus-visible { outline: 2px solid var(--g112-light); outline-offset: 2px; }

/* Phone canvas frame for wider screens */
.g112-stage {
  max-width: var(--g112-max);
  margin: 0 auto;
  min-height: 100vh;
  background:
    radial-gradient(120% 60% at 50% -10%, rgba(0,105,92,0.35), transparent 60%),
    linear-gradient(180deg, #1A1A2E 0%, #15152a 40%, #1A1A2E 100%);
  box-shadow: 0 0 60px rgba(0,0,0,0.45);
  position: relative;
}

/* ---------- Header ---------- */
.g112-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--g112-header-h);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  background: linear-gradient(180deg, rgba(21,21,42,0.96), rgba(21,21,42,0.86));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--g112-line);
}

.g112-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.g112-brand img { width: 32px; height: 32px; border-radius: 8px; }
.g112-brand-name {
  font-weight: 800;
  letter-spacing: 0.4px;
  font-size: 18px;
  color: var(--g112-light);
  white-space: nowrap;
}
.g112-brand-name span { color: var(--g112-mid); }

.g112-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.g112-btn {
  -webkit-appearance: none;
  appearance: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: 13.5px;
  border-radius: 999px;
  padding: 9px 14px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
  color: var(--g112-text);
}
.g112-btn:active { transform: translateY(-2px); }

.g112-btn-login {
  background: transparent;
  border: 1px solid var(--g112-line-strong);
  color: var(--g112-light);
}
.g112-btn-register {
  background: linear-gradient(135deg, #00695C, #80CBC4);
  color: #0c1020;
  box-shadow: 0 6px 16px rgba(0,105,92,0.35);
}

.g112-menu-toggle {
  background: transparent;
  border: 1px solid var(--g112-line);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--g112-light);
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}
.g112-menu-toggle:hover { background: rgba(175,238,238,0.08); }
.g112-menu-toggle:active { transform: translateY(-1px); }

/* ---------- Layered dropdown menu ---------- */
.g112-menu {
  position: absolute;
  top: var(--g112-header-h);
  left: 0;
  right: 0;
  background: rgba(15,15,30,0.98);
  border-bottom: 1px solid var(--g112-line);
  padding: 14px 14px 18px;
  display: none;
  z-index: 55;
  box-shadow: var(--g112-shadow);
}
.g112-menu.is-open { display: block; }
.g112-menu-group { margin-bottom: 14px; }
.g112-menu-group:last-child { margin-bottom: 0; }
.g112-menu-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--g112-mid);
  margin: 4px 0 8px;
}
.g112-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.g112-menu-grid a {
  display: block;
  background: var(--g112-card);
  border: 1px solid var(--g112-line);
  padding: 10px 12px;
  border-radius: var(--g112-radius-sm);
  color: var(--g112-text);
  font-size: 13.5px;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.g112-menu-grid a:active { transform: translateY(-2px); border-color: var(--g112-line-strong); }

.g112-menu-promo {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.g112-menu-promo button {
  flex: 1 1 45%;
  background: linear-gradient(135deg, #00695C, #80CBC4);
  color: #0c1020;
  border: 0;
  border-radius: 999px;
  padding: 10px 12px;
  font-weight: 700;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: transform 0.18s ease;
}
.g112-menu-promo button:active { transform: translateY(-2px); }

/* ---------- Layout container ---------- */
.g112-main {
  padding: 14px 12px 32px;
}

.g112-section { margin: 22px 0 0; }
.g112-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 10px;
}
.g112-section-head h2 {
  font-size: 16.5px;
  margin: 0;
  color: var(--g112-light);
  position: relative;
  padding-left: 12px;
}
.g112-section-head h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 18px;
  border-radius: 4px;
  background: linear-gradient(180deg, #AFEEEE, #00695C);
}
.g112-section-head .g112-more {
  font-size: 12px;
  color: var(--g112-mid);
}

/* ---------- Hero carousel ---------- */
.g112-hero {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--g112-shadow);
  margin-top: 4px;
}
.g112-hero-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}
.g112-hero-slide {
  flex: 0 0 100%;
  position: relative;
}
.g112-hero-slide img {
  width: 100%;
  height: 188px;
  object-fit: cover;
  filter: brightness(0.78) saturate(1.1);
}
.g112-hero-cap {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.g112-hero-cap strong {
  font-size: 18px;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0,0,0,0.6);
}
.g112-hero-cap span {
  font-size: 12.5px;
  color: var(--g112-light);
  text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}
.g112-hero-cap .g112-btn {
  align-self: flex-start;
  margin-top: 4px;
}
.g112-hero-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}
.g112-hero-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(175,238,238,0.45);
  display: inline-block;
  transition: background 0.2s ease, width 0.2s ease;
}
.g112-hero-dots i.is-active {
  width: 18px;
  border-radius: 4px;
  background: var(--g112-light);
}

/* ---------- Quick stats strip ---------- */
.g112-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}
.g112-stats .g112-stat {
  background: var(--g112-card);
  border: 1px solid var(--g112-line);
  border-radius: var(--g112-radius-sm);
  padding: 10px 8px;
  text-align: center;
}
.g112-stat b { display: block; color: var(--g112-light); font-size: 16px; }
.g112-stat small { color: var(--g112-muted); font-size: 11px; }

/* ---------- Quick entry chips ---------- */
.g112-chips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 14px;
}
.g112-chip {
  background: var(--g112-card);
  border: 1px solid var(--g112-line);
  border-radius: var(--g112-radius-sm);
  padding: 10px 6px;
  text-align: center;
  font-size: 12px;
  color: var(--g112-text);
  transition: transform 0.18s ease;
  cursor: pointer;
}
.g112-chip:active { transform: translateY(-2px); }
.g112-chip svg, .g112-chip img {
  width: 26px;
  height: 26px;
  margin: 0 auto 4px;
  display: block;
}

/* ---------- Game grid ---------- */
.g112-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.g112-grid-5 { grid-template-columns: repeat(4, 1fr); }
@media (min-width: 360px) {
  .g112-grid-5 { grid-template-columns: repeat(5, 1fr); }
}
.g112-card {
  background: var(--g112-card);
  border: 1px solid var(--g112-line);
  border-radius: var(--g112-radius-sm);
  overflow: hidden;
  position: relative;
  transition: transform 0.18s ease, border-color 0.18s ease;
  cursor: pointer;
}
.g112-card:active { transform: translateY(-3px); border-color: var(--g112-line-strong); }
.g112-card .g112-card-img {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #0d0d1d;
  overflow: hidden;
}
.g112-card .g112-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.g112-card-flag {
  position: absolute;
  top: 4px;
  left: 4px;
  background: linear-gradient(135deg, #00695C, #80CBC4);
  color: #0c1020;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  letter-spacing: 0.4px;
}
.g112-card-title {
  padding: 6px 6px 8px;
  font-size: 11.5px;
  line-height: 1.3;
  text-align: center;
  color: var(--g112-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 32px;
}

/* ---------- Winners strip ---------- */
.g112-winners {
  background: var(--g112-card);
  border: 1px solid var(--g112-line);
  border-radius: var(--g112-radius);
  padding: 12px;
  overflow: hidden;
}
.g112-winners-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}
.g112-winner {
  flex: 0 0 200px;
  background: linear-gradient(135deg, rgba(0,105,92,0.35), rgba(128,203,196,0.15));
  border: 1px solid var(--g112-line-strong);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.g112-winner img { width: 36px; height: 36px; border-radius: 8px; }
.g112-winner b { color: var(--g112-light); font-size: 13px; display: block; }
.g112-winner small { color: var(--g112-text-dim); font-size: 11px; }

/* ---------- Feature blocks ---------- */
.g112-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.g112-feature {
  background: var(--g112-card);
  border: 1px solid var(--g112-line);
  border-radius: var(--g112-radius);
  padding: 12px;
}
.g112-feature h3 { margin: 0 0 6px; font-size: 14px; color: var(--g112-light); }
.g112-feature p { margin: 0; font-size: 12.5px; color: var(--g112-text-dim); }
.g112-feature .g112-feat-ico {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, #00695C, #80CBC4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

/* ---------- How to play steps ---------- */
.g112-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.g112-steps li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--g112-card);
  border: 1px solid var(--g112-line);
  border-radius: var(--g112-radius-sm);
  padding: 10px 12px;
}
.g112-step-num {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #AFEEEE, #80CBC4);
  color: #0c1020;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}
.g112-steps li b { color: var(--g112-light); display: block; font-size: 13.5px; }
.g112-steps li span { color: var(--g112-text-dim); font-size: 12.5px; }

/* ---------- Category highlights ---------- */
.g112-cat-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.g112-cat-card {
  background: var(--g112-card);
  border: 1px solid var(--g112-line);
  border-radius: var(--g112-radius);
  padding: 12px;
}
.g112-cat-card h3 { margin: 0 0 4px; font-size: 14px; color: var(--g112-light); }
.g112-cat-card p { margin: 0; font-size: 12.5px; color: var(--g112-text-dim); }

/* ---------- Comparison / RTP mini ---------- */
.g112-compare {
  width: 100%;
  border-collapse: collapse;
  background: var(--g112-card);
  border: 1px solid var(--g112-line);
  border-radius: var(--g112-radius-sm);
  overflow: hidden;
  font-size: 12.5px;
}
.g112-compare th, .g112-compare td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid var(--g112-line);
}
.g112-compare th { color: var(--g112-mid); font-weight: 700; background: rgba(0,105,92,0.25); }
.g112-compare tr:last-child td { border-bottom: 0; }
.g112-compare td b { color: var(--g112-light); }

/* ---------- SEO content / prose ---------- */
.g112-prose {
  background: var(--g112-card);
  border: 1px solid var(--g112-line);
  border-radius: var(--g112-radius);
  padding: 14px;
  font-size: 13.5px;
  color: var(--g112-text-dim);
  line-height: 1.7;
}
.g112-prose h2 { color: var(--g112-light); margin: 14px 0 6px; font-size: 15.5px; }
.g112-prose h2:first-child { margin-top: 0; }
.g112-prose p { margin: 0 0 10px; }
.g112-prose a { color: var(--g112-light); text-decoration: underline; text-underline-offset: 2px; }
.g112-prose ul { margin: 0 0 10px; padding-left: 18px; }
.g112-prose li { margin-bottom: 4px; }

/* ---------- Inline promo banner ---------- */
.g112-promo-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: linear-gradient(135deg, rgba(0,105,92,0.55), rgba(128,203,196,0.25));
  border: 1px solid var(--g112-line-strong);
  border-radius: var(--g112-radius);
  padding: 12px;
  margin: 16px 0 0;
}
.g112-promo-inline .g112-pi-text b { color: #fff; display: block; font-size: 14px; }
.g112-promo-inline .g112-pi-text span { color: var(--g112-light); font-size: 12px; }

/* ---------- Extended footer ---------- */
.g112-extended {
  margin-top: 26px;
  padding: 16px 12px;
  background: rgba(15,15,30,0.65);
  border-top: 1px solid var(--g112-line);
  border-radius: 18px 18px 0 0;
}
.g112-ext-brand {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.g112-ext-brand img { width: 40px; height: 40px; border-radius: 10px; }
.g112-ext-brand p { margin: 0; font-size: 12.5px; color: var(--g112-text-dim); }

.g112-ext-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--g112-mid);
  margin: 14px 0 8px;
}

.g112-ext-promos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.g112-ext-promos button {
  background: var(--g112-card);
  border: 1px solid var(--g112-line);
  color: var(--g112-text);
  border-radius: var(--g112-radius-sm);
  padding: 10px;
  text-align: left;
  font-family: inherit;
  font-size: 12.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.g112-ext-promos button:active { transform: translateY(-2px); border-color: var(--g112-line-strong); }
.g112-ext-promos button b { color: var(--g112-light); font-size: 12.5px; }
.g112-ext-promos button span { color: var(--g112-muted); font-size: 11px; display: block; }

.g112-ext-promos .g112-ext-promo-primary {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #00695C, #80CBC4);
  color: #0c1020;
  justify-content: center;
  font-weight: 800;
}

.g112-ext-dir {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  font-size: 12.5px;
}
.g112-ext-dir a {
  background: var(--g112-card);
  border: 1px solid var(--g112-line);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--g112-text);
  transition: transform 0.18s ease;
}
.g112-ext-dir a:active { transform: translateY(-2px); }

.g112-ext-disclaimer {
  margin-top: 14px;
  padding: 10px;
  background: rgba(0,105,92,0.18);
  border: 1px dashed var(--g112-line-strong);
  border-radius: var(--g112-radius-sm);
  font-size: 11.5px;
  color: var(--g112-text-dim);
}

/* ---------- Footer copyright ---------- */
.g112-footer {
  padding: 14px 12px calc(var(--g112-bottom-h) + 16px);
  text-align: center;
  font-size: 11.5px;
  color: var(--g112-muted);
}

/* ---------- Bottom nav (segmented action bar) ---------- */
.g112-bottom {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.g112-bottom-inner {
  pointer-events: auto;
  width: 100%;
  max-width: var(--g112-max);
  height: var(--g112-bottom-h);
  background: linear-gradient(180deg, rgba(20,20,40,0.98), rgba(12,12,26,0.98));
  border-top: 1px solid var(--g112-line);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 6px 6px calc(env(safe-area-inset-bottom, 0px) + 6px);
}
.g112-bottom-btn {
  background: transparent;
  border: 0;
  color: var(--g112-text-dim);
  font-family: inherit;
  font-size: 10.5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  position: relative;
  padding: 4px 2px;
  transition: transform 0.18s ease, color 0.18s ease;
}
.g112-bottom-btn svg, .g112-bottom-btn img {
  width: 22px;
  height: 22px;
}
.g112-bottom-btn:active { transform: translateY(-2px); }
.g112-bottom-btn.is-active { color: var(--g112-light); }
.g112-bottom-btn.is-active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, #AFEEEE, #80CBC4);
}
.g112-bottom-btn.is-promo {
  color: #0c1020;
}
.g112-bottom-btn .g112-bn-promo-pill {
  background: linear-gradient(135deg, #00695C, #80CBC4);
  color: #0c1020;
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 800;
  font-size: 11px;
}

/* ---------- Utility ---------- */
.g112-hide { display: none !important; }
.g112-bottom-safe { height: var(--g112-bottom-h); }

/* ---------- Responsive tweaks ---------- */
@media (min-width: 400px) {
  .g112-hero-slide img { height: 210px; }
  .g112-card-title { font-size: 12px; }
}
