/* ==========================================================================
   1xbet ng login - display-adaptive stylesheet
   Canvas: 320-430px mobile-first, centered phone canvas on wide screens
   Prefix: frame0bafd-
   Palette: #2F2F2F / #36454F / #FF6347 / #0C0C0C
   Direction: mono accent labels + regular body text, low-radius segmented
   panels, outlined tile cards, lead-in section rhythm, drawer slide-in and
   card lift motion, compact dual-button CTA groups.
   ========================================================================== */

/* ---------- design tokens ---------- */
:root {
  --frame0bafd-ink-deep: #0C0C0C;      /* page background */
  --frame0bafd-ink-panel: #2F2F2F;     /* raised panel */
  --frame0bafd-ink-slate: #36454F;     /* borders, secondary panels */
  --frame0bafd-flame: #FF6347;         /* accent */
  --frame0bafd-flame-dim: #d94f37;     /* accent pressed */
  --frame0bafd-text-hi: #F2F3F4;       /* primary text */
  --frame0bafd-text-mid: #C6CDD4;      /* body text */
  --frame0bafd-text-low: #8E99A4;      /* muted text */
  --frame0bafd-line: rgba(54, 69, 79, 0.62);
  --frame0bafd-line-soft: rgba(54, 69, 79, 0.38);
  --frame0bafd-tile-bg: rgba(15, 16, 17, 0.92);
  --frame0bafd-radius-s: 3px;
  --frame0bafd-radius-m: 6px;
  --frame0bafd-mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, Menlo, monospace;
  --frame0bafd-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --frame0bafd-top-h: 102px;
  --frame0bafd-bnav-h: 64px;
  --frame0bafd-ease: cubic-bezier(0.22, 0.68, 0.32, 1);
}

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

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

body {
  margin: 0;
  padding: 0;
  background: var(--frame0bafd-ink-deep);
  color: var(--frame0bafd-text-mid);
  font-family: var(--frame0bafd-body);
  font-size: 15px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.frame0bafd-locked {
  overflow: hidden;
}

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

a {
  color: var(--frame0bafd-flame);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

h1, h2, h3 {
  color: var(--frame0bafd-text-hi);
  font-weight: 700;
  line-height: 1.28;
  margin: 0;
}

p {
  margin: 0 0 12px;
}

ul, ol {
  margin: 0;
  padding: 0;
}

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

::selection {
  background: var(--frame0bafd-flame);
  color: #fff;
}

/* ---------- phone canvas shell ---------- */
.frame0bafd-shell {
  position: relative;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--frame0bafd-ink-deep);
  overflow-x: clip;
}

@media (min-width: 481px) {
  body {
    background:
      radial-gradient(1200px 600px at 50% -10%, rgba(54, 69, 79, 0.35), transparent 60%),
      var(--frame0bafd-ink-deep);
  }

  .frame0bafd-shell {
    border-left: 1px solid var(--frame0bafd-line-soft);
    border-right: 1px solid var(--frame0bafd-line-soft);
    box-shadow: 0 0 44px rgba(0, 0, 0, 0.55);
  }
}

/* ---------- screen reader helper ---------- */
.frame0bafd-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Top bar - centered identity bar + separate action row
   ========================================================================== */
.frame0bafd-topbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 60;
  background: rgba(12, 12, 12, 0.96);
  border-bottom: 1px solid var(--frame0bafd-line);
  padding-top: env(safe-area-inset-top);
  backdrop-filter: blur(8px);
}

/* identity row: logo + site name only, dead center */
.frame0bafd-idbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 54px;
  padding: 8px 14px;
}

.frame0bafd-idlogo {
  width: 32px;
  height: 32px;
  border-radius: var(--frame0bafd-radius-s);
  border: 1px solid var(--frame0bafd-line);
  object-fit: cover;
  flex: 0 0 auto;
}

.frame0bafd-idname {
  font-family: var(--frame0bafd-mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--frame0bafd-text-hi);
  white-space: nowrap;
}

.frame0bafd-idname em {
  font-style: normal;
  color: var(--frame0bafd-flame);
}

/* hamburger button pinned to the left of the identity bar */
.frame0bafd-menubtn {
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: grid;
  place-content: center;
  gap: 0;
  background: transparent;
  border: 1px solid var(--frame0bafd-line-soft);
  border-radius: var(--frame0bafd-radius-s);
}

.frame0bafd-menubtn span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 2px 0;
  background: var(--frame0bafd-text-hi);
  border-radius: 1px;
  transition: transform 0.26s var(--frame0bafd-ease), opacity 0.2s linear;
}

/* morph three bars into an X when the drawer is open */
.frame0bafd-menubtn[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.frame0bafd-menubtn[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.frame0bafd-menubtn[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* action row: compact dual-button CTA group */
.frame0bafd-actionrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px 10px;
}

.frame0bafd-cta {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--frame0bafd-flame);
  border-radius: var(--frame0bafd-radius-s);
  overflow: hidden;
}

.frame0bafd-cta > button {
  min-height: 38px;
  padding: 8px 20px;
  font-family: var(--frame0bafd-mono);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 0;
  transition: background 0.18s linear, color 0.18s linear;
}

.frame0bafd-cta-acc {
  background: var(--frame0bafd-flame);
  color: #180705;
}

.frame0bafd-cta-acc:active {
  background: var(--frame0bafd-flame-dim);
}

.frame0bafd-cta-line {
  background: transparent;
  color: var(--frame0bafd-flame);
  border-left: 1px solid var(--frame0bafd-flame);
}

.frame0bafd-cta-line:active {
  background: rgba(255, 99, 71, 0.14);
}

/* ==========================================================================
   Side drawer menu
   ========================================================================== */
.frame0bafd-scrim {
  position: fixed;
  inset: 0;
  z-index: 65;
  background: rgba(5, 5, 5, 0.66);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s linear;
}

.frame0bafd-scrim.frame0bafd-is-open {
  opacity: 1;
  pointer-events: auto;
}

.frame0bafd-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: max(0px, calc(50% - 215px));
  width: min(86vw, 318px);
  z-index: 70;
  background: #101113;
  border-right: 1px solid var(--frame0bafd-line);
  transform: translateX(-104%);
  transition: transform 0.3s var(--frame0bafd-ease);
  display: flex;
  flex-direction: column;
  padding: 0 0 env(safe-area-inset-bottom);
}

.frame0bafd-drawer.frame0bafd-is-open {
  transform: translateX(0);
}

.frame0bafd-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 14px 12px 18px;
  border-bottom: 1px solid var(--frame0bafd-line-soft);
}

.frame0bafd-drawer-title {
  font-family: var(--frame0bafd-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--frame0bafd-text-low);
}

.frame0bafd-drawer-close {
  width: 44px;
  height: 44px;
  margin: -10px -6px -10px 0;
  display: grid;
  place-content: center;
  background: transparent;
  border: 0;
  color: var(--frame0bafd-text-mid);
  font-family: var(--frame0bafd-mono);
  font-size: 20px;
  line-height: 1;
}

.frame0bafd-drawer-nav {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 8px 0 14px;
}

.frame0bafd-drawer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 6px 16px 6px 18px;
  color: var(--frame0bafd-text-mid);
  border-left: 3px solid transparent;
  transition: background 0.16s linear, color 0.16s linear;
}

.frame0bafd-drawer-link:hover {
  background: rgba(54, 69, 79, 0.28);
  text-decoration: none;
  color: var(--frame0bafd-text-hi);
}

.frame0bafd-drawer-num {
  font-family: var(--frame0bafd-mono);
  font-size: 11px;
  color: var(--frame0bafd-text-low);
  min-width: 20px;
}

.frame0bafd-drawer-label {
  font-size: 14px;
}

.frame0bafd-drawer-link.frame0bafd-is-here {
  color: var(--frame0bafd-text-hi);
  background: rgba(255, 99, 71, 0.08);
  border-left-color: var(--frame0bafd-flame);
}

.frame0bafd-drawer-link.frame0bafd-is-here .frame0bafd-drawer-num {
  color: var(--frame0bafd-flame);
}

.frame0bafd-drawer-foot {
  padding: 14px 16px 18px;
  border-top: 1px solid var(--frame0bafd-line-soft);
}

.frame0bafd-drawer-foot .frame0bafd-cta {
  width: 100%;
}

.frame0bafd-drawer-foot .frame0bafd-cta > button {
  flex: 1 1 50%;
}

/* ==========================================================================
   Main content column
   ========================================================================== */
.frame0bafd-main {
  padding: calc(var(--frame0bafd-top-h) + env(safe-area-inset-top) + 14px) 14px
    calc(var(--frame0bafd-bnav-h) + env(safe-area-inset-bottom) + 30px);
}

/* ---------- hero / H1 block ---------- */
.frame0bafd-lede {
  margin-bottom: 18px;
}

.frame0bafd-kicker {
  display: inline-block;
  font-family: var(--frame0bafd-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--frame0bafd-flame);
  border: 1px solid rgba(255, 99, 71, 0.4);
  border-radius: var(--frame0bafd-radius-s);
  padding: 4px 9px;
  margin-bottom: 12px;
}

.frame0bafd-h1 {
  font-size: 25px;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

@media (min-width: 375px) {
  .frame0bafd-h1 {
    font-size: 28px;
  }
}

.frame0bafd-lede p {
  color: var(--frame0bafd-text-mid);
}

/* ---------- promo carousel ---------- */
.frame0bafd-carousel {
  position: relative;
  margin: 0 0 14px;
}

.frame0bafd-rail {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border: 1px solid var(--frame0bafd-line);
  border-radius: var(--frame0bafd-radius-m);
  background: var(--frame0bafd-ink-panel);
}

.frame0bafd-rail::-webkit-scrollbar {
  display: none;
}

.frame0bafd-slide {
  position: relative;
  flex: 0 0 100%;
  scroll-snap-align: start;
  padding: 0;
  border: 0;
  background: #141517;
}

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

.frame0bafd-slide-tag {
  position: absolute;
  left: 10px;
  bottom: 10px;
  font-family: var(--frame0bafd-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(12, 12, 12, 0.82);
  border: 1px solid var(--frame0bafd-line);
  border-left: 3px solid var(--frame0bafd-flame);
  border-radius: var(--frame0bafd-radius-s);
  padding: 5px 9px;
}

.frame0bafd-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 9px;
}

.frame0bafd-dot {
  width: 22px;
  height: 6px;
  padding: 0;
  border: 1px solid var(--frame0bafd-ink-slate);
  border-radius: 2px;
  background: transparent;
  transition: background 0.2s linear;
}

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

/* ---------- category shortcut chips ---------- */
.frame0bafd-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 0 12px;
  margin-bottom: 6px;
}

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

.frame0bafd-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 13px;
  font-family: var(--frame0bafd-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--frame0bafd-text-mid);
  background: var(--frame0bafd-tile-bg);
  border: 1px solid var(--frame0bafd-line);
  border-radius: var(--frame0bafd-radius-s);
  transition: border-color 0.16s linear, color 0.16s linear, transform 0.16s var(--frame0bafd-ease);
}

.frame0bafd-chip:hover {
  color: var(--frame0bafd-text-hi);
  text-decoration: none;
  border-color: var(--frame0bafd-flame);
}

.frame0bafd-chip:active {
  transform: translateY(-1px);
}

/* ==========================================================================
   Sections - lead-in rhythm, mono section tags
   ========================================================================== */
.frame0bafd-section {
  margin: 0 0 26px;
  padding-top: 4px;
  scroll-margin-top: calc(var(--frame0bafd-top-h) + 16px);
}

.frame0bafd-sec-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  padding-bottom: 8px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--frame0bafd-line-soft);
}

.frame0bafd-sec-head h2 {
  font-size: 18.5px;
  letter-spacing: -0.005em;
}

@media (min-width: 375px) {
  .frame0bafd-sec-head h2 {
    font-size: 20px;
  }
}

.frame0bafd-sec-tag {
  font-family: var(--frame0bafd-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--frame0bafd-text-low);
  white-space: nowrap;
}

.frame0bafd-lead {
  padding-left: 11px;
  border-left: 3px solid var(--frame0bafd-flame);
  margin-bottom: 14px;
  color: var(--frame0bafd-text-mid);
}

.frame0bafd-section h3 {
  font-size: 15.5px;
  margin: 16px 0 8px;
}

.frame0bafd-inlink {
  color: var(--frame0bafd-flame);
  border-bottom: 1px dashed rgba(255, 99, 71, 0.55);
  font-weight: 600;
}

.frame0bafd-inlink:hover {
  text-decoration: none;
  border-bottom-style: solid;
}

/* ==========================================================================
   Game grids - outlined tile cards
   ========================================================================== */
.frame0bafd-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

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

.frame0bafd-tile {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
  padding: 5px 5px 7px;
  background: var(--frame0bafd-tile-bg);
  border: 1px solid var(--frame0bafd-line);
  border-radius: var(--frame0bafd-radius-s);
  transition: transform 0.18s var(--frame0bafd-ease), border-color 0.18s linear;
  -webkit-tap-highlight-color: transparent;
}

.frame0bafd-tile img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 2px;
  background: #1a1c1f;
}

.frame0bafd-tile-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 10.5px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--frame0bafd-text-mid);
  text-align: center;
  overflow-wrap: break-word;
  min-height: 2.6em;
}

@media (hover: hover) {
  .frame0bafd-tile:hover {
    transform: translateY(-2px);
    border-color: var(--frame0bafd-flame);
  }

  .frame0bafd-tile:hover .frame0bafd-tile-name {
    color: var(--frame0bafd-text-hi);
  }
}

.frame0bafd-tile:active {
  transform: translateY(-1px);
  border-color: var(--frame0bafd-flame);
}

/* ==========================================================================
   Content modules
   ========================================================================== */
/* scannable compare rows (features) */
.frame0bafd-rows {
  border: 1px solid var(--frame0bafd-line);
  border-radius: var(--frame0bafd-radius-m);
  overflow: hidden;
}

.frame0bafd-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 10px;
  padding: 10px 12px;
  border-top: 1px solid var(--frame0bafd-line-soft);
  background: rgba(47, 47, 47, 0.14);
}

.frame0bafd-row:first-child {
  border-top: 0;
}

.frame0bafd-row-term {
  font-family: var(--frame0bafd-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--frame0bafd-flame);
  padding-top: 3px;
}

.frame0bafd-row-data {
  font-size: 13.5px;
  color: var(--frame0bafd-text-mid);
}

.frame0bafd-row-data strong {
  color: var(--frame0bafd-text-hi);
}

/* play style compare cards */
.frame0bafd-styles {
  display: grid;
  gap: 10px;
}

.frame0bafd-style {
  border: 1px solid var(--frame0bafd-line);
  border-left: 3px solid var(--frame0bafd-slate);
  border-radius: var(--frame0bafd-radius-s);
  padding: 11px 12px;
  background: var(--frame0bafd-tile-bg);
}

.frame0bafd-style-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
}

.frame0bafd-style-head h3 {
  margin: 0;
  font-size: 14.5px;
}

.frame0bafd-style-flag {
  font-family: var(--frame0bafd-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--frame0bafd-text-low);
  white-space: nowrap;
}

.frame0bafd-style p {
  margin: 0;
  font-size: 13.5px;
}

/* numbered steps (how to play) */
.frame0bafd-steps {
  counter-reset: frame0bafd-step;
  display: grid;
  gap: 9px;
}

.frame0bafd-step {
  counter-increment: frame0bafd-step;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 11px;
  align-items: start;
  padding: 10px 11px;
  border: 1px solid var(--frame0bafd-line-soft);
  border-radius: var(--frame0bafd-radius-s);
  background: rgba(54, 69, 79, 0.12);
}

.frame0bafd-step::before {
  content: counter(frame0bafd-step, decimal-leading-zero);
  font-family: var(--frame0bafd-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--frame0bafd-flame);
  border: 1px solid rgba(255, 99, 71, 0.45);
  border-radius: var(--frame0bafd-radius-s);
  min-width: 34px;
  height: 34px;
  display: grid;
  place-content: center;
}

.frame0bafd-step-body {
  font-size: 13.5px;
}

.frame0bafd-step-body strong {
  color: var(--frame0bafd-text-hi);
}

/* two-column highlight tiles (category highlights) */
.frame0bafd-hl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.frame0bafd-hl-card {
  border: 1px solid var(--frame0bafd-line);
  border-radius: var(--frame0bafd-radius-s);
  background: var(--frame0bafd-tile-bg);
  padding: 10px 10px 11px;
  transition: transform 0.18s var(--frame0bafd-ease), border-color 0.18s linear;
}

.frame0bafd-hl-card:hover {
  transform: translateY(-2px);
  border-color: var(--frame0bafd-slate);
}

.frame0bafd-hl-name {
  font-family: var(--frame0bafd-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--frame0bafd-flame);
  margin-bottom: 6px;
}

.frame0bafd-hl-card p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
}

/* fact summary list */
.frame0bafd-facts {
  border: 1px dashed rgba(255, 99, 71, 0.45);
  border-radius: var(--frame0bafd-radius-m);
  padding: 4px 14px;
  margin: 0;
}

.frame0bafd-facts li {
  list-style: none;
  display: flex;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid var(--frame0bafd-line-soft);
  font-size: 13.5px;
}

.frame0bafd-facts li:first-child {
  border-top: 0;
}

.frame0bafd-facts li::before {
  content: "»";
  font-family: var(--frame0bafd-mono);
  color: var(--frame0bafd-flame);
  font-weight: 700;
  flex: 0 0 auto;
}

/* decision checklist (selection guide) */
.frame0bafd-check {
  margin: 0;
}

.frame0bafd-check li {
  list-style: none;
  position: relative;
  padding: 7px 0 7px 26px;
  font-size: 13.5px;
  border-top: 1px solid var(--frame0bafd-line-soft);
}

.frame0bafd-check li:first-child {
  border-top: 0;
}

.frame0bafd-check li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 13px;
  width: 11px;
  height: 6px;
  border-left: 2px solid var(--frame0bafd-flame);
  border-bottom: 2px solid var(--frame0bafd-flame);
  transform: rotate(-45deg);
}

.frame0bafd-check li strong {
  color: var(--frame0bafd-text-hi);
}

/* mid-article promo band */
.frame0bafd-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border: 1px solid var(--frame0bafd-flame);
  border-radius: var(--frame0bafd-radius-m);
  background: linear-gradient(135deg, rgba(255, 99, 71, 0.14), rgba(54, 69, 79, 0.2));
  padding: 13px 14px;
  margin: 20px 0 24px;
}

.frame0bafd-band-text {
  font-size: 13.5px;
  color: var(--frame0bafd-text-hi);
  flex: 1 1 150px;
}

.frame0bafd-band-text .frame0bafd-band-sub {
  display: block;
  font-family: var(--frame0bafd-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--frame0bafd-text-low);
  margin-top: 4px;
}

.frame0bafd-band-cta {
  min-height: 44px;
  padding: 10px 18px;
  font-family: var(--frame0bafd-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #180705;
  background: var(--frame0bafd-flame);
  border: 1px solid var(--frame0bafd-flame);
  border-radius: var(--frame0bafd-radius-s);
  transition: transform 0.16s var(--frame0bafd-ease);
}

.frame0bafd-band-cta:active {
  transform: translateY(1px);
  background: var(--frame0bafd-flame-dim);
}

/* ==========================================================================
   Extended footer (home page only)
   ========================================================================== */
.frame0bafd-xfoot {
  margin: 30px 0 0;
  border: 1px solid var(--frame0bafd-line);
  border-radius: var(--frame0bafd-radius-m);
  background: rgba(47, 47, 47, 0.16);
  padding: 16px 14px 14px;
}

.frame0bafd-xfoot-title {
  font-family: var(--frame0bafd-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--frame0bafd-text-low);
  margin: 0 0 10px;
}

/* horizontal promo shortcuts */
.frame0bafd-xpromos {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
  margin-bottom: 16px;
}

.frame0bafd-xpromos::-webkit-scrollbar {
  display: none;
}

.frame0bafd-xpromo {
  flex: 0 0 auto;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  font-family: var(--frame0bafd-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--frame0bafd-text-hi);
  background: rgba(255, 99, 71, 0.1);
  border: 1px solid rgba(255, 99, 71, 0.5);
  border-radius: var(--frame0bafd-radius-s);
  transition: transform 0.16s var(--frame0bafd-ease), background 0.16s linear;
}

.frame0bafd-xpromo:active {
  transform: translateY(1px);
  background: rgba(255, 99, 71, 0.22);
}

/* brand blurb */
.frame0bafd-xbrand {
  font-size: 13px;
  color: var(--frame0bafd-text-mid);
  padding: 0 2px 14px;
  border-bottom: 1px solid var(--frame0bafd-line-soft);
  margin-bottom: 12px;
}

/* page directory */
.frame0bafd-xdir {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 10px;
  margin-bottom: 14px;
}

.frame0bafd-xdir a {
  display: block;
  padding: 8px 9px;
  font-size: 12.5px;
  color: var(--frame0bafd-text-mid);
  background: var(--frame0bafd-tile-bg);
  border: 1px solid var(--frame0bafd-line-soft);
  border-radius: var(--frame0bafd-radius-s);
  transition: border-color 0.16s linear, color 0.16s linear;
}

.frame0bafd-xdir a:hover {
  color: var(--frame0bafd-flame);
  text-decoration: none;
  border-color: var(--frame0bafd-flame);
}

/* short factual disclaimer */
.frame0bafd-note {
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--frame0bafd-text-low);
  border-top: 1px solid var(--frame0bafd-line-soft);
  padding-top: 10px;
}

/* ==========================================================================
   Common footer (all pages)
   ========================================================================== */
.frame0bafd-foot {
  border-top: 1px solid var(--frame0bafd-line-soft);
  padding: 14px 4px 4px;
  text-align: center;
}

.frame0bafd-foot-copy {
  font-family: var(--frame0bafd-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--frame0bafd-text-low);
  margin: 0;
}

/* ==========================================================================
   Bottom navigation - segmented action bar
   ========================================================================== */
.frame0bafd-bnav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 55;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  background: rgba(14, 15, 16, 0.97);
  border-top: 1px solid var(--frame0bafd-line);
  padding-bottom: env(safe-area-inset-bottom);
  backdrop-filter: blur(8px);
}

.frame0bafd-bnav-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: var(--frame0bafd-bnav-h);
  padding: 7px 2px 6px;
  background: transparent;
  border: 0;
  color: var(--frame0bafd-text-low);
  -webkit-tap-highlight-color: transparent;
}

/* accent indicator segment on top */
.frame0bafd-bnav-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 3px;
  border-radius: 0 0 2px 2px;
  background: transparent;
  transition: width 0.22s var(--frame0bafd-ease), background 0.18s linear;
}

.frame0bafd-bnav-item.frame0bafd-is-here::before {
  width: 30px;
  background: var(--frame0bafd-flame);
}

.frame0bafd-bnav-ico {
  display: grid;
  place-content: center;
  width: 24px;
  height: 24px;
  color: var(--frame0bafd-text-low);
  transition: transform 0.2s var(--frame0bafd-ease), color 0.18s linear;
}

.frame0bafd-bnav-ico svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: fill 0.18s linear;
}

.frame0bafd-bnav-lab {
  font-family: var(--frame0bafd-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* active state: monochrome icon fills with the accent color */
.frame0bafd-bnav-item.frame0bafd-is-here .frame0bafd-bnav-ico {
  color: var(--frame0bafd-flame);
  transform: translateY(-1px);
}

.frame0bafd-bnav-item.frame0bafd-is-here .frame0bafd-bnav-ico svg {
  fill: var(--frame0bafd-flame);
  stroke: var(--frame0bafd-flame);
}

.frame0bafd-bnav-item.frame0bafd-is-here .frame0bafd-bnav-lab {
  color: var(--frame0bafd-text-hi);
}

/* micro-interaction: icon press morph */
.frame0bafd-bnav-item:active .frame0bafd-bnav-ico {
  transform: translateY(-2px) scale(0.9);
}

.frame0bafd-bnav-item:active .frame0bafd-bnav-ico svg {
  fill: var(--frame0bafd-text-mid);
}

/* promo roles get a flame tint even when inactive */
.frame0bafd-bnav-item--promo .frame0bafd-bnav-ico {
  color: #E58A77;
}

/* ==========================================================================
   Motion preferences
   ========================================================================== */
@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;
  }
}

/* ---------- help pages: route cards, diagnostic table and fact rail ---------- */
.frame0bafd-help-intro {
  margin-bottom: 18px;
}

.frame0bafd-help-intro .frame0bafd-h1 {
  max-width: 22ch;
}

.frame0bafd-answer {
  border-left: 3px solid var(--frame0bafd-flame);
  background: linear-gradient(90deg, rgba(255, 99, 71, 0.12), rgba(54, 69, 79, 0.1));
  padding: 12px 13px;
  color: var(--frame0bafd-text-hi);
}

.frame0bafd-action-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 12px 0 22px;
  padding: 2px 0 5px;
}

.frame0bafd-action-strip::-webkit-scrollbar {
  display: none;
}

.frame0bafd-action {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 9px 13px;
  border: 1px solid var(--frame0bafd-flame);
  border-radius: var(--frame0bafd-radius-s);
  background: rgba(255, 99, 71, 0.1);
  color: var(--frame0bafd-text-hi);
  font-family: var(--frame0bafd-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.frame0bafd-action:active {
  background: var(--frame0bafd-flame);
  color: #180705;
}

.frame0bafd-route-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.frame0bafd-route {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid var(--frame0bafd-line);
  background: rgba(47, 47, 47, 0.2);
}

.frame0bafd-route-mark {
  display: grid;
  place-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 99, 71, 0.58);
  border-radius: 50%;
  color: var(--frame0bafd-flame);
  font-family: var(--frame0bafd-mono);
  font-size: 11px;
  font-weight: 700;
}

.frame0bafd-route h3,
.frame0bafd-issue h3,
.frame0bafd-fact h3,
.frame0bafd-condition h3 {
  margin: 0 0 4px;
  font-size: 14.5px;
}

.frame0bafd-route p,
.frame0bafd-issue p,
.frame0bafd-fact p,
.frame0bafd-condition p {
  margin: 0;
  font-size: 13.5px;
}

.frame0bafd-issue-grid {
  display: grid;
  gap: 8px;
}

.frame0bafd-issue {
  padding: 12px;
  border-top: 2px solid var(--frame0bafd-ink-slate);
  background: rgba(54, 69, 79, 0.16);
}

.frame0bafd-issue-label {
  display: block;
  margin-bottom: 6px;
  color: var(--frame0bafd-flame);
  font-family: var(--frame0bafd-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.frame0bafd-help-list {
  margin: 0;
  padding-left: 20px;
}

.frame0bafd-help-list li {
  margin: 0 0 9px;
  padding-left: 3px;
  font-size: 13.5px;
}

.frame0bafd-help-list li::marker {
  color: var(--frame0bafd-flame);
  font-family: var(--frame0bafd-mono);
}

.frame0bafd-callout {
  margin: 14px 0 0;
  padding: 11px 12px;
  border: 1px dashed rgba(255, 99, 71, 0.55);
  color: var(--frame0bafd-text-hi);
  font-size: 13.5px;
}

/* About page uses a horizontal fact rail and condition-led reading order. */
.frame0bafd-fact-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(132px, 1fr));
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 14px 0 24px;
  padding-bottom: 4px;
}

.frame0bafd-fact-rail::-webkit-scrollbar {
  display: none;
}

.frame0bafd-fact {
  min-height: 124px;
  padding: 11px;
  border: 1px solid var(--frame0bafd-line);
  background: var(--frame0bafd-tile-bg);
}

.frame0bafd-fact-number {
  display: block;
  margin-bottom: 12px;
  color: var(--frame0bafd-flame);
  font-family: var(--frame0bafd-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
}

.frame0bafd-condition-list {
  display: grid;
  gap: 10px;
}

.frame0bafd-condition {
  padding: 12px 13px;
  border-left: 3px solid var(--frame0bafd-ink-slate);
  background: rgba(47, 47, 47, 0.2);
}

.frame0bafd-condition strong {
  color: var(--frame0bafd-text-hi);
}

.frame0bafd-resource-band {
  display: grid;
  gap: 8px;
  padding: 13px;
  border: 1px solid var(--frame0bafd-line);
  background: linear-gradient(145deg, rgba(54, 69, 79, 0.28), rgba(255, 99, 71, 0.08));
}

.frame0bafd-resource-band a {
  display: block;
  min-height: 44px;
  padding: 10px 11px;
  border: 1px solid var(--frame0bafd-line-soft);
  background: rgba(12, 12, 12, 0.55);
  color: var(--frame0bafd-text-hi);
}

.frame0bafd-resource-band a:hover {
  border-color: var(--frame0bafd-flame);
  text-decoration: none;
}

.frame0bafd-resource-band small {
  display: block;
  margin-bottom: 3px;
  color: var(--frame0bafd-flame);
  font-family: var(--frame0bafd-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (min-width: 400px) {
  .frame0bafd-issue-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
