/* ==========================================================================
   999-game.click — frame-compact-88e802.css
   Mobile-first frame for the 999 game Bengali portal.
   Palette: #DB7093 / #F4A460 / #A0522D / #FFEF94 / #34495E
   Direction: poster headings + narrow body, grouped cover cards,
   slide-in menu with card lift, solid primary / outlined secondary CTAs.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --ce8025-ink-slate: #34495e;
  --ce8025-ink-deep: #2a3a4b;
  --ce8025-ink-raise: #3d5266;
  --ce8025-rose: #db7093;
  --ce8025-rose-soft: #e89ab4;
  --ce8025-sand: #f4a460;
  --ce8025-sienna: #a0522d;
  --ce8025-butter: #ffef94;
  --ce8025-paper: #fdf9ec;
  --ce8025-line-soft: rgba(255, 239, 148, 0.16);
  --ce8025-line-mid: rgba(255, 239, 148, 0.30);
  --ce8025-glass: rgba(255, 255, 255, 0.045);
  --ce8025-radius-xs: 8px;
  --ce8025-radius-sm: 10px;
  --ce8025-radius-md: 14px;
  --ce8025-radius-lg: 18px;
  --ce8025-gap: 12px;
  --ce8025-touch: 44px;
  --ce8025-font: 'Hind Siliguri', 'Noto Sans Bengali', 'SolaimanLipi', system-ui, -apple-system, sans-serif;
}

/* ---------- Base reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; }

body.ce8025-page {
  font-family: var(--ce8025-font);
  font-weight: 400;
  background: #22303e;
  color: var(--ce8025-paper);
  line-height: 1.7;
  font-size: 14.5px;
  min-height: 100vh;
  overflow-x: hidden;
}

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

a { color: var(--ce8025-butter); text-decoration: none; }
a:hover { text-decoration: underline; }

ul, ol { list-style: none; }

button { font-family: inherit; border: 0; background: none; cursor: pointer; color: inherit; }

::selection { background: var(--ce8025-rose); color: #fff; }

/* Focus visibility kept strong on dark surfaces */
:focus-visible { outline: 2px solid var(--ce8025-butter); outline-offset: 2px; border-radius: 4px; }

/* ---------- Phone canvas (centered on wide screens) ---------- */
.ce8025-shell {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(120% 52% at 18% 0%, rgba(219, 112, 147, 0.18), transparent 60%),
    radial-gradient(120% 46% at 92% 7%, rgba(244, 164, 96, 0.14), transparent 62%),
    linear-gradient(178deg, var(--ce8025-ink-slate) 0%, var(--ce8025-ink-deep) 62%, #24333f 100%);
  box-shadow: 0 0 44px rgba(0, 0, 0, 0.55);
  overflow: clip;
}

/* ==========================================================================
   Top bar — centered identity strip + outlined action rail
   ========================================================================== */
.ce8025-topbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, 480px);
  z-index: 60;
  background: linear-gradient(180deg, rgba(42, 58, 75, 0.97), rgba(42, 58, 75, 0.92));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ce8025-line-soft);
  transition: box-shadow 0.25s ease;
}

.ce8025-topbar.is-raised {
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.42);
}

/* Row 1 — identity bar, logo centered */
.ce8025-topbar-id {
  display: grid;
  grid-template-columns: var(--ce8025-touch) 1fr var(--ce8025-touch);
  align-items: center;
  min-height: 50px;
  padding: 5px 8px;
}

.ce8025-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
}

.ce8025-brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  object-fit: cover;
  border: 1.5px solid var(--ce8025-sand);
  box-shadow: 0 3px 10px rgba(160, 82, 45, 0.55);
}

.ce8025-brand-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ce8025-butter);
  line-height: 1.1;
  white-space: nowrap;
}

.ce8025-brand-name small {
  display: block;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ce8025-rose-soft);
}

/* Square icon button (menu trigger / quick login) */
.ce8025-icobtn {
  width: var(--ce8025-touch);
  height: var(--ce8025-touch);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ce8025-line-mid);
  border-radius: var(--ce8025-radius-sm);
  color: var(--ce8025-butter);
  background: var(--ce8025-glass);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.ce8025-icobtn:active { transform: scale(0.93); }

.ce8025-icobtn svg { width: 21px; height: 21px; }

.ce8025-icobtn.is-open { border-color: var(--ce8025-rose); color: var(--ce8025-rose-soft); }

/* Row 2 — action rail with the two account CTAs */
.ce8025-topbar-rail {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 8px;
  padding: 0 10px 9px;
}

/* CTA shapes: solid primary / outlined secondary */
.ce8025-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: var(--ce8025-touch);
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.ce8025-btn:hover { text-decoration: none; }

.ce8025-btn:active { transform: translateY(1px) scale(0.98); }

.ce8025-btn-solid {
  background: linear-gradient(135deg, var(--ce8025-rose) 0%, #c25b7f 100%);
  color: #fff7fb;
  box-shadow: 0 6px 18px rgba(219, 112, 147, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.ce8025-btn-solid:hover { box-shadow: 0 8px 22px rgba(219, 112, 147, 0.55); }

.ce8025-btn-line {
  background: transparent;
  border: 1.5px solid var(--ce8025-sand);
  color: var(--ce8025-sand);
}

.ce8025-btn-line:hover { background: rgba(244, 164, 96, 0.12); }

.ce8025-btn-butter {
  background: var(--ce8025-butter);
  color: var(--ce8025-ink-slate);
  box-shadow: 0 6px 16px rgba(255, 239, 148, 0.25);
}

/* ==========================================================================
   Partitioned slide-in menu page
   ========================================================================== */
.ce8025-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(16, 24, 32, 0.66);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.26s ease, visibility 0.26s ease;
}

.ce8025-menu-backdrop.is-shown { opacity: 1; visibility: visible; }

.ce8025-menu {
  position: fixed;
  top: 0;
  bottom: 0;
  left: max(0px, calc(50% - 240px));
  width: min(86vw, 336px);
  min-height: 430px;
  height: 100dvh;
  z-index: 80;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: linear-gradient(168deg, #31435a 0%, var(--ce8025-ink-deep) 70%);
  border-right: 1px solid var(--ce8025-line-soft);
  box-shadow: 22px 0 48px rgba(0, 0, 0, 0.5);
  padding: 14px 14px calc(20px + env(safe-area-inset-bottom));
  transform: translateX(-102%);
  transition: transform 0.3s cubic-bezier(0.22, 0.9, 0.32, 1);
}

.ce8025-menu.is-open { transform: translateX(0); }

/* Menu header mirrors the identity bar */
.ce8025-menu-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 4px 2px 12px;
  border-bottom: 1px dashed var(--ce8025-line-soft);
}

.ce8025-menu-head .ce8025-brand-logo { width: 30px; height: 30px; }

.ce8025-menu-title { font-size: 15px; font-weight: 700; color: var(--ce8025-butter); }

.ce8025-menu-close { margin-left: auto; }

/* Partition groups */
.ce8025-menu-group { padding: 12px 0 4px; }

.ce8025-menu-group-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ce8025-sand);
  padding: 0 10px 6px;
}

.ce8025-menu-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 9px 12px 9px 16px;
  border-radius: var(--ce8025-radius-sm);
  color: var(--ce8025-paper);
  font-size: 14.5px;
  font-weight: 500;
  overflow: hidden;
  transition: background 0.2s ease, color 0.2s ease;
}

.ce8025-menu-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 0;
  border-radius: 3px;
  background: var(--ce8025-rose);
  transform: translateY(-50%);
  transition: height 0.22s ease;
}

.ce8025-menu-link:hover { background: rgba(255, 239, 148, 0.07); text-decoration: none; }

.ce8025-menu-link.is-active {
  background: rgba(219, 112, 147, 0.16);
  color: var(--ce8025-butter);
  font-weight: 700;
}

/* Sliding indicator grows in for the active route */
.ce8025-menu-link.is-active::before { height: 58%; }

.ce8025-menu-badge {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  color: var(--ce8025-ink-slate);
  background: var(--ce8025-sand);
  border-radius: 999px;
  padding: 1px 8px;
}

.ce8025-menu-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--ce8025-line-soft);
}

.ce8025-menu-cta .ce8025-btn { min-height: 44px; font-size: 13.5px; padding: 8px 10px; }

/* ==========================================================================
   Main flow
   ========================================================================== */
.ce8025-main {
  padding: calc(104px + env(safe-area-inset-top)) 12px calc(92px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ce8025-section { display: flex; flex-direction: column; gap: 10px; }

/* Poster-flavoured headings, narrow body lines */
.ce8025-h1,
.ce8025-h2 {
  font-weight: 700;
  color: var(--ce8025-butter);
  line-height: 1.32;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.ce8025-h1 { font-size: clamp(25px, 6.6vw, 31px); }

.ce8025-h2 {
  font-size: clamp(18.5px, 5vw, 22px);
  padding-left: 11px;
  border-left: 4px solid var(--ce8025-rose);
}

.ce8025-h3 {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ce8025-sand);
  line-height: 1.45;
}

.ce8025-p {
  font-size: 14px;
  line-height: 1.85;
  color: rgba(253, 249, 236, 0.92);
  max-width: 62ch;
}

.ce8025-p + .ce8025-p { margin-top: 8px; }

.ce8025-lead { font-size: 14.5px; }

.ce8025-inline-link {
  color: var(--ce8025-sand);
  font-weight: 600;
  border-bottom: 1.5px dotted var(--ce8025-sand);
}

.ce8025-inline-link:hover { color: var(--ce8025-butter); border-bottom-color: var(--ce8025-butter); }

/* ---------- Hero ---------- */
.ce8025-hero {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 12px 16px;
  border-radius: var(--ce8025-radius-lg);
  background:
    linear-gradient(150deg, rgba(219, 112, 147, 0.16), rgba(244, 164, 96, 0.08) 55%, transparent),
    var(--ce8025-glass);
  border: 1px solid var(--ce8025-line-soft);
}

.ce8025-hero-kicker {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ce8025-ink-slate);
  background: var(--ce8025-butter);
  border-radius: 999px;
  padding: 3px 11px;
}

/* ---------- Promo carousel ---------- */
.ce8025-carousel {
  position: relative;
  border-radius: var(--ce8025-radius-md);
  overflow: hidden;
  border: 1px solid var(--ce8025-line-mid);
  background: var(--ce8025-ink-raise);
}

.ce8025-track { position: relative; height: 172px; }

.ce8025-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.04);
  transition: opacity 0.55s ease, transform 0.7s ease, visibility 0.55s;
}

.ce8025-slide.is-live { opacity: 1; visibility: visible; transform: scale(1); }

.ce8025-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ce8025-slide-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 13px 11px;
  background: linear-gradient(180deg, transparent, rgba(23, 33, 42, 0.88));
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ce8025-slide-cap strong {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ce8025-butter);
  line-height: 1.35;
}

.ce8025-slide-cap span { font-size: 11.5px; color: rgba(253, 249, 236, 0.85); }

.ce8025-dots {
  position: absolute;
  right: 10px;
  bottom: 9px;
  display: flex;
  gap: 6px;
  z-index: 2;
}

.ce8025-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(253, 249, 236, 0.45);
  border: 1px solid rgba(253, 249, 236, 0.6);
  transition: width 0.25s ease, background 0.25s ease;
}

.ce8025-dot.is-live {
  width: 20px;
  background: var(--ce8025-rose);
  border-color: var(--ce8025-rose-soft);
}

/* ---------- Quick stat strip ---------- */
.ce8025-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}

.ce8025-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 9px 4px;
  border-radius: var(--ce8025-radius-sm);
  background: var(--ce8025-glass);
  border: 1px solid var(--ce8025-line-soft);
  text-align: center;
}

.ce8025-stat b {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ce8025-butter);
  line-height: 1.25;
}

.ce8025-stat span { font-size: 10px; color: rgba(253, 249, 236, 0.72); line-height: 1.35; }

/* ==========================================================================
   Game groups — grouped cover-card shelves
   ========================================================================== */
.ce8025-gamegroup {
  border-radius: var(--ce8025-radius-lg);
  background: var(--ce8025-glass);
  border: 1px solid var(--ce8025-line-soft);
  padding: 12px 10px 13px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.ce8025-gamegroup-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: var(--ce8025-radius-sm);
  background: linear-gradient(90deg, rgba(219, 112, 147, 0.2), transparent 78%);
  border: 1px solid var(--ce8025-line-soft);
}

.ce8025-gamegroup-tag {
  flex: none;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  box-shadow: inset 0 -6px 12px rgba(0, 0, 0, 0.22);
}

.ce8025-gamegroup-title {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ce8025-butter);
  line-height: 1.3;
}

.ce8025-gamegroup-count {
  margin-left: auto;
  flex: none;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ce8025-sand);
  border: 1px solid var(--ce8025-sand);
  border-radius: 999px;
  padding: 2px 9px;
}

/* Per-category accent identities */
.ce8025-gamegroup[data-tone='slot'] .ce8025-gamegroup-tag { background: linear-gradient(140deg, #db7093, #a0522d); }
.ce8025-gamegroup[data-tone='slot'] .ce8025-gamegroup-head { background: linear-gradient(90deg, rgba(219, 112, 147, 0.22), transparent 80%); }
.ce8025-gamegroup[data-tone='hot'] .ce8025-gamegroup-tag { background: linear-gradient(140deg, #f4a460, #a0522d); }
.ce8025-gamegroup[data-tone='hot'] .ce8025-gamegroup-head { background: linear-gradient(90deg, rgba(244, 164, 96, 0.24), transparent 80%); }
.ce8025-gamegroup[data-tone='live'] .ce8025-gamegroup-tag { background: linear-gradient(140deg, #a0522d, #6d3417); }
.ce8025-gamegroup[data-tone='live'] .ce8025-gamegroup-head { background: linear-gradient(90deg, rgba(160, 82, 45, 0.32), transparent 80%); }
.ce8025-gamegroup[data-tone='poker'] .ce8025-gamegroup-tag { background: linear-gradient(140deg, #db7093, #f4a460); }
.ce8025-gamegroup[data-tone='poker'] .ce8025-gamegroup-head { background: linear-gradient(90deg, rgba(219, 112, 147, 0.16), rgba(244, 164, 96, 0.1) 60%, transparent 85%); }
.ce8025-gamegroup[data-tone='fishing'] .ce8025-gamegroup-tag { background: linear-gradient(140deg, #f4a460, #db7093); }
.ce8025-gamegroup[data-tone='fishing'] .ce8025-gamegroup-head { background: linear-gradient(90deg, rgba(244, 164, 96, 0.18), rgba(219, 112, 147, 0.12) 62%, transparent 86%); }

.ce8025-gamegrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px 7px;
}

/* Cover card: icon face + one controlled name line */
.ce8025-gcard {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
  padding: 6px 5px 7px;
  border-radius: var(--ce8025-radius-md);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--ce8025-line-soft);
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.ce8025-gcard:hover {
  text-decoration: none;
  transform: translateY(-3px);
  border-color: var(--ce8025-rose-soft);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.35);
}

.ce8025-gcard:active { transform: translateY(-1px) scale(0.97); }

.ce8025-gcard img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--ce8025-radius-xs);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--ce8025-ink-raise);
}

.ce8025-gcard-name {
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.32;
  color: rgba(253, 249, 236, 0.94);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
  overflow-wrap: anywhere;
}

/* ==========================================================================
   Editorial modules after the shelves
   ========================================================================== */
.ce8025-module {
  border-radius: var(--ce8025-radius-lg);
  border: 1px solid var(--ce8025-line-soft);
  background: var(--ce8025-glass);
  padding: 14px 13px 15px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

/* Scenario branch tiles (scene-branch rhythm) */
.ce8025-branchbox { display: grid; gap: 8px; }

.ce8025-branch {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px;
  border-radius: var(--ce8025-radius-sm);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--ce8025-line-soft);
}

.ce8025-branch-emblem {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  font-size: 17px;
  color: #fff;
  background: linear-gradient(140deg, var(--ce8025-rose), var(--ce8025-sienna));
}

.ce8025-branch b { display: block; font-size: 13.5px; color: var(--ce8025-butter); margin-bottom: 2px; }

.ce8025-branch p { font-size: 12.5px; line-height: 1.7; color: rgba(253, 249, 236, 0.85); }

/* Big CTA row */
.ce8025-ctarow { display: grid; grid-template-columns: 1.3fr 1fr; gap: 8px; }

/* Numbered step list */
.ce8025-steps { display: grid; gap: 9px; counter-reset: ce8025step; }

.ce8025-step {
  position: relative;
  counter-increment: ce8025step;
  padding: 10px 12px 10px 44px;
  border-radius: var(--ce8025-radius-sm);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--ce8025-line-soft);
}

.ce8025-step::before {
  content: counter(ce8025step);
  position: absolute;
  left: 11px;
  top: 11px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ce8025-ink-slate);
  background: var(--ce8025-butter);
}

.ce8025-step b { display: block; font-size: 13.5px; color: var(--ce8025-butter); margin-bottom: 2px; }

.ce8025-step p { font-size: 12.5px; line-height: 1.7; color: rgba(253, 249, 236, 0.85); }

/* Checklist with tick marks */
.ce8025-checklist { display: grid; gap: 8px; }

.ce8025-checkitem {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 9px;
  padding: 9px 11px;
  border-radius: var(--ce8025-radius-sm);
  background: rgba(244, 164, 96, 0.07);
  border: 1px solid rgba(244, 164, 96, 0.22);
}

.ce8025-checkitem svg {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--ce8025-sand);
}

.ce8025-checkitem b { display: block; font-size: 13px; color: var(--ce8025-butter); margin-bottom: 1px; }

.ce8025-checkitem p { font-size: 12.5px; line-height: 1.65; color: rgba(253, 249, 236, 0.85); }

/* Definition / answer box */
.ce8025-answer {
  padding: 11px 12px;
  border-radius: var(--ce8025-radius-sm);
  border-left: 4px solid var(--ce8025-sand);
  background: rgba(255, 239, 148, 0.07);
  font-size: 13px;
  line-height: 1.75;
  color: rgba(253, 249, 236, 0.92);
}

.ce8025-answer b, .ce8025-answer strong { color: var(--ce8025-butter); }

/* Compact QA pairs inside modules */
.ce8025-qa { display: grid; gap: 7px; }

.ce8025-qa-item {
  padding: 10px 11px;
  border-radius: var(--ce8025-radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--ce8025-line-soft);
}

.ce8025-qa-item h3 { font-size: 13.5px; }

.ce8025-qa-item p { font-size: 12.5px; line-height: 1.7; color: rgba(253, 249, 236, 0.85); margin-top: 3px; }

/* Inline promo chip used inside copy */
.ce8025-chipbtn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ce8025-ink-slate);
  background: var(--ce8025-butter);
  white-space: nowrap;
}

.ce8025-chipbtn:hover { text-decoration: none; filter: brightness(1.06); }

/* ==========================================================================
   Extended footer (home-only directory) — two-column layout
   ========================================================================== */
.ce8025-xfooter {
  border-radius: var(--ce8025-radius-lg);
  border: 1px solid var(--ce8025-line-mid);
  background: linear-gradient(175deg, rgba(160, 82, 45, 0.16), rgba(42, 58, 75, 0.55) 58%);
  padding: 15px 13px 13px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.ce8025-xf-heading {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ce8025-sand);
  margin-bottom: 7px;
}

.ce8025-xf-brand p { font-size: 12.5px; line-height: 1.8; color: rgba(253, 249, 236, 0.88); }

.ce8025-xf-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Promo action stack — 7 varied short actions */
.ce8025-xf-promos { display: grid; gap: 7px; align-content: start; }

.ce8025-xf-promo {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 7px 11px;
  border-radius: var(--ce8025-radius-sm);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ce8025-butter);
  background: rgba(219, 112, 147, 0.14);
  border: 1px solid rgba(219, 112, 147, 0.4);
  transition: transform 0.16s ease, background 0.16s ease;
}

.ce8025-xf-promo:hover { text-decoration: none; background: rgba(219, 112, 147, 0.26); transform: translateY(-2px); }

.ce8025-xf-promo span { margin-left: auto; font-size: 11px; color: var(--ce8025-rose-soft); }

.ce8025-xf-promo.is-alt {
  background: rgba(244, 164, 96, 0.12);
  border-color: rgba(244, 164, 96, 0.42);
}

.ce8025-xf-promo.is-alt span { color: var(--ce8025-sand); }

/* Directory column */
.ce8025-xf-dir { display: grid; gap: 5px; align-content: start; }

.ce8025-xf-dir a {
  font-size: 12.5px;
  color: rgba(253, 249, 236, 0.9);
  padding: 6px 2px;
  border-bottom: 1px dashed rgba(255, 239, 148, 0.14);
}

.ce8025-xf-dir a:hover { color: var(--ce8025-butter); }

.ce8025-xf-note {
  font-size: 11px;
  line-height: 1.7;
  color: rgba(253, 249, 236, 0.6);
  padding-top: 10px;
  border-top: 1px solid var(--ce8025-line-soft);
}

/* ==========================================================================
   Common footer + fixed bottom function bar
   ========================================================================== */
.ce8025-foot {
  text-align: center;
  padding: 4px 12px 8px;
  font-size: 11.5px;
  color: rgba(253, 249, 236, 0.62);
  letter-spacing: 0.02em;
}

.ce8025-bnav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, 480px);
  z-index: 60;
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  background: linear-gradient(0deg, rgba(34, 48, 62, 0.98), rgba(42, 58, 75, 0.94));
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--ce8025-line-mid);
}

.ce8025-bnav-rail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
}

/* Sliding top indicator over the active role */
.ce8025-bnav-ind {
  position: absolute;
  top: -7px;
  width: 34px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: var(--ce8025-rose);
  left: calc(var(--ce8025-ind, 10%) - 17px);
  transition: left 0.3s cubic-bezier(0.3, 0.9, 0.35, 1);
  animation: ce8025indrop 0.5s ease 0.15s backwards;
}

@keyframes ce8025indrop {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.ce8025-bnav-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 52px;
  padding: 6px 2px 5px;
  border-radius: var(--ce8025-radius-sm);
  border: 1px solid transparent;
  color: rgba(253, 249, 236, 0.72);
  transition: color 0.2s ease, background 0.2s ease;
}

.ce8025-bnav-item svg { width: 22px; height: 22px; }

.ce8025-bnav-item span { font-size: 10px; font-weight: 600; line-height: 1.2; }

.ce8025-bnav-item:hover { color: var(--ce8025-butter); text-decoration: none; }

.ce8025-bnav-item:active { transform: scale(0.94); }

/* Active role flips to contrast inversion */
.ce8025-bnav-item.is-active {
  background: var(--ce8025-butter);
  color: var(--ce8025-ink-slate);
  border-color: var(--ce8025-butter);
  box-shadow: 0 4px 14px rgba(255, 239, 148, 0.3);
}

.ce8025-bnav-item.is-promo svg { color: var(--ce8025-rose-soft); }

/* ==========================================================================
   Responsive tuning inside the 320-430px canvas
   ========================================================================== */
@media (max-width: 430px) {
  .ce8025-track { height: 150px; }
  .ce8025-brand-name { font-size: 18.5px; }
  .ce8025-stats { grid-template-columns: repeat(2, 1fr); }
  .ce8025-main { padding-left: 10px; padding-right: 10px; }
  .ce8025-review-grid, .ce8025-triage { grid-template-columns: 1fr; }
}

@media (max-width: 355px) {
  .ce8025-btn { padding: 8px 10px; font-size: 13px; }
  .ce8025-gamegrid { gap: 7px 5px; }
}

/* Wider phones gain a fifth game column */
@media (min-width: 392px) {
  .ce8025-gamegrid { grid-template-columns: repeat(5, 1fr); }
}

/* Desktop keeps the centered phone canvas */
@media (min-width: 481px) {
  body.ce8025-page { background: radial-gradient(90% 60% at 50% 0%, #2c3f52, #1a2632); }
}

/* ---------- Help-page view patterns ---------- */
.ce8025-review-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.ce8025-review-cell {
  min-height: 86px;
  padding: 10px;
  border: 1px solid var(--ce8025-line-soft);
  border-radius: var(--ce8025-radius-sm);
  background: rgba(255, 255, 255, 0.035);
}

.ce8025-review-cell strong {
  display: block;
  color: var(--ce8025-butter);
  font-size: 13px;
  line-height: 1.35;
}

.ce8025-review-cell span {
  display: block;
  margin-top: 4px;
  color: rgba(253, 249, 236, 0.8);
  font-size: 12px;
  line-height: 1.6;
}

.ce8025-condition {
  display: grid;
  gap: 8px;
}

.ce8025-condition article {
  padding: 11px 12px;
  border-left: 4px solid var(--ce8025-rose);
  border-radius: 0 var(--ce8025-radius-sm) var(--ce8025-radius-sm) 0;
  background: rgba(219, 112, 147, 0.09);
}

.ce8025-condition article:nth-child(2n) { border-left-color: var(--ce8025-sand); background: rgba(244, 164, 96, 0.08); }
.ce8025-condition h3 { color: var(--ce8025-butter); font-size: 14px; line-height: 1.4; }
.ce8025-condition p { margin-top: 3px; color: rgba(253, 249, 236, 0.84); font-size: 12.5px; line-height: 1.72; }

.ce8025-tiprail {
  display: grid;
  gap: 0;
  position: relative;
}

.ce8025-tiprail::before {
  content: '';
  position: absolute;
  left: 17px;
  top: 16px;
  bottom: 16px;
  width: 1px;
  background: var(--ce8025-line-mid);
}

.ce8025-tipnode {
  position: relative;
  display: grid;
  grid-template-columns: 35px 1fr;
  gap: 10px;
  padding: 8px 0;
}

.ce8025-tipmark {
  position: relative;
  z-index: 1;
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ce8025-sand);
  border-radius: 50%;
  background: var(--ce8025-ink-deep);
  color: var(--ce8025-butter);
  font-size: 13px;
  font-weight: 700;
}

.ce8025-tipnode h3 { color: var(--ce8025-sand); font-size: 14px; line-height: 1.4; }
.ce8025-tipnode p { margin-top: 3px; color: rgba(253, 249, 236, 0.85); font-size: 12.5px; line-height: 1.72; }

.ce8025-triage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.ce8025-triage-item {
  padding: 10px;
  border-radius: var(--ce8025-radius-sm);
  border: 1px dashed var(--ce8025-line-mid);
  background: rgba(255, 239, 148, 0.045);
}

.ce8025-triage-item b { display: block; color: var(--ce8025-butter); font-size: 13px; line-height: 1.4; }
.ce8025-triage-item p { margin-top: 3px; color: rgba(253, 249, 236, 0.8); font-size: 12px; line-height: 1.65; }

.ce8025-promo-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding-top: 2px;
}

.ce8025-promo-strip .ce8025-chipbtn { min-height: 40px; }

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }
  html { scroll-behavior: auto; }
}

/* Card lift entrance (progressive enhancement, applied by JS) */
.ce8025-anim-in { animation: ce8025lift 0.45s ease backwards; }

@keyframes ce8025lift {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hide-only helper for menu button label on very narrow screens */
.ce8025-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
