/* ==========================================================================
   rabaji.click — base stylesheet
   Canvas: mobile-first 320-430px, centered on wide screens
   Palette: #0F0F23 ink night / #006400 pine / #7FFF00 lime / #CCCCCC mist /
            #3CB371 sea green
   Direction: bold concise titles + light body, light-round cards with compact
   buttons, outlined tile game cards, question-driven rhythm, sliding focus
   indicators, compact dual-button CTA groups.
   All class names use the surfacedcb49- prefix.
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  --surfacedcb49-ink: #0F0F23;
  --surfacedcb49-deep: #0B0B1A;
  --surfacedcb49-panel: #171732;
  --surfacedcb49-panel-2: #1D1D3C;
  --surfacedcb49-pine: #006400;
  --surfacedcb49-pine-soft: rgba(0, 100, 0, 0.35);
  --surfacedcb49-lime: #7FFF00;
  --surfacedcb49-lime-deep: #6ED400;
  --surfacedcb49-mist: #CCCCCC;
  --surfacedcb49-sea: #3CB371;
  --surfacedcb49-paper: #F4F4F8;
  --surfacedcb49-muted: #9A9AB2;
  --surfacedcb49-line: rgba(127, 255, 0, 0.24);
  --surfacedcb49-line-soft: rgba(204, 204, 204, 0.15);
  --surfacedcb49-radius-card: 10px;
  --surfacedcb49-radius-btn: 8px;
  --surfacedcb49-topbar-h: 56px;
  --surfacedcb49-dock-h: 64px;
  --surfacedcb49-font: "Noto Sans Bengali", "Hind Siliguri", "SolaimanLipi",
    "Kalpurush", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;
}

/* ---------- 2. Reset and base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  padding: 0;
  background: var(--surfacedcb49-deep);
  color: var(--surfacedcb49-mist);
  font-family: var(--surfacedcb49-font);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

a {
  color: var(--surfacedcb49-sea);
  text-decoration: none;
  transition: color 0.25s ease;
}

a:hover {
  color: var(--surfacedcb49-lime);
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 800;
  color: var(--surfacedcb49-paper);
  overflow-wrap: anywhere;
}

p {
  margin: 0 0 10px;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

/* ---------- 3. Phone canvas shell ---------- */
.surfacedcb49-shell {
  position: relative;
  width: 100%;
  max-width:430px;
  margin: 0 auto;
  background: var(--surfacedcb49-ink);
  min-height: 100vh;
  box-shadow: 0 0 44px rgba(0, 0, 0, 0.55);
}

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

/* ---------- 4. Edge-aligned functional top bar ---------- */
.surfacedcb49-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(15, 15, 35, 0.96);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
  border-bottom: 1px solid var(--surfacedcb49-line);
}

.surfacedcb49-topbar-inner {
  max-width: 430px;
  margin: 0 auto;
  min-height: var(--surfacedcb49-topbar-h);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
}

.surfacedcb49-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
  min-width: 0;
}

.surfacedcb49-brand-logo {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(127, 255, 0, 0.5);
  background: #000;
}

.surfacedcb49-brand-name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: var(--surfacedcb49-paper);
  white-space: nowrap;
}

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

/* Compact dual-button group */
.surfacedcb49-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 7px 13px;
  border-radius: var(--surfacedcb49-radius-btn);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1;
  transition: background-color 0.25s ease, color 0.25s ease,
    border-color 0.25s ease, transform 0.2s ease;
}

.surfacedcb49-btn:active {
  transform: scale(0.97);
}

.surfacedcb49-btn-lime {
  background: linear-gradient(180deg, #8fff2a, var(--surfacedcb49-lime-deep));
  color: #0F0F23;
  text-shadow: none;
}

.surfacedcb49-btn-ghost {
  background: rgba(60, 179, 113, 0.12);
  color: var(--surfacedcb49-lime);
  border: 1px solid rgba(127, 255, 0, 0.42);
}

.surfacedcb49-btn-plain {
  background: transparent;
  color: var(--surfacedcb49-mist);
  border: 1px solid var(--surfacedcb49-line-soft);
}

.surfacedcb49-menu-btn {
  width: 38px;
  height: 38px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid var(--surfacedcb49-line-soft);
  border-radius: var(--surfacedcb49-radius-btn);
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.surfacedcb49-menu-btn span {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--surfacedcb49-lime);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.surfacedcb49-menu-btn.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.surfacedcb49-menu-btn.is-open span:nth-child(2) {
  opacity: 0;
}

.surfacedcb49-menu-btn.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---------- 5. Slide-up route sheet ---------- */
.surfacedcb49-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(11, 11, 26, 0.66);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.surfacedcb49-sheet-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.surfacedcb49-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  transform: translateY(103%);
  transition: transform 0.34s cubic-bezier(0.22, 0.9, 0.3, 1);
}

.surfacedcb49-sheet.is-open {
  transform: translateY(0);
}

.surfacedcb49-sheet-inner {
  max-width: 430px;
  margin: 0 auto;
  background: #14142c;
  border: 1px solid var(--surfacedcb49-line);
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
  padding: 14px 16px calc(24px + env(safe-area-inset-bottom));
  max-height: 74vh;
  overflow-y: auto;
}

.surfacedcb49-sheet-grip {
  width: 42px;
  height: 4px;
  border-radius: 4px;
  margin: 0 auto 12px;
  background: rgba(127, 255, 0, 0.4);
}

.surfacedcb49-sheet-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: var(--surfacedcb49-lime);
  margin: 0 0 10px;
}

.surfacedcb49-sheet-group {
  padding: 4px 0 10px;
  border-bottom: 1px dashed var(--surfacedcb49-line-soft);
}

.surfacedcb49-sheet-group:last-child {
  border-bottom: 0;
}

.surfacedcb49-sheet-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 6px 8px;
  border-radius: var(--surfacedcb49-radius-btn);
  color: var(--surfacedcb49-mist);
  font-size: 14px;
  font-weight: 600;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.surfacedcb49-sheet-link::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 2px;
  background: var(--surfacedcb49-pine-soft);
  transform: rotate(45deg);
  transition: background-color 0.25s ease;
}

.surfacedcb49-sheet-link:hover,
.surfacedcb49-sheet-link:focus-visible {
  background: rgba(60, 179, 113, 0.14);
  color: var(--surfacedcb49-paper);
}

.surfacedcb49-sheet-link:hover::before {
  background: var(--surfacedcb49-lime);
}

.surfacedcb49-sheet-link .surfacedcb49-sheet-arrow {
  margin-left: auto;
  color: var(--surfacedcb49-muted);
  font-size: 15px;
  line-height: 1;
}

/* ---------- 6. Main flow ---------- */
.surfacedcb49-main {
  padding: calc(var(--surfacedcb49-topbar-h) + 14px) 12px
    calc(var(--surfacedcb49-dock-h) + 30px + env(safe-area-inset-bottom));
}

/* ---------- 7. Hero ---------- */
.surfacedcb49-hero {
  padding: 4px 2px 2px;
}

.surfacedcb49-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.4px;
  color: var(--surfacedcb49-sea);
  border: 1px solid rgba(60, 179, 113, 0.5);
  border-radius: 999px;
  padding: 4px 10px;
  margin-bottom: 10px;
}

.surfacedcb49-hero-kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--surfacedcb49-lime);
}

.surfacedcb49-hero h1 {
  font-size: 21px;
  line-height: 1.38;
}

.surfacedcb49-hero-lede {
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--surfacedcb49-mist);
}

.surfacedcb49-cta {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.surfacedcb49-cta .surfacedcb49-btn {
  flex: 1;
  min-height: 44px;
  font-size: 14px;
}

/* ---------- 8. Promotional banner reel ---------- */
.surfacedcb49-reel {
  position: relative;
  margin-top: 16px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--surfacedcb49-line);
  background: var(--surfacedcb49-panel);
}

.surfacedcb49-reel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.surfacedcb49-reel-track::-webkit-scrollbar {
  display: none;
}

.surfacedcb49-slide {
  position: relative;
  flex: 0 0 100%;
  scroll-snap-align: start;
  aspect-ratio: 2.5 / 1;
  display: block;
  width: 100%;
  text-align: left;
}

.surfacedcb49-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.surfacedcb49-slide-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 12px 10px;
  background: linear-gradient(
    180deg,
    rgba(15, 15, 35, 0) 0%,
    rgba(15, 15, 35, 0.86) 62%
  );
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.surfacedcb49-slide-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--surfacedcb49-paper);
}

.surfacedcb49-slide-text {
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--surfacedcb49-mist);
}

.surfacedcb49-slide-text em {
  font-style: normal;
  color: var(--surfacedcb49-lime);
  font-weight: 700;
}

.surfacedcb49-dots {
  position: absolute;
  right: 10px;
  bottom: 8px;
  display: flex;
  gap: 2px;
  z-index: 5;
}

.surfacedcb49-dot {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.surfacedcb49-dot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(204, 204, 204, 0.55);
  transition: transform 0.28s ease, background-color 0.28s ease;
}

.surfacedcb49-dot.is-on::before {
  background: var(--surfacedcb49-lime);
  transform: scale(1.5);
}

/* ---------- 9. Sections ---------- */
.surfacedcb49-sec {
  margin-top: 24px;
}

.surfacedcb49-sec-head {
  position: relative;
  border-left: 3px solid var(--surfacedcb49-lime);
  padding-left: 10px;
}

.surfacedcb49-sec-title {
  font-size: 16px;
  line-height: 1.45;
}

.surfacedcb49-sec-note {
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.7;
  color: #ADADc2;
}

.surfacedcb49-prose {
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--surfacedcb49-mist);
}

.surfacedcb49-prose a {
  color: var(--surfacedcb49-sea);
  border-bottom: 1px dashed rgba(60, 179, 113, 0.6);
  font-weight: 600;
}

.surfacedcb49-prose a:hover {
  color: var(--surfacedcb49-lime);
  border-bottom-color: var(--surfacedcb49-lime);
}

/* ---------- 10. Game grid and outlined tile cards ---------- */
.surfacedcb49-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 12px;
}

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

.surfacedcb49-tile {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  padding: 7px 5px 8px;
  background: linear-gradient(180deg, #191936, #13132b);
  border: 1px solid rgba(204, 204, 204, 0.17);
  border-radius: var(--surfacedcb49-radius-card);
  min-width: 0;
  text-align: center;
  transition: border-color 0.25s ease, background-color 0.25s ease,
    transform 0.2s ease;
}

.surfacedcb49-tile:hover,
.surfacedcb49-tile:focus-visible {
  border-color: rgba(127, 255, 0, 0.65);
  background: linear-gradient(180deg, #1e1e40, #16162f);
}

.surfacedcb49-tile:active {
  transform: scale(0.96);
}

.surfacedcb49-tile-frame {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 7px;
  overflow: hidden;
  background: #0c0c20;
  border: 1px solid rgba(204, 204, 204, 0.1);
}

.surfacedcb49-tile-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.surfacedcb49-tile-name {
  display: block;
  font-size: 10.5px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--surfacedcb49-mist);
  overflow-wrap: anywhere;
}

.surfacedcb49-tile:hover .surfacedcb49-tile-name {
  color: var(--surfacedcb49-paper);
}

/* ---------- 11. At-a-glance strip ---------- */
.surfacedcb49-glance {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.surfacedcb49-glance-item {
  padding: 10px 11px;
  background: var(--surfacedcb49-panel);
  border: 1px solid var(--surfacedcb49-line-soft);
  border-radius: var(--surfacedcb49-radius-card);
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.surfacedcb49-glance-num {
  font-size: 16px;
  font-weight: 800;
  color: var(--surfacedcb49-lime);
  line-height: 1.2;
}

.surfacedcb49-glance-label {
  font-size: 11px;
  color: var(--surfacedcb49-muted);
  line-height: 1.45;
}

/* ---------- 12. Numbered steps ---------- */
.surfacedcb49-steps {
  margin-top: 12px;
  counter-reset: surfacedcb49step;
}

.surfacedcb49-step {
  position: relative;
  counter-increment: surfacedcb49step;
  padding: 8px 8px 8px 40px;
  min-height: 44px;
}

.surfacedcb49-step + .surfacedcb49-step {
  border-top: 1px dashed var(--surfacedcb49-line-soft);
}

.surfacedcb49-step::before {
  content: counter(surfacedcb49step);
  position: absolute;
  left: 4px;
  top: 10px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: #0f0f23;
  background: var(--surfacedcb49-lime);
}

.surfacedcb49-step-note {
  margin-top: 10px;
  padding: 9px 11px;
  border-left: 3px solid var(--surfacedcb49-sea);
  background: rgba(60, 179, 113, 0.1);
  border-radius: 0 8px 8px 0;
  font-size: 12px;
  line-height: 1.7;
  color: #b9e6cb;
}

/* ---------- 13. Question-and-answer blocks ---------- */
.surfacedcb49-qa {
  margin-top: 12px;
  padding: 12px 12px 10px;
  background: var(--surfacedcb49-panel);
  border: 1px solid var(--surfacedcb49-line-soft);
  border-radius: var(--surfacedcb49-radius-card);
}

.surfacedcb49-qa h3 {
  display: flex;
  gap: 7px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--surfacedcb49-paper);
  margin-bottom: 6px;
}

.surfacedcb49-qa h3::before {
  content: "?";
  flex: 0 0 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(127, 255, 0, 0.14);
  border: 1px solid rgba(127, 255, 0, 0.55);
  color: var(--surfacedcb49-lime);
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.surfacedcb49-qa p {
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--surfacedcb49-mist);
}

.surfacedcb49-qa a {
  color: var(--surfacedcb49-sea);
  font-weight: 600;
  border-bottom: 1px dashed rgba(60, 179, 113, 0.6);
}

.surfacedcb49-qa a:hover {
  color: var(--surfacedcb49-lime);
}

/* ---------- 14. Category highlight rows ---------- */
.surfacedcb49-catrows {
  margin-top: 12px;
}

.surfacedcb49-catrow {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--surfacedcb49-line-soft);
  align-items: start;
}

.surfacedcb49-catrow:last-child {
  border-bottom: 0;
}

.surfacedcb49-cat-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(0, 100, 0, 0.42);
  border: 1px solid rgba(127, 255, 0, 0.4);
  color: var(--surfacedcb49-lime);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-align: center;
}

.surfacedcb49-catrow p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--surfacedcb49-mist);
}

.surfacedcb49-catrow a {
  color: var(--surfacedcb49-sea);
  font-weight: 600;
  border-bottom: 1px dashed rgba(60, 179, 113, 0.6);
}

.surfacedcb49-catrow a:hover {
  color: var(--surfacedcb49-lime);
}

/* ---------- 15. Offer block ---------- */
.surfacedcb49-offer {
  margin-top: 12px;
  padding: 14px 13px;
  background: linear-gradient(180deg, rgba(0, 100, 0, 0.3), rgba(15, 15, 35, 0.4));
  border: 1px solid rgba(127, 255, 0, 0.35);
  border-radius: 12px;
}

.surfacedcb49-offer-tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #0f0f23;
  background: var(--surfacedcb49-lime);
  border-radius: 4px;
  padding: 3px 8px;
  margin-bottom: 8px;
}

.surfacedcb49-terms {
  margin: 10px 0 0;
}

.surfacedcb49-terms li {
  position: relative;
  padding: 3px 0 3px 16px;
  font-size: 12px;
  line-height: 1.65;
  color: #C9C9DC;
}

.surfacedcb49-terms li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--surfacedcb49-sea);
  transform: rotate(45deg);
}

/* ---------- 16. Decision checklist ---------- */
.surfacedcb49-checklist {
  margin-top: 12px;
}

.surfacedcb49-check {
  position: relative;
  padding: 9px 8px 9px 36px;
  min-height: 44px;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--surfacedcb49-mist);
}

.surfacedcb49-check + .surfacedcb49-check {
  border-top: 1px dashed var(--surfacedcb49-line-soft);
}

.surfacedcb49-check::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 12px;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1.5px solid rgba(127, 255, 0, 0.6);
  background: rgba(127, 255, 0, 0.06);
}

.surfacedcb49-check::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 15px;
  width: 7px;
  height: 4px;
  border-left: 2px solid var(--surfacedcb49-lime);
  border-bottom: 2px solid var(--surfacedcb49-lime);
  transform: rotate(-45deg);
}

.surfacedcb49-check a {
  color: var(--surfacedcb49-sea);
  font-weight: 600;
  border-bottom: 1px dashed rgba(60, 179, 113, 0.6);
}

/* ---------- 17. Homepage extended footer ---------- */
.surfacedcb49-xfoot {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--surfacedcb49-line);
}

.surfacedcb49-xfoot-brand {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.surfacedcb49-xfoot-brand img {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 9px;
  object-fit: cover;
  border: 1px solid rgba(127, 255, 0, 0.45);
  background: #000;
}

.surfacedcb49-xfoot-brand p {
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
  color: var(--surfacedcb49-muted);
}

.surfacedcb49-xfoot-caption {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.1px;
  color: var(--surfacedcb49-sea);
  margin: 18px 0 7px;
}

.surfacedcb49-xfoot-dir {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 10px;
}

.surfacedcb49-xfoot-dir a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  font-size: 12px;
  font-weight: 600;
  color: var(--surfacedcb49-mist);
  transition: color 0.25s ease;
}

.surfacedcb49-xfoot-dir a::before {
  content: "";
  width: 5px;
  height: 5px;
  margin-right: 7px;
  border-radius: 1px;
  background: var(--surfacedcb49-pine-soft);
  transform: rotate(45deg);
  transition: background-color 0.25s ease;
}

.surfacedcb49-xfoot-dir a:hover {
  color: var(--surfacedcb49-lime);
}

.surfacedcb49-xfoot-dir a:hover::before {
  background: var(--surfacedcb49-lime);
}

.surfacedcb49-xfoot-promos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.surfacedcb49-xfoot-promo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 8px 10px;
  border-radius: var(--surfacedcb49-radius-btn);
  font-size: 12.5px;
  font-weight: 700;
  border: 1px solid rgba(127, 255, 0, 0.42);
  background: rgba(60, 179, 113, 0.1);
  color: var(--surfacedcb49-lime);
  transition: background-color 0.25s ease, border-color 0.25s ease,
    transform 0.2s ease;
}

.surfacedcb49-xfoot-promo:first-child {
  background: linear-gradient(180deg, #8fff2a, var(--surfacedcb49-lime-deep));
  color: #0f0f23;
  border-color: transparent;
}

.surfacedcb49-xfoot-promo:hover {
  border-color: var(--surfacedcb49-lime);
}

.surfacedcb49-xfoot-promo:active {
  transform: scale(0.97);
}

.surfacedcb49-xfoot-note {
  margin-top: 14px;
  padding: 10px 11px;
  border-radius: 8px;
  background: rgba(204, 204, 204, 0.06);
  border: 1px dashed var(--surfacedcb49-line-soft);
  font-size: 11px;
  line-height: 1.7;
  color: #8F8FA6;
}

/* ---------- 18. Copyright strip ---------- */
.surfacedcb49-footer {
  margin-top: 18px;
  padding: 12px 0 2px;
  border-top: 1px solid var(--surfacedcb49-line-soft);
  text-align: center;
  font-size: 11.5px;
  color: #7d7d95;
}

/* ---------- 19. Brand-accent bottom dock ---------- */
.surfacedcb49-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: linear-gradient(180deg, #13122b, #0c0c1e 78%);
  border-top: 1px solid rgba(127, 255, 0, 0.4);
  padding-bottom: env(safe-area-inset-bottom);
}

.surfacedcb49-dock-inner {
  max-width: 430px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.surfacedcb49-dock-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: var(--surfacedcb49-dock-h);
  color: var(--surfacedcb49-muted);
  font-weight: 600;
  transition: color 0.25s ease;
}

.surfacedcb49-dock-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 22%;
  right: 22%;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--surfacedcb49-lime);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

.surfacedcb49-dock-item.is-active {
  color: var(--surfacedcb49-lime);
}

.surfacedcb49-dock-item.is-active::before {
  transform: scaleX(1);
}

.surfacedcb49-dock-item:hover {
  color: var(--surfacedcb49-paper);
}

.surfacedcb49-dock-ico {
  width: 22px;
  height: 22px;
  display: block;
}

.surfacedcb49-dock-ico svg {
  width: 100%;
  height: 100%;
  display: block;
}

.surfacedcb49-dock-label {
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.2px;
}

.surfacedcb49-dock-item.is-hot .surfacedcb49-dock-ico {
  width: 30px;
  height: 30px;
  padding: 3px;
  border-radius: 50%;
  background: rgba(127, 255, 0, 0.12);
  border: 1px solid rgba(127, 255, 0, 0.5);
}

/* ---------- Compatible completion: touch, focus, and help-page layouts ---------- */
html { scroll-padding-top: 82px; scroll-padding-bottom: 90px; }
body { overflow-x: visible; }
.surfacedcb49-topbar-inner { gap: 5px; padding: 6px 8px; }
.surfacedcb49-brand { min-height: 44px; gap: 5px; }
.surfacedcb49-brand-name { font-size: 18px; }
.surfacedcb49-btn { min-height: 44px; padding: 7px 9px; }
.surfacedcb49-menu-btn { width: 44px; height: 44px; border: 0; }
.surfacedcb49-sheet[hidden] { display: none; }
.surfacedcb49-sheet-close { display: block; min-height: 44px; margin-left: auto; color: var(--surfacedcb49-lime); padding: 8px 12px; }
.surfacedcb49-sheet-link[aria-current="page"] { color: var(--surfacedcb49-lime); }
.surfacedcb49-sheet-link[aria-current="page"]::after { content: ""; position: absolute; top: 0; left: 8px; width: 28px; height: 2px; background: var(--surfacedcb49-lime); }
.surfacedcb49-reel-track { position: relative; touch-action: pan-y; }
.surfacedcb49-slide { aspect-ratio: 2.5 / 1; }
.surfacedcb49-reel-controls { display: flex; justify-content: space-between; align-items: center; padding: 2px 6px; }
.surfacedcb49-dots { position: static; }
.surfacedcb49-dot { width: 44px; height: 44px; }
.surfacedcb49-pause { min-width: 90px; min-height: 44px; padding: 5px 8px; color: var(--surfacedcb49-lime); }
.surfacedcb49-reel-caption { font-size: 12px; padding: 0 10px 8px; margin: 0; }
.surfacedcb49-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.surfacedcb49-tile { min-height: 44px; padding: 5px 3px 7px; }
.surfacedcb49-tile-name { min-height: 29px; }
@media (min-width: 380px) { .surfacedcb49-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.surfacedcb49-prose a, .surfacedcb49-step-note a, .surfacedcb49-qa a, .surfacedcb49-catrow a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; border: 0; }
.surfacedcb49-text-promo { display: inline-flex; align-items: center; min-height: 44px; padding: 4px 5px; color: var(--surfacedcb49-lime); text-decoration: underline; text-underline-offset: 4px; font-weight: 600; vertical-align: baseline; }
.surfacedcb49-xfoot-dir a, .surfacedcb49-xfoot-promo { min-height: 44px; }
.surfacedcb49-xfoot-note, .surfacedcb49-footer { color: #b8b8cd; }
.surfacedcb49-dock { max-width: 430px; margin: 0 auto; }
.surfacedcb49-topbar { max-width: 430px; margin: 0 auto; }
.surfacedcb49-main { overflow-wrap: anywhere; }
.surfacedcb49-case { margin-top: 14px; border-left: 2px solid var(--surfacedcb49-sea); padding: 2px 0 2px 12px; }
.surfacedcb49-case h3, .surfacedcb49-branch h3 { font-size: 15px; margin-bottom: 8px; }
.surfacedcb49-compare { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 12.5px; table-layout: fixed; }
.surfacedcb49-compare th, .surfacedcb49-compare td { padding: 10px 7px; border-bottom: 1px solid var(--surfacedcb49-line-soft); vertical-align: top; text-align: left; overflow-wrap: anywhere; }
.surfacedcb49-compare th { color: var(--surfacedcb49-lime); background: var(--surfacedcb49-panel); }
.surfacedcb49-branch { margin-top: 12px; padding: 12px 0; border-top: 1px solid var(--surfacedcb49-line); }
.surfacedcb49-definitions { margin: 10px 0; }
.surfacedcb49-definitions dt { color: var(--surfacedcb49-paper); font-weight: 700; padding: 8px 0 3px; }
.surfacedcb49-definitions dd { margin: 0 0 10px 12px; padding-left: 10px; border-left: 1px solid var(--surfacedcb49-line); }
.surfacedcb49-answer { margin-top: 12px; padding-bottom: 12px; border-bottom: 1px dashed var(--surfacedcb49-line-soft); }
.surfacedcb49-answer h3 { font-size: 15px; margin: 0 0 6px; }
.surfacedcb49-nojs { padding: 8px; border: 1px solid var(--surfacedcb49-line); }
/* ---------- 20. Shared helpers ---------- */
.surfacedcb49-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
