/* ============================================================
   666 casino - compact layers stylesheet
   Palette: #0D1117 base / #FFD700 gold / #FFF176 soft accent
   Direction: mono accents + regular body text, mixed corner
   radii, outlined tile game cards, step-driven rhythm, light
   press/color motion, square high-contrast CTA buttons.
   All classes carry the c8c6c4- prefix.
   ============================================================ */

:root {
  --c8c6c4-bg: #0d1117;
  --c8c6c4-bg-deep: #090c12;
  --c8c6c4-panel: #141b25;
  --c8c6c4-panel-2: #1a2331;
  --c8c6c4-line: #2b3646;
  --c8c6c4-line-soft: #212b39;
  --c8c6c4-gold: #ffd700;
  --c8c6c4-soft: #fff176;
  --c8c6c4-ink: #0d1117;
  --c8c6c4-text: #e9eef6;
  --c8c6c4-dim: #9aa7ba;
  --c8c6c4-red: #ff6b6b;
  --c8c6c4-green: #69db7c;
  --c8c6c4-mono: "ui-monospace", "SFMono-Regular", "Cascadia Mono", "Menlo", "Consolas", monospace;
  --c8c6c4-body: "Noto Sans Bengali", "Hind Siliguri", "SolaimanLipi", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --c8c6c4-r-soft: 10px;
  --c8c6c4-r-tight: 6px;
  --c8c6c4-r-pill: 999px;
  --c8c6c4-top-h: 56px;
  --c8c6c4-bnav-h: 62px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  background: #05070b;
  color: var(--c8c6c4-text);
  font-family: var(--c8c6c4-body);
  font-size: 14px;
  line-height: 1.7;
  overflow-x: hidden;
  display: flex;
  justify-content: center;
}

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

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

a { color: var(--c8c6c4-soft); text-decoration: none; }
a:hover { color: var(--c8c6c4-gold); }

:focus-visible {
  outline: 2px solid var(--c8c6c4-gold);
  outline-offset: 2px;
}

/* ---------- phone canvas shell (centered, capped at 430) ---------- */

.c8c6c4-shell {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  min-height: 430px;
  background: var(--c8c6c4-bg);
  position: relative;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.55);
  overflow-x: clip;
}

.c8c6c4-main {
  padding: calc(var(--c8c6c4-top-h) + 10px) 12px calc(var(--c8c6c4-bnav-h) + 26px + env(safe-area-inset-bottom));
}

/* ---------- mono accent utility ---------- */

.c8c6c4-mono {
  font-family: var(--c8c6c4-mono);
  letter-spacing: 0.06em;
}

/* ---------- top compact brand bar ---------- */

.c8c6c4-topbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--c8c6c4-top-h);
  background: rgba(13, 17, 23, 0.96);
  border-bottom: 1px solid var(--c8c6c4-line);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  z-index: 60;
  backdrop-filter: blur(6px);
}

.c8c6c4-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  flex: 1 1 auto;
  min-width: 0;
}

.c8c6c4-brand img {
  width: 34px;
  height: 34px;
  border-radius: var(--c8c6c4-r-tight);
  border: 1px solid var(--c8c6c4-line);
  flex: 0 0 auto;
}

.c8c6c4-brand-name {
  font-family: var(--c8c6c4-mono);
  font-weight: 700;
  font-size: 16px;
  color: var(--c8c6c4-gold);
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.c8c6c4-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

/* square high-contrast CTA buttons */

.c8c6c4-btn {
  font-family: var(--c8c6c4-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  min-height: 36px;
  min-width: 44px;
  padding: 6px 12px;
  border-radius: 0;
  transition: background 0.18s ease, color 0.18s ease, transform 0.12s ease;
}

.c8c6c4-btn:active { transform: scale(0.96); }

.c8c6c4-btn--gold {
  background: var(--c8c6c4-gold);
  color: var(--c8c6c4-ink);
  border: 1px solid var(--c8c6c4-gold);
}

.c8c6c4-btn--gold:hover { background: var(--c8c6c4-soft); border-color: var(--c8c6c4-soft); color: var(--c8c6c4-ink); }

.c8c6c4-btn--ghost {
  border: 1px solid var(--c8c6c4-line);
  color: var(--c8c6c4-text);
  background: transparent;
}

.c8c6c4-btn--ghost:hover { border-color: var(--c8c6c4-gold); color: var(--c8c6c4-gold); }

.c8c6c4-menubtn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--c8c6c4-line);
  border-radius: var(--c8c6c4-r-tight);
  color: var(--c8c6c4-gold);
  transition: border-color 0.18s ease;
}

.c8c6c4-menubtn:hover { border-color: var(--c8c6c4-gold); }

/* ---------- sectioned menu overlay ---------- */

.c8c6c4-menu {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  max-height: 100vh;
  overflow-y: auto;
  background: var(--c8c6c4-bg-deep);
  border-right: 1px solid var(--c8c6c4-line-soft);
  border-left: 1px solid var(--c8c6c4-line-soft);
  z-index: 80;
  padding: 14px 14px calc(var(--c8c6c4-bnav-h) + 20px);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.c8c6c4-menu.c8c6c4-menu--open { visibility: visible; opacity: 1; }

.c8c6c4-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px dashed var(--c8c6c4-line);
  padding-bottom: 12px;
  margin-bottom: 14px;
}

.c8c6c4-menu-title {
  font-family: var(--c8c6c4-mono);
  font-size: 13px;
  color: var(--c8c6c4-gold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.c8c6c4-menu-close {
  width: 40px;
  height: 40px;
  border: 1px solid var(--c8c6c4-line);
  border-radius: var(--c8c6c4-r-tight);
  color: var(--c8c6c4-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.c8c6c4-menu-close:hover { border-color: var(--c8c6c4-red); color: var(--c8c6c4-red); }

.c8c6c4-menu-group { margin-bottom: 18px; }

.c8c6c4-menu-label {
  font-family: var(--c8c6c4-mono);
  font-size: 11px;
  color: var(--c8c6c4-dim);
  letter-spacing: 0.12em;
  margin-bottom: 6px;
}

.c8c6c4-menu-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-left: 2px solid var(--c8c6c4-line);
  margin-bottom: 4px;
  color: var(--c8c6c4-text);
  border-radius: 0 var(--c8c6c4-r-tight) var(--c8c6c4-r-tight) 0;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.c8c6c4-menu-link:hover,
.c8c6c4-menu-link[aria-current="page"] {
  background: var(--c8c6c4-panel);
  border-left-color: var(--c8c6c4-gold);
  color: var(--c8c6c4-gold);
}

.c8c6c4-menu-link svg { flex: 0 0 auto; }

.c8c6c4-menu-note {
  font-size: 12px;
  color: var(--c8c6c4-dim);
  border: 1px dashed var(--c8c6c4-line);
  border-radius: var(--c8c6c4-r-tight);
  padding: 8px 10px;
}

/* ---------- hero ---------- */

.c8c6c4-hero {
  border: 1px solid var(--c8c6c4-line);
  border-radius: var(--c8c6c4-r-soft);
  background:
    radial-gradient(120% 90% at 85% 0%, rgba(255, 215, 0, 0.10), transparent 55%),
    var(--c8c6c4-panel);
  padding: 16px 14px 14px;
  margin-bottom: 14px;
}

.c8c6c4-kicker {
  display: inline-block;
  font-family: var(--c8c6c4-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--c8c6c4-soft);
  border: 1px solid var(--c8c6c4-line);
  padding: 3px 8px;
  margin-bottom: 10px;
}

.c8c6c4-hero h1 {
  font-size: 21px;
  line-height: 1.45;
  color: var(--c8c6c4-text);
  margin-bottom: 10px;
}

.c8c6c4-hero p { color: var(--c8c6c4-dim); font-size: 13.5px; margin-bottom: 12px; }
.c8c6c4-hero p strong { color: var(--c8c6c4-text); font-weight: 600; }

.c8c6c4-quick {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.c8c6c4-chip {
  font-family: var(--c8c6c4-mono);
  font-size: 11px;
  color: var(--c8c6c4-text);
  border: 1px solid var(--c8c6c4-line);
  border-radius: var(--c8c6c4-r-pill);
  padding: 6px 12px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.c8c6c4-chip:hover { border-color: var(--c8c6c4-gold); color: var(--c8c6c4-gold); }

.c8c6c4-hero-cta { display: flex; gap: 8px; flex-wrap: wrap; }

.c8c6c4-hero-cta .c8c6c4-btn { flex: 1 1 auto; justify-content: center; display: inline-flex; align-items: center; }

/* ---------- promo banner carousel ---------- */

.c8c6c4-carousel {
  position: relative;
  border: 1px solid var(--c8c6c4-line);
  border-radius: var(--c8c6c4-r-soft);
  overflow: hidden;
  margin-bottom: 20px;
  background: var(--c8c6c4-panel-2);
}

.c8c6c4-track {
  display: flex;
  width: 100%;
  transition: transform 0.45s ease;
}

.c8c6c4-slide {
  flex: 0 0 100%;
  width: 100%;
  display: block;
  padding: 0;
}

.c8c6c4-slide img {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
}

.c8c6c4-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.c8c6c4-dot {
  width: 10px;
  height: 10px;
  min-width: 10px;
  border: 1px solid var(--c8c6c4-gold);
  background: rgba(13, 17, 23, 0.55);
  padding: 0;
}

.c8c6c4-dot--on { background: var(--c8c6c4-gold); }

/* ---------- game arena ---------- */

.c8c6c4-arena { margin-bottom: 8px; }

.c8c6c4-sec-h {
  font-size: 17px;
  line-height: 1.5;
  color: var(--c8c6c4-text);
  padding-left: 10px;
  border-left: 3px solid var(--c8c6c4-gold);
  margin-bottom: 8px;
}

.c8c6c4-sec-sub { color: var(--c8c6c4-dim); font-size: 13px; margin-bottom: 16px; }

.c8c6c4-cat {
  border: 1px solid var(--c8c6c4-line-soft);
  border-radius: var(--c8c6c4-r-soft);
  background: var(--c8c6c4-bg-deep);
  padding: 12px 10px 14px;
  margin-bottom: 16px;
}

.c8c6c4-cat-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.c8c6c4-cat-head h3 { font-size: 15.5px; color: var(--c8c6c4-gold); }

.c8c6c4-cat-count {
  font-family: var(--c8c6c4-mono);
  font-size: 10px;
  color: var(--c8c6c4-dim);
  border: 1px solid var(--c8c6c4-line);
  border-radius: var(--c8c6c4-r-pill);
  padding: 2px 8px;
}

.c8c6c4-cat-note { font-size: 12.5px; color: var(--c8c6c4-dim); margin-bottom: 12px; }
.c8c6c4-cat-note a { border-bottom: 1px dotted var(--c8c6c4-soft); }

.c8c6c4-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

/* outlined tile game card */

.c8c6c4-tile {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
  border: 1px solid var(--c8c6c4-line);
  border-radius: var(--c8c6c4-r-tight);
  background: var(--c8c6c4-panel);
  padding: 6px 5px 7px;
  min-height: 44px;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.12s ease;
}

.c8c6c4-tile:hover { border-color: var(--c8c6c4-gold); background: var(--c8c6c4-panel-2); }

.c8c6c4-tile:active { transform: scale(0.94); }

.c8c6c4-tile-art {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--c8c6c4-line-soft);
  background: var(--c8c6c4-bg-deep);
}

.c8c6c4-tile-art img { width: 100%; height: 100%; object-fit: cover; }

.c8c6c4-tile-name {
  font-size: 11px;
  line-height: 1.35;
  color: var(--c8c6c4-text);
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
  word-break: break-word;
}

/* ---------- content modules ---------- */

.c8c6c4-mod {
  border: 1px solid var(--c8c6c4-line-soft);
  border-radius: var(--c8c6c4-r-soft);
  background: var(--c8c6c4-panel);
  padding: 14px 12px 16px;
  margin-bottom: 16px;
}

.c8c6c4-mod h2 {
  font-size: 16.5px;
  line-height: 1.5;
  color: var(--c8c6c4-text);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--c8c6c4-line);
}

.c8c6c4-mod p { font-size: 13px; color: var(--c8c6c4-dim); margin-bottom: 10px; }
.c8c6c4-mod p:last-child { margin-bottom: 0; }
.c8c6c4-mod strong { color: var(--c8c6c4-text); font-weight: 600; }
.c8c6c4-mod p a { border-bottom: 1px dotted var(--c8c6c4-soft); }

.c8c6c4-mod h3 {
  font-size: 13.5px;
  color: var(--c8c6c4-soft);
  margin: 12px 0 6px;
}

/* step-driven rhythm */

.c8c6c4-steps { counter-reset: c8c6c4step; margin-top: 4px; }

.c8c6c4-step {
  position: relative;
  counter-increment: c8c6c4step;
  padding: 8px 10px 8px 44px;
  border: 1px solid var(--c8c6c4-line-soft);
  border-radius: var(--c8c6c4-r-tight);
  background: var(--c8c6c4-bg-deep);
  margin-bottom: 8px;
}

.c8c6c4-step::before {
  content: counter(c8c6c4step, decimal-leading-zero);
  position: absolute;
  left: 10px;
  top: 10px;
  width: 24px;
  height: 24px;
  border: 1px solid var(--c8c6c4-gold);
  color: var(--c8c6c4-gold);
  font-family: var(--c8c6c4-mono);
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
}

.c8c6c4-step b { display: block; color: var(--c8c6c4-text); font-size: 13px; margin-bottom: 2px; }
.c8c6c4-step span { font-size: 12.5px; color: var(--c8c6c4-dim); line-height: 1.65; display: block; }

/* winners sample board */

.c8c6c4-win-list { border: 1px solid var(--c8c6c4-line-soft); border-radius: var(--c8c6c4-r-tight); overflow: hidden; }

.c8c6c4-win-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--c8c6c4-bg-deep);
  border-bottom: 1px solid var(--c8c6c4-line-soft);
}

.c8c6c4-win-row:last-child { border-bottom: 0; }

.c8c6c4-win-game { flex: 1 1 auto; font-size: 12.5px; color: var(--c8c6c4-text); min-width: 0; }

.c8c6c4-win-tag {
  font-family: var(--c8c6c4-mono);
  font-size: 10px;
  color: var(--c8c6c4-dim);
  border: 1px solid var(--c8c6c4-line);
  border-radius: var(--c8c6c4-r-pill);
  padding: 1px 8px;
  white-space: nowrap;
}

.c8c6c4-win-mult {
  font-family: var(--c8c6c4-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--c8c6c4-gold);
  white-space: nowrap;
}

/* entity relationship layers */

.c8c6c4-layers { margin-top: 4px; }

.c8c6c4-layer {
  border: 1px solid var(--c8c6c4-line);
  border-radius: var(--c8c6c4-r-tight);
  background: var(--c8c6c4-bg-deep);
  padding: 9px 11px;
  margin-bottom: 6px;
  position: relative;
}

.c8c6c4-layer::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 1px;
  height: 6px;
  background: var(--c8c6c4-line);
}

.c8c6c4-layer:last-child::after { display: none; }

.c8c6c4-layer b {
  display: block;
  font-family: var(--c8c6c4-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--c8c6c4-soft);
  margin-bottom: 3px;
}

.c8c6c4-layer span { font-size: 12.5px; color: var(--c8c6c4-dim); display: block; line-height: 1.65; }

/* use case cards */

.c8c6c4-cases { display: grid; grid-template-columns: 1fr; gap: 8px; }

.c8c6c4-case {
  border: 1px solid var(--c8c6c4-line-soft);
  border-left: 3px solid var(--c8c6c4-gold);
  border-radius: 0 var(--c8c6c4-r-tight) var(--c8c6c4-r-tight) 0;
  background: var(--c8c6c4-bg-deep);
  padding: 9px 11px;
}

.c8c6c4-case b { display: block; font-size: 13px; color: var(--c8c6c4-gold); margin-bottom: 3px; }
.c8c6c4-case span { font-size: 12.5px; color: var(--c8c6c4-dim); display: block; line-height: 1.65; }

/* inline promo text button */

.c8c6c4-promoline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--c8c6c4-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--c8c6c4-ink);
  background: var(--c8c6c4-gold);
  border-radius: 0;
  padding: 8px 14px;
  min-height: 44px;
  margin: 4px 0;
  transition: background 0.18s ease, transform 0.12s ease;
}

.c8c6c4-promoline:hover { background: var(--c8c6c4-soft); color: var(--c8c6c4-ink); }
.c8c6c4-promoline:active { transform: scale(0.96); }

/* CTA band */

.c8c6c4-cta-band {
  border: 1px solid var(--c8c6c4-gold);
  border-radius: var(--c8c6c4-r-soft);
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.12), rgba(255, 241, 118, 0.04)), var(--c8c6c4-bg-deep);
  padding: 14px 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

.c8c6c4-cta-band .c8c6c4-btn { flex: 1 1 130px; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; }

/* ---------- extended footer (index only) ---------- */

.c8c6c4-xfoot {
  margin-top: 20px;
  border-top: 2px solid var(--c8c6c4-line);
  padding: 16px 0 0;
}

.c8c6c4-xbrand {
  border: 1px solid var(--c8c6c4-line-soft);
  border-radius: var(--c8c6c4-r-soft);
  background: var(--c8c6c4-panel);
  padding: 12px;
  margin-bottom: 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.c8c6c4-xbrand img { width: 40px; height: 40px; border-radius: var(--c8c6c4-r-tight); border: 1px solid var(--c8c6c4-line); flex: 0 0 auto; }

.c8c6c4-xbrand p { font-size: 12.5px; color: var(--c8c6c4-dim); }

.c8c6c4-xtitle {
  font-family: var(--c8c6c4-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--c8c6c4-soft);
  text-transform: uppercase;
  margin: 0 0 8px;
}

/* horizontal promo shortcuts */

.c8c6c4-shorts {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.c8c6c4-shortcut {
  flex: 0 0 auto;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 86px;
  min-height: 64px;
  border: 1px solid var(--c8c6c4-line);
  border-radius: var(--c8c6c4-r-tight);
  background: var(--c8c6c4-panel);
  padding: 8px 6px;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.12s ease;
}

.c8c6c4-shortcut:hover { border-color: var(--c8c6c4-gold); background: var(--c8c6c4-panel-2); }
.c8c6c4-shortcut:active { transform: scale(0.95); }

.c8c6c4-shortcut b {
  font-size: 11px;
  font-weight: 600;
  color: var(--c8c6c4-text);
  line-height: 1.3;
  text-align: center;
  opacity: 0.78;
  transition: opacity 0.18s ease, color 0.18s ease;
}

.c8c6c4-shortcut:hover b,
.c8c6c4-shortcut:active b { opacity: 1; color: var(--c8c6c4-gold); }

/* page directory */

.c8c6c4-dir {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 14px;
}

.c8c6c4-dir a {
  display: flex;
  flex-direction: column;
  gap: 1px;
  border: 1px solid var(--c8c6c4-line-soft);
  border-radius: var(--c8c6c4-r-tight);
  background: var(--c8c6c4-bg-deep);
  padding: 8px 10px;
  min-height: 48px;
  font-size: 12px;
  color: var(--c8c6c4-text);
  transition: border-color 0.18s ease;
}

.c8c6c4-dir a:hover { border-color: var(--c8c6c4-gold); color: var(--c8c6c4-gold); }

.c8c6c4-dir small { font-size: 10.5px; color: var(--c8c6c4-dim); }

/* disclaimer */

.c8c6c4-disc {
  border: 1px dashed var(--c8c6c4-line);
  border-radius: var(--c8c6c4-r-tight);
  padding: 10px 12px;
  font-size: 11.5px;
  color: var(--c8c6c4-dim);
  line-height: 1.7;
}

/* ---------- common copyright footer ---------- */

.c8c6c4-foot {
  text-align: center;
  font-family: var(--c8c6c4-mono);
  font-size: 11px;
  color: var(--c8c6c4-dim);
  padding: 16px 0 8px;
  letter-spacing: 0.05em;
}

/* ---------- layered mobile bottom nav ---------- */

.c8c6c4-bnav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: calc(var(--c8c6c4-bnav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(9, 12, 18, 0.97);
  border-top: 1px solid var(--c8c6c4-line);
  box-shadow: 0 -1px 0 rgba(255, 215, 0, 0.25), 0 -8px 22px rgba(0, 0, 0, 0.5);
  display: flex;
  z-index: 70;
}

.c8c6c4-bnav-item {
  flex: 1 1 20%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 44px;
  position: relative;
  color: var(--c8c6c4-dim);
  padding-top: 6px;
  transition: color 0.18s ease;
}

/* label reveal micro-interaction */

.c8c6c4-bnav-item span {
  font-size: 10.5px;
  line-height: 1.2;
  opacity: 0.72;
  transform: translateY(1px);
  transition: opacity 0.18s ease, transform 0.18s ease, color 0.18s ease;
}

.c8c6c4-bnav-item:hover span,
.c8c6c4-bnav-item:active span { opacity: 1; transform: translateY(0); }

/* underline marker for the active role */

.c8c6c4-bnav-item::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 0;
  height: 3px;
  background: var(--c8c6c4-gold);
  transform: translateX(-50%);
  transition: width 0.2s ease;
}

.c8c6c4-bnav-item[aria-current="page"],
.c8c6c4-bnav-item.c8c6c4-is-on { color: var(--c8c6c4-gold); }

.c8c6c4-bnav-item[aria-current="page"] span,
.c8c6c4-bnav-item.c8c6c4-is-on span { opacity: 1; color: var(--c8c6c4-gold); }

.c8c6c4-bnav-item[aria-current="page"]::after,
.c8c6c4-bnav-item.c8c6c4-is-on::after { width: 20px; }

/* ---------- help page reading patterns ---------- */

.c8c6c4-help-intro {
  border: 1px solid var(--c8c6c4-gold);
  border-radius: 0 var(--c8c6c4-r-soft) var(--c8c6c4-r-soft) 0;
  background: linear-gradient(115deg, rgba(255, 215, 0, 0.13), transparent 62%), var(--c8c6c4-panel);
  padding: 16px 14px;
  margin-bottom: 14px;
}

.c8c6c4-help-intro h1 { font-size: 21px; line-height: 1.45; margin-bottom: 9px; color: var(--c8c6c4-text); }
.c8c6c4-help-intro p { color: var(--c8c6c4-dim); font-size: 13.5px; margin-bottom: 10px; }
.c8c6c4-help-intro p:last-child { margin-bottom: 0; }

.c8c6c4-rail { border-left: 2px solid var(--c8c6c4-gold); padding-left: 12px; margin: 8px 0 14px; }
.c8c6c4-rail p { color: var(--c8c6c4-dim); font-size: 13px; margin-bottom: 8px; }
.c8c6c4-rail p:last-child { margin-bottom: 0; }

.c8c6c4-answer {
  border: 1px solid var(--c8c6c4-line);
  border-radius: var(--c8c6c4-r-tight);
  background: var(--c8c6c4-bg-deep);
  padding: 11px 12px;
  margin: 10px 0;
}

.c8c6c4-answer b { display: block; color: var(--c8c6c4-soft); font-size: 13px; margin-bottom: 4px; }
.c8c6c4-answer span { display: block; color: var(--c8c6c4-dim); font-size: 12.5px; line-height: 1.68; }

.c8c6c4-checklist { list-style: none; display: grid; gap: 7px; margin: 8px 0; }
.c8c6c4-checklist li { position: relative; padding: 8px 10px 8px 32px; border: 1px solid var(--c8c6c4-line-soft); border-radius: var(--c8c6c4-r-tight); background: var(--c8c6c4-bg-deep); color: var(--c8c6c4-dim); font-size: 12.5px; }
.c8c6c4-checklist li::before { content: "✓"; position: absolute; left: 10px; top: 8px; color: var(--c8c6c4-gold); font-family: var(--c8c6c4-mono); font-weight: 700; }

.c8c6c4-compare { overflow-x: auto; border: 1px solid var(--c8c6c4-line); border-radius: var(--c8c6c4-r-tight); margin: 9px 0; }
.c8c6c4-compare table { width: 100%; min-width: 360px; border-collapse: collapse; font-size: 12px; }
.c8c6c4-compare th, .c8c6c4-compare td { text-align: left; vertical-align: top; padding: 8px; border-bottom: 1px solid var(--c8c6c4-line-soft); }
.c8c6c4-compare th { color: var(--c8c6c4-gold); font-family: var(--c8c6c4-mono); font-size: 10.5px; letter-spacing: 0.04em; background: var(--c8c6c4-panel-2); }
.c8c6c4-compare td { color: var(--c8c6c4-dim); background: var(--c8c6c4-bg-deep); }
.c8c6c4-compare tr:last-child td { border-bottom: 0; }

.c8c6c4-faq { border-top: 1px solid var(--c8c6c4-line); }
.c8c6c4-faq details { border-bottom: 1px solid var(--c8c6c4-line-soft); padding: 9px 0; }
.c8c6c4-faq summary { cursor: pointer; color: var(--c8c6c4-text); font-size: 13px; font-weight: 600; padding-right: 8px; }
.c8c6c4-faq details p { margin: 7px 0 0; }

.c8c6c4-help-links { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 9px; }
.c8c6c4-help-links a { min-height: 48px; display: flex; align-items: center; border: 1px solid var(--c8c6c4-line); border-left: 3px solid var(--c8c6c4-gold); border-radius: 0 var(--c8c6c4-r-tight) var(--c8c6c4-r-tight) 0; padding: 7px 9px; color: var(--c8c6c4-text); font-size: 12px; }
.c8c6c4-help-links a:hover { background: var(--c8c6c4-panel-2); color: var(--c8c6c4-gold); }

.c8c6c4-notice { border: 1px dashed var(--c8c6c4-gold); background: rgba(255, 215, 0, 0.06); padding: 10px 11px; color: var(--c8c6c4-soft); font-size: 12.5px; margin: 10px 0; }

/* ---------- responsive: 4 cols base, 5 cols on wider canvas ---------- */

@media (min-width: 375px) {
  .c8c6c4-tile-name { font-size: 11.5px; }
  .c8c6c4-hero h1 { font-size: 22px; }
}

@media (min-width: 396px) {
  .c8c6c4-grid { grid-template-columns: repeat(5, 1fr); gap: 8px; }
  .c8c6c4-tile-name { font-size: 10.5px; }
}

@media (min-width: 430px) {
  .c8c6c4-shell { border-left: 1px solid var(--c8c6c4-line-soft); border-right: 1px solid var(--c8c6c4-line-soft); }
}

/* ---------- reduced motion ---------- */

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

/* ---------- small helpers ---------- */

.c8c6c4-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
