/* ==========================================================================
   99bd.homes - compact frame stylesheet
   Prefix contract: every class and custom property uses "framef48d4-".
   Palette: #FFD700 (gold) / #1A1A1A (ink) / #FFB347 (amber)
   Visual direction: monospace accents + regular body text, stroke-led
   restrained corners, outlined tile cards, fact-first rhythm, drawer menu
   slide-in with light card lift, segmented action buttons.
   Mobile canvas: 320-430px, centered on wide screens.
   ========================================================================== */

/* ---------- custom properties ---------- */
:root {
  --framef48d4-gold: #ffd700;
  --framef48d4-amber: #ffb347;
  --framef48d4-ink: #1a1a1a;
  --framef48d4-ink-deep: #101010;
  --framef48d4-panel: #201d17;
  --framef48d4-panel-soft: #242017;
  --framef48d4-line: #3d3727;
  --framef48d4-line-soft: #2c2820;
  --framef48d4-text: #f3eee0;
  --framef48d4-muted: #ab9f85;
  --framef48d4-muted-2: #857b64;
  --framef48d4-good: #9fd66a;
  --framef48d4-radius-s: 6px;
  --framef48d4-radius-m: 10px;
  --framef48d4-radius-l: 14px;
  --framef48d4-font-body: "Noto Sans Bengali", "Hind Siliguri", "SolaimanLipi",
    system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --framef48d4-font-mono: ui-monospace, "Cascadia Mono", "JetBrains Mono",
    "Fira Mono", Consolas, "Courier New", monospace;
  --framef48d4-topbar-h: 62px;
  --framef48d4-tabbar-h: 64px;
  --framef48d4-gap: 14px;
}

/* ---------- reset / base ---------- */
* {
  box-sizing: border-box;
}

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

body.framef48d4-body {
  margin: 0;
  background: var(--framef48d4-ink-deep);
  color: var(--framef48d4-text);
  font-family: var(--framef48d4-font-body);
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

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

a {
  color: var(--framef48d4-amber);
  text-decoration: none;
}

a:hover {
  color: var(--framef48d4-gold);
  text-decoration: underline;
}

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

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 10px;
  text-wrap: balance;
}

p {
  margin: 0 0 12px;
}

ul, ol {
  margin: 0 0 12px;
  padding-left: 20px;
}

.framef48d4-mono {
  font-family: var(--framef48d4-font-mono);
  font-weight: 600;
  letter-spacing: 0.02em;
}

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

/* ---------- centered phone canvas ---------- */
.framef48d4-canvas {
  max-width: 430px;
  margin: 0 auto;
  background: var(--framef48d4-ink);
  min-height: 100vh;
  position: relative;
}

.framef48d4-page {
  padding: calc(var(--framef48d4-topbar-h) + 12px) var(--framef48d4-gap)
    calc(var(--framef48d4-tabbar-h) + 34px + env(safe-area-inset-bottom));
}

@media (min-width: 431px) {
  .framef48d4-canvas {
    border-left: 1px solid var(--framef48d4-line-soft);
    border-right: 1px solid var(--framef48d4-line-soft);
    box-shadow: 0 0 42px rgba(0, 0, 0, 0.6);
  }
}

/* ==========================================================================
   Top bar - asymmetric brand header
   Left: real logo image + wordmark only. Right: action cluster holding the
   segmented register/login pair and the drawer trigger.
   ========================================================================== */
.framef48d4-topbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--framef48d4-topbar-h);
  background: linear-gradient(180deg, #23201a 0%, var(--framef48d4-ink) 100%);
  border-bottom: 1px solid var(--framef48d4-line);
  z-index: 60;
}

.framef48d4-topbar-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 100%;
  padding: 0 10px;
}

/* brand block gets its own gold notch, action zone stays plain */
.framef48d4-brand {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-right: auto;
  color: var(--framef48d4-text);
  padding: 4px 10px 4px 6px;
  border: 1px solid var(--framef48d4-line);
  border-left: 3px solid var(--framef48d4-gold);
  border-radius: var(--framef48d4-radius-m);
  background: var(--framef48d4-panel);
  text-decoration: none;
}

.framef48d4-brand:hover {
  text-decoration: none;
  color: var(--framef48d4-gold);
}

.framef48d4-logo {
  width: 30px;
  height: 30px;
  border-radius: var(--framef48d4-radius-s);
  border: 1px solid var(--framef48d4-line);
  object-fit: cover;
}

.framef48d4-brand-name {
  font-family: var(--framef48d4-font-mono);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.04em;
  color: var(--framef48d4-gold);
}

/* segmented action pair */
.framef48d4-seg {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--framef48d4-gold);
  border-radius: 999px;
  overflow: hidden;
}

.framef48d4-seg-btn {
  min-height: 34px;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  background: transparent;
  color: var(--framef48d4-gold);
  border: 0;
  white-space: nowrap;
}

.framef48d4-seg-btn + .framef48d4-seg-btn {
  border-left: 1px solid rgba(255, 215, 0, 0.45);
}

.framef48d4-seg-primary {
  background: var(--framef48d4-gold);
  color: #191400;
}

.framef48d4-seg-primary:hover {
  background: #ffe14d;
}

.framef48d4-seg-btn:not(.framef48d4-seg-primary):hover {
  background: rgba(255, 215, 0, 0.12);
}

/* drawer trigger */
.framef48d4-burger {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--framef48d4-panel);
  border: 1px solid var(--framef48d4-line);
  border-radius: var(--framef48d4-radius-m);
  color: var(--framef48d4-text);
}

.framef48d4-burger svg {
  width: 20px;
  height: 20px;
}

.framef48d4-burger:hover {
  border-color: var(--framef48d4-gold);
  color: var(--framef48d4-gold);
}

/* ==========================================================================
   Side drawer menu
   ========================================================================== */
.framef48d4-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 5, 0.66);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
  z-index: 70;
}

.framef48d4-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(84vw, 316px);
  background: #191611;
  border-right: 1px solid var(--framef48d4-line);
  transform: translateX(-104%);
  transition: transform 0.26s ease;
  z-index: 80;
  overflow-y: auto;
  padding: 14px 14px 30px;
  scrollbar-width: thin;
}

body.framef48d4-menu-open .framef48d4-drawer {
  transform: translateX(0);
}

body.framef48d4-menu-open .framef48d4-backdrop {
  opacity: 1;
  visibility: visible;
}

body.framef48d4-menu-open {
  overflow: hidden;
}

.framef48d4-drawer-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 2px 12px;
  border-bottom: 1px solid var(--framef48d4-line-soft);
  margin-bottom: 12px;
}

.framef48d4-drawer-head img {
  width: 34px;
  height: 34px;
  border-radius: var(--framef48d4-radius-s);
  border: 1px solid var(--framef48d4-line);
}

.framef48d4-drawer-title {
  font-family: var(--framef48d4-font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--framef48d4-gold);
  margin-right: auto;
}

.framef48d4-drawer-close {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--framef48d4-line);
  border-radius: var(--framef48d4-radius-s);
  color: var(--framef48d4-muted);
}

.framef48d4-drawer-close:hover {
  color: var(--framef48d4-gold);
  border-color: var(--framef48d4-gold);
}

.framef48d4-drawer-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 4px 0 16px;
}

.framef48d4-drawer-cta .framef48d4-seg {
  border-radius: var(--framef48d4-radius-s);
}

.framef48d4-drawer-cta .framef48d4-seg-btn {
  width: 100%;
}

.framef48d4-drawer-label {
  font-family: var(--framef48d4-font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--framef48d4-muted-2);
  margin: 16px 2px 6px;
}

.framef48d4-drawer-group {
  display: grid;
  gap: 4px;
  margin: 0 0 6px;
  padding: 0;
  list-style: none;
}

.framef48d4-drawer-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 9px 10px;
  border: 1px solid var(--framef48d4-line-soft);
  border-radius: var(--framef48d4-radius-s);
  color: var(--framef48d4-text);
  font-size: 13.5px;
  background: rgba(32, 29, 23, 0.5);
}

.framef48d4-drawer-link:hover {
  border-color: var(--framef48d4-gold);
  color: var(--framef48d4-gold);
  text-decoration: none;
}

.framef48d4-drawer-link .framef48d4-mono {
  font-size: 10px;
  color: var(--framef48d4-amber);
  min-width: 16px;
}

.framef48d4-drawer-note {
  margin-top: 18px;
  padding: 10px 12px;
  border: 1px dashed var(--framef48d4-line);
  border-radius: var(--framef48d4-radius-s);
  font-size: 11.5px;
  color: var(--framef48d4-muted);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.framef48d4-hero {
  padding: 6px 0 4px;
}

.framef48d4-hero h1 {
  font-size: 21px;
  letter-spacing: 0.01em;
  margin-bottom: 8px;
}

.framef48d4-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--framef48d4-font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--framef48d4-amber);
  border: 1px solid var(--framef48d4-line);
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 10px;
}

.framef48d4-hero-kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--framef48d4-good);
  box-shadow: 0 0 6px var(--framef48d4-good);
}

.framef48d4-hero p {
  color: #d8d0bd;
  font-size: 13.5px;
}

.framef48d4-hero-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 12px 0 6px;
}

/* wide segmented CTA used inside hero / modules */
.framef48d4-cta {
  display: flex;
  border: 1px solid var(--framef48d4-gold);
  border-radius: 999px;
  overflow: hidden;
}

.framef48d4-cta-btn {
  flex: 1;
  min-height: 44px;
  font-size: 14px;
  font-weight: 700;
  background: transparent;
  border: 0;
  color: var(--framef48d4-gold);
  padding: 10px 8px;
}

.framef48d4-cta-btn + .framef48d4-cta-btn {
  border-left: 1px solid rgba(255, 215, 0, 0.45);
}

.framef48d4-cta-fill {
  background: linear-gradient(180deg, #ffe14d, var(--framef48d4-gold));
  color: #191400;
}

.framef48d4-cta-fill:hover {
  filter: brightness(1.05);
}

.framef48d4-cta-btn:not(.framef48d4-cta-fill):hover {
  background: rgba(255, 215, 0, 0.12);
}

/* fact strip - monospace quick facts, first thing after hero */
.framef48d4-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 14px 0 4px;
}

.framef48d4-fact {
  border: 1px solid var(--framef48d4-line-soft);
  border-top: 2px solid var(--framef48d4-amber);
  border-radius: var(--framef48d4-radius-s);
  background: var(--framef48d4-panel-soft);
  padding: 8px 6px 7px;
  text-align: center;
}

.framef48d4-fact b {
  display: block;
  font-family: var(--framef48d4-font-mono);
  font-size: 15px;
  color: var(--framef48d4-gold);
  line-height: 1.2;
}

.framef48d4-fact span {
  display: block;
  font-size: 10.5px;
  color: var(--framef48d4-muted);
  margin-top: 2px;
  line-height: 1.35;
}

/* ==========================================================================
   Carousel
   ========================================================================== */
.framef48d4-carousel {
  position: relative;
  margin: 16px 0 6px;
  border: 1px solid var(--framef48d4-line);
  border-radius: var(--framef48d4-radius-m);
  overflow: hidden;
  background: var(--framef48d4-panel);
}

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

.framef48d4-slide {
  flex: 0 0 100%;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
}

.framef48d4-slide img {
  width: 100%;
  height: clamp(150px, 44vw, 196px);
  object-fit: cover;
}

.framef48d4-carousel-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: linear-gradient(180deg, transparent, rgba(10, 9, 6, 0.85));
}

.framef48d4-slide-cap {
  font-size: 11px;
  color: #f0e8d4;
  line-height: 1.35;
  max-width: 66%;
}

.framef48d4-dots {
  display: flex;
  gap: 6px;
}

.framef48d4-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--framef48d4-gold);
  background: transparent;
  padding: 0;
  min-width: 8px;
}

.framef48d4-dot.framef48d4-dot-on {
  background: var(--framef48d4-gold);
}

/* ==========================================================================
   Sections + game grid
   ========================================================================== */
.framef48d4-section {
  margin: 26px 0 0;
}

.framef48d4-sec-head {
  display: flex;
  align-items: baseline;
  gap: 9px;
  border-bottom: 1px solid var(--framef48d4-line);
  padding-bottom: 7px;
  margin-bottom: 9px;
}

.framef48d4-sec-index {
  font-family: var(--framef48d4-font-mono);
  font-size: 12px;
  font-weight: 700;
  color: #191400;
  background: var(--framef48d4-amber);
  border-radius: var(--framef48d4-radius-s);
  padding: 1px 6px;
  line-height: 1.5;
  flex: 0 0 auto;
}

.framef48d4-sec-head h2 {
  font-size: 16.5px;
  margin: 0;
}

.framef48d4-sec-count {
  margin-left: auto;
  font-family: var(--framef48d4-font-mono);
  font-size: 11px;
  color: var(--framef48d4-muted-2);
  white-space: nowrap;
}

.framef48d4-sec-lead {
  font-size: 12.5px;
  color: var(--framef48d4-muted);
  margin: 0 0 10px;
}

.framef48d4-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px 7px;
}

/* outlined tile card */
.framef48d4-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 6px 4px 7px;
  background: var(--framef48d4-panel);
  border: 1px solid var(--framef48d4-line-soft);
  border-radius: var(--framef48d4-radius-m);
  transition: transform 0.18s ease, border-color 0.18s ease;
  text-align: center;
}

.framef48d4-tile:hover {
  transform: translateY(-3px);
  border-color: var(--framef48d4-gold);
  text-decoration: none;
}

.framef48d4-tile:active {
  transform: translateY(-1px);
}

.framef48d4-tile img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--framef48d4-radius-s);
  border: 1px solid var(--framef48d4-line-soft);
  background: #14120d;
}

.framef48d4-tile span {
  font-size: 10.5px;
  line-height: 1.3;
  color: #e7dfc9;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 27px;
  overflow-wrap: anywhere;
}

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

/* ==========================================================================
   Content modules
   ========================================================================== */
.framef48d4-panel {
  border: 1px solid var(--framef48d4-line-soft);
  border-radius: var(--framef48d4-radius-m);
  background: var(--framef48d4-panel-soft);
  padding: 13px 13px 9px;
  margin: 0 0 10px;
}

.framef48d4-panel h3 {
  font-size: 14.5px;
  color: var(--framef48d4-gold);
  margin-bottom: 6px;
}

.framef48d4-panel p {
  font-size: 13px;
  color: #ddd5c2;
  margin-bottom: 8px;
}

/* compact two-column highlight rows */
.framef48d4-hl-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.framef48d4-hl {
  border: 1px solid var(--framef48d4-line-soft);
  border-left: 3px solid var(--framef48d4-amber);
  border-radius: var(--framef48d4-radius-s);
  background: var(--framef48d4-panel);
  padding: 9px 10px;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.framef48d4-hl:hover {
  transform: translateY(-2px);
  border-color: var(--framef48d4-gold);
}

.framef48d4-hl b {
  display: block;
  font-size: 13px;
  color: var(--framef48d4-gold);
  margin-bottom: 3px;
}

.framef48d4-hl span {
  font-size: 11.5px;
  color: var(--framef48d4-muted);
  line-height: 1.55;
  display: block;
}

/* numbered steps */
.framef48d4-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: framef48d4step;
}

.framef48d4-step {
  counter-increment: framef48d4step;
  position: relative;
  padding: 0 0 14px 38px;
  border-left: 1px dashed var(--framef48d4-line);
  margin-left: 12px;
}

.framef48d4-step:last-child {
  padding-bottom: 2px;
  border-left-color: transparent;
}

.framef48d4-step::before {
  content: counter(framef48d4step, decimal-leading-zero);
  position: absolute;
  left: -14px;
  top: 0;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  border: 1px solid var(--framef48d4-gold);
  background: var(--framef48d4-ink);
  color: var(--framef48d4-gold);
  font-family: var(--framef48d4-font-mono);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.framef48d4-step b {
  display: block;
  font-size: 13.5px;
  color: var(--framef48d4-text);
  margin-bottom: 3px;
}

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

/* milestone table */
.framef48d4-tablewrap {
  border: 1px solid var(--framef48d4-line-soft);
  border-radius: var(--framef48d4-radius-m);
  overflow: hidden;
}

.framef48d4-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.framef48d4-table th {
  font-family: var(--framef48d4-font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
  color: var(--framef48d4-amber);
  background: var(--framef48d4-panel);
  padding: 8px 10px;
  border-bottom: 1px solid var(--framef48d4-line);
}

.framef48d4-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--framef48d4-line-soft);
  color: #d9d1bd;
  vertical-align: top;
}

.framef48d4-table tr:last-child td {
  border-bottom: 0;
}

.framef48d4-table td:first-child {
  color: var(--framef48d4-gold);
  font-weight: 700;
  white-space: nowrap;
}

/* term list */
.framef48d4-terms {
  margin: 0;
}

.framef48d4-term {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 10px;
  padding: 9px 2px;
  border-bottom: 1px dashed var(--framef48d4-line-soft);
}

.framef48d4-term:last-child {
  border-bottom: 0;
}

.framef48d4-term dt {
  font-family: var(--framef48d4-font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--framef48d4-gold);
  line-height: 1.5;
}

.framef48d4-term dd {
  margin: 0;
  font-size: 12.5px;
  color: #d5cdb9;
  line-height: 1.6;
}

/* Q&A accordion */
.framef48d4-qa {
  border: 1px solid var(--framef48d4-line-soft);
  border-radius: var(--framef48d4-radius-m);
  background: var(--framef48d4-panel-soft);
  margin-bottom: 8px;
  overflow: hidden;
}

.framef48d4-qa-q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 11px 12px;
  background: none;
  border: 0;
  text-align: left;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--framef48d4-text);
  line-height: 1.5;
}

.framef48d4-qa-q .framef48d4-qa-mark {
  font-family: var(--framef48d4-font-mono);
  color: var(--framef48d4-amber);
  font-size: 13px;
  flex: 0 0 auto;
}

.framef48d4-qa-q .framef48d4-qa-arrow {
  margin-left: auto;
  flex: 0 0 auto;
  color: var(--framef48d4-muted-2);
  transition: transform 0.2s ease;
  font-size: 11px;
}

.framef48d4-qa[data-open="1"] .framef48d4-qa-arrow {
  transform: rotate(180deg);
  color: var(--framef48d4-gold);
}

.framef48d4-qa-a {
  display: none;
  padding: 0 12px 12px 33px;
  font-size: 12.5px;
  color: #d5cdb9;
  line-height: 1.7;
}

.framef48d4-qa[data-open="1"] .framef48d4-qa-a {
  display: block;
}

/* inline promo text link */
.framef48d4-promolink {
  font-family: var(--framef48d4-font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--framef48d4-gold);
  border-bottom: 1px dotted var(--framef48d4-gold);
  background: none;
  border-top: 0;
  border-left: 0;
  border-right: 0;
  padding: 0 1px;
}

.framef48d4-promolink:hover {
  color: #fff3b0;
}

/* ==========================================================================
   Extended footer (home only)
   Order: page directory > brand > promotion shortcuts > conditional note
   ========================================================================== */
.framef48d4-xfoot {
  margin: 30px 0 0;
  border: 1px solid var(--framef48d4-line);
  border-radius: var(--framef48d4-radius-l);
  background: linear-gradient(180deg, #211d15, #17150f);
  padding: 15px 13px 13px;
}

.framef48d4-xfoot-title {
  font-family: var(--framef48d4-font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--framef48d4-amber);
  margin: 0 0 9px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.framef48d4-xfoot-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--framef48d4-line);
}

.framef48d4-xfoot + .framef48d4-xfoot-title {
  margin-top: 18px;
}

.framef48d4-dir {
  display: grid;
  gap: 5px;
  margin-bottom: 6px;
}

.framef48d4-dir a {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 12.5px;
  color: #e3dbc6;
  padding: 7px 9px;
  border: 1px solid var(--framef48d4-line-soft);
  border-radius: var(--framef48d4-radius-s);
}

.framef48d4-dir a:hover {
  border-color: var(--framef48d4-gold);
  color: var(--framef48d4-gold);
  text-decoration: none;
}

.framef48d4-dir a b {
  color: var(--framef48d4-gold);
  font-weight: 700;
}

.framef48d4-dir .framef48d4-dir-arrow {
  margin-left: auto;
  font-family: var(--framef48d4-font-mono);
  color: var(--framef48d4-muted-2);
  font-size: 11px;
}

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

/* horizontal promotion shortcuts (6) */
.framef48d4-shorts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.framef48d4-short {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-height: 64px;
  padding: 9px 4px 7px;
  border: 1px solid var(--framef48d4-line);
  border-radius: var(--framef48d4-radius-m);
  background: var(--framef48d4-panel);
  color: var(--framef48d4-text);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.framef48d4-short:hover {
  transform: translateY(-3px);
  border-color: var(--framef48d4-gold);
  color: var(--framef48d4-gold);
}

.framef48d4-short svg {
  width: 19px;
  height: 19px;
  color: var(--framef48d4-amber);
}

.framef48d4-short:hover svg {
  color: var(--framef48d4-gold);
}

.framef48d4-xfoot-note {
  margin: 12px 0 0;
  padding: 9px 11px;
  border: 1px dashed var(--framef48d4-line);
  border-radius: var(--framef48d4-radius-s);
  font-size: 11px;
  color: var(--framef48d4-muted-2);
  line-height: 1.6;
}

.framef48d4-xfoot-note b {
  color: var(--framef48d4-amber);
}

/* ==========================================================================
   Common footer + bottom tab bar (center-raised)
   ========================================================================== */
.framef48d4-footer {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 var(--framef48d4-gap) calc(var(--framef48d4-tabbar-h) + 18px);
  text-align: center;
}

.framef48d4-footer small {
  display: block;
  font-size: 11px;
  color: var(--framef48d4-muted-2);
  line-height: 1.6;
}

.framef48d4-footer .framef48d4-mono {
  color: var(--framef48d4-muted);
}

.framef48d4-tabbar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: calc(var(--framef48d4-tabbar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  background: linear-gradient(180deg, #1f1c16, #141310);
  border-top: 1px solid var(--framef48d4-line);
  z-index: 55;
}

.framef48d4-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  min-height: 50px;
  padding: 7px 2px 6px;
  background: none;
  border: 0;
  color: var(--framef48d4-muted-2);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: color 0.18s ease, transform 0.18s ease;
}

.framef48d4-tab svg {
  width: 21px;
  height: 21px;
  color: #8d846d;
  transition: transform 0.18s ease;
}

.framef48d4-tab:hover {
  color: var(--framef48d4-gold);
  text-decoration: none;
  transform: translateY(-2px);
}

.framef48d4-tab:hover svg {
  color: var(--framef48d4-gold);
}

.framef48d4-tab-on {
  color: var(--framef48d4-gold);
}

.framef48d4-tab-on svg {
  color: var(--framef48d4-gold);
  transform: translateY(-2px);
}

/* raised center action */
.framef48d4-tab-raise {
  position: relative;
}

.framef48d4-tab-raise::before {
  content: "";
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid var(--framef48d4-line);
  background: #141310;
}

.framef48d4-tab-raise .framef48d4-tab {
  position: absolute;
  left: 50%;
  top: -26px;
  transform: translateX(-50%);
  width: 54px;
  min-height: 54px;
  border-radius: 50%;
  padding: 8px 2px;
  background: linear-gradient(180deg, #ffe14d, var(--framef48d4-gold));
  color: #191400;
  box-shadow: 0 4px 16px rgba(255, 200, 40, 0.32);
  justify-content: center;
}

.framef48d4-tab-raise .framef48d4-tab svg {
  color: #191400;
  margin: 0;
}

.framef48d4-tab-raise .framef48d4-tab:hover {
  transform: translateX(-50%) translateY(-3px);
}

.framef48d4-tab-raise .framef48d4-tab:hover svg {
  color: #191400;
}

/* ==========================================================================
   Utilities / motion / a11y
   ========================================================================== */
.framef48d4-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.framef48d4-up {
  position: fixed;
  right: max(12px, calc(50vw - 215px));
  bottom: calc(var(--framef48d4-tabbar-h) + 16px + env(safe-area-inset-bottom));
  width: 38px;
  height: 38px;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--framef48d4-line);
  background: rgba(26, 26, 26, 0.92);
  color: var(--framef48d4-amber);
  z-index: 50;
}

.framef48d4-up.framef48d4-up-show {
  display: inline-flex;
}

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

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