/* ============================================================
   MPL PH - native-baed39-surface.css
   Mobile-first lobby surface, 320-430px canvas.
   Design direction: tech headings + open body text,
   low-radius sectioned blocks, horizontal icon-name game bars,
   question-driven rhythm, sliding focus indicators,
   solid primary CTA + outlined secondary CTA.
   Palette: #DEB887 (wheat text) / #1C2833 (deep base) / #FFA500 (flame).
   ============================================================ */

/* ---------- tokens ---------- */
:root {
  --framebaed3-base: #1c2833;
  --framebaed3-base-deep: #131b23;
  --framebaed3-panel: #22303d;
  --framebaed3-panel-lift: #27394a;
  --framebaed3-line: #3b5064;
  --framebaed3-line-soft: #2d4051;
  --framebaed3-wheat: #deb887;
  --framebaed3-wheat-dim: #c6a97e;
  --framebaed3-text: #e9dcc2;
  --framebaed3-text-dim: #b8c4cd;
  --framebaed3-flame: #ffa500;
  --framebaed3-flame-deep: #e59400;
  --framebaed3-flame-glow: rgba(255, 165, 0, 0.16);
  --framebaed3-wheat-glow: rgba(222, 184, 135, 0.12);
  --framebaed3-font-head: "Trebuchet MS", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --framebaed3-font-body: "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --framebaed3-font-mono: "Cascadia Mono", Consolas, "SF Mono", ui-monospace, monospace;
  --framebaed3-radius: 3px;
  --framebaed3-topbar-h: 96px;
  --framebaed3-bottomnav-h: 66px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  background: var(--framebaed3-base-deep);
}

body {
  margin: 0 auto;
  max-width: 480px;
  min-height: 100vh;
  background:
    radial-gradient(120% 42% at 50% 0%, #243747 0%, var(--framebaed3-base) 62%),
    var(--framebaed3-base);
  color: var(--framebaed3-text);
  font-family: var(--framebaed3-font-body);
  font-size: 15px;
  line-height: 1.62;
  overflow-x: clip;
}

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

a { color: var(--framebaed3-flame); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--framebaed3-flame);
  outline-offset: 2px;
  border-radius: var(--framebaed3-radius);
}

.framebaed3-sr {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- top bar: compact brand strip ---------- */
.framebaed3-topbar {
  position: fixed;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  z-index: 70;
  background: linear-gradient(180deg, #1a2733 0%, #182430 100%);
  border-bottom: 1px solid var(--framebaed3-line);
}

.framebaed3-toprow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 50px;
  padding: 6px 12px 4px;
}

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

.framebaed3-logo {
  width: 32px; height: 32px;
  border: 1px solid var(--framebaed3-line);
  border-radius: var(--framebaed3-radius);
  background: var(--framebaed3-panel);
  object-fit: cover;
  flex: none;
}

.framebaed3-brandname {
  font-family: var(--framebaed3-font-head);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--framebaed3-wheat);
  white-space: nowrap;
}

.framebaed3-menubtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--framebaed3-line);
  border-radius: var(--framebaed3-radius);
  color: var(--framebaed3-wheat);
  cursor: pointer;
}

.framebaed3-menubtn svg { width: 20px; height: 20px; }

.framebaed3-menubtn[aria-expanded="true"] {
  color: var(--framebaed3-flame);
  border-color: var(--framebaed3-flame);
}

/* action row below brand: Register (solid) + Login (outlined) */
.framebaed3-actionrow {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 8px;
  padding: 0 12px 8px;
}

.framebaed3-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 14px;
  font-family: var(--framebaed3-font-head);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--framebaed3-radius);
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.framebaed3-btn:active { transform: translateY(1px); }

.framebaed3-btn-solid {
  background: linear-gradient(180deg, var(--framebaed3-flame) 0%, var(--framebaed3-flame-deep) 100%);
  border: 1px solid #b26e00;
  color: #241703;
}

.framebaed3-btn-ghost {
  background: transparent;
  border: 1px solid var(--framebaed3-wheat);
  color: var(--framebaed3-wheat);
}

.framebaed3-btn-ghost:hover {
  background: var(--framebaed3-wheat-glow);
  text-decoration: none;
}

/* ---------- slide-up route panel ---------- */
.framebaed3-routeveil {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(8, 13, 18, 0.62);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.framebaed3-routeveil-on { opacity: 1; visibility: visible; }

.framebaed3-routes {
  position: fixed;
  top: var(--framebaed3-topbar-h);
  left: 50%;
  transform: translate(-50%, -14px);
  width: 100%;
  max-width: 480px;
  max-height: calc(88vh - var(--framebaed3-topbar-h));
  overflow-y: auto;
  z-index: 65;
  background: #1e2b37;
  border-bottom: 2px solid var(--framebaed3-flame);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.26s ease, opacity 0.26s ease, visibility 0.26s ease;
}

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

.framebaed3-routelist {
  list-style: none;
  margin: 0;
  padding: 6px 0 12px;
}

.framebaed3-routelist li { margin: 0; }

.framebaed3-routelink {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 8px 16px;
  color: var(--framebaed3-text);
  border-left: 3px solid transparent;
}

.framebaed3-routelink:hover {
  background: var(--framebaed3-wheat-glow);
  text-decoration: none;
}

.framebaed3-routelink-current {
  color: var(--framebaed3-flame);
  border-left-color: var(--framebaed3-flame);
  background: var(--framebaed3-flame-glow);
}

.framebaed3-routetag {
  font-family: var(--framebaed3-font-mono);
  font-size: 11px;
  color: var(--framebaed3-wheat-dim);
  min-width: 22px;
}

.framebaed3-routelink-current .framebaed3-routetag { color: var(--framebaed3-flame); }

.framebaed3-routename { font-size: 15px; font-weight: 600; }

/* ---------- main canvas spacing ---------- */
.framebaed3-main {
  padding: calc(var(--framebaed3-topbar-h) + 12px) 14px calc(var(--framebaed3-bottomnav-h) + 34px);
}

/* ---------- hero ---------- */
.framebaed3-hero {
  padding: 6px 2px 14px;
}

.framebaed3-herokicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--framebaed3-font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--framebaed3-flame);
  border: 1px solid rgba(255, 165, 0, 0.4);
  padding: 3px 9px;
  border-radius: var(--framebaed3-radius);
  background: var(--framebaed3-flame-glow);
}

.framebaed3-hero h1 {
  font-family: var(--framebaed3-font-head);
  font-size: 25px;
  line-height: 1.24;
  letter-spacing: 0.02em;
  color: var(--framebaed3-wheat);
  margin: 10px 0 10px;
}

.framebaed3-hero h1 .framebaed3-h1flame { color: var(--framebaed3-flame); }

.framebaed3-hero p {
  margin: 0 0 10px;
  color: var(--framebaed3-text);
}

.framebaed3-statline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 14px;
}

.framebaed3-stat {
  font-family: var(--framebaed3-font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--framebaed3-wheat-dim);
  border: 1px solid var(--framebaed3-line-soft);
  background: var(--framebaed3-panel);
  padding: 4px 9px;
  border-radius: var(--framebaed3-radius);
}

.framebaed3-stat b { color: var(--framebaed3-wheat); font-weight: 700; }

.framebaed3-ctarow {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 8px;
  margin: 4px 0 6px;
}

/* ---------- banner carousel ---------- */
.framebaed3-bannerview {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--framebaed3-line);
  border-radius: var(--framebaed3-radius);
  background: var(--framebaed3-panel);
  margin: 4px 0 12px;
}

.framebaed3-bannertrack {
  display: flex;
  transition: transform 0.42s ease;
  will-change: transform;
}

.framebaed3-slide {
  position: relative;
  flex: 0 0 100%;
  min-width: 100%;
  display: block;
}

.framebaed3-slide img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.framebaed3-slidecap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px 12px 10px;
  background: linear-gradient(180deg, rgba(19, 27, 35, 0) 0%, rgba(19, 27, 35, 0.92) 78%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

.framebaed3-slidetext strong {
  display: block;
  font-family: var(--framebaed3-font-head);
  font-size: 16px;
  line-height: 1.25;
  color: #fff;
  letter-spacing: 0.02em;
}

.framebaed3-slidetext span {
  display: block;
  font-size: 12px;
  color: var(--framebaed3-wheat);
}

.framebaed3-slidechip {
  flex: none;
  font-family: var(--framebaed3-font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #241703;
  background: var(--framebaed3-flame);
  border: 1px solid #b26e00;
  padding: 7px 12px;
  border-radius: var(--framebaed3-radius);
}

.framebaed3-dots {
  position: absolute;
  top: 8px;
  right: 10px;
  display: flex;
  gap: 6px;
}

.framebaed3-dot {
  width: 22px; height: 6px;
  padding: 0;
  border: 1px solid var(--framebaed3-wheat-dim);
  background: rgba(19, 27, 35, 0.55);
  border-radius: 2px;
  cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.framebaed3-dot-on {
  background: var(--framebaed3-flame);
  border-color: var(--framebaed3-flame);
}

/* ---------- category shortcut strip ---------- */
.framebaed3-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 10px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.framebaed3-strip::-webkit-scrollbar { display: none; }

.framebaed3-chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 7px 13px;
  font-family: var(--framebaed3-font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--framebaed3-wheat);
  background: var(--framebaed3-panel);
  border: 1px solid var(--framebaed3-line-soft);
  border-radius: var(--framebaed3-radius);
  position: relative;
}

.framebaed3-chip::after {
  content: "";
  position: absolute;
  left: 10px; right: 10px; bottom: 3px;
  height: 2px;
  background: var(--framebaed3-flame);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.22s ease;
}

.framebaed3-chip:hover { text-decoration: none; color: #fff; }

.framebaed3-chip:hover::after,
.framebaed3-chip:focus-visible::after { transform: scaleX(1); }

/* ---------- sectioned content blocks ---------- */
.framebaed3-section {
  margin: 22px 0;
  border: 1px solid var(--framebaed3-line-soft);
  border-radius: var(--framebaed3-radius);
  background: linear-gradient(180deg, rgba(39, 57, 74, 0.35) 0%, rgba(34, 48, 61, 0.15) 100%);
  padding: 14px 13px 16px;
}

.framebaed3-secmark {
  display: flex;
  align-items: baseline;
  gap: 9px;
  border-bottom: 1px solid var(--framebaed3-line-soft);
  padding-bottom: 9px;
  margin-bottom: 12px;
}

.framebaed3-secindex {
  font-family: var(--framebaed3-font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--framebaed3-flame);
  letter-spacing: 0.08em;
}

.framebaed3-section h2 {
  font-family: var(--framebaed3-font-head);
  font-size: 18.5px;
  line-height: 1.32;
  letter-spacing: 0.02em;
  color: var(--framebaed3-wheat);
  margin: 0;
}

.framebaed3-section h3 {
  font-family: var(--framebaed3-font-head);
  font-size: 15.5px;
  letter-spacing: 0.04em;
  color: var(--framebaed3-flame);
  margin: 16px 0 6px;
}

.framebaed3-section p { margin: 0 0 10px; }

.framebaed3-section p:last-child { margin-bottom: 0; }

.framebaed3-inlinelink {
  color: var(--framebaed3-flame);
  border-bottom: 1px dashed rgba(255, 165, 0, 0.55);
}

.framebaed3-inlinelink:hover { text-decoration: none; border-bottom-style: solid; }

/* ---------- game shelf header ---------- */
.framebaed3-shelfhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.framebaed3-shelftag {
  font-family: var(--framebaed3-font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--framebaed3-text-dim);
}

.framebaed3-shelftag b {
  color: var(--framebaed3-flame);
  font-weight: 700;
}

/* ---------- game bars: horizontal icon + name strips ---------- */
.framebaed3-games {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin: 10px 0 4px;
}

.framebaed3-gamebar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 5px 8px 5px 5px;
  background: linear-gradient(90deg, var(--framebaed3-panel-lift) 0%, var(--framebaed3-panel) 100%);
  border: 1px solid var(--framebaed3-line-soft);
  border-left: 3px solid #3d5468;
  border-radius: var(--framebaed3-radius);
  color: var(--framebaed3-text);
  position: relative;
  overflow: hidden;
}

.framebaed3-gamebar::after {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--framebaed3-flame);
  transform: translateY(102%);
  transition: transform 0.22s ease;
}

.framebaed3-gamebar:hover,
.framebaed3-gamebar:focus-visible {
  text-decoration: none;
  border-left-color: transparent;
}

.framebaed3-gamebar:hover::after,
.framebaed3-gamebar:focus-visible::after { transform: translateY(0); }

.framebaed3-gamebar img {
  width: 42px; height: 42px;
  flex: none;
  border-radius: var(--framebaed3-radius);
  border: 1px solid var(--framebaed3-line-soft);
  object-fit: cover;
  background: var(--framebaed3-base-deep);
}

.framebaed3-gamename {
  font-family: var(--framebaed3-font-head);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: 0.02em;
  color: var(--framebaed3-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.framebaed3-gamebar:hover .framebaed3-gamename,
.framebaed3-gamebar:focus-visible .framebaed3-gamename { color: #fff; }

/* ---------- milestone rows (achievement meter list) ---------- */
.framebaed3-miles { list-style: none; margin: 10px 0 2px; padding: 0; }

.framebaed3-mile {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--framebaed3-line-soft);
}

.framebaed3-mile:last-child { border-bottom: none; }

.framebaed3-miletag {
  font-family: var(--framebaed3-font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--framebaed3-flame);
  border: 1px solid rgba(255, 165, 0, 0.42);
  background: var(--framebaed3-flame-glow);
  border-radius: var(--framebaed3-radius);
  padding: 3px 4px;
  text-align: center;
  align-self: start;
  margin-top: 2px;
}

.framebaed3-mile b {
  display: block;
  font-family: var(--framebaed3-font-head);
  font-size: 14.5px;
  color: var(--framebaed3-wheat);
  letter-spacing: 0.02em;
}

.framebaed3-mile p { margin: 2px 0 6px; font-size: 13.5px; color: var(--framebaed3-text-dim); }

.framebaed3-meter {
  height: 5px;
  border: 1px solid var(--framebaed3-line);
  border-radius: 2px;
  background: var(--framebaed3-base-deep);
  overflow: hidden;
}

.framebaed3-meter span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--framebaed3-wheat) 0%, var(--framebaed3-flame) 100%);
}

/* ---------- numbered trick list ---------- */
.framebaed3-tricks {
  list-style: none;
  counter-reset: framebaed3-trick;
  margin: 8px 0 0;
  padding: 0;
}

.framebaed3-tricks li {
  counter-increment: framebaed3-trick;
  position: relative;
  padding: 0 0 10px 40px;
}

.framebaed3-tricks li::before {
  content: "T" counter(framebaed3-trick);
  position: absolute;
  left: 0; top: 3px;
  font-family: var(--framebaed3-font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--framebaed3-flame);
  border: 1px solid var(--framebaed3-line);
  background: var(--framebaed3-panel);
  border-radius: var(--framebaed3-radius);
  padding: 3px 6px;
}

.framebaed3-tricks li:not(:last-child) { border-bottom: 1px dashed var(--framebaed3-line-soft); margin-bottom: 10px; }

/* ---------- access checklist ---------- */
.framebaed3-checklist {
  list-style: none;
  margin: 10px 0 2px;
  padding: 0;
}

.framebaed3-checklist li {
  position: relative;
  padding: 7px 0 7px 30px;
  font-size: 14px;
  border-bottom: 1px dashed var(--framebaed3-line-soft);
}

.framebaed3-checklist li:last-child { border-bottom: none; }

.framebaed3-checklist li::before {
  content: "";
  position: absolute;
  left: 2px; top: 13px;
  width: 12px; height: 12px;
  border: 2px solid var(--framebaed3-flame);
  background: var(--framebaed3-flame-glow);
}

/* ---------- payment ledger rows ---------- */
.framebaed3-ledger { margin: 10px 0 4px; border: 1px solid var(--framebaed3-line-soft); }

.framebaed3-ledgerrow {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  padding: 9px 11px;
  border-bottom: 1px solid var(--framebaed3-line-soft);
  background: var(--framebaed3-panel);
}

.framebaed3-ledgerrow:last-child { border-bottom: none; }

.framebaed3-ledgerrow b {
  font-family: var(--framebaed3-font-mono);
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--framebaed3-wheat);
}

.framebaed3-ledgerrow em {
  font-style: normal;
  font-family: var(--framebaed3-font-mono);
  font-size: 11px;
  color: var(--framebaed3-flame);
  border: 1px solid rgba(255, 165, 0, 0.4);
  border-radius: 2px;
  padding: 2px 6px;
  align-self: start;
}

.framebaed3-ledgerrow span { grid-column: 1 / -1; font-size: 13px; color: var(--framebaed3-text-dim); }

/* ---------- Q/A trust blocks ---------- */
.framebaed3-qa {
  border-left: 3px solid var(--framebaed3-flame);
  background: var(--framebaed3-wheat-glow);
  padding: 9px 12px;
  margin: 10px 0;
  border-radius: 0 var(--framebaed3-radius) var(--framebaed3-radius) 0;
}

.framebaed3-qa b {
  display: block;
  font-family: var(--framebaed3-font-head);
  font-size: 14px;
  color: var(--framebaed3-wheat);
  margin-bottom: 2px;
}

.framebaed3-qa p { margin: 0; font-size: 14px; }

/* ---------- step timeline ---------- */
.framebaed3-steps {
  list-style: none;
  counter-reset: framebaed3-step;
  margin: 10px 0 0;
  padding: 0 0 0 0;
}

.framebaed3-steps li {
  counter-increment: framebaed3-step;
  position: relative;
  padding: 0 0 12px 44px;
}

.framebaed3-steps li::before {
  content: counter(framebaed3-step, decimal-leading-zero);
  position: absolute;
  left: 0; top: 1px;
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--framebaed3-font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--framebaed3-flame);
  border: 1px solid var(--framebaed3-line);
  background: var(--framebaed3-panel);
  border-radius: var(--framebaed3-radius);
}

.framebaed3-steps li::after {
  content: "";
  position: absolute;
  left: 15px; top: 36px; bottom: 2px;
  width: 1px;
  background: var(--framebaed3-line);
}

.framebaed3-steps li:last-child { padding-bottom: 0; }
.framebaed3-steps li:last-child::after { display: none; }

.framebaed3-steps b {
  display: block;
  font-family: var(--framebaed3-font-head);
  font-size: 14.5px;
  color: var(--framebaed3-wheat);
}

.framebaed3-steps p, .framebaed3-steps span { font-size: 13.5px; color: var(--framebaed3-text-dim); }

/* ---------- extended footer (home only) ---------- */
.framebaed3-extfoot {
  margin-top: 26px;
  border: 1px solid var(--framebaed3-line);
  border-radius: var(--framebaed3-radius);
  background: #1a2530;
}

.framebaed3-extband {
  padding: 13px 13px 15px;
  border-bottom: 1px solid var(--framebaed3-line-soft);
}

.framebaed3-extband:last-child { border-bottom: none; }

.framebaed3-extband h2,
.framebaed3-extband h3 {
  font-family: var(--framebaed3-font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--framebaed3-flame);
  margin: 0 0 9px;
}

.framebaed3-extband p { margin: 0 0 10px; font-size: 14px; color: var(--framebaed3-text-dim); }

/* promo action rows: icon + text labels */
.framebaed3-fpromo {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 50px;
  padding: 9px 11px;
  margin-bottom: 7px;
  border: 1px solid var(--framebaed3-line-soft);
  border-radius: var(--framebaed3-radius);
  background: var(--framebaed3-panel);
  color: var(--framebaed3-text);
  position: relative;
}

.framebaed3-fpromo:hover { text-decoration: none; border-color: var(--framebaed3-flame); }

.framebaed3-fpromo-lead {
  background: linear-gradient(90deg, rgba(255, 165, 0, 0.18) 0%, var(--framebaed3-panel) 70%);
  border-color: #8a5a06;
}

.framebaed3-fpromo svg { width: 21px; height: 21px; flex: none; color: var(--framebaed3-flame); }

.framebaed3-fpromo-lead svg { color: var(--framebaed3-wheat); }

.framebaed3-fpromo b {
  display: block;
  font-family: var(--framebaed3-font-head);
  font-size: 14.5px;
  color: var(--framebaed3-wheat);
}

.framebaed3-fpromo-lead b { color: #ffd9a0; }

.framebaed3-fpromo span { display: block; font-size: 12px; color: var(--framebaed3-text-dim); }

.framebaed3-fpromo .framebaed3-go {
  margin-left: auto;
  flex: none;
  font-family: var(--framebaed3-font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--framebaed3-flame);
  border: 1px solid rgba(255, 165, 0, 0.45);
  border-radius: 2px;
  padding: 4px 8px;
}

/* page directory grid */
.framebaed3-directory {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.framebaed3-dirlink {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 7px 9px;
  border: 1px solid var(--framebaed3-line-soft);
  border-radius: var(--framebaed3-radius);
  background: var(--framebaed3-panel);
  color: var(--framebaed3-text);
  font-size: 12.5px;
  line-height: 1.3;
}

.framebaed3-dirlink:hover { text-decoration: none; border-color: var(--framebaed3-wheat); color: #fff; }

.framebaed3-dirlink svg { width: 13px; height: 13px; flex: none; color: var(--framebaed3-flame); }

/* ---------- common footer ---------- */
.framebaed3-footer {
  margin-top: 14px;
  padding: 12px 4px 4px;
  border-top: 1px solid var(--framebaed3-line-soft);
  text-align: center;
}

.framebaed3-footer p {
  margin: 0;
  font-family: var(--framebaed3-font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--framebaed3-wheat-dim);
}

/* ---------- fixed bottom navigation band ---------- */
.framebaed3-bottomnav {
  position: fixed;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  z-index: 80;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: linear-gradient(180deg, #1b2833 0%, #16212b 100%);
  border-top: 2px solid transparent;
  border-image: linear-gradient(90deg, var(--framebaed3-wheat), var(--framebaed3-flame), var(--framebaed3-wheat)) 1;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.framebaed3-bnitem {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: var(--framebaed3-bottomnav-h);
  padding: 7px 2px 6px;
  color: var(--framebaed3-wheat-dim);
}

.framebaed3-bnitem svg { width: 22px; height: 22px; }

.framebaed3-bnitem span {
  font-family: var(--framebaed3-font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.72;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.framebaed3-bnitem::before {
  content: "";
  position: absolute;
  top: 0; left: 22%; right: 22%;
  height: 3px;
  background: var(--framebaed3-flame);
  transform: scaleX(0);
  transition: transform 0.24s ease;
}

.framebaed3-bnitem:hover { text-decoration: none; color: var(--framebaed3-wheat); }

.framebaed3-bnitem:hover span { opacity: 1; }

.framebaed3-bnactive { color: var(--framebaed3-flame); }

.framebaed3-bnactive::before { transform: scaleX(1); }

.framebaed3-bnactive svg { color: var(--framebaed3-flame); }

.framebaed3-bnactive span { opacity: 1; color: var(--framebaed3-flame); }

.framebaed3-bnpromo { color: #f7c56b; }

.framebaed3-bnpromo svg { color: var(--framebaed3-flame); }

.framebaed3-bnpromo span { color: #f7c56b; opacity: 0.9; }

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- wider phone canvas ---------- */
@media (min-width: 360px) {
  .framebaed3-hero h1 { font-size: 27px; }
  .framebaed3-section h2 { font-size: 19.5px; }
  .framebaed3-gamename { font-size: 13px; }
}

@media (min-width: 412px) {
  .framebaed3-games { gap: 8px; }
  .framebaed3-gamebar { min-height: 54px; }
}

@media (min-width: 430px) {
  .framebaed3-games { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .framebaed3-directory { gap: 7px; }
  .framebaed3-hero h1 { font-size: 29px; }
  .framebaed3-slide img { aspect-ratio: 16 / 6; }
  .framebaed3-statline { gap: 9px; }
}

/* keep the centered phone canvas on desktop widths */
@media (min-width: 481px) {
  body {
    border-left: 1px solid var(--framebaed3-line);
    border-right: 1px solid var(--framebaed3-line);
    box-shadow: 0 0 44px rgba(0, 0, 0, 0.55);
  }
}
