/* ==========================================================================
   644 jail — surface stylesheet
   Class prefix   : cec787-
   Canvas         : 320–430px mobile-first phone canvas (centered on wide screens)
   Palette        : #2C3E50 / #36454F deep slate ground, #F5F5F5 / #D3D3D3 ink,
                    #A9A9A9 mute, #FF91A4 rose accent
   Shape language : pill buttons, square-ish cards, light floating game tiles
   Motion budget  : restrained fade-up reveals, sliding indicators only
   ========================================================================== */

:root {
  --cec787-deep: #2C3E50;
  --cec787-raise: #36454F;
  --cec787-ink: #F5F5F5;
  --cec787-soft: #D3D3D3;
  --cec787-mute: #A9A9A9;
  --cec787-rose: #FF91A4;
  --cec787-rose-press: #e97f92;
  --cec787-night: #1b2531;
  --cec787-line: rgba(245, 245, 245, 0.16);
  --cec787-line-soft: rgba(245, 245, 245, 0.08);
  --cec787-veil: rgba(245, 245, 245, 0.055);
  --cec787-veil-strong: rgba(245, 245, 245, 0.11);
  --cec787-font-head: "Baloo Da 2", "Hind Siliguri", "Noto Sans Bengali", sans-serif;
  --cec787-font-body: "Hind Siliguri", "Noto Sans Bengali", "Segoe UI", sans-serif;
  --cec787-radius-card: 6px;
  --cec787-radius-chip: 10px;
  --cec787-radius-btn: 999px;
  --cec787-tap: 44px;
  --cec787-top-h: 58px;
  --cec787-dock-h: 66px;
  --cec787-canvas: 430px;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--cec787-night);
  color: var(--cec787-ink);
  font-family: var(--cec787-font-body);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
}

body.cec787-locked {
  overflow: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--cec787-font-head);
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 0.5em;
  color: var(--cec787-ink);
}

p {
  margin: 0 0 0.85em;
}

a {
  color: var(--cec787-rose);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

ul, ol {
  margin: 0 0 1em;
  padding-left: 1.25em;
}

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

.cec787-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--cec787-rose);
  color: #23272e;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 200;
}

.cec787-skip:focus {
  left: 0;
}

.cec787-shell {
  max-width: var(--cec787-canvas);
  margin: 0 auto;
  min-height: 100vh;
  background:
    radial-gradient(120% 52% at 50% -8%, rgba(255, 145, 164, 0.14), transparent 62%),
    linear-gradient(180deg, var(--cec787-deep) 0%, #2f4153 46%, var(--cec787-raise) 100%);
  box-shadow: 0 0 44px rgba(0, 0, 0, 0.55);
  position: relative;
}

.cec787-main {
  padding: calc(var(--cec787-top-h) + 14px) 14px calc(var(--cec787-dock-h) + 34px + env(safe-area-inset-bottom, 0px));
}

/* --------------------------------------------------------------------------
   Top bar — edge-aligned functional header
   -------------------------------------------------------------------------- */

.cec787-topbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, var(--cec787-canvas));
  height: var(--cec787-top-h);
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 10px 0 8px;
  background: rgba(30, 40, 51, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--cec787-line-soft);
}

.cec787-topbar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cec787-rose) 0%, rgba(255, 145, 164, 0.25) 55%, transparent 100%);
}

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

.cec787-brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid var(--cec787-line);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
  flex: none;
}

.cec787-brand-name {
  font-family: var(--cec787-font-head);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.2px;
  color: var(--cec787-ink);
  white-space: nowrap;
}

.cec787-topacts {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
}

/* Pill button pair — compact dual CTA */

.cec787-btn {
  font-family: var(--cec787-font-body);
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
  border: none;
  border-radius: var(--cec787-radius-btn);
  padding: 0 14px;
  height: 34px;
  min-width: 44px;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

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

.cec787-btn-rose {
  background: linear-gradient(180deg, var(--cec787-rose) 0%, var(--cec787-rose-press) 100%);
  color: #2a2027;
  box-shadow: 0 4px 14px rgba(255, 145, 164, 0.32);
}

.cec787-btn-ghost {
  background: transparent;
  color: var(--cec787-soft);
  border: 1px solid var(--cec787-line);
  height: 34px;
}

.cec787-btn-ghost:hover {
  color: var(--cec787-ink);
  border-color: var(--cec787-rose);
}

/* Menu trigger — three strokes collapsing into a cross */

.cec787-menubtn {
  width: 40px;
  height: 40px;
  flex: none;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: var(--cec787-veil);
  border: 1px solid var(--cec787-line-soft);
  border-radius: 12px;
  cursor: pointer;
}

.cec787-menubtn span {
  display: block;
  width: 17px;
  height: 2px;
  border-radius: 2px;
  background: var(--cec787-soft);
  transition: transform 0.22s ease, opacity 0.18s ease, background 0.18s ease;
}

.cec787-menubtn.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
  background: var(--cec787-rose);
}

.cec787-menubtn.is-open span:nth-child(2) {
  opacity: 0;
}

.cec787-menubtn.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
  background: var(--cec787-rose);
}

/* --------------------------------------------------------------------------
   Slide-up route panel (menu)
   -------------------------------------------------------------------------- */

.cec787-scrim {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: rgba(12, 18, 25, 0.62);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.cec787-scrim.show {
  opacity: 1;
  visibility: visible;
}

.cec787-route {
  position: fixed;
  bottom: 0;
  left: 50%;
  z-index: 96;
  width: min(100%, var(--cec787-canvas));
  max-height: 78vh;
  overflow-y: auto;
  background: linear-gradient(180deg, #31424f 0%, #26333e 100%);
  border-radius: 18px 18px 0 0;
  border-top: 1px solid var(--cec787-line);
  box-shadow: 0 -18px 44px rgba(0, 0, 0, 0.5);
  padding: 10px 14px calc(20px + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 102%);
  transition: transform 0.3s cubic-bezier(0.22, 0.9, 0.32, 1);
}

.cec787-route.open {
  transform: translate(-50%, 0);
}

.cec787-route-grab {
  width: 44px;
  height: 4px;
  border-radius: 4px;
  background: var(--cec787-line);
  margin: 4px auto 10px;
}

.cec787-route-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.cec787-route-title {
  font-family: var(--cec787-font-head);
  font-size: 17px;
  font-weight: 700;
  color: var(--cec787-ink);
}

.cec787-route-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--cec787-line);
  background: var(--cec787-veil);
  color: var(--cec787-soft);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}

.cec787-route-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cec787-mute);
  margin: 14px 2px 8px;
}

.cec787-route-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.cec787-route-link {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 8px 10px;
  border-radius: var(--cec787-radius-chip);
  background: var(--cec787-veil);
  border: 1px solid var(--cec787-line-soft);
  color: var(--cec787-soft);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  transition: background 0.16s ease, transform 0.16s ease, color 0.16s ease;
}

.cec787-route-link:hover {
  background: var(--cec787-veil-strong);
  color: var(--cec787-ink);
  text-decoration: none;
}

.cec787-route-link:active {
  transform: scale(0.98);
}

.cec787-route-dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--cec787-rose);
  box-shadow: 0 0 8px rgba(255, 145, 164, 0.6);
}

.cec787-route-cta {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.cec787-route-cta .cec787-btn {
  flex: 1;
  height: var(--cec787-tap);
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.cec787-hero {
  padding: 8px 2px 4px;
}

.cec787-hero-title {
  font-size: 27px;
  letter-spacing: 0.2px;
  margin-bottom: 8px;
}

.cec787-hero-title em {
  font-style: normal;
  color: var(--cec787-rose);
}

.cec787-hero-lead {
  color: var(--cec787-soft);
  font-size: 14.5px;
  margin-bottom: 14px;
}

.cec787-duo {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cec787-duo .cec787-btn {
  height: var(--cec787-tap);
  padding: 0 22px;
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   Banner carousel
   -------------------------------------------------------------------------- */

.cec787-carousel {
  position: relative;
  margin: 18px 0 6px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--cec787-line);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.38);
}

.cec787-track {
  display: flex;
  transition: transform 0.45s ease;
  touch-action: pan-y;
}

.cec787-slide {
  position: relative;
  display: block;
  width: 100%;
  flex: 0 0 100%;
  padding: 0;
  border: none;
  background: var(--cec787-raise);
  cursor: pointer;
  text-align: left;
}

.cec787-slide img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}

.cec787-slide-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 30px 14px 12px;
  background: linear-gradient(180deg, transparent 0%, rgba(20, 28, 36, 0.88) 78%);
  color: var(--cec787-ink);
  font-family: var(--cec787-font-head);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.cec787-slide-cap small {
  display: block;
  font-family: var(--cec787-font-body);
  font-weight: 500;
  font-size: 11.5px;
  color: var(--cec787-mute);
  margin-top: 2px;
}

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

.cec787-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(245, 245, 245, 0.38);
  cursor: pointer;
  transition: width 0.22s ease, background 0.22s ease;
}

.cec787-dot.on {
  width: 20px;
  border-radius: 4px;
  background: var(--cec787-rose);
}

/* --------------------------------------------------------------------------
   Metric strip — compact figure + label rhythm
   -------------------------------------------------------------------------- */

.cec787-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 14px 0 6px;
}

.cec787-metric {
  background: var(--cec787-veil);
  border: 1px solid var(--cec787-line-soft);
  border-left: 3px solid var(--cec787-rose);
  border-radius: var(--cec787-radius-card);
  padding: 10px 12px;
}

.cec787-metric b {
  display: block;
  font-family: var(--cec787-font-head);
  font-size: 19px;
  font-weight: 700;
  color: var(--cec787-ink);
  line-height: 1.15;
}

.cec787-metric span {
  display: block;
  font-size: 11.5px;
  color: var(--cec787-mute);
  line-height: 1.35;
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   Game sections
   -------------------------------------------------------------------------- */

.cec787-sec {
  margin-top: 26px;
}

.cec787-sec-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
  padding-left: 10px;
  position: relative;
}

.cec787-sec-head::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--cec787-rose), rgba(255, 145, 164, 0.25));
}

.cec787-sec-title {
  font-size: 19.5px;
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
}

.cec787-sec-tag {
  flex: none;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--cec787-rose);
  border: 1px solid rgba(255, 145, 164, 0.4);
  border-radius: var(--cec787-radius-btn);
  padding: 3px 9px;
  white-space: nowrap;
}

.cec787-sec-intro {
  color: var(--cec787-soft);
  font-size: 13.5px;
  margin: 4px 0 12px;
}

.cec787-sec-intro a {
  font-weight: 600;
}

/* Game grid — light floating tiles, 4 columns base / 5 from 400px */

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

.cec787-gcard {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
  padding: 6px;
  min-height: var(--cec787-tap);
  background: var(--cec787-veil);
  border: 1px solid var(--cec787-line-soft);
  border-radius: var(--cec787-radius-card);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  font-family: var(--cec787-font-body);
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.cec787-gcard:hover {
  background: var(--cec787-veil-strong);
  border-color: rgba(255, 145, 164, 0.45);
  text-decoration: none;
}

.cec787-gcard:active {
  transform: translateY(2px);
}

.cec787-gcard img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 5px;
  background: #22303b;
}

.cec787-gcard span {
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.28;
  color: var(--cec787-soft);
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}

/* Related page chips after each category grid */

.cec787-sec-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.cec787-chiplink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--cec787-soft);
  background: var(--cec787-veil);
  border: 1px solid var(--cec787-line-soft);
  border-radius: var(--cec787-radius-btn);
  transition: color 0.16s ease, border-color 0.16s ease;
}

.cec787-chiplink::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cec787-rose);
  flex: none;
}

.cec787-chiplink:hover {
  color: var(--cec787-ink);
  border-color: rgba(255, 145, 164, 0.5);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   Content modules
   -------------------------------------------------------------------------- */

.cec787-mod {
  margin-top: 28px;
  background: var(--cec787-veil);
  border: 1px solid var(--cec787-line-soft);
  border-radius: 12px;
  padding: 14px 14px 10px;
}

.cec787-mod > h2 {
  font-size: 18.5px;
  margin-bottom: 8px;
}

.cec787-mod-lead {
  color: var(--cec787-soft);
  font-size: 13.5px;
}

/* Steps */

.cec787-steps {
  list-style: none;
  margin: 12px 0 4px;
  padding: 0;
  counter-reset: cec787-step;
}

.cec787-step {
  counter-increment: cec787-step;
  position: relative;
  padding: 0 0 12px 38px;
}

.cec787-step::before {
  content: counter(cec787-step);
  position: absolute;
  left: 0;
  top: 1px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--cec787-rose), var(--cec787-rose-press));
  color: #2a2027;
  font-family: var(--cec787-font-head);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cec787-step::after {
  content: "";
  position: absolute;
  left: 12.5px;
  top: 30px;
  bottom: 2px;
  width: 1px;
  background: var(--cec787-line-soft);
}

.cec787-step:last-child::after {
  display: none;
}

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

.cec787-step p {
  font-size: 12.5px;
  color: var(--cec787-mute);
  margin: 0;
}

/* Quotes */

.cec787-quotes {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.cec787-quote {
  background: rgba(44, 62, 80, 0.55);
  border: 1px solid var(--cec787-line-soft);
  border-left: 3px solid var(--cec787-rose);
  border-radius: var(--cec787-radius-card);
  padding: 10px 12px;
}

.cec787-quote p {
  font-size: 13px;
  color: var(--cec787-soft);
  margin: 0 0 6px;
}

.cec787-quote cite {
  display: block;
  font-style: normal;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--cec787-mute);
}

.cec787-quote cite b {
  color: var(--cec787-rose);
  font-weight: 700;
}

.cec787-note {
  font-size: 11.5px;
  color: var(--cec787-mute);
  margin: 10px 0 2px;
}

/* Safety rows */

.cec787-safelist {
  list-style: none;
  margin: 10px 0 4px;
  padding: 0;
}

.cec787-safelist li {
  position: relative;
  padding: 0 0 10px 24px;
  font-size: 13px;
  color: var(--cec787-soft);
}

.cec787-safelist li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 7px;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  border: 2px solid var(--cec787-rose);
  background: transparent;
}

.cec787-safelist b {
  color: var(--cec787-ink);
}

/* Comparison rows */

.cec787-compare {
  margin: 12px 0 4px;
  border-top: 1px solid var(--cec787-line-soft);
}

.cec787-crow {
  display: flex;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--cec787-line-soft);
}

.cec787-crow b {
  flex: 0 0 34%;
  font-family: var(--cec787-font-head);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--cec787-rose);
  line-height: 1.35;
}

.cec787-crow p {
  flex: 1;
  font-size: 12.5px;
  color: var(--cec787-soft);
  margin: 0;
}

/* Checklist */

.cec787-checklist {
  list-style: none;
  margin: 10px 0 4px;
  padding: 0;
}

.cec787-checklist li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 7px 0;
  font-size: 13px;
  color: var(--cec787-soft);
  border-bottom: 1px dashed var(--cec787-line-soft);
}

.cec787-checklist li:last-child {
  border-bottom: none;
}

.cec787-check {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 6px;
  border: 1.5px solid var(--cec787-rose);
  background:
    linear-gradient(135deg, transparent 42%, var(--cec787-rose) 44%, var(--cec787-rose) 58%, transparent 60%) no-repeat center / 14px 14px;
}

/* --------------------------------------------------------------------------
   Extended footer (homepage only) — brand > directory > promotions > disclaimer
   -------------------------------------------------------------------------- */

.cec787-xfoot {
  margin-top: 30px;
  border-top: 1px solid var(--cec787-line);
  padding-top: 18px;
}

.cec787-xfoot-brand {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.cec787-xfoot-logo {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 11px;
  border: 1px solid var(--cec787-line);
}

.cec787-xfoot-name {
  font-family: var(--cec787-font-head);
  font-size: 17px;
  font-weight: 700;
  color: var(--cec787-ink);
  margin: 0 0 3px;
}

.cec787-xfoot-brand > div > p {
  font-size: 12.5px;
  color: var(--cec787-mute);
  margin: 0;
}

.cec787-xfoot-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cec787-mute);
  margin: 0 0 8px;
}

.cec787-dir {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.cec787-promos {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x proximity;
  margin-bottom: 18px;
}

.cec787-promos .cec787-btn {
  flex: none;
  scroll-snap-align: start;
  height: 40px;
  padding: 0 16px;
  font-size: 12.5px;
  white-space: nowrap;
}

.cec787-disc {
  font-size: 11.5px;
  color: var(--cec787-mute);
  background: rgba(27, 37, 49, 0.6);
  border: 1px solid var(--cec787-line-soft);
  border-radius: var(--cec787-radius-card);
  padding: 10px 12px;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Common footer + copyright
   -------------------------------------------------------------------------- */

.cec787-foot {
  text-align: center;
  padding: 14px 14px 6px;
  border-top: 1px solid var(--cec787-line-soft);
}

.cec787-copy {
  font-size: 11.5px;
  color: var(--cec787-mute);
  margin: 0;
}

/* --------------------------------------------------------------------------
   Bottom dock — layered strip, sliding indicator, lifted active item
   -------------------------------------------------------------------------- */

.cec787-dock {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, var(--cec787-canvas));
  height: calc(var(--cec787-dock-h) + env(safe-area-inset-bottom, 0px));
  z-index: 92;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(26, 35, 44, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--cec787-line);
}

.cec787-dock::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 14px;
  right: 14px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 145, 164, 0.55), transparent);
}

.cec787-dock-rail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: var(--cec787-dock-h);
  align-items: stretch;
}

.cec787-dock-ind {
  position: absolute;
  top: 8px;
  left: 0;
  width: 20%;
  height: 30px;
  border-radius: 12px;
  background: rgba(255, 145, 164, 0.14);
  border: 1px solid rgba(255, 145, 164, 0.35);
  transition: transform 0.28s cubic-bezier(0.3, 0.9, 0.35, 1);
  pointer-events: none;
}

.cec787-dock[data-active="0"] .cec787-dock-ind { transform: translateX(0); }
.cec787-dock[data-active="1"] .cec787-dock-ind { transform: translateX(100%); }
.cec787-dock[data-active="2"] .cec787-dock-ind { transform: translateX(200%); }
.cec787-dock[data-active="3"] .cec787-dock-ind { transform: translateX(300%); }
.cec787-dock[data-active="4"] .cec787-dock-ind { transform: translateX(400%); }

.cec787-ditem {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: var(--cec787-tap);
  padding: 6px 2px 4px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--cec787-mute);
  font-family: var(--cec787-font-body);
  transition: color 0.18s ease, transform 0.18s ease;
}

.cec787-ditem svg {
  width: 22px;
  height: 22px;
  display: block;
}

.cec787-ditem span {
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.cec787-ditem:hover {
  color: var(--cec787-soft);
  text-decoration: none;
}

.cec787-ditem.on {
  color: var(--cec787-rose);
  transform: translateY(-3px);
}

.cec787-ditem.on::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 16px;
  height: 3px;
  border-radius: 3px;
  background: var(--cec787-rose);
}

/* --------------------------------------------------------------------------
   Reveal-on-scroll (restrained)
   -------------------------------------------------------------------------- */

.cec787-rv {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.cec787-rv-on {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .cec787-rv,
  .cec787-route,
  .cec787-track,
  .cec787-dock-ind,
  .cec787-ditem {
    transition: none !important;
  }
  .cec787-rv {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   Width adaptions — stay inside the 320–430px canvas
   -------------------------------------------------------------------------- */

@media (min-width: 360px) {
  .cec787-hero-title {
    font-size: 29px;
  }
  .cec787-sec-title {
    font-size: 21px;
  }
}

@media (min-width: 400px) {
  .cec787-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  .cec787-metrics {
    grid-template-columns: repeat(4, 1fr);
  }
  .cec787-metric b {
    font-size: 20px;
  }
}

@media (max-width: 359px) {
  .cec787-btn {
    padding: 0 11px;
    font-size: 11.5px;
  }
  .cec787-brand-name {
    font-size: 17px;
  }
  .cec787-route-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Help pages — two complementary reading shapes: a route map and a field guide
   -------------------------------------------------------------------------- */

.cec787-help-main {
  padding-top: calc(var(--cec787-top-h) + 18px);
}

.cec787-help-hero {
  position: relative;
  padding: 18px 14px 20px;
  background: linear-gradient(145deg, rgba(255, 145, 164, 0.16), rgba(44, 62, 80, 0.2));
  border: 1px solid var(--cec787-line);
  border-radius: 18px 6px 18px 6px;
  overflow: hidden;
}

.cec787-help-hero::after {
  content: "";
  position: absolute;
  width: 130px;
  height: 130px;
  right: -52px;
  top: -56px;
  border: 1px solid rgba(255, 145, 164, 0.32);
  border-radius: 50%;
  box-shadow: 0 0 0 16px rgba(255, 145, 164, 0.06), 0 0 0 32px rgba(255, 145, 164, 0.035);
  pointer-events: none;
}

.cec787-help-kicker {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--cec787-rose);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cec787-help-hero h1 {
  max-width: 340px;
  font-size: 27px;
  margin-bottom: 8px;
}

.cec787-help-hero p {
  position: relative;
  z-index: 1;
  color: var(--cec787-soft);
  font-size: 14px;
  margin-bottom: 14px;
}

.cec787-help-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cec787-help-actions .cec787-btn {
  min-height: var(--cec787-tap);
}

.cec787-help-map {
  margin-top: 16px;
  padding: 12px;
  border: 1px solid var(--cec787-line-soft);
  border-radius: 6px 16px 6px 16px;
  background: rgba(27, 37, 49, 0.5);
}

.cec787-help-map-title {
  margin: 0 0 9px;
  color: var(--cec787-mute);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cec787-help-map ol {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: cec787-map;
}

.cec787-help-map li {
  counter-increment: cec787-map;
  min-height: 44px;
  padding: 8px 7px 7px 30px;
  position: relative;
  border-left: 2px solid var(--cec787-rose);
  color: var(--cec787-soft);
  font-size: 12px;
  line-height: 1.35;
}

.cec787-help-map li::before {
  content: counter(cec787-map);
  position: absolute;
  left: 7px;
  top: 8px;
  color: var(--cec787-rose);
  font-weight: 700;
}

.cec787-help-section {
  margin-top: 24px;
}

.cec787-help-section h2 {
  margin-bottom: 7px;
  padding-right: 4px;
  font-size: 19px;
}

.cec787-help-answer {
  color: var(--cec787-soft);
  font-size: 13.5px;
  margin-bottom: 12px;
}

.cec787-help-stepstack {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.cec787-help-stepcard {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 10px;
  padding: 11px 10px;
  border: 1px solid var(--cec787-line-soft);
  border-radius: 5px 14px 5px 14px;
  background: linear-gradient(100deg, rgba(245, 245, 245, 0.065), rgba(245, 245, 245, 0.025));
}

.cec787-help-stepnum {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--cec787-rose);
  color: #2a2027;
  font-family: var(--cec787-font-head);
  font-size: 15px;
  font-weight: 700;
}

.cec787-help-stepcard h3,
.cec787-help-term h3,
.cec787-help-branch h3 {
  margin-bottom: 3px;
  color: var(--cec787-ink);
  font-size: 14px;
}

.cec787-help-stepcard p,
.cec787-help-term p,
.cec787-help-branch p {
  color: var(--cec787-mute);
  font-size: 12.5px;
  margin: 0;
}

.cec787-help-callout {
  margin-top: 12px;
  padding: 11px 12px;
  border-left: 3px solid var(--cec787-rose);
  border-radius: 3px 10px 10px 3px;
  background: rgba(255, 145, 164, 0.09);
  color: var(--cec787-soft);
  font-size: 13px;
}

.cec787-help-callout b {
  color: var(--cec787-ink);
}

.cec787-help-pairs {
  display: grid;
  gap: 8px;
  margin-top: 11px;
}

.cec787-help-pair {
  padding: 10px 11px;
  border-bottom: 1px solid var(--cec787-line-soft);
}

.cec787-help-pair dt {
  color: var(--cec787-rose);
  font-family: var(--cec787-font-head);
  font-size: 14px;
  font-weight: 700;
}

.cec787-help-pair dd {
  margin: 3px 0 0;
  color: var(--cec787-soft);
  font-size: 12.8px;
}

.cec787-help-split {
  display: grid;
  gap: 9px;
  margin-top: 11px;
}

.cec787-help-branch {
  padding: 12px;
  border: 1px solid var(--cec787-line-soft);
  background: rgba(54, 69, 79, 0.6);
  border-radius: 14px 4px 14px 4px;
}

.cec787-help-branch b {
  display: block;
  margin-top: 8px;
  color: var(--cec787-rose);
  font-size: 12px;
}

.cec787-help-terms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 11px;
}

.cec787-help-term {
  min-height: 118px;
  padding: 10px;
  border-top: 2px solid var(--cec787-rose);
  background: rgba(245, 245, 245, 0.045);
  border-radius: 4px 4px 12px 12px;
}

.cec787-help-terms .cec787-help-term:nth-child(3n) {
  border-top-color: var(--cec787-soft);
}

.cec787-help-cta-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 13px;
  padding: 10px 11px;
  border: 1px dashed rgba(255, 145, 164, 0.4);
  border-radius: 999px;
}

.cec787-help-cta-line span {
  color: var(--cec787-soft);
  font-size: 12.5px;
}

.cec787-help-cta-line .cec787-btn {
  flex: none;
  height: 40px;
  padding: 0 13px;
}

.cec787-help-footnote {
  margin: 22px 0 0;
  color: var(--cec787-mute);
  font-size: 11.5px;
}

@media (min-width: 360px) {
  .cec787-help-hero h1 {
    font-size: 29px;
  }
}

@media (max-width: 359px) {
  .cec787-help-map ol,
  .cec787-help-terms {
    grid-template-columns: 1fr;
  }
  .cec787-help-cta-line {
    align-items: flex-start;
    flex-direction: column;
    border-radius: 12px;
  }
  .cec787-help-cta-line .cec787-btn {
    width: 100%;
  }
}
