/* ==========================================================================
   9a9992.homes — mobile-first shell styles
   Palette base: #2E4057 ink / #FAFAD2 cream / #FFEBCD sand
   Design keys: stroke-led restrained radii, bold headings + light body,
   compact square game directory, scenario-branch rhythm,
   slide-up route panel, short vertical lift micro-interactions.
   All classes and custom properties use the framebc8cf- prefix.
   ========================================================================== */

:root {
  --framebc8cf-ink: #2e4057;
  --framebc8cf-ink-deep: #22334a;
  --framebc8cf-ink-raise: #3a4f6d;
  --framebc8cf-ink-low: #1b2a3d;
  --framebc8cf-cream: #fafad2;
  --framebc8cf-sand: #ffebcd;
  --framebc8cf-line: rgba(250, 250, 210, 0.30);
  --framebc8cf-line-soft: rgba(250, 250, 210, 0.14);
  --framebc8cf-cream-dim: rgba(250, 250, 210, 0.74);
  --framebc8cf-sand-tint: rgba(255, 235, 205, 0.14);
  --framebc8cf-radius: 8px;
  --framebc8cf-radius-lg: 12px;
  --framebc8cf-topbar-h: 60px;
  --framebc8cf-tabbar-h: 66px;
  --framebc8cf-gap: 14px;
  --framebc8cf-lift: -3px;
  --framebc8cf-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--framebc8cf-ink-low);
  color: var(--framebc8cf-cream);
  font-family: "Noto Sans Bengali", "Hind Siliguri", "SolaimanLipi", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.75;
  display: flex;
  justify-content: center;
  min-height: 100vh;
}

/* Phone canvas: keeps a stable 320-430px column centered on wide screens */
.framebc8cf-shell {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  background: var(--framebc8cf-ink);
  position: relative;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0;
}

p { margin: 0 0 12px; }

a { color: var(--framebc8cf-sand); text-decoration: none; }
a:hover { text-decoration: underline; }

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

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  cursor: pointer;
}

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

.framebc8cf-anchor { scroll-margin-top: calc(var(--framebc8cf-topbar-h) + 12px); }

/* ==========================================================================
   Topbar — edge-aligned functional header
   ========================================================================== */

.framebc8cf-topbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--framebc8cf-topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 12px;
  background: rgba(34, 51, 74, 0.97);
  border-bottom: 1px solid var(--framebc8cf-line);
  z-index: 40;
  backdrop-filter: blur(6px);
}

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

.framebc8cf-logo {
  width: 36px;
  height: 36px;
  border-radius: var(--framebc8cf-radius);
  border: 1px solid var(--framebc8cf-line);
  object-fit: cover;
  flex: 0 0 auto;
}

.framebc8cf-brand-name {
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 0.02em;
  color: var(--framebc8cf-cream);
  white-space: nowrap;
}

/* Compact dual CTA group (Register + Login) */
.framebc8cf-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
}

.framebc8cf-btn {
  min-height: 44px;
  padding: 0 13px;
  border-radius: var(--framebc8cf-radius);
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  border: 1px solid transparent;
  transition: transform 0.18s var(--framebc8cf-ease), background 0.18s var(--framebc8cf-ease), border-color 0.18s var(--framebc8cf-ease);
}

.framebc8cf-btn:active { transform: translateY(var(--framebc8cf-lift)); }

.framebc8cf-btn-solid {
  background: var(--framebc8cf-sand);
  color: #22334a;
  border-color: var(--framebc8cf-sand);
}

.framebc8cf-btn-solid:hover { background: var(--framebc8cf-cream); text-decoration: none; }

.framebc8cf-btn-line {
  background: transparent;
  color: var(--framebc8cf-cream);
  border-color: var(--framebc8cf-line);
}

.framebc8cf-btn-line:hover { border-color: var(--framebc8cf-sand); text-decoration: none; }

.framebc8cf-menu-trigger {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--framebc8cf-line);
  border-radius: var(--framebc8cf-radius);
  padding: 0 9px;
  gap: 6px;
  transition: transform 0.18s var(--framebc8cf-ease), border-color 0.18s var(--framebc8cf-ease);
}

.framebc8cf-menu-trigger:hover { border-color: var(--framebc8cf-sand); }

.framebc8cf-menu-trigger svg { width: 20px; height: 20px; }

.framebc8cf-menu-trigger .framebc8cf-trigger-label {
  font-size: 12px;
  font-weight: 700;
  display: none;
}

/* ==========================================================================
   Slide-up route panel + dim veil
   ========================================================================== */

.framebc8cf-veil {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 34, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--framebc8cf-ease), visibility 0.25s;
  z-index: 45;
}

.framebc8cf-veil.framebc8cf-show { opacity: 1; visibility: visible; }

.framebc8cf-routes {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 105%);
  width: 100%;
  max-width: 430px;
  max-height: 74vh;
  overflow-y: auto;
  background: var(--framebc8cf-ink-deep);
  border: 1px solid var(--framebc8cf-line);
  border-bottom: none;
  border-radius: var(--framebc8cf-radius-lg) var(--framebc8cf-radius-lg) 0 0;
  padding: 14px 14px calc(var(--framebc8cf-tabbar-h) + env(safe-area-inset-bottom, 0px) + 14px);
  z-index: 50;
  transition: transform 0.3s var(--framebc8cf-ease), visibility 0.3s;
  visibility: hidden;
}

.framebc8cf-routes.framebc8cf-open {
  transform: translate(-50%, 0);
  visibility: visible;
}

.framebc8cf-routes-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.framebc8cf-routes-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--framebc8cf-sand);
  letter-spacing: 0.01em;
}

.framebc8cf-routes-close {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--framebc8cf-line);
  border-radius: var(--framebc8cf-radius);
}

.framebc8cf-routes-close svg { width: 18px; height: 18px; }

.framebc8cf-route-group { margin: 0 0 6px; padding: 0; list-style: none; }

.framebc8cf-route-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--framebc8cf-cream-dim);
  margin: 10px 2px 6px;
}

.framebc8cf-route-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 48px;
  padding: 8px 12px;
  margin-bottom: 6px;
  border: 1px solid var(--framebc8cf-line-soft);
  border-radius: var(--framebc8cf-radius);
  background: rgba(58, 79, 109, 0.35);
  font-weight: 700;
  font-size: 14px;
  color: var(--framebc8cf-cream);
  transition: transform 0.18s var(--framebc8cf-ease), border-color 0.18s var(--framebc8cf-ease);
}

.framebc8cf-route-link:hover {
  text-decoration: none;
  border-color: var(--framebc8cf-sand);
  transform: translateY(var(--framebc8cf-lift));
}

.framebc8cf-route-link::after {
  content: "";
  width: 7px;
  height: 7px;
  border-top: 2px solid var(--framebc8cf-sand);
  border-right: 2px solid var(--framebc8cf-sand);
  transform: rotate(45deg);
  flex: 0 0 auto;
}

.framebc8cf-route-link[aria-current="page"] {
  background: var(--framebc8cf-sand-tint);
  border-color: var(--framebc8cf-sand);
  color: var(--framebc8cf-sand);
}

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

.framebc8cf-routes-cta .framebc8cf-btn { flex: 1; }

/* ==========================================================================
   Main column
   ========================================================================== */

.framebc8cf-main {
  padding: calc(var(--framebc8cf-topbar-h) + 12px) 14px calc(var(--framebc8cf-tabbar-h) + env(safe-area-inset-bottom, 0px) + 28px);
}

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

.framebc8cf-hero {
  position: relative;
  border: 1px solid var(--framebc8cf-line);
  border-radius: var(--framebc8cf-radius-lg);
  overflow: hidden;
  background: var(--framebc8cf-ink-deep);
  margin-bottom: var(--framebc8cf-gap);
}

.framebc8cf-hero-clip {
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.framebc8cf-hero-track {
  display: flex;
  height: 100%;
  transition: transform 0.45s var(--framebc8cf-ease);
  will-change: transform;
}

.framebc8cf-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  background: var(--framebc8cf-ink-deep);
  display: block;
}

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

.framebc8cf-slide-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 14px 14px;
  background: linear-gradient(180deg, rgba(27, 42, 61, 0) 0%, rgba(27, 42, 61, 0.88) 62%);
  text-align: left;
}

.framebc8cf-slide-kicker {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--framebc8cf-sand);
  margin-bottom: 3px;
}

.framebc8cf-slide-title {
  display: block;
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.35;
  margin-bottom: 6px;
}

.framebc8cf-slide-cta {
  display: inline-block;
  padding: 7px 14px;
  border-radius: var(--framebc8cf-radius);
  border: 1px solid var(--framebc8cf-sand);
  background: var(--framebc8cf-sand);
  color: #22334a;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.framebc8cf-hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--framebc8cf-line);
  background: rgba(27, 42, 61, 0.72);
  color: var(--framebc8cf-cream);
  z-index: 3;
}

.framebc8cf-hero-nav svg { width: 16px; height: 16px; }

.framebc8cf-hero-prev { left: 8px; }
.framebc8cf-hero-next { right: 8px; }

.framebc8cf-dots {
  position: absolute;
  bottom: 8px;
  right: 12px;
  display: flex;
  gap: 6px;
  z-index: 3;
}

.framebc8cf-dot {
  width: 22px;
  height: 8px;
  padding: 0;
  border-radius: 4px;
  border: 1px solid var(--framebc8cf-sand);
  background: transparent;
  transition: background 0.2s var(--framebc8cf-ease);
}

.framebc8cf-dot.framebc8cf-on { background: var(--framebc8cf-sand); }

/* ==========================================================================
   Page lede: single H1 + intro + scenario shortcuts
   ========================================================================== */

.framebc8cf-lede {
  border: 1px solid var(--framebc8cf-line-soft);
  border-left: 3px solid var(--framebc8cf-sand);
  border-radius: var(--framebc8cf-radius);
  padding: 14px 14px 6px;
  background: rgba(34, 51, 74, 0.55);
  margin-bottom: var(--framebc8cf-gap);
}

.framebc8cf-h1 {
  font-size: 21px;
  margin-bottom: 10px;
}

.framebc8cf-intro p { color: var(--framebc8cf-cream-dim); }

.framebc8cf-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 4px;
}

.framebc8cf-quick-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--framebc8cf-line);
  border-radius: var(--framebc8cf-radius);
  background: var(--framebc8cf-sand-tint);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--framebc8cf-sand);
  transition: transform 0.18s var(--framebc8cf-ease);
}

.framebc8cf-quick-link:hover { text-decoration: none; transform: translateY(var(--framebc8cf-lift)); border-color: var(--framebc8cf-sand); }

.framebc8cf-quick-link svg { width: 15px; height: 15px; flex: 0 0 auto; }

/* ==========================================================================
   Section kit
   ========================================================================== */

.framebc8cf-sec { margin-bottom: 26px; }

.framebc8cf-sec-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid var(--framebc8cf-line-soft);
  padding-bottom: 8px;
  margin-bottom: 10px;
}

.framebc8cf-h2 {
  font-size: 17.5px;
  color: var(--framebc8cf-cream);
}

.framebc8cf-h2::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 8px;
  border: 2px solid var(--framebc8cf-sand);
  border-radius: 2px;
  transform: rotate(45deg);
  vertical-align: 1px;
}

.framebc8cf-count {
  font-size: 11px;
  font-weight: 700;
  color: var(--framebc8cf-ink);
  background: var(--framebc8cf-sand);
  border-radius: 999px;
  padding: 2px 9px;
  letter-spacing: 0.03em;
}

.framebc8cf-sec-note {
  font-size: 13px;
  color: var(--framebc8cf-cream-dim);
  margin: 0 0 12px;
}

.framebc8cf-h3 {
  font-size: 14.5px;
  color: var(--framebc8cf-sand);
  margin: 14px 0 6px;
}

/* ==========================================================================
   Game directory — compact square icon catalog
   ========================================================================== */

.framebc8cf-glist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 8px;
}

.framebc8cf-gitem { margin: 0; }

.framebc8cf-gbtn {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 5px;
  background: var(--framebc8cf-ink-deep);
  border: 1px solid var(--framebc8cf-line-soft);
  border-radius: var(--framebc8cf-radius);
  text-align: center;
  transition: transform 0.18s var(--framebc8cf-ease), border-color 0.18s var(--framebc8cf-ease), background 0.18s var(--framebc8cf-ease);
}

.framebc8cf-gbtn:hover,
.framebc8cf-gbtn:focus-visible {
  border-color: var(--framebc8cf-sand);
  background: var(--framebc8cf-ink-raise);
  transform: translateY(var(--framebc8cf-lift));
}

.framebc8cf-gicon {
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--framebc8cf-line-soft);
  background: var(--framebc8cf-ink-low);
}

.framebc8cf-gicon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.framebc8cf-gname {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 11px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--framebc8cf-cream);
  min-height: 2.8em;
  word-break: break-word;
}

/* ==========================================================================
   Promotions module — stacked offer rows with gold edge
   ========================================================================== */

.framebc8cf-offer {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--framebc8cf-line-soft);
  border-left: 3px solid var(--framebc8cf-sand);
  border-radius: var(--framebc8cf-radius);
  background: rgba(34, 51, 74, 0.55);
  padding: 12px;
  margin-bottom: 10px;
}

.framebc8cf-offer-body { flex: 1 1 auto; min-width: 0; }

.framebc8cf-offer-tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--framebc8cf-sand);
  border: 1px solid var(--framebc8cf-line);
  border-radius: 4px;
  padding: 1px 7px;
  margin-bottom: 5px;
}

.framebc8cf-offer-body p {
  margin: 0;
  font-size: 13px;
  color: var(--framebc8cf-cream-dim);
}

.framebc8cf-offer-cta {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--framebc8cf-radius);
  border: 1px solid var(--framebc8cf-sand);
  background: var(--framebc8cf-sand);
  color: #22334a;
  font-weight: 800;
  font-size: 12.5px;
  line-height: 1;
  transition: transform 0.18s var(--framebc8cf-ease);
}

.framebc8cf-offer-cta:active { transform: translateY(var(--framebc8cf-lift)); }

/* ==========================================================================
   Payment module — scenario-branch split cards
   ========================================================================== */

.framebc8cf-branch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.framebc8cf-branch-card {
  border: 1px dashed var(--framebc8cf-line);
  border-radius: var(--framebc8cf-radius);
  padding: 11px 12px;
  background: rgba(34, 51, 74, 0.4);
}

.framebc8cf-branch-card h3 {
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--framebc8cf-sand);
}

.framebc8cf-branch-card p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--framebc8cf-cream-dim);
}

.framebc8cf-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.framebc8cf-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 9px 2px;
  border-bottom: 1px solid var(--framebc8cf-line-soft);
}

.framebc8cf-check:last-child { border-bottom: none; }

.framebc8cf-check-dot {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  border-radius: 6px;
  border: 1.5px solid var(--framebc8cf-sand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.framebc8cf-check-dot svg { width: 11px; height: 11px; }

.framebc8cf-check p { margin: 0; font-size: 13px; color: var(--framebc8cf-cream-dim); }

.framebc8cf-check strong { color: var(--framebc8cf-cream); font-weight: 700; }

/* ==========================================================================
   How-to steps — numbered vertical rail
   ========================================================================== */

.framebc8cf-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.framebc8cf-steps::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 10px;
  bottom: 14px;
  width: 1px;
  background: var(--framebc8cf-line);
}

.framebc8cf-step {
  position: relative;
  display: flex;
  gap: 12px;
  padding: 6px 0 14px;
}

.framebc8cf-step:last-child { padding-bottom: 2px; }

.framebc8cf-step-num {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  border: 1px solid var(--framebc8cf-sand);
  background: var(--framebc8cf-ink);
  color: var(--framebc8cf-sand);
  font-weight: 800;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.framebc8cf-step-body h3 {
  margin: 4px 0 4px;
  font-size: 13.5px;
  color: var(--framebc8cf-cream);
}

.framebc8cf-step-body p {
  margin: 0;
  font-size: 12.8px;
  color: var(--framebc8cf-cream-dim);
}

/* ==========================================================================
   FAQ — native disclosure rows
   ========================================================================== */

.framebc8cf-faq { border: 1px solid var(--framebc8cf-line-soft); border-radius: var(--framebc8cf-radius); overflow: hidden; }

.framebc8cf-faq details { border-bottom: 1px solid var(--framebc8cf-line-soft); }

.framebc8cf-faq details:last-child { border-bottom: none; }

.framebc8cf-faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 13px;
  font-weight: 700;
  font-size: 13.5px;
  color: var(--framebc8cf-cream);
  background: rgba(34, 51, 74, 0.5);
  min-height: 44px;
}

.framebc8cf-faq summary::-webkit-details-marker { display: none; }

.framebc8cf-faq summary::after {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--framebc8cf-sand);
  border-bottom: 2px solid var(--framebc8cf-sand);
  transform: rotate(45deg);
  transition: transform 0.2s var(--framebc8cf-ease);
  margin-top: -3px;
}

.framebc8cf-faq details[open] summary::after { transform: rotate(225deg); margin-top: 3px; }

.framebc8cf-faq details[open] summary { color: var(--framebc8cf-sand); }

.framebc8cf-a {
  padding: 2px 13px 13px;
  font-size: 13px;
  color: var(--framebc8cf-cream-dim);
}

.framebc8cf-a p { margin: 0 0 8px; }

.framebc8cf-a p:last-child { margin-bottom: 0; }

/* ==========================================================================
   Step summary — compact recap rows
   ========================================================================== */

.framebc8cf-recap {
  border: 1px solid var(--framebc8cf-line);
  border-radius: var(--framebc8cf-radius);
  background: var(--framebc8cf-sand-tint);
  padding: 4px 12px;
}

.framebc8cf-recap-row {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px solid var(--framebc8cf-line-soft);
}

.framebc8cf-recap-row:last-child { border-bottom: none; }

.framebc8cf-recap-key {
  flex: 0 0 84px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--framebc8cf-sand);
}

.framebc8cf-recap-row p { margin: 0; font-size: 13px; color: var(--framebc8cf-cream-dim); }

/* ==========================================================================
   Extended homepage footer: brand > directory > promo shortcuts > note
   ========================================================================== */

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

.framebc8cf-xfoot-brand {
  border: 1px solid var(--framebc8cf-line-soft);
  border-radius: var(--framebc8cf-radius);
  padding: 12px 13px;
  background: rgba(34, 51, 74, 0.5);
  display: flex;
  gap: 11px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.framebc8cf-xfoot-brand img {
  width: 40px;
  height: 40px;
  border-radius: var(--framebc8cf-radius);
  border: 1px solid var(--framebc8cf-line);
  flex: 0 0 auto;
}

.framebc8cf-xfoot-brand p { margin: 0; font-size: 12.5px; color: var(--framebc8cf-cream-dim); }

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

.framebc8cf-dir {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.framebc8cf-dir-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 44px;
  padding: 8px 11px;
  border: 1px solid var(--framebc8cf-line-soft);
  border-radius: var(--framebc8cf-radius);
  background: var(--framebc8cf-ink-deep);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--framebc8cf-cream);
  transition: transform 0.18s var(--framebc8cf-ease), border-color 0.18s var(--framebc8cf-ease);
}

.framebc8cf-dir-link:hover {
  text-decoration: none;
  border-color: var(--framebc8cf-sand);
  transform: translateY(var(--framebc8cf-lift));
}

.framebc8cf-dir-link::after {
  content: "";
  width: 6px;
  height: 6px;
  border-top: 1.5px solid var(--framebc8cf-cream-dim);
  border-right: 1.5px solid var(--framebc8cf-cream-dim);
  transform: rotate(45deg);
  flex: 0 0 auto;
}

.framebc8cf-promorow {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.framebc8cf-promorow::-webkit-scrollbar { display: none; }

.framebc8cf-promochip {
  flex: 0 0 auto;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--framebc8cf-sand);
  background: var(--framebc8cf-sand);
  color: #22334a;
  font-size: 12.5px;
  font-weight: 800;
  white-space: nowrap;
  transition: transform 0.18s var(--framebc8cf-ease);
}

.framebc8cf-promochip.framebc8cf-chip-line {
  background: transparent;
  color: var(--framebc8cf-sand);
}

.framebc8cf-promochip:active { transform: translateY(var(--framebc8cf-lift)); }

.framebc8cf-promochip svg { width: 14px; height: 14px; flex: 0 0 auto; }

.framebc8cf-note {
  border: 1px dashed var(--framebc8cf-line);
  border-radius: var(--framebc8cf-radius);
  padding: 11px 12px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--framebc8cf-cream-dim);
}

.framebc8cf-note strong { color: var(--framebc8cf-sand); }

/* ==========================================================================
   Common footer: copyright line
   ========================================================================== */

.framebc8cf-foot {
  border-top: 1px solid var(--framebc8cf-line-soft);
  padding: 12px 2px 0;
}

.framebc8cf-copy {
  margin: 0;
  text-align: center;
  font-size: 11.5px;
  color: var(--framebc8cf-cream-dim);
}

/* ==========================================================================
   Mobile bottom tab bar — stroked function bar
   ========================================================================== */

.framebc8cf-tabbar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: calc(var(--framebc8cf-tabbar-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  display: flex;
  align-items: stretch;
  background: rgba(27, 42, 61, 0.98);
  border-top: 1px solid var(--framebc8cf-line);
  z-index: 42;
  backdrop-filter: blur(6px);
}

.framebc8cf-tab {
  flex: 1 1 20%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  background: transparent;
  border: none;
  color: var(--framebc8cf-cream-dim);
  text-decoration: none;
  transition: transform 0.18s var(--framebc8cf-ease);
}

.framebc8cf-tab:hover { text-decoration: none; }

.framebc8cf-tab:active { transform: translateY(-2px); }

.framebc8cf-tab-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 28px;
  border-radius: var(--framebc8cf-radius);
  background: transparent;
  transition: background 0.2s var(--framebc8cf-ease);
}

.framebc8cf-tab-ico svg { width: 21px; height: 21px; }

.framebc8cf-tab-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* Active state: sand support block + light marker dot */
.framebc8cf-tab.framebc8cf-on { color: var(--framebc8cf-sand); }

.framebc8cf-tab.framebc8cf-on .framebc8cf-tab-ico {
  background: var(--framebc8cf-sand-tint);
  box-shadow: inset 0 0 0 1px rgba(255, 235, 205, 0.4);
  transform: translateY(-2px);
}

.framebc8cf-tab.framebc8cf-on .framebc8cf-tab-label { position: relative; }

.framebc8cf-tab.framebc8cf-on .framebc8cf-tab-label::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--framebc8cf-sand);
}

/* ==========================================================================
   Breakpoints inside the phone canvas
   ========================================================================== */

@media (min-width: 360px) {
  .framebc8cf-menu-trigger .framebc8cf-trigger-label { display: inline; }
  .framebc8cf-h1 { font-size: 22px; }
}

@media (min-width: 375px) {
  .framebc8cf-h2 { font-size: 18.5px; }
  .framebc8cf-slide-title { font-size: 18px; }
}

/* 390px and up: game directory widens to five stable columns */
@media (min-width: 390px) {
  .framebc8cf-glist { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px 9px; }
  .framebc8cf-gname { font-size: 11.5px; }
}

/* 430px canvas edge: roomier lede, three-column directory shortcuts */
@media (min-width: 430px) {
  .framebc8cf-main { padding-left: 18px; padding-right: 18px; }
  .framebc8cf-h1 { font-size: 24px; }
  .framebc8cf-h2 { font-size: 19px; }
  .framebc8cf-dir { grid-template-columns: 1fr 1fr 1fr; }
  .framebc8cf-intro p { font-size: 15px; }
}

/* ==========================================================================
   Motion preferences
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
