/* ==========================================================================
   jiligame.cyou - mobile layer stylesheet
   File    : css/layers-mobile-df6bff.css
   Class   : framebff4e- (all selectors)
   Palette : #A9A9A9 silver / #2E4057 navy / #B8860B dark gold /
             #FFA500 orange / #FFCC33 sunlight
   Canvas  : 320-430px phone frame, centered on wide viewports
   Voice   : monospace accents over a plain reading font, mixed corner
             radii, image tiles with bottom name strips, one sliding
             focus indicator per control cluster, light press feedback
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  --framebff4e-c-silver: #A9A9A9;
  --framebff4e-c-navy: #2E4057;
  --framebff4e-c-navy-deep: #1F2C3D;
  --framebff4e-c-navy-floor: #182431;
  --framebff4e-c-navy-raise: #3A506E;
  --framebff4e-c-gold: #B8860B;
  --framebff4e-c-orange: #FFA500;
  --framebff4e-c-sun: #FFCC33;
  --framebff4e-c-paper: #EAF0F8;

  --framebff4e-line: rgba(169, 169, 169, 0.22);
  --framebff4e-line-gold: rgba(184, 134, 11, 0.55);

  --framebff4e-font-body: system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --framebff4e-font-mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas,
    "Courier New", monospace;

  --framebff4e-r-big: 18px;
  --framebff4e-r-mid: 12px;
  --framebff4e-r-small: 8px;
  --framebff4e-r-pill: 999px;

  --framebff4e-head-h: 104px;
  --framebff4e-bar-h: 62px;
  --framebff4e-pad-x: 12px;

  --framebff4e-shadow: 0 12px 28px rgba(9, 14, 22, 0.5);
  --framebff4e-press: transform 0.14s ease;
}

/* --------------------------------------------------------------------------
   2. Base and reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: #101826;
  color: var(--framebff4e-c-paper);
  font-family: var(--framebff4e-font-body);
  font-size: 15px;
  line-height: 1.62;
  overflow-x: hidden;
}

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

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

h1,
h2,
h3,
p {
  margin: 0;
}

a {
  color: var(--framebff4e-c-sun);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

:focus-visible {
  outline: 2px solid var(--framebff4e-c-sun);
  outline-offset: 2px;
  border-radius: 4px;
}

.framebff4e-noscroll {
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   3. Phone shell - wide screens keep a centered phone canvas
   -------------------------------------------------------------------------- */
.framebff4e-shell {
  position: relative;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background:
    radial-gradient(120% 46% at 50% 0%, rgba(255, 204, 51, 0.08), transparent 60%),
    linear-gradient(180deg, #2A3B52 0%, var(--framebff4e-c-navy) 40%, #22303F 100%);
  overflow-x: hidden;
}

.framebff4e-skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 200;
  background: var(--framebff4e-c-sun);
  color: #1F2C3D;
  font-family: var(--framebff4e-font-mono);
  font-size: 12px;
  padding: 8px 14px;
  border-radius: 0 0 var(--framebff4e-r-small) var(--framebff4e-r-small);
  text-decoration: none;
  transition: top 0.2s ease;
}

.framebff4e-skip:focus {
  top: 0;
}

/* --------------------------------------------------------------------------
   4. Fixed top block - brand tier above action tier
   -------------------------------------------------------------------------- */
.framebff4e-top {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 70;
  background: rgba(24, 36, 49, 0.97);
  border-bottom: 1px solid var(--framebff4e-line-gold);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* brand tier - logo image and site name only */
.framebff4e-top-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px var(--framebff4e-pad-x) 7px;
  border-bottom: 1px dashed rgba(169, 169, 169, 0.16);
}

.framebff4e-logo {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  border: 1.5px solid var(--framebff4e-c-gold);
  box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.18);
  object-fit: cover;
  flex: none;
}

.framebff4e-word {
  font-family: var(--framebff4e-font-mono);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #FFFFFF;
}

.framebff4e-word::after {
  content: "";
  display: block;
  width: 46px;
  height: 2px;
  margin-top: 2px;
  background: linear-gradient(90deg, var(--framebff4e-c-orange), var(--framebff4e-c-sun));
  border-radius: 2px;
}

/* action tier - register / login / menu live outside the brand area */
.framebff4e-top-acts {
  display: grid;
  grid-template-columns: 1fr 1fr 46px;
  gap: 8px;
  padding: 8px var(--framebff4e-pad-x) 9px;
}

.framebff4e-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1.5px solid transparent;
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: var(--framebff4e-press), filter 0.14s ease;
}

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

.framebff4e-btn-solid {
  background: linear-gradient(180deg, var(--framebff4e-c-orange), #F08C00);
  border-color: #C77E00;
  color: #241A05;
  box-shadow: 0 4px 14px rgba(255, 165, 0, 0.32);
}

.framebff4e-btn-ghost {
  background: rgba(255, 204, 51, 0.05);
  border-color: var(--framebff4e-c-gold);
  color: var(--framebff4e-c-sun);
}

.framebff4e-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 10px;
  background: rgba(169, 169, 169, 0.12);
  border: 1px solid var(--framebff4e-line);
  color: var(--framebff4e-c-paper);
  transition: var(--framebff4e-press);
}

.framebff4e-menu-btn:active {
  transform: scale(0.92);
}

.framebff4e-menu-btn svg {
  width: 20px;
  height: 20px;
}

/* --------------------------------------------------------------------------
   5. Full-height menu layer
   -------------------------------------------------------------------------- */
.framebff4e-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  visibility: hidden;
  transition: visibility 0s linear 0.32s;
}

.framebff4e-menu-open {
  visibility: visible;
  transition-delay: 0s;
}

.framebff4e-menu-veil {
  position: absolute;
  inset: 0;
  background: rgba(9, 14, 22, 0.68);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.framebff4e-menu-open .framebff4e-menu-veil {
  opacity: 1;
}

.framebff4e-menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 84%;
  max-width: 340px;
  background: linear-gradient(180deg, #22303F 0%, #1B2836 100%);
  border-left: 1px solid var(--framebff4e-line-gold);
  box-shadow: var(--framebff4e-shadow);
  transform: translateX(103%);
  transition: transform 0.3s cubic-bezier(0.22, 0.9, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 0 0 calc(18px + env(safe-area-inset-bottom));
}

.framebff4e-menu-open .framebff4e-menu-panel {
  transform: translateX(0);
}

.framebff4e-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--framebff4e-line);
  position: sticky;
  top: 0;
  background: #1B2836;
}

.framebff4e-menu-head span {
  font-family: var(--framebff4e-font-mono);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--framebff4e-c-silver);
}

.framebff4e-menu-close {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(169, 169, 169, 0.12);
  border: 1px solid var(--framebff4e-line);
  color: var(--framebff4e-c-paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--framebff4e-press);
}

.framebff4e-menu-close:active {
  transform: scale(0.9);
}

.framebff4e-menu-close svg {
  width: 18px;
  height: 18px;
}

.framebff4e-menu-group {
  padding: 14px 16px 4px;
}

.framebff4e-menu-eyebrow {
  font-family: var(--framebff4e-font-mono);
  font-size: 10.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--framebff4e-c-gold);
  margin: 0 0 6px 2px;
}

.framebff4e-menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 46px;
  padding: 10px 12px;
  margin: 0 0 4px;
  border-radius: 10px;
  border: 1px solid transparent;
  color: var(--framebff4e-c-paper);
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.framebff4e-menu-link em {
  font-style: normal;
  font-family: var(--framebff4e-font-mono);
  font-size: 11px;
  color: var(--framebff4e-c-silver);
}

.framebff4e-menu-link:active {
  background: rgba(255, 204, 51, 0.1);
}

.framebff4e-menu-link-on {
  background: rgba(255, 204, 51, 0.12);
  border-color: rgba(255, 204, 51, 0.4);
}

.framebff4e-menu-link-on em {
  color: var(--framebff4e-c-sun);
}

.framebff4e-menu-cta {
  margin: 16px 16px 4px;
  width: calc(100% - 32px);
}

/* --------------------------------------------------------------------------
   6. Main canvas
   -------------------------------------------------------------------------- */
.framebff4e-main {
  padding: calc(var(--framebff4e-head-h) + 16px + env(safe-area-inset-top))
    var(--framebff4e-pad-x)
    calc(var(--framebff4e-bar-h) + 30px + env(safe-area-inset-bottom));
}

/* masthead - the single H1 */
.framebff4e-masthead {
  padding: 2px 0 0;
}

.framebff4e-title {
  font-size: 21px;
  line-height: 1.28;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #FFFFFF;
}

.framebff4e-title mark {
  background: none;
  color: var(--framebff4e-c-sun);
}

.framebff4e-lede {
  margin-top: 10px;
  color: #C9D4E4;
  font-size: 14.5px;
}

.framebff4e-lede + .framebff4e-lede {
  margin-top: 8px;
}

/* --------------------------------------------------------------------------
   7. Hero carousel - three local promo banners
   -------------------------------------------------------------------------- */
.framebff4e-hero {
  position: relative;
  margin-top: 14px;
  border-radius: var(--framebff4e-r-big) var(--framebff4e-r-big) 8px 8px;
  border: 1px solid var(--framebff4e-line-gold);
  overflow: hidden;
  background: var(--framebff4e-c-navy-deep);
  box-shadow: var(--framebff4e-shadow);
}

.framebff4e-hero-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.25, 0.9, 0.3, 1);
  will-change: transform;
}

.framebff4e-hero-slide {
  position: relative;
  flex: 0 0 100%;
  min-width: 100%;
  display: block;
  padding: 0;
  border: 0;
  background: var(--framebff4e-c-navy-deep);
  text-align: left;
  transition: var(--framebff4e-press);
}

.framebff4e-hero-slide:active {
  transform: scale(0.99);
}

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

.framebff4e-hero-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 14px 12px;
  background: linear-gradient(180deg, rgba(15, 23, 33, 0) 0%, rgba(15, 23, 33, 0.88) 62%);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.framebff4e-hero-tag {
  font-family: var(--framebff4e-font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--framebff4e-c-sun);
}

.framebff4e-hero-title {
  font-size: 16.5px;
  line-height: 1.3;
  font-weight: 800;
  color: #FFFFFF;
}

.framebff4e-hero-cta {
  align-self: flex-start;
  margin-top: 4px;
  font-family: var(--framebff4e-font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #241A05;
  background: linear-gradient(180deg, var(--framebff4e-c-sun), var(--framebff4e-c-orange));
  padding: 6px 12px;
  border-radius: var(--framebff4e-r-pill);
}

/* indicator - the sliding focus thumb */
.framebff4e-hero-dots {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 8px 10px;
  background: rgba(24, 36, 49, 0.9);
  border-top: 1px solid var(--framebff4e-line);
}

.framebff4e-dot {
  height: 22px;
  border: 0;
  background: transparent;
  position: relative;
  border-radius: var(--framebff4e-r-pill);
}

.framebff4e-dot::before {
  content: "";
  position: absolute;
  left: 20%;
  right: 20%;
  top: 8px;
  height: 6px;
  border-radius: var(--framebff4e-r-pill);
  background: rgba(169, 169, 169, 0.4);
  transition: background 0.2s ease;
}

.framebff4e-dot-on::before {
  background: rgba(255, 204, 51, 0.55);
}

.framebff4e-dot-thumb {
  position: absolute;
  top: 8px;
  left: 4px;
  width: calc((100% - 8px - 8px) / 3);
  height: 6px;
  margin: 0 4px;
  border-radius: var(--framebff4e-r-pill);
  background: linear-gradient(90deg, var(--framebff4e-c-orange), var(--framebff4e-c-sun));
  transition: transform 0.35s cubic-bezier(0.3, 0.9, 0.3, 1);
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   8. Category rail - horizontal chip scroller
   -------------------------------------------------------------------------- */
.framebff4e-rail {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 14px 2px 10px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

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

.framebff4e-rail {
  scrollbar-width: none;
}

.framebff4e-chip {
  flex: none;
  scroll-snap-align: start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: var(--framebff4e-r-pill);
  border: 1px solid var(--framebff4e-line);
  background: rgba(31, 44, 61, 0.75);
  color: var(--framebff4e-c-paper);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.framebff4e-chip b {
  font-family: var(--framebff4e-font-mono);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--framebff4e-c-gold);
}

.framebff4e-chip-on {
  border-color: var(--framebff4e-c-sun);
  background: rgba(255, 204, 51, 0.14);
  color: var(--framebff4e-c-sun);
}

.framebff4e-chip-on b {
  color: var(--framebff4e-c-sun);
}

/* --------------------------------------------------------------------------
   9. Game rooms
   -------------------------------------------------------------------------- */
.framebff4e-room {
  margin-top: 22px;
  scroll-margin-top: calc(var(--framebff4e-head-h) + 14px);
}

.framebff4e-room-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--framebff4e-line-gold);
}

.framebff4e-room-idx {
  font-family: var(--framebff4e-font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--framebff4e-c-gold);
}

.framebff4e-room-title {
  font-size: 17px;
  font-weight: 800;
  color: #FFFFFF;
  flex: 1 1 auto;
}

.framebff4e-room-count {
  font-family: var(--framebff4e-font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--framebff4e-c-silver);
  border: 1px solid var(--framebff4e-line);
  border-radius: var(--framebff4e-r-pill);
  padding: 2px 9px;
  white-space: nowrap;
}

.framebff4e-room-note {
  margin: 8px 0 2px;
  font-size: 13.5px;
  color: #B9C6D8;
}

.framebff4e-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 6px;
  margin-top: 10px;
}

/* tile - image with a bottom name strip */
.framebff4e-tile {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: center;
  transition: var(--framebff4e-press);
}

.framebff4e-tile:active {
  transform: scale(0.94);
}

.framebff4e-tile-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--framebff4e-r-mid) var(--framebff4e-r-mid) 5px 5px;
  border: 1px solid rgba(169, 169, 169, 0.3);
  background: #24354C;
  transition: border-color 0.2s ease;
}

.framebff4e-room--hot .framebff4e-tile-img {
  border-color: rgba(255, 204, 51, 0.5);
  box-shadow: 0 0 0 1px rgba(255, 165, 0, 0.12);
}

.framebff4e-tile-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 5px;
  min-height: 2.7em;
  padding: 4px 4px 5px;
  border-radius: 5px;
  background: linear-gradient(180deg, rgba(184, 134, 11, 0.2), rgba(184, 134, 11, 0.08));
  border-left: 2px solid var(--framebff4e-c-gold);
  font-family: var(--framebff4e-font-mono);
  font-size: 9.5px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--framebff4e-c-paper);
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   10. Reading modules - question-driven guidance blocks
   -------------------------------------------------------------------------- */
.framebff4e-note {
  margin-top: 22px;
  background: linear-gradient(180deg, #2A3B52 0%, #243349 100%);
  border: 1px solid var(--framebff4e-line);
  border-radius: var(--framebff4e-r-big) var(--framebff4e-r-big) 7px 7px;
  padding: 16px 14px 18px;
  scroll-margin-top: calc(var(--framebff4e-head-h) + 14px);
}

.framebff4e-note-tag {
  display: inline-block;
  font-family: var(--framebff4e-font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #241A05;
  background: linear-gradient(90deg, var(--framebff4e-c-sun), var(--framebff4e-c-orange));
  border-radius: 4px 10px 4px 4px;
  padding: 3px 9px;
  margin-bottom: 10px;
}

.framebff4e-note-title {
  font-size: 18.5px;
  line-height: 1.32;
  font-weight: 800;
  color: #FFFFFF;
}

.framebff4e-note-lead {
  margin-top: 9px;
  font-size: 14px;
  color: #C9D4E4;
}

.framebff4e-note-lead strong {
  color: var(--framebff4e-c-sun);
  font-weight: 700;
}

/* trust rows - numbered mono markers */
.framebff4e-trust-list {
  list-style: none;
  counter-reset: framebff4e-trust;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.framebff4e-trust-row {
  counter-increment: framebff4e-trust;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: start;
  background: rgba(31, 44, 61, 0.55);
  border: 1px solid var(--framebff4e-line);
  border-radius: 10px 4px 10px 4px;
  padding: 10px;
  font-size: 13.5px;
  color: #C9D4E4;
}

.framebff4e-trust-row::before {
  content: counter(framebff4e-trust, decimal-leading-zero);
  font-family: var(--framebff4e-font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--framebff4e-c-sun);
  background: rgba(255, 204, 51, 0.1);
  border: 1px solid rgba(255, 204, 51, 0.35);
  border-radius: 8px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.framebff4e-trust-row b {
  color: #FFFFFF;
}

/* route steps - compact vertical timeline */
.framebff4e-route {
  list-style: none;
  margin-top: 12px;
  position: relative;
  padding-left: 6px;
}

.framebff4e-route::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 12px;
  bottom: 14px;
  width: 2px;
  background: linear-gradient(180deg, var(--framebff4e-c-orange), rgba(184, 134, 11, 0.15));
  border-radius: 2px;
}

.framebff4e-route-step {
  position: relative;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 10px;
  padding: 6px 0 10px;
  font-size: 13.5px;
  color: #C9D4E4;
}

.framebff4e-route-n {
  font-family: var(--framebff4e-font-mono);
  font-weight: 700;
  font-size: 12px;
  color: #241A05;
  background: var(--framebff4e-c-sun);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 4px #2A3B52;
}

.framebff4e-route-step b {
  color: #FFFFFF;
}

/* trick rows - gold left rules with mono tags */
.framebff4e-trick-list {
  list-style: none;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.framebff4e-trick-row {
  border-left: 3px solid var(--framebff4e-c-gold);
  background: rgba(31, 44, 61, 0.5);
  border-radius: 4px 10px 10px 4px;
  padding: 9px 11px;
  font-size: 13.5px;
  color: #C9D4E4;
}

.framebff4e-trick-row b {
  display: block;
  font-family: var(--framebff4e-font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--framebff4e-c-sun);
  margin-bottom: 3px;
}

/* play-style compare cards */
.framebff4e-style-grid {
  list-style: none;
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.framebff4e-style-card {
  background: rgba(31, 44, 61, 0.6);
  border: 1px solid var(--framebff4e-line);
  border-radius: 12px 12px 4px 4px;
  padding: 11px 10px;
}

.framebff4e-style-card h3 {
  font-family: var(--framebff4e-font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--framebff4e-c-sun);
  margin-bottom: 5px;
}

.framebff4e-style-card p {
  font-size: 12.5px;
  line-height: 1.5;
  color: #C2CEDE;
}

/* pros / limits split */
.framebff4e-balance {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.framebff4e-balance-col {
  border-radius: 12px 4px 12px 4px;
  padding: 11px 12px;
}

.framebff4e-balance-col--pro {
  background: rgba(255, 204, 51, 0.09);
  border: 1px solid rgba(255, 204, 51, 0.35);
}

.framebff4e-balance-col--lim {
  background: rgba(169, 169, 169, 0.08);
  border: 1px solid var(--framebff4e-line);
}

.framebff4e-balance-col h3 {
  font-family: var(--framebff4e-font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.framebff4e-balance-col--pro h3 {
  color: var(--framebff4e-c-sun);
}

.framebff4e-balance-col--lim h3 {
  color: var(--framebff4e-c-silver);
}

.framebff4e-balance-col ul {
  list-style: none;
}

.framebff4e-balance-col li {
  position: relative;
  padding: 4px 0 4px 16px;
  font-size: 13px;
  color: #C9D4E4;
}

.framebff4e-balance-col--pro li::before {
  content: "+";
  position: absolute;
  left: 0;
  font-family: var(--framebff4e-font-mono);
  font-weight: 700;
  color: var(--framebff4e-c-sun);
}

.framebff4e-balance-col--lim li::before {
  content: "!";
  position: absolute;
  left: 0;
  font-family: var(--framebff4e-font-mono);
  font-weight: 700;
  color: var(--framebff4e-c-silver);
}

/* --------------------------------------------------------------------------
   11. Extended site footer (home only)
   -------------------------------------------------------------------------- */
.framebff4e-xf {
  margin-top: 26px;
  border-top: 2px solid var(--framebff4e-line-gold);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.framebff4e-xf-eyebrow {
  font-family: var(--framebff4e-font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--framebff4e-c-gold);
  margin-bottom: 9px;
}

/* promo pair + compact promo rows */
.framebff4e-xpromo-duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.framebff4e-xbtn {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 58px;
  padding: 10px 10px;
  border-radius: 12px 12px 5px 5px;
  border: 1.5px solid transparent;
  text-align: left;
  transition: var(--framebff4e-press);
}

.framebff4e-xbtn:active {
  transform: scale(0.96);
}

.framebff4e-xbtn b {
  font-size: 13.5px;
  line-height: 1.25;
}

.framebff4e-xbtn small {
  font-family: var(--framebff4e-font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.framebff4e-xbtn--solid {
  background: linear-gradient(180deg, var(--framebff4e-c-orange), #EE8700);
  border-color: #C77E00;
  color: #241A05;
  box-shadow: 0 4px 14px rgba(255, 165, 0, 0.28);
}

.framebff4e-xbtn--solid small {
  color: rgba(36, 26, 5, 0.75);
}

.framebff4e-xbtn--ghost {
  background: rgba(255, 204, 51, 0.05);
  border-color: var(--framebff4e-c-gold);
  color: var(--framebff4e-c-sun);
}

.framebff4e-xbtn--ghost small {
  color: var(--framebff4e-c-silver);
}

.framebff4e-xpromo-rows {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.framebff4e-xrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  background: rgba(31, 44, 61, 0.6);
  border: 1px solid var(--framebff4e-line);
  border-radius: 10px 4px 4px 10px;
  color: var(--framebff4e-c-paper);
  font-size: 13.5px;
  font-weight: 600;
  text-align: left;
  transition: var(--framebff4e-press), border-color 0.16s ease;
}

.framebff4e-xrow:active {
  transform: scale(0.98);
  border-color: rgba(255, 204, 51, 0.45);
}

.framebff4e-xrow span {
  font-family: var(--framebff4e-font-mono);
  font-size: 13px;
  color: var(--framebff4e-c-orange);
}

/* brand blurb */
.framebff4e-xbrand p {
  font-size: 13px;
  color: #B9C6D8;
}

/* page directory */
.framebff4e-xdir {
  display: grid;
  gap: 12px;
}

.framebff4e-xdir-group h3 {
  font-size: 13.5px;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 6px;
}

.framebff4e-xdir-group ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.framebff4e-xdir-group a {
  display: block;
  min-height: 42px;
  padding: 8px 10px;
  background: rgba(31, 44, 61, 0.5);
  border: 1px solid var(--framebff4e-line);
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  color: #D7E1EE;
  transition: border-color 0.16s ease;
}

.framebff4e-xdir-group a:active {
  border-color: rgba(255, 204, 51, 0.5);
}

/* conditional disclaimer */
.framebff4e-xdisc {
  border-left: 3px solid var(--framebff4e-c-silver);
  background: rgba(169, 169, 169, 0.07);
  border-radius: 4px 10px 10px 4px;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.6;
  color: #A8B4C6;
}

/* --------------------------------------------------------------------------
   12. Help-page reading modules
   -------------------------------------------------------------------------- */
.framebff4e-help-main {
  padding-top: calc(var(--framebff4e-head-h) + 18px + env(safe-area-inset-top));
}

.framebff4e-help-hero,
.framebff4e-help-panel,
.framebff4e-help-faq,
.framebff4e-help-next,
.framebff4e-guide-map,
.framebff4e-guide-block,
.framebff4e-guide-promos,
.framebff4e-guide-faq,
.framebff4e-guide-end {
  margin-top: 20px;
  padding: 16px 14px 18px;
  border: 1px solid var(--framebff4e-line);
  border-radius: 18px 18px 7px 7px;
  background: linear-gradient(180deg, #2A3B52 0%, #243349 100%);
}

.framebff4e-help-hero { border-color: var(--framebff4e-line-gold); }
.framebff4e-help-hero-mark,
.framebff4e-help-kicker {
  font-family: var(--framebff4e-font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--framebff4e-c-sun);
}
.framebff4e-help-hero h2,
.framebff4e-help-panel h2,
.framebff4e-help-faq h2,
.framebff4e-help-next h2,
.framebff4e-guide-map b,
.framebff4e-guide-block h2,
.framebff4e-guide-promos h2,
.framebff4e-guide-faq h2,
.framebff4e-guide-end h2 { margin-top: 7px; font-size: 19px; line-height: 1.3; color: #FFF; }
.framebff4e-help-hero p,
.framebff4e-help-panel > p,
.framebff4e-help-faq > p,
.framebff4e-help-next > p,
.framebff4e-guide-map > p,
.framebff4e-guide-block p,
.framebff4e-guide-promos > p,
.framebff4e-guide-faq > p,
.framebff4e-guide-end > p { margin-top: 9px; font-size: 13.5px; color: #C9D4E4; }
.framebff4e-help-actions { display: grid; gap: 8px; margin-top: 13px; }
.framebff4e-help-actions .framebff4e-xbtn { width: 100%; }
.framebff4e-help-steps,
.framebff4e-help-checklist,
.framebff4e-guide-timeline { margin: 12px 0 0 19px; padding: 0; color: #C9D4E4; font-size: 13.5px; }
.framebff4e-help-steps li,
.framebff4e-help-checklist li,
.framebff4e-guide-timeline li { padding: 5px 0 5px 3px; }
.framebff4e-help-steps b,
.framebff4e-guide-timeline b { color: #FFF; }
.framebff4e-help-panel--dark { background: #1B2836; }
.framebff4e-help-panel--accent { border-color: rgba(255, 204, 51, .45); }
.framebff4e-help-columns,
.framebff4e-help-rule-grid,
.framebff4e-guide-mini-grid,
.framebff4e-room-guide,
.framebff4e-stop-grid,
.framebff4e-guide-promo-grid { display: grid; gap: 8px; margin-top: 12px; }
.framebff4e-help-columns > div,
.framebff4e-help-rule-grid > div,
.framebff4e-guide-mini-grid > div,
.framebff4e-room-guide article,
.framebff4e-stop-grid > div { padding: 10px; border: 1px solid var(--framebff4e-line); border-radius: 10px 4px 10px 4px; background: rgba(31,44,61,.55); }
.framebff4e-help-columns h3,
.framebff4e-guide-mini-grid h3,
.framebff4e-room-guide h3 { color: var(--framebff4e-c-sun); font-family: var(--framebff4e-font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.framebff4e-help-columns ul,
.framebff4e-guide-mini-grid ul { margin: 6px 0 0 16px; color: #C9D4E4; font-size: 12.5px; }
.framebff4e-choice-list article { display: grid; grid-template-columns: 34px 1fr; gap: 10px; margin-top: 10px; padding: 10px; background: rgba(31,44,61,.55); border-left: 3px solid var(--framebff4e-c-gold); border-radius: 4px 10px 10px 4px; }
.framebff4e-choice-number { display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; border-radius: 50%; background: var(--framebff4e-c-sun); color: #241A05; font-family: var(--framebff4e-font-mono); font-weight: 700; }
.framebff4e-choice-list h3 { color: #FFF; font-size: 14px; }
.framebff4e-choice-list p { margin-top: 3px; color: #C9D4E4; font-size: 12.5px; }
.framebff4e-help-rule-grid b,
.framebff4e-stop-grid b { display: block; color: var(--framebff4e-c-sun); font-family: var(--framebff4e-font-mono); font-size: 12px; text-transform: uppercase; }
.framebff4e-help-rule-grid span,
.framebff4e-stop-grid span { display: block; margin-top: 4px; color: #C9D4E4; font-size: 12.5px; }
.framebff4e-help-faq details,
.framebff4e-guide-faq details { border-top: 1px solid var(--framebff4e-line); padding: 10px 0; color: #C9D4E4; font-size: 13px; }
.framebff4e-help-faq details:first-of-type,
.framebff4e-guide-faq details:first-of-type { margin-top: 12px; }
.framebff4e-help-faq summary,
.framebff4e-guide-faq summary { cursor: pointer; color: #FFF; font-weight: 700; }
.framebff4e-help-faq details p,
.framebff4e-guide-faq details p { margin-top: 6px; }
.framebff4e-guide-map { border-radius: 8px 18px 8px 18px; }
.framebff4e-guide-map-head { display: grid; gap: 5px; }
.framebff4e-guide-map-head span,
.framebff4e-guide-index { color: var(--framebff4e-c-orange); font-family: var(--framebff4e-font-mono); font-size: 11px; font-weight: 700; letter-spacing: .13em; }
.framebff4e-guide-map-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 13px; }
.framebff4e-guide-map-row a { display: grid; gap: 2px; min-height: 46px; padding: 7px; border: 1px solid var(--framebff4e-line); border-radius: 8px; text-decoration: none; color: #FFF; font-size: 11px; font-weight: 700; }
.framebff4e-guide-map-row span { color: var(--framebff4e-c-sun); font-family: var(--framebff4e-font-mono); font-size: 10px; }
.framebff4e-guide-block { display: grid; grid-template-columns: 32px 1fr; gap: 9px; border-radius: 8px 18px 8px 18px; }
.framebff4e-guide-block--wallet { border-color: rgba(255,165,0,.45); }
.framebff4e-guide-block--session { background: linear-gradient(180deg, #1B2836, #243349); }
.framebff4e-guide-block--review { border-color: rgba(255,204,51,.4); }
.framebff4e-guide-index { padding-top: 2px; }
.framebff4e-guide-mini-grid h3 { margin-bottom: 3px; }
.framebff4e-guide-mini-grid li { padding: 2px 0; }
.framebff4e-room-guide article p { font-size: 12.5px; }
.framebff4e-guide-promos .framebff4e-xbtn,
.framebff4e-guide-promos .framebff4e-xrow { width: 100%; }
.framebff4e-guide-promo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.framebff4e-guide-promo-grid .framebff4e-xrow { grid-column: 1 / -1; }

/* --------------------------------------------------------------------------
   13. Common footer
   -------------------------------------------------------------------------- */
.framebff4e-foot {
  margin-top: 24px;
  padding: 14px 4px 4px;
  border-top: 1px dashed var(--framebff4e-line);
  text-align: center;
}

.framebff4e-foot p {
  font-family: var(--framebff4e-font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  line-height: 1.7;
  color: var(--framebff4e-c-silver);
}

.framebff4e-foot b {
  color: var(--framebff4e-c-sun);
  font-weight: 700;
}

.framebff4e-foot nav {
  margin-top: 6px;
  font-family: var(--framebff4e-font-mono);
  font-size: 10.5px;
}

.framebff4e-foot nav a,
.framebff4e-foot nav button {
  color: var(--framebff4e-c-sun);
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* --------------------------------------------------------------------------
   14. Bottom action bar - five segmented roles
   -------------------------------------------------------------------------- */
.framebff4e-bn {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 75;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  min-height: var(--framebff4e-bar-h);
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  background: rgba(21, 31, 43, 0.98);
  border-top: 1px solid var(--framebff4e-line-gold);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.framebff4e-bn-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 48px;
  border: 0;
  background: transparent;
  padding: 4px 2px;
  border-radius: 12px 12px 6px 6px;
  color: var(--framebff4e-c-silver);
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease;
}

.framebff4e-bn-item:active {
  transform: scale(0.93);
}

/* containerized symbol tile */
.framebff4e-bn-ico {
  width: 34px;
  height: 28px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(169, 169, 169, 0.12);
  border: 1px solid var(--framebff4e-line);
  transition: background 0.18s ease, border-color 0.18s ease;
}

.framebff4e-bn-ico svg {
  width: 16px;
  height: 16px;
}

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

/* active role sits on a supporting background block */
.framebff4e-bn-item-on {
  background: linear-gradient(180deg, rgba(255, 204, 51, 0.16), rgba(255, 204, 51, 0.02));
  color: var(--framebff4e-c-sun);
}

.framebff4e-bn-item-on .framebff4e-bn-ico {
  background: linear-gradient(180deg, var(--framebff4e-c-sun), var(--framebff4e-c-orange));
  border-color: #C77E00;
  color: #241A05;
}

.framebff4e-bn-item--promo .framebff4e-bn-ico {
  background: rgba(255, 165, 0, 0.16);
  border-color: rgba(255, 165, 0, 0.5);
  color: var(--framebff4e-c-orange);
}

.framebff4e-bn-item--promo {
  color: var(--framebff4e-c-orange);
}

/* --------------------------------------------------------------------------
   14. Utilities and motion preferences
   -------------------------------------------------------------------------- */
.framebff4e-mono {
  font-family: var(--framebff4e-font-mono);
}

.framebff4e-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;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------------------
   15. Breakpoints - comfortable growth from 320 up to 430
   -------------------------------------------------------------------------- */
@media (min-width: 375px) {
  body {
    font-size: 15.5px;
  }

  .framebff4e-title {
    font-size: 23px;
  }

  .framebff4e-grid {
    gap: 14px 8px;
  }

  .framebff4e-tile-name {
    font-size: 10px;
  }

  .framebff4e-hero-title {
    font-size: 18px;
  }
}

/* 5 columns once the canvas can spare the width */
@media (min-width: 402px) {
  .framebff4e-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* wide viewport: keep the phone canvas and frame it */
@media (min-width: 431px) {
  body {
    background:
      radial-gradient(60% 40% at 50% 0%, rgba(255, 165, 0, 0.06), transparent 70%),
      #101826;
  }

  .framebff4e-shell {
    border-left: 1px solid rgba(184, 134, 11, 0.35);
    border-right: 1px solid rgba(184, 134, 11, 0.35);
    box-shadow: 0 0 60px rgba(8, 13, 20, 0.65);
  }
}
