/* ============================================================
   bk222.cfd - mobile-first viewport stylesheet
   Canvas: 320-430px phones, centered phone canvas on wide screens
   Prefix: surfaceeba4d-
   Palette: #4A4A4A | #87CEFA | #2C3E50 | #808080 | #191970
   Tone: rounded headings + compact body, near-square tool corners,
   outlined tile cards, scenario-branch rhythm, CTA-only motion
   ============================================================ */

/* ---------- tokens ---------- */
:root {
  --surfaceeba4d-night: #191970;          /* base midnight blue */
  --surfaceeba4d-ink: #0a0e2e;            /* deepest background */
  --surfaceeba4d-slate: #2c3e50;          /* panel slate */
  --surfaceeba4d-steel: #4a4a4a;          /* muted steel */
  --surfaceeba4d-gray: #808080;           /* neutral gray */
  --surfaceeba4d-sky: #87cefa;            /* light sky accent */
  --surfaceeba4d-sky-soft: rgba(135, 206, 250, 0.14);
  --surfaceeba4d-sky-line: rgba(135, 206, 250, 0.26);
  --surfaceeba4d-sky-faint: rgba(135, 206, 250, 0.09);
  --surfaceeba4d-paper: #e8eeff;          /* primary light text */
  --surfaceeba4d-mist: #aab6da;           /* secondary light text */
  --surfaceeba4d-panel: rgba(20, 26, 66, 0.92);
  --surfaceeba4d-tile: rgba(135, 206, 250, 0.045);
  --surfaceeba4d-radius: 4px;             /* near-square tool feel */
  --surfaceeba4d-radius-lg: 6px;
  --surfaceeba4d-font: "Noto Sans Bengali", "Hind Siliguri", "Nirmala UI",
    "Segoe UI", system-ui, -apple-system, sans-serif;
  --surfaceeba4d-touch: 44px;             /* minimum touch target */
  --surfaceeba4d-nav-h: 64px;
  --surfaceeba4d-top-h: 58px;
}

/* ---------- reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--surfaceeba4d-font);
  font-size: 15px;
  line-height: 1.62;
  color: var(--surfaceeba4d-paper);
  background:
    radial-gradient(1200px 500px at 50% -120px, rgba(135, 206, 250, 0.10), transparent 60%),
    linear-gradient(180deg, #070a24 0%, #0b1038 45%, #0a0d30 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; border: 0; }
a { color: var(--surfaceeba4d-sky); text-decoration: none; }
ul, ol { list-style: none; }
button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--surfaceeba4d-sky);
  outline-offset: 2px;
  border-radius: var(--surfaceeba4d-radius);
}
::selection { background: var(--surfaceeba4d-sky); color: var(--surfaceeba4d-ink); }

/* ---------- phone canvas shell ---------- */
.surfaceeba4d-shell {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  overflow-x: clip;
}
@media (min-width: 520px) {
  .surfaceeba4d-shell {
    border-left: 1px solid rgba(135, 206, 250, 0.14);
    border-right: 1px solid rgba(135, 206, 250, 0.14);
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.55);
  }
}

/* ---------- main column ---------- */
.surfaceeba4d-main {
  padding: calc(var(--surfaceeba4d-top-h) + 10px) 12px 96px;
}
.surfaceeba4d-sec { margin-top: 18px; }
.surfaceeba4d-sec:first-child { margin-top: 0; }

/* ============================================================
   TOP BAR - logo-led action strip
   ============================================================ */
.surfaceeba4d-topbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: var(--surfaceeba4d-top-h);
  z-index: 80;
  background: rgba(8, 11, 38, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--surfaceeba4d-sky-line);
}
.surfaceeba4d-topbar::after {
  /* thin luminous baseline */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(135, 206, 250, 0.5), transparent);
}
.surfaceeba4d-topbar.surfaceeba4d-top-scrolled {
  background: rgba(8, 11, 38, 0.98);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}
.surfaceeba4d-topinner {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 100%;
  padding: 0 10px;
}
.surfaceeba4d-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: var(--surfaceeba4d-touch);
  flex: 1 1 auto;
  min-width: 0;
}
.surfaceeba4d-logo {
  width: 34px;
  height: 34px;
  border-radius: var(--surfaceeba4d-radius);
  border: 1px solid var(--surfaceeba4d-sky-line);
  background: var(--surfaceeba4d-sky-faint);
  padding: 2px;
  object-fit: contain;
  flex: 0 0 auto;
}
.surfaceeba4d-brandname {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--surfaceeba4d-paper);
  white-space: nowrap;
}
.surfaceeba4d-brandname b { color: var(--surfaceeba4d-sky); font-weight: 800; }

/* header action buttons */
.surfaceeba4d-topacts {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}
.surfaceeba4d-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: var(--surfaceeba4d-touch);
  padding: 8px 13px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: var(--surfaceeba4d-radius);
  transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}
.surfaceeba4d-btn:active { transform: translateY(-2px); } /* short vertical lift */
.surfaceeba4d-btn-solid {
  background: var(--surfaceeba4d-sky);
  color: var(--surfaceeba4d-ink);
  box-shadow: 0 2px 0 rgba(135, 206, 250, 0.35);
}
.surfaceeba4d-btn-line {
  border: 1px solid var(--surfaceeba4d-sky-line);
  color: var(--surfaceeba4d-sky);
  background: var(--surfaceeba4d-sky-faint);
}
.surfaceeba4d-btn-menu {
  width: var(--surfaceeba4d-touch);
  padding: 0;
  border: 1px solid var(--surfaceeba4d-sky-line);
  background: var(--surfaceeba4d-sky-faint);
  border-radius: var(--surfaceeba4d-radius);
}
.surfaceeba4d-burger {
  display: block;
  width: 20px;
  height: 14px;
  position: relative;
  margin: 0 auto;
}
.surfaceeba4d-burger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--surfaceeba4d-sky);
  border-radius: 1px;
  transition: transform 0.18s ease, opacity 0.18s ease, top 0.18s ease;
}
.surfaceeba4d-burger span:nth-child(1) { top: 0; }
.surfaceeba4d-burger span:nth-child(2) { top: 6px; }
.surfaceeba4d-burger span:nth-child(3) { top: 12px; }
.surfaceeba4d-burger-open span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.surfaceeba4d-burger-open span:nth-child(2) { opacity: 0; }
.surfaceeba4d-burger-open span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

/* ---------- compact route panel (dropdown menu) ---------- */
.surfaceeba4d-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 8px;
  width: min(316px, calc(100% - 16px));
  background: var(--surfaceeba4d-panel);
  border: 1px solid var(--surfaceeba4d-sky-line);
  border-radius: var(--surfaceeba4d-radius-lg);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
}
.surfaceeba4d-menu-on {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.surfaceeba4d-menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}
.surfaceeba4d-mlink {
  position: relative;
  display: flex;
  align-items: center;
  min-height: var(--surfaceeba4d-touch);
  padding: 9px 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--surfaceeba4d-mist);
  border: 1px solid transparent;
  border-radius: var(--surfaceeba4d-radius);
  overflow: hidden;
  word-break: break-word;
}
.surfaceeba4d-mlink::before {
  /* route tile marker */
  content: "";
  width: 6px;
  height: 6px;
  border: 1px solid var(--surfaceeba4d-sky-line);
  border-radius: 2px;
  margin-right: 8px;
  flex: 0 0 auto;
}
.surfaceeba4d-mlink:active { transform: translateY(-1px); }
.surfaceeba4d-mlink-on {
  color: var(--surfaceeba4d-sky);
  background: var(--surfaceeba4d-sky-soft);
  border-color: var(--surfaceeba4d-sky-line);
}
.surfaceeba4d-mlink-on::before { background: var(--surfaceeba4d-sky); border-color: var(--surfaceeba4d-sky); }

/* ============================================================
   HERO CAROUSEL - promo banners
   ============================================================ */
.surfaceeba4d-hero {
  position: relative;
  border: 1px solid var(--surfaceeba4d-sky-line);
  border-radius: var(--surfaceeba4d-radius-lg);
  overflow: hidden;
  background: var(--surfaceeba4d-ink);
}
.surfaceeba4d-herotrack {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.surfaceeba4d-herotrack::-webkit-scrollbar { display: none; }
.surfaceeba4d-slide {
  position: relative;
  flex: 0 0 100%;
  scroll-snap-align: center;
  aspect-ratio: 2.15 / 1;
  display: block;
  min-height: var(--surfaceeba4d-touch);
}
.surfaceeba4d-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.surfaceeba4d-slide-cap {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 3px;
  padding: 12px 14px;
  background: linear-gradient(180deg, rgba(7, 10, 36, 0.05) 30%, rgba(7, 10, 36, 0.88) 100%);
}
.surfaceeba4d-slide-kicker {
  align-self: flex-start;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--surfaceeba4d-ink);
  background: var(--surfaceeba4d-sky);
  padding: 2px 7px;
  border-radius: 3px;
}
.surfaceeba4d-slide-title {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.32;
  color: #ffffff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}
.surfaceeba4d-slide-cta {
  font-size: 12px;
  font-weight: 700;
  color: var(--surfaceeba4d-sky);
}
.surfaceeba4d-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 7px;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 2;
}
.surfaceeba4d-dot {
  width: 20px;
  height: 4px;
  min-height: 16px;           /* padded touch zone, visual bar stays 4px */
  background: transparent;
  padding: 6px 0;
  background-clip: content-box;
  border-radius: 2px;
  background-color: rgba(232, 238, 255, 0.34);
  transition: background-color 0.16s ease;
}
.surfaceeba4d-dot-on { background-color: var(--surfaceeba4d-sky); }

/* ============================================================
   INTRO / H1
   ============================================================ */
.surfaceeba4d-intro { margin-top: 16px; }
.surfaceeba4d-intro h1 {
  font-size: 21px;
  font-weight: 800;
  line-height: 1.38;
  letter-spacing: 0.01em;
  color: #ffffff;
  border-left: 3px solid var(--surfaceeba4d-sky);
  padding-left: 10px;
}
.surfaceeba4d-lead {
  margin-top: 10px;
  font-size: 14px;
  color: var(--surfaceeba4d-mist);
}
.surfaceeba4d-chiprow {
  display: flex;
  gap: 6px;
  margin-top: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.surfaceeba4d-chiprow::-webkit-scrollbar { display: none; }
.surfaceeba4d-chip {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--surfaceeba4d-sky);
  border: 1px solid var(--surfaceeba4d-sky-line);
  background: var(--surfaceeba4d-sky-faint);
  border-radius: 3px;
  padding: 5px 9px;
  white-space: nowrap;
}

/* ============================================================
   GAME SECTIONS - outlined tile cards
   ============================================================ */
.surfaceeba4d-cat {
  margin-top: 26px;
  border-top: 1px dashed rgba(135, 206, 250, 0.2);
  padding-top: 16px;
}
.surfaceeba4d-cathead {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.surfaceeba4d-cathead h2 {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
  color: #ffffff;
  letter-spacing: 0.01em;
}
.surfaceeba4d-catcount {
  font-size: 11px;
  font-weight: 700;
  color: var(--surfaceeba4d-ink);
  background: var(--surfaceeba4d-sky);
  border-radius: 3px;
  padding: 1px 7px;
  flex: 0 0 auto;
}
.surfaceeba4d-catintro {
  margin: 8px 0 12px;
  font-size: 13px;
  color: var(--surfaceeba4d-mist);
}
.surfaceeba4d-ggrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px 7px;
}
/* 375-430px keeps 4 readable columns; 430px+ gets 5 */
@media (min-width: 430px) {
  .surfaceeba4d-ggrid { grid-template-columns: repeat(5, 1fr); gap: 10px 8px; }
}
.surfaceeba4d-gtile {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 5px;
  background: var(--surfaceeba4d-tile);
  border: 1px solid var(--surfaceeba4d-sky-line);
  border-radius: var(--surfaceeba4d-radius);
  min-width: 0;
  transition: transform 0.12s ease, border-color 0.12s ease;
}
.surfaceeba4d-gtile:active {
  transform: translateY(-2px);   /* short vertical lift */
  border-color: var(--surfaceeba4d-sky);
}
.surfaceeba4d-gtile img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 3px;
  background: #0d1234;
}
.surfaceeba4d-gname {
  font-size: 11px;
  line-height: 1.35;
  font-weight: 600;
  color: var(--surfaceeba4d-paper);
  text-align: center;
  overflow-wrap: break-word;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;        /* controlled wrap for long names */
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}
.surfaceeba4d-catlks {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 12px;
  padding: 9px 11px;
  border: 1px solid rgba(135, 206, 250, 0.16);
  border-left: 3px solid var(--surfaceeba4d-sky);
  border-radius: var(--surfaceeba4d-radius);
  background: rgba(135, 206, 250, 0.04);
  font-size: 12px;
  color: var(--surfaceeba4d-gray);
}
.surfaceeba4d-catlks a {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(135, 206, 250, 0.5);
}

/* ============================================================
   CONTENT MODULES
   ============================================================ */
.surfaceeba4d-mod {
  margin-top: 22px;
  background: var(--surfaceeba4d-panel);
  border: 1px solid rgba(135, 206, 250, 0.18);
  border-radius: var(--surfaceeba4d-radius-lg);
  padding: 15px 14px;
}
.surfaceeba4d-mod h2 {
  font-size: 16.5px;
  font-weight: 800;
  line-height: 1.4;
  color: #ffffff;
  padding-bottom: 9px;
  margin-bottom: 11px;
  border-bottom: 1px solid rgba(135, 206, 250, 0.18);
  position: relative;
}
.surfaceeba4d-mod h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 44px;
  height: 2px;
  background: var(--surfaceeba4d-sky);
}
.surfaceeba4d-mod h3 {
  font-size: 14px;
  font-weight: 800;
  color: var(--surfaceeba4d-sky);
  margin: 14px 0 6px;
}
.surfaceeba4d-mod p {
  font-size: 13.5px;
  color: var(--surfaceeba4d-mist);
  margin-bottom: 10px;
  overflow-wrap: break-word;
}
.surfaceeba4d-mod p:last-child { margin-bottom: 0; }
.surfaceeba4d-mod strong { color: var(--surfaceeba4d-paper); font-weight: 800; }
.surfaceeba4d-mod a {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(135, 206, 250, 0.55);
}

/* scenario comparison rows (Popular Play Styles) */
.surfaceeba4d-stylegrid { margin-top: 4px; }
.surfaceeba4d-stylerow {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(135, 206, 250, 0.16);
}
.surfaceeba4d-stylerow:last-child { border-bottom: 0; }
.surfaceeba4d-stylekey {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--surfaceeba4d-sky);
  line-height: 1.4;
  border: 1px solid var(--surfaceeba4d-sky-line);
  background: var(--surfaceeba4d-sky-faint);
  border-radius: 3px;
  padding: 4px 7px;
  align-self: start;
  text-align: center;
}
.surfaceeba4d-styleval {
  font-size: 13px;
  color: var(--surfaceeba4d-mist);
}
.surfaceeba4d-styleval b { color: var(--surfaceeba4d-paper); font-weight: 700; display: block; }

/* step flow (How to Play) */
.surfaceeba4d-steps { counter-reset: surfaceeba4dstep; margin-top: 4px; }
.surfaceeba4d-steps li {
  counter-increment: surfaceeba4dstep;
  position: relative;
  padding: 0 0 14px 42px;
  font-size: 13.5px;
  color: var(--surfaceeba4d-mist);
}
.surfaceeba4d-steps li:last-child { padding-bottom: 0; }
.surfaceeba4d-steps li::before {
  content: counter(surfaceeba4dstep);
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--surfaceeba4d-sky);
  border: 1px solid var(--surfaceeba4d-sky-line);
  background: var(--surfaceeba4d-sky-faint);
  border-radius: 3px;
}
.surfaceeba4d-steps li::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 30px;
  bottom: 2px;
  width: 1px;
  background: rgba(135, 206, 250, 0.22);
}
.surfaceeba4d-steps li:last-child::after { display: none; }
.surfaceeba4d-steps b { color: var(--surfaceeba4d-paper); font-weight: 700; }

/* checklist (Selection Criteria / Security) */
.surfaceeba4d-checklist { margin-top: 4px; }
.surfaceeba4d-checklist li {
  position: relative;
  padding: 7px 0 7px 30px;
  font-size: 13.5px;
  color: var(--surfaceeba4d-mist);
  border-bottom: 1px dashed rgba(135, 206, 250, 0.13);
}
.surfaceeba4d-checklist li:last-child { border-bottom: 0; }
.surfaceeba4d-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 13px;
  height: 13px;
  border: 1.5px solid var(--surfaceeba4d-sky);
  border-radius: 3px;
  background: var(--surfaceeba4d-sky-faint);
}
.surfaceeba4d-checklist b { color: var(--surfaceeba4d-paper); font-weight: 700; }

/* CTA button group (lightly rounded text button set) */
.surfaceeba4d-ctagroup {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 13px;
}
.surfaceeba4d-ctagroup .surfaceeba4d-btn { flex: 1 1 auto; min-width: 130px; }
.surfaceeba4d-note {
  margin-top: 11px;
  font-size: 11.5px;
  color: var(--surfaceeba4d-gray);
  border-left: 2px solid rgba(128, 128, 128, 0.5);
  padding-left: 9px;
}

/* ============================================================
   EXTENDED FOOTER - brand > directory > promotions > disclaimer
   ============================================================ */
.surfaceeba4d-xfoot {
  margin-top: 30px;
  border: 1px solid rgba(135, 206, 250, 0.18);
  border-radius: var(--surfaceeba4d-radius-lg);
  background: rgba(13, 17, 52, 0.85);
  padding: 15px 13px;
}
.surfaceeba4d-xbrand {
  display: flex;
  gap: 11px;
  align-items: flex-start;
}
.surfaceeba4d-xbrandlogo {
  width: 40px;
  height: 40px;
  border-radius: var(--surfaceeba4d-radius);
  border: 1px solid var(--surfaceeba4d-sky-line);
  background: var(--surfaceeba4d-sky-faint);
  padding: 3px;
  object-fit: contain;
  flex: 0 0 auto;
}
.surfaceeba4d-xbrand h2 {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 5px;
}
.surfaceeba4d-xbrand p {
  font-size: 12.5px;
  color: var(--surfaceeba4d-mist);
}
.surfaceeba4d-xblock { margin-top: 17px; }
.surfaceeba4d-xblock h2 {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--surfaceeba4d-sky);
  text-transform: uppercase;
  margin-bottom: 9px;
}
/* horizontal shortcut directory */
.surfaceeba4d-dirgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.surfaceeba4d-dirlink {
  display: block;
  min-height: 40px;
  padding: 8px 9px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--surfaceeba4d-paper);
  background: var(--surfaceeba4d-tile);
  border: 1px solid rgba(135, 206, 250, 0.18);
  border-radius: var(--surfaceeba4d-radius);
  transition: transform 0.12s ease;
}
.surfaceeba4d-dirlink span {
  display: block;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--surfaceeba4d-gray);
}
.surfaceeba4d-dirlink:active { transform: translateY(-2px); }
/* promo shortcut rail */
.surfaceeba4d-promorow {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 0 4px;
  margin: 0 -13px;
  padding-left: 13px;
  padding-right: 13px;
}
.surfaceeba4d-promorow::-webkit-scrollbar { display: none; }
.surfaceeba4d-promochip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: var(--surfaceeba4d-touch);
  padding: 9px 15px;
  font-size: 13px;
  font-weight: 800;
  color: var(--surfaceeba4d-ink);
  background: var(--surfaceeba4d-sky);
  border-radius: var(--surfaceeba4d-radius);
  box-shadow: 0 2px 0 rgba(135, 206, 250, 0.32);
  transition: transform 0.12s ease;
  white-space: nowrap;
}
.surfaceeba4d-promochip:active { transform: translateY(-2px); }
.surfaceeba4d-legal {
  margin-top: 15px;
  padding-top: 11px;
  border-top: 1px dashed rgba(135, 206, 250, 0.18);
  font-size: 11px;
  line-height: 1.6;
  color: var(--surfaceeba4d-gray);
}

/* ============================================================
   COMMON FOOTER (copyright only)
   ============================================================ */
.surfaceeba4d-foot {
  margin-top: 14px;
  padding: 14px 0 4px;
  border-top: 1px solid rgba(135, 206, 250, 0.16);
  text-align: center;
  font-size: 11.5px;
  color: var(--surfaceeba4d-gray);
}
.surfaceeba4d-foot b { color: var(--surfaceeba4d-mist); font-weight: 700; }

/* ============================================================
   BOTTOM NAV - center-raised, containerized icon tiles,
   top indicator line for the active role
   ============================================================ */
.surfaceeba4d-bottomnav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  z-index: 90;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: var(--surfaceeba4d-nav-h);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(8, 11, 38, 0.96);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--surfaceeba4d-sky-line);
}
.surfaceeba4d-bnav {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--surfaceeba4d-mist);
  min-height: var(--surfaceeba4d-touch);
  padding-top: 4px;
}
.surfaceeba4d-bico {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--surfaceeba4d-sky-line);
  border-radius: 6px;
  background: var(--surfaceeba4d-sky-faint);
  color: var(--surfaceeba4d-sky);
  transition: transform 0.12s ease, background 0.12s ease;
}
.surfaceeba4d-bico svg { width: 16px; height: 16px; }
.surfaceeba4d-bnav:active .surfaceeba4d-bico { transform: translateY(-2px); }
.surfaceeba4d-blabel {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
/* active role: top indicator line */
.surfaceeba4d-bon { color: var(--surfaceeba4d-sky); }
.surfaceeba4d-bon::before {
  content: "";
  position: absolute;
  top: 0;
  left: 22%;
  right: 22%;
  height: 2.5px;
  background: var(--surfaceeba4d-sky);
  border-radius: 0 0 2px 2px;
}
.surfaceeba4d-bon .surfaceeba4d-bico {
  background: var(--surfaceeba4d-sky-soft);
  border-color: var(--surfaceeba4d-sky);
}
/* center raised promo role */
.surfaceeba4d-bcenter .surfaceeba4d-bico {
  width: 46px;
  height: 42px;
  border-radius: 8px;
  background: var(--surfaceeba4d-sky);
  border-color: var(--surfaceeba4d-sky);
  color: var(--surfaceeba4d-ink);
  transform: translateY(-12px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.5), 0 0 0 4px rgba(8, 11, 38, 0.96);
}
.surfaceeba4d-bcenter .surfaceeba4d-bico svg { width: 20px; height: 20px; }
.surfaceeba4d-bcenter .surfaceeba4d-blabel { transform: translateY(-8px); }
.surfaceeba4d-bcenter:active .surfaceeba4d-bico { transform: translateY(-14px); }

/* ---------- accessibility: reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- small-phone hardening (320px) ---------- */
@media (max-width: 339px) {
  .surfaceeba4d-main { padding-left: 9px; padding-right: 9px; }
  .surfaceeba4d-intro h1 { font-size: 19px; }
  .surfaceeba4d-gname { font-size: 10.5px; }
  .surfaceeba4d-btn { padding: 8px 10px; font-size: 12px; }
  .surfaceeba4d-brandname { font-size: 18px; }
}
