/* ==========================================================================
   zone casino - display stylesheet (mobile canvas 320-430px)
   Prefix system: every class and variable uses cb23a4-
   Palette: coral #FF7F50 / amber #FFA500 / mist #B0E0E6 / ink #262626 / sky #00BFFF
   Tone: poster headings + narrow body copy, rounded buttons, squared outlined
   tile cards, step-progression sections, restrained fade-in feedback.
   ========================================================================== */

:root {
  --cb23a4-coral: #FF7F50;
  --cb23a4-amber: #FFA500;
  --cb23a4-mist: #B0E0E6;
  --cb23a4-ink: #262626;
  --cb23a4-sky: #00BFFF;
  --cb23a4-void: #171614;
  --cb23a4-panel: #201f1d;
  --cb23a4-panel-2: #2b2a27;
  --cb23a4-line: rgba(176, 224, 230, 0.22);
  --cb23a4-line-soft: rgba(176, 224, 230, 0.12);
  --cb23a4-text: #EDE7DF;
  --cb23a4-text-dim: #B7B1A6;
  --cb23a4-head-font: "Trebuchet MS", "Segoe UI", Verdana, system-ui, sans-serif;
  --cb23a4-body-font: "Segoe UI", Roboto, Helvetica, Arial, system-ui, sans-serif;
  --cb23a4-radius-btn: 999px;
  --cb23a4-radius-card: 6px;
  --cb23a4-top-h: 108px;
  --cb23a4-tabbar-h: 78px;
}

/* ---------- reset / canvas ---------- */
* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

html { scroll-behavior: smooth; }

body {
  background: #0d0c0b;
  color: var(--cb23a4-text);
  font-family: var(--cb23a4-body-font);
  font-size: 15px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.cb23a4-shell {
  position: relative;
  width: 100%;
  max-width: 430px; /* the site canvas stays a phone column on wide screens */
  margin: 0 auto;
  min-height: 100vh;
  background:
    radial-gradient(120% 46% at 50% -4%, rgba(0, 191, 255, 0.16), transparent 62%),
    radial-gradient(90% 34% at 88% 12%, rgba(255, 127, 80, 0.13), transparent 60%),
    linear-gradient(180deg, var(--cb23a4-void) 0%, #1d1c1a 42%, var(--cb23a4-ink) 100%);
  box-shadow: 0 0 44px rgba(0, 0, 0, 0.6);
  overflow-x: clip;
}

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

a { color: var(--cb23a4-sky); text-decoration: none; }
a:hover { color: var(--cb23a4-amber); }

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

:focus-visible {
  outline: 2px solid var(--cb23a4-sky);
  outline-offset: 2px;
  border-radius: 4px;
}

.cb23a4-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--cb23a4-coral);
  color: #1c1206;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  font-weight: 700;
  z-index: 90;
}
.cb23a4-skip:focus { left: 0; }

/* ---------- fixed top bar: centered identity + action row ---------- */
.cb23a4-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 100%;
  max-width: 430px;
  z-index: 60;
  background: linear-gradient(180deg, rgba(23, 22, 20, 0.97) 0%, rgba(23, 22, 20, 0.92) 78%, rgba(23, 22, 20, 0.82) 100%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--cb23a4-line-soft);
  padding-top: env(safe-area-inset-top);
}

.cb23a4-identity {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 9px 14px 7px;
}

.cb23a4-identity img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid rgba(255, 165, 0, 0.55);
  box-shadow: 0 2px 10px rgba(255, 127, 80, 0.35);
  object-fit: cover;
}

.cb23a4-identity strong {
  font-family: var(--cb23a4-head-font);
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  color: var(--cb23a4-text);
}
.cb23a4-identity strong::after {
  content: "";
  display: block;
  height: 3px;
  width: 46px;
  margin: 2px auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cb23a4-coral), var(--cb23a4-amber));
}

.cb23a4-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 52px;
  gap: 8px;
  align-items: stretch;
  padding: 0 12px 10px;
}

.cb23a4-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px; /* touch target */
  padding: 9px 16px;
  border-radius: var(--cb23a4-radius-btn);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.03em;
  transition: transform 0.15s ease, filter 0.15s ease, background 0.15s ease;
}
.cb23a4-btn:active { transform: scale(0.97); }

.cb23a4-btn--register {
  background: linear-gradient(135deg, var(--cb23a4-coral), var(--cb23a4-amber));
  color: #241203;
  box-shadow: 0 4px 14px rgba(255, 127, 80, 0.35);
}
.cb23a4-btn--register:hover { filter: brightness(1.08); color: #241203; }

.cb23a4-btn--login {
  background: transparent;
  color: var(--cb23a4-mist);
  border: 1px solid var(--cb23a4-line);
}
.cb23a4-btn--login:hover { border-color: var(--cb23a4-sky); color: var(--cb23a4-sky); }

.cb23a4-burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--cb23a4-line-soft);
  border-radius: 12px;
  color: var(--cb23a4-mist);
}
.cb23a4-burger:hover { color: var(--cb23a4-amber); border-color: var(--cb23a4-amber); }
.cb23a4-burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
}
.cb23a4-burger span::before,
.cb23a4-burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.cb23a4-burger span::before { top: -6px; }
.cb23a4-burger span::after { top: 6px; }

/* ---------- slide-up route panel ---------- */
.cb23a4-veil {
  position: fixed;
  inset: 0;
  background: rgba(10, 9, 8, 0.62);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 70;
}
.cb23a4-veil--on { opacity: 1; pointer-events: auto; }

.cb23a4-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 100%;
  max-width: 430px;
  background: linear-gradient(180deg, var(--cb23a4-panel-2), var(--cb23a4-panel));
  border-top: 1px solid var(--cb23a4-line);
  border-radius: 20px 20px 0 0;
  padding: 14px 16px calc(20px + env(safe-area-inset-bottom));
  transform: translateY(104%);
  transition: transform 0.3s cubic-bezier(0.22, 0.9, 0.3, 1);
  z-index: 80;
  max-height: 78vh;
  overflow-y: auto;
}
.cb23a4-panel--on { transform: translateY(0); }

.cb23a4-panel__grip {
  width: 44px;
  height: 4px;
  border-radius: 2px;
  background: var(--cb23a4-line);
  margin: 0 auto 12px;
}

.cb23a4-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.cb23a4-panel__head h2,
.cb23a4-panel__label {
  margin: 0;
  font-family: var(--cb23a4-head-font);
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cb23a4-amber);
}
.cb23a4-panel__shut {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--cb23a4-text-dim);
  font-size: 20px;
  line-height: 1;
}
.cb23a4-panel__shut:hover { color: var(--cb23a4-coral); }

.cb23a4-panel__links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.cb23a4-route {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 9px 11px;
  border: 1px solid var(--cb23a4-line-soft);
  border-radius: 10px;
  background: rgba(176, 224, 230, 0.05);
  color: var(--cb23a4-text);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.cb23a4-route:hover {
  border-color: var(--cb23a4-amber);
  background: rgba(255, 165, 0, 0.1);
  color: var(--cb23a4-text);
}
.cb23a4-route--now {
  border-color: var(--cb23a4-sky);
  background: rgba(0, 191, 255, 0.12);
}
.cb23a4-route svg { flex: 0 0 auto; color: var(--cb23a4-sky); }

.cb23a4-panel__cta {
  width: 100%;
  background: linear-gradient(135deg, var(--cb23a4-coral), var(--cb23a4-amber));
  color: #241203;
}

/* ---------- main column ---------- */
.cb23a4-main {
  padding: calc(var(--cb23a4-top-h) + env(safe-area-inset-top)) 14px
           calc(var(--cb23a4-tabbar-h) + 34px + env(safe-area-inset-bottom));
}

/* ---------- hero ---------- */
.cb23a4-hero { margin: 4px 0 18px; }

.cb23a4-hero__title {
  font-family: var(--cb23a4-head-font);
  font-size: clamp(24px, 7vw, 31px);
  line-height: 1.16;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0 0 4px;
  color: var(--cb23a4-text);
  text-shadow: 0 2px 12px rgba(0, 191, 255, 0.25);
}
.cb23a4-hero__title em {
  font-style: normal;
  color: var(--cb23a4-amber);
}

.cb23a4-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cb23a4-mist);
  border: 1px solid var(--cb23a4-line-soft);
  border-radius: var(--cb23a4-radius-btn);
  padding: 4px 12px;
  margin-bottom: 10px;
}
.cb23a4-hero__kicker i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cb23a4-coral);
  box-shadow: 0 0 8px var(--cb23a4-coral);
}

/* carousel */
.cb23a4-stage {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--cb23a4-line);
  background: #12110f;
}

.cb23a4-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.3, 0.8, 0.3, 1);
}

.cb23a4-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  display: block;
  padding: 0;
  text-align: left;
}

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

.cb23a4-slide__band {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 30px 14px 12px;
  background: linear-gradient(180deg, transparent, rgba(15, 14, 12, 0.92) 62%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}
.cb23a4-slide__band b {
  font-family: var(--cb23a4-head-font);
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  display: block;
}
.cb23a4-slide__band small {
  display: block;
  color: var(--cb23a4-mist);
  font-size: 11.5px;
  margin-top: 2px;
}
.cb23a4-slide__go {
  flex: 0 0 auto;
  background: linear-gradient(135deg, var(--cb23a4-coral), var(--cb23a4-amber));
  color: #241203;
  font-weight: 800;
  font-size: 12px;
  padding: 8px 14px;
  border-radius: var(--cb23a4-radius-btn);
}

.cb23a4-dots {
  position: absolute;
  top: 10px;
  right: 12px;
  display: flex;
  gap: 6px;
  z-index: 2;
}
.cb23a4-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(237, 231, 223, 0.4);
  transition: background 0.2s ease, width 0.2s ease;
}
.cb23a4-dot--on {
  width: 20px;
  border-radius: 4px;
  background: var(--cb23a4-amber);
}

/* lead copy + CTA group */
.cb23a4-lead {
  margin: 16px 0 6px;
}
.cb23a4-lead p {
  margin: 0 0 10px;
  max-width: 38ch; /* narrow body column */
  color: var(--cb23a4-text-dim);
  font-size: 14.5px;
}
.cb23a4-lead p strong { color: var(--cb23a4-text); }

.cb23a4-ctagroup {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 4px;
}
.cb23a4-ctagroup .cb23a4-btn { flex: 1 1 130px; }
.cb23a4-btn--ghost {
  border: 1px solid var(--cb23a4-line);
  color: var(--cb23a4-mist);
}
.cb23a4-btn--ghost:hover { border-color: var(--cb23a4-coral); color: var(--cb23a4-coral); }

/* ---------- category chip rail ---------- */
.cb23a4-rail {
  position: sticky;
  top: calc(var(--cb23a4-top-h) + env(safe-area-inset-top));
  z-index: 40;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 2px 12px;
  scrollbar-width: none;
  margin: 0 -14px;
  padding-left: 14px;
  padding-right: 14px;
  background: linear-gradient(180deg, rgba(29, 28, 26, 0.96), rgba(29, 28, 26, 0.86));
  border-bottom: 1px solid var(--cb23a4-line-soft);
}
.cb23a4-rail::-webkit-scrollbar { display: none; }

.cb23a4-chip {
  flex: 0 0 auto;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid var(--cb23a4-line-soft);
  border-radius: var(--cb23a4-radius-btn);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cb23a4-text-dim);
  background: rgba(38, 38, 38, 0.6);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.cb23a4-chip:hover { color: var(--cb23a4-amber); border-color: var(--cb23a4-amber); }
.cb23a4-chip--on {
  color: #241203;
  background: linear-gradient(135deg, var(--cb23a4-coral), var(--cb23a4-amber));
  border-color: transparent;
}

/* ---------- step sections (progressive rhythm) ---------- */
.cb23a4-step {
  position: relative;
  margin: 26px 0;
  padding-top: 6px;
}

.cb23a4-step__no {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.cb23a4-step__no i {
  font-style: normal;
  font-family: var(--cb23a4-head-font);
  font-weight: 900;
  font-size: 13px;
  color: #241203;
  background: linear-gradient(135deg, var(--cb23a4-amber), var(--cb23a4-coral));
  width: 30px;
  height: 30px;
  border-radius: 10px 4px 10px 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.cb23a4-step__no span {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cb23a4-sky);
}

.cb23a4-h2 {
  font-family: var(--cb23a4-head-font);
  font-size: 21px;
  line-height: 1.24;
  font-weight: 900;
  margin: 0 0 10px;
  color: var(--cb23a4-text);
  padding-left: 40px; /* poster heading offset beside the number badge */
}
.cb23a4-h2::after {
  content: "";
  display: block;
  width: 54px;
  height: 3px;
  margin-top: 7px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cb23a4-sky), transparent);
}

.cb23a4-prose p {
  margin: 0 0 12px;
  max-width: 40ch;
  color: var(--cb23a4-text-dim);
  font-size: 14.5px;
}
.cb23a4-prose p:last-child { margin-bottom: 0; }
.cb23a4-prose strong { color: var(--cb23a4-text); }
.cb23a4-prose a {
  color: var(--cb23a4-sky);
  border-bottom: 1px dashed rgba(0, 191, 255, 0.5);
  font-weight: 600;
}
.cb23a4-prose a:hover { color: var(--cb23a4-amber); border-bottom-color: var(--cb23a4-amber); }

/* game section head */
.cb23a4-sechead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 2px;
  flex-wrap: wrap;
}
.cb23a4-sechead h2 {
  font-family: var(--cb23a4-head-font);
  font-size: 20px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0;
  color: var(--cb23a4-amber);
}
.cb23a4-sechead small {
  font-size: 11px;
  color: var(--cb23a4-text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.cb23a4-secintro {
  margin: 8px 0 10px;
  color: var(--cb23a4-text-dim);
  font-size: 13.5px;
  max-width: 42ch;
}
.cb23a4-secintro a { color: var(--cb23a4-sky); font-weight: 600; }
.cb23a4-secintro a:hover { color: var(--cb23a4-amber); }

.cb23a4-crosslinks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 2px 0 12px;
}
.cb23a4-crosslink {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--cb23a4-mist);
  border: 1px solid var(--cb23a4-line-soft);
  border-radius: var(--cb23a4-radius-btn);
  padding: 6px 12px;
  min-height: 32px;
}
.cb23a4-crosslink::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cb23a4-sky);
}
.cb23a4-crosslink:hover {
  color: var(--cb23a4-amber);
  border-color: var(--cb23a4-amber);
}
.cb23a4-crosslink:hover::before { background: var(--cb23a4-amber); }

/* ---------- game grid: outlined tile cards ---------- */
.cb23a4-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)); /* 4 columns at 320px */
  gap: 8px;
  margin: 4px 0 8px;
}

.cb23a4-tile {
  display: flex;
  flex-direction: column;
  padding: 5px 5px 8px;
  border: 1px solid var(--cb23a4-line-soft);
  border-radius: var(--cb23a4-radius-card); /* squared tile */
  background: rgba(38, 38, 38, 0.42);
  text-align: center;
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}
.cb23a4-tile:hover {
  border-color: var(--cb23a4-amber);
  background: rgba(255, 165, 0, 0.07);
  transform: translateY(-2px);
}
.cb23a4-tile img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 4px;
  background: #141311;
}
.cb23a4-tile span {
  margin-top: 6px;
  font-size: 10.5px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--cb23a4-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 27px; /* two stable text rows prevent grid jumps */
}

/* ---------- fact / list blocks ---------- */
.cb23a4-facts {
  margin: 4px 0 12px;
  border: 1px solid var(--cb23a4-line-soft);
  border-radius: var(--cb23a4-radius-card);
  background: rgba(32, 31, 29, 0.65);
  padding: 4px 12px;
}
.cb23a4-facts div {
  display: flex;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--cb23a4-line-soft);
  font-size: 13.5px;
}
.cb23a4-facts div:last-child { border-bottom: 0; }
.cb23a4-facts b {
  flex: 0 0 96px;
  color: var(--cb23a4-mist);
  font-weight: 700;
}
.cb23a4-facts span { color: var(--cb23a4-text-dim); }

.cb23a4-note {
  border-left: 3px solid var(--cb23a4-sky);
  background: rgba(0, 191, 255, 0.07);
  border-radius: 0 var(--cb23a4-radius-card) var(--cb23a4-radius-card) 0;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--cb23a4-text-dim);
  max-width: 42ch;
}
.cb23a4-note strong { color: var(--cb23a4-mist); }

/* ---------- extended footer ---------- */
.cb23a4-xfooter {
  margin: 30px 0 0;
  border-top: 1px solid var(--cb23a4-line);
  padding-top: 6px;
}

.cb23a4-xfooter h2,
.cb23a4-xfooter h3 {
  font-family: var(--cb23a4-head-font);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cb23a4-mist);
}
.cb23a4-xfooter h2 { font-size: 15px; margin: 18px 0 8px; }
.cb23a4-xfooter h3 { font-size: 12.5px; margin: 14px 0 6px; }

.cb23a4-xfooter__blurb {
  font-size: 13px;
  color: var(--cb23a4-text-dim);
  max-width: 44ch;
  margin: 0 0 4px;
}

.cb23a4-dir {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 4px 0 6px;
}
.cb23a4-dir a {
  display: block;
  padding: 8px 10px;
  min-height: 44px;
  border: 1px solid var(--cb23a4-line-soft);
  border-radius: 9px;
  font-size: 12px;
  font-weight: 600;
  color: var(--cb23a4-text);
  line-height: 1.35;
  background: rgba(176, 224, 230, 0.04);
}
.cb23a4-dir a:hover { border-color: var(--cb23a4-sky); color: var(--cb23a4-sky); }
.cb23a4-dir small { display: block; color: var(--cb23a4-text-dim); font-weight: 400; font-size: 11px; }

.cb23a4-promos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 4px 0 6px;
}
.cb23a4-promo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 46px;
  padding: 8px 10px;
  border-radius: var(--cb23a4-radius-btn);
  font-size: 12.5px;
  font-weight: 700;
  text-align: center;
  line-height: 1.25;
}
.cb23a4-promo--fill {
  background: linear-gradient(135deg, var(--cb23a4-coral), var(--cb23a4-amber));
  color: #241203;
}
.cb23a4-promo--fill:hover { filter: brightness(1.07); color: #241203; }
.cb23a4-promo--line {
  border: 1px solid var(--cb23a4-line);
  color: var(--cb23a4-mist);
}
.cb23a4-promo--line:hover { border-color: var(--cb23a4-coral); color: var(--cb23a4-coral); }

.cb23a4-disclaimer {
  font-size: 12px;
  line-height: 1.6;
  color: #8f897e;
  border: 1px dashed var(--cb23a4-line-soft);
  border-radius: var(--cb23a4-radius-card);
  padding: 10px 12px;
  margin-top: 8px;
}

/* ---------- common footer ---------- */
.cb23a4-footer {
  text-align: center;
  padding: 18px 14px 8px;
  border-top: 1px solid var(--cb23a4-line-soft);
  margin-top: 8px;
}
.cb23a4-footer p {
  margin: 0;
  font-size: 11.5px;
  color: #8f897e;
  letter-spacing: 0.04em;
}

/* ---------- bottom tab bar: center-raised navigation ---------- */
.cb23a4-tabbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 100%;
  max-width: 430px;
  z-index: 65;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  min-height: calc(var(--cb23a4-tabbar-h) + env(safe-area-inset-bottom));
  padding: 6px 4px calc(8px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(32, 31, 29, 0.9), rgba(18, 17, 15, 0.98));
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--cb23a4-line);
}

.cb23a4-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  min-height: 48px;
  padding: 4px 2px;
  color: var(--cb23a4-text-dim);
  border-radius: 12px;
  transition: color 0.18s ease;
}
.cb23a4-tab svg { width: 22px; height: 22px; }
.cb23a4-tab span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.72;
  transition: opacity 0.18s ease, color 0.18s ease;
}
.cb23a4-tab:hover { color: var(--cb23a4-amber); }
.cb23a4-tab:hover span { opacity: 1; }

/* active page: label emphasis (micro-interaction reveals the label) */
.cb23a4-tab--on { color: var(--cb23a4-amber); }
.cb23a4-tab--on span {
  opacity: 1;
  color: var(--cb23a4-amber);
  text-shadow: 0 0 10px rgba(255, 165, 0, 0.55);
}

/* center raised promo button */
.cb23a4-tab--lift {
  transform: translateY(-16px);
  color: var(--cb23a4-mist);
}
.cb23a4-tab--lift i {
  font-style: normal;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(140deg, var(--cb23a4-coral), var(--cb23a4-amber));
  color: #241203;
  box-shadow: 0 6px 18px rgba(255, 127, 80, 0.5), 0 0 0 4px rgba(255, 165, 0, 0.16);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.cb23a4-tab--lift i svg { width: 24px; height: 24px; }
.cb23a4-tab--lift:active i { transform: scale(0.94); }
.cb23a4-tab--lift span { opacity: 0.9; }

/* ---------- restrained reveal animation ---------- */
.cb23a4-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.cb23a4-reveal--in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cb23a4-reveal { opacity: 1; transform: none; transition: none; }
  .cb23a4-track { transition: none; }
  .cb23a4-panel { transition: none; }
}

/* ---------- wider phone canvas (375-430px): breathe, 5th column for tiles ---------- */
@media (min-width: 375px) {
  .cb23a4-grid { gap: 9px; }
  .cb23a4-tile span { font-size: 11px; }
  .cb23a4-promos { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 430px) {
  .cb23a4-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .cb23a4-h2 { font-size: 23px; }
  .cb23a4-prose p { font-size: 15px; }
}

/* ---------- very narrow phones: keep 4 columns but tighten ---------- */
@media (max-width: 339px) {
  .cb23a4-grid { gap: 6px; }
  .cb23a4-tile span { font-size: 10px; }
  .cb23a4-identity strong { font-size: 17px; }
  .cb23a4-promos { grid-template-columns: 1fr; }
}

/* ---------- help pages: guide desk (how-to) and brief desk (about) ---------- */
.cb23a4-poster {
  font-family: var(--cb23a4-head-font);
  font-weight: 900;
  font-size: clamp(22px, 6.5vw, 28px);
  line-height: 1.18;
  letter-spacing: 0.01em;
  margin: 0 0 12px;
  color: var(--cb23a4-text);
  overflow-wrap: anywhere;
}
.cb23a4-poster::after {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  margin-top: 10px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cb23a4-coral), var(--cb23a4-amber));
}

.cb23a4-guide h2,
.cb23a4-brief h2 {
  font-family: var(--cb23a4-head-font);
  font-weight: 900;
  font-size: 20px;
  line-height: 1.28;
  margin: 0 0 10px;
  color: var(--cb23a4-text);
  overflow-wrap: anywhere;
}
.cb23a4-guide h3,
.cb23a4-brief h3 {
  font-family: var(--cb23a4-head-font);
  font-size: 15px;
  font-weight: 800;
  margin: 0 0 6px;
  color: var(--cb23a4-amber);
}

.cb23a4-banner {
  display: block;
  width: 100%;
  margin: 12px 0;
  padding: 0;
  border: 1px solid var(--cb23a4-line);
  border-radius: var(--cb23a4-radius-card);
  overflow: hidden;
  text-align: left;
  background: #141311;
}
.cb23a4-banner img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.cb23a4-banner span {
  display: block;
  padding: 10px 12px 12px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--cb23a4-mist);
}

.cb23a4-matrix,
.cb23a4-ladder,
.cb23a4-triage,
.cb23a4-forks,
.cb23a4-scenes,
.cb23a4-limits,
.cb23a4-checks {
  display: grid;
  gap: 8px;
  margin: 10px 0 4px;
}

.cb23a4-matrix article,
.cb23a4-ladder li,
.cb23a4-forks article,
.cb23a4-scenes article,
.cb23a4-checks li {
  border: 1px solid var(--cb23a4-line-soft);
  border-radius: var(--cb23a4-radius-card);
  background: rgba(32, 31, 29, 0.72);
  padding: 10px 12px;
}

.cb23a4-ladder {
  list-style: none;
  margin-left: 0;
  padding: 0;
  counter-reset: cb23a4step;
}
.cb23a4-ladder li {
  position: relative;
  padding-left: 46px;
}
.cb23a4-ladder li::before {
  counter-increment: cb23a4step;
  content: counter(cb23a4step);
  position: absolute;
  left: 10px;
  top: 12px;
  width: 26px;
  height: 26px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--cb23a4-head-font);
  font-weight: 900;
  font-size: 13px;
  color: #241203;
  background: var(--cb23a4-amber);
}

.cb23a4-triage div {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-left: 3px solid var(--cb23a4-coral);
  background: rgba(255, 127, 80, 0.06);
}
.cb23a4-triage b {
  color: var(--cb23a4-mist);
  font-size: 13px;
}
.cb23a4-triage span { color: var(--cb23a4-text-dim); font-size: 13.5px; }

.cb23a4-forks article { border-left: 3px solid var(--cb23a4-sky); }
.cb23a4-matrix article { border-top: 3px solid var(--cb23a4-amber); }
.cb23a4-scenes article { border-top: 3px solid var(--cb23a4-sky); padding-top: 12px; }

.cb23a4-limits {
  margin: 10px 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--cb23a4-line-soft);
}
.cb23a4-limits li {
  padding: 10px 0;
  border-bottom: 1px solid var(--cb23a4-line-soft);
  color: var(--cb23a4-text-dim);
  font-size: 14px;
}
.cb23a4-limits b { color: var(--cb23a4-mist); }

.cb23a4-checks { list-style: none; padding: 0; }
.cb23a4-checks li { color: var(--cb23a4-text-dim); font-size: 14px; }
.cb23a4-checks li::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 2px;
  background: var(--cb23a4-coral);
}

.cb23a4-recap {
  margin-top: 8px;
  padding: 12px;
  border: 1px dashed var(--cb23a4-line);
  border-radius: var(--cb23a4-radius-card);
  background: rgba(0, 191, 255, 0.05);
}

.cb23a4-textlink {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 2px;
  color: var(--cb23a4-sky);
  font-weight: 700;
  font-size: 14.5px;
  border-bottom: 1px dashed rgba(0, 191, 255, 0.45);
}
.cb23a4-textlink:hover { color: var(--cb23a4-amber); }
