/* ==========================================================================
   ph78.homes - mobile-first canvas stylesheet
   Site palette: #0A0A0A (ink) / #66CDAA (mint) / #3CB371 (sea)
   Class prefix: frameba158-
   ========================================================================== */

/* ---------- design tokens ---------- */
:root {
  --frameba158-ink: #0A0A0A;
  --frameba158-ink-deep: #060807;
  --frameba158-ink-soft: #0f1512;
  --frameba158-mint: #66CDAA;
  --frameba158-sea: #3CB371;
  --frameba158-mint-dim: #4fa88a;
  --frameba158-paper: #EAF6F0;
  --frameba158-paper-dim: #B7CEC1;
  --frameba158-muted: #8FAEA0;
  --frameba158-line: #1E2B25;
  --frameba158-line-strong: #2A3D33;
  --frameba158-surface: #101713;
  --frameba158-surface-2: #141e18;
  --frameba158-shadow: rgba(0, 0, 0, 0.55);
  --frameba158-glow: rgba(102, 205, 170, 0.22);
  --frameba158-radius-btn: 999px;
  --frameba158-radius-card: 6px;
  --frameba158-radius-panel: 8px;
  --frameba158-topbar-h: 104px;
  --frameba158-bnav-h: 64px;
  --frameba158-font-round: "Baloo 2", "Quicksand", "Nunito", ui-rounded, system-ui, sans-serif;
  --frameba158-font-body: "Roboto Condensed", "Segoe UI", Arial, sans-serif;
}

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

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

body {
  background: var(--frameba158-ink-deep);
  color: var(--frameba158-paper);
  font-family: var(--frameba158-font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--frameba158-mint);
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--frameba158-font-round);
  font-weight: 700;
  line-height: 1.22;
  color: var(--frameba158-paper);
  letter-spacing: 0.2px;
}

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

/* ---------- phone canvas ---------- */
.frameba158-canvas {
  position: relative;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(120% 46% at 50% -6%, rgba(102, 205, 170, 0.14), transparent 62%),
    var(--frameba158-ink);
  overflow-x: clip;
  box-shadow: 0 0 44px rgba(0, 0, 0, 0.6);
}

/* ---------- fixed top bar: brand row above, action row below ---------- */
.frameba158-topbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 60;
  background: linear-gradient(180deg, rgba(8, 12, 10, 0.98), rgba(8, 12, 10, 0.92));
  border-bottom: 1px solid var(--frameba158-line);
  backdrop-filter: blur(8px);
}

.frameba158-brandrow {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 8px 14px 4px;
}

.frameba158-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  border: 1.5px solid var(--frameba158-mint);
  box-shadow: 0 0 0 3px rgba(102, 205, 170, 0.14);
  flex: 0 0 auto;
}

.frameba158-wordmark {
  font-family: var(--frameba158-font-round);
  font-weight: 800;
  font-size: 24px;
  color: var(--frameba158-paper);
  letter-spacing: 0.5px;
  line-height: 1;
}

.frameba158-wordmark em {
  font-style: normal;
  color: var(--frameba158-mint);
}

.frameba158-brandrow-spacer {
  flex: 1 1 auto;
}

.frameba158-menubtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--frameba158-radius-btn);
  border: 1px solid var(--frameba158-line-strong);
  background: var(--frameba158-surface);
  color: var(--frameba158-mint);
}

.frameba158-menubtn-bars {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  position: relative;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.frameba158-menubtn-bars::before,
.frameba158-menubtn-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.frameba158-menubtn-bars::before {
  top: -6px;
}

.frameba158-menubtn-bars::after {
  top: 6px;
}

.frameba158-menubtn.is-open .frameba158-menubtn-bars {
  transform: rotate(45deg);
}

.frameba158-menubtn.is-open .frameba158-menubtn-bars::before {
  transform: translateY(6px) rotate(-90deg);
}

.frameba158-menubtn.is-open .frameba158-menubtn-bars::after {
  opacity: 0;
}

/* segmented action row: register / login */
.frameba158-actionrow {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px 10px;
}

.frameba158-actionrow .frameba158-menubtn {
  flex: 0 0 44px;
}

.frameba158-segcta {
  display: flex;
  flex: 1 1 auto;
  width: 100%;
  border-radius: var(--frameba158-radius-btn);
  border: 1px solid var(--frameba158-line-strong);
  background: var(--frameba158-surface);
  overflow: hidden;
}

.frameba158-segcta-join,
.frameba158-segcta-enter {
  flex: 1 1 50%;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--frameba158-font-round);
  font-weight: 700;
  font-size: 15.5px;
  letter-spacing: 0.4px;
  color: var(--frameba158-paper);
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.frameba158-segcta-join {
  background: linear-gradient(135deg, var(--frameba158-mint), var(--frameba158-sea));
  color: #06110c;
}

.frameba158-segcta-enter {
  border-left: 1px solid var(--frameba158-line-strong);
  color: var(--frameba158-mint);
}

.frameba158-segcta-join:active,
.frameba158-segcta-enter:active {
  transform: scale(0.97);
}

/* ---------- stacked slide-in menu overlay ---------- */
.frameba158-menu {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateX(-104%);
  width: 100%;
  max-width: 430px;
  height: 100%;
  height: 100dvh;
  z-index: 90;
  background: linear-gradient(170deg, #0c1310 0%, #0A0A0A 60%);
  border-right: 1px solid var(--frameba158-line-strong);
  display: flex;
  flex-direction: column;
  transition: transform 0.32s cubic-bezier(0.22, 0.9, 0.3, 1);
  visibility: hidden;
}

.frameba158-menu.is-open {
  transform: translateX(-50%) translateX(0);
  visibility: visible;
}

.frameba158-menu-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--frameba158-line);
}

.frameba158-menu-title {
  font-family: var(--frameba158-font-round);
  font-weight: 700;
  font-size: 18px;
}

.frameba158-menu-close {
  margin-left: auto;
  width: 44px;
  height: 44px;
  border-radius: var(--frameba158-radius-btn);
  border: 1px solid var(--frameba158-line-strong);
  color: var(--frameba158-paper);
  font-size: 20px;
  line-height: 1;
  font-family: var(--frameba158-font-round);
}

.frameba158-menu-list {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 10px 12px 16px;
}

.frameba158-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 6px 12px;
  margin: 4px 0;
  border-radius: var(--frameba158-radius-card);
  border: 1px solid transparent;
  color: var(--frameba158-paper-dim);
  font-family: var(--frameba158-font-round);
  font-weight: 600;
  font-size: 16px;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease,
    transform 0.18s ease;
}

.frameba158-menu-item span.frameba158-menu-mark {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--frameba158-line-strong);
  flex: 0 0 auto;
  transition: background 0.18s ease, box-shadow 0.18s ease;
}

.frameba158-menu-item:hover,
.frameba158-menu-item:focus-visible {
  background: var(--frameba158-surface);
  color: var(--frameba158-paper);
  transform: translateX(3px);
}

.frameba158-menu-item.is-current {
  background: var(--frameba158-surface-2);
  border-color: var(--frameba158-line-strong);
  color: var(--frameba158-mint);
}

.frameba158-menu-item.is-current .frameba158-menu-mark {
  background: var(--frameba158-mint);
  box-shadow: 0 0 8px var(--frameba158-glow);
}

.frameba158-menu-note {
  padding: 0 18px 8px;
  font-size: 12.5px;
  color: var(--frameba158-muted);
}

.frameba158-menu-cta {
  display: flex;
  gap: 10px;
  padding: 12px 16px calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--frameba158-line);
}

.frameba158-menu-cta-join,
.frameba158-menu-cta-play {
  flex: 1 1 50%;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--frameba158-radius-btn);
  font-family: var(--frameba158-font-round);
  font-weight: 700;
  font-size: 15.5px;
}

.frameba158-menu-cta-join {
  background: linear-gradient(135deg, var(--frameba158-mint), var(--frameba158-sea));
  color: #06110c;
}

.frameba158-menu-cta-play {
  border: 1px solid var(--frameba158-mint-dim);
  color: var(--frameba158-mint);
}

.frameba158-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(4, 6, 5, 0.66);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.frameba158-menu-backdrop.is-on {
  opacity: 1;
  visibility: visible;
}

/* ---------- main flow ---------- */
.frameba158-main {
  padding-top: calc(var(--frameba158-topbar-h) + 6px);
  padding-bottom: calc(var(--frameba158-bnav-h) + 26px + env(safe-area-inset-bottom));
}

.frameba158-section {
  padding: 22px 14px 6px;
}

/* ---------- hero ---------- */
.frameba158-hero {
  padding: 16px 14px 4px;
}

.frameba158-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 13px;
  border-radius: var(--frameba158-radius-btn);
  border: 1px solid var(--frameba158-line-strong);
  background: var(--frameba158-surface);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: var(--frameba158-mint);
}

.frameba158-hero-kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--frameba158-sea);
  box-shadow: 0 0 8px var(--frameba158-glow);
}

.frameba158-hero-title {
  margin: 12px 0 10px;
  font-size: 30px;
  font-weight: 800;
}

.frameba158-hero-title b {
  color: var(--frameba158-mint);
  font-weight: 800;
}

.frameba158-hero-lead {
  color: var(--frameba158-paper-dim);
  font-size: 15px;
  max-width: 40ch;
}

.frameba158-hero-seg {
  display: flex;
  gap: 10px;
  margin: 16px 0 4px;
}

.frameba158-hero-seg-join,
.frameba158-hero-seg-tour {
  flex: 1 1 50%;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--frameba158-radius-btn);
  font-family: var(--frameba158-font-round);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.4px;
}

.frameba158-hero-seg-join {
  background: linear-gradient(135deg, var(--frameba158-mint), var(--frameba158-sea));
  color: #06110c;
  box-shadow: 0 8px 22px rgba(60, 179, 113, 0.28);
}

.frameba158-hero-seg-tour {
  border: 1.5px dashed var(--frameba158-mint-dim);
  color: var(--frameba158-mint);
}

.frameba158-hero-seg-join:active,
.frameba158-hero-seg-tour:active {
  transform: scale(0.97);
}

.frameba158-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.frameba158-hero-meta span {
  font-size: 12px;
  letter-spacing: 0.4px;
  color: var(--frameba158-muted);
  border: 1px solid var(--frameba158-line);
  background: var(--frameba158-surface);
  border-radius: var(--frameba158-radius-btn);
  padding: 4px 11px;
}

/* ---------- promo carousel ---------- */
.frameba158-carousel {
  position: relative;
  margin: 18px 14px 4px;
  border-radius: var(--frameba158-radius-panel);
  overflow: hidden;
  border: 1px solid var(--frameba158-line-strong);
  background: var(--frameba158-surface);
  box-shadow: 0 14px 30px var(--frameba158-shadow);
}

.frameba158-slidetrack {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 178px;
}

.frameba158-slide {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  transform: translateX(14px) scale(1.01);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}

.frameba158-slide.is-on {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

.frameba158-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.frameba158-slide-tag {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: var(--frameba158-radius-btn);
  background: rgba(6, 17, 12, 0.82);
  border: 1px solid rgba(102, 205, 170, 0.55);
  color: var(--frameba158-mint);
  font-family: var(--frameba158-font-round);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.4px;
}

.frameba158-dots {
  position: absolute;
  right: 10px;
  bottom: 12px;
  z-index: 3;
  display: flex;
  gap: 6px;
}

.frameba158-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 50%;
  background: rgba(234, 246, 240, 0.35);
  transition: transform 0.2s ease, background 0.2s ease;
}

.frameba158-dot.is-on {
  background: var(--frameba158-mint);
  transform: scale(1.35);
  box-shadow: 0 0 8px var(--frameba158-glow);
}

/* ---------- section headings ---------- */
.frameba158-sec-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}

.frameba158-sec-head h2 {
  font-size: 21px;
  font-weight: 700;
  flex: 1 1 auto;
}

.frameba158-chip {
  flex: 0 0 auto;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--frameba158-sea);
  border: 1px solid var(--frameba158-line-strong);
  background: var(--frameba158-surface);
  border-radius: var(--frameba158-radius-btn);
  padding: 3px 10px;
  white-space: nowrap;
}

.frameba158-sec-intro {
  color: var(--frameba158-paper-dim);
  font-size: 14px;
  margin: 0 0 12px;
}

.frameba158-sec-intro a {
  border-bottom: 1px dashed var(--frameba158-mint-dim);
  font-weight: 500;
}

/* ---------- game grid: light floating image cards ---------- */
.frameba158-gamegrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.frameba158-game {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border-radius: var(--frameba158-radius-card);
  background: linear-gradient(180deg, var(--frameba158-surface-2), var(--frameba158-surface));
  border: 1px solid var(--frameba158-line);
  padding: 5px 5px 7px;
  min-width: 0;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.frameba158-game img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 4px;
  background: var(--frameba158-ink-soft);
}

.frameba158-game-name {
  display: block;
  margin-top: 6px;
  font-size: 11.5px;
  line-height: 1.3;
  font-weight: 500;
  color: var(--frameba158-paper-dim);
  text-align: center;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 2.6em;
}

.frameba158-game:hover,
.frameba158-game:focus-visible {
  transform: translateY(-3px);
  border-color: var(--frameba158-mint-dim);
  box-shadow: 0 10px 20px var(--frameba158-shadow), 0 0 0 1px var(--frameba158-glow);
}

.frameba158-game:active {
  transform: translateY(-1px) scale(0.98);
}

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

/* ---------- content panels (short-paragraph, list rhythm) ---------- */
.frameba158-panel {
  background: linear-gradient(180deg, var(--frameba158-surface-2), var(--frameba158-surface));
  border: 1px solid var(--frameba158-line);
  border-radius: var(--frameba158-radius-panel);
  padding: 16px 15px 14px;
  margin: 14px 14px 4px;
}

.frameba158-panel h2 {
  font-size: 19.5px;
  margin-bottom: 8px;
}

.frameba158-panel h3 {
  font-size: 15.5px;
  color: var(--frameba158-mint);
  margin: 14px 0 5px;
}

.frameba158-panel p {
  color: var(--frameba158-paper-dim);
  font-size: 14px;
  margin-bottom: 9px;
}

.frameba158-panel p:first-of-type {
  color: var(--frameba158-paper);
}

.frameba158-list {
  margin: 8px 0 4px;
}

.frameba158-list li {
  position: relative;
  padding: 5px 8px 5px 24px;
  font-size: 14px;
  color: var(--frameba158-paper-dim);
  border-radius: var(--frameba158-radius-card);
}

.frameba158-list li + li {
  border-top: 1px dashed var(--frameba158-line);
}

.frameba158-list li::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 12px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  transform: rotate(45deg);
  background: var(--frameba158-sea);
}

.frameba158-list strong {
  color: var(--frameba158-paper);
  font-weight: 700;
}

.frameba158-list a {
  border-bottom: 1px dashed var(--frameba158-mint-dim);
}

/* key-value fact rows */
.frameba158-kv {
  border: 1px solid var(--frameba158-line);
  border-radius: var(--frameba158-radius-card);
  overflow: hidden;
  margin-top: 10px;
}

.frameba158-kv-row {
  display: flex;
  gap: 12px;
  padding: 9px 12px;
  font-size: 13.5px;
}

.frameba158-kv-row + .frameba158-kv-row {
  border-top: 1px solid var(--frameba158-line);
}

.frameba158-kv-key {
  flex: 0 0 118px;
  font-family: var(--frameba158-font-round);
  font-weight: 600;
  color: var(--frameba158-mint);
}

.frameba158-kv-val {
  flex: 1 1 auto;
  color: var(--frameba158-paper-dim);
}

/* inline promo strip inside panels */
.frameba158-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px dashed var(--frameba158-mint-dim);
  border-radius: var(--frameba158-radius-card);
  background: rgba(102, 205, 170, 0.06);
  font-size: 13.5px;
  color: var(--frameba158-paper-dim);
}

.frameba158-strip-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: var(--frameba158-radius-btn);
  background: linear-gradient(135deg, var(--frameba158-mint), var(--frameba158-sea));
  color: #06110c;
  font-family: var(--frameba158-font-round);
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}

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

/* ---------- homepage extended footer ---------- */
.frameba158-extfoot {
  margin-top: 24px;
  border-top: 1px solid var(--frameba158-line-strong);
  padding: 18px 14px 8px;
}

.frameba158-extfoot-group {
  margin-bottom: 18px;
}

.frameba158-extfoot-title {
  font-family: var(--frameba158-font-round);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--frameba158-mint);
  margin-bottom: 8px;
}

.frameba158-dirgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 10px;
}

.frameba158-dirgrid a {
  font-size: 13px;
  color: var(--frameba158-paper-dim);
  padding: 5px 0 5px 12px;
  position: relative;
}

.frameba158-dirgrid a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--frameba158-sea);
}

.frameba158-dirgrid a:hover,
.frameba158-dirgrid a:focus-visible {
  color: var(--frameba158-mint);
}

.frameba158-brandnote {
  font-size: 13px;
  color: var(--frameba158-muted);
  line-height: 1.6;
}

.frameba158-promorow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.frameba158-promorow a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: var(--frameba158-radius-btn);
  font-family: var(--frameba158-font-round);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.3px;
  text-align: center;
}

.frameba158-promo-solid {
  background: linear-gradient(135deg, var(--frameba158-mint), var(--frameba158-sea));
  color: #06110c;
}

.frameba158-promo-line {
  border: 1.5px solid var(--frameba158-mint-dim);
  color: var(--frameba158-mint);
}

.frameba158-promo-ghost {
  border: 1px solid var(--frameba158-line-strong);
  color: var(--frameba158-paper-dim);
}

.frameba158-disclaim {
  font-size: 12px;
  line-height: 1.6;
  color: var(--frameba158-muted);
  border-left: 3px solid var(--frameba158-sea);
  padding-left: 10px;
}

/* ---------- common footer ---------- */
.frameba158-sitefoot {
  padding: 14px 14px 10px;
  border-top: 1px solid var(--frameba158-line);
  text-align: center;
}

.frameba158-sitefoot p {
  font-size: 12.5px;
  color: var(--frameba158-muted);
}

.frameba158-sitefoot b {
  color: var(--frameba158-paper-dim);
  font-weight: 500;
}

/* ---------- mobile bottom nav rail ---------- */
.frameba158-bottomnav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 70;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: calc(var(--frameba158-bnav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: linear-gradient(180deg, rgba(9, 14, 11, 0.96), rgba(6, 9, 7, 0.99));
  border-top: 1px solid var(--frameba158-line-strong);
  backdrop-filter: blur(10px);
}

.frameba158-bnav-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 44px;
  color: var(--frameba158-muted);
  font-size: 10.5px;
  letter-spacing: 0.3px;
  transition: color 0.2s ease;
}

.frameba158-bnav-ico {
  display: block;
  width: 23px;
  height: 23px;
  transition: transform 0.22s ease, color 0.22s ease;
}

.frameba158-bnav-ico svg {
  width: 100%;
  height: 100%;
  display: block;
}

.frameba158-bnav-item:active .frameba158-bnav-ico {
  transform: translateY(-3px) scale(1.12);
}

.frameba158-bnav-item.is-active {
  color: var(--frameba158-mint);
  font-weight: 700;
}

.frameba158-bnav-item.is-active .frameba158-bnav-ico {
  transform: translateY(-1px);
  filter: drop-shadow(0 0 6px var(--frameba158-glow));
}

.frameba158-bnav-item.is-active::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, var(--frameba158-mint), var(--frameba158-sea));
}

.frameba158-bnav-item .frameba158-bnav-tag {
  position: absolute;
  top: 6px;
  right: 14%;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 1px 5px;
  border-radius: var(--frameba158-radius-btn);
  background: var(--frameba158-sea);
  color: #06110c;
}

/* ---------- utility ---------- */
.frameba158-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--frameba158-mint);
  color: #06110c;
  padding: 10px 16px;
  border-radius: var(--frameba158-radius-btn);
  font-weight: 700;
  z-index: 120;
}

.frameba158-skip:focus {
  left: 12px;
  top: 12px;
}

.frameba158-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- 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;
  }
}

/* ---------- narrow guards ---------- */
@media (max-width: 339px) {
  .frameba158-hero-title {
    font-size: 26px;
  }

  .frameba158-dirgrid,
  .frameba158-promorow {
    grid-template-columns: 1fr;
  }
}
