/* ============================================================
   888x.homes - surface-compact-757c9f.css
   Mobile-first stylesheet for the 320-430px phone canvas.
   All classes use the framec9f1c- prefix.
   Palette: #F0FDFF / #2C2C2C / #ECF0F1 / #2C3E50 / #BDC3C7
   Design tone: geometric headings + neutral body, pill buttons,
   squarish cards, pure-image game cards, intro-then-sections
   rhythm, icon micro-state motion only.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --framec9f1c-ink: #F0FDFF;            /* light text on dark */
  --framec9f1c-bg: #2C2C2C;             /* deep charcoal canvas */
  --framec9f1c-panel: #2C3E50;          /* raised panel surface */
  --framec9f1c-line: #BDC3C7;           /* silver hairlines */
  --framec9f1c-soft: #ECF0F1;           /* soft light gray */
  --framec9f1c-line-weak: rgba(189, 195, 199, 0.22);
  --framec9f1c-line-mid: rgba(189, 195, 199, 0.4);
  --framec9f1c-veil: rgba(44, 62, 80, 0.65);
  --framec9f1c-shade: rgba(0, 0, 0, 0.45);
  --framec9f1c-font-head: "Trebuchet MS", "Segoe UI", Tahoma, sans-serif;
  --framec9f1c-font-body: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --framec9f1c-r-card: 8px;             /* squarish cards */
  --framec9f1c-r-block: 10px;
  --framec9f1c-r-pill: 999px;           /* round buttons */
  --framec9f1c-head-h: 60px;
  --framec9f1c-bottomnav-h: 66px;
  --framec9f1c-canvas: 480px;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background: var(--framec9f1c-bg);
  color: var(--framec9f1c-ink);
  font-family: var(--framec9f1c-font-body);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

a { color: var(--framec9f1c-ink); text-decoration: none; }

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

/* ---------- Phone canvas (centered on wide screens) ---------- */
.framec9f1c-page {
  position: relative;
  width: 100%;
  max-width: var(--framec9f1c-canvas);
  margin: 0 auto;
  min-height: 100vh;
  background: var(--framec9f1c-bg);
  box-shadow: 0 0 0 1px var(--framec9f1c-line-weak), 0 0 60px var(--framec9f1c-shade);
  overflow-x: clip;
}

.framec9f1c-skip {
  position: absolute;
  top: -48px;
  left: 12px;
  z-index: 120;
  padding: 10px 16px;
  background: var(--framec9f1c-ink);
  color: var(--framec9f1c-bg);
  border-radius: var(--framec9f1c-r-pill);
  font-weight: 700;
  font-size: 13px;
  transition: top 0.15s ease;
}

.framec9f1c-skip:focus { top: 8px; }

/* ---------- Fixed top header (edge-aligned functional bar) ---------- */
.framec9f1c-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--framec9f1c-canvas);
  height: var(--framec9f1c-head-h);
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 12px;
  background: rgba(44, 44, 44, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--framec9f1c-line-weak);
}

/* Brand zone: real logo image + site name only */
.framec9f1c-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.framec9f1c-logo {
  width: 38px;
  height: 38px;
  border-radius: var(--framec9f1c-r-card);
  border: 1px solid var(--framec9f1c-line-mid);
  object-fit: cover;
  flex: 0 0 auto;
}

.framec9f1c-brand-name {
  font-family: var(--framec9f1c-font-head);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--framec9f1c-ink);
  white-space: nowrap;
}

/* Header action zone */
.framec9f1c-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
}

/* CTA shapes: solid primary + outlined secondary */
.framec9f1c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: var(--framec9f1c-r-pill);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  transition: transform 0.12s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.framec9f1c-header .framec9f1c-btn { padding: 8px 11px; font-size: 12px; }

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

.framec9f1c-btn-solid {
  background: var(--framec9f1c-ink);
  color: var(--framec9f1c-bg);
}

.framec9f1c-btn-ghost {
  border: 1.5px solid var(--framec9f1c-line);
  color: var(--framec9f1c-ink);
  background: transparent;
}

/* Burger: icon micro-state morph to X */
.framec9f1c-burger {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--framec9f1c-r-card);
  border: 1px solid var(--framec9f1c-line-weak);
}

.framec9f1c-burger svg { width: 22px; height: 22px; stroke: var(--framec9f1c-ink); }

.framec9f1c-burger-open svg { transform: rotate(90deg); }

.framec9f1c-burger svg,
.framec9f1c-burger .framec9f1c-burger-x { transition: transform 0.2s ease, opacity 0.2s ease; }

.framec9f1c-burger .framec9f1c-burger-x { opacity: 0; }

.framec9f1c-burger-open .framec9f1c-burger-x { opacity: 1; }

/* ---------- Full-height menu layer ---------- */
.framec9f1c-scrim {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: var(--framec9f1c-shade);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.framec9f1c-scrim-show { opacity: 1; visibility: visible; }

.framec9f1c-menu {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(calc(-50% + 100%));
  width: 100%;
  max-width: var(--framec9f1c-canvas);
  z-index: 100;
  background: var(--framec9f1c-bg);
  border-left: 1px solid var(--framec9f1c-line-weak);
  display: flex;
  flex-direction: column;
  transition: transform 0.26s ease;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.framec9f1c-menu-show { transform: translateX(-50%); }

.framec9f1c-menu-top {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--framec9f1c-bg);
  border-bottom: 1px solid var(--framec9f1c-line-weak);
}

.framec9f1c-menu-title {
  font-family: var(--framec9f1c-font-head);
  font-size: 17px;
  font-weight: 700;
}

.framec9f1c-menu-close {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--framec9f1c-line-weak);
  border-radius: var(--framec9f1c-r-card);
}

.framec9f1c-menu-close svg { width: 20px; height: 20px; stroke: var(--framec9f1c-ink); }

.framec9f1c-menu-group { padding: 16px 16px 6px; }

.framec9f1c-menu-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--framec9f1c-line);
  margin-bottom: 4px;
}

.framec9f1c-menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
  padding: 12px 2px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--framec9f1c-soft);
  border-bottom: 1px solid rgba(189, 195, 199, 0.12);
  transition: color 0.15s ease;
}

.framec9f1c-menu-link .framec9f1c-menu-note {
  font-size: 11.5px;
  font-weight: 400;
  color: var(--framec9f1c-line);
  text-align: right;
  flex: 1;
  margin-left: 10px;
}

.framec9f1c-menu-link:active { color: var(--framec9f1c-ink); }

.framec9f1c-menu-link svg {
  width: 16px;
  height: 16px;
  stroke: var(--framec9f1c-line);
  flex: 0 0 auto;
}

.framec9f1c-menu-cta {
  display: flex;
  gap: 10px;
  padding: 20px 16px 28px;
  margin-top: auto;
}

.framec9f1c-menu-cta .framec9f1c-btn { flex: 1; }

/* ---------- Main flow ---------- */
.framec9f1c-main {
  padding-top: var(--framec9f1c-head-h);
  /* keep clear of the fixed bottom navigation */
  padding-bottom: calc(var(--framec9f1c-bottomnav-h) + 26px + env(safe-area-inset-bottom, 0px));
}

.framec9f1c-section { padding: 20px 12px 4px; }

.framec9f1c-section + .framec9f1c-section { border-top: 1px solid rgba(189, 195, 199, 0.1); }

.framec9f1c-h2 {
  font-family: var(--framec9f1c-font-head);
  font-size: 17.5px;
  line-height: 1.32;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--framec9f1c-ink);
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.framec9f1c-h2::after {
  content: "";
  flex: 0 0 26px;
  height: 3px;
  border-radius: 2px;
  background: var(--framec9f1c-ink);
  opacity: 0.85;
  align-self: center;
}

.framec9f1c-chip {
  font-family: var(--framec9f1c-font-body);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--framec9f1c-line);
  border: 1px solid var(--framec9f1c-line-mid);
  border-radius: var(--framec9f1c-r-pill);
  padding: 2px 9px;
  white-space: nowrap;
}

.framec9f1c-lead {
  font-size: 13px;
  color: var(--framec9f1c-soft);
  line-height: 1.62;
  margin: 6px 0 14px;
}

.framec9f1c-lead strong { color: var(--framec9f1c-ink); }

.framec9f1c-lead a,
.framec9f1c-note a,
.framec9f1c-answer a {
  color: var(--framec9f1c-ink);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--framec9f1c-line-mid);
  text-underline-offset: 3px;
}

/* ---------- Hero carousel ---------- */
.framec9f1c-hero { padding: 10px 12px 2px; }

.framec9f1c-carousel {
  position: relative;
  border-radius: var(--framec9f1c-r-block);
  overflow: hidden;
  border: 1px solid var(--framec9f1c-line-weak);
  background: var(--framec9f1c-panel);
  touch-action: pan-y;
}

.framec9f1c-track {
  display: flex;
  transition: transform 0.45s ease;
}

.framec9f1c-slide { flex: 0 0 100%; position: relative; }

.framec9f1c-slide-btn {
  display: block;
  width: 100%;
  text-align: left;
}

.framec9f1c-slide-btn img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}

.framec9f1c-slide-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  padding: 30px 12px 12px;
  background: linear-gradient(180deg, rgba(44, 44, 44, 0) 0%, rgba(44, 44, 44, 0.88) 78%);
}

.framec9f1c-slide-txt {
  font-family: var(--framec9f1c-font-head);
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--framec9f1c-ink);
  max-width: 74%;
}

.framec9f1c-slide-cta {
  flex: 0 0 auto;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: var(--framec9f1c-r-pill);
  background: var(--framec9f1c-ink);
  color: var(--framec9f1c-bg);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.framec9f1c-dots {
  position: absolute;
  right: 10px;
  top: 10px;
  display: flex;
  gap: 6px;
  z-index: 5;
}

.framec9f1c-dot {
  width: 9px;
  height: 9px;
  border-radius: var(--framec9f1c-r-pill);
  background: var(--framec9f1c-line);
  opacity: 0.55;
  transition: width 0.2s ease, opacity 0.2s ease;
}

.framec9f1c-dot-active { width: 20px; opacity: 1; background: var(--framec9f1c-ink); }

/* ---------- Direct answer panel ---------- */
.framec9f1c-answer {
  background: var(--framec9f1c-panel);
  border: 1px solid var(--framec9f1c-line-weak);
  border-left: 3px solid var(--framec9f1c-ink);
  border-radius: var(--framec9f1c-r-block);
  padding: 14px 14px 16px;
  margin-bottom: 4px;
}

.framec9f1c-answer p {
  font-size: 13px;
  color: var(--framec9f1c-soft);
  line-height: 1.65;
}

.framec9f1c-answer p + p { margin-top: 8px; }

.framec9f1c-answer-row {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.framec9f1c-answer-row .framec9f1c-btn { flex: 1; }

/* ---------- Game grid: pure image cards with short names ---------- */
.framec9f1c-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 8px;
}

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

/* Wider phone canvas up to 430px: slightly airier sections and larger slide text */
@media (min-width: 430px) {
  .framec9f1c-section { padding: 24px 16px 6px; }

  .framec9f1c-hero { padding: 12px 16px 2px; }

  .framec9f1c-slide-txt { font-size: 16px; }

  .framec9f1c-game-name { font-size: 11.5px; }

  .framec9f1c-lead { font-size: 13.5px; }
}

.framec9f1c-game {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  text-align: center;
}

.framec9f1c-game-img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--framec9f1c-r-card);
  overflow: hidden;
  background: var(--framec9f1c-panel);
  border: 1px solid var(--framec9f1c-line-weak);
}

.framec9f1c-game-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.18s ease;
}

/* Motion budget: image micro-lift on press only */
.framec9f1c-game:active .framec9f1c-game-img img { transform: scale(1.07); }

.framec9f1c-game-name {
  font-size: 11px;
  line-height: 1.3;
  color: var(--framec9f1c-soft);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: break-word;
  min-height: 2.6em;
}

.framec9f1c-game:active .framec9f1c-game-name,
.framec9f1c-game:focus-visible .framec9f1c-game-name { color: var(--framec9f1c-ink); }

/* ---------- Achievement ladder ---------- */
.framec9f1c-ladder {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

.framec9f1c-ladder li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  align-items: start;
}

.framec9f1c-ladder-mark {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--framec9f1c-line-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--framec9f1c-font-head);
  font-size: 13px;
  font-weight: 700;
  color: var(--framec9f1c-line);
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.framec9f1c-ladder-done .framec9f1c-ladder-mark {
  background: var(--framec9f1c-ink);
  border-color: var(--framec9f1c-ink);
  color: var(--framec9f1c-bg);
}

.framec9f1c-ladder h3 {
  font-family: var(--framec9f1c-font-head);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
}

.framec9f1c-ladder p {
  font-size: 12.5px;
  color: var(--framec9f1c-line);
  line-height: 1.55;
}

/* ---------- Play style comparison ---------- */
.framec9f1c-styles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.framec9f1c-style {
  background: var(--framec9f1c-panel);
  border: 1px solid var(--framec9f1c-line-weak);
  border-radius: var(--framec9f1c-r-card);
  padding: 12px;
}

.framec9f1c-style h3 {
  font-family: var(--framec9f1c-font-head);
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.framec9f1c-style h3 svg {
  width: 16px;
  height: 16px;
  stroke: var(--framec9f1c-ink);
  flex: 0 0 auto;
}

.framec9f1c-style ul { list-style: none; }

.framec9f1c-style li {
  font-size: 12px;
  color: var(--framec9f1c-soft);
  line-height: 1.5;
  padding-left: 14px;
  position: relative;
  margin-bottom: 4px;
}

.framec9f1c-style li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 2px;
  border-radius: 1px;
  background: var(--framec9f1c-line);
}

/* ---------- Winner feed ---------- */
.framec9f1c-feed {
  border: 1px solid var(--framec9f1c-line-weak);
  border-radius: var(--framec9f1c-r-block);
  background: rgba(44, 62, 80, 0.35);
  padding: 2px 12px;
  margin-top: 10px;
}

.framec9f1c-feed-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(189, 195, 199, 0.1);
}

.framec9f1c-feed-row:last-child { border-bottom: 0; }

.framec9f1c-feed-ava {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--framec9f1c-panel);
  border: 1px solid var(--framec9f1c-line-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--framec9f1c-font-head);
  font-size: 12px;
  font-weight: 700;
  color: var(--framec9f1c-soft);
  flex: 0 0 auto;
}

.framec9f1c-feed-mid { flex: 1; min-width: 0; }

.framec9f1c-feed-name { font-size: 12.5px; font-weight: 700; color: var(--framec9f1c-soft); }

.framec9f1c-feed-game { font-size: 11px; color: var(--framec9f1c-line); }

.framec9f1c-feed-amount {
  font-family: var(--framec9f1c-font-head);
  font-size: 13px;
  font-weight: 700;
  color: var(--framec9f1c-ink);
  white-space: nowrap;
}

.framec9f1c-note {
  font-size: 11.5px;
  color: var(--framec9f1c-line);
  line-height: 1.55;
  margin-top: 10px;
}

/* ---------- FAQ accordions ---------- */
.framec9f1c-faq { margin-top: 8px; }

.framec9f1c-faq-item { border-bottom: 1px solid rgba(189, 195, 199, 0.12); }

.framec9f1c-faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
  padding: 12px 2px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--framec9f1c-soft);
  -webkit-tap-highlight-color: transparent;
}

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

.framec9f1c-faq-item summary::after {
  content: "+";
  font-family: var(--framec9f1c-font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--framec9f1c-line);
  transition: transform 0.18s ease, color 0.18s ease;
  flex: 0 0 auto;
}

.framec9f1c-faq-item[open] summary::after {
  content: "\2013";
  color: var(--framec9f1c-ink);
}

.framec9f1c-faq-item[open] summary { color: var(--framec9f1c-ink); }

.framec9f1c-faq-item .framec9f1c-faq-body {
  padding: 0 2px 14px;
  font-size: 12.5px;
  color: var(--framec9f1c-line);
  line-height: 1.62;
}

/* ---------- Extended footer (sectioned list) ---------- */
.framec9f1c-xfoot { padding: 22px 12px 8px; border-top: 1px solid var(--framec9f1c-line-weak); }

.framec9f1c-xfoot-block { padding: 12px 0; border-bottom: 1px solid rgba(189, 195, 199, 0.1); }

.framec9f1c-xfoot-block:last-child { border-bottom: 0; }

.framec9f1c-xfoot-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.framec9f1c-xfoot-brand img {
  width: 34px;
  height: 34px;
  border-radius: var(--framec9f1c-r-card);
  border: 1px solid var(--framec9f1c-line-mid);
}

.framec9f1c-xfoot-brand span {
  font-family: var(--framec9f1c-font-head);
  font-size: 17px;
  font-weight: 700;
}

.framec9f1c-xfoot-brand p {
  font-size: 12.5px;
  color: var(--framec9f1c-soft);
  line-height: 1.6;
}

.framec9f1c-xfoot-h {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--framec9f1c-line);
  margin: 14px 0 6px;
}

/* Promotion action list (4 entries, short labels) */
.framec9f1c-promo-list { display: flex; flex-direction: column; }

.framec9f1c-promo-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
  padding: 12px 4px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--framec9f1c-soft);
  border-bottom: 1px solid rgba(189, 195, 199, 0.1);
  text-align: left;
}

.framec9f1c-promo-item:last-child { border-bottom: 0; }

.framec9f1c-promo-item span:first-child { display: flex; align-items: center; gap: 10px; }

.framec9f1c-promo-item svg { width: 18px; height: 18px; stroke: var(--framec9f1c-ink); }

.framec9f1c-promo-item:active { color: var(--framec9f1c-ink); }

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

.framec9f1c-directory a {
  font-size: 12.5px;
  color: var(--framec9f1c-soft);
  padding: 9px 0;
  line-height: 1.4;
  border-bottom: 1px solid rgba(189, 195, 199, 0.1);
}

.framec9f1c-directory a:active { color: var(--framec9f1c-ink); }

/* ---------- Common footer ---------- */
.framec9f1c-footer {
  padding: 18px 12px 10px;
  text-align: center;
  border-top: 1px solid rgba(189, 195, 199, 0.1);
}

.framec9f1c-footer p {
  font-size: 11.5px;
  color: var(--framec9f1c-line);
  line-height: 1.6;
}

/* ---------- Fixed mobile bottom nav (center-raised) ---------- */
.framec9f1c-bottomnav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--framec9f1c-canvas);
  height: calc(var(--framec9f1c-bottomnav-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  z-index: 80;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  background: rgba(44, 44, 44, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--framec9f1c-line-weak);
}

.framec9f1c-bn-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  height: var(--framec9f1c-bottomnav-h);
  padding: 9px 2px 7px;
  color: var(--framec9f1c-line);
  min-width: 44px;
}

.framec9f1c-bn-item svg { width: 22px; height: 22px; stroke: currentColor; transition: transform 0.18s ease; }

.framec9f1c-bn-item:active svg { transform: translateY(-2px); }

/* Micro-interaction: label reveal on active */
.framec9f1c-bn-label {
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  opacity: 0.75;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

/* Active state: contrast inversion chip */
.framec9f1c-bn-active {
  color: var(--framec9f1c-bg);
}

.framec9f1c-bn-active svg { stroke: var(--framec9f1c-bg); }

.framec9f1c-bn-active .framec9f1c-bn-label { opacity: 1; }

.framec9f1c-bn-active::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 58px;
  border-radius: var(--framec9f1c-r-pill);
  background: var(--framec9f1c-ink);
  z-index: -1;
}

/* Raised center promo button */
.framec9f1c-bn-raise .framec9f1c-bn-orb {
  width: 54px;
  height: 54px;
  margin-top: -30px;
  border-radius: 50%;
  background: var(--framec9f1c-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45), 0 0 0 4px rgba(44, 44, 44, 0.9);
  transition: transform 0.18s ease;
}

.framec9f1c-bn-raise:active .framec9f1c-bn-orb { transform: scale(0.93); }

.framec9f1c-bn-raise .framec9f1c-bn-orb svg { width: 26px; height: 26px; stroke: var(--framec9f1c-bg); }

.framec9f1c-bn-raise .framec9f1c-bn-label { color: var(--framec9f1c-ink); opacity: 0.95; }

/* ---------- Utility ---------- */
.framec9f1c-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;
}

/* ---------- Reduced motion ---------- */
/* ---------- Help pages: distinct reading layouts ---------- */
.framec9f1c-help-main { padding-top: var(--framec9f1c-head-h); }
.framec9f1c-help-hero { padding: 20px 12px 14px; border-bottom: 1px solid var(--framec9f1c-line-weak); }
.framec9f1c-help-kicker { color: var(--framec9f1c-line); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 8px; }
.framec9f1c-help-title { font-family: var(--framec9f1c-font-head); font-size: 25px; line-height: 1.18; letter-spacing: -.02em; margin-bottom: 10px; }
.framec9f1c-help-intro { color: var(--framec9f1c-soft); font-size: 13.5px; line-height: 1.68; }
.framec9f1c-help-rail { display: grid; gap: 10px; padding: 16px 12px 4px; }
.framec9f1c-help-rail a { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border: 1px solid var(--framec9f1c-line-weak); border-radius: var(--framec9f1c-r-card); background: var(--framec9f1c-panel); font-weight: 700; font-size: 12.5px; }
.framec9f1c-help-rail a::after { content: "→"; color: var(--framec9f1c-line); }
.framec9f1c-help-block { padding: 18px 12px 4px; }
.framec9f1c-help-block + .framec9f1c-help-block { border-top: 1px solid rgba(189,195,199,.1); }
.framec9f1c-help-heading { font-family: var(--framec9f1c-font-head); font-size: 18px; line-height: 1.3; margin-bottom: 8px; }
.framec9f1c-help-block p { color: var(--framec9f1c-soft); font-size: 13px; line-height: 1.68; margin-bottom: 9px; }
.framec9f1c-help-block p:last-child { margin-bottom: 0; }
.framec9f1c-help-callout { border: 1px solid var(--framec9f1c-line-mid); border-radius: var(--framec9f1c-r-block); padding: 13px; background: rgba(44,62,80,.5); }
.framec9f1c-help-callout strong { display: block; font-family: var(--framec9f1c-font-head); font-size: 15px; margin-bottom: 5px; }
.framec9f1c-help-list { list-style: none; display: grid; gap: 9px; margin-top: 10px; }
.framec9f1c-help-list li { position: relative; padding: 10px 10px 10px 31px; border-left: 2px solid var(--framec9f1c-line-mid); color: var(--framec9f1c-soft); font-size: 12.5px; line-height: 1.55; }
.framec9f1c-help-list li::before { content: attr(data-step); position: absolute; left: 8px; top: 10px; color: var(--framec9f1c-ink); font-weight: 700; }
.framec9f1c-help-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 12px; }
.framec9f1c-help-table th, .framec9f1c-help-table td { padding: 9px 6px; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(189,195,199,.16); }
.framec9f1c-help-table th { color: var(--framec9f1c-ink); font-family: var(--framec9f1c-font-head); font-size: 11px; }
.framec9f1c-help-table td { color: var(--framec9f1c-soft); line-height: 1.5; }
.framec9f1c-help-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.framec9f1c-help-actions .framec9f1c-btn { flex: 1 1 135px; }
.framec9f1c-help-mark { color: var(--framec9f1c-line); font-size: 12px; letter-spacing: .03em; }
.framec9f1c-review-score { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 13px 0 2px; }
.framec9f1c-review-score div { border-top: 2px solid var(--framec9f1c-ink); padding: 9px 0 2px; }
.framec9f1c-review-score b { display: block; font-family: var(--framec9f1c-font-head); font-size: 20px; }
.framec9f1c-review-score span { color: var(--framec9f1c-line); font-size: 11px; }
.framec9f1c-review-columns { display: grid; gap: 9px; margin-top: 10px; }
.framec9f1c-review-columns article { padding: 12px; border: 1px solid var(--framec9f1c-line-weak); border-radius: var(--framec9f1c-r-card); }
.framec9f1c-review-columns h3 { font-family: var(--framec9f1c-font-head); font-size: 14px; margin-bottom: 5px; }
.framec9f1c-review-columns p { font-size: 12.5px; margin: 0; }
.framec9f1c-quote { margin: 10px 0 0; padding: 13px 13px 13px 15px; border-left: 3px solid var(--framec9f1c-ink); color: var(--framec9f1c-soft); font-size: 13px; line-height: 1.65; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
