/* ==========================================================================
   megafunalo - visuals-responsive-aebea8.css
   Mobile-first (320-430px) canvas. Class prefix: framebea8c-
   Palette anchors: #0D1117 (bg), #2C3E50 (slate zone), #696969 (dim ink).
   Design notes: humanist headings, low-radius zoned layout, grouped cover
   cards, compact metric rhythm, state-colour-only motion, square CTAs.
   ========================================================================== */

:root {
  --framebea8c-bg: #0D1117;
  --framebea8c-bg-zoned: #141C28;
  --framebea8c-bg-elevated: #1B2535;
  --framebea8c-bg-raised: #232F42;
  --framebea8c-slate: #2C3E50;
  --framebea8c-ink: #ECEFF4;
  --framebea8c-ink-strong: #FFFFFF;
  --framebea8c-ink-muted: #9DB0C4;
  --framebea8c-ink-dim: #696969;
  --framebea8c-gold: #F5C518;
  --framebea8c-gold-soft: #FFD75E;
  --framebea8c-coral: #FF6B4A;
  --framebea8c-emerald: #36B98C;
  --framebea8c-azure: #3DA8E0;
  --framebea8c-border: rgba(236, 239, 244, 0.10);
  --framebea8c-border-strong: rgba(236, 239, 244, 0.22);
  --framebea8c-radius-xs: 2px;
  --framebea8c-radius-sm: 4px;
  --framebea8c-radius-md: 6px;
  --framebea8c-radius-lg: 10px;
  --framebea8c-shadow-soft: 0 6px 18px rgba(0, 0, 0, 0.45);
  --framebea8c-shadow-lift: 0 12px 30px rgba(0, 0, 0, 0.55);
  --framebea8c-header-h: 56px;
  --framebea8c-bottomnav-h: 64px;
  --framebea8c-canvas: 430px;
  --framebea8c-font-human: "Humanist", "Source Sans Pro", "Segoe UI", system-ui, sans-serif;
  --framebea8c-font-body: "Inter", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

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

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

body {
  margin: 0;
  padding: 0;
  background: #06090F;
  color: var(--framebea8c-ink);
  font-family: var(--framebea8c-font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--framebea8c-gold-soft);
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

button {
  font-family: inherit;
}

:focus-visible {
  outline: 2px solid var(--framebea8c-gold);
  outline-offset: 2px;
}

/* ----- Mobile canvas wrapper (centered on widescreen) ----- */
.framebea8c-canvas {
  position: relative;
  max-width: var(--framebea8c-canvas);
  margin: 0 auto;
  min-height: 100vh;
  background: var(--framebea8c-bg);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

/* ----- Top header ----- */
.framebea8c-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  min-height: var(--framebea8c-header-h);
  background: linear-gradient(180deg, #101723 0%, #0D1117 100%);
  border-bottom: 1px solid var(--framebea8c-border-strong);
}

.framebea8c-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.framebea8c-logo {
  width: 36px;
  height: 36px;
  border-radius: var(--framebea8c-radius-sm);
  object-fit: cover;
  border: 1px solid var(--framebea8c-border-strong);
  background: #0B1018;
  flex-shrink: 0;
}

.framebea8c-brand-name {
  font-family: var(--framebea8c-font-human);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.2px;
  color: var(--framebea8c-ink-strong);
  white-space: nowrap;
}

.framebea8c-brand-name span {
  color: var(--framebea8c-gold);
}

.framebea8c-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.framebea8c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 36px;
  padding: 8px 12px;
  font-family: var(--framebea8c-font-human);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: var(--framebea8c-radius-xs);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}

.framebea8c-btn--ghost {
  background: transparent;
  color: var(--framebea8c-ink);
  border-color: var(--framebea8c-border-strong);
}

.framebea8c-btn--ghost:hover {
  background: var(--framebea8c-bg-elevated);
  text-decoration: none;
}

.framebea8c-btn--gold {
  background: var(--framebea8c-gold);
  color: #1A1300;
}

.framebea8c-btn--gold:hover {
  background: var(--framebea8c-gold-soft);
  text-decoration: none;
}

.framebea8c-btn--coral {
  background: var(--framebea8c-coral);
  color: #1A0600;
}

.framebea8c-btn--coral:hover {
  background: #FF8264;
  text-decoration: none;
}

.framebea8c-btn--outline {
  background: transparent;
  color: var(--framebea8c-gold);
  border-color: var(--framebea8c-gold);
}

.framebea8c-btn--outline:hover {
  background: rgba(245, 197, 24, 0.12);
  text-decoration: none;
}

.framebea8c-btn--block {
  width: 100%;
}

.framebea8c-menubtn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--framebea8c-bg-elevated);
  border: 1px solid var(--framebea8c-border-strong);
  border-radius: var(--framebea8c-radius-xs);
  color: var(--framebea8c-ink);
  cursor: pointer;
}

.framebea8c-menubtn:hover {
  background: var(--framebea8c-bg-raised);
}

.framebea8c-menubtn svg {
  width: 18px;
  height: 18px;
}

/* ----- Layered dropdown menu ----- */
.framebea8c-menu {
  position: absolute;
  top: var(--framebea8c-header-h);
  left: 0;
  right: 0;
  z-index: 39;
  background: var(--framebea8c-bg-zoned);
  border-bottom: 1px solid var(--framebea8c-border-strong);
  box-shadow: var(--framebea8c-shadow-lift);
  padding: 10px 12px 14px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.22s ease, opacity 0.18s ease, padding 0.18s ease;
  padding-top: 0;
  padding-bottom: 0;
}

.framebea8c-menu[data-open="true"] {
  max-height: 560px;
  opacity: 1;
  padding-top: 10px;
  padding-bottom: 14px;
}

.framebea8c-menu-title {
  font-family: var(--framebea8c-font-human);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--framebea8c-ink-dim);
  margin: 8px 4px 6px;
}

.framebea8c-menu-title:first-child {
  margin-top: 0;
}

.framebea8c-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.framebea8c-menu-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--framebea8c-bg-elevated);
  border: 1px solid var(--framebea8c-border);
  border-radius: var(--framebea8c-radius-xs);
  color: var(--framebea8c-ink);
  font-size: 13px;
  font-weight: 600;
  min-height: 44px;
}

.framebea8c-menu-link:hover {
  background: var(--framebea8c-bg-raised);
  color: var(--framebea8c-gold-soft);
  text-decoration: none;
}

.framebea8c-menu-link .framebea8c-menu-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--framebea8c-gold);
  flex-shrink: 0;
}

.framebea8c-menu-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: var(--framebea8c-ink-muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

/* ----- Main content shell ----- */
.framebea8c-main {
  padding-bottom: calc(var(--framebea8c-bottomnav-h) + 16px);
}

.framebea8c-section {
  padding: 18px 12px;
  border-bottom: 1px solid var(--framebea8c-border);
}

.framebea8c-section--alt {
  background: var(--framebea8c-bg-zoned);
}

/* ----- Hero carousel ----- */
.framebea8c-hero {
  padding: 14px 12px 6px;
}

.framebea8c-carousel {
  position: relative;
  border: 1px solid var(--framebea8c-border-strong);
  border-radius: var(--framebea8c-radius-md);
  overflow: hidden;
  background: #070B12;
}

.framebea8c-carousel-viewport {
  overflow: hidden;
}

.framebea8c-carousel-track {
  display: flex;
  width: 100%;
  transition: transform 0.5s ease;
}

.framebea8c-slide {
  position: relative;
  flex: 0 0 100%;
  display: block;
  cursor: pointer;
}

.framebea8c-slide img {
  width: 100%;
  height: 168px;
  object-fit: cover;
  display: block;
}

.framebea8c-slide-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 12px;
  background: linear-gradient(180deg, rgba(13, 17, 23, 0) 0%, rgba(13, 17, 23, 0.88) 70%);
  color: var(--framebea8c-ink-strong);
}

.framebea8c-slide-title {
  font-family: var(--framebea8c-font-human);
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 2px;
}

.framebea8c-slide-sub {
  font-size: 12px;
  color: var(--framebea8c-ink-muted);
  margin: 0;
}

.framebea8c-carousel-dots {
  position: absolute;
  bottom: 8px;
  right: 10px;
  display: flex;
  gap: 5px;
  z-index: 2;
}

.framebea8c-carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(236, 239, 244, 0.35);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.framebea8c-carousel-dot[data-active="true"] {
  background: var(--framebea8c-gold);
  transform: scale(1.25);
}

/* ----- Intro / heading blocks ----- */
.framebea8c-intro {
  padding: 14px 12px 4px;
}

.framebea8c-h1 {
  font-family: var(--framebea8c-font-human);
  font-size: 24px;
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--framebea8c-ink-strong);
}

.framebea8c-h1 span {
  color: var(--framebea8c-gold);
}

.framebea8c-lead {
  margin: 0 0 10px;
  color: var(--framebea8c-ink-muted);
  font-size: 14px;
}

.framebea8c-h2 {
  font-family: var(--framebea8c-font-human);
  font-size: 19px;
  line-height: 1.25;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--framebea8c-ink-strong);
}

.framebea8c-h3 {
  font-family: var(--framebea8c-font-human);
  font-size: 15px;
  font-weight: 700;
  margin: 14px 0 6px;
  color: var(--framebea8c-gold-soft);
}

.framebea8c-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--framebea8c-font-human);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--framebea8c-gold);
  margin: 0 0 6px;
}

.framebea8c-eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--framebea8c-gold);
  display: inline-block;
}

.framebea8c-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.framebea8c-section-head a {
  font-size: 12px;
  font-weight: 600;
  color: var(--framebea8c-gold-soft);
}

.framebea8c-p {
  margin: 0 0 10px;
  color: var(--framebea8c-ink-muted);
  font-size: 14px;
}

.framebea8c-p a {
  color: var(--framebea8c-gold-soft);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ----- Category strip ----- */
.framebea8c-categorystrip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 12px 10px;
  scrollbar-width: none;
}

.framebea8c-categorystrip::-webkit-scrollbar {
  display: none;
}

.framebea8c-category-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: var(--framebea8c-bg-elevated);
  border: 1px solid var(--framebea8c-border);
  border-radius: var(--framebea8c-radius-xs);
  font-family: var(--framebea8c-font-human);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--framebea8c-ink);
  white-space: nowrap;
  flex-shrink: 0;
}

.framebea8c-category-pill .framebea8c-cat-count {
  color: var(--framebea8c-ink-dim);
  font-weight: 600;
}

/* ----- Game grid and tiles ----- */
.framebea8c-gamesection {
  padding: 16px 12px;
  border-top: 1px solid var(--framebea8c-border);
}

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

.framebea8c-tile {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  text-decoration: none;
  color: var(--framebea8c-ink);
  min-width: 0;
}

.framebea8c-tile:hover,
.framebea8c-tile:focus {
  text-decoration: none;
}

.framebea8c-tile-art-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--framebea8c-border-strong);
  border-radius: var(--framebea8c-radius-sm);
  overflow: hidden;
  background: #0B1119;
}

.framebea8c-tile-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.framebea8c-tile:hover .framebea8c-tile-art {
  filter: brightness(1.12);
}

.framebea8c-tile-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  background: var(--framebea8c-coral);
  color: #1A0600;
  font-family: var(--framebea8c-font-human);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 2px 5px;
  border-radius: var(--framebea8c-radius-xs);
}

.framebea8c-tile-badge--gold {
  background: var(--framebea8c-gold);
  color: #1A1300;
}

.framebea8c-tile-badge--emerald {
  background: var(--framebea8c-emerald);
  color: #04211A;
}

.framebea8c-tile-name {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--framebea8c-ink);
  text-align: center;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 28px;
}

/* ----- Metrics / info blocks ----- */
.framebea8c-metric-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 8px 0 12px;
}

.framebea8c-metric {
  background: var(--framebea8c-bg-elevated);
  border: 1px solid var(--framebea8c-border);
  border-left: 3px solid var(--framebea8c-gold);
  padding: 10px 12px;
  border-radius: var(--framebea8c-radius-xs);
}

.framebea8c-metric-value {
  font-family: var(--framebea8c-font-human);
  font-size: 18px;
  font-weight: 700;
  color: var(--framebea8c-ink-strong);
  display: block;
  line-height: 1.1;
}

.framebea8c-metric-label {
  font-size: 11px;
  color: var(--framebea8c-ink-muted);
  display: block;
  margin-top: 2px;
  letter-spacing: 0.3px;
}

.framebea8c-callout {
  background: var(--framebea8c-bg-elevated);
  border: 1px solid var(--framebea8c-border-strong);
  border-left: 3px solid var(--framebea8c-gold);
  padding: 12px;
  border-radius: var(--framebea8c-radius-xs);
  margin: 10px 0;
}

.framebea8c-callout p:last-child {
  margin-bottom: 0;
}

/* ----- Lists ----- */
.framebea8c-list {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
}

.framebea8c-list li {
  position: relative;
  padding: 6px 0 6px 22px;
  color: var(--framebea8c-ink-muted);
  font-size: 14px;
  border-bottom: 1px dashed var(--framebea8c-border);
}

.framebea8c-list li:last-child {
  border-bottom: none;
}

.framebea8c-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 13px;
  width: 8px;
  height: 8px;
  background: var(--framebea8c-gold);
  transform: rotate(45deg);
}

.framebea8c-numbered {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 8px 0 12px;
}

.framebea8c-numbered li {
  counter-increment: step;
  position: relative;
  padding: 8px 0 8px 32px;
  color: var(--framebea8c-ink-muted);
  font-size: 14px;
  border-bottom: 1px solid var(--framebea8c-border);
}

.framebea8c-numbered li:last-child {
  border-bottom: none;
}

.framebea8c-numbered li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 8px;
  width: 22px;
  height: 22px;
  background: var(--framebea8c-bg-raised);
  border: 1px solid var(--framebea8c-gold);
  color: var(--framebea8c-gold);
  font-family: var(--framebea8c-font-human);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

/* ----- FAQ ----- */
.framebea8c-faq {
  border-top: 1px solid var(--framebea8c-border);
  padding-top: 6px;
}

.framebea8c-faq-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--framebea8c-border);
}

.framebea8c-faq-q {
  font-family: var(--framebea8c-font-human);
  font-size: 14px;
  font-weight: 700;
  color: var(--framebea8c-ink-strong);
  margin: 0 0 4px;
  padding-left: 22px;
  position: relative;
}

.framebea8c-faq-q::before {
  content: "Q";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--framebea8c-gold);
  font-weight: 700;
}

.framebea8c-faq-a {
  font-size: 13px;
  color: var(--framebea8c-ink-muted);
  margin: 0;
  padding-left: 22px;
  position: relative;
}

.framebea8c-faq-a::before {
  content: "A";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--framebea8c-coral);
  font-weight: 700;
}

/* ----- Achievement grid ----- */
.framebea8c-achievement-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.framebea8c-achievement {
  background: var(--framebea8c-bg-elevated);
  border: 1px solid var(--framebea8c-border);
  border-radius: var(--framebea8c-radius-xs);
  padding: 10px;
}

.framebea8c-achievement-tier {
  display: inline-block;
  font-family: var(--framebea8c-font-human);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: var(--framebea8c-radius-xs);
  margin-bottom: 6px;
}

.framebea8c-achievement-tier--bronze {
  background: rgba(205, 127, 50, 0.18);
  color: #E0A06A;
}

.framebea8c-achievement-tier--silver {
  background: rgba(157, 176, 196, 0.18);
  color: #C8D2DE;
}

.framebea8c-achievement-tier--gold {
  background: rgba(245, 197, 24, 0.16);
  color: var(--framebea8c-gold);
}

.framebea8c-achievement-title {
  font-family: var(--framebea8c-font-human);
  font-size: 13px;
  font-weight: 700;
  color: var(--framebea8c-ink-strong);
  margin: 0 0 3px;
}

.framebea8c-achievement-desc {
  font-size: 12px;
  color: var(--framebea8c-ink-muted);
  margin: 0;
}

/* ----- Relationship map ----- */
.framebea8c-relmap {
  background: var(--framebea8c-bg-elevated);
  border: 1px solid var(--framebea8c-border);
  border-radius: var(--framebea8c-radius-xs);
  padding: 12px;
}

.framebea8c-relmap-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--framebea8c-border);
  font-size: 12px;
}

.framebea8c-relmap-row:last-child {
  border-bottom: none;
}

.framebea8c-relmap-node {
  background: var(--framebea8c-bg-raised);
  border: 1px solid var(--framebea8c-border-strong);
  border-radius: var(--framebea8c-radius-xs);
  padding: 6px 8px;
  text-align: center;
  color: var(--framebea8c-ink);
  font-weight: 600;
}

.framebea8c-relmap-edge {
  color: var(--framebea8c-gold);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 700;
  white-space: nowrap;
}

/* ----- CTA band ----- */
.framebea8c-cta-band {
  background: linear-gradient(135deg, #1B2535 0%, #2C3E50 100%);
  border: 1px solid var(--framebea8c-border-strong);
  border-left: 3px solid var(--framebea8c-gold);
  padding: 14px;
  border-radius: var(--framebea8c-radius-sm);
  margin: 12px 0;
}

.framebea8c-cta-band-title {
  font-family: var(--framebea8c-font-human);
  font-size: 16px;
  font-weight: 700;
  color: var(--framebea8c-ink-strong);
  margin: 0 0 4px;
}

.framebea8c-cta-band-sub {
  font-size: 13px;
  color: var(--framebea8c-ink-muted);
  margin: 0 0 10px;
}

.framebea8c-cta-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.framebea8c-cta-row .framebea8c-btn {
  flex: 1 1 auto;
}

/* ----- Extended footer ----- */
.framebea8c-extended {
  padding: 18px 12px;
  background: var(--framebea8c-bg-zoned);
  border-top: 1px solid var(--framebea8c-border-strong);
}

.framebea8c-extended-group {
  margin-bottom: 18px;
}

.framebea8c-extended-group:last-child {
  margin-bottom: 0;
}

.framebea8c-extended-title {
  font-family: var(--framebea8c-font-human);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--framebea8c-gold);
  margin: 0 0 8px;
}

.framebea8c-brand-blurb {
  font-size: 13px;
  color: var(--framebea8c-ink-muted);
  margin: 0 0 10px;
}

.framebea8c-promo-cluster {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.framebea8c-promo-card {
  display: block;
  background: var(--framebea8c-bg-elevated);
  border: 1px solid var(--framebea8c-border-strong);
  border-radius: var(--framebea8c-radius-xs);
  padding: 10px;
  cursor: pointer;
  text-decoration: none;
  color: var(--framebea8c-ink);
  min-height: 60px;
}

.framebea8c-promo-card:hover {
  background: var(--framebea8c-bg-raised);
  text-decoration: none;
}

.framebea8c-promo-card-tag {
  font-family: var(--framebea8c-font-human);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--framebea8c-coral);
  display: block;
  margin-bottom: 3px;
}

.framebea8c-promo-card-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--framebea8c-ink-strong);
  display: block;
  line-height: 1.3;
}

.framebea8c-directory {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px 10px;
}

.framebea8c-directory a {
  font-size: 12px;
  color: var(--framebea8c-ink-muted);
  padding: 5px 0;
  border-bottom: 1px solid var(--framebea8c-border);
  display: block;
}

.framebea8c-directory a:hover {
  color: var(--framebea8c-gold-soft);
}

.framebea8c-disclaimer {
  font-size: 11px;
  color: var(--framebea8c-ink-dim);
  line-height: 1.5;
  padding: 10px;
  background: rgba(13, 17, 23, 0.6);
  border: 1px solid var(--framebea8c-border);
  border-radius: var(--framebea8c-radius-xs);
}

/* ----- Footer ----- */
.framebea8c-footer {
  background: #06090F;
  padding: 16px 12px calc(var(--framebea8c-bottomnav-h) + 20px);
  text-align: center;
  border-top: 1px solid var(--framebea8c-border-strong);
}

.framebea8c-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.framebea8c-footer-brand img {
  width: 22px;
  height: 22px;
  border-radius: 2px;
}

.framebea8c-footer-brand-name {
  font-family: var(--framebea8c-font-human);
  font-size: 14px;
  font-weight: 700;
  color: var(--framebea8c-ink-strong);
}

.framebea8c-footer-copy {
  font-size: 11px;
  color: var(--framebea8c-ink-dim);
  margin: 0;
  line-height: 1.5;
}

/* ----- Bottom nav ----- */
.framebea8c-bottomnav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--framebea8c-canvas);
  height: var(--framebea8c-bottomnav-h);
  background: linear-gradient(180deg, #11192A 0%, #0A0E16 100%);
  border-top: 1px solid var(--framebea8c-border-strong);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  z-index: 35;
  box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.45);
}

.framebea8c-bottomnav-link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 6px 2px 4px;
  color: var(--framebea8c-ink-muted);
  text-decoration: none;
  border: none;
  background: transparent;
  cursor: pointer;
  min-height: 44px;
}

.framebea8c-bottomnav-link:hover {
  text-decoration: none;
  color: var(--framebea8c-ink);
}

.framebea8c-bottomnav-link[data-active="true"] {
  color: var(--framebea8c-gold);
}

.framebea8c-bottomnav-link[data-active="true"]::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 2px;
  background: var(--framebea8c-gold);
}

.framebea8c-bottomnav-icon {
  width: 22px;
  height: 22px;
  display: block;
}

.framebea8c-bottomnav-label {
  font-family: var(--framebea8c-font-human);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  line-height: 1;
}

.framebea8c-bottomnav-link[data-role="promo"] .framebea8c-bottomnav-label {
  color: var(--framebea8c-coral);
}

.framebea8c-bottomnav-link[data-role="promo"] {
  background: rgba(255, 107, 74, 0.06);
}

/* ----- Status toast ----- */
.framebea8c-status {
  position: fixed;
  bottom: calc(var(--framebea8c-bottomnav-h) + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--framebea8c-bg-raised);
  border: 1px solid var(--framebea8c-gold);
  color: var(--framebea8c-ink-strong);
  font-size: 12px;
  padding: 8px 14px;
  border-radius: var(--framebea8c-radius-sm);
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  max-width: 80%;
  text-align: center;
}

.framebea8c-status[data-visible="true"] {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ----- Skip link ----- */
.framebea8c-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--framebea8c-gold);
  color: #1A1300;
  padding: 8px 12px;
  z-index: 100;
  font-weight: 700;
  font-size: 13px;
}

.framebea8c-skip:focus {
  left: 8px;
  top: 8px;
}

/* ==========================================================================
   Responsive tweaks (375-430px)
   ========================================================================== */
@media (min-width: 360px) {
  .framebea8c-h1 {
    font-size: 26px;
  }
  .framebea8c-slide img {
    height: 184px;
  }
}

@media (min-width: 400px) {
  .framebea8c-gamegrid {
    grid-template-columns: repeat(5, 1fr);
  }
  .framebea8c-promo-cluster {
    grid-template-columns: repeat(4, 1fr);
  }
  .framebea8c-directory {
    grid-template-columns: repeat(3, 1fr);
  }
  .framebea8c-h1 {
    font-size: 28px;
  }
  .framebea8c-slide img {
    height: 200px;
  }
}

@media (min-width: 700px) {
  body {
    background: #050709;
    background-image: radial-gradient(circle at 30% 10%, rgba(245, 197, 24, 0.05), transparent 50%);
  }
  .framebea8c-canvas {
    border-left: 1px solid var(--framebea8c-border);
    border-right: 1px solid var(--framebea8c-border);
  }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .framebea8c-carousel-track,
  .framebea8c-tile-art,
  .framebea8c-carousel-dot,
  .framebea8c-status {
    transition: none !important;
  }
}

/* ----- Help page additions: editorial rails and answer panels ----- */
.framebea8c-help-hero {
  padding: 24px 12px 18px;
  border-bottom: 1px solid var(--framebea8c-border-strong);
  background: linear-gradient(145deg, #17273A 0%, #0D1117 72%);
}

.framebea8c-help-kicker {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 7px;
  border: 1px solid var(--framebea8c-gold);
  color: var(--framebea8c-gold);
  font-family: var(--framebea8c-font-human);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}

.framebea8c-help-lead {
  margin: 0;
  color: var(--framebea8c-ink-muted);
  font-size: 15px;
}

.framebea8c-steprail {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.framebea8c-steprail-item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
}

.framebea8c-steprail-num {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  background: var(--framebea8c-gold);
  color: #1A1300;
  font-size: 12px;
  font-weight: 800;
}

.framebea8c-steprail-copy {
  padding: 1px 0 9px;
  border-bottom: 1px solid var(--framebea8c-border);
}

.framebea8c-steprail-copy strong {
  display: block;
  color: var(--framebea8c-ink-strong);
  font-size: 14px;
}

.framebea8c-steprail-copy span {
  display: block;
  color: var(--framebea8c-ink-muted);
  font-size: 12px;
  line-height: 1.45;
}

.framebea8c-choice-table {
  display: grid;
  gap: 3px;
  margin-top: 12px;
}

.framebea8c-choice-row {
  display: grid;
  grid-template-columns: minmax(92px, .8fr) minmax(0, 1.2fr);
  gap: 9px;
  padding: 10px 0;
  border-bottom: 1px solid var(--framebea8c-border);
}

.framebea8c-choice-row strong {
  color: var(--framebea8c-gold-soft);
  font-size: 12px;
}

.framebea8c-choice-row span {
  color: var(--framebea8c-ink-muted);
  font-size: 12px;
  line-height: 1.45;
}

.framebea8c-answer-list {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}

.framebea8c-answer {
  padding: 11px 12px;
  background: var(--framebea8c-bg-elevated);
  border: 1px solid var(--framebea8c-border);
  border-left: 3px solid var(--framebea8c-slate);
}

.framebea8c-answer dt {
  color: var(--framebea8c-ink-strong);
  font-family: var(--framebea8c-font-human);
  font-size: 14px;
  font-weight: 700;
}

.framebea8c-answer dd {
  margin: 4px 0 0;
  color: var(--framebea8c-ink-muted);
  font-size: 13px;
}

.framebea8c-linkrow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.framebea8c-quote {
  margin: 13px 0;
  padding: 13px;
  background: var(--framebea8c-bg-elevated);
  border-left: 3px solid var(--framebea8c-gold);
  color: var(--framebea8c-ink-strong);
  font-family: var(--framebea8c-font-human);
  font-size: 16px;
}

.framebea8c-quote cite {
  display: block;
  margin-top: 5px;
  color: var(--framebea8c-ink-dim);
  font-family: var(--framebea8c-font-body);
  font-size: 11px;
  font-style: normal;
}

@media (max-width: 355px) {
  .framebea8c-choice-row { grid-template-columns: 1fr; gap: 2px; }
}
