/* ============================================================
   KCJ (kcj.homes) mobile-first stylesheet
   Canvas: 320-430px phone frame, centered on wide screens
   Language of audience: Vietnamese. Comments: English only.
   ============================================================ */

/* ---------- design tokens ---------- */
:root {
  --framed5b8b-ink: #1a1a1a;          /* base canvas */
  --framed5b8b-void: #0f0e0d;         /* page background outside canvas */
  --framed5b8b-panel: #201d1b;        /* raised surface */
  --framed5b8b-panel-2: #262220;      /* hover surface */
  --framed5b8b-line: #3b352f;         /* stroke-dominant borders */
  --framed5b8b-line-soft: #2e2926;
  --framed5b8b-coral: #ff7f50;        /* brand accent */
  --framed5b8b-coral-deep: #e2603a;
  --framed5b8b-coral-tint: rgba(255, 127, 80, 0.14);
  --framed5b8b-text: #f4ede5;
  --framed5b8b-muted: #b4a99d;
  --framed5b8b-faint: #877d73;
  --framed5b8b-good: #ffd39b;
  --framed5b8b-font-head: "Be Vietnam Pro", "Segoe UI", Verdana, sans-serif;
  --framed5b8b-font-body: "Inter", "Segoe UI", Tahoma, sans-serif;
  --framed5b8b-r: 8px;                /* restrained radius */
  --framed5b8b-r-lg: 12px;
  --framed5b8b-header-h: 58px;
  --framed5b8b-bnav-h: 64px;
}

/* ---------- reset (scoped, small) ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--framed5b8b-void);
  color: var(--framed5b8b-text);
  font-family: var(--framed5b8b-font-body);
  font-size: 14px;
  line-height: 1.55;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--framed5b8b-coral); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--framed5b8b-coral); outline-offset: 2px; border-radius: 4px; }

/* ---------- phone canvas ---------- */
.framed5b8b-page {
  position: relative;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--framed5b8b-ink);
  box-shadow: 0 0 0 1px #000, 0 0 44px rgba(0, 0, 0, 0.55);
  overflow-x: clip;
}
.framed5b8b-main {
  padding: calc(var(--framed5b8b-header-h) + 10px) 12px
           calc(var(--framed5b8b-bnav-h) + 34px);
}
.framed5b8b-sr {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ============================================================
   Top bar: logo-led action strip
   ============================================================ */
.framed5b8b-header {
  position: fixed;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px;
  height: var(--framed5b8b-header-h);
  display: flex; align-items: center; gap: 8px;
  padding: 0 10px;
  background: rgba(24, 21, 19, 0.94);
  border-bottom: 1px solid var(--framed5b8b-line);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 60;
}
.framed5b8b-brand {
  display: flex; align-items: center; gap: 8px;
  min-width: 0; flex: 0 1 auto;
}
.framed5b8b-logo {
  width: 36px; height: 36px;
  border-radius: var(--framed5b8b-r);
  border: 1px solid var(--framed5b8b-line);
  object-fit: cover;
  background: var(--framed5b8b-panel);
}
.framed5b8b-brandname {
  font-family: var(--framed5b8b-font-head);
  font-size: 20px; font-weight: 800; letter-spacing: 0.06em;
  color: var(--framed5b8b-text);
  white-space: nowrap;
}
.framed5b8b-hacts {
  margin-left: auto;
  display: flex; align-items: center; gap: 6px;
}

/* compact dual CTA group */
.framed5b8b-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--framed5b8b-r);
  font-family: var(--framed5b8b-font-head);
  font-weight: 700; font-size: 13.5px; line-height: 1;
  border: 1px solid transparent;
  transition: background-color 0.18s ease, color 0.18s ease,
              border-color 0.18s ease, transform 0.12s ease;
}
.framed5b8b-btn:active { transform: scale(0.97); }
.framed5b8b-btn--solid {
  background: var(--framed5b8b-coral);
  color: #231108;
  border-color: var(--framed5b8b-coral);
}
.framed5b8b-btn--solid:hover { background: var(--framed5b8b-coral-deep); text-decoration: none; }
.framed5b8b-btn--ghost {
  background: transparent;
  color: var(--framed5b8b-coral);
  border-color: var(--framed5b8b-coral);
}
.framed5b8b-btn--ghost:hover { background: var(--framed5b8b-coral-tint); text-decoration: none; }
.framed5b8b-btn--mini { min-height: 44px; padding: 0 10px; font-size: 12.5px; }
.framed5b8b-menubtn {
  width: 44px; height: 44px; flex: 0 0 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--framed5b8b-line);
  border-radius: var(--framed5b8b-r);
  background: var(--framed5b8b-panel);
}
.framed5b8b-menubtn:hover { border-color: var(--framed5b8b-coral); }
.framed5b8b-menubtn svg { width: 20px; height: 20px; stroke: var(--framed5b8b-text); }

/* ============================================================
   Sectioned menu sheet (opens from the top bar)
   ============================================================ */
.framed5b8b-sheet {
  position: fixed;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px;
  max-height: 100vh;
  background: #1c1917;
  border-bottom: 1px solid var(--framed5b8b-line);
  z-index: 70;
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transform: translateX(-50%) translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.framed5b8b-sheet.framed5b8b-is-open {
  visibility: visible; opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.framed5b8b-sheet-backdrop {
  position: fixed; inset: 0;
  background: rgba(8, 7, 6, 0.6);
  z-index: 65;
  opacity: 0; visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s;
}
.framed5b8b-sheet-backdrop.framed5b8b-is-open { opacity: 1; visibility: visible; }
.framed5b8b-sheet-head {
  position: sticky; top: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px;
  background: #1c1917;
  border-bottom: 1px solid var(--framed5b8b-line-soft);
}
.framed5b8b-sheet-title {
  font-family: var(--framed5b8b-font-head);
  font-size: 16px; font-weight: 800; letter-spacing: 0.02em;
}
.framed5b8b-sheet-close {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--framed5b8b-line);
  border-radius: var(--framed5b8b-r);
}
.framed5b8b-sheet-close:hover { border-color: var(--framed5b8b-coral); }
.framed5b8b-sheet-close svg { width: 18px; height: 18px; stroke: var(--framed5b8b-text); }
.framed5b8b-sheet-group { padding: 12px 14px 4px; }
.framed5b8b-sheet-label {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--framed5b8b-faint);
  margin-bottom: 8px;
}
.framed5b8b-sheet-list {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.framed5b8b-sheet-link {
  display: flex; align-items: center; gap: 8px;
  min-height: 46px;
  padding: 8px 10px;
  border: 1px solid var(--framed5b8b-line-soft);
  border-radius: var(--framed5b8b-r);
  background: var(--framed5b8b-panel);
  color: var(--framed5b8b-text);
  font-weight: 600; font-size: 13px;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}
.framed5b8b-sheet-link:hover { border-color: var(--framed5b8b-coral); text-decoration: none; }
.framed5b8b-sheet-link svg {
  width: 17px; height: 17px; flex: 0 0 17px;
  fill: var(--framed5b8b-coral);
}
.framed5b8b-sheet-foot {
  display: flex; gap: 8px;
  padding: 14px;
  border-top: 1px solid var(--framed5b8b-line-soft);
  margin-top: 10px;
}
.framed5b8b-sheet-foot .framed5b8b-btn { flex: 1; }

/* ============================================================
   Hero heading + promo carousel
   ============================================================ */
.framed5b8b-herohead { padding: 2px 2px 12px; }
.framed5b8b-kicker {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--framed5b8b-coral);
  border: 1px solid var(--framed5b8b-line);
  border-radius: 999px;
  padding: 4px 10px;
  margin-bottom: 10px;
  background: var(--framed5b8b-panel);
}
.framed5b8b-h1 {
  font-family: var(--framed5b8b-font-head);
  font-size: 21px; line-height: 1.3; font-weight: 800;
  letter-spacing: -0.01em;
}
.framed5b8b-lede {
  margin-top: 8px;
  color: var(--framed5b8b-muted);
  font-size: 13.5px;
}

.framed5b8b-slide-wrap {
  position: relative;
  border: 1px solid var(--framed5b8b-line);
  border-radius: var(--framed5b8b-r-lg);
  overflow: hidden;
  background: var(--framed5b8b-panel);
}
.framed5b8b-track {
  display: flex;
  width: 100%;
  transition: transform 0.45s cubic-bezier(0.33, 0.9, 0.3, 1);
}
.framed5b8b-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  display: block;
  text-align: left;
}
.framed5b8b-slide img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.framed5b8b-slide-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 10px;
  padding: 26px 12px 10px;
  background: linear-gradient(180deg, rgba(15, 14, 13, 0) 0%, rgba(15, 14, 13, 0.88) 78%);
}
.framed5b8b-slide-txt {
  font-family: var(--framed5b8b-font-head);
  font-size: 14.5px; font-weight: 700; line-height: 1.3;
  color: var(--framed5b8b-text);
}
.framed5b8b-slide-cta {
  flex: 0 0 auto;
  font-size: 11.5px; font-weight: 800;
  color: #231108;
  background: var(--framed5b8b-coral);
  border-radius: 999px;
  padding: 7px 12px;
  white-space: nowrap;
}
.framed5b8b-dots {
  position: absolute; left: 0; right: 0; bottom: 8px;
  display: flex; justify-content: center; gap: 7px;
  z-index: 2;
}
.framed5b8b-dot {
  width: 8px; height: 8px; border-radius: 50%;
  border: 1px solid var(--framed5b8b-coral);
  background: transparent;
  padding: 0;
  transition: background-color 0.18s ease;
}
.framed5b8b-dot.framed5b8b-is-on { background: var(--framed5b8b-coral); }

/* quick fact strip under hero */
.framed5b8b-strip {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 12px 0 4px;
}
.framed5b8b-strip-item {
  border: 1px solid var(--framed5b8b-line-soft);
  border-radius: var(--framed5b8b-r);
  background: var(--framed5b8b-panel);
  padding: 8px 6px;
  text-align: center;
}
.framed5b8b-strip-num {
  display: block;
  font-family: var(--framed5b8b-font-head);
  font-size: 15px; font-weight: 800; color: var(--framed5b8b-coral);
}
.framed5b8b-strip-txt {
  display: block; margin-top: 2px;
  font-size: 10.5px; color: var(--framed5b8b-muted);
  line-height: 1.35;
}

/* ============================================================
   Game sections
   ============================================================ */
.framed5b8b-sec { padding: 20px 0 2px; }
.framed5b8b-sec-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 10px;
  border-left: 3px solid var(--framed5b8b-coral);
  padding-left: 9px;
  margin-bottom: 8px;
}
.framed5b8b-h2 {
  font-family: var(--framed5b8b-font-head);
  font-size: 16.5px; line-height: 1.35; font-weight: 800;
}
.framed5b8b-more {
  flex: 0 0 auto;
  font-size: 11.5px; font-weight: 700;
  color: var(--framed5b8b-coral);
  border: 1px solid var(--framed5b8b-line);
  border-radius: 999px;
  padding: 5px 10px;
  background: var(--framed5b8b-panel);
  white-space: nowrap;
}
.framed5b8b-more:hover { border-color: var(--framed5b8b-coral); text-decoration: none; }
.framed5b8b-note {
  color: var(--framed5b8b-muted);
  font-size: 13px;
  margin: 0 0 10px;
}
.framed5b8b-note strong { color: var(--framed5b8b-text); font-weight: 600; }
.framed5b8b-ilink {
  display: inline;
  color: var(--framed5b8b-coral);
  font-weight: 600;
  border-bottom: 1px dashed rgba(255, 127, 80, 0.55);
  padding: 0;
  font-size: inherit; line-height: inherit; text-align: left;
}
.framed5b8b-ilink:hover { border-bottom-style: solid; }

/* game grid: 4 columns at 320px, 5 columns from 396px */
.framed5b8b-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.framed5b8b-gcard {
  position: relative;
  display: flex; flex-direction: column; gap: 5px;
  padding: 6px 6px 7px;
  border: 1px solid var(--framed5b8b-line-soft);
  border-radius: var(--framed5b8b-r);
  background: var(--framed5b8b-panel);
  transition: border-color 0.18s ease, background-color 0.18s ease,
              transform 0.12s ease;
}
.framed5b8b-gcard:hover { border-color: var(--framed5b8b-coral); background: var(--framed5b8b-panel-2); }
.framed5b8b-gcard:active { transform: scale(0.96); }
.framed5b8b-gthumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
  background: #131110;
}
.framed5b8b-gname {
  font-size: 11px; line-height: 1.3; font-weight: 600;
  color: var(--framed5b8b-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
  word-break: break-word;
}
.framed5b8b-gcard:hover .framed5b8b-gname { color: var(--framed5b8b-text); }
.framed5b8b-gcard--hot::after {
  content: "";
  position: absolute; top: 8px; right: 8px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--framed5b8b-coral);
  box-shadow: 0 0 0 3px rgba(255, 127, 80, 0.25);
}

/* ============================================================
   Content modules after the game area
   ============================================================ */

/* milestone ladder */
.framed5b8b-miles {
  display: flex; flex-direction: column; gap: 8px;
  counter-reset: framed5b8b-step;
}
.framed5b8b-mile {
  display: grid; grid-template-columns: 34px 1fr; gap: 10px;
  border: 1px solid var(--framed5b8b-line-soft);
  border-radius: var(--framed5b8b-r);
  background: var(--framed5b8b-panel);
  padding: 10px;
  counter-increment: framed5b8b-step;
}
.framed5b8b-mile-step {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--framed5b8b-coral);
  border-radius: 50%;
  font-family: var(--framed5b8b-font-head);
  font-weight: 800; font-size: 13px;
  color: var(--framed5b8b-coral);
}
.framed5b8b-mile-step::before { content: counter(framed5b8b-step); }
.framed5b8b-mile-t {
  font-family: var(--framed5b8b-font-head);
  font-size: 13.5px; font-weight: 700;
}
.framed5b8b-mile-d {
  margin-top: 2px;
  font-size: 12.5px; color: var(--framed5b8b-muted);
}

/* winners board */
.framed5b8b-table {
  border: 1px solid var(--framed5b8b-line-soft);
  border-radius: var(--framed5b8b-r);
  overflow: hidden;
}
.framed5b8b-wrow {
  display: grid; grid-template-columns: 1fr auto;
  gap: 2px 12px;
  padding: 9px 11px;
  border-bottom: 1px solid var(--framed5b8b-line-soft);
  background: var(--framed5b8b-panel);
}
.framed5b8b-wrow:last-child { border-bottom: 0; }
.framed5b8b-wgame {
  font-weight: 600; font-size: 13px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.framed5b8b-wamt {
  font-family: var(--framed5b8b-font-head);
  font-weight: 800; font-size: 13px;
  color: var(--framed5b8b-good);
  white-space: nowrap;
}
.framed5b8b-wtime {
  grid-column: 1 / -1;
  font-size: 11px; color: var(--framed5b8b-faint);
}
.framed5b8b-wcap {
  margin-top: 8px;
  font-size: 11.5px; color: var(--framed5b8b-faint);
}

/* feature rows (scannable comparison) */
.framed5b8b-feats { display: flex; flex-direction: column; gap: 8px; }
.framed5b8b-feat {
  display: grid; grid-template-columns: 108px 1fr;
  gap: 10px; align-items: start;
  border: 1px solid var(--framed5b8b-line-soft);
  border-left: 3px solid var(--framed5b8b-coral);
  border-radius: var(--framed5b8b-r);
  background: var(--framed5b8b-panel);
  padding: 10px;
}
.framed5b8b-feat-key {
  font-family: var(--framed5b8b-font-head);
  font-size: 12.5px; font-weight: 800; line-height: 1.35;
  color: var(--framed5b8b-coral);
}
.framed5b8b-feat-txt { font-size: 12.5px; color: var(--framed5b8b-muted); }
.framed5b8b-feat-txt b { color: var(--framed5b8b-text); font-weight: 600; }

/* decision-context CTA block */
.framed5b8b-cta {
  margin-top: 10px;
  border: 1px solid var(--framed5b8b-coral);
  border-radius: var(--framed5b8b-r-lg);
  background:
    linear-gradient(160deg, rgba(255, 127, 80, 0.16), rgba(255, 127, 80, 0.04)),
    var(--framed5b8b-panel);
  padding: 14px;
}
.framed5b8b-cta-note {
  color: var(--framed5b8b-muted);
  font-size: 13px;
  margin-bottom: 12px;
}
.framed5b8b-cta-note b { color: var(--framed5b8b-text); }
.framed5b8b-duo {
  display: flex; gap: 8px;
}
.framed5b8b-duo .framed5b8b-btn { flex: 1; }

/* promo rows */
.framed5b8b-promos { display: flex; flex-direction: column; gap: 8px; }
.framed5b8b-promo {
  display: grid; grid-template-columns: 1fr auto;
  gap: 6px 10px; align-items: center;
  border: 1px solid var(--framed5b8b-line-soft);
  border-radius: var(--framed5b8b-r);
  background: var(--framed5b8b-panel);
  padding: 10px 11px;
}
.framed5b8b-promo-name {
  font-family: var(--framed5b8b-font-head);
  font-size: 13.5px; font-weight: 700;
}
.framed5b8b-promo-terms {
  grid-column: 1 / -1;
  font-size: 12px; color: var(--framed5b8b-muted);
}
.framed5b8b-promo-cta {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--framed5b8b-coral);
  border-radius: 999px;
  color: var(--framed5b8b-coral);
  font-weight: 700; font-size: 12px;
  white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.framed5b8b-promo-cta:hover { background: var(--framed5b8b-coral); color: #231108; }

/* checklist */
.framed5b8b-check { display: flex; flex-direction: column; gap: 8px; }
.framed5b8b-check-item {
  display: grid; grid-template-columns: 22px 1fr; gap: 9px;
  align-items: start;
  border: 1px solid var(--framed5b8b-line-soft);
  border-radius: var(--framed5b8b-r);
  background: var(--framed5b8b-panel);
  padding: 9px 11px;
  font-size: 12.5px; color: var(--framed5b8b-muted);
}
.framed5b8b-check-item b { color: var(--framed5b8b-text); font-weight: 600; }
.framed5b8b-check-item::before {
  content: "";
  width: 16px; height: 16px; margin-top: 2px;
  border: 1.5px solid var(--framed5b8b-coral);
  border-radius: 4px;
  background:
    linear-gradient(135deg, transparent 42%, var(--framed5b8b-coral) 44% 58%, transparent 60%)
    no-repeat center / 12px 12px;
}

/* ============================================================
   Extended footer (directory > brand > promotions > disclaimer)
   ============================================================ */
.framed5b8b-xfoot {
  margin-top: 26px;
  border-top: 1px solid var(--framed5b8b-line);
  padding: 16px 2px 4px;
}
.framed5b8b-xfoot-title {
  font-family: var(--framed5b8b-font-head);
  font-size: 13px; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--framed5b8b-faint);
  margin: 0 0 9px;
}
.framed5b8b-xfoot-dir { margin-bottom: 16px; }
.framed5b8b-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.framed5b8b-chip {
  display: inline-flex; align-items: center;
  min-height: 38px;
  padding: 6px 12px;
  border: 1px solid var(--framed5b8b-line);
  border-radius: 999px;
  background: var(--framed5b8b-panel);
  color: var(--framed5b8b-muted);
  font-size: 12px; font-weight: 600;
  transition: border-color 0.18s ease, color 0.18s ease;
}
.framed5b8b-chip:hover {
  border-color: var(--framed5b8b-coral);
  color: var(--framed5b8b-text);
  text-decoration: none;
}
.framed5b8b-brandblk {
  border: 1px solid var(--framed5b8b-line-soft);
  border-radius: var(--framed5b8b-r);
  background: var(--framed5b8b-panel);
  padding: 12px;
  margin-bottom: 14px;
  font-size: 12.5px; color: var(--framed5b8b-muted);
}
.framed5b8b-brandblk b { color: var(--framed5b8b-text); }
.framed5b8b-promoacts {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-bottom: 14px;
}
.framed5b8b-pact {
  min-height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--framed5b8b-coral);
  border-radius: var(--framed5b8b-r);
  background: var(--framed5b8b-coral-tint);
  color: var(--framed5b8b-coral);
  font-weight: 700; font-size: 12px;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.framed5b8b-pact:hover { background: var(--framed5b8b-coral); color: #231108; }
.framed5b8b-legal {
  border-top: 1px dashed var(--framed5b8b-line);
  padding-top: 12px;
  font-size: 11.5px; color: var(--framed5b8b-faint);
  line-height: 1.6;
}

/* common copyright footer */
.framed5b8b-foot {
  padding: 14px 2px 4px;
  border-top: 1px solid var(--framed5b8b-line-soft);
  text-align: center;
  font-size: 11.5px; color: var(--framed5b8b-faint);
}

/* ============================================================
   Bottom navigation: center-raised 5-slot bar
   ============================================================ */
.framed5b8b-bnav {
  position: fixed;
  bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px;
  height: calc(var(--framed5b8b-bnav-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  display: flex; align-items: flex-end; justify-content: space-around;
  background: rgba(22, 19, 17, 0.96);
  border-top: 1px solid var(--framed5b8b-line);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 55;
}
.framed5b8b-bitem {
  position: relative;
  flex: 1 1 0;
  min-height: 52px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end;
  gap: 3px;
  padding: 6px 2px 7px;
  color: var(--framed5b8b-faint);
  border-radius: var(--framed5b8b-r);
  transition: color 0.18s ease;
}
.framed5b8b-bitem svg {
  width: 21px; height: 21px;
  fill: currentColor;
  transition: fill 0.18s ease;
}
.framed5b8b-blabel { font-size: 10px; font-weight: 600; letter-spacing: 0.01em; }
.framed5b8b-bitem:hover { color: var(--framed5b8b-muted); }
.framed5b8b-bitem.framed5b8b-is-here { color: var(--framed5b8b-coral); }
.framed5b8b-bitem.framed5b8b-is-here::before {
  content: "";
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 22px; height: 3px; border-radius: 0 0 3px 3px;
  background: var(--framed5b8b-coral);
}
/* raised center promo button */
.framed5b8b-bcore {
  position: relative;
  flex: 0 0 74px;
  margin-top: -22px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-start;
  gap: 3px;
  color: var(--framed5b8b-muted);
  padding-top: 0;
}
.framed5b8b-bcore-orb {
  width: 54px; height: 54px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--framed5b8b-coral);
  border: 3px solid var(--framed5b8b-ink);
  box-shadow: 0 6px 16px rgba(255, 127, 80, 0.35);
  transition: transform 0.15s ease, background-color 0.18s ease;
}
.framed5b8b-bcore-orb:active { transform: scale(0.93); }
.framed5b8b-bcore-orb svg {
  width: 24px; height: 24px;
  fill: #231108;
}
.framed5b8b-bcore:hover .framed5b8b-bcore-orb { background: var(--framed5b8b-coral-deep); }
.framed5b8b-bcore-label { font-size: 10px; font-weight: 700; color: var(--framed5b8b-muted); }

/* back-to-top */
.framed5b8b-totop {
  position: fixed;
  right: max(10px, calc(50% - 215px));
  bottom: calc(var(--framed5b8b-bnav-h) + 16px + env(safe-area-inset-bottom, 0px));
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--framed5b8b-line);
  border-radius: 50%;
  background: rgba(32, 29, 27, 0.95);
  opacity: 0; visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 50;
}
.framed5b8b-totop.framed5b8b-is-show { opacity: 1; visibility: visible; transform: translateY(0); }
.framed5b8b-totop svg { width: 16px; height: 16px; stroke: var(--framed5b8b-coral); }
.framed5b8b-totop:hover { border-color: var(--framed5b8b-coral); }

/* ---------- Part1 help-page components ---------- */
.framed5b8b-help-main { padding-top: calc(var(--framed5b8b-header-h) + 16px); }
.framed5b8b-help-intro, .framed5b8b-about-mast {
  padding: 4px 2px 16px;
  border-bottom: 1px solid var(--framed5b8b-line);
}
.framed5b8b-help-actions { display: flex; gap: 8px; margin-top: 14px; }
.framed5b8b-help-actions .framed5b8b-btn { flex: 1; }
.framed5b8b-review-score {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px;
  margin: 14px 0 2px;
}
.framed5b8b-review-score > div, .framed5b8b-fact-grid > div {
  border: 1px solid var(--framed5b8b-line-soft); border-radius: var(--framed5b8b-r);
  background: var(--framed5b8b-panel); padding: 9px 8px;
}
.framed5b8b-score-mark, .framed5b8b-fact-grid strong { color: var(--framed5b8b-coral); font-weight: 800; font-family: var(--framed5b8b-font-head); }
.framed5b8b-review-score p, .framed5b8b-fact-grid p { margin-top: 4px; font-size: 11.5px; color: var(--framed5b8b-muted); line-height: 1.4; }
.framed5b8b-review-score b, .framed5b8b-fact-grid b { color: var(--framed5b8b-text); }
.framed5b8b-glossary { display: flex; flex-direction: column; gap: 8px; }
.framed5b8b-glossary > div { display: grid; grid-template-columns: 84px 1fr; gap: 10px; padding: 10px; border: 1px solid var(--framed5b8b-line-soft); border-left: 3px solid var(--framed5b8b-coral); border-radius: var(--framed5b8b-r); background: var(--framed5b8b-panel); }
.framed5b8b-glossary dt { font-family: var(--framed5b8b-font-head); font-weight: 800; color: var(--framed5b8b-coral); }
.framed5b8b-glossary dd { color: var(--framed5b8b-muted); font-size: 12.5px; }
.framed5b8b-inline-promo { min-height: 44px; margin-top: 12px; padding: 0 14px; border: 1px solid var(--framed5b8b-coral); border-radius: var(--framed5b8b-r); color: var(--framed5b8b-coral); font-size: 12.5px; font-weight: 700; }
.framed5b8b-inline-promo:hover { background: var(--framed5b8b-coral); color: #231108; }
.framed5b8b-answer { margin-bottom: 11px; padding: 10px 11px; border-left: 3px solid var(--framed5b8b-coral); background: var(--framed5b8b-coral-tint); color: var(--framed5b8b-text); font-size: 13px; }
.framed5b8b-pay-steps { display: flex; flex-direction: column; gap: 8px; }
.framed5b8b-pay-steps article { position: relative; padding: 11px 11px 11px 42px; border: 1px solid var(--framed5b8b-line-soft); border-radius: var(--framed5b8b-r); background: var(--framed5b8b-panel); }
.framed5b8b-pay-steps article > span { position: absolute; left: 11px; top: 11px; color: var(--framed5b8b-coral); font-family: var(--framed5b8b-font-head); font-weight: 800; }
.framed5b8b-pay-steps h3, .framed5b8b-troubleshoot h3, .framed5b8b-branches h3, .framed5b8b-qa-list h3, .framed5b8b-scope-columns h3 { font-size: 13.5px; font-family: var(--framed5b8b-font-head); }
.framed5b8b-pay-steps p, .framed5b8b-troubleshoot p, .framed5b8b-branches p, .framed5b8b-qa-list p { margin-top: 3px; color: var(--framed5b8b-muted); font-size: 12.5px; }
.framed5b8b-review-list { counter-reset: review-item; display: flex; flex-direction: column; gap: 7px; }
.framed5b8b-review-list li { counter-increment: review-item; display: grid; grid-template-columns: 29px 1fr; gap: 8px; padding: 9px 10px; border-bottom: 1px solid var(--framed5b8b-line-soft); color: var(--framed5b8b-muted); font-size: 12.5px; }
.framed5b8b-review-list li::before { content: counter(review-item, decimal-leading-zero); color: var(--framed5b8b-coral); font-weight: 800; }
.framed5b8b-review-list b, .framed5b8b-troubleshoot h3 { color: var(--framed5b8b-text); }
.framed5b8b-troubleshoot { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.framed5b8b-troubleshoot > div { padding: 10px; border: 1px solid var(--framed5b8b-line-soft); border-radius: var(--framed5b8b-r); background: var(--framed5b8b-panel); }
.framed5b8b-relation-map { display: grid; gap: 1px; border: 1px solid var(--framed5b8b-line-soft); background: var(--framed5b8b-line-soft); }
.framed5b8b-relation-map > div { display: grid; grid-template-columns: 104px 1fr; gap: 8px; padding: 10px; background: var(--framed5b8b-panel); }
.framed5b8b-relation-map strong { color: var(--framed5b8b-coral); font-size: 12.5px; }
.framed5b8b-relation-map span { color: var(--framed5b8b-muted); font-size: 12px; }
.framed5b8b-faq { display: flex; flex-direction: column; gap: 7px; }
.framed5b8b-faq details { border: 1px solid var(--framed5b8b-line-soft); border-radius: var(--framed5b8b-r); background: var(--framed5b8b-panel); padding: 10px 11px; }
.framed5b8b-faq summary { cursor: pointer; min-height: 24px; color: var(--framed5b8b-text); font-weight: 700; font-size: 13px; }
.framed5b8b-faq p { margin-top: 7px; color: var(--framed5b8b-muted); font-size: 12.5px; }
.framed5b8b-help-cta { margin-top: 18px; padding: 14px; border: 1px solid var(--framed5b8b-coral); border-radius: var(--framed5b8b-r-lg); background: linear-gradient(160deg, rgba(255,127,80,.16), rgba(255,127,80,.04)), var(--framed5b8b-panel); }
.framed5b8b-help-cta p { color: var(--framed5b8b-muted); font-size: 13px; }
.framed5b8b-help-cta b { color: var(--framed5b8b-text); }
.framed5b8b-about-ribbon { display: flex; align-items: center; gap: 9px; margin-top: 12px; padding: 10px; border: 1px solid var(--framed5b8b-line); border-radius: var(--framed5b8b-r); background: var(--framed5b8b-panel); }
.framed5b8b-about-ribbon span { color: var(--framed5b8b-coral); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; }
.framed5b8b-about-ribbon b { font-size: 12.5px; }
.framed5b8b-fact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.framed5b8b-branches { display: flex; flex-direction: column; gap: 8px; }
.framed5b8b-branches article { padding: 11px; border: 1px solid var(--framed5b8b-line-soft); border-radius: var(--framed5b8b-r); background: var(--framed5b8b-panel); }
.framed5b8b-branch-tag { display: inline-flex; margin-bottom: 6px; color: var(--framed5b8b-coral); font-size: 11px; font-weight: 700; }
.framed5b8b-payment-board { display: flex; flex-direction: column; gap: 1px; border: 1px solid var(--framed5b8b-line-soft); background: var(--framed5b8b-line-soft); }
.framed5b8b-payment-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 9px; padding: 10px; background: var(--framed5b8b-panel); }
.framed5b8b-payment-row b { font-family: var(--framed5b8b-font-head); font-size: 12.5px; }
.framed5b8b-payment-row span { grid-column: 1 / -1; color: var(--framed5b8b-muted); font-size: 12px; }
.framed5b8b-payment-row button { min-height: 40px; padding: 0 10px; border: 1px solid var(--framed5b8b-coral); border-radius: 999px; color: var(--framed5b8b-coral); font-size: 11.5px; font-weight: 700; }
.framed5b8b-qa-list { display: flex; flex-direction: column; gap: 8px; }
.framed5b8b-qa-list > div { padding: 10px 11px; border-left: 3px solid var(--framed5b8b-coral); background: var(--framed5b8b-panel); }
.framed5b8b-step-line { display: flex; flex-direction: column; gap: 7px; }
.framed5b8b-step-line > div { display: grid; grid-template-columns: 29px 1fr; gap: 9px; align-items: center; padding: 8px 10px; border-bottom: 1px solid var(--framed5b8b-line-soft); }
.framed5b8b-step-line i { width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--framed5b8b-coral); border-radius: 50%; color: var(--framed5b8b-coral); font-style: normal; font-weight: 800; }
.framed5b8b-step-line p { color: var(--framed5b8b-muted); font-size: 12.5px; }
.framed5b8b-scope-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.framed5b8b-scope-columns > div { padding: 11px; border: 1px solid var(--framed5b8b-line-soft); border-radius: var(--framed5b8b-r); background: var(--framed5b8b-panel); }
.framed5b8b-scope-columns ul { margin-top: 8px; display: flex; flex-direction: column; gap: 7px; }
.framed5b8b-scope-columns li { color: var(--framed5b8b-muted); font-size: 12px; }
.framed5b8b-scope-columns li::before { content: "•"; color: var(--framed5b8b-coral); margin-right: 6px; }

/* ============================================================
   Breakpoints
   ============================================================ */

/* wider phone: game grid gains a 5th column, hero text scales up */
@media (min-width: 396px) {
  .framed5b8b-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .framed5b8b-h1 { font-size: 23px; }
  .framed5b8b-gname { font-size: 11.5px; }
}

/* at or below 430 the canvas is the viewport: drop frame shadow */
@media (max-width: 430px) {
  .framed5b8b-page {
    max-width: 100%;
    box-shadow: none;
  }
  .framed5b8b-header,
  .framed5b8b-sheet,
  .framed5b8b-bnav {
    left: 0;
    transform: none;
  }
  .framed5b8b-sheet.framed5b8b-is-open { transform: none; }
  .framed5b8b-totop { right: 10px; }
}

/* smallest supported phones: tighten type and paddings */
@media (max-width: 349px) {
  .framed5b8b-main { padding-left: 10px; padding-right: 10px; }
  .framed5b8b-h1 { font-size: 19px; }
  .framed5b8b-btn--mini { padding: 0 8px; font-size: 12px; }
  .framed5b8b-brandname { font-size: 18px; }
  .framed5b8b-promoacts { grid-template-columns: repeat(2, 1fr); }
}

/* respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  .framed5b8b-track { transition: none; }
  .framed5b8b-btn:active,
  .framed5b8b-gcard:active,
  .framed5b8b-bcore-orb:active { transform: none; }
  * { transition-duration: 0.01ms !important; }
}
