/* ==========================================================================
   366bet login app - compact-79811e-tokens.css
   Mobile-first token sheet for a 320-430px phone canvas (wide screens keep
   the same centered canvas). Palette: #B8860B / #CD853F / #1B263B / #DEE2E6.
   Design keys: poster titles + narrow body, light-rounded cards with compact
   buttons, game tiles drawn as image + bottom name bar, compact
   metric-and-explain rhythm, micro icon-state motion, tab-style top bar,
   expandable nav drawer, floating bottom dock.
   ========================================================================== */

/* ------------------------------ Tokens --------------------------------- */
:root {
  --c9811e-ink: #1B263B;
  --c9811e-ink-deep: #131C2E;
  --c9811e-ink-well: #101828;
  --c9811e-ink-raise: #22314E;
  --c9811e-paper: #DEE2E6;
  --c9811e-muted: #9FACBE;
  --c9811e-gold: #B8860B;
  --c9811e-gold-soft: #CD853F;
  --c9811e-gold-glow: rgba(205, 133, 63, 0.30);
  --c9811e-gold-wash: rgba(184, 134, 11, 0.18);
  --c9811e-hair: rgba(222, 226, 230, 0.14);
  --c9811e-hair-strong: rgba(222, 226, 230, 0.26);
  --c9811e-radius-card: 10px;
  --c9811e-radius-btn: 8px;
  --c9811e-radius-pill: 999px;
  --c9811e-ease: cubic-bezier(0.32, 0.72, 0.35, 1);
  --c9811e-tap: 44px;
  --c9811e-header-h: 108px;
  --c9811e-dock-h: 84px;
  --c9811e-font-body: "Noto Sans Bengali", "Hind Siliguri", "Segoe UI", system-ui, -apple-system, sans-serif;
  --c9811e-font-poster: "Noto Sans Bengali", "Segoe UI", system-ui, sans-serif;
}

/* ------------------------------ Reset ---------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: #0D1422;
  color: var(--c9811e-paper);
  font-family: var(--c9811e-font-body);
  font-size: 14.5px;
  line-height: 1.62;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
button, input, select { font: inherit; color: inherit; }
a { color: var(--c9811e-gold-soft); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--c9811e-gold-soft); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--c9811e-gold); color: #10131B; }

/* ---------------------------- Phone canvas ------------------------------ */
.c9811e-shell {
  position: relative;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--c9811e-ink);
  box-shadow: 0 0 44px rgba(0, 0, 0, 0.55);
  overflow-x: clip;
}
.c9811e-skip {
  position: absolute;
  top: -48px; left: 10px;
  z-index: 90;
  background: var(--c9811e-gold);
  color: #10131B;
  padding: 8px 14px;
  border-radius: var(--c9811e-radius-btn);
  font-weight: 700;
  font-size: 13px;
  transition: top 0.18s var(--c9811e-ease);
}
.c9811e-skip:focus { top: 8px; text-decoration: none; }

/* ------------------------- Top bar (tab style) -------------------------- */
.c9811e-topbar {
  position: fixed;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 60;
  background: linear-gradient(180deg, #1E2B45 0%, var(--c9811e-ink) 100%);
  border-bottom: 1px solid var(--c9811e-hair);
  transition: box-shadow 0.25s var(--c9811e-ease);
}
.c9811e-topbar[data-scrolled="true"] {
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5);
}
.c9811e-brandrow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px 7px;
  min-height: 56px;
}
.c9811e-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-right: auto;
  min-height: var(--c9811e-tap);
  color: inherit;
  border-radius: var(--c9811e-radius-btn);
}
.c9811e-brand:hover { text-decoration: none; }
.c9811e-logo {
  width: 38px; height: 38px;
  border-radius: 9px;
  border: 1px solid var(--c9811e-gold-glow);
  box-shadow: 0 0 0 3px var(--c9811e-gold-wash);
  object-fit: cover;
  flex: none;
  background: var(--c9811e-ink-well);
}
.c9811e-brandname { display: flex; flex-direction: column; line-height: 1.1; }
.c9811e-brandname b {
  font-family: var(--c9811e-font-poster);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.2px;
  background: linear-gradient(92deg, var(--c9811e-gold-soft), #E8C98F);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.c9811e-brandname i {
  font-style: normal;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--c9811e-muted);
}
/* Hamburger: 3 lines that fold into an X when the drawer opens */
.c9811e-menubtn {
  flex: none;
  width: var(--c9811e-tap);
  height: var(--c9811e-tap);
  display: grid;
  place-content: center;
  gap: 5px;
  background: var(--c9811e-ink-raise);
  border: 1px solid var(--c9811e-hair-strong);
  border-radius: var(--c9811e-radius-btn);
  cursor: pointer;
  transition: transform 0.14s var(--c9811e-ease), border-color 0.14s;
}
.c9811e-menubtn:active { transform: scale(0.9); }
.c9811e-menubtn:hover { border-color: var(--c9811e-gold-glow); }
.c9811e-menuline {
  width: 19px; height: 2px;
  border-radius: 2px;
  background: var(--c9811e-paper);
  transition: transform 0.22s var(--c9811e-ease), opacity 0.18s;
}
.c9811e-menubtn[aria-expanded="true"] .c9811e-menuline:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.c9811e-menubtn[aria-expanded="true"] .c9811e-menuline:nth-child(2) { opacity: 0; }
.c9811e-menubtn[aria-expanded="true"] .c9811e-menuline:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Action tabs: folder-tab look under the brand row */
.c9811e-actiontabs {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 8px;
  padding: 0 12px 9px;
}
.c9811e-tabbtn {
  min-height: var(--c9811e-tap);
  border-radius: 13px 13px 9px 9px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.2px;
  cursor: pointer;
  transition: transform 0.13s var(--c9811e-ease), filter 0.13s;
}
.c9811e-tabbtn:active { transform: scale(0.96); }
.c9811e-tabbtn--reg {
  border: none;
  background: linear-gradient(135deg, var(--c9811e-gold-soft) 0%, var(--c9811e-gold) 100%);
  color: #141A28;
  box-shadow: 0 6px 16px rgba(184, 134, 11, 0.32);
}
.c9811e-tabbtn--reg:hover { filter: brightness(1.08); }
.c9811e-tabbtn--login {
  background: transparent;
  border: 1px solid var(--c9811e-gold-soft);
  color: var(--c9811e-gold-soft);
}
.c9811e-tabbtn--login:hover { background: var(--c9811e-gold-wash); }

/* Expandable nav drawer */
.c9811e-drawer {
  max-height: 0;
  overflow: hidden;
  background: var(--c9811e-ink-deep);
  border-top: 0 solid transparent;
  transition: max-height 0.3s var(--c9811e-ease);
}
.c9811e-drawer[data-open="true"] {
  max-height: 560px;
  border-top-width: 1px;
  border-top-color: var(--c9811e-hair);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.45);
}
.c9811e-drawer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
}
.c9811e-drawer-grid a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: var(--c9811e-tap);
  padding: 8px 10px;
  background: var(--c9811e-ink-raise);
  border: 1px solid var(--c9811e-hair);
  border-radius: var(--c9811e-radius-btn);
  color: var(--c9811e-paper);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
}
.c9811e-drawer-grid a::before {
  content: "";
  flex: none;
  width: 6px; height: 6px;
  border-radius: 2px;
  background: var(--c9811e-gold-soft);
  transform: rotate(45deg);
}
.c9811e-drawer-grid a:hover { border-color: var(--c9811e-gold-glow); text-decoration: none; }
.c9811e-drawer-grid a[aria-current="page"] {
  background: var(--c9811e-gold-wash);
  border-color: var(--c9811e-gold);
  color: #F2E4C8;
}
.c9811e-drawer-note {
  margin: 0;
  padding: 0 14px 14px;
  font-size: 11px;
  color: var(--c9811e-muted);
}

/* ------------------------------- Layout -------------------------------- */
.c9811e-main {
  padding: calc(var(--c9811e-header-h) + 10px) 12px calc(var(--c9811e-dock-h) + 26px);
}
.c9811e-main > section { margin-top: 22px; }
.c9811e-main > section:first-child { margin-top: 0; }
.c9811e-main p { margin: 0 0 10px; overflow-wrap: break-word; }

/* ------------------------------- Hero ---------------------------------- */
.c9811e-carousel {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--c9811e-hair-strong);
  background: var(--c9811e-ink-well);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.4);
}
.c9811e-track {
  display: flex;
  transition: transform 0.45s var(--c9811e-ease);
  touch-action: pan-y;
}
.c9811e-slide {
  flex: 0 0 100%;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  position: relative;
  text-align: left;
}
.c9811e-slide img {
  width: 100%;
  aspect-ratio: 25 / 11;
  object-fit: cover;
}
.c9811e-slide-cap {
  position: absolute;
  left: 10px; bottom: 10px;
  max-width: calc(100% - 20px);
  background: rgba(16, 24, 40, 0.82);
  border: 1px solid var(--c9811e-gold-glow);
  border-radius: var(--c9811e-radius-pill);
  padding: 5px 12px;
  font-size: 11.5px;
  font-weight: 700;
  color: #F2E4C8;
  backdrop-filter: blur(4px);
}
.c9811e-dots {
  position: absolute;
  right: 12px; bottom: 12px;
  display: flex;
  gap: 6px;
}
.c9811e-dot {
  width: 22px; height: 10px;
  padding: 0;
  border-radius: var(--c9811e-radius-pill);
  border: 1px solid var(--c9811e-hair-strong);
  background: rgba(16, 24, 40, 0.7);
  cursor: pointer;
  transition: background 0.2s, transform 0.14s var(--c9811e-ease);
}
.c9811e-dot:active { transform: scale(0.82); }
.c9811e-dot[aria-current="true"] {
  background: linear-gradient(90deg, var(--c9811e-gold-soft), var(--c9811e-gold));
  border-color: var(--c9811e-gold);
}

/* --------------------------- Intro / poster ----------------------------- */
.c9811e-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--c9811e-gold-soft);
  margin: 14px 0 8px;
}
.c9811e-kicker::before {
  content: "";
  width: 18px; height: 2px;
  background: var(--c9811e-gold);
}
.c9811e-h1 {
  font-family: var(--c9811e-font-poster);
  font-size: clamp(1.5rem, 6.6vw, 1.85rem);
  font-weight: 800;
  line-height: 1.24;
  letter-spacing: -0.3px;
  margin: 0 0 12px;
  padding-left: 10px;
  border-left: 4px solid var(--c9811e-gold);
}
.c9811e-h1 .c9811e-h1key {
  color: var(--c9811e-gold-soft);
}
.c9811e-lede { color: var(--c9811e-paper); }

/* Compact metric chips: number first, short explanation under */
.c9811e-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0 4px;
}
.c9811e-metric {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--c9811e-ink-raise);
  border: 1px solid var(--c9811e-hair);
  border-radius: var(--c9811e-radius-card);
  padding: 9px 11px;
}
.c9811e-metric b {
  font-family: var(--c9811e-font-poster);
  font-size: 19px;
  font-weight: 800;
  color: var(--c9811e-gold-soft);
  line-height: 1;
  min-width: 46px;
}
.c9811e-metric span { font-size: 11px; color: var(--c9811e-muted); line-height: 1.35; }
.c9811e-metric span i {
  display: block;
  font-style: normal;
  font-size: 9.5px;
  color: #7E8DA3;
}
.c9811e-ctarow {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 8px;
  margin-top: 14px;
}
.c9811e-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.13s var(--c9811e-ease), filter 0.13s;
}
.c9811e-cta:active { transform: scale(0.96); }
.c9811e-cta:hover { text-decoration: none; }
.c9811e-cta--gold {
  border: none;
  background: linear-gradient(135deg, var(--c9811e-gold-soft) 0%, var(--c9811e-gold) 100%);
  color: #141A28;
  box-shadow: 0 8px 18px rgba(184, 134, 11, 0.3);
}
.c9811e-cta--gold:hover { filter: brightness(1.08); }
.c9811e-cta--ghost {
  background: transparent;
  border: 1px solid var(--c9811e-hair-strong);
  color: var(--c9811e-paper);
}
.c9811e-cta--ghost:hover { border-color: var(--c9811e-gold-glow); background: var(--c9811e-gold-wash); }

/* ---------------------------- Game showcase ----------------------------- */
.c9811e-sec-head { margin-bottom: 14px; }
.c9811e-sec-head h2, .c9811e-modhead h2 {
  font-family: var(--c9811e-font-poster);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.34;
  letter-spacing: -0.2px;
  margin: 0 0 8px;
}
.c9811e-modhead {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  border-bottom: 2px solid var(--c9811e-gold);
  padding-bottom: 7px;
  margin-bottom: 12px;
}
.c9811e-modchip {
  flex: none;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: var(--c9811e-gold-soft);
  background: var(--c9811e-gold-wash);
  border: 1px solid var(--c9811e-gold-glow);
  border-radius: 6px;
  padding: 3px 7px;
  margin-top: 3px;
  white-space: nowrap;
}
.c9811e-rail + .c9811e-rail { margin-top: 20px; }
.c9811e-railtitle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--c9811e-font-poster);
  font-size: 15px;
  font-weight: 800;
  margin: 0 0 4px;
}
.c9811e-railtag {
  flex: none;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: #141A28;
  background: linear-gradient(135deg, var(--c9811e-gold-soft), var(--c9811e-gold));
  border-radius: var(--c9811e-radius-pill);
  padding: 3px 9px;
}
.c9811e-railcount {
  margin-left: auto;
  flex: none;
  font-family: var(--c9811e-font-body);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--c9811e-muted);
  border: 1px solid var(--c9811e-hair-strong);
  border-radius: var(--c9811e-radius-pill);
  padding: 2px 8px;
}
.c9811e-railnote {
  font-size: 12px;
  color: var(--c9811e-muted);
  margin: 0 0 10px;
}

/* Game grid: 4 columns at 320px, 5 columns on wider phones */
.c9811e-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.c9811e-game {
  display: flex;
  flex-direction: column;
  padding: 4px 4px 0;
  background: var(--c9811e-ink-raise);
  border: 1px solid var(--c9811e-hair);
  border-radius: var(--c9811e-radius-card);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.14s var(--c9811e-ease), border-color 0.14s;
}
.c9811e-game:hover { border-color: var(--c9811e-gold-glow); }
.c9811e-game:active { transform: scale(0.94); border-color: var(--c9811e-gold); }
.c9811e-game-frame {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 7px;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(205, 133, 63, 0.16), transparent 60%),
    var(--c9811e-ink-well);
}
.c9811e-game-frame img { width: 100%; height: 100%; object-fit: cover; }
.c9811e-game-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 34px;
  padding: 4px 2px 7px;
  text-align: center;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--c9811e-paper);
}

/* ------------------------- Content module family ------------------------ */
.c9811e-module ul, .c9811e-module ol { margin: 0; padding: 0; list-style: none; }

/* Steps: numbered rail with dashed spine */
.c9811e-steps { display: grid; gap: 10px; }
.c9811e-step {
  position: relative;
  min-height: var(--c9811e-tap);
  padding: 9px 10px 9px 46px;
  background: var(--c9811e-ink-raise);
  border: 1px solid var(--c9811e-hair);
  border-radius: var(--c9811e-radius-card);
}
.c9811e-step b {
  display: block;
  font-size: 12.5px;
  color: #F2E4C8;
  margin-bottom: 2px;
}
.c9811e-step p { margin: 0; font-size: 12px; color: var(--c9811e-muted); line-height: 1.55; }
.c9811e-step::before {
  content: counter(c9811e-step);
  counter-increment: c9811e-step;
  position: absolute;
  left: 10px; top: 10px;
  width: 27px; height: 27px;
  display: grid;
  place-content: center;
  font-family: var(--c9811e-font-poster);
  font-size: 12.5px;
  font-weight: 800;
  color: #141A28;
  background: linear-gradient(135deg, var(--c9811e-gold-soft), var(--c9811e-gold));
  border-radius: 8px;
}
.c9811e-steps { counter-reset: c9811e-step; }

/* Tips: two compact cards */
.c9811e-tipgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.c9811e-tip {
  background: var(--c9811e-ink-raise);
  border: 1px solid var(--c9811e-hair);
  border-radius: var(--c9811e-radius-card);
  padding: 10px 11px;
}
.c9811e-tip b {
  display: block;
  font-size: 12px;
  color: var(--c9811e-gold-soft);
  margin-bottom: 3px;
}
.c9811e-tip p { margin: 0; font-size: 11.5px; color: var(--c9811e-muted); line-height: 1.5; }

/* Milestones: label + meter bar */
.c9811e-milestones { display: grid; gap: 8px; }
.c9811e-mile {
  background: var(--c9811e-ink-raise);
  border-left: 3px solid var(--c9811e-gold);
  border-radius: var(--c9811e-radius-btn);
  padding: 9px 11px;
}
.c9811e-mile-top {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}
.c9811e-mile b { font-size: 12.5px; color: #F2E4C8; }
.c9811e-mile i {
  margin-left: auto;
  font-style: normal;
  font-size: 10.5px;
  font-weight: 800;
  color: var(--c9811e-gold-soft);
}
.c9811e-meter {
  height: 6px;
  border-radius: var(--c9811e-radius-pill);
  background: var(--c9811e-ink-well);
  overflow: hidden;
}
.c9811e-meter i {
  display: block;
  height: 100%;
  border-radius: var(--c9811e-radius-pill);
  background: linear-gradient(90deg, var(--c9811e-gold), var(--c9811e-gold-soft));
}
.c9811e-mile p { margin: 6px 0 0; font-size: 11px; color: var(--c9811e-muted); }

/* Quotes */
.c9811e-quotes { display: grid; gap: 8px; }
.c9811e-quote {
  position: relative;
  background: var(--c9811e-ink-raise);
  border: 1px solid var(--c9811e-hair);
  border-radius: var(--c9811e-radius-card);
  padding: 11px 12px 10px 14px;
}
.c9811e-quote::before {
  content: "\201C";
  position: absolute;
  top: 2px; left: 5px;
  font-family: var(--c9811e-font-poster);
  font-size: 26px;
  line-height: 1;
  color: var(--c9811e-gold-glow);
}
.c9811e-quote p { margin: 0 0 6px; font-size: 12px; color: var(--c9811e-paper); line-height: 1.58; }
.c9811e-quote-role {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--c9811e-gold-soft);
  letter-spacing: 0.3px;
}

/* Comparison table */
.c9811e-comptable {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  background: var(--c9811e-ink-raise);
  border: 1px solid var(--c9811e-hair);
  border-radius: var(--c9811e-radius-card);
  overflow: hidden;
}
.c9811e-comptable th, .c9811e-comptable td {
  text-align: left;
  vertical-align: top;
  padding: 9px 10px;
  border-bottom: 1px solid var(--c9811e-hair);
}
.c9811e-comptable tr:last-child th, .c9811e-comptable tr:last-child td { border-bottom: 0; }
.c9811e-comptable th {
  width: 34%;
  font-size: 11.5px;
  font-weight: 800;
  color: #F2E4C8;
  background: rgba(205, 133, 63, 0.08);
}
.c9811e-comptable td { color: var(--c9811e-muted); line-height: 1.5; }

/* Inline mini Q&A woven into modules */
.c9811e-miniqa {
  margin: 12px 0 0;
  padding: 10px 11px;
  background: var(--c9811e-ink-well);
  border: 1px dashed var(--c9811e-hair-strong);
  border-radius: var(--c9811e-radius-card);
  font-size: 12px;
}
.c9811e-miniqa b { display: block; color: #F2E4C8; margin-bottom: 2px; }
.c9811e-miniqa span { color: var(--c9811e-muted); }

/* Inline links inside body copy */
.c9811e-bodylink {
  color: var(--c9811e-gold-soft);
  font-weight: 700;
  border-bottom: 1px dashed var(--c9811e-gold-glow);
}
.c9811e-bodylink:hover { border-bottom-style: solid; }

/* ------------------------- Extended home footer ------------------------- */
.c9811e-xfooter {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--c9811e-hair-strong);
}
.c9811e-xfblock { margin-top: 16px; }
.c9811e-xfblock:first-child { margin-top: 0; }
.c9811e-xftitle {
  font-family: var(--c9811e-font-poster);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: #F2E4C8;
  margin: 0 0 9px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.c9811e-xftitle::before {
  content: "";
  width: 14px; height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--c9811e-gold-soft), var(--c9811e-gold));
}
.c9811e-xfpromo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.c9811e-xfpromo button {
  min-height: var(--c9811e-tap);
  padding: 8px 10px;
  text-align: left;
  border: none;
  border-radius: var(--c9811e-radius-btn);
  background: linear-gradient(135deg, rgba(205, 133, 63, 0.24), rgba(184, 134, 11, 0.14));
  border: 1px solid var(--c9811e-gold-glow);
  color: #F2E4C8;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.35;
  cursor: pointer;
  transition: transform 0.13s var(--c9811e-ease), filter 0.13s;
}
.c9811e-xfpromo button:hover { filter: brightness(1.15); }
.c9811e-xfpromo button:active { transform: scale(0.96); }
.c9811e-xfbrand { font-size: 12px; color: var(--c9811e-muted); line-height: 1.6; }
.c9811e-xfdir { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.c9811e-xfdir a {
  display: block;
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  background: var(--c9811e-ink-raise);
  border: 1px solid var(--c9811e-hair);
  border-radius: var(--c9811e-radius-btn);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--c9811e-paper);
  line-height: 1.3;
}
.c9811e-xfdir a::before {
  content: "\203A";
  flex: none;
  color: var(--c9811e-gold-soft);
  font-weight: 800;
}
.c9811e-xfdir a:hover { border-color: var(--c9811e-gold-glow); text-decoration: none; }
.c9811e-xfdisclaimer {
  margin-top: 14px;
  padding: 10px 12px;
  border-left: 3px solid var(--c9811e-gold);
  border-radius: 0 var(--c9811e-radius-btn) var(--c9811e-radius-btn) 0;
  background: var(--c9811e-ink-well);
  font-size: 10.8px;
  color: #8D9BAE;
  line-height: 1.6;
}

/* --------------------------- Common footer ------------------------------ */
.c9811e-foot {
  margin-top: 26px;
  padding: 14px 0 4px;
  border-top: 1px solid var(--c9811e-hair);
  text-align: center;
}
.c9811e-copy { font-size: 11px; color: var(--c9811e-muted); margin: 0; }
.c9811e-footnote { font-size: 9.5px; color: #6F7E93; margin: 4px 0 0; }

/* --------------------------- Floating dock ------------------------------ */
.c9811e-dock {
  position: fixed;
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 20px);
  max-width: 410px;
  z-index: 70;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2px;
  padding: 7px 6px;
  background: rgba(19, 28, 46, 0.97);
  border: 1px solid var(--c9811e-hair-strong);
  border-radius: 18px;
  backdrop-filter: blur(8px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.5);
}
.c9811e-dockitem {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 50px;
  padding: 4px 2px;
  border: 0;
  background: transparent;
  border-radius: 13px;
  color: var(--c9811e-muted);
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.12s var(--c9811e-ease), background 0.18s, color 0.18s;
}
.c9811e-dockitem svg { width: 21px; height: 21px; flex: none; }
.c9811e-dockitem:active { transform: scale(0.88); }
.c9811e-dockitem:hover { color: var(--c9811e-paper); text-decoration: none; }
/* Active state: gold background support block behind the item */
.c9811e-dockitem[aria-current="page"] {
  background: var(--c9811e-gold-wash);
  color: var(--c9811e-gold-soft);
  box-shadow: inset 0 0 0 1px var(--c9811e-gold-glow);
}

/* --------------------------- Breakpoints -------------------------------- */
@media (min-width: 375px) {
  .c9811e-main { padding-left: 14px; padding-right: 14px; }
}
@media (min-width: 400px) and (max-width: 430px) {
  .c9811e-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .c9811e-game-name { min-height: 36px; }
}
@media (min-width: 375px) and (max-width: 399px) {
  .c9811e-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .c9811e-game-name { overflow-wrap: anywhere; }
}
@media (min-width: 400px) and (max-width: 430px) {
  .c9811e-game-name { overflow-wrap: anywhere; }
}
@media (min-width: 431px) {
  body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
      radial-gradient(50% 30% at 50% 0%, rgba(184, 134, 11, 0.08), transparent 70%),
      #0D1422;
    z-index: -1;
  }
}

/* --------------------------- Motion budget ------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .c9811e-track { transition: none; }
}
