/* 818 Slots — Obsidian Jade tokens (kept from initial exploration: a
   deliberate palette choice, not a Factory-mandated one). Composition below
   is an original "segmented app shell", not the stacked-lobby pattern. */

:root {
  --bg: #090d0b;
  --surface-1: #10171399;
  --surface-2: #141d19;
  --surface-3: #1b2621;
  --surface-border: #253530;
  --surface-border-soft: #1c2823;

  --ink: #f4faf7;
  --ink-soft: #c7d6ce;
  --ink-muted: #8ea299;
  --ink-faint: #607169;

  --jade: #27c78d;
  --jade-strong: #1ea373;
  --jade-soft: #163529;
  --gold: #e6b354;
  --gold-strong: #c99a3f;
  --gold-soft: #2e2718;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 26px;
  --radius-pill: 999px;

  --font-ui: "Manrope", "Noto Sans Myanmar", system-ui, sans-serif;
  --font-my: "Noto Sans Myanmar", "Manrope", system-ui, sans-serif;

  --bar-h: 60px;
  --cta-h: 60px;
  --container-max: 1180px;
  --frame-max: 460px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(120% 55% at 50% 0%, #12211b 0%, #060a08 58%, #020403 100%);
  color: var(--ink);
  font-family: var(--font-my);
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
  min-height: 100vh;
}

/* Fixed mobile-app frame — same shell renders on phones and desktop browsers alike,
   the way most Myanmar/SEO casino portals ship (no separate desktop layout). */
.frame {
  max-width: var(--frame-max);
  margin: 0 auto;
  background: var(--bg);
  min-height: 100vh;
  position: relative;
  box-shadow: 0 0 0 1px var(--surface-border-soft), 0 50px 120px rgba(0,0,0,0.55);
}
h1, h2, h3 { font-family: var(--font-ui); font-weight: 800; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--jade); outline-offset: 2px; }

.container { max-width: var(--container-max); margin: 0 auto; padding: 0 16px; }

/* ============ TOP BAR — one identity, one action, done ============ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--bar-h);
  display: flex;
  align-items: center;
  background: rgba(9,13,11,0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--surface-border-soft);
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 10px; }
.brand { display: flex; align-items: center; gap: 9px; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand-name { font-family: var(--font-ui); font-weight: 800; font-size: 16px; }
.brand-name em { font-style: normal; color: var(--jade); }
.topbar-right { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-pill);
  border: 1px solid var(--surface-border);
  color: var(--ink-soft);
  flex-shrink: 0;
}
.icon-btn svg { width: 17px; height: 17px; }
.pill-cta {
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 12.5px;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--jade), var(--jade-strong));
  color: #06140f;
  white-space: nowrap;
}

/* Inline search drawer beneath the top bar */
.search-drawer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.22s ease;
  background: var(--surface-1);
  border-bottom: 1px solid var(--surface-border-soft);
}
.search-drawer.open { max-height: 70px; }
.search-drawer-inner { padding: 10px 16px; max-width: var(--container-max); margin: 0 auto; }
.search-box {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface-2);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-pill);
  padding: 9px 14px;
}
.search-box input {
  border: 0; background: transparent; color: var(--ink);
  font-family: var(--font-ui); font-size: 14px; width: 100%; outline: none;
}
.search-box input::placeholder { color: var(--ink-faint); }
.search-box svg { flex-shrink: 0; color: var(--ink-faint); width: 16px; height: 16px; }

/* ============ HERO — static title block + real promo banner carousel ============ */
.hero {
  margin-top: 14px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(160deg, #0f1613 0%, #0a0e0c 65%);
  border: 1px solid var(--surface-border);
}
.hero-copy { padding: 22px 20px 4px; }
.hero-kicker {
  font-family: var(--font-ui); font-size: 11px; font-weight: 800;
  letter-spacing: 0.07em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 8px; display: block;
}
.hero-title { font-family: var(--font-my); font-weight: 700; font-size: 21px; line-height: 1.3; color: var(--ink); margin-bottom: 8px; max-width: 34ch; }
.hero-sub { font-size: 13px; color: var(--ink-soft); line-height: 1.55; max-width: 46ch; margin-bottom: 16px; }
.hero-cta { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-ui); font-weight: 800; font-size: 13.5px; padding: 12px 22px; border-radius: var(--radius-pill); background: linear-gradient(135deg, var(--gold), var(--gold-strong)); color: #241a05; }

/* Auto-rotating promotion banner strip inside hero */
.hero-banner { position: relative; margin-top: 18px; overflow: hidden; }
.hero-banner-track { display: flex; transition: transform 0.5s cubic-bezier(0.65,0,0.35,1); }
.hero-slide { flex: 0 0 100%; display: block; aspect-ratio: 500/284; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-banner-dots { display: flex; justify-content: center; gap: 6px; padding: 10px 0 14px; }
.hero-banner-dots .promo-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--surface-border); transition: background 0.2s ease, width 0.2s ease; cursor: pointer; border: none; padding: 0; }
.hero-banner-dots .promo-dot[aria-current="true"] { background: var(--jade); width: 18px; border-radius: var(--radius-pill); }

/* ============ TRENDING RAIL — appears once, above the tab switcher ============ */
.trending { margin-top: 26px; }
.trending-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.trending-title { font-size: 15px; color: var(--ink); }
.trending-title em { font-style: normal; color: var(--jade); }
.trending-rail { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.trending-rail::-webkit-scrollbar { display: none; }
.trending-card { flex: 0 0 108px; border-radius: var(--radius-md); overflow: hidden; background: var(--surface-2); border: 1px solid var(--surface-border-soft); }
.trending-card img { aspect-ratio: 3/4; object-fit: cover; width: 100%; }
.trending-card-name { font-family: var(--font-ui); font-weight: 700; font-size: 10.5px; color: var(--ink-soft); padding: 7px 8px 9px; line-height: 1.3; }

/* ============ SEGMENTED TAB SWITCHER — the composition's core idea ============ */
.tabbar-wrap {
  position: sticky;
  top: var(--bar-h);
  z-index: 90;
  background: var(--bg);
  padding: 16px 0 12px;
  margin-top: 24px;
}
.tabbar {
  display: flex;
  gap: 4px;
  background: var(--surface-2);
  border: 1px solid var(--surface-border-soft);
  border-radius: var(--radius-pill);
  padding: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabbar::-webkit-scrollbar { display: none; }
.tab-btn {
  flex-shrink: 0;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 12.5px;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  color: var(--ink-muted);
  white-space: nowrap;
}
.tab-btn[aria-selected="true"] {
  background: var(--jade);
  color: #06140f;
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.panel-toolbar { display: flex; gap: 8px; margin-bottom: 14px; overflow-x: auto; scrollbar-width: none; }
.panel-toolbar::-webkit-scrollbar { display: none; }
.provider-chip {
  flex-shrink: 0;
  font-family: var(--font-ui); font-size: 11.5px; font-weight: 700;
  padding: 7px 13px; border-radius: var(--radius-pill);
  border: 1px solid var(--surface-border);
  background: var(--surface-2); color: var(--ink-muted);
}
.provider-chip[aria-pressed="true"] { background: var(--jade-soft); border-color: var(--jade); color: var(--jade); }

.game-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px; }

.game-card { background: var(--surface-2); border: 1px solid var(--surface-border-soft); border-radius: var(--radius-md); overflow: hidden; }
.game-card-media { position: relative; aspect-ratio: 3/4; background: var(--surface-3); }
.game-card-media img { width: 100%; height: 100%; object-fit: cover; }
.game-card-provider { position: absolute; bottom: 7px; left: 7px; background: rgba(9,13,11,0.75); backdrop-filter: blur(4px); color: var(--ink-soft); font-family: var(--font-ui); font-size: 9px; font-weight: 700; padding: 3px 7px; border-radius: var(--radius-pill); }
.game-card-body { padding: 8px 9px 10px; }
.game-card-name { font-family: var(--font-ui); font-weight: 700; font-size: 12px; color: var(--ink); line-height: 1.3; min-height: 2.5em; margin-bottom: 7px; }
.game-card-play { display: block; text-align: center; font-family: var(--font-ui); font-weight: 800; font-size: 10.5px; letter-spacing: 0.02em; color: var(--jade); background: var(--jade-soft); border: 1px solid rgba(39,199,141,0.3); border-radius: var(--radius-pill); padding: 6px 0; }

.load-more-wrap { display: flex; justify-content: center; margin-top: 16px; }
.btn-outline { font-family: var(--font-ui); font-weight: 700; font-size: 13px; color: var(--ink-soft); border: 1px solid var(--surface-border); border-radius: var(--radius-pill); padding: 10px 22px; }

/* Informational tab panels (Sports / Lottery) — one wide stage, not a card grid */
.stage-panel { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; }
.stage-panel img { width: 100%; height: 100%; object-fit: cover; }
.stage-panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(9,13,11,0.94) 15%, rgba(9,13,11,0.3) 70%); }
.stage-panel-copy { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px; z-index: 2; }
.stage-panel-title { font-family: var(--font-my); font-weight: 700; font-size: 18px; color: var(--ink); margin-bottom: 8px; }
.stage-panel-desc { font-size: 13px; color: var(--ink-soft); line-height: 1.6; max-width: 52ch; margin-bottom: 14px; }

/* ============ PROMOTIONS — horizontal snap carousel, not a grid ============ */
.section { margin-top: 30px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.section-title { font-size: 16px; color: var(--ink); }
.section-title em { font-style: normal; color: var(--jade); }
.section-sub { font-size: 12.5px; color: var(--ink-muted); margin: -6px 0 12px; line-height: 1.6; max-width: 62ch; }
.section-link { font-family: var(--font-ui); font-size: 12.5px; font-weight: 700; color: var(--jade); white-space: nowrap; }

.promo-carousel {
  display: flex; gap: 12px; overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; padding-bottom: 4px;
}
.promo-carousel::-webkit-scrollbar { display: none; }
.promo-card {
  flex: 0 0 78%;
  scroll-snap-align: start;
  background: var(--surface-2);
  border: 1px solid var(--surface-border-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.promo-card img { width: 100%; aspect-ratio: 500/284; object-fit: cover; background: var(--surface-3); }
.promo-card-body { padding: 12px 14px 14px; }
.promo-card-tag { display: inline-block; font-family: var(--font-ui); font-size: 9.5px; font-weight: 800; color: var(--gold); background: var(--gold-soft); padding: 3px 9px; border-radius: var(--radius-pill); margin-bottom: 8px; }
.promo-card-title { font-size: 13px; line-height: 1.5; color: var(--ink-soft); }

.promo-dots { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
.promo-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--surface-border); transition: background 0.2s ease, width 0.2s ease; }
.promo-dot[aria-current="true"] { background: var(--jade); width: 18px; border-radius: var(--radius-pill); }

/* ============ TRUST — a quiet strip, not a bordered feature box ============ */
.trust-strip { display: flex; align-items: center; gap: 18px; overflow-x: auto; scrollbar-width: none; padding: 4px 0 14px; }
.trust-strip::-webkit-scrollbar { display: none; }
.trust-strip img { height: 26px; width: auto; object-fit: contain; opacity: 0.75; flex-shrink: 0; }
.trust-marks-row { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 14px; border-top: 1px solid var(--surface-border-soft); }
.trust-mark { display: flex; align-items: center; gap: 8px; }
.trust-mark img { width: 28px; height: 28px; object-fit: contain; border-radius: 6px; background: #0d1310; padding: 3px; opacity: 1; }
.trust-mark-label { font-family: var(--font-ui); font-size: 10px; color: var(--ink-muted); max-width: 130px; line-height: 1.3; }
.trust-note { margin-top: 14px; font-size: 11px; color: var(--ink-faint); line-height: 1.65; max-width: 78ch; }

/* ============ NEWS — editorial cards, distinct from game-card grid ============ */
.news-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.news-card { background: var(--surface-2); border: 1px solid var(--surface-border-soft); border-radius: var(--radius-md); overflow: hidden; display: flex; flex-direction: column; }
.news-card-media { aspect-ratio: 16/10; background: var(--surface-3); overflow: hidden; }
.news-card-media img { width: 100%; height: 100%; object-fit: cover; }
.news-card-body { padding: 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.news-card-date { font-family: var(--font-ui); font-size: 10.5px; font-weight: 700; color: var(--ink-faint); letter-spacing: 0.02em; }
.news-card-title { font-family: var(--font-my); font-weight: 600; font-size: 14px; line-height: 1.5; color: var(--ink); }
.news-card-excerpt { font-size: 12px; line-height: 1.6; color: var(--ink-muted); flex: 1; }
.news-card-link { font-family: var(--font-ui); font-size: 11.5px; font-weight: 800; color: var(--jade); margin-top: 4px; }

/* ============ PLAYER FEEDBACK — clearly labeled illustrative examples ============ */
.feedback-notice {
  font-family: var(--font-ui); font-size: 10.5px; color: var(--ink-faint);
  background: var(--surface-2); border: 1px dashed var(--surface-border);
  border-radius: var(--radius-sm); padding: 8px 12px; margin-bottom: 14px;
  display: inline-block;
}
.feedback-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.feedback-card { background: var(--surface-2); border: 1px solid var(--surface-border-soft); border-radius: var(--radius-md); padding: 16px; }
.feedback-stars { display: flex; gap: 2px; margin-bottom: 10px; }
.feedback-stars svg { width: 13px; height: 13px; color: var(--gold); }
.feedback-quote { font-size: 13px; line-height: 1.7; color: var(--ink-soft); margin-bottom: 12px; font-style: italic; }
.feedback-meta { display: flex; align-items: center; gap: 9px; }
.feedback-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--jade-soft); color: var(--jade); display: flex; align-items: center; justify-content: center; font-family: var(--font-ui); font-weight: 800; font-size: 12px; flex-shrink: 0; }
.feedback-name { font-family: var(--font-ui); font-weight: 700; font-size: 12px; color: var(--ink); }
.feedback-tag { font-size: 10.5px; color: var(--ink-faint); }

/* ============ FAQ ============ */
.faq-list { display: flex; flex-direction: column; gap: 9px; }
.faq-item { background: var(--surface-2); border: 1px solid var(--surface-border-soft); border-radius: var(--radius-md); overflow: hidden; }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 15px; font-family: var(--font-my); font-weight: 600; font-size: 13px; text-align: left; color: var(--ink); }
.faq-icon { flex-shrink: 0; width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; color: var(--jade); transition: transform 0.2s ease; }
.faq-item[data-open="true"] .faq-icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; padding: 0 15px; }
.faq-item[data-open="true"] .faq-a { max-height: 300px; padding: 0 15px 15px; }
.faq-a p { font-size: 12.5px; color: var(--ink-soft); line-height: 1.7; }

/* ============ FOOTER ============ */
.site-footer { margin-top: 44px; padding: 26px 0 18px; border-top: 1px solid var(--surface-border-soft); }
.footer-top { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.footer-top img { width: 26px; height: 26px; border-radius: 7px; }
.footer-desc { font-size: 12px; color: var(--ink-muted); line-height: 1.7; max-width: 60ch; margin-bottom: 16px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 14px 20px; margin-bottom: 18px; }
.footer-nav a { font-size: 12.5px; color: var(--ink-soft); }
.footer-nav a:hover { color: var(--jade); }
.social-row { display: flex; gap: 10px; margin-bottom: 18px; }
.social-icon {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-pill);
  border: 1px solid var(--surface-border);
  color: var(--ink-muted);
  flex-shrink: 0;
}
.social-icon svg { width: 17px; height: 17px; }
.social-icon:hover { color: var(--jade); border-color: var(--jade); }
.footer-legal { font-size: 10.5px; color: var(--ink-faint); line-height: 1.7; padding-top: 14px; border-top: 1px solid var(--surface-border-soft); }
.footer-copy { font-size: 10.5px; color: var(--ink-faint); margin-top: 8px; }

/* ============ STICKY MOBILE CTA — one action, pinned to the frame's width ============ */
.mobile-cta {
  position: fixed;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  width: min(calc(100% - 24px), calc(var(--frame-max) - 24px));
  z-index: 200;
  height: var(--cta-h);
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--jade), var(--jade-strong));
  color: #06140f;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-ui); font-weight: 800; font-size: 14.5px;
  box-shadow: 0 14px 30px rgba(0,0,0,0.5);
}
.frame { padding-bottom: calc(var(--cta-h) + 26px); }

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