/* ==========================================================================
   cd444 interface stylesheet (mobile-first, 320-430px canvas)
   Palette: #1C2833 bg / #E6E6FA ink / #DA70D6 accent / #800080 deep / #A9A9A9 mute
   Direction: rounded headings + compact body, small radius, dense grids,
   pure-image game cards with short caption, restrained fade-in motion,
   light-rounded text CTA groups.
   ========================================================================== */

:root {
  --surface0e4f7-bg: #1c2833;
  --surface0e4f7-bg-deep: #141c26;
  --surface0e4f7-panel: #232f3d;
  --surface0e4f7-panel-2: #2a3847;
  --surface0e4f7-ink: #e6e6fa;
  --surface0e4f7-mute: #a9a9a9;
  --surface0e4f7-accent: #da70d6;
  --surface0e4f7-accent-deep: #800080;
  --surface0e4f7-line: rgba(233, 230, 250, 0.14);
  --surface0e4f7-radius: 6px;
  --surface0e4f7-font-head: "Baloo Da 2", "Hind Siliguri", "Noto Sans Bengali", "Segoe UI", system-ui, sans-serif;
  --surface0e4f7-font-body: "Hind Siliguri", "Noto Sans Bengali", "Segoe UI", system-ui, sans-serif;
  --surface0e4f7-head-h: 104px;
  --surface0e4f7-foot-h: 66px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: #10161d;
  color: var(--surface0e4f7-ink);
  font-family: var(--surface0e4f7-font-body);
  font-size: 13.5px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Centered phone canvas on wide screens */
.surface0e4f7-shell {
  position: relative;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background:
    radial-gradient(120% 220px at 50% -60px, rgba(218, 112, 214, 0.16), transparent 70%),
    var(--surface0e4f7-bg);
  box-shadow: 0 0 34px rgba(0, 0, 0, 0.55);
  overflow-x: hidden;
}

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

a { color: var(--surface0e4f7-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ==========================================================================
   Top bar: centered identity strip + action row (Register / Login / menu)
   ========================================================================== */

.surface0e4f7-topbar {
  position: fixed;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 60;
  background: linear-gradient(180deg, #1e2b38 0%, rgba(28, 40, 51, 0.97) 100%);
  border-bottom: 1px solid var(--surface0e4f7-line);
  padding-top: env(safe-area-inset-top);
}

.surface0e4f7-idbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 12px 7px;
}

.surface0e4f7-idbar img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(218, 112, 214, 0.55);
  object-fit: cover;
}

.surface0e4f7-idname {
  font-family: var(--surface0e4f7-font-head);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--surface0e4f7-ink);
  line-height: 1;
  padding-bottom: 2px;
}

.surface0e4f7-idname::after {
  content: "";
  display: block;
  height: 3px;
  border-radius: 3px;
  margin-top: 3px;
  background: linear-gradient(90deg, var(--surface0e4f7-accent-deep), var(--surface0e4f7-accent), transparent);
}

.surface0e4f7-actrow {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px 9px;
}

/* Light-rounded text CTA group */
.surface0e4f7-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-family: var(--surface0e4f7-font-head);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s ease, filter 0.15s ease, background 0.15s ease;
}

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

.surface0e4f7-btn--reg {
  flex: 1;
  color: #141c26;
  background: linear-gradient(135deg, var(--surface0e4f7-accent), #b452c8);
  box-shadow: 0 3px 10px rgba(218, 112, 214, 0.35);
}

.surface0e4f7-btn--log {
  flex: 1;
  color: var(--surface0e4f7-ink);
  background: rgba(218, 112, 214, 0.1);
  border-color: rgba(218, 112, 214, 0.55);
}

.surface0e4f7-btn--menu {
  width: 44px;
  flex: 0 0 44px;
  padding: 0;
  color: var(--surface0e4f7-ink);
  background: var(--surface0e4f7-panel-2);
  border-color: var(--surface0e4f7-line);
}

.surface0e4f7-burger {
  position: relative;
  width: 18px;
  height: 12px;
  margin: 0 auto;
}

/* Icon state morph: burger bars collapse into an X when open */
.surface0e4f7-burger i {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--surface0e4f7-ink);
  transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}

.surface0e4f7-burger i:nth-child(1) { top: 0; }
.surface0e4f7-burger i:nth-child(2) { top: 5px; }
.surface0e4f7-burger i:nth-child(3) { top: 10px; }

.surface0e4f7-topbar.surface0e4f7-open .surface0e4f7-burger i:nth-child(1) { top: 5px; transform: rotate(45deg); }
.surface0e4f7-topbar.surface0e4f7-open .surface0e4f7-burger i:nth-child(2) { opacity: 0; }
.surface0e4f7-topbar.surface0e4f7-open .surface0e4f7-burger i:nth-child(3) { top: 5px; transform: rotate(-45deg); }

/* ==========================================================================
   Slide-up route panel (bottom sheet with route groups)
   ========================================================================== */

.surface0e4f7-veil {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(10, 14, 20, 0.66);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.surface0e4f7-veil.surface0e4f7-on { opacity: 1; visibility: visible; }

.surface0e4f7-sheet {
  position: fixed;
  bottom: 0; left: 50%;
  transform: translate(-50%, 105%);
  width: 100%;
  max-width: 430px;
  z-index: 70;
  background: var(--surface0e4f7-panel);
  border-radius: 14px 14px 0 0;
  border-top: 2px solid var(--surface0e4f7-accent);
  padding: 12px 14px calc(16px + env(safe-area-inset-bottom));
  max-height: 74vh;
  overflow-y: auto;
  transition: transform 0.3s cubic-bezier(0.22, 0.9, 0.3, 1);
}

.surface0e4f7-sheet.surface0e4f7-on { transform: translate(-50%, 0); }

.surface0e4f7-sheet-grip {
  width: 42px;
  height: 4px;
  border-radius: 4px;
  margin: 0 auto 10px;
  background: rgba(166, 166, 180, 0.45);
}

.surface0e4f7-sheet-cta {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.surface0e4f7-sheet-cta .surface0e4f7-btn { flex: 1; }

.surface0e4f7-routegrp {
  margin: 0 0 6px;
  padding: 0;
  border: 0;
}

.surface0e4f7-routelbl {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--surface0e4f7-mute);
  text-transform: uppercase;
  font-family: var(--surface0e4f7-font-head);
  margin: 10px 2px 4px;
}

.surface0e4f7-routes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.surface0e4f7-route {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(233, 230, 250, 0.05);
  border: 1px solid var(--surface0e4f7-line);
  color: var(--surface0e4f7-ink);
  font-size: 12.5px;
  font-weight: 600;
}

.surface0e4f7-route:hover { text-decoration: none; border-color: rgba(218, 112, 214, 0.6); }

.surface0e4f7-route span {
  margin-left: auto;
  color: var(--surface0e4f7-accent);
  font-size: 12px;
}

.surface0e4f7-route.surface0e4f7-here {
  background: var(--surface0e4f7-ink);
  color: #1c2833;
}

.surface0e4f7-route.surface0e4f7-here span { color: var(--surface0e4f7-accent-deep); }

/* ==========================================================================
   Hero carousel
   ========================================================================== */

.surface0e4f7-main { padding-top: calc(var(--surface0e4f7-head-h) + env(safe-area-inset-top)); }

.surface0e4f7-hero {
  position: relative;
  margin: 10px 10px 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--surface0e4f7-line);
  background: var(--surface0e4f7-panel);
}

.surface0e4f7-hero-track {
  position: relative;
  aspect-ratio: 16 / 7;
}

.surface0e4f7-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
  cursor: pointer;
  border: 0;
  padding: 0;
  background: var(--surface0e4f7-panel);
  width: 100%;
}

.surface0e4f7-hero-slide.surface0e4f7-on { opacity: 1; }

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

.surface0e4f7-hero-dots {
  position: absolute;
  bottom: 7px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.surface0e4f7-hero-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border-radius: 50%;
  border: 0;
  background: rgba(233, 230, 250, 0.4);
  cursor: pointer;
  transition: background 0.2s ease, width 0.2s ease;
}

.surface0e4f7-hero-dot.surface0e4f7-on {
  width: 16px;
  border-radius: 4px;
  background: var(--surface0e4f7-accent);
}

/* ==========================================================================
   Intro / headings
   ========================================================================== */

.surface0e4f7-sec { padding: 18px 12px 4px; }

.surface0e4f7-h1 {
  font-family: var(--surface0e4f7-font-head);
  font-size: 21px;
  line-height: 1.3;
  font-weight: 700;
  margin: 14px 2px 8px;
  color: var(--surface0e4f7-ink);
}

.surface0e4f7-h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--surface0e4f7-font-head);
  font-size: 16.5px;
  line-height: 1.35;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--surface0e4f7-ink);
}

.surface0e4f7-h2::before {
  content: "";
  flex: 0 0 4px;
  height: 17px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--surface0e4f7-accent), var(--surface0e4f7-accent-deep));
}

.surface0e4f7-lede {
  margin: 0 0 10px;
  color: #d8d5ef;
}

.surface0e4f7-lede b, .surface0e4f7-p b { color: #f3f0ff; }

.surface0e4f7-p { margin: 0 0 10px; color: #d8d5ef; }

.surface0e4f7-upd {
  display: inline-block;
  font-size: 10.5px;
  color: var(--surface0e4f7-accent);
  border: 1px dashed rgba(218, 112, 214, 0.55);
  border-radius: 5px;
  padding: 1px 7px;
  margin-left: 6px;
  vertical-align: 1px;
  white-space: nowrap;
}

/* ==========================================================================
   Category chip strip (jumps to on-page game sections)
   ========================================================================== */

.surface0e4f7-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 10px 12px 2px;
  scrollbar-width: none;
}

.surface0e4f7-chips::-webkit-scrollbar { display: none; }

.surface0e4f7-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--surface0e4f7-font-head);
  color: var(--surface0e4f7-ink);
  background: rgba(218, 112, 214, 0.12);
  border: 1px solid rgba(218, 112, 214, 0.4);
  white-space: nowrap;
}

.surface0e4f7-chip:hover { text-decoration: none; background: rgba(218, 112, 214, 0.22); }

/* ==========================================================================
   Game sections: pure-image cards with short caption
   ========================================================================== */

.surface0e4f7-gamehead {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 16px 2px 2px;
}

.surface0e4f7-gamehead .surface0e4f7-h2 { margin: 0; flex: 1; }

.surface0e4f7-gamecount {
  flex: 0 0 auto;
  font-size: 10.5px;
  color: var(--surface0e4f7-mute);
  border: 1px solid var(--surface0e4f7-line);
  border-radius: 999px;
  padding: 1px 8px;
  white-space: nowrap;
}

.surface0e4f7-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px 6px;
  margin: 8px 0 6px;
}

@media (min-width: 392px) {
  .surface0e4f7-grid { grid-template-columns: repeat(5, 1fr); }
}

.surface0e4f7-card {
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  text-align: center;
}

.surface0e4f7-cardimg {
  border-radius: var(--surface0e4f7-radius);
  border: 1px solid var(--surface0e4f7-line);
  aspect-ratio: 1 / 1;
  object-fit: contain;
  width: 100%;
  height: auto;
  transition: border-color 0.2s ease, transform 0.2s ease;
  background: var(--surface0e4f7-panel);
}

.surface0e4f7-card:active .surface0e4f7-cardimg {
  border-color: var(--surface0e4f7-accent);
  transform: scale(0.94);
}

.surface0e4f7-cardname {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin-top: 4px;
  font-size: 10.5px;
  line-height: 1.3;
  color: #cfcbe8;
  overflow-wrap: anywhere;
}

/* ==========================================================================
   Content modules (each module keeps its own shape)
   ========================================================================== */

/* Category highlight tiles */
.surface0e4f7-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 10px 0;
}

.surface0e4f7-tile {
  padding: 10px;
  border-radius: 8px;
  background: linear-gradient(160deg, var(--surface0e4f7-panel-2), var(--surface0e4f7-panel));
  border: 1px solid var(--surface0e4f7-line);
}

.surface0e4f7-tile h3 {
  margin: 0 0 3px;
  font-family: var(--surface0e4f7-font-head);
  font-size: 13.5px;
  color: var(--surface0e4f7-accent);
}

.surface0e4f7-tile p { margin: 0; font-size: 11.5px; line-height: 1.5; color: #c9c6e2; }

/* Numbered selection guide */
.surface0e4f7-steps { margin: 10px 0; padding: 0; list-style: none; counter-reset: surface0e4f7step; }

.surface0e4f7-steps li {
  position: relative;
  counter-increment: surface0e4f7step;
  padding: 8px 10px 8px 40px;
  margin-bottom: 6px;
  border-radius: 8px;
  background: rgba(233, 230, 250, 0.045);
  border: 1px solid var(--surface0e4f7-line);
  font-size: 12.5px;
  color: #d8d5ef;
}

.surface0e4f7-steps li::before {
  content: counter(surface0e4f7step);
  position: absolute;
  left: 10px;
  top: 9px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--surface0e4f7-font-head);
  color: #141c26;
  background: var(--surface0e4f7-accent);
}

/* At-a-glance fact rows */
.surface0e4f7-facts { margin: 10px 0; border: 1px solid var(--surface0e4f7-line); border-radius: 9px; overflow: hidden; }

.surface0e4f7-factrow {
  padding: 7px 12px;
  background: rgba(233, 230, 250, 0.04);
  border-bottom: 1px solid var(--surface0e4f7-line);
  font-size: 12px;
  color: #d8d5ef;
}

.surface0e4f7-factrow:last-child { border-bottom: 0; }

.surface0e4f7-factrow b {
  color: var(--surface0e4f7-accent);
  font-family: var(--surface0e4f7-font-head);
}

/* Payment rows */
.surface0e4f7-wallets { margin: 10px 0; border: 1px solid var(--surface0e4f7-line); border-radius: 9px; overflow: hidden; }

.surface0e4f7-wallet {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(233, 230, 250, 0.04);
  border-bottom: 1px solid var(--surface0e4f7-line);
}

.surface0e4f7-wallet:last-child { border-bottom: 0; }

.surface0e4f7-wallettag {
  flex: 0 0 62px;
  text-align: center;
  font-family: var(--surface0e4f7-font-head);
  font-weight: 700;
  font-size: 12px;
  color: #141c26;
  background: #e6e6fa;
  border-radius: 6px;
  padding: 3px 4px;
}

.surface0e4f7-wallet p { margin: 0; font-size: 11.8px; line-height: 1.5; color: #cfcbe8; }

/* Scenario list for use-case module */
.surface0e4f7-scenes { margin: 10px 0; }

.surface0e4f7-scene {
  display: flex;
  gap: 9px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--surface0e4f7-line);
}

.surface0e4f7-scene:last-child { border-bottom: 0; }

.surface0e4f7-scene-ic {
  flex: 0 0 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(128, 0, 128, 0.35);
  color: var(--surface0e4f7-accent);
}

.surface0e4f7-scene h3 {
  margin: 0 0 2px;
  font-family: var(--surface0e4f7-font-head);
  font-size: 13px;
  color: var(--surface0e4f7-ink);
}

.surface0e4f7-scene p { margin: 0; font-size: 12px; color: #c9c6e2; }

/* Pros and limits split */
.surface0e4f7-split { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0; }

.surface0e4f7-splitcol { border-radius: 9px; padding: 10px 11px; border: 1px solid var(--surface0e4f7-line); }

.surface0e4f7-splitcol--good { background: rgba(218, 112, 214, 0.1); }

.surface0e4f7-splitcol--rest { background: rgba(169, 169, 169, 0.09); }

.surface0e4f7-splitcol h3 {
  margin: 0 0 6px;
  font-family: var(--surface0e4f7-font-head);
  font-size: 13px;
}

.surface0e4f7-splitcol--good h3 { color: var(--surface0e4f7-accent); }
.surface0e4f7-splitcol--rest h3 { color: var(--surface0e4f7-mute); }

.surface0e4f7-splitcol ul { margin: 0; padding-left: 16px; }

.surface0e4f7-splitcol li { font-size: 11.8px; color: #d3d0ea; margin-bottom: 4px; }

/* Checklist */
.surface0e4f7-checks { margin: 10px 0; list-style: none; padding: 0; }

.surface0e4f7-checks li {
  position: relative;
  padding: 7px 8px 7px 30px;
  margin-bottom: 5px;
  font-size: 12.3px;
  color: #d8d5ef;
  border-radius: 7px;
  background: rgba(128, 0, 128, 0.14);
}

.surface0e4f7-checks li::before {
  content: "✓";
  position: absolute;
  left: 8px;
  top: 6px;
  width: 17px;
  height: 17px;
  border-radius: 5px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #141c26;
  background: var(--surface0e4f7-accent);
}

/* English quick Q&A bubbles */
.surface0e4f7-qa { margin: 10px 0; }

.surface0e4f7-q {
  margin: 0 0 4px;
  font-family: var(--surface0e4f7-font-head);
  font-size: 13.5px;
  color: var(--surface0e4f7-accent);
}

.surface0e4f7-a {
  margin: 0 0 12px;
  padding: 8px 11px;
  border-radius: 9px 9px 9px 2px;
  background: rgba(233, 230, 250, 0.06);
  border: 1px solid var(--surface0e4f7-line);
  font-size: 12.3px;
  color: #d8d5ef;
}

/* ==========================================================================
   Extended site footer (home only) + common footer
   ========================================================================== */

.surface0e4f7-xfoot {
  margin-top: 22px;
  padding: 18px 14px 10px;
  border-top: 1px solid var(--surface0e4f7-line);
  background: linear-gradient(180deg, rgba(20, 28, 38, 0.4), rgba(20, 28, 38, 0.95));
}

.surface0e4f7-xfoot-h {
  font-family: var(--surface0e4f7-font-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--surface0e4f7-ink);
  margin: 14px 0 6px;
}

.surface0e4f7-xfoot-h:first-child { margin-top: 0; }

.surface0e4f7-dir { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; margin: 8px 0; }

.surface0e4f7-dir a {
  color: #d3d0ea;
  font-size: 12.3px;
  line-height: 1.45;
  border-bottom: 1px dotted rgba(218, 112, 214, 0.35);
}

.surface0e4f7-promos { display: grid; gap: 7px; margin: 8px 0; }

.surface0e4f7-promo {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  width: 100%;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid rgba(218, 112, 214, 0.45);
  background: linear-gradient(135deg, rgba(218, 112, 214, 0.16), rgba(128, 0, 128, 0.22));
  color: var(--surface0e4f7-ink);
  font-family: var(--surface0e4f7-font-head);
  font-size: 12.8px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.surface0e4f7-promo:active { transform: scale(0.97); border-color: var(--surface0e4f7-accent); }

.surface0e4f7-promo i {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--surface0e4f7-accent);
  box-shadow: 0 0 0 3px rgba(218, 112, 214, 0.25);
}

.surface0e4f7-closing {
  margin: 14px 0 4px;
  text-align: center;
  font-family: var(--surface0e4f7-font-head);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--surface0e4f7-mute);
}

.surface0e4f7-copyright {
  padding: 12px 14px calc(14px + var(--surface0e4f7-foot-h) + env(safe-area-inset-bottom));
  text-align: center;
  font-size: 11.5px;
  color: var(--surface0e4f7-mute);
}

/* ==========================================================================
   Bottom action bar (5 roles, segmented)
   ========================================================================== */

.surface0e4f7-bnav {
  position: fixed;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 58;
  display: flex;
  background: rgba(16, 22, 29, 0.98);
  border-top: 1px solid var(--surface0e4f7-line);
  padding: 5px 4px calc(5px + env(safe-area-inset-bottom));
}

.surface0e4f7-bnav a,
.surface0e4f7-bnav button {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-height: 52px;
  padding: 4px 2px 3px;
  border: 0;
  background: transparent;
  color: var(--surface0e4f7-mute);
  font-family: var(--surface0e4f7-font-body);
  font-size: 10px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}

.surface0e4f7-bnav a:hover { text-decoration: none; }

.surface0e4f7-bnav svg {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  transition: transform 0.2s ease;
}

.surface0e4f7-bnav a:active svg,
.surface0e4f7-bnav button:active svg { transform: translateY(-2px) scale(1.08); }

/* Active role: contrast inversion pill + light marker dot */
.surface0e4f7-bnav .surface0e4f7-on { color: var(--surface0e4f7-accent); }

.surface0e4f7-bnav .surface0e4f7-on svg {
  background: var(--surface0e4f7-ink);
  border-radius: 999px;
  padding: 3px;
  color: #1c2833;
}

.surface0e4f7-bnav .surface0e4f7-on::after {
  content: "";
  position: absolute;
  bottom: 1px;
  width: 14px;
  height: 3px;
  border-radius: 3px;
  background: var(--surface0e4f7-accent);
}

/* ==========================================================================
   Restrained reveal-on-scroll
   ========================================================================== */

.surface0e4f7-rv {
  opacity: 1;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.surface0e4f7-rv.surface0e4f7-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .surface0e4f7-rv { opacity: 1; transform: none; transition: none; }
  .surface0e4f7-hero-slide { transition: none; }
}

/* No horizontal overflow safety on narrow phones */
.surface0e4f7-shell,
.surface0e4f7-sec,
.surface0e4f7-grid,
.surface0e4f7-tiles { min-width: 0; }

/* Compatible refinements for readable guidance and accessible controls. */
html { scroll-padding-top: 116px; }
.surface0e4f7-main { overflow-wrap: break-word; }
.surface0e4f7-sec p, .surface0e4f7-sec li { font-size: 13.5px; line-height: 1.7; }
.surface0e4f7-sec h3 { font-family: var(--surface0e4f7-font-head); font-size: 15px; line-height: 1.5; margin: 12px 0 5px; }
.surface0e4f7-sec ul { padding-left: 22px; }
.surface0e4f7-sec li { margin-bottom: 8px; }
.surface0e4f7-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; }
.surface0e4f7-card { min-width: 0; min-height: 44px; }
.surface0e4f7-cardname { display: block; overflow: visible; -webkit-line-clamp: unset; }
.surface0e4f7-chip { min-height: 44px; }
.surface0e4f7-sheet { visibility: hidden; }
.surface0e4f7-sheet.surface0e4f7-on { visibility: visible; }
.surface0e4f7-close { display: block; margin: 0 0 10px auto; min-height: 44px; padding: 8px 14px; background: var(--surface0e4f7-ink); color: var(--surface0e4f7-bg); border: 0; border-radius: 6px; font: inherit; cursor: pointer; }
.surface0e4f7-hero-track { aspect-ratio: 1400 / 330; }
.surface0e4f7-hero-slide img { object-fit: contain; }
.surface0e4f7-hero-slide { pointer-events: none; visibility: hidden; }
.surface0e4f7-hero-slide.surface0e4f7-on { pointer-events: auto; visibility: visible; }
.surface0e4f7-hero-dots { position: static; gap: 4px; padding: 1px 4px; align-items: center; }
.surface0e4f7-hero-dot, .surface0e4f7-hero-dot.surface0e4f7-on { width: 44px; height: 44px; border-radius: 4px; background: transparent; position: relative; }
.surface0e4f7-hero-dot::after { content: ''; position: absolute; width: 8px; height: 8px; top: 18px; left: 18px; border-radius: 4px; background: var(--surface0e4f7-mute); }
.surface0e4f7-hero-dot.surface0e4f7-on::after { background: var(--surface0e4f7-accent); width: 18px; left: 13px; }
.surface0e4f7-pause { min-height: 44px; min-width: 82px; border: 1px solid var(--surface0e4f7-line); border-radius: 5px; background: var(--surface0e4f7-panel-2); color: var(--surface0e4f7-ink); font: inherit; cursor: pointer; }
.surface0e4f7-caption { margin: 7px 12px; font-size: 12px; color: var(--surface0e4f7-mute); }
.surface0e4f7-kicker { color: var(--surface0e4f7-accent); font-size: 12px; margin: 4px 0; }
.surface0e4f7-answer { border-left: 2px solid var(--surface0e4f7-accent); padding-left: 10px; }
.surface0e4f7-brief { margin: 12px 0; }
.surface0e4f7-brief dt { font-weight: 700; color: var(--surface0e4f7-accent); margin-top: 9px; }
.surface0e4f7-brief dd { margin: 3px 0 9px; }
.surface0e4f7-case { border-top: 1px dashed var(--surface0e4f7-line); padding: 10px 0; }
.surface0e4f7-flow { margin: 12px 0; padding-left: 24px; border-left: 1px solid var(--surface0e4f7-line); }
.surface0e4f7-note { background: var(--surface0e4f7-panel); border-radius: 5px; padding: 12px; }
.surface0e4f7-note p:last-child { margin-bottom: 0; }
.surface0e4f7-inline { display: inline-flex; align-items: center; min-height: 44px; margin: 2px 0 9px; padding: 6px 10px; border: 1px solid rgba(218,112,214,.6); border-radius: 5px; background: transparent; color: var(--surface0e4f7-accent); font: inherit; text-align: left; cursor: pointer; }
.surface0e4f7-dir a { display: flex; align-items: center; min-height: 44px; }
.surface0e4f7-promos { list-style: none; padding: 0; }
.surface0e4f7-upd { margin: 0 0 8px; font-size: 12px; white-space: normal; }
.surface0e4f7-breadcrumb { padding: 12px 12px 0; font-size: 12px; }
.surface0e4f7-breadcrumb a { display: inline-flex; min-height: 44px; align-items: center; }
.surface0e4f7-skip { position: fixed; left: 12px; top: -90px; z-index: 100; padding: 10px; color: #141c26; background: #e6e6fa; }
.surface0e4f7-skip:focus { top: 4px; }
@media (min-width: 392px) { .surface0e4f7-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }

