/* ============================================================
   BLONEY BEARS — molt.id–inspired Design System
   Warm-dark, oversized type, coral accent
   ============================================================ */

/*
 * ── Canonical Breakpoints ───────────────────────────────────────
 *   --bp-phone:   480px   (phones, portrait)
 *   --bp-tablet:  768px   (tablets, landscape phone)
 *   --bp-desktop: 1024px  (desktop, laptop)
 *   --bp-wide:    1280px  (wide screens)
 *   Use ONLY these 4 values in @media queries across all files.
 * ───────────────────────────────────────────────────────────────
 */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  /* Background scale */
  --bg:          #0A0808;
  --bg-card:     #141010;
  --bg-elevated: #1C1717;
  --bg-pill:     #1E1919;

  /* Borders */
  --border:       rgba(255, 255, 255, 0.07);
  --border-md:    rgba(255, 255, 255, 0.12);
  --border-coral: rgba(255, 80, 53, 0.35);
  --border-teal:  rgba(0, 200, 150, 0.3);

  /* Brand accents */
  --coral:   #FF5035;
  --coral-2: #C93E27;
  --teal:    #00C896;
  --purple:  #9B7FFF;
  --amber:   #F5A623;
  --green:   #22C55E;

  /* Gender identity colours */
  --pink-female:       #FF64B4;
  --pink-female-bg:    rgba(255, 100, 180, 0.12);
  --cyan-male:         #00B4FF;
  --cyan-male-bg:      rgba(0, 180, 255, 0.10);

  /* Portrait gold palette */
  --gold-base:         #D4A843;
  --gold-light:        #F5C63C;
  --gold-highlight:    #FFF8D0;
  --gold-shadow:       #5C3E00;
  --gold-plaque-bg:    #2A1800;

  /* Text — all values meet WCAG AA 4.5:1 on #0A0808 */
  --text-1: #FFFFFF;
  --text-2: rgba(255, 255, 255, 0.58);
  --text-3: rgba(255, 255, 255, 0.52); /* raised from 0.32 to meet 4.5:1 minimum */

  /* Radius */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-pill: 999px;

  /* Fonts — Inter is removed; Plus Jakarta Sans is the premium body font */
  --font-display: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  --font-body:    'Plus Jakarta Sans', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing scale — fluid with clamp */
  --space-xs:  clamp(0.25rem, 1vw,  0.5rem);
  --space-sm:  clamp(0.5rem,  2vw,  0.75rem);
  --space-md:  clamp(0.75rem, 3vw,  1.25rem);
  --space-lg:  clamp(1.25rem, 4vw,  2rem);
  --space-xl:  clamp(2rem,    5vw,  3.5rem);
  --space-2xl: clamp(3rem,    7vw,  5rem);

  /* Container */
  --container-max: 1280px;
  --container-pad: clamp(1rem, 5vw, 2rem);

  /* Nav height */
  --nav-h: 60px;

  /* Transitions — explicit properties only, never `all` (avoids layout reflows) */
  --t:    transform 0.2s ease, opacity 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, background-color 0.2s ease;
  --t-md: transform 0.35s ease, opacity 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, color 0.35s ease, background-color 0.35s ease;

  /* Creature micro-animation timing — tune all motion here */
  --bc-breathe-dur:    3s;
  --bc-head-dur:       5s;
  --bc-blink-dur:      0.22s;
  --bc-smile-dur:      0.6s;
  --bc-breathe-lift:   -5px;
  --bc-breathe-scale:  1.02;
  --bc-head-rotate:    0.5deg;
  --bc-head-x:         1px;
  --bc-hover-scale:    1.06;
  --bc-eye-top:        28%;
  --bc-eye-height:     9%;
}

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

html { scroll-behavior: smooth; }

/* ── A4: Global focus-visible system ────────────────────────── */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
}

/* ── AN1: Reduced-motion — disable all animations globally ──── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  background: var(--bg);
  color: var(--text-1);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* subtle warm noise texture */
  background-image: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255,80,53,0.04) 0%, transparent 60%);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--coral); text-decoration: none; transition: var(--t); }
a:hover { color: var(--text-1); }

/* ── Typography ─────────────────────────────────────────────── */
.t-hero {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 7rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.03em;
}

.t-section {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.t-card-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
}

.t-body { font-size: 0.95rem; line-height: 1.7; color: var(--text-2); }
.t-small { font-size: 0.82rem; color: var(--text-2); }
.t-mono { font-family: var(--font-mono); }

/* Accent text colours */
.t-coral  { color: var(--coral); }
.t-teal   { color: var(--teal); }
.t-purple { color: var(--purple); }
.t-amber  { color: var(--amber); }
.t-muted  { color: var(--text-2); }
.t-dim    { color: var(--text-3); }

/* Highlighted word (like molt.id "0.4 SOL") */
.word-highlight {
  display: inline-block;
  background: var(--coral);
  color: #fff;
  padding: 0 0.18em;
  border-radius: 0.15em;
  font-style: normal;
}
.word-highlight.teal   { background: var(--teal);   color: #000; }
.word-highlight.purple { background: var(--purple);  color: #fff; }

/* ── Layout ─────────────────────────────────────────────────── */
.wrap {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}

.section { padding-block: clamp(5rem, 8vw, 8rem); }
.section-sm { padding-block: clamp(3rem, 5vw, 5rem); }

/* ── Section label pill (• FEATURES) ───────────────────────── */
.section-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--bg-pill);
  border: 1px solid var(--border-md);
  color: var(--text-2);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.45rem 1rem;
  border-radius: var(--r-pill);
  margin-bottom: 2rem;
}

.section-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
  flex-shrink: 0;
}

.section-pill.teal .dot  { background: var(--teal); }
.section-pill.green .dot { background: var(--green); }

/* ── Navbar legacy styles (kept for backwards compat with any page using .bbw-nav) ── */
.bbw-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
  height: 60px;
  display: flex;
  align-items: center;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.bbw-nav.scrolled {
  background: rgba(10, 8, 8, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.bbw-nav-inner {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  gap: 2rem;
}

.bbw-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text-1) !important;
  white-space: nowrap;
}

/* .bbw-nav-links removed — nav now uses .topbar-nav in nav.ejs */

.bbw-nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* Blodate */
.blodate-chip {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-3);
  background: var(--bg-pill);
  border: 1px solid var(--border);
  padding: 0.35rem 0.75rem;
  border-radius: var(--r-pill);
  white-space: nowrap;
}

/* Trade button (outline) */
.btn-trade {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  color: var(--text-1);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border: 1px solid var(--border-md);
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: var(--t);
}
.btn-trade:hover { border-color: var(--text-1); color: var(--text-1); }

/* Primary CTA — coral pill */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--coral);
  color: #fff !important;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.5rem 1.2rem;
  border-radius: var(--r-pill);
  border: none;
  cursor: pointer;
  transition: var(--t);
  white-space: nowrap;
  text-decoration: none;
}
.btn-cta:hover { background: var(--coral-2); transform: translateY(-1px); }
.btn-cta.lg {
  font-size: 1rem;
  padding: 0.75rem 1.75rem;
}
.btn-cta.teal { background: var(--teal); color: #000 !important; }
.btn-cta.teal:hover { background: #00a87e; }

/* Ghost button */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: transparent;
  color: var(--text-2);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.7rem 1.2rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--border-md);
  cursor: pointer;
  transition: var(--t);
  text-decoration: none;
}
.btn-ghost:hover { color: var(--text-1); border-color: var(--text-3); }
.btn-ghost.lg {
  font-size: 1rem;
  padding: 0.75rem 1.6rem;
}

/* Mobile toggle — 44×44px minimum touch target (WCAG 2.5.5) */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-md);
  color: var(--text-1);
  padding: 0.55rem 0.65rem;
  min-width: 44px;
  min-height: 44px;
  border-radius: var(--r-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(10, 8, 8, 0.98);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-1);
}
.mobile-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--text-2);
  font-size: 1.8rem;
  cursor: pointer;
}

/* ── Tablet nav (≤1024px): hide date chip + wallet, keep links + CTA ── */
@media (max-width: 1024px) {
  .blodate-chip,
  .bbw-nav-right .wallet-btn { display: none; }
  .bbw-nav-inner { gap: 1rem; }
  .bbw-nav-links a { padding: 0.4rem 0.55rem; font-size: 0.83rem; }
}

@media (max-width: 768px) {
  .bbw-nav-links,
  .blodate-chip,
  .btn-trade,
  .bbw-nav-right .btn-cta,
  .bbw-nav-right .wallet-btn { display: none; }
  .nav-toggle { display: flex; align-items: center; }
  /* Collapse gap so brand + hamburger sit flush */
  .bbw-nav-inner { gap: 0.5rem; }
  .bbw-brand    { margin-right: auto; }
}

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 3rem;
  padding-top: var(--nav-h); /* nav height */
  position: relative;
  overflow: hidden;
}

/* Radial glow behind text */
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: -10%;
  width: 60%;
  height: 100%;
  background: radial-gradient(ellipse 60% 70% at 30% 40%,
    rgba(255, 80, 53, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero-text {
  padding-block: clamp(3rem, 6vw, 5rem);
  text-align: left; /* always left on desktop, overridden to center on mobile */
}

/* Built-on pill at top */
.hero-built-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-pill);
  border: 1px solid var(--border-teal);
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: var(--r-pill);
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 2rem;
}

.hero-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--text-2);
  font-size: 0.82rem;
  font-weight: 500;
  transition: var(--t);
}
.hero-link:hover { color: var(--text-1); }
.hero-link .arrow { font-size: 0.75rem; }

/* Status strip */
.hero-status {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-2);
  font-size: 0.78rem;
}

.status-dot .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px rgba(34,197,94,0.7);
  animation: pulse-dot 2.5s ease infinite;
}

/* Hero visual side */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-block: clamp(3rem, 6vw, 5rem); /* match hero-text top padding */
}

/* NFT Card — min dropped to 200px so it never clips on 320px phones */
.nft-card {
  position: relative;
  width: min(380px, calc(100% - 2rem));
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  background: var(--bg-elevated);
  box-shadow:
    0 0 0 1px rgba(255,80,53,0.15),
    0 24px 60px rgba(0,0,0,0.6);
  animation: float-card 5s ease-in-out infinite;
}

.nft-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}

.nft-card-brand {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-2);
}

.nft-card-chain {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--coral);
}

.nft-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.nft-card-body {
  padding: 0.9rem 1rem;
}

.nft-card-name {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--coral);
  letter-spacing: 0.02em;
  margin-bottom: 0.35rem;
}

.nft-card-sub {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.6rem;
}

.nft-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border);
}

.nft-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--amber);
  background: rgba(245,166,35,0.1);
  border: 1px solid rgba(245,166,35,0.25);
  padding: 0.25rem 0.55rem;
  border-radius: var(--r-pill);
}

/* Floating second card (background) */
.nft-card-bg {
  position: absolute;
  width: 70%;
  opacity: 0.45;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  bottom: 0;
  right: -20%;
  transform: rotate(8deg) scale(0.9);
  animation: float-card-bg 6s ease-in-out infinite;
  animation-delay: -3s;
}
.nft-card-bg img { width: 100%; aspect-ratio: 1; object-fit: cover; }

/* ── Tablet breakpoint (≤768px) ─ */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 56px;
    padding-bottom: 3rem;
    gap: 2rem;
  }
  .hero-text {
    padding-top: 2rem;
    padding-bottom: 1.5rem;
    text-align: center;
  }
  .hero-actions { justify-content: center; }
  .hero-links { justify-content: center; }
  .hero-status { justify-content: center; }
  .hero-visual { padding-bottom: 2rem; }
  .nft-card-bg { display: none; }
}

/* ── Mobile phones (≤480px) ─ */
@media (max-width: 480px) {
  .hero { padding-bottom: 2rem; }
  /* Ensure nft-card never bleeds off screen */
  .hero-visual { overflow: hidden; width: 100%; }
  .nft-card { width: clamp(180px, 72vw, 300px); margin: 0 auto; }
}

/* ── Animations ─────────────────────────────────────────────── */
@keyframes float-card {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-14px); }
}

@keyframes float-card-bg {
  0%, 100% { transform: rotate(8deg) scale(0.9) translateY(0); }
  50%       { transform: rotate(8deg) scale(0.9) translateY(-10px); }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.45; }
}

/* ── Shared keyframes (used across multiple components) ─────── */
@keyframes bbPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.55; transform: scale(0.88); }
}
@keyframes bbFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
@keyframes bbBreathe {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-4px) scale(1.01); }
}

/* ── ONE NFT — EVERYTHING section (centered large text) ─────── */
.one-nft-section {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.one-nft-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 50%,
    rgba(255,80,53,0.05) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Feature cards (numbered) ───────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  margin-top: 3rem;
}

@media (max-width: 1024px) {
  /* 5 items in 3 cols → item 4 spans 2 to fill row cleanly, no orphan empty cell */
  .features-grid { grid-template-columns: repeat(6, 1fr); }
  .features-grid .feature-item:nth-child(1) { grid-column: span 2; }
  .features-grid .feature-item:nth-child(2) { grid-column: span 2; }
  .features-grid .feature-item:nth-child(3) { grid-column: span 2; }
  .features-grid .feature-item:nth-child(4) { grid-column: span 3; }
  .features-grid .feature-item:nth-child(5) { grid-column: span 3; }
}
@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; }
  .features-grid .feature-item { grid-column: span 1 !important; }
}

.feature-item {
  background: var(--bg-card);
  padding: 1.5rem 1.25rem;
  position: relative;
  transition: var(--t-md);
}

.feature-item:hover { background: var(--bg-elevated); }

.feature-num {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-3);
  font-weight: 600;
}

.feature-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.icon-coral  { background: rgba(255,80,53,0.12); }
.icon-teal   { background: rgba(0,200,150,0.12); }
.icon-purple { background: rgba(155,127,255,0.12); }
.icon-amber  { background: rgba(245,166,35,0.12); }
.icon-green  { background: rgba(34,197,94,0.12); }

.feature-item h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 0.35rem; }
.feature-item p  { font-size: 0.78rem; color: var(--text-2); line-height: 1.55; margin: 0; }

/* ── What you get — large feature rows ──────────────────────── */
.get-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  margin-top: 2.5rem;
}

@media (max-width: 768px) {
  .get-grid { grid-template-columns: 1fr; }
}

.get-row {
  background: var(--bg-card);
  padding: 1.75rem 1.5rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  transition: var(--t);
}
.get-row:hover { background: var(--bg-elevated); }

.get-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  background: rgba(255,80,53,0.1);
}

.get-text h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.3rem; }
.get-text p  { font-size: 0.82rem; color: var(--text-2); line-height: 1.55; margin: 0; }

/* ── Papa Bloney — featured card ────────────────────────────── */
.papa-card {
  background: var(--bg-card);
  border: 1px solid var(--border-md);
  border-radius: var(--r-xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  transition: var(--t-md);
}
.papa-card:hover { border-color: var(--border-coral); }

@media (max-width: 768px) {
  .papa-card { grid-template-columns: 1fr; }
}

.papa-img {
  position: relative;
  overflow: hidden;
  min-height: 340px;
}
/* Fix portrait-wrapper expansion collapsing right content column */
.papa-img .portrait-wrapper {
  width: 100%;
  height: 100%;
  display: block;
}
.papa-img .portrait-wrapper .portrait-canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.papa-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Fix inconsistent PNG exports: force dark bg so white-bg PNGs don't clash */
  background: var(--bg-card);
}

/* Fix bear PNG background inconsistency across all bear images */
.bear-img,
.bear-card-img img,
.breeding-parent img,
.lady-card img,
.civ-card img {
  background: var(--bg-card);
}

.papa-body {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  justify-content: center;
}

.papa-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.28rem 0.65rem;
  border-radius: var(--r-pill);
}

.tag-coral  { background: rgba(255,80,53,0.12);  color: var(--coral);  border: 1px solid rgba(255,80,53,0.25); }
.tag-teal   { background: rgba(0,200,150,0.1);   color: var(--teal);   border: 1px solid rgba(0,200,150,0.2); }
.tag-amber  { background: rgba(245,166,35,0.1);  color: var(--amber);  border: 1px solid rgba(245,166,35,0.2); }
.tag-purple { background: rgba(155,127,255,0.1); color: var(--purple); border: 1px solid rgba(155,127,255,0.2); }

.alive-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.28rem 0.65rem;
  border-radius: var(--r-pill);
  background: rgba(34,197,94,0.1);
  color: var(--green);
  border: 1px solid rgba(34,197,94,0.2);
}

.alive-tag .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px rgba(34,197,94,0.8);
  animation: pulse-dot 2s ease infinite;
}

.dna-box {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--coral);
  background: rgba(255,80,53,0.06);
  border: 1px solid rgba(255,80,53,0.12);
  padding: 0.55rem 0.85rem;
  border-radius: var(--r-sm);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: 0.06em;
}

.trait-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.trait {
  font-size: 0.75rem;
  color: var(--text-2);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  padding: 0.22rem 0.55rem;
  border-radius: var(--r-pill);
}

.papa-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}

.papa-stat { text-align: center; }
.papa-stat .val {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--amber);
}
.papa-stat .lbl { font-size: 0.75rem; color: var(--text-3); margin-top: 0.1rem; }

.papa-file-row {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-3);
}
.papa-file-row span { margin-right: 0.5rem; }

/* ── Marketplace grid ───────────────────────────────────────── */
.market-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

@media (max-width: 1024px) { .market-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px)  { .market-grid { grid-template-columns: 1fr; } }

/* ── Bear card — clean minimal borders, NO card movement ────── */
.bear-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  overflow: hidden;            /* hard clip — nothing bleeds outside card */
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s ease;
  position: relative;
}

.bear-card:hover { border-color: rgba(255,80,53,0.30); }

/* ── Card image area ─────────────────────────────────────────── */
.bear-card-img {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;          /* secondary hard clip */
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Three-layer genetics rendering inside cards */
.bear-card-img .bear-color-wrap {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.bear-card-img .bear-shape-wrap {
  width: 86%; height: 86%;
  display: flex; align-items: center; justify-content: center;
}

/* The actual bear image — animation target only */
.bear-card-img img,
.bear-card-img .bear-face-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 18%;  /* show head */
  display: block;
  transform-origin: 50% 40%;
}

/* Bear smiles on hover — ONLY the image animates, card stays still */
.bear-card:hover .bear-card-img img,
.bear-card:hover .bear-face-img {
  animation: bearSmile 2.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Shared smile keyframe (also used in civilization.css) */
@keyframes bearSmile {
  0%   { transform: scale(1)    rotate(0deg)  translateY(0); }
  18%  { transform: scale(1.07) rotate(-5deg) translateY(-3%); }
  38%  { transform: scale(1.09) rotate(4deg)  translateY(-4%); }
  58%  { transform: scale(1.08) rotate(-2deg) translateY(-3%); }
  78%  { transform: scale(1.07) rotate(1deg)  translateY(-2%); }
  100% { transform: scale(1.06) rotate(0deg)  translateY(-2%); }
}

.bear-card-badges {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  right: 0.6rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.bear-card-body {
  padding: 0.9rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.bear-card-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
}

.bear-card-key {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-3);
}

.bear-dna {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--coral);
  background: rgba(255,80,53,0.05);
  border: 1px solid rgba(255,80,53,0.1);
  padding: 0.35rem 0.55rem;
  border-radius: var(--r-sm);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bear-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
}

.bear-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1rem;
  border-top: 1px solid var(--border);
}

.bear-price .eth {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--amber);
}
.bear-price .bln { font-size: 0.75rem; color: var(--text-3); }

.bear-actions { display: flex; gap: 0.35rem; }

.btn-talk {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--teal);
  background: rgba(0,200,150,0.07);
  border: 1px solid rgba(0,200,150,0.2);
  padding: 0.4rem 0.75rem;
  border-radius: var(--r-pill);
  transition: var(--t);
  cursor: pointer;
}
.btn-talk:hover { background: rgba(0,200,150,0.14); color: var(--teal); }

.btn-buy-sm {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  background: var(--coral);
  border: none;
  padding: 0.4rem 0.75rem;
  border-radius: var(--r-pill);
  transition: var(--t);
  cursor: pointer;
  text-decoration: none;
}
.btn-buy-sm:hover { background: var(--coral-2); color: #fff; }

/* ── How it works — 3 steps ─────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  margin-top: 2.5rem;
}

@media (max-width: 768px) { .steps-grid { grid-template-columns: 1fr; } }

.step-item {
  background: var(--bg-card);
  padding: 2rem 1.75rem;
  text-align: center;
  transition: var(--t);
  position: relative;
}
.step-item:hover { background: var(--bg-elevated); }

.step-num-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255,80,53,0.1);
  border: 1px solid rgba(255,80,53,0.25);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--coral);
  margin: 0 auto 1.25rem;
}

.step-item h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; }
.step-item p  { font-size: 0.82rem; color: var(--text-2); line-height: 1.6; margin-bottom: 0.85rem; }

.step-files {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
}

.file-chip {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--teal);
  background: rgba(0,200,150,0.07);
  border: 1px solid rgba(0,200,150,0.15);
  padding: 0.22rem 0.5rem;
  border-radius: var(--r-sm);
  white-space: nowrap;
  display: inline-block;
}

/* ── Soul files explainer ────────────────────────────────────── */
.soul-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  margin-top: 2.5rem;
}

@media (max-width: 768px) { .soul-grid { grid-template-columns: 1fr; } }

.soul-panel {
  background: var(--bg-card);
  padding: 2rem;
  transition: var(--t);
}
.soul-panel:hover { background: var(--bg-elevated); }

.soul-panel .file-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.soul-panel h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; }
.soul-panel p  { font-size: 0.82rem; color: var(--text-2); line-height: 1.65; margin-bottom: 1rem; }

.code-block {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.8;
  color: var(--text-2);
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border);
  padding: 1rem;
  border-radius: var(--r-md);
}

/* ── Stats band ─────────────────────────────────────────────── */
.stats-band {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
}

@media (max-width: 768px) { .stats-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .stats-row { grid-template-columns: 1fr; } }

.stat-cell {
  background: var(--bg);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  text-align: center;
  transition: var(--t);
}
.stat-cell:hover { background: var(--bg-card); }

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-label { font-size: 0.82rem; color: var(--text-2); }

/* ── Testimonials ────────────────────────────────────────────── */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}

@media (max-width: 768px) { .testi-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .testi-grid { grid-template-columns: 1fr; } }

.testi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: var(--t-md);
}
.testi-card:hover { border-color: var(--border-md); }

.testi-stars { color: var(--amber); font-size: 0.8rem; letter-spacing: 0.1em; }
.testi-text  { font-size: 0.88rem; color: var(--text-2); line-height: 1.65; font-style: italic; flex: 1; }

.testi-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.testi-author img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.testi-author-name { font-size: 0.82rem; font-weight: 600; }
.testi-author-role { font-size: 0.75rem; color: var(--text-3); }

/* ── CTA band ────────────────────────────────────────────────── */
.cta-band {
  background: var(--bg-card);
  border: 1px solid var(--border-coral);
  border-radius: var(--r-xl);
  padding: clamp(2rem, 4vw, 3.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .cta-band { flex-direction: column; text-align: center; align-items: center; }
}

.cta-band-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
@media (max-width: 768px) { .cta-band-actions { justify-content: center; } }

/* ── Techoem cards ───────────────────────────────────────────── */
.techoem-row {
  display: grid;
  grid-template-columns: 1fr clamp(220px, 26vw, 300px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  margin-bottom: 1.5rem;
  align-items: stretch;
}
.techoem-row:last-child { margin-bottom: 0; }
.techoem-row:hover {
  border-color: var(--border-md);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.techoem-body {
  padding: clamp(1.75rem, 3vw, 2.25rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.5rem;
}

.techoem-id {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--coral);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.3rem;
}

.techoem-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-1);
}

.techoem-poem {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.85;
  white-space: pre-line;
  flex: 1;
}

.techoem-img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  max-height: 320px;
  object-fit: cover;
  object-position: center top;
  filter: brightness(0.92) saturate(0.88) contrast(1.05);
  transition: filter 0.25s ease;
  display: block;
  /* no zoom/scale animation — image stays fixed in frame */
}
.techoem-row:hover .techoem-img {
  filter: brightness(1.0) saturate(1.0) contrast(1.05);
}

@media (max-width: 480px) {
  .techoem-row { grid-template-columns: 1fr; }
  .techoem-img { width: 100%; height: 220px; min-height: unset; max-height: unset; object-position: center 20%; }
}

/* ── Footer ─────────────────────────────────────────────────── */
.bbw-footer {
  border-top: 1px solid var(--border);
  padding-top: clamp(3rem, 5vw, 4rem);
  padding-bottom: 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

@media (max-width: 768px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 480px) { .footer-top { grid-template-columns: 1fr; } }

.footer-brand-col a {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-1);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}

.footer-brand-col p {
  font-size: 0.85rem;
  color: var(--text-2);
  line-height: 1.65;
  max-width: 280px;
  margin-bottom: 1rem;
}

.footer-chain-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-3);
  background: var(--bg-pill);
  border: 1px solid var(--border);
  padding: 0.3rem 0.65rem;
  border-radius: var(--r-pill);
}

.footer-col h6 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-2);
  transition: var(--t);
}
.footer-links a:hover { color: var(--text-1); }

/* Newsletter */
.newsletter-band {
  border: 1px solid var(--border-coral);
  border-radius: var(--r-xl);
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

@media (max-width: 768px) { .newsletter-band { flex-direction: column; align-items: stretch; } }

.newsletter-band h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.25rem; }
.newsletter-band p  { font-size: 0.82rem; color: var(--text-2); margin: 0; }

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* A9: Visible newsletter label */
.newsletter-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-2);
  display: block;
}

.newsletter-form > .btn-cta,
.newsletter-form .newsletter-input {
  align-self: flex-start;
}

@media (min-width: 480px) {
  .newsletter-form {
    flex-direction: row;
    align-items: flex-end;
  }
  .newsletter-label { display: none; } /* hidden on wide: placeholder is sufficient */
}

.newsletter-input {
  background: var(--bg);
  border: 1px solid var(--border-md);
  color: var(--text-1);
  font-size: 0.88rem;
  padding: 0.65rem 1.1rem;
  border-radius: var(--r-pill);
  outline: none;
  width: 220px;
  transition: var(--t);
}
.newsletter-input::placeholder { color: var(--text-3); }
.newsletter-input:focus { border-color: var(--coral); }

/* expand breakpoint so phones get full-width newsletter input */
@media (max-width: 480px) { .newsletter-input { width: 100%; } }
@media (max-width: 480px) { .newsletter-form { flex-direction: column; width: 100%; } }

/* Footer bottom bar */
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-block: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-bottom span { font-size: 0.78rem; color: var(--text-3); }

/* ── Lore page ───────────────────────────────────────────────── */
.lore-hero-section {
  padding-top: clamp(7rem, 10vw, 9rem);
  padding-bottom: clamp(3rem, 5vw, 4rem);
  text-align: center;
}

.lore-img-row {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.5rem;
}

.lore-img-row img {
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  object-fit: cover;
}

.lore-img-row img.main-img  { width: clamp(180px, 22vw, 280px); aspect-ratio: 0.75; }
.lore-img-row img.side-img  { width: clamp(120px, 14vw, 180px); aspect-ratio: 0.75; opacity: 0.5; transform: scale(0.9); }

/* ── Utilities ───────────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-xs { margin-top: 0.5rem; }
.mt-sm { margin-top: 1rem; }
.mt-md { margin-top: 1.75rem; }
.mt-lg { margin-top: 2.5rem; }
.mt-xl { margin-top: 3.5rem; }
.mb-xs { margin-bottom: 0.5rem; }
.mb-sm { margin-bottom: 1rem; }
.mb-md { margin-bottom: 1.75rem; }
.flex-wrap-gap { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

/* ── Footer aliases (footer-brand / footer-logo / footer-social / footer-col-title) ── */
.footer-brand { /* alias for footer-brand-col */ }

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-1);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  transition: var(--t);
}
.footer-logo:hover { color: var(--text-1); opacity: 0.85; }

.footer-social {
  font-size: 0.78rem;
  color: var(--text-2);
  border: 1px solid var(--border);
  padding: 0.3rem 0.65rem;
  border-radius: var(--r-pill);
  transition: var(--t);
  text-decoration: none;
}
.footer-social:hover { border-color: var(--coral); color: var(--coral); }

.footer-col-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 1rem;
}

/* Newsletter inner layout */
.newsletter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
@media (max-width: 480px) { .newsletter-inner { flex-direction: column; align-items: stretch; } }

/* ── Lore page hero bear images ──────────────────────────────── */
.lore-hero-gif {
  width: clamp(200px, 24vw, 300px);
  border: 2px solid var(--border-coral);
  border-radius: var(--r-lg);
  object-fit: contain;
  object-position: center bottom;
}

/* Side bears — slightly smaller, faded */
.lore-side-bear {
  width: clamp(110px, 14vw, 170px);
  object-fit: contain;
  object-position: center bottom;
  opacity: 0.5;
  border-radius: var(--r-lg);
}
.lore-side-bear--flip { transform: scaleX(-1); }

.lore-story-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

/* ── Gender differentiation ─────────────────────────────────── */
.gender-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  margin-left: 0.6rem;
  vertical-align: middle;
}
.gender-label.female { background: rgba(255,100,180,0.15); color: #ff78c4; border: 1px solid rgba(255,100,180,0.3); }
.gender-label.male   { background: rgba(0,180,255,0.12);  color: #4dcfff; border: 1px solid rgba(0,180,255,0.25); }
.gender-label.pair   { background: rgba(155,127,255,0.15); color: #b99fff; border: 1px solid rgba(155,127,255,0.3); }

.gender-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
}
.gender-badge.female { background: rgba(255,100,180,0.18); color: #ff78c4; border: 1px solid rgba(255,100,180,0.35); }
.gender-badge.male   { background: rgba(0,180,255,0.15);  color: #4dcfff; border: 1px solid rgba(0,180,255,0.3); }

/* Female cards — rose left-border accent */
.bear-card--female { border-left: 3px solid rgba(255,100,180,0.5); }
.bear-card--female:hover { border-left-color: rgba(255,100,180,0.9); box-shadow: -4px 0 16px rgba(255,100,180,0.15), var(--shadow-card-hover); }

/* Male cards — blue left-border accent */
.bear-card--male { border-left: 3px solid rgba(0,180,255,0.4); }
.bear-card--male:hover { border-left-color: rgba(0,180,255,0.85); box-shadow: -4px 0 16px rgba(0,180,255,0.12), var(--shadow-card-hover); }

.bear-lineage--female { color: #ff78c4 !important; }
.bear-lineage--male   { color: #4dcfff !important; }

/* ── Breeding pair layout ────────────────────────────────────── */
.breeding-pair {
  margin-top: 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-md);
  border-radius: var(--r-xl);
  padding: 1.5rem;
}
.breeding-parents {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.breeding-parent {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 120px;
  max-width: 180px;
}
.breeding-parent img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--r-lg);
  border: 2px solid var(--border);
  transition: transform 0.2s ease;
}
.breeding-parent img:hover { transform: scale(1.04); }
.breeding-parent.female img { border-color: rgba(255,100,180,0.4); box-shadow: 0 0 14px rgba(255,100,180,0.12); }
.breeding-parent.male   img { border-color: rgba(0,180,255,0.35);  box-shadow: 0 0 14px rgba(0,180,255,0.1); }
.bp-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-1);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.bp-dna {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-3);
  text-align: center;
}
.breeding-heart {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--text-3);
  flex-shrink: 0;
}
.breeding-heart span {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-2);
}
.breeding-arrow {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-3);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  margin: 1rem 0 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}
.breeding-arrow::before, .breeding-arrow::after {
  content: '';
  display: block;
  height: 1px;
  width: 40px;
  background: var(--border-md);
}

/* ── Scrollbar ───────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(255,80,53,0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,80,53,0.5); }

/* ── Civilization Gallery ────────────────────────────────────── */
.civ-gen-header {
  margin-top: 3rem;
  margin-bottom: 1.5rem;
}

/* Offspring cards inside a breeding pair — full width, centered text */
.breeding-pair .civ-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}
.breeding-pair .civ-grid .bear-card {
  flex: 1 1 280px;
  max-width: 360px;
}

.civ-gen-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.civ-gen-divider::before,
.civ-gen-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.civ-gen-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-3);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}
@media (max-width: 480px) {
  /* Gen-divider: hide side-lines and center-wrap label on small screens */
  .civ-gen-label { white-space: normal; text-align: center; }
  .civ-gen-divider::before,
  .civ-gen-divider::after { display: none; }
}

.civ-gen-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.civ-gen-desc {
  font-size: 0.85rem;
  color: var(--text-2);
  max-width: 580px;
  line-height: 1.65;
}

/* Breeding section headers — center text */
.breeding-pair ~ .civ-gen-header,
.breeding-pair + .civ-gen-header {
  text-align: center;
}
.breeding-pair ~ .civ-gen-header .civ-gen-desc,
.civ-gen-header .civ-gen-desc {
  margin-inline: auto;
}

.civ-grid {
  display: grid;
  gap: 0.85rem;
}

/* Gen 1 (15 bears) — 5-col desktop, Gen 2 (12 bears) — 4-col */
.gen1-grid { grid-template-columns: repeat(5, 1fr); }
.gen2-grid { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .gen1-grid { grid-template-columns: repeat(4, 1fr); }
  .gen2-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .gen1-grid, .gen2-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
  .gen1-grid, .gen2-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Genealogy chain ─────────────────────────────────────────── */
.gene-chain {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  margin-bottom: 2rem;
}
.gene-node {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.gene-bear-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.gene-node-info { line-height: 1.3; }
.gene-node-name { font-size: 0.82rem; font-weight: 700; color: var(--text-1); }
.gene-node-gen  { font-size: 0.75rem; color: var(--text-3); }
.gene-arrow {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--text-3);
  font-size: 0.75rem;
}
.gene-dna-line { letter-spacing: -0.5px; }
@media (max-width: 480px) {
  .gene-chain { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .gene-arrow { transform: rotate(90deg); margin: 0 auto; }
}

/* ── Bear lineage tag ────────────────────────────────────────── */
.bear-lineage {
  font-size: 0.75rem;
  color: var(--text-3);
  margin-top: 0.25rem;
  padding: 0.2rem 0.5rem;
  background: var(--bg-elevated);
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  display: inline-block;
}

/* ── Papa portrait image ─────────────────────────────────────── */
.papa-img svg {
  display: block;
  border-radius: var(--r-lg);
}

/* ── Bear SVG portrait system ────────────────────────────────── */
.bear-card-img .bear-svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Mouth swap on hover — CSS targets SVG paths inside parent on hover */
.bear-svg .m-n { transition: opacity 0.22s ease; }
.bear-svg .m-s { opacity: 0; transition: opacity 0.22s ease; }
.bear-card:hover .bear-svg .m-n { opacity: 0; }
.bear-card:hover .bear-svg .m-s { opacity: 1; }

/* Cancel the img scale rule for svg-based cards */
.bear-card:hover .bear-card-img .bear-svg { transform: none; }

/* ── Per-personality hover animations ────────────────────────── */
/* Each plays once when you hover — not looping */
.anim-bounce:hover .bear-svg   { animation: bear-bounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); }
.anim-tilt-r:hover .bear-svg   { animation: bear-tilt-r 0.5s cubic-bezier(0.34, 1.20, 0.64, 1); }
.anim-nod:hover .bear-svg      { animation: bear-nod    0.65s cubic-bezier(0.4, 0, 0.2, 1); }
.anim-lean:hover .bear-svg     { animation: bear-lean   0.7s  cubic-bezier(0.4, 0, 0.2, 1); }
.anim-jump:hover .bear-svg     { animation: bear-jump   0.72s cubic-bezier(0.34, 1.56, 0.64, 1); }
.anim-shrink:hover .bear-svg   { animation: bear-shrink 0.5s  cubic-bezier(0.4, 0, 0.2, 1); }
.anim-float:hover .bear-svg    { animation: bear-float  1.1s  ease-in-out; }
.anim-tilt-l:hover .bear-svg   { animation: bear-tilt-l 0.5s  cubic-bezier(0.34, 1.20, 0.64, 1); }

@keyframes bear-bounce {
  0%   { transform: translateY(0)    scale(1); }
  40%  { transform: translateY(-14px) scale(1.07, 0.96); }
  65%  { transform: translateY(-5px)  scale(1.03, 1.01); }
  100% { transform: translateY(0)    scale(1); }
}

@keyframes bear-tilt-r {
  0%   { transform: rotate(0deg)  scale(1); }
  35%  { transform: rotate(7deg)  scale(1.05); }
  65%  { transform: rotate(3deg)  scale(1.02); }
  100% { transform: rotate(0deg)  scale(1); }
}

@keyframes bear-nod {
  0%   { transform: scaleY(1)    translateY(0); }
  30%  { transform: scaleY(0.92) translateY(4px); }
  60%  { transform: scaleY(1.05) translateY(-3px); }
  100% { transform: scaleY(1)    translateY(0); }
}

@keyframes bear-lean {
  0%   { transform: translateX(0)  rotate(0deg); }
  38%  { transform: translateX(-7px) rotate(-5deg); }
  70%  { transform: translateX(3px)  rotate(2deg); }
  100% { transform: translateX(0)  rotate(0deg); }
}

@keyframes bear-jump {
  0%   { transform: translateY(0)    scale(1); }
  22%  { transform: translateY(-20px) scale(1.10, 0.93); }
  50%  { transform: translateY(-22px) scale(1.07, 0.96); }
  72%  { transform: translateY(-5px)  scale(1.02, 1.02); }
  88%  { transform: translateY(2px)   scale(0.98, 1.02); }
  100% { transform: translateY(0)    scale(1); }
}

@keyframes bear-shrink {
  0%   { transform: scale(1); }
  35%  { transform: scale(0.90) translateY(5px); }
  65%  { transform: scale(1.05) translateY(-2px); }
  100% { transform: scale(1); }
}

@keyframes bear-float {
  0%   { transform: translateY(0); }
  30%  { transform: translateY(-11px); }
  70%  { transform: translateY(-9px); }
  100% { transform: translateY(0); }
}

@keyframes bear-tilt-l {
  0%   { transform: rotate(0deg)  scale(1); }
  35%  { transform: rotate(-7deg) scale(1.05); }
  65%  { transform: rotate(-3deg) scale(1.02); }
  100% { transform: rotate(0deg)  scale(1); }
}

/* ============================================================
   COMPREHENSIVE RESPONSIVENESS — All Breakpoints
   ============================================================ */

/* ── Bear card grid on all screen sizes ─────────────────────── */
.civ-grid, .gen1-grid, .gen2-grid {
  gap: 0.85rem;
}

@media (max-width: 768px) {
  /* Papa card stacks better on mobile */
  .papa-card { gap: 1.5rem; padding: 1.5rem; }
  .papa-img img { max-width: 220px; margin: 0 auto; display: block; }

  /* Papa stats row — 2 cols on mobile */
  .papa-stats-row { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }

  /* Papa file row wraps nicely */
  .papa-file-row { flex-wrap: wrap; gap: 0.35rem; font-size: 0.75rem; }
  .papa-file-row .file-chip { font-size: 0.75rem; }

  /* Hero grid stacks */
  .hero { text-align: center; }

  /* Gene chain arrow alignment */
  .gene-arrow svg { flex-shrink: 0; }

  /* Section headings scale down */
  .t-section { letter-spacing: -0.02em; }

  /* Bear cards – ensure readable content */
  .bear-card-name { font-size: 0.82rem; }
  .bear-card-key  { font-size: 0.75rem; }
  .bear-dna       { font-size: 0.75rem; }
  .bear-lineage   { font-size: 0.75rem; }
  .bear-price .eth { font-size: 0.9rem; }

  /* CTA band */
  .civ-cta-btns { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  /* Hero title smaller */
  .t-hero { font-size: clamp(2rem, 10vw, 3.2rem); }

  /* Bear card footers stack */
  .bear-card-footer { flex-direction: column; gap: 0.5rem; align-items: flex-start; }
  .bear-actions     { width: 100%; display: flex; gap: 0.4rem; }
  .btn-talk, .btn-mint-sm, .btn-buy-sm { flex: 1; text-align: center; font-size: 0.75rem; padding: 0.4rem; }

  /* Blonsk clock date */
  .bck-date { font-size: clamp(1.5rem, 8vw, 2.5rem) !important; }

  /* DNA box wraps */
  .dna-box { font-size: 0.75rem; word-break: break-all; white-space: normal; padding: 0.6rem; }

  /* Gene chain horizontal scroll on small screens */
  .gene-chain { overflow-x: auto; padding-bottom: 0.5rem; }

  /* Merged from 400px */
  .papa-stats-row { grid-template-columns: 1fr; }
  .trait-list { gap: 0.3rem; }
  .papa-card { padding: 1rem; }
}

/* ── Civilization section in main.ejs (landing page) ────────── */
@media (max-width: 768px) {
  .civ-gen-header { text-align: center; }
  .civ-gen-title  { font-size: clamp(1.2rem, 4vw, 1.6rem); }
  .civ-gen-desc   { font-size: 0.85rem; }
}

/* ── Blonsk clock responsive ────────────────────────────────── */
@media (max-width: 480px) {
  .bck-bears-strip { flex-direction: column; align-items: center; gap: 0.4rem; }
  .bck-bear-pill   { width: 100%; max-width: 280px; }
}

/* ── Marketplace hero responsive ────────────────────────────── */
@media (max-width: 480px) {
  .market-filter-row { flex-direction: column; gap: 0.5rem; }
  .market-sort       { width: 100%; }
}

/* ── Bear profile page responsive ──────────────────────────── */
@media (max-width: 768px) {
  .bp-hero-grid      { grid-template-columns: 1fr; }
  .bp-image-col      { max-width: 380px; margin: 0 auto; }
  .bp-tabs           { overflow-x: auto; flex-wrap: nowrap; }
  .bp-tab-btn        { white-space: nowrap; }
}

@media (max-width: 480px) {
  .bp-stats-grid     { grid-template-columns: 1fr 1fr; }
  .bp-tree-row       { flex-direction: column; }
  .bp-trait-bars     { gap: 0.6rem; }
  .bp-dna-strip      { gap: 0.3rem; }
  .bp-image-actions  { flex-direction: column; gap: 0.5rem; }
  .bp-btn-talk,
  .bp-btn-buy        { width: 100%; justify-content: center; }
}

/* ── Techoem page responsive ────────────────────────────────── */
@media (max-width: 480px) {
  .techoem-card { padding: 1.25rem; }
  .techoem-card pre { font-size: 0.78rem; }
}

/* ── Footer responsive ──────────────────────────────────────── */
@media (max-width: 480px) {
  .footer-links-col ul { column-count: 1; }
}

/* ── Prevent horizontal overflow globally ───────────────────── */
body, .civ-page, .bp-page, main {
  overflow-x: hidden;
}

/* ── Touch targets: ensure buttons are tappable ─────────────── */
@media (max-width: 768px) {
  .btn-cta, .btn-ghost, .bp-btn-talk, .bp-btn-buy,
  .btn-talk, .btn-mint-sm, .btn-buy-sm {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}


/* ============================================================
   EDITORIAL DESIGN SYSTEM  (molt.id–inspired, ed-* namespace)
   ============================================================ */

/* ── Horizontal rule divider ─────────────────────────────────── */
.ed-rule {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* Utility: rule with spacing below — replaces repeated inline margin-bottom:2rem */
.ed-rule--spaced {
  margin-bottom: 2rem;
}

/* ── Story avatar with initials ──────────────────────────────── */
.story-avatar--initials {
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-avatar-initial {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 800;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1;
}

/* ── Feed avatar with initials ───────────────────────────────── */
.feed-bear-avatar--initials {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.9);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}

/* ── Activity icon color variants ────────────────────────────── */
.activity-icon-clean {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-3);
  flex-shrink: 0;
  margin-top: 1px;
}

.activity-icon--earn  { color: var(--teal);   background: rgba(0,200,150,0.08);  border-color: rgba(0,200,150,0.2); }
.activity-icon--birth { color: var(--amber);  background: rgba(245,166,35,0.08); border-color: rgba(245,166,35,0.2); }
.activity-icon--dna   { color: var(--coral);  background: rgba(255,80,53,0.08);  border-color: rgba(255,80,53,0.2); }

/* ── Blurred overlay improved copy ──────────────────────────── */
.blurred-overlay-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-1);
  margin: 0 0 0.25rem;
  text-align: center;
}

.blurred-overlay-lore {
  font-size: 0.78rem;
  color: var(--text-3);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

.blurred-overlay-lore:hover { color: var(--text-2); }

/* ── Section eyebrow: number + tag ──────────────────────────── */
.ed-section-eyebrow {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.ed-section-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--coral);
  text-transform: uppercase;
}

.ed-section-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
}

/* ── Section headings ────────────────────────────────────────── */
.ed-section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--text-1);
  margin: 0;
}

.ed-section-body {
  font-size: 0.97rem;
  line-height: 1.75;
  color: var(--text-2);
  margin-top: 1rem;
}

/* Italic emphasis colours */
.ed-em-coral  { font-style: italic; color: var(--coral); }
.ed-em-teal   { font-style: italic; color: var(--teal); }
.ed-em-amber  { font-style: italic; color: var(--amber); }

/* ── Buttons (editorial, no emoji) ──────────────────────────── */
.ed-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 1.5rem;
  background: var(--coral);
  color: #fff;
  border: none;
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.ed-btn-primary:hover {
  background: var(--coral-2);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255,80,53,0.3);
}

.ed-btn-primary:active { transform: translateY(0); }

.ed-btn-primary.ed-btn-sm { height: 34px; padding: 0 1rem; font-size: 0.8rem; }
.ed-btn-primary.ed-btn-lg { height: 50px; padding: 0 2rem; font-size: 0.95rem; }

.ed-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 1.5rem;
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border-md);
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.ed-btn-ghost:hover {
  border-color: var(--text-2);
  color: var(--text-1);
  background: rgba(255,255,255,0.04);
}

.ed-btn-ghost.ed-btn-sm { height: 34px; padding: 0 1rem; font-size: 0.8rem; }
.ed-btn-ghost.ed-btn-lg { height: 50px; padding: 0 2rem; font-size: 0.95rem; }

.ed-text-link {
  font-size: 0.88rem;
  color: var(--text-2);
  text-decoration: none;
  border-bottom: 1px solid var(--border-md);
  padding-bottom: 0.05em;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.ed-text-link:hover {
  color: var(--text-1);
  border-color: var(--text-2);
}


/* ── Hero section ────────────────────────────────────────────── */
.ed-hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(4rem, 8vw, 8rem);
  overflow: hidden;
}

/* Subtle radial glow behind hero */
.ed-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 50%, rgba(255,80,53,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 30% 30%, rgba(0,200,150,0.04) 0%, transparent 60%);
  pointer-events: none;
}

.ed-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.ed-hero-text { position: relative; }

/* ── Kicker line ─────────────────────────────────────────────── */
.ed-kicker {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

.ed-kicker-mark {
  width: 18px;
  height: 1px;
  background: var(--coral);
  flex-shrink: 0;
}

.ed-kicker-sep { opacity: 0.3; }

/* ── Oversized headline ──────────────────────────────────────── */
.ed-headline {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 11vw, 9.5rem);
  font-weight: 800;
  line-height: 0.93;
  letter-spacing: -0.035em;
  margin: 0 0 1.75rem;
}

.ed-headline-line {
  display: block;
  color: var(--text-1);
}

.ed-headline-line--accent { color: var(--coral); }

/* ── Hero body + CTA area ────────────────────────────────────── */
.ed-hero-body {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-2);
  max-width: 42ch;
  margin-bottom: 1.75rem;
}

.ed-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

/* ── Spec strip ──────────────────────────────────────────────── */
.ed-spec-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}

.ed-spec-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-right: 1.5rem;
  padding-bottom: 0.5rem;
}

.ed-spec-divider {
  width: 1px;
  background: var(--border);
  margin: 0 1.5rem 0 0;
  align-self: stretch;
}

.ed-spec-key {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}

.ed-spec-val {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-1);
  letter-spacing: 0.02em;
}

/* ── NFT Card (hero right) ───────────────────────────────────── */
.ed-hero-card {
  display: flex;
  justify-content: center;
  align-items: center;
}

.ed-nft-card {
  background: var(--bg-card);
  border: 1px solid var(--border-md);
  border-radius: var(--r-xl);
  overflow: hidden;
  width: 100%;
  max-width: 360px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5), 0 0 0 1px var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ed-nft-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 32px 80px rgba(0,0,0,0.6), 0 0 0 1px var(--border-coral);
}

.ed-nft-card-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1.1rem 0.6rem;
  border-bottom: 1px solid var(--border);
}

.ed-nft-card-label-left {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
}

.ed-nft-card-chain {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--teal);
  text-transform: uppercase;
  border: 1px solid rgba(0,200,150,0.3);
  padding: 0.15rem 0.5rem;
  border-radius: var(--r-pill);
}

.ed-nft-card-img-wrap {
  background: var(--bg);
  aspect-ratio: 1;
  overflow: hidden;
  position: relative;
}

.ed-nft-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.ed-nft-card:hover .ed-nft-card-img { transform: scale(1.03); }

.ed-nft-card-body { padding: 1rem 1.1rem 1.1rem; }

.ed-nft-card-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 0.35rem;
}

.ed-nft-card-dna {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--text-3);
  margin-bottom: 0.75rem;
}

.ed-nft-card-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.ed-nft-trait {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.45);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 0.2rem 0.55rem;
}

/* ── Scroll hint ─────────────────────────────────────────────── */
.ed-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  /* Fade in after 2s so it doesn't compete with hero entrance */
  animation: scrollHintFadeIn 0.6s ease 2s forwards;
}

.ed-scroll-line {
  display: block;
  width: 1px;
  height: 44px;
  overflow: hidden;
  position: relative;
}

/* The travelling gradient — runs through the line from top to bottom */
.ed-scroll-line::before {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.6), transparent);
  animation: scrollHintTravel 1.8s cubic-bezier(0.25, 1, 0.5, 1) infinite;
}

/* Static background of the line */
.ed-scroll-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.12);
}

.ed-scroll-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  animation: scrollLabelBob 1.8s ease-in-out infinite;
}

@keyframes scrollHintFadeIn {
  to { opacity: 1; }
}

@keyframes scrollHintTravel {
  0%   { top: -100%; opacity: 0; }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { top: 100%;  opacity: 0; }
}

@keyframes scrollLabelBob {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50%       { transform: translateY(3px); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .ed-scroll-line::before { animation: none; }
  .ed-scroll-label { animation: none; }
  .ed-scroll-hint { animation: none; opacity: 1; }
}

/* ── Stats row (Section 01) ──────────────────────────────────── */
.ed-stats-section {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.ed-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.ed-stat-cell {
  padding: clamp(1.25rem, 3vw, 2rem) clamp(1rem, 2.5vw, 1.75rem);
  border-right: 1px solid var(--border);
}

.ed-stat-cell:last-child { border-right: none; }

.ed-stat-number {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-1);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.ed-stat-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}


/* ── Public tier invite (blurred feed teaser) ────────────────── */
.public-stats-teaser {
  padding-block: clamp(3rem, 5vw, 5rem);
}

.ed-tier-invite {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.ed-tier-invite-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0.5rem 0 0.75rem;
}

.ed-tier-invite-body {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-2);
  margin-bottom: 1.25rem;
}

/* Blurred feed skeleton */
.blurred-feed-teaser {
  background: var(--bg-card);
  border: 1px solid var(--border-md);
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
}

.blurred-feed-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
}

.ed-feed-live-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
}

.feed-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 2s ease-in-out infinite;
}

.blurred-feed-cards {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  filter: blur(5px);
  user-select: none;
  pointer-events: none;
}

.blurred-post {
  background: var(--bg-elevated);
  border-radius: var(--r-md);
  padding: 1rem;
}

.blur-post-header { display: flex; gap: 0.75rem; align-items: flex-start; margin-bottom: 0.75rem; }
.blur-avatar { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,0.1); flex-shrink: 0; }
.blur-avatar-b { background: rgba(0,200,150,0.2); }
.blur-meta-name { height: 10px; border-radius: 5px; background: rgba(255,255,255,0.12); margin-bottom: 6px; }
.blur-meta-time { width: 60px; height: 8px; border-radius: 4px; background: rgba(255,255,255,0.06); }
.blur-line { height: 9px; border-radius: 4px; background: rgba(255,255,255,0.1); margin-bottom: 6px; }
.blur-line-75 { width: 75%; }
.blur-line-50 { width: 50%; }
.blur-reactions { display: flex; gap: 0.5rem; margin-top: 0.75rem; }
.blur-reaction-btn { height: 24px; width: 60px; border-radius: 4px; background: rgba(255,255,255,0.06); }

.blurred-feed-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: rgba(10,8,8,0.55);
  backdrop-filter: blur(2px);
  text-align: center;
  padding: 1rem;
}

.blurred-feed-overlay p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
  margin: 0;
}

.blurred-overlay-sub {
  font-size: 0.75rem !important;
  margin-top: 0.25rem !important;
}

.blurred-overlay-sub a {
  color: var(--text-2);
  text-decoration: underline;
}


/* ── Wallet dashboard ────────────────────────────────────────── */
.wallet-dashboard {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.ed-wallet-welcome {
  margin-bottom: 2rem;
}

.wallet-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border-md);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 2rem;
}

.dash-card {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.5rem;
  background: var(--bg-card);
  text-decoration: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s ease;
  position: relative;
}

.dash-card:hover { background: var(--bg-elevated); }

.dash-card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-1);
}

.dash-card-sub {
  font-size: 0.8rem;
  color: var(--text-2);
}

.dash-card-arrow {
  position: absolute;
  top: 1.5rem;
  right: 1.25rem;
  color: var(--text-3);
  font-size: 1.1rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.dash-card:hover .dash-card-arrow {
  color: var(--coral);
  transform: translateX(3px);
}

.dash-card-mint { border-left: 2px solid var(--coral) !important; }
.dash-card-mint .dash-card-title { color: var(--coral); }


/* ── Activity feed (wallet tier, read-only) ──────────────────── */
.world-activity-feed {
  border: 1px solid var(--border-md);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-card);
}

.activity-feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.ed-feed-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
}

.feed-live-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--green);
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: var(--r-pill);
  padding: 0.15rem 0.5rem;
}

.activity-list { padding: 0.75rem 0; }

.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.65rem 1.25rem;
  transition: background 0.15s ease;
}

.activity-item:hover { background: rgba(255,255,255,0.025); }

.activity-icon-clean {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-3);
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.activity-body {
  font-size: 0.85rem;
  color: var(--text-2);
  line-height: 1.5;
}

.activity-body strong { color: var(--text-1); font-weight: 600; }

.activity-time {
  display: inline-block;
  margin-left: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-3);
}

.activity-gate-note {
  padding: 0.85rem 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  margin: 0;
}


/* ── DeFi tabs (NFT tier) ────────────────────────────────────── */
.nft-experience {
  padding-block: 0;
}

.defi-tab-bar {
  display: flex;
  gap: 0;
  padding: 1rem 0 0;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}

.defi-tab {
  padding: 0.6rem 1.25rem;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-2);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease;
  margin-bottom: -1px;
}

.defi-tab:hover { color: var(--text-1); }
.defi-tab.is-active { color: var(--text-1); border-bottom-color: var(--coral); }

.defi-panel { padding-top: 1.5rem; }
.defi-panel.is-hidden { display: none; }


/* ── Feed (NFT tier — social) ────────────────────────────────── */
.stories-row {
  display: flex;
  gap: 0.75rem;
  padding-bottom: 1.25rem;
  overflow-x: auto;
}

.story-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  flex-shrink: 0;
}

.story-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 2px solid var(--border-md);
  overflow: hidden;
}

.story-avatar img { width: 100%; height: 100%; object-fit: cover; }

.story-has-new .story-avatar { border-color: var(--coral); }

.story-avatar-add {
  background: var(--bg-elevated);
  border: 2px dashed var(--border-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: rgba(255,255,255,0.4);
}

.story-label { font-size: 0.75rem; color: var(--text-2); text-align: center; max-width: 56px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Composer */
.feed-composer {
  background: var(--bg-card);
  border: 1px solid var(--border-md);
  border-radius: var(--r-lg);
  padding: 1rem;
  margin-bottom: 1rem;
}

.composer-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.composer-bear-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  flex-shrink: 0;
}

.composer-input-btn {
  flex: 1;
  text-align: left;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 0.6rem 1rem;
  font-size: 0.88rem;
  color: var(--text-2);
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.composer-input-btn:hover { border-color: var(--border-md); color: var(--text-1); }

.composer-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.composer-action-btn {
  padding: 0.35rem 0.85rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 0.78rem;
  color: var(--text-2);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.composer-action-btn:hover { border-color: var(--border-md); color: var(--text-1); background: rgba(255,255,255,0.04); }
.composer-action-btn.ai-btn { border-color: rgba(155,127,255,0.4); color: var(--purple); }
.composer-action-btn.ai-btn:hover { background: rgba(155,127,255,0.08); }

/* Feed filter pills */
.feed-filter-bar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.feed-filter-btn {
  padding: 0.35rem 0.9rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-size: 0.8rem;
  color: var(--text-2);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.feed-filter-btn:hover { border-color: var(--border-md); color: var(--text-1); }
.feed-filter-btn.is-active { background: var(--bg-elevated); border-color: var(--border-md); color: var(--text-1); }

/* Feed posts */
.feed-posts { display: flex; flex-direction: column; gap: 1px; }

.feed-card {
  background: var(--bg-card);
  border: 1px solid var(--border-md);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 0.75rem;
  transition: border-color 0.2s ease;
}

.feed-card:hover { border-color: rgba(255,255,255,0.16); }

.feed-card-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1rem 0.5rem;
}

.feed-bear-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-elevated);
  overflow: hidden;
  flex-shrink: 0;
}

.feed-bear-avatar img { width: 100%; height: 100%; object-fit: cover; }

.feed-post-meta { flex: 1; min-width: 0; }

.feed-post-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-1);
  line-height: 1.2;
}

.feed-post-time {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  margin-top: 0.15rem;
}

.feed-more-btn {
  background: none;
  border: none;
  color: var(--text-3);
  cursor: pointer;
  font-size: 1rem;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.5rem;
  border-radius: var(--r-sm);
  transition: background 0.15s ease, color 0.15s ease;
}

.feed-more-btn:hover { background: rgba(255,255,255,0.06); color: var(--text-1); }

.feed-card-body {
  padding: 0.5rem 1rem 0.75rem;
}

.feed-card-body p {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-1);
  margin: 0 0 0.5rem;
}

.feed-context-label {
  font-size: 0.75rem;
  color: var(--text-3);
  font-style: italic;
}

.feed-engagement-bar {
  border-top: 1px solid var(--border);
  padding: 0.5rem 1rem;
}

.feed-reactions-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-3);
  margin-bottom: 0.4rem;
}

.feed-action-row {
  display: flex;
  gap: 0;
}

.feed-action-btn {
  flex: 1;
  background: none;
  border: none;
  padding: 0.45rem 0;
  font-size: 0.82rem;
  color: var(--text-2);
  cursor: pointer;
  border-radius: var(--r-sm);
  transition: background 0.15s ease, color 0.15s ease;
  text-align: center;
}

.feed-action-btn:hover { background: rgba(255,255,255,0.05); color: var(--text-1); }
.feed-action-btn.liked { color: var(--coral); }


/* ── Bank panel ──────────────────────────────────────────────── */
.bank-dashboard { display: flex; flex-direction: column; gap: 1rem; }

.bank-balance-card, .dna-identity-card, .bank-wallet-addr {
  background: var(--bg-card);
  border: 1px solid var(--border-md);
  border-radius: var(--r-lg);
  padding: 1.25rem;
}

.bank-balance-label, .dna-id-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 0.5rem;
}

.bank-sol-amount {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-1);
  line-height: 1;
}

.bank-bln-amount {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--teal);
  margin-top: 0.3rem;
  margin-bottom: 1rem;
}

.bank-action-row { display: flex; gap: 0.5rem; }

.bank-action-btn {
  flex: 1;
  padding: 0.5rem 0;
  background: transparent;
  border: 1px solid var(--border-md);
  border-radius: var(--r-sm);
  color: var(--text-2);
  font-size: 0.82rem;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.bank-action-btn:hover { border-color: var(--coral); color: var(--text-1); background: rgba(255,80,53,0.06); }

.dna-id-hash {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-1);
  word-break: break-all;
  line-height: 1.5;
}

/* Earnings + payments grids */
.earnings-grid, .payments-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }

.earnings-card, .payments-card {
  background: var(--bg-card);
  border: 1px solid var(--border-md);
  border-radius: var(--r-lg);
  padding: 1.25rem;
}

.earnings-label, .payments-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 0.4rem;
}

.earnings-val, .payments-val {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-1);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.payments-val { color: rgba(255,80,53,0.85); }

.earnings-change {
  font-size: 0.75rem;
  color: var(--teal);
}

.payments-sub {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
}


/* ── Blonsk Calendar section ─────────────────────────────────── */
.ed-clock-section { padding-block: clamp(3rem, 5vw, 5rem); }

.blonsk-cal-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.blonsk-cal-year {
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text-1);
  margin-bottom: 0.25rem;
}

.blonsk-cal-date {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  margin-bottom: 1rem;
}

.blonsk-cal-month {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--coral);
}

.blonsk-cal-day {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

.blonsk-cal-note {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--text-2);
  max-width: 36ch;
}

.blonsk-cal-stat { margin-bottom: 1.5rem; }

.blonsk-cal-stat-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 0.5rem;
}

.blonsk-cal-bar-wrap {
  height: 4px;
  background: var(--border);
  border-radius: var(--r-pill);
  overflow: hidden;
  margin-bottom: 0.4rem;
}

.blonsk-cal-bar {
  height: 100%;
  background: var(--coral);
  border-radius: var(--r-pill);
  transition: width 1s ease;
}

.blonsk-cal-stat-val {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-2);
}

.blonsk-cal-facts { display: flex; flex-direction: column; gap: 1rem; }

.blonsk-cal-fact {
  padding-left: 1rem;
  border-left: 2px solid var(--border-md);
}

.blonsk-cal-fact-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 0.2rem;
}

.blonsk-cal-fact-val {
  font-size: 0.88rem;
  color: var(--text-1);
  font-weight: 500;
}


/* ── Features section (Section 03) ───────────────────────────── */
.ed-features-section { padding-block: clamp(3rem, 5vw, 5rem); }

.ed-features-split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.ed-features-left { position: sticky; top: calc(var(--nav-h) + 2rem); }

.ed-feature-row {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.ed-feature-row:first-child { padding-top: 0; }
.ed-feature-row:last-child  { border-bottom: none; }

.ed-feature-index {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--text-3);
  padding-top: 0.2rem;
  flex-shrink: 0;
  width: 24px;
}

.ed-feature-body h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-1);
  margin: 0 0 0.35rem;
}

.ed-feature-body p {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--text-2);
  margin: 0;
}


/* ── Economy section (Section 04) ───────────────────────────── */
.ed-economy-section { padding-block: clamp(3rem, 5vw, 5rem); }

.ed-economy-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.ed-economy-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.ed-economy-fact {
  flex: 1 1 120px;
  background: var(--bg-card);
  border: 1px solid var(--border-md);
  border-radius: var(--r-md);
  padding: 1rem 1.25rem;
}

.ed-economy-fact-num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--amber);
  margin-bottom: 0.25rem;
}

.ed-economy-fact-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}


/* ── Papa Bloney section (Section 05) ────────────────────────── */
.ed-papa-section { padding-block: clamp(3rem, 5vw, 5rem); }

.papa-card {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
  background: var(--bg-card);
  border: 1px solid var(--border-md);
  border-radius: var(--r-xl);
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.papa-img { border-radius: var(--r-lg); overflow: hidden; background: var(--bg); }
.papa-img img { width: 100%; aspect-ratio: 1; object-fit: cover; }

.papa-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.75rem; }

.ed-papa-name {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0;
}

.papa-stats-row { display: flex; gap: 1.5rem; }
.papa-stat .val { font-family: var(--font-display); font-size: 1.2rem; font-weight: 800; color: var(--amber); }
.papa-stat .lbl { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); margin-top: 0.1rem; }

.flex-wrap-gap { display: flex; flex-wrap: wrap; gap: 0.75rem; }


/* ── Civilization section (Section 06) ───────────────────────── */
.ed-civ-section { padding-block: clamp(3rem, 5vw, 5rem); }

.ed-civ-split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.ed-civ-stats { display: flex; gap: 1.5rem; margin-top: 1.5rem; flex-wrap: wrap; }

.ed-civ-stat { display: flex; flex-direction: column; gap: 0.15rem; }

.ed-civ-stat-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-1);
}

.ed-civ-stat-lbl {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* Gene chain */
.gene-chain { display: flex; flex-direction: column; gap: 0; }

.gene-node {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-md);
  border-radius: var(--r-md);
}

.gene-bear-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  color: #fff;
  flex-shrink: 0;
}

.gene-node-name {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-1);
}

.gene-node-gen {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
}

.gene-arrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  color: var(--text-3);
}

.gene-dna-line {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--text-3);
  text-transform: uppercase;
}

/* Ladies editorial strip */
.ladies-editorial { }

.lady-card--featured {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid rgba(var(--lady-accent,196,154,46), 0.2);
  border-radius: var(--r-lg);
  padding: 1rem;
  position: relative;
  overflow: hidden;
}

.lady-card--featured::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 100% at 0% 50%, var(--lady-glow, rgba(196,154,46,0.18)) 0%, transparent 70%);
  pointer-events: none;
}

.lady-featured-img {
  width: 80px;
  height: 80px;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg);
  flex-shrink: 0;
}

.lady-featured-img img { width: 100%; height: 100%; object-fit: cover; }

.lady-badges-row { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 0.4rem; }

.lady-number-chip {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.35);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 0.1rem 0.45rem;
}

.lady-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
}

.lady-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.bear-actions { display: flex; gap: 0.5rem; align-items: center; }


/* ── Lore section (Section 07) ───────────────────────────────── */
.ed-lore-section { padding-block: clamp(3rem, 5vw, 5rem); }

.ed-lore-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.techoem-row {
  background: var(--bg-card);
  border: 1px solid var(--border-md);
  border-radius: var(--r-md);
  padding: 1.1rem 1.25rem;
  transition: border-color 0.2s ease;
}

.techoem-row:hover { border-color: rgba(255,255,255,0.16); }

.techoem-id {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 0.35rem;
}

.techoem-title {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-1);
  margin-bottom: 0.4rem;
}

.techoem-poem {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.65;
  color: var(--text-2);
  white-space: pre-line;
}


/* ── Community section (Section 08) ─────────────────────────── */
.ed-community-section { padding-block: clamp(3rem, 5vw, 5rem); }

.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 0.5rem;
}

.testi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-md);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.testi-stars {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--amber);
}

.testi-text {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-2);
  margin: 0;
  flex: 1;
}

.testi-author { display: flex; align-items: center; gap: 0.65rem; }

.testi-bear-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.testi-author-name {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-1);
}

.testi-author-role {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
}


/* ── CTA section (Section 09) ────────────────────────────────── */
.ed-cta-section { padding-block: clamp(3rem, 5vw, 5rem); }

.cta-band {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-md);
  border-radius: var(--r-xl);
  padding: clamp(2rem, 4vw, 3rem);
}

.cta-band-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-width: 220px;
}

.ed-cta-progress { margin-bottom: 0.5rem; }

.ed-cta-bar {
  height: 3px;
  background: var(--border);
  border-radius: var(--r-pill);
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.ed-cta-bar-fill {
  height: 100%;
  background: var(--coral);
  border-radius: var(--r-pill);
  transition: width 1s ease;
}

.ed-cta-bar-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.4);
}

.ed-check-item {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.45);
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
}


/* ── Modal overlay ───────────────────────────────────────────── */
.bbw-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.bbw-modal-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border-md);
  border-radius: var(--r-xl);
  width: 100%;
  max-width: 540px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.7);
  overflow: hidden;
}

.bbw-modal-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.bbw-modal-close {
  margin-left: auto;
  background: none;
  border: none;
  color: rgba(255,255,255,0.35);
  cursor: pointer;
  font-size: 1rem;
  padding: 0.25rem 0.5rem;
  border-radius: var(--r-sm);
  transition: background 0.15s ease, color 0.15s ease;
}

.bbw-modal-close:hover { background: rgba(255,255,255,0.06); color: var(--text-1); }

.bbw-composer-ta {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  resize: none;
  padding: 1rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-1);
}

.bbw-composer-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--border);
}

.composer-char-count {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-3);
}

.bbw-composer-privacy {
  background: var(--bg-card);
  border: 1px solid var(--border-md);
  border-radius: var(--r-sm);
  color: var(--text-2);
  font-size: 0.78rem;
  padding: 0.35rem 0.5rem;
  cursor: pointer;
}

.bbw-coming-soon-body {
  padding: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.65;
}

/* Comment drawer */
.comment-drawer {
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
}

.comment-drawer-inner { padding: 0.75rem 1rem; }

.comment-input-row {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.comment-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.75rem;
  color: var(--text-1);
}

.comment-input {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-md);
  border-radius: var(--r-pill);
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
  color: var(--text-1);
  outline: none;
  transition: border-color 0.2s ease;
}

.comment-input:focus { border-color: var(--coral); }

/* Pulse dot animation */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.75); }
}


/* ── Wallet gate overlay (Level 2 pages) ─────────────────────── */
.wallet-gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10,8,8,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}

.wallet-gate-box {
  max-width: 420px;
  width: 100%;
}

.wallet-gate-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 1rem;
}

.wallet-gate-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0 0 1rem;
}

.wallet-gate-body {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-2);
  margin-bottom: 1.5rem;
}

.wallet-gate-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.wallet-gate-footer {
  margin-top: 1.25rem;
  font-size: 0.78rem;
  color: var(--text-3);
}

/* Hide gate when wallet connected */
body.access-wallet .wallet-gate-overlay,
body.access-nft    .wallet-gate-overlay {
  display: none;
}


/* ── Responsive: editorial system ───────────────────────────── */
@media (max-width: 1024px) {
  .ed-hero-inner        { grid-template-columns: 1fr; }
  .ed-hero-card         { display: none; }
  .ed-features-split    { grid-template-columns: 1fr; }
  .ed-features-left     { position: static; }
  .ed-economy-layout    { grid-template-columns: 1fr; }
  .ed-civ-split         { grid-template-columns: 1fr; }
  .ed-lore-split        { grid-template-columns: 1fr; }
  .cta-band             { grid-template-columns: 1fr; }
  .cta-band-actions     { flex-direction: row; flex-wrap: wrap; }
}

@media (max-width: 768px) {
  .ed-stats-row         { grid-template-columns: repeat(2, 1fr); }
  .ed-stat-cell         { border-bottom: 1px solid var(--border); }
  .ed-stat-cell:nth-child(odd)  { border-right: 1px solid var(--border); }
  .ed-stat-cell:nth-child(even) { border-right: none; }
  .ed-tier-invite       { grid-template-columns: 1fr; }
  .ed-tier-feed-preview { display: none; }
  .wallet-card-grid     { grid-template-columns: repeat(2, 1fr); }
  .blonsk-cal-inner     { grid-template-columns: 1fr; }
  .testi-grid           { grid-template-columns: 1fr; }
  .papa-card            { grid-template-columns: 1fr; }
  .papa-img             { max-width: 280px; }
  .earnings-grid,
  .payments-grid        { grid-template-columns: 1fr; }
  .lady-card--featured  { grid-template-columns: 1fr; }
  .lady-featured-img    { width: 100%; height: 160px; }
}

@media (max-width: 480px) {
  .ed-headline          { font-size: clamp(3rem, 14vw, 5rem); }
  .ed-stats-row         { grid-template-columns: 1fr 1fr; }
  .wallet-card-grid     { grid-template-columns: 1fr; }
  .ed-btn-primary,
  .ed-btn-ghost         { width: 100%; justify-content: center; }
  .ed-hero-actions      { flex-direction: column; }
  .ed-spec-strip        { flex-direction: column; }
  .ed-spec-divider      { width: auto; height: 1px; margin: 0 0 0.75rem; }
  .defi-tab-bar         { gap: 0; }
  .stories-row          { gap: 0.5rem; }
  .cta-band-actions     { flex-direction: column; }
}

/* Touch targets for ed-* buttons */
@media (max-width: 768px) {
  .ed-btn-primary,
  .ed-btn-ghost {
    min-height: 44px;
  }
}
