/* ==========================================================================
   Rivalry Bet - token sheet and mobile component styles
   File   : css/rivalry-bet-tokens-865f21.css
   Prefix : framef213b-
   Canvas : 320-430px phone frame, centered on wide screens
   Palette: #A0522D warm / #A9A9A9 muted / #273746 base / #8470FF accent / #F8F8FF ink
   Voice  : rounded headings + compact body, grouped cover cards, calm glow
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --framef213b-bg: #273746;
  --framef213b-bg-deep: #1d2936;
  --framef213b-panel: #22303d;
  --framef213b-panel-2: #2a3a4a;
  --framef213b-line: #31424f;
  --framef213b-line-soft: #2c3d4b;
  --framef213b-ink: #f8f8ff;
  --framef213b-ink-soft: #d3d9e2;
  --framef213b-muted: #a9a9a9;
  --framef213b-muted-2: #8fa0b3;
  --framef213b-accent: #8470ff;
  --framef213b-accent-deep: #6a58e8;
  --framef213b-accent-ink: #b9adff;
  --framef213b-accent-soft: rgba(132, 112, 255, 0.16);
  --framef213b-warm: #a0522d;
  --framef213b-warm-bright: #c97a4a;
  --framef213b-warm-soft: rgba(160, 82, 45, 0.16);
  --framef213b-radius-sm: 8px;
  --framef213b-radius: 12px;
  --framef213b-radius-lg: 18px;
  --framef213b-font-head: 'Baloo 2', 'Trebuchet MS', 'Segoe UI', sans-serif;
  --framef213b-font-body: 'IBM Plex Sans Condensed', 'Arial Narrow', Arial, sans-serif;
  --framef213b-topbar-h: 112px;
  --framef213b-bnav-h: 64px;
}

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

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

body {
  background: #141d26;
  background: radial-gradient(1200px 700px at 50% -180px, #22303d 0%, #141d26 62%);
  color: var(--framef213b-ink);
  font-family: var(--framef213b-font-body);
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
}

body.framef213b-lock { overflow: hidden; }

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

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

a { color: var(--framef213b-accent-ink); }

ul, ol { list-style: none; }

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

::selection { background: rgba(132, 112, 255, 0.4); color: #fff; }

/* ---------- Phone shell: stays a 430px canvas on any screen ---------- */
.framef213b-shell {
  position: relative;
  max-width: 430px;
  margin: 0 auto;
  background: var(--framef213b-bg);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: clip;
  box-shadow: 0 0 70px rgba(0, 0, 0, 0.55);
}

@media (min-width: 700px) {
  .framef213b-shell {
    border-left: 1px solid var(--framef213b-line-soft);
    border-right: 1px solid var(--framef213b-line-soft);
  }
}

/* ---------- Skip link ---------- */
.framef213b-skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 120;
  background: var(--framef213b-accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
}

.framef213b-skip:focus { left: 10px; }

/* ---------- Fixed top bar (asymmetric brand header) ---------- */
.framef213b-topbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 70;
  padding: 8px 12px 10px;
  background: linear-gradient(180deg, rgba(29, 41, 54, 0.98), rgba(39, 55, 70, 0.94));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--framef213b-line);
  border-left: 1px solid var(--framef213b-line-soft);
  border-right: 1px solid var(--framef213b-line-soft);
}

.framef213b-brandrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.framef213b-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  text-decoration: none;
  color: var(--framef213b-ink);
  padding-left: 10px;
  border-left: 4px solid var(--framef213b-accent);
  border-radius: 3px;
}

.framef213b-brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  object-fit: cover;
  border: 1px solid var(--framef213b-line);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
}

.framef213b-brand-name {
  font-family: var(--framef213b-font-head);
  font-weight: 800;
  font-size: 18px;
  line-height: 1.05;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.framef213b-burger {
  width: 46px;
  height: 44px;
  border-radius: 12px;
  background: var(--framef213b-panel-2);
  border: 1px solid var(--framef213b-line);
  display: grid;
  place-items: center;
  color: var(--framef213b-accent-ink);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.framef213b-burger:active {
  border-color: var(--framef213b-accent);
  box-shadow: 0 0 12px rgba(132, 112, 255, 0.45);
}

.framef213b-burger svg { width: 22px; height: 22px; }

.framef213b-actionrow {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.framef213b-btn-register {
  flex: 1.5;
  min-height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--framef213b-accent), var(--framef213b-accent-deep));
  color: #fff;
  font-family: var(--framef213b-font-head);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.4px;
  box-shadow: 0 4px 16px rgba(132, 112, 255, 0.35);
  transition: transform 0.15s, box-shadow 0.25s;
}

.framef213b-btn-login {
  flex: 1;
  min-height: 44px;
  border-radius: 12px;
  background: transparent;
  border: 1.5px solid var(--framef213b-accent);
  color: var(--framef213b-accent-ink);
  font-family: var(--framef213b-font-head);
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: 0.4px;
  transition: transform 0.15s, box-shadow 0.25s;
}

.framef213b-btn-register:active,
.framef213b-btn-login:active {
  transform: scale(0.96);
  box-shadow: 0 0 16px rgba(132, 112, 255, 0.55);
}

/* ---------- Slide-up route panel ---------- */
.framef213b-scrim {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(9, 14, 20, 0.66);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s;
}

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

.framef213b-menu {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 106%);
  width: 100%;
  max-width: 430px;
  max-height: 80vh;
  overflow-y: auto;
  z-index: 90;
  background: var(--framef213b-panel);
  border: 1px solid var(--framef213b-line);
  border-bottom: 0;
  border-radius: 22px 22px 0 0;
  padding: 12px 14px calc(20px + env(safe-area-inset-bottom, 0px));
  transition: transform 0.34s cubic-bezier(0.22, 0.9, 0.3, 1), visibility 0.34s;
  visibility: hidden;
}

.framef213b-menu-show {
  transform: translate(-50%, 0);
  visibility: visible;
}

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

.framef213b-menu-title {
  font-family: var(--framef213b-font-head);
  font-weight: 800;
  font-size: 16px;
  color: var(--framef213b-ink);
}

.framef213b-menu-close {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--framef213b-panel-2);
  border: 1px solid var(--framef213b-line);
  color: var(--framef213b-muted);
  display: grid;
  place-items: center;
  font-size: 20px;
  font-family: var(--framef213b-font-head);
}

.framef213b-menu-group { margin-bottom: 12px; }

.framef213b-menu-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--framef213b-muted-2);
  padding: 0 2px 5px;
}

.framef213b-menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 46px;
  padding: 0 12px;
  margin-bottom: 7px;
  border-radius: var(--framef213b-radius);
  background: var(--framef213b-panel-2);
  border: 1px solid var(--framef213b-line-soft);
  color: var(--framef213b-ink-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: border-color 0.25s, color 0.25s, box-shadow 0.25s;
}

.framef213b-menu-link::after {
  content: "\203A";
  font-family: var(--framef213b-font-head);
  font-size: 19px;
  color: var(--framef213b-accent);
}

.framef213b-menu-link:active {
  color: var(--framef213b-ink);
  border-color: var(--framef213b-accent);
  box-shadow: 0 0 12px rgba(132, 112, 255, 0.4);
}

/* ---------- Main column ---------- */
.framef213b-main {
  padding: calc(var(--framef213b-topbar-h) + 8px) 12px 26px;
}

.framef213b-pagehead { padding: 2px 0 10px; }

.framef213b-h1 {
  font-family: var(--framef213b-font-head);
  font-weight: 800;
  font-size: 21px;
  line-height: 1.22;
  color: var(--framef213b-ink);
  letter-spacing: 0.2px;
}

.framef213b-pagehead-sub {
  margin-top: 5px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--framef213b-muted);
}

/* ---------- Hero carousel ---------- */
.framef213b-hero {
  position: relative;
  border-radius: var(--framef213b-radius-lg);
  overflow: hidden;
  border: 1px solid var(--framef213b-line);
  background: var(--framef213b-panel);
  margin-bottom: 10px;
}

.framef213b-hero-track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.3, 0.8, 0.3, 1);
}

.framef213b-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  aspect-ratio: 16 / 10;
  display: block;
  text-align: left;
  overflow: hidden;
}

.framef213b-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.framef213b-slide:active img { transform: scale(1.04); }

.framef213b-slide-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 30px 12px 12px;
  background: linear-gradient(180deg, rgba(20, 29, 38, 0) 0%, rgba(16, 24, 32, 0.94) 82%);
}

.framef213b-slide-kicker {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(160, 82, 45, 0.9);
  color: #ffe9da;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}

.framef213b-slide-title {
  margin: 6px 0 3px;
  font-family: var(--framef213b-font-head);
  font-weight: 800;
  font-size: 18px;
  line-height: 1.16;
  color: var(--framef213b-ink);
}

.framef213b-slide-sub {
  font-size: 11.8px;
  line-height: 1.45;
  color: #ccd3dd;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.framef213b-slide-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 9px;
  padding: 8px 15px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--framef213b-accent), var(--framef213b-accent-deep));
  color: #fff;
  font-family: var(--framef213b-font-head);
  font-weight: 700;
  font-size: 12.5px;
  box-shadow: 0 4px 14px rgba(132, 112, 255, 0.4);
}

.framef213b-dots {
  position: absolute;
  top: 9px;
  right: 9px;
  z-index: 3;
  display: flex;
  gap: 2px;
  padding: 3px 5px;
  border-radius: 999px;
  background: rgba(16, 24, 32, 0.5);
}

.framef213b-dot {
  width: 34px;
  height: 26px;
  display: grid;
  place-items: center;
}

.framef213b-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(248, 248, 255, 0.42);
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
}

.framef213b-dot-on::before {
  background: var(--framef213b-accent);
  transform: scale(1.25);
  box-shadow: 0 0 9px rgba(132, 112, 255, 0.95);
}

/* ---------- Warm ticker strip ---------- */
.framef213b-ticker {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
  border-radius: 14px;
  border: 1px solid rgba(176, 105, 62, 0.55);
  background: linear-gradient(135deg, rgba(160, 82, 45, 0.2), rgba(160, 82, 45, 0.08));
}

.framef213b-ticker-text {
  flex: 1;
  font-size: 12.5px;
  line-height: 1.5;
  color: #f2ddcd;
}

.framef213b-ticker-btn {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 10px 13px;
  border-radius: 11px;
  background: linear-gradient(135deg, #b45f33, #8f4623);
  color: #fff;
  font-family: var(--framef213b-font-head);
  font-weight: 700;
  font-size: 12.5px;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(160, 82, 45, 0.4);
  transition: transform 0.15s;
}

.framef213b-ticker-btn:active { transform: scale(0.95); }

/* ---------- Category chip rail ---------- */
.framef213b-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  margin-bottom: 2px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x proximity;
}

.framef213b-chips::-webkit-scrollbar { display: none; }

.framef213b-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--framef213b-panel-2);
  border: 1px solid var(--framef213b-line);
  color: var(--framef213b-ink-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  scroll-snap-align: start;
  transition: border-color 0.25s, color 0.25s;
}

.framef213b-chip:active {
  color: var(--framef213b-ink);
  border-color: var(--framef213b-accent);
}

/* ---------- Shared section title ---------- */
.framef213b-sec-title {
  font-family: var(--framef213b-font-head);
  font-weight: 800;
  font-size: 18.5px;
  line-height: 1.22;
  color: var(--framef213b-ink);
  padding-left: 10px;
  border-left: 4px solid var(--framef213b-accent);
  border-radius: 2px;
  margin: 0 0 7px;
}

/* ---------- Start-here intro cards ---------- */
.framef213b-intro { margin: 4px 0 16px; }

.framef213b-intro-grid { display: grid; gap: 8px; }

.framef213b-intro-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 14px;
  background: var(--framef213b-panel);
  border: 1px solid var(--framef213b-line-soft);
}

.framef213b-intro-num {
  flex: 0 0 auto;
  width: 27px;
  height: 27px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--framef213b-accent-soft);
  border: 1px solid rgba(132, 112, 255, 0.4);
  color: var(--framef213b-accent-ink);
  font-family: var(--framef213b-font-head);
  font-weight: 800;
  font-size: 13px;
}

.framef213b-intro-card p {
  font-size: 13px;
  line-height: 1.52;
  color: #c9d0da;
}

.framef213b-intro-card strong,
.framef213b-mod-lead strong,
.framef213b-cat-lead strong,
.framef213b-step strong,
.framef213b-checklist strong,
.framef213b-fact dd strong { color: var(--framef213b-ink); }

/* ---------- Game category sections ---------- */
.framef213b-cat {
  margin: 16px 0;
  scroll-margin-top: calc(var(--framef213b-topbar-h) + 12px);
}

.framef213b-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.framef213b-cat-head .framef213b-sec-title { margin: 0; }

.framef213b-cat-count {
  flex: 0 0 auto;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--framef213b-accent);
  color: #fff;
  font-family: var(--framef213b-font-head);
  font-weight: 700;
  font-size: 11.5px;
  white-space: nowrap;
}

.framef213b-cat-lead {
  font-size: 13.3px;
  line-height: 1.55;
  color: #c9d0da;
  margin-bottom: 10px;
}

/* Expandable fact note under each category */
.framef213b-more {
  border: 1px dashed var(--framef213b-line);
  border-radius: var(--framef213b-radius);
  background: rgba(34, 48, 61, 0.5);
  margin-bottom: 10px;
  overflow: hidden;
}

.framef213b-more-sum {
  list-style: none;
  cursor: pointer;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 12px;
  font-weight: 700;
  font-size: 13px;
  color: var(--framef213b-accent-ink);
}

.framef213b-more-sum::-webkit-details-marker { display: none; }

.framef213b-more-sum::after {
  content: "+";
  font-family: var(--framef213b-font-head);
  font-size: 17px;
  color: var(--framef213b-accent);
}

.framef213b-more[open] .framef213b-more-sum::after { content: "\2212"; }

.framef213b-more-body {
  padding: 0 12px 12px;
  font-size: 12.8px;
  line-height: 1.56;
  color: #b9c2ce;
}

/* Grouped cover-card grid */
.framef213b-gridwrap {
  padding: 8px;
  border-radius: 16px;
  background: rgba(34, 48, 61, 0.38);
  border: 1px solid var(--framef213b-line-soft);
}

.framef213b-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

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

.framef213b-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 6px 4px 8px;
  border-radius: var(--framef213b-radius);
  background: var(--framef213b-panel);
  border: 1px solid #31424f;
  transition: transform 0.15s, border-color 0.25s, box-shadow 0.25s;
}

.framef213b-tile:active {
  transform: scale(0.93);
  border-color: var(--framef213b-accent);
  box-shadow: 0 0 13px rgba(132, 112, 255, 0.45);
}

.framef213b-tile-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--framef213b-radius-sm);
  background: #1a2530;
}

.framef213b-tile-name {
  font-size: 10px;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
  color: #d3d9e2;
  min-height: 25px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}

/* ---------- Content modules ---------- */
.framef213b-mod {
  margin: 14px 0;
  padding: 14px 13px;
  border-radius: var(--framef213b-radius-lg);
  background: linear-gradient(180deg, #243444, #20303f);
  border: 1px solid var(--framef213b-line);
}

.framef213b-mod-lead {
  font-size: 13.3px;
  line-height: 1.56;
  color: #d3d9e2;
  margin: 2px 0 10px;
}

.framef213b-checklist {
  display: grid;
  gap: 8px;
  margin: 8px 0;
}

.framef213b-checklist li {
  display: flex;
  gap: 9px;
  padding: 10px 11px;
  border-radius: var(--framef213b-radius);
  background: rgba(39, 55, 70, 0.55);
  border: 1px solid var(--framef213b-line-soft);
  font-size: 12.9px;
  line-height: 1.52;
  color: #c9d0da;
}

.framef213b-checklist li::before {
  content: "\2713";
  flex: 0 0 auto;
  color: var(--framef213b-accent-ink);
  font-weight: 800;
  font-size: 14px;
  line-height: 1.4;
}

/* Inline real links and promo word-links */
.framef213b-inline-link {
  color: var(--framef213b-accent-ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(185, 173, 255, 0.55);
  text-underline-offset: 2px;
}

.framef213b-wordlink {
  color: #ffcf9e;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(255, 207, 158, 0.55);
  text-underline-offset: 2px;
  padding: 1px 0;
}

.framef213b-wordlink:active { color: #ffe3c4; }

/* Full-width promo action buttons */
.framef213b-promo-list {
  display: grid;
  gap: 9px;
  margin: 10px 0;
}

.framef213b-promo-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 52px;
  padding: 12px 14px;
  border-radius: 14px;
  text-align: left;
  font-family: var(--framef213b-font-head);
  font-weight: 700;
  font-size: 13.5px;
  line-height: 1.3;
  color: #e4dfff;
  background: linear-gradient(135deg, rgba(132, 112, 255, 0.24), rgba(132, 112, 255, 0.08));
  border: 1px solid rgba(132, 112, 255, 0.5);
  transition: transform 0.15s, box-shadow 0.25s;
}

.framef213b-promo-item::after {
  content: "\203A";
  font-size: 19px;
  color: var(--framef213b-accent);
}

.framef213b-promo-item:active {
  transform: scale(0.98);
  box-shadow: 0 0 15px rgba(132, 112, 255, 0.5);
}

.framef213b-promo-warm {
  color: #ffe4cf;
  background: linear-gradient(135deg, rgba(160, 82, 45, 0.28), rgba(160, 82, 45, 0.1));
  border-color: rgba(201, 122, 74, 0.6);
}

.framef213b-promo-warm::after { color: var(--framef213b-warm-bright); }

/* FAQ accordion */
.framef213b-faq {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.framef213b-faq-item {
  background: rgba(39, 55, 70, 0.5);
  border: 1px solid var(--framef213b-line-soft);
  border-radius: var(--framef213b-radius);
  overflow: hidden;
}

.framef213b-faq-q {
  list-style: none;
  cursor: pointer;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 12px;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.4;
  color: #e8ebf1;
}

.framef213b-faq-q::-webkit-details-marker { display: none; }

.framef213b-faq-q::after {
  content: "+";
  flex: 0 0 auto;
  font-family: var(--framef213b-font-head);
  font-size: 17px;
  color: var(--framef213b-accent);
}

.framef213b-faq-item[open] .framef213b-faq-q::after { content: "\2212"; }

.framef213b-faq-a {
  padding: 0 12px 12px;
  font-size: 12.8px;
  line-height: 1.56;
  color: #b9c2ce;
}

/* Fact sheet */
.framef213b-facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 8px 0;
}

.framef213b-fact {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border-radius: var(--framef213b-radius);
  background: rgba(39, 55, 70, 0.5);
  border: 1px solid var(--framef213b-line-soft);
}

.framef213b-fact dt {
  font-size: 10.8px;
  font-weight: 700;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: var(--framef213b-muted-2);
}

.framef213b-fact dd {
  font-size: 13px;
  line-height: 1.5;
  color: #d3d9e2;
}

/* Numbered steps */
.framef213b-steps {
  display: grid;
  gap: 8px;
  margin: 8px 0;
  counter-reset: framef213b-stepno;
}

.framef213b-step {
  counter-increment: framef213b-stepno;
  display: flex;
  gap: 11px;
  padding: 11px 12px;
  border-radius: var(--framef213b-radius);
  background: rgba(39, 55, 70, 0.5);
  border: 1px solid var(--framef213b-line-soft);
  font-size: 12.9px;
  line-height: 1.52;
  color: #c9d0da;
}

.framef213b-step::before {
  content: counter(framef213b-stepno);
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--framef213b-accent), var(--framef213b-accent-deep));
  color: #fff;
  font-family: var(--framef213b-font-head);
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 3px 10px rgba(132, 112, 255, 0.3);
}

/* ---------- Extended footer (homepage only) ---------- */
.framef213b-xfoot {
  display: grid;
  gap: 12px;
  margin: 18px 0 12px;
}

.framef213b-xfoot-block {
  padding: 14px 13px;
  border-radius: var(--framef213b-radius-lg);
  background: #20303f;
  border: 1px solid var(--framef213b-line-soft);
}

.framef213b-xfoot-brandtext {
  font-size: 13px;
  line-height: 1.56;
  color: #c9d0da;
}

.framef213b-dir {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.framef213b-dir-link {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-height: 54px;
  padding: 8px 10px;
  border-radius: var(--framef213b-radius);
  background: rgba(39, 55, 70, 0.55);
  border: 1px solid var(--framef213b-line-soft);
  text-decoration: none;
  transition: border-color 0.25s;
}

.framef213b-dir-link:active { border-color: var(--framef213b-accent); }

.framef213b-dir-link strong {
  font-size: 12.5px;
  line-height: 1.25;
  color: #e8ebf1;
}

.framef213b-dir-link span {
  font-size: 10.5px;
  line-height: 1.3;
  color: var(--framef213b-muted-2);
}

.framef213b-note {
  padding: 10px 11px;
  border-radius: var(--framef213b-radius);
  border: 1px dashed rgba(201, 122, 74, 0.45);
  background: rgba(160, 82, 45, 0.08);
  font-size: 11.6px;
  line-height: 1.55;
  color: var(--framef213b-muted-2);
}

/* ---------- Common footer (copyright only) ---------- */
.framef213b-foot {
  padding: 8px 12px calc(var(--framef213b-bnav-h) + 24px + env(safe-area-inset-bottom, 0px));
  text-align: center;
  font-size: 11.5px;
  letter-spacing: 0.3px;
  color: #77879a;
}

/* ---------- Fixed bottom navigation rail ---------- */
.framef213b-bnav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 70;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(29, 41, 54, 0.97), #1a2530);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--framef213b-line);
  border-left: 1px solid var(--framef213b-line-soft);
  border-right: 1px solid var(--framef213b-line-soft);
}

.framef213b-bnav-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 52px;
  padding: 2px 1px;
  border-radius: var(--framef213b-radius);
  color: #93a3b5;
  text-decoration: none;
  transition: color 0.25s;
}

.framef213b-bnav-item:active .framef213b-bnav-ico { transform: scale(0.88); }

.framef213b-bnav-ico {
  width: 33px;
  height: 33px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: #263746;
  border: 1px solid var(--framef213b-line);
  color: #aeb9c7;
  transition: transform 0.2s, background 0.25s, border-color 0.25s, box-shadow 0.25s, color 0.25s;
}

.framef213b-bnav-ico svg { width: 18px; height: 18px; }

.framef213b-bnav-label {
  font-size: 9.6px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.framef213b-bnav-on { color: #cdc5ff; }

.framef213b-bnav-on .framef213b-bnav-ico {
  background: linear-gradient(135deg, var(--framef213b-accent), var(--framef213b-accent-deep));
  border-color: var(--framef213b-accent);
  color: #fff;
  box-shadow: 0 0 13px rgba(132, 112, 255, 0.6);
}

.framef213b-bnav-on .framef213b-bnav-label { color: #e4dfff; }

/* ---------- Motion discipline ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
