/* ============================================================
   Necrowls, Crypt Glass
   ============================================================
   Glossy. Sleek. Crypt-style.
   Pokemon-style cards. Infinite marquees. Clean line dividers.
   Mobile-first responsive.
   ============================================================ */

:root {
  /* Palette */
  --bg:           #07060a;
  --bg-1:         #0c0a12;
  --bg-2:         #14101c;
  --bg-card:      rgba(20, 16, 28, 0.6);
  --bg-card-hi:   rgba(28, 22, 38, 0.78);

  --fg:           #f1e8d5;
  --fg-2:         #b8ad95;
  --muted:        #7a6e5d;
  --muted-2:      #50473b;

  --accent:       #d4a943;        /* gold */
  --accent-hi:    #f0c862;
  --accent-soft:  rgba(212, 169, 67, 0.12);
  --accent-line:  rgba(212, 169, 67, 0.28);
  --accent-glow:  rgba(212, 169, 67, 0.4);

  --rare:         #6b8cff;        /* rare = soft cobalt */
  --rare-hi:      #8aa6ff;
  --rare-glow:    rgba(107, 140, 255, 0.4);

  --legendary:    #c466ff;        /* legendary = amethyst */
  --legendary-hi: #d98aff;
  --legendary-glow: rgba(196, 102, 255, 0.45);

  --blood:        #8b1a1a;
  --blood-hi:     #b03030;

  --border:       rgba(241, 232, 213, 0.08);
  --border-hi:    rgba(241, 232, 213, 0.18);
  --border-strong:rgba(241, 232, 213, 0.32);

  --glass-blur:   blur(14px);

  --font-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-script:  'Cinzel', 'Times New Roman', serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', 'Geist Mono', 'Courier New', monospace;

  --container:    1280px;
  --container-narrow: 980px;
}

/* ───── Reset ───── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  min-height: 100vh;
  overflow-x: hidden;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Atmospheric backdrop, radial glow + grain texture */
body::before {
  content: ''; position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(212, 169, 67, 0.06), transparent 65%),
    radial-gradient(ellipse 50% 70% at 80% 100%, rgba(196, 102, 255, 0.04), transparent 65%),
    radial-gradient(ellipse 50% 70% at 20% 90%, rgba(107, 140, 255, 0.04), transparent 65%);
}
body::after {
  content: ''; position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: 0.6;
}

img, svg, canvas { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
input, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; transition: color 0.2s; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(212,169,67,0.25); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(212,169,67,0.5); }

/* ───── Typography helpers ───── */
.font-display { font-family: var(--font-display); }
.font-script  { font-family: var(--font-script); }
.font-mono    { font-family: var(--font-mono); }
.italic       { font-style: italic; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.005em; line-height: 1.1; }
h1 { font-size: clamp(64px, 11vw, 144px); line-height: 0.94; font-weight: 500; }
h2 { font-size: clamp(36px, 5.4vw, 64px); }
h3 { font-size: clamp(22px, 2.8vw, 34px); }
h4 { font-size: 18px; line-height: 1.3; font-weight: 500; }

p { color: var(--fg-2); line-height: 1.75; }

/* ============================================================
   Layout
   ============================================================ */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 2;
}
.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 2;
}

section { padding: 112px 0; position: relative; z-index: 2; }

.section-head { text-align: center; margin-bottom: 64px; }
.section-head .eyebrow { display: block; margin-bottom: 16px; }
.section-head h2 em { color: var(--accent); font-style: italic; }
.section-head .sub {
  max-width: 580px; margin: 18px auto 0;
  color: var(--fg-2); font-size: 16px;
}

/* ───── Section dividers, clean glowing lines ───── */
.section-divider {
  width: 100%; max-width: var(--container); margin: 0 auto;
  position: relative; height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(212, 169, 67, 0.06) 20%,
    rgba(212, 169, 67, 0.32) 50%,
    rgba(212, 169, 67, 0.06) 80%,
    transparent 100%);
}
.section-divider::before, .section-divider::after {
  content: '';
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent-glow);
}
.section-divider::before { left: 20%; }
.section-divider::after  { right: 20%; }
.section-divider.ornament {
  background: none;
  text-align: center;
  height: auto; margin: 56px auto;
}
.section-divider.ornament::before, .section-divider.ornament::after {
  content: ''; position: relative; display: inline-block;
  width: 80px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-line), transparent);
  vertical-align: middle; transform: none; top: auto; left: auto; right: auto;
  box-shadow: none; background-clip: border-box; border-radius: 0;
}
.section-divider.ornament .glyph {
  display: inline-block; margin: 0 18px;
  font-family: var(--font-script);
  font-size: 14px; letter-spacing: 0.3em;
  color: var(--accent);
  vertical-align: middle;
  text-shadow: 0 0 12px var(--accent-glow);
}

/* ============================================================
   Logo (SVG-embedded, used in nav & footer)
   ============================================================ */

.brand {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-script);
  font-size: 18px;
  letter-spacing: 0.24em;
  font-weight: 600;
  color: var(--fg);
}
.brand-mark {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  filter: drop-shadow(0 0 6px var(--accent-glow));
}
.brand-mark svg { width: 100%; height: 100%; }

/* ============================================================
   Navigation
   ============================================================ */

nav.site-nav {
  position: sticky; top: 0; z-index: 90;
  padding: 16px 32px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  background: rgba(7, 6, 10, 0.72);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border);
}

.nav-links {
  display: flex; align-items: center; gap: 36px;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--fg-2);
  position: relative;
  padding: 6px 0;
  font-weight: 500;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a.active { color: var(--accent); }
.nav-links a.active::after {
  content: ''; position: absolute;
  left: 50%; bottom: -22px;
  transform: translateX(-50%);
  width: 4px; height: 4px;
  background: var(--accent); border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-glow);
}

.nav-right {
  display: flex; align-items: center; gap: 16px;
}

.net-pill {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 100px;
  border: 1px solid var(--border-hi);
  color: var(--fg-2);
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(20, 16, 28, 0.5);
  font-weight: 600;
}
.net-pill.testnet { color: #f0a050; border-color: rgba(240,160,80,0.32); }
.net-pill.mainnet { color: var(--accent); border-color: var(--accent-line); }
.net-pill::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

.mobile-toggle {
  display: none;
  width: 46px; height: 46px;
  background: linear-gradient(180deg, rgba(36,20,18,0.85), rgba(18,10,8,0.95));
  border: 1px solid rgba(212,169,67,0.32);
  border-radius: 8px;
  color: var(--accent);
  position: relative;
  align-items: center; justify-content: center;
  transition: all 0.2s;
  box-shadow: inset 0 1px 0 rgba(212,169,67,0.10), 0 4px 14px rgba(0,0,0,0.4);
}
.mobile-toggle::before,
.mobile-toggle::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 18px; height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transform-origin: center;
  transition: transform 0.28s ease, opacity 0.28s ease;
}
.mobile-toggle::before { transform: translate(-50%, -6px); }
.mobile-toggle::after  { transform: translate(-50%, 4px); }
.mobile-toggle .mt-mid {
  position: absolute;
  left: 50%; top: 50%;
  width: 12px; height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transform: translate(-50%, -50%);
  transition: opacity 0.18s ease, width 0.28s ease;
  opacity: 0.7;
}
nav.site-nav.mobile-open .mobile-toggle {
  position: relative;
  z-index: 96;
}
nav.site-nav.mobile-open .mobile-toggle::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
nav.site-nav.mobile-open .mobile-toggle::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
nav.site-nav.mobile-open .mobile-toggle .mt-mid {
  opacity: 0; width: 0;
}
.mobile-toggle:hover { border-color: var(--accent); box-shadow: inset 0 1px 0 rgba(212,169,67,0.20), 0 6px 20px rgba(212,169,67,0.18); }

@media (max-width: 880px) {
  nav.site-nav { padding: 14px 20px; }
  .nav-links { display: none; }
  .mobile-toggle { display: inline-flex; }

  /* When menu is open, neutralize the nav's backdrop-filter so its
     descendants' position:fixed escapes to the viewport. Without this,
     backdrop-filter creates a containing block and the menu gets
     clipped to nav height. */
  nav.site-nav.mobile-open {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: transparent;
  }

  /* Full-screen mobile menu (replaces the old dropdown slice) */
  nav.site-nav.mobile-open .nav-links {
    display: flex;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    padding: 90px 24px 40px;
    background:
      linear-gradient(180deg, rgba(7,6,10,0.985), rgba(7,6,10,0.985)),
      radial-gradient(ellipse at 50% 30%, rgba(212,169,67,0.08), transparent 60%);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    z-index: 95;
    overflow-y: auto;
    animation: mobileMenuFade 0.28s ease;
  }
  @keyframes mobileMenuFade {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* Each link is a tall crypt-style tablet — easy to tap, can't mis-click */
  nav.site-nav.mobile-open .nav-links li {
    list-style: none;
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
  }
  nav.site-nav.mobile-open .nav-links a {
    position: relative;
    display: flex; align-items: center; justify-content: center;
    width: 100%;
    padding: 22px 24px;
    background: linear-gradient(180deg, rgba(36,20,18,0.85), rgba(18,10,8,0.95));
    border: 1px solid rgba(212,169,67,0.22);
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--fg);
    font-weight: 600;
    text-align: center;
    transition: border-color 0.2s, background 0.2s, transform 0.15s;
    overflow: hidden;
  }
  nav.site-nav.mobile-open .nav-links a::before,
  nav.site-nav.mobile-open .nav-links a::after {
    content: "";
    position: absolute;
    width: 10px; height: 10px;
    border: 1px solid var(--accent);
    opacity: 0.55;
    pointer-events: none;
  }
  nav.site-nav.mobile-open .nav-links a::before { top: 6px; left: 6px; border-right: 0; border-bottom: 0; }
  nav.site-nav.mobile-open .nav-links a::after  { bottom: 6px; right: 6px; border-left: 0; border-top: 0; }
  nav.site-nav.mobile-open .nav-links a:active {
    transform: scale(0.985);
    background: linear-gradient(180deg, rgba(60,36,22,0.95), rgba(28,16,12,0.95));
  }
  nav.site-nav.mobile-open .nav-links a.active {
    color: var(--accent);
    border-color: var(--accent);
    background: linear-gradient(180deg, rgba(60,36,22,0.95), rgba(28,16,12,0.95));
    box-shadow: 0 0 0 1px var(--accent) inset;
  }
  nav.site-nav.mobile-open .nav-links a.active::before,
  nav.site-nav.mobile-open .nav-links a.active::after { opacity: 1; }

  /* Disable the old dot indicator on full-screen menu */
  nav.site-nav.mobile-open .nav-links a.active {
    position: relative;
  }

  /* Stop body scroll when menu is open */
  body:has(nav.site-nav.mobile-open) { overflow: hidden; }

  nav.site-nav.mobile-open .brand {
    position: relative;
    z-index: 96;
  }
  nav.site-nav.mobile-open .nav-right {
    position: relative;
    z-index: 96;
  }

  .brand { font-size: 15px; letter-spacing: 0.18em; }
  .brand-mark { width: 26px; height: 26px; }
}

@media (max-width: 480px) {
  .nav-right .net-pill { display: none; }
}

/* ============================================================
   Buttons, Glossy effects
   ============================================================ */

.btn {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 100px;
  border: 1px solid var(--border-hi);
  background: rgba(20, 16, 28, 0.6);
  color: var(--fg);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(.4, 0, .2, 1);
  white-space: nowrap;
  cursor: pointer;
  min-width: 0;
}
/* When a button shares space inside a flex/grid layout (modal-actions,
   stake-actions, myowls-actions), let it shrink its letter-spacing
   rather than clip — keeps the text readable at small widths. */
.modal-actions .btn,
.myowls-actions .btn,
.stake-actions .btn {
  flex: 1 1 0;
  min-width: 0;
  letter-spacing: 0.14em;
  padding-left: 18px;
  padding-right: 18px;
}
@media (max-width: 480px) {
  .modal-actions .btn,
  .myowls-actions .btn,
  .stake-actions .btn {
    letter-spacing: 0.10em;
    font-size: 10.5px;
  }
}
.btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.6s ease;
}
.btn:hover:not(:disabled)::before { left: 100%; }
.btn:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(212, 169, 67, 0.12);
}
.btn:active:not(:disabled) { transform: translateY(0); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-hi));
  color: #1a1208;
  border-color: var(--accent);
  font-weight: 700;
  box-shadow: 0 0 0 1px rgba(212, 169, 67, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--accent-hi), var(--accent));
  color: #1a1208;
  border-color: var(--accent-hi);
  box-shadow: 0 0 0 1px var(--accent-hi), 0 16px 40px rgba(212,169,67,0.35), inset 0 1px 0 rgba(255,255,255,0.4);
}

.btn-ghost {
  background: rgba(20,16,28,0.4);
  border: 1px solid var(--border);
}

.btn-danger {
  border-color: rgba(176, 48, 48, 0.5);
  color: #d99;
  background: rgba(40, 14, 14, 0.4);
}
.btn-danger:hover:not(:disabled) {
  background: rgba(139, 26, 26, 0.2);
  border-color: var(--blood-hi);
  color: #fbb;
  box-shadow: 0 12px 32px rgba(176, 48, 48, 0.18);
}

.btn-block { display: flex; width: 100%; }
.btn-sm { padding: 9px 18px; font-size: 10px; letter-spacing: 0.18em; }
.btn-lg { padding: 18px 36px; font-size: 12px; letter-spacing: 0.22em; }

/* ============================================================
   Wallet button states
   ============================================================ */

.wallet-btn {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 100px;
  border: 1px solid var(--accent-line);
  background: linear-gradient(135deg, rgba(212,169,67,0.12), rgba(212,169,67,0.04));
  color: var(--accent);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}
.wallet-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212,169,67,0.18), transparent);
  transition: left 0.5s;
}
.wallet-btn:hover::before { left: 100%; }
.wallet-btn:hover {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(212,169,67,0.22), rgba(212,169,67,0.08));
  color: var(--accent-hi);
  box-shadow: 0 0 0 1px var(--accent), 0 8px 24px rgba(212,169,67,0.2);
}

.wallet-connected {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 16px;
  border-radius: 100px;
  border: 1px solid var(--border-hi);
  background: rgba(20,16,28,0.6);
  font-family: var(--font-mono); font-size: 11px;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 600;
}
.wallet-connected:hover { border-color: var(--accent-line); }
.wallet-connected .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #6fc380;
  box-shadow: 0 0 8px #6fc380;
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 80px 32px 110px;
  text-align: center;
  position: relative;
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.hero-bg::before, .hero-bg::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}
.hero-bg::before {
  width: 600px; height: 600px;
  top: -200px; left: -100px;
  background: radial-gradient(circle, rgba(212,169,67,0.25), transparent 70%);
  animation: float1 22s ease-in-out infinite alternate;
}
.hero-bg::after {
  width: 500px; height: 500px;
  bottom: -150px; right: -100px;
  background: radial-gradient(circle, rgba(196,102,255,0.18), transparent 70%);
  animation: float2 26s ease-in-out infinite alternate;
}
@keyframes float1 { from { transform: translate(0, 0); } to { transform: translate(80px, 60px); } }
@keyframes float2 { from { transform: translate(0, 0); } to { transform: translate(-80px, -60px); } }

.hero .container {
  display: flex; flex-direction: column; align-items: center;
  position: relative; z-index: 3;
}

.hero-badge {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase;
  padding: 9px 18px;
  border: 1px solid var(--accent-line);
  border-radius: 100px;
  color: var(--accent);
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(212, 169, 67, 0.06);
  margin-bottom: 40px;
  backdrop-filter: var(--glass-blur);
  font-weight: 600;
}
.hero-badge .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(1.4); }
}

.hero-title {
  font-family: var(--font-script);
  font-size: clamp(72px, 15vw, 192px);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 0.92;
  margin-bottom: 24px;
  background: linear-gradient(180deg, var(--fg) 0%, var(--accent) 60%, rgba(212,169,67,0.6) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 80px rgba(212,169,67,0.2);
  position: relative;
}
.hero-title::after {
  content: '';
  position: absolute;
  bottom: -16px; left: 50%; transform: translateX(-50%);
  width: 80px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.hero-subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(22px, 3.6vw, 38px);
  color: var(--fg);
  margin: 28px 0 24px;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.hero-description {
  font-family: var(--font-mono);
  font-size: 13px; line-height: 1.9; letter-spacing: 0.02em;
  color: var(--fg-2);
  max-width: 540px;
  margin-bottom: 44px;
}

.hero-cta {
  display: flex; gap: 14px; flex-wrap: wrap; justify-content: center;
}

.hero-scroll {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.32em;
  text-transform: uppercase; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-weight: 600;
  pointer-events: none;
  z-index: 1;
}
.hero-scroll-arrow {
  width: 18px; height: 28px;
  border: 1.5px solid var(--accent-line);
  border-radius: 12px;
  position: relative;
}
.hero-scroll-arrow::after {
  content: '';
  position: absolute;
  top: 6px; left: 50%; transform: translateX(-50%);
  width: 2px; height: 6px;
  background: var(--accent);
  border-radius: 1px;
  animation: scrollPulse 1.8s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
  50%      { opacity: 0.3; transform: translateX(-50%) translateY(8px); }
}

@media (max-width: 600px) {
  .hero { min-height: 100vh; padding: 60px 20px 90px; }
  .hero-title { font-size: clamp(60px, 18vw, 96px); }
  .hero-subtitle { font-size: clamp(20px, 5vw, 28px); margin: 22px 0 18px; }
  .hero-description { font-size: 12px; }
  .hero-cta { flex-direction: column; width: 100%; max-width: 320px; }
  .hero-cta .btn { width: 100%; }
}

/* ============================================================
   Phase banner, visible at top of landing
   ============================================================ */

.phase-banner {
  margin: 0 auto 40px;
  max-width: 760px;
  display: flex; align-items: center; gap: 18px;
  padding: 18px 26px;
  border-radius: 100px;
  background: linear-gradient(135deg, rgba(20,16,28,0.7), rgba(20,16,28,0.4));
  border: 1px solid var(--border-hi);
  font-family: var(--font-mono);
  font-size: 12px;
  backdrop-filter: var(--glass-blur);
}
.phase-banner .pb-label {
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent);
  flex-shrink: 0;
  font-weight: 600;
  font-size: 10px;
}
.phase-banner .pb-status {
  flex: 1;
  font-size: 12px;
  color: var(--fg);
  line-height: 1.55;
}
.phase-banner .pb-status strong {
  color: var(--accent); font-weight: 600;
}
@media (max-width: 600px) {
  .phase-banner { padding: 14px 18px; flex-direction: column; gap: 8px; text-align: center; border-radius: 16px; }
}

/* ============================================================
   Stats grid
   ============================================================ */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 0 auto;
}
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .stats { grid-template-columns: 1fr; } }

/* Crypt-tablet stat — matches the mint phase tablets visually.
   Pure CSS upgrade: no markup changes on any page. */
.stat {
  position: relative;
  background: linear-gradient(180deg, rgba(36,20,18,0.85) 0%, rgba(18,10,8,0.95) 100%);
  border: 1px solid rgba(212,169,67,0.22);
  border-radius: 6px;
  padding: 26px 20px 22px;
  text-align: center;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  overflow: hidden;
}
.stat::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(140% 90% at 50% 0%, rgba(212,169,67,0.10) 0%, transparent 55%);
  opacity: 0.85;
  pointer-events: none;
}
.stat::after {
  /* Top hairline above the corners */
  content: "";
  position: absolute;
  top: 0; left: 14%; right: 14%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,169,67,0.45), transparent);
  opacity: 0.85;
}
.stat > * { position: relative; z-index: 1; }

/* Four corner brackets, drawn purely from .stat using two nested pseudos
   isn't enough (only 2 ::before/::after available). Use child .num's
   pseudo-elements for the bottom two corners — but cleaner: add
   ::before/::after on .stat .lbl too for the bottom corners. */
.stat .lbl {
  position: relative;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--fg-2);
  font-weight: 600;
  margin-top: 6px;
}

/* Corner brackets — four absolutely-positioned span pseudo-elements via
   the .stat ::marker isn't valid; instead use ::before on .num and ::after
   on .num to mark the bottom corners, AND .stat ::before/::after handle top.
   But we already used .stat ::before for the gradient + .stat ::after for hairline.
   Simplest robust approach: render corners via fixed positions using box-shadows. */
.stat {
  /* Four "corner marks" via inset box-shadow tricks would lose the gradient.
     Use border-image instead? Simpler: small color squares at the corners
     are visually identical to the cpc-corner style — use background-image
     gradients positioned in the four corners. */
  background-image:
    /* gradient body */
    linear-gradient(180deg, rgba(36,20,18,0.85) 0%, rgba(18,10,8,0.95) 100%),
    /* top-left L */
    linear-gradient(var(--accent), var(--accent)),
    linear-gradient(var(--accent), var(--accent)),
    /* top-right L */
    linear-gradient(var(--accent), var(--accent)),
    linear-gradient(var(--accent), var(--accent)),
    /* bottom-left L */
    linear-gradient(var(--accent), var(--accent)),
    linear-gradient(var(--accent), var(--accent)),
    /* bottom-right L */
    linear-gradient(var(--accent), var(--accent)),
    linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-size:
    100% 100%,
    1px 10px,  10px 1px,   /* TL: vertical, horizontal */
    1px 10px,  10px 1px,   /* TR */
    1px 10px,  10px 1px,   /* BL */
    1px 10px,  10px 1px;   /* BR */
  background-position:
    0 0,
    6px 6px,   6px 6px,                       /* TL */
    calc(100% - 6px) 6px,  calc(100% - 15px) 6px,  /* TR */
    6px calc(100% - 15px), 6px calc(100% - 6px),   /* BL */
    calc(100% - 6px) calc(100% - 15px), calc(100% - 15px) calc(100% - 6px);
}

.stat:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -16px rgba(212,169,67,0.45);
}

.stat .num {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.2vw, 52px);
  line-height: 1;
  margin-bottom: 4px;
  letter-spacing: 0.01em;
  color: var(--fg);
}
.stat .num.accent { color: var(--accent); text-shadow: 0 0 18px rgba(212,169,67,0.3); }

/* A subtle hairline rule between value and label, like cpc-rule */
.stat .lbl::before {
  content: "";
  display: block;
  width: 50%;
  height: 1px;
  margin: 8px auto 10px;
  background: linear-gradient(90deg, transparent, rgba(212,169,67,0.35), transparent);
}

.stat .sub {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.05em;
  color: var(--fg-2);
  margin-top: 6px;
  line-height: 1.4;
}

/* ============================================================
   NFT CARD, Pokemon style
   ============================================================
   Image on top, traits below. Glossy. Rarity-tinted border.
   Click → modal.
   ============================================================ */

.nft-card {
  --rarity-color: var(--accent);
  --rarity-glow:  var(--accent-glow);
  position: relative;
  background: linear-gradient(180deg, rgba(28, 22, 38, 0.9), rgba(14, 10, 22, 0.95));
  border-radius: 18px;
  padding: 0;
  cursor: pointer;
  user-select: none;
  border: 1px solid var(--border-hi);
  transition: transform 0.35s cubic-bezier(.4, 0, .2, 1), box-shadow 0.35s cubic-bezier(.4, 0, .2, 1), border-color 0.3s;
  overflow: hidden;
  /* glossy outer */
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 6px 20px rgba(0, 0, 0, 0.4);
}
.nft-card.rare      { --rarity-color: var(--rare);      --rarity-glow: var(--rare-glow); }
.nft-card.legendary { --rarity-color: var(--legendary); --rarity-glow: var(--legendary-glow); }

.nft-card:hover {
  transform: translateY(-6px);
  border-color: var(--rarity-color);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 16px 40px rgba(0, 0, 0, 0.5),
    0 0 0 1px var(--rarity-color),
    0 0 30px var(--rarity-glow);
}

/* Holographic top sheen */
.nft-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 50%;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(255, 255, 255, 0.02) 50%,
    transparent 100%);
  pointer-events: none;
  z-index: 1;
  border-radius: 18px 18px 0 0;
}

/* Image frame */
.nft-card-image {
  position: relative;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--bg-1), var(--bg-2));
  overflow: hidden;
  z-index: 2;
  border-bottom: 1px solid var(--border);
}
.nft-card-image img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.nft-card-image img.loaded { opacity: 1; }

/* Placeholder pattern shown while waiting for art (or if none uploaded) */
.nft-card-image .placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(circle at 50% 40%, rgba(212,169,67,0.08), transparent 60%),
    repeating-linear-gradient(45deg, transparent 0, transparent 6px, rgba(212,169,67,0.02) 6px, rgba(212,169,67,0.02) 7px);
  color: var(--muted);
  opacity: 0.6;
  pointer-events: none;
}
.nft-card-image .placeholder svg {
  width: 36%; height: 36%; opacity: 0.4;
}

/* Card body, header (id + rarity) and traits */
.nft-card-body {
  padding: 14px 16px 16px;
  position: relative;
  z-index: 2;
}

.nft-card-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.nft-card-id {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg);
  letter-spacing: 0.12em;
  font-weight: 600;
}
.nft-card-rarity {
  font-family: var(--font-mono);
  font-size: 8px; letter-spacing: 0.22em; text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 100px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--rarity-color);
  color: var(--rarity-color);
  font-weight: 700;
  text-shadow: 0 0 8px var(--rarity-glow);
}

/* Traits list */
.nft-card-traits {
  display: flex; flex-direction: column; gap: 5px;
}
.nft-card-trait {
  display: flex; justify-content: space-between; align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-family: var(--font-mono);
  font-size: 10px;
}
.nft-card-trait .t-name {
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  flex-shrink: 0;
  max-width: 45%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nft-card-trait .t-value {
  color: var(--fg);
  text-align: right;
  letter-spacing: 0.04em;
  font-weight: 500;
  max-width: 55%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nft-card-traits.empty {
  text-align: center;
  padding: 14px 0;
  color: var(--muted-2);
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.15em; text-transform: uppercase;
  font-style: italic;
}

/* State markers (staked / cooling badges) */
.nft-card.locked .lock-mark {
  position: absolute;
  top: 12px; left: 12px;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(212, 169, 67, 0.16);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 12px;
  display: flex; align-items: center; justify-content: center;
  z-index: 4;
  backdrop-filter: blur(4px);
}
.nft-card.cooling .lock-mark {
  background: rgba(240, 160, 80, 0.16);
  border-color: #f0a050; color: #f0a050;
}
.nft-card.selected {
  border-color: var(--accent);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 0 2px var(--accent),
    0 12px 32px var(--accent-glow);
}
.nft-card.selected::after {
  content: '✓';
  position: absolute;
  top: 12px; right: 12px;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: #1a1208;
  font-size: 13px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  z-index: 4;
  box-shadow: 0 0 16px var(--accent-glow);
}

/* Grid */
.nft-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.nft-grid.compact {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.nft-grid.scrollable {
  max-height: 640px; overflow-y: auto;
  padding: 6px 8px;
}

/* ============================================================
   MARQUEE, infinite scrolling featured rows
   ============================================================ */

.marquee {
  position: relative;
  overflow: hidden;
  padding: 8px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 6%, black 94%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, black 6%, black 94%, transparent 100%);
}
.marquee-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: marquee 80s linear infinite;
}
.marquee-right .marquee-track {
  animation-direction: reverse;
}
.marquee:hover .marquee-track,
.marquee-track:hover {
  animation-play-state: paused;
}
.marquee .nft-card {
  flex-shrink: 0;
  width: 240px;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ============================================================
   About / Tiers section
   ============================================================ */

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; gap: 40px; } }

.about-grid h2 { margin-bottom: 24px; }
.about-grid h2 em { color: var(--accent); font-style: italic; }
.about-grid p { font-size: 16px; margin-bottom: 16px; }
.about-grid p:last-child { margin-bottom: 0; }

/* Tier cards */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 860px) { .tier-grid { grid-template-columns: 1fr; } }

.tier-card {
  --c: var(--accent);
  --g: var(--accent-glow);
  position: relative;
  padding: 36px 30px;
  background: linear-gradient(180deg, var(--bg-card-hi), var(--bg-card));
  border: 1px solid var(--border-hi);
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.3s ease;
}
.tier-card.rare      { --c: var(--rare);      --g: var(--rare-glow); }
.tier-card.legendary { --c: var(--legendary); --g: var(--legendary-glow); }

.tier-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--c), transparent);
  opacity: 0.7;
}
.tier-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, var(--g), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.tier-card:hover { transform: translateY(-4px); border-color: var(--c); }
.tier-card:hover::after { opacity: 0.25; }

.tier-card .tier-label {
  font-family: var(--font-mono);
  font-size: 9px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--c);
  font-weight: 700;
  margin-bottom: 16px;
  text-shadow: 0 0 12px var(--g);
}
.tier-card h3 {
  font-family: var(--font-display);
  font-size: 32px;
  margin-bottom: 8px;
}
.tier-card .tier-count {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.15em;
  color: var(--muted);
  margin-bottom: 16px;
  text-transform: uppercase;
}
.tier-card p {
  font-size: 14px; line-height: 1.75;
  margin-bottom: 14px;
  position: relative; z-index: 1;
}
.tier-card .tier-traits {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-2);
  line-height: 1.7;
  position: relative; z-index: 1;
}
.tier-card .tier-traits strong {
  color: var(--c); font-weight: 600;
}

/* ============================================================
   Schedule / Phase cards
   ============================================================ */

.schedule {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 820px) { .schedule { grid-template-columns: 1fr; } }

.phase-card {
  position: relative;
  padding: 36px 30px;
  border-radius: 24px;
  background: linear-gradient(180deg, var(--bg-card-hi), var(--bg-card));
  border: 1px solid var(--border-hi);
  transition: all 0.35s ease;
  overflow: hidden;
}
.phase-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-line), transparent);
}
.phase-card.live {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(212,169,67,0.10), rgba(20,16,28,0.7));
  box-shadow: 0 0 0 1px var(--accent), 0 18px 48px rgba(212,169,67,0.18);
}
.phase-card.live::before {
  background: var(--accent);
  height: 2px;
}
.phase-card.live .live-badge {
  position: absolute; top: 20px; right: 22px;
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.22em;
  padding: 5px 10px; border-radius: 100px;
  background: var(--accent); color: #1a1208;
  font-weight: 700;
  animation: pulse 2.4s infinite;
}
.phase-card .num {
  font-family: var(--font-script);
  font-size: 42px; line-height: 1; font-style: italic;
  color: var(--accent); margin-bottom: 18px;
  text-shadow: 0 0 16px var(--accent-glow);
}
.phase-card h3 { font-family: var(--font-display); font-size: 28px; margin-bottom: 6px; }
.phase-card .date {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 18px;
  font-weight: 600;
}
.phase-card .price {
  font-family: var(--font-display);
  font-size: 28px; color: var(--accent-hi); margin-bottom: 14px;
}
.phase-card .desc {
  font-size: 13px; line-height: 1.8;
  color: var(--fg-2);
}

/* ============================================================
   Royalty split visual
   ============================================================ */

.royalty-split {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 56px;
  align-items: center;
  padding: 48px;
  background: linear-gradient(180deg, var(--bg-card-hi), var(--bg-card));
  border: 1px solid var(--border-hi);
  border-radius: 28px;
}
@media (max-width: 720px) {
  .royalty-split { grid-template-columns: 1fr; gap: 32px; padding: 32px; }
}

.royalty-donut {
  position: relative;
  width: 220px; height: 220px;
  margin: 0 auto;
}
.royalty-donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.royalty-donut .center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.royalty-donut .center .pct {
  font-family: var(--font-display); font-size: 52px; line-height: 1;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.royalty-donut .center .lbl {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--muted); margin-top: 4px;
  font-weight: 600;
}

.royalty-legend {
  display: flex; flex-direction: column; gap: 22px;
}
.royalty-legend h3 { font-family: var(--font-display); margin-bottom: 8px; }
.royalty-legend-item {
  display: flex; align-items: flex-start; gap: 14px;
}
.royalty-legend-item .swatch {
  width: 14px; height: 14px; border-radius: 4px;
  margin-top: 6px; flex-shrink: 0;
}
.royalty-legend-item .swatch.pool  { background: var(--accent); box-shadow: 0 0 12px var(--accent-glow); }
.royalty-legend-item .swatch.owner { background: var(--blood); }
.royalty-legend-item h4 { font-family: var(--font-display); font-size: 18px; margin-bottom: 4px; font-weight: 500; }
.royalty-legend-item p {
  font-size: 13px;
  color: var(--fg-2); line-height: 1.7;
  margin: 0;
}

/* ============================================================
   FAQ accordion
   ============================================================ */

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex; flex-direction: column; gap: 12px;
}
.faq-item {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg-card-hi), var(--bg-card));
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.25s;
}
.faq-item:hover { border-color: var(--border-hi); }
.faq-item.open  { border-color: var(--accent-line); }

.faq-question {
  width: 100%; text-align: left;
  padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--fg);
  cursor: pointer;
}
.faq-question:hover { color: var(--accent-hi); }
.faq-question .caret {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border-hi);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  transition: all 0.3s;
}
.faq-item.open .faq-question .caret {
  background: var(--accent);
  border-color: var(--accent);
  color: #1a1208;
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 24px;
}
.faq-item.open .faq-answer {
  max-height: 600px;
  padding: 0 24px 24px;
}
.faq-answer p {
  font-size: 14px; line-height: 1.8;
  margin-bottom: 12px;
}
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer ul {
  list-style: none; padding-left: 0;
}
.faq-answer ul li {
  font-size: 13px; line-height: 1.85;
  color: var(--fg-2);
  padding-left: 20px;
  position: relative;
  margin-bottom: 8px;
}
.faq-answer ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
}
.faq-answer strong { color: var(--accent-hi); font-weight: 600; }
.faq-answer code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  background: rgba(212, 169, 67, 0.08);
  padding: 2px 6px; border-radius: 4px;
}

/* ============================================================
   Mint page
   ============================================================ */

.mint-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 920px) { .mint-layout { grid-template-columns: 1fr; } }

.mint-showcase {
  padding: 32px 28px 38px;
  background: linear-gradient(180deg, var(--bg-card-hi), var(--bg-card));
  border: 1px solid var(--border-hi);
  border-radius: 28px;
  position: relative;
  overflow: hidden;
}
.mint-showcase-eyebrow {
  display: block;
  text-align: center;
  margin-bottom: 22px;
}
.mint-showcase .marquee {
  margin: 0 -28px;
}

.mint-progress {
  margin: 28px 0 8px;
}
.mint-progress-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-bottom: 14px;
  gap: 12px;
}
.mp-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.mp-counter {
  font-family: var(--font-display, serif);
  font-size: clamp(22px, 3vw, 32px);
  letter-spacing: 0.04em;
  color: var(--fg, #f4e4b0);
  text-shadow: 0 0 18px rgba(212, 169, 67, 0.25);
  white-space: nowrap;
}
.mp-counter .mp-slash {
  color: var(--accent, #d4a943);
  margin: 0 6px;
  opacity: 0.7;
}
.mp-percent {
  justify-self: end;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent, #d4a943);
  letter-spacing: 0.1em;
  font-weight: 600;
}
.mint-progress-bar { position: relative; }
.mint-progress-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(244,228,176,0.35), transparent);
  background-size: 200% 100%;
  animation: mp-shine 3.5s linear infinite;
  pointer-events: none;
  mix-blend-mode: overlay;
}
@keyframes mp-shine {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@media (max-width: 600px) {
  .mint-progress-header { grid-template-columns: 1fr; text-align: center; }
  .mp-percent { justify-self: center; }
  .mp-counter { font-size: 22px; }
}
.mint-progress-bar {
  height: 6px;
  background: var(--bg-1);
  border-radius: 100px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.mint-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blood) 0%, var(--accent) 100%);
  transition: width 0.6s ease;
  box-shadow: 0 0 14px var(--accent-glow);
}
.mint-progress-labels {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 10px;
  font-weight: 600;
}

.mint-controls {
  padding: 36px 32px;
  background: linear-gradient(180deg, var(--bg-card-hi), var(--bg-card));
  border: 1px solid var(--border-hi);
  border-radius: 28px;
}

.mint-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 12px;
}
.mint-row:last-of-type { border-bottom: none; }
.mint-row .l { color: var(--muted); letter-spacing: 0.16em; text-transform: uppercase; font-size: 10px; font-weight: 600; }
.mint-row .v { color: var(--fg); letter-spacing: 0.04em; font-weight: 500; }
.mint-row .v.accent { color: var(--accent); }

.mint-eligibility {
  margin: 24px 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(36,20,18,0.55), rgba(18,10,8,0.7));
  border: 1px solid rgba(212,169,67,0.18);
  font-family: var(--font-mono);
  color: var(--fg-2);
  min-height: 50px;
  display: flex; flex-direction: column; gap: 4px;
  line-height: 1.6;
}
.mint-eligibility:empty,
.mint-eligibility:has(:only-child:not(.elig-line)) {
  align-items: center; justify-content: center;
  text-align: center;
}
.mint-eligibility strong { color: var(--accent); font-weight: 700; font-size: 13px; }
.mint-eligibility.warn { color: #f0a050; border-color: rgba(240,160,80,0.32); background: rgba(240,160,80,0.06); }
.mint-eligibility.ok   { color: #6fc380; border-color: rgba(111,195,128,0.32); background: rgba(111,195,128,0.05); }

.qty-control {
  display: flex; align-items: center; gap: 14px; margin: 22px 0;
}
.qty-btn {
  width: 46px; height: 46px;
  background: linear-gradient(135deg, rgba(28,22,38,0.8), rgba(14,10,22,0.95));
  border: 1px solid var(--border-hi);
  border-radius: 100px;
  color: var(--accent);
  font-family: var(--font-display); font-size: 22px;
  transition: all 0.2s;
  font-weight: 500;
}
.qty-btn:hover { border-color: var(--accent); background: rgba(212,169,67,0.1); }
.qty-input {
  flex: 1; height: 46px;
  background: rgba(20,16,28,0.5);
  border: 1px solid var(--border-hi);
  border-radius: 14px;
  color: var(--fg);
  font-family: var(--font-mono); font-size: 18px;
  text-align: center;
  letter-spacing: 0.12em;
  font-weight: 600;
}
.qty-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.mint-total {
  text-align: center;
  padding: 22px;
  margin: 22px 0;
  background: linear-gradient(135deg, rgba(212,169,67,0.06), rgba(212,169,67,0.02));
  border: 1px solid var(--accent-line);
  border-radius: 14px;
}
.mint-total .lbl {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 8px;
  font-weight: 600;
}
.mint-total .v {
  font-family: var(--font-display); font-size: 34px; color: var(--accent); line-height: 1;
}

/* ============================================================
   Stake page
   ============================================================ */

.user-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 56px;
}
@media (max-width: 1080px) { .user-stats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .user-stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px)  { .user-stats { grid-template-columns: 1fr; } }

.user-stat {
  padding: 24px 18px;
  background: linear-gradient(180deg, var(--bg-card-hi), var(--bg-card));
  border: 1px solid var(--border-hi);
  border-radius: 18px;
  text-align: center;
  transition: all 0.3s;
}
.user-stat:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.user-stat .lbl {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--fg-2); margin-bottom: 10px;
  font-weight: 600;
}
.user-stat .v {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 34px); line-height: 1;
  color: var(--fg);
  letter-spacing: -0.01em;
}
.user-stat .v.accent { color: var(--accent); }
.user-stat .sub {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.15em;
  color: var(--muted); margin-top: 8px;
}
.user-stat .claim-btn-wrap { margin-top: 12px; }

.stake-grids {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
@media (max-width: 920px) { .stake-grids { grid-template-columns: 1fr; } }

.stake-side h3 {
  font-family: var(--font-display); font-size: 26px;
  margin-bottom: 4px;
}
.stake-side .stake-side-sub {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 18px;
  font-weight: 600;
}

.stake-actions {
  display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap;
}

.empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 16px;
  color: var(--muted);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.15em;
  font-style: italic;
  text-transform: uppercase;
}

/* ============================================================
   Mint toaster (Feature 1) — bottom-right, reuses toast typography
   ============================================================ */
.mint-toast-container {
  position: fixed; bottom: 24px; right: 24px; z-index: 1900;
  display: flex; flex-direction: column-reverse; gap: 10px;
  pointer-events: none;
  max-width: 300px;
}
.mint-toast {
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 10px 14px;
  font-family: var(--font-mono);
  box-shadow: 0 10px 28px rgba(0,0,0,0.55);
  pointer-events: auto;
  animation: mintToastIn 0.28s cubic-bezier(.2,.8,.3,1);
}
.mint-toast.dismissing { animation: mintToastOut 0.28s ease forwards; }
.mt-mark {
  flex: 0 0 auto;
  width: 26px; height: 26px;
  color: var(--accent);
  filter: drop-shadow(0 0 6px var(--accent-glow));
  display: flex; align-items: center; justify-content: center;
}
.mt-mark svg { width: 100%; height: 100%; }
.mt-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mt-eyebrow {
  font-family: var(--font-mono);
  font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent); font-weight: 700;
}
.mt-id {
  font-family: var(--font-display);
  font-size: 18px; color: var(--fg);
  letter-spacing: 0.02em;
}
@keyframes mintToastIn {
  from { transform: translateX(110%) translateY(8px); opacity: 0; }
  to   { transform: translateX(0) translateY(0);     opacity: 1; }
}
@keyframes mintToastOut {
  from { transform: translateX(0); opacity: 1; }
  to   { transform: translateX(110%); opacity: 0; }
}
@media (max-width: 760px) {
  .mint-toast-container {
    left: 16px; right: 16px; bottom: 16px; max-width: none;
  }
  .mint-toast { padding: 10px 12px; }
  .mt-id { font-size: 16px; }
}

/* ============================================================
   Recently-minted strip (Feature 2)
   ============================================================ */
.recent-minted {
  margin-top: 22px;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}
.recent-minted .rm-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 12px;
}
.recent-minted-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.recent-minted-strip .nft-card { width: 100%; min-width: 0; }
.recent-minted-strip .empty {
  grid-column: 1 / -1;
  padding: 24px 8px;
  font-size: 10px;
}
@media (max-width: 760px) {
  .recent-minted-strip { grid-template-columns: repeat(3, 1fr); gap: 10px; }
}
@media (max-width: 420px) {
  .recent-minted-strip { grid-template-columns: repeat(3, 1fr); gap: 8px; }
}

/* ============================================================
   Per-owl projection muted variant (Feature 4)
   ============================================================ */
.user-stat .sub.muted-projection {
  color: var(--muted-2);
  font-style: italic;
}

/* ============================================================
   My Owls page (Feature 5) — badge + action row
   ============================================================ */
.nft-card .mo-badge {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 5;
  padding: 4px 9px;
  font-family: var(--font-mono);
  font-size: 9px; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg);
  background: rgba(7, 6, 10, 0.78);
  border: 1px solid var(--border-hi);
  border-radius: 100px;
  backdrop-filter: blur(6px);
  font-weight: 600;
  white-space: nowrap;
}
.nft-card .mo-badge[data-state="staked"]  { border-color: var(--accent-line); color: var(--accent); }
.nft-card .mo-badge[data-state="cooling"] { border-color: var(--blood); color: var(--fg); }
.nft-card .mo-badge[data-state="idle"]    { color: var(--fg-2); }

.myowls-actions {
  margin-top: 32px;
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}
.myowls-actions .btn { min-width: 180px; }
@media (max-width: 760px) {
  .myowls-actions { flex-direction: column; align-items: stretch; }
  .myowls-actions .btn { min-width: 0; width: 100%; }
}

/* ============================================================
   Mint success modal (Feature 6)
   ============================================================ */
.modal.mint-success { max-width: 560px; }
.modal.mint-success .mint-success-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.modal.mint-success .mint-success-grid .nft-card { width: 100%; min-width: 0; }
.modal.mint-success .mint-success-flavor {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.12em;
  color: var(--fg-2);
  margin: 4px 0 20px;
  line-height: 1.7;
}
@media (max-width: 420px) {
  .modal.mint-success .mint-success-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   Cooldown timer cards
   ============================================================ */

.cooldown-section { margin-bottom: 48px; }
.cooldown-section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap; gap: 12px;
}
.cooldown-section-head h3 { font-family: var(--font-display); font-size: 24px; }

.cooldown-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.cooldown-card {
  padding: 22px;
  background: linear-gradient(180deg, rgba(240,160,80,0.08), var(--bg-card));
  border: 1px solid rgba(240, 160, 80, 0.32);
  border-radius: 18px;
  position: relative;
}
.cooldown-card.ready {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(212,169,67,0.12), var(--bg-card));
  box-shadow: 0 0 24px rgba(212,169,67,0.18);
}

.cooldown-card-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.cooldown-card-id {
  font-family: var(--font-mono); font-size: 13px;
  color: var(--fg); letter-spacing: 0.1em;
  font-weight: 600;
}
.cooldown-card-id .lbl {
  color: var(--muted); margin-left: 6px;
  text-transform: uppercase; font-size: 9px; letter-spacing: 0.22em;
}
.cooldown-timer {
  font-family: var(--font-mono); font-size: 20px;
  color: #f0a050; letter-spacing: 0.05em;
  text-shadow: 0 0 12px rgba(240,160,80,0.4);
  font-weight: 600;
}
.cooldown-card.ready .cooldown-timer { color: var(--accent); text-shadow: 0 0 12px var(--accent-glow); }

.cooldown-bar {
  height: 4px;
  background: var(--bg-1);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 14px;
}
.cooldown-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #f0a050, var(--accent));
  transition: width 1s linear;
  box-shadow: 0 0 8px rgba(240,160,80,0.5);
}

.cooldown-actions {
  display: flex; gap: 8px;
}
.cooldown-actions .btn { flex: 1; }

/* ============================================================
   Leaderboard + Activity
   ============================================================ */

.lb-act-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 56px;
}
@media (max-width: 920px) { .lb-act-grid { grid-template-columns: 1fr; } }

.card {
  background: linear-gradient(180deg, var(--bg-card-hi), var(--bg-card));
  border: 1px solid var(--border-hi);
  border-radius: 24px;
  padding: 32px;
}
.card-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.card-head h3 { font-family: var(--font-display); font-size: 22px; color: var(--fg); }

.lb-table, .activity-feed { max-height: 560px; overflow-y: auto; }

.lb-row {
  display: grid;
  grid-template-columns: 36px 1fr auto auto;
  gap: 14px;
  padding: 14px 6px;
  align-items: center;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 12px;
  transition: background 0.2s;
}
.lb-row:last-child { border-bottom: none; }
.lb-row:hover { background: rgba(212,169,67,0.04); }
.lb-row.you {
  background: rgba(212,169,67,0.06);
  border-left: 2px solid var(--accent);
  padding-left: 14px;
  border-radius: 0 8px 8px 0;
}
.lb-row .rank {
  font-family: var(--font-display); font-size: 18px;
  color: var(--muted);
  text-align: center; line-height: 1;
}
.lb-row .rank.gold   { color: #f0c060; text-shadow: 0 0 12px rgba(240,192,96,0.5); }
.lb-row .rank.silver { color: #c8c8c8; }
.lb-row .rank.bronze { color: #cd7f32; }
.lb-row .rank-medal {
  display: inline-block;
  margin-left: 4px;
  font-size: 0.85em;
  line-height: 1;
  vertical-align: middle;
  filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.6));
  text-shadow: none;
}
@media (max-width: 760px) {
  .lb-row .rank-medal { margin-left: 2px; font-size: 0.8em; }
}
.lb-row .addr { color: var(--fg); }
.lb-row .count {
  color: var(--accent); font-weight: 500;
  text-align: right;
}
.lb-row .count .cool { color: var(--muted); font-weight: normal; font-size: 11px; margin-left: 6px; }
.lb-row .share {
  color: var(--muted); font-size: 11px;
  text-align: right;
}

.act-row {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 6px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 12px;
}
.act-row:last-child { border-bottom: none; }
.act-icon {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(20,16,28,0.5);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
}
.act-icon.stake     { color: #6fc380; border-color: rgba(111,195,128,0.32); }
.act-icon.request   { color: #f0a050; border-color: rgba(240,160,80,0.32); }
.act-icon.cancel    { color: var(--accent); border-color: var(--accent-line); }
.act-icon.finalize  { color: var(--fg-2); }
.act-icon.claim     { color: var(--accent-hi); border-color: var(--accent-line); }

.act-body { flex: 1; min-width: 0; }
.act-title { color: var(--fg); margin-bottom: 2px; font-weight: 500; }
.act-sub { color: var(--muted); font-size: 10px; letter-spacing: 0.05em; }
.act-meta {
  text-align: right; flex-shrink: 0;
  font-size: 10px; color: var(--muted-2);
}
.act-meta a { color: var(--muted); transition: color 0.2s; }
.act-meta a:hover { color: var(--accent); }

/* ============================================================
   Modal (wallet picker AND NFT detail)
   ============================================================ */

.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center; justify-content: center;
  padding: 24px;
  animation: fadeIn 0.25s ease;
}
.modal-overlay.open { display: flex; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  width: 100%; max-width: 460px;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  padding: 36px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
  position: relative;
  animation: modalIn 0.3s cubic-bezier(.2, .8, .3, 1);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-head {
  text-align: center; margin-bottom: 24px;
}
.modal-head .eyebrow { display: block; margin-bottom: 10px; }
.modal-head h3 { font-family: var(--font-display); font-size: 28px; }
.modal-close {
  position: absolute; top: 18px; right: 18px;
  width: 32px; height: 32px;
  background: none; border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--fg-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  transition: all 0.2s;
}
.modal-close:hover { color: var(--accent); border-color: var(--accent); transform: rotate(90deg); }

/* NFT detail modal, bigger card */
.modal.nft-detail {
  max-width: 540px;
}
.modal.nft-detail .nft-card,
.modal.nft-detail .pkm-card {
  width: 100%; cursor: default;
  margin-bottom: 24px;
}
.modal.nft-detail .nft-card:hover,
.modal.nft-detail .pkm-card:hover {
  transform: none;
}
/* Breathing room between the card and the action buttons */
.modal.nft-detail #nft-detail-card {
  margin-bottom: 28px;
}
.modal-actions {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-top: 4px;
}
.modal-actions .btn { flex: 1; }

/* Wallet options */
.wallet-options { display: flex; flex-direction: column; gap: 10px; }
.wallet-option {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px;
  background: rgba(20,16,28,0.6);
  border: 1px solid var(--border);
  border-radius: 14px;
  font-family: var(--font-mono); font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--fg);
  transition: all 0.2s;
  cursor: pointer;
  width: 100%; text-align: left;
}
.wallet-option:hover {
  border-color: var(--accent-line);
  background: rgba(212,169,67,0.06);
  transform: translateX(3px);
}
.wallet-option-icon {
  flex-shrink: 0; width: 32px; height: 32px;
  border-radius: 8px;
}

/* ============================================================
   Toasts
   ============================================================ */

.toast-container {
  position: fixed; top: 90px; right: 24px; z-index: 2000;
  display: flex; flex-direction: column; gap: 12px;
  pointer-events: none;
  max-width: 360px;
}
.toast {
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--accent);
  border-radius: 14px;
  padding: 14px 18px;
  font-family: var(--font-mono); font-size: 11px;
  box-shadow: 0 14px 36px rgba(0,0,0,0.55);
  pointer-events: auto;
  animation: toastIn 0.3s ease;
}
.toast.success { border-left-color: #6fc380; }
.toast.error   { border-left-color: var(--blood-hi); }
.toast.info    { border-left-color: var(--accent); }
.toast-title {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 5px;
  font-weight: 700;
}
.toast.error .toast-title { color: #f08080; }
.toast.success .toast-title { color: #6fc380; }
.toast-body { color: var(--fg); line-height: 1.55; }
.toast a {
  display: inline-block; margin-top: 8px;
  font-size: 10px; letter-spacing: 0.14em;
  color: var(--accent); text-transform: uppercase;
  font-weight: 600;
}
.toast a:hover { color: var(--accent-hi); }

@keyframes toastIn {
  from { transform: translateX(110%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

@media (max-width: 600px) {
  .toast-container { left: 16px; right: 16px; max-width: none; top: 80px; }
}

/* ============================================================
   Loading state
   ============================================================ */
.loading {
  text-align: center; padding: 32px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--muted);
  font-weight: 600;
}
.loading::before {
  content: '◆'; display: inline-block;
  margin-right: 12px;
  animation: rot 2.4s linear infinite;
  color: var(--accent);
}
@keyframes rot {
  from { transform: rotate(0); }
  to   { transform: rotate(360deg); }
}

/* ============================================================
   Footer
   ============================================================ */

/* ============================================================
   Footer — crypt style, consistent across all pages
   ============================================================ */
.site-footer {
  margin-top: 96px;
  padding: 56px 0 28px;
  position: relative;
  background:
    linear-gradient(180deg, transparent 0%, rgba(10,6,14,0.6) 60%, rgba(10,6,14,0.85) 100%);
  border-top: 1px solid rgba(212,169,67,0.18);
}
/* Top ornament — gold hairline + center crest */
.site-footer::before {
  content: '';
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 10%, rgba(212,169,67,0.45) 50%, transparent 90%);
}
.site-footer::after {
  content: '✦';
  position: absolute;
  top: -10px; left: 50%; transform: translateX(-50%);
  width: 22px; height: 22px;
  line-height: 22px;
  font-family: var(--font-script);
  font-size: 11px;
  letter-spacing: 0;
  text-align: center;
  color: var(--accent);
  background: var(--bg);
  border: 1px solid rgba(212,169,67,0.4);
  border-radius: 50%;
  text-shadow: 0 0 10px var(--accent-glow);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 40px;
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px 32px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; text-align: center; } }

.footer-brand .brand {
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* Tagline: 6,666 reads as a numeral with a thin rule and an explanatory tail */
.footer-tagline {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  max-width: 100%;
}
.ft-count {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 38px);
  line-height: 1;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-shadow: 0 0 18px rgba(212,169,67,0.28);
  flex-shrink: 0;
  font-weight: 500;
}
.ft-rule {
  flex-shrink: 0;
  width: 26px; height: 1px;
  background: linear-gradient(90deg, rgba(212,169,67,0.6), transparent);
}
.ft-text {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.10em;
  color: var(--fg-2);
  line-height: 1.6;
  text-transform: uppercase;
}
@media (max-width: 480px) {
  .footer-tagline { flex-direction: column; gap: 8px; align-items: center; }
  .ft-rule {
    width: 40px;
    background: linear-gradient(90deg, transparent, rgba(212,169,67,0.6), transparent);
  }
  .ft-text { text-align: center; max-width: 280px; }
}

/* Column headings */
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  font-weight: 700;
  position: relative;
  padding-bottom: 10px;
}
.footer-col h4::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 28px; height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
@media (max-width: 480px) {
  .footer-col h4::after { left: 50%; transform: translateX(-50%); }
}

.footer-col ul {
  list-style: none;
  display: flex; flex-direction: column;
  gap: 10px;
}
.footer-col a {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-2);
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: color 0.2s, transform 0.2s;
  display: inline-block;
}
.footer-col a:hover {
  color: var(--accent);
  transform: translateX(3px);
}
@media (max-width: 480px) {
  .footer-col a:hover { transform: translateY(-1px); }
}

/* Bottom strip — copyright + contracts */
.footer-bottom {
  border-top: 1px solid rgba(212,169,67,0.14);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.footer-bottom > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.footer-bottom > span:first-child::before {
  content: "✦";
  font-family: var(--font-script);
  color: var(--accent);
  font-size: 9px;
  opacity: 0.6;
  letter-spacing: 0;
}

.footer-bottom .contracts {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}
.footer-bottom .contracts > span {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 5px 10px;
  background: rgba(0,0,0,0.32);
  border: 1px solid rgba(212,169,67,0.14);
  border-radius: 4px;
  font-size: 9px;
  letter-spacing: 0.10em;
  transition: border-color 0.2s ease;
}
.footer-bottom .contracts > span:hover {
  border-color: rgba(212,169,67,0.35);
}
.footer-bottom .contracts > span > span,
.footer-bottom .contracts > span > a {
  color: var(--accent);
  text-transform: lowercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}
.footer-bottom .contracts a:hover { color: var(--accent-hi); }

@media (max-width: 720px) {
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 18px;
  }
  .footer-bottom .contracts {
    justify-content: center;
    gap: 10px;
  }
  .footer-bottom .contracts > span { flex: 1 1 auto; min-width: 0; }
}
@media (max-width: 480px) {
  .footer-bottom { gap: 14px; }
  .footer-bottom .contracts {
    flex-direction: column;
    width: 100%;
    gap: 8px;
  }
  .footer-bottom .contracts > span {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================================
   Helpers
   ============================================================ */
.cta-row {
  display: flex; gap: 14px; flex-wrap: wrap; justify-content: center;
  margin-top: 32px;
}
.center { text-align: center; }
.muted { color: var(--muted); }
.spacer-md { height: 56px; }
.spacer-lg { height: 96px; }

@media (max-width: 600px) {
  section { padding: 80px 0; }
  .section-head { margin-bottom: 48px; }
}

.mint-phase-tabs{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:8px;margin:18px 0 14px;}
.phase-tab{background:rgba(255,255,255,0.02);border:1px solid rgba(212,169,67,0.18);color:var(--fg-1);padding:10px 12px;border-radius:8px;cursor:pointer;font-family:var(--font-mono);font-size:11px;letter-spacing:.08em;text-transform:uppercase;display:flex;flex-direction:column;gap:4px;transition:all .15s;}
.phase-tab .pt-price{font-size:10px;color:var(--accent);}
.phase-tab:hover:not(.disabled){border-color:var(--accent);background:rgba(212,169,67,0.06);}
.phase-tab.active{border-color:var(--accent);background:rgba(212,169,67,0.10);box-shadow:0 0 0 1px var(--accent) inset;}
.phase-tab.disabled{opacity:.5;cursor:not-allowed;}
.elig-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  background: rgba(0,0,0,0.28);
  border: 1px solid rgba(212,169,67,0.10);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  line-height: 1.4;
  transition: border-color 0.18s ease;
}
.elig-line:hover { border-color: rgba(212,169,67,0.25); }
.elig-line.ok    { color: var(--fg); border-color: rgba(212,169,67,0.22); }
.elig-line.muted { color: var(--muted); opacity: 0.75; }

.elig-line .elig-phase {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  flex-shrink: 0;
}
.elig-line.muted .elig-phase { color: var(--muted-2); }

.elig-line .elig-value {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  text-align: right;
  font-size: 11px;
}
.elig-line .elig-divider {
  color: var(--accent);
  opacity: 0.45;
  margin: 0 2px;
}
.elig-line .elig-allocation {
  color: var(--fg-2);
  font-weight: 500;
}
.elig-line .elig-sep {
  color: var(--accent);
  opacity: 0.5;
  margin: 0 2px;
}
.elig-line .elig-price {
  color: var(--accent-hi);
  letter-spacing: 0.04em;
  font-weight: 600;
}

@media (max-width: 480px) {
  .elig-line { flex-wrap: wrap; gap: 6px; padding: 8px 10px; }
  .elig-line .elig-value { font-size: 10.5px; }
  .elig-line .elig-phase { font-size: 9.5px; }
}

/* ============================================================
   CRYPT MINT — allocation bar + phase tablets
   ============================================================ */

/* ---- Allocation bar across the top ---- */
.crypt-allocation-section{padding:42px 0 6px;}
.crypt-allocation-bar{
  display:grid;
  grid-template-columns:1fr auto 1fr auto 1fr;
  align-items:stretch;
  gap:0;
  background:linear-gradient(180deg,rgba(40,22,18,0.85) 0%,rgba(22,12,10,0.95) 100%);
  border:1px solid rgba(212,169,67,0.32);
  border-radius:10px;
  padding:18px 10px;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.5) inset,
    0 18px 60px -20px rgba(0,0,0,0.7),
    0 0 28px -8px rgba(212,169,67,0.12);
  position:relative;
  overflow:hidden;
}
.crypt-allocation-bar::before{
  content:"";position:absolute;inset:0;pointer-events:none;
  background:
    radial-gradient(120% 80% at 50% -20%, rgba(212,169,67,0.10) 0%, transparent 60%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.015) 0 1px, transparent 1px 3px);
  mix-blend-mode:overlay;
}
.crypt-alloc-panel{
  display:flex;align-items:center;gap:14px;
  padding:6px 18px;position:relative;z-index:1;
  transition:opacity .2s ease;
}
.crypt-alloc-panel.alloc-muted{opacity:.55;}
.crypt-alloc-panel.alloc-locked{opacity:.7;}
.crypt-alloc-sigil{
  font-size:28px;color:var(--accent);
  line-height:1;text-shadow:0 0 14px rgba(212,169,67,0.4);
  width:36px;text-align:center;flex:0 0 auto;
}
.crypt-alloc-body{display:flex;flex-direction:column;gap:2px;min-width:0;}
.crypt-alloc-label{
  font-family:var(--font-mono);font-size:10px;letter-spacing:.18em;
  text-transform:uppercase;color:var(--muted);
}
.crypt-alloc-value{
  font-family:var(--font-display);font-size:28px;line-height:1;
  color:var(--fg-1);letter-spacing:.02em;
}
.crypt-alloc-panel.alloc-ok .crypt-alloc-value{color:var(--accent);}
.crypt-alloc-sub{
  font-family:var(--font-mono);font-size:10px;letter-spacing:.06em;
  color:var(--fg-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.crypt-alloc-divider{
  align-self:center;color:rgba(212,169,67,0.35);
  font-size:18px;padding:0 6px;
}
@media (max-width: 760px){
  .crypt-allocation-bar{
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px 12px;
  }
  .crypt-alloc-divider{display:none;}
  .crypt-alloc-panel{
    padding: 12px 14px;
    background: rgba(0,0,0,0.28);
    border: 1px solid rgba(212,169,67,0.16);
    border-radius: 6px;
    text-align: left;
  }
  .crypt-alloc-sigil{ font-size: 22px; width: 30px; }
  .crypt-alloc-value{ font-size: 22px; }
  .crypt-alloc-label{ font-size: 9px; }
  .crypt-alloc-sub{ font-size: 9px; }
}

/* ---- Phase tablets ---- */
.crypt-phase-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:10px;
  margin-bottom:18px;
}
@media (max-width: 540px){.crypt-phase-grid{grid-template-columns:1fr;}}
.crypt-phase-card{
  position:relative;
  background:linear-gradient(180deg, rgba(36,20,18,0.85) 0%, rgba(18,10,8,0.95) 100%);
  border:1px solid rgba(212,169,67,0.20);
  border-radius:6px;
  padding:18px 12px 14px;
  cursor:pointer;
  display:flex;flex-direction:column;align-items:center;gap:6px;
  color:var(--fg-1);
  font-family:var(--font-mono);
  transition:transform .15s, border-color .15s, background .15s, box-shadow .15s;
  overflow:hidden;
}
.crypt-phase-card::before{
  content:"";position:absolute;inset:0;pointer-events:none;
  background:radial-gradient(140% 90% at 50% 0%, rgba(212,169,67,0.10) 0%, transparent 55%);
  opacity:.7;
}
.crypt-phase-card:hover:not(.disabled){
  border-color:var(--accent);
  transform:translateY(-2px);
  box-shadow:0 12px 28px -16px rgba(212,169,67,0.45);
}
.crypt-phase-card.active{
  border-color:var(--accent);
  background:linear-gradient(180deg, rgba(60,36,22,0.95) 0%, rgba(28,16,12,0.95) 100%);
  box-shadow:
    0 0 0 1px var(--accent) inset,
    0 14px 30px -16px rgba(212,169,67,0.55);
}
.crypt-phase-card.disabled{
  opacity:.55;cursor:not-allowed;filter:saturate(.6);
}
.cpc-corner{
  position:absolute;width:10px;height:10px;
  border:1px solid var(--accent);opacity:.55;
}
.cpc-tl{top:6px;left:6px;border-right:0;border-bottom:0;}
.cpc-tr{top:6px;right:6px;border-left:0;border-bottom:0;}
.cpc-bl{bottom:6px;left:6px;border-right:0;border-top:0;}
.cpc-br{bottom:6px;right:6px;border-left:0;border-top:0;}
.cpc-sigil{
  font-size:24px;color:var(--accent);line-height:1;
  text-shadow:0 0 16px rgba(212,169,67,0.4);
  margin-top:2px;position:relative;z-index:1;
}
.cpc-label{
  font-family:var(--font-display);font-size:18px;letter-spacing:.05em;
  color:var(--fg-1);position:relative;z-index:1;
}
.cpc-price{
  font-size:11px;letter-spacing:.12em;color:var(--accent);
  text-transform:uppercase;position:relative;z-index:1;
}
.cpc-rule{
  width:60%;height:1px;
  background:linear-gradient(90deg, transparent, rgba(212,169,67,0.35), transparent);
  margin:4px 0 2px;position:relative;z-index:1;
}
.cpc-sub{
  font-size:10px;letter-spacing:.04em;color:var(--fg-2);
  text-align:center;line-height:1.5;min-height:1.5em;
  position:relative;z-index:1;
}
.crypt-phase-card.active .cpc-sub,
.crypt-phase-card.active .cpc-label{color:var(--accent);}
.cooldown-card .cooldown-ids {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-2);
  margin: 4px 0 8px;
  letter-spacing: 0.02em;
  word-break: break-all;
}
.cooldown-card .cooldown-ids .more {
  color: var(--accent);
  opacity: 0.8;
}
/* === How to Stake guide === */
.guide-block {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 32px;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.guide-block:last-child { border-bottom: none; }
.guide-num {
  font-family: var(--font-display, "Cinzel", serif);
  font-size: 56px;
  font-weight: 600;
  color: var(--accent, #d4a943);
  line-height: 1;
  text-shadow: 0 0 20px rgba(212,169,67,0.25);
  letter-spacing: 0.02em;
  position: sticky;
  top: 80px;
}
.guide-body h3 {
  font-family: var(--font-display, "Cinzel", serif);
  font-size: 28px;
  margin: 0 0 16px;
  letter-spacing: 0.04em;
}
.guide-body h4 {
  font-family: var(--font-display, "Cinzel", serif);
  font-size: 16px;
  margin: 0 0 8px;
  color: var(--fg, #f4e4b0);
}
.guide-body p {
  color: var(--fg-2);
  line-height: 1.85;
  font-size: 15px;
  margin: 0 0 14px;
}
.guide-body p:last-child { margin-bottom: 0; }
.guide-body a { color: var(--accent, #d4a943); text-decoration: none; border-bottom: 1px dashed currentColor; }
.guide-body a:hover { color: var(--fg); }
.guide-body strong { color: var(--fg); font-weight: 600; }
.guide-body em { color: var(--accent); font-style: italic; }
.guide-body .font-mono {
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 0.9em;
  padding: 1px 6px;
  background: rgba(0,0,0,0.4);
  border-radius: 4px;
  color: var(--accent, #d4a943);
  letter-spacing: 0;
}

.guide-list { list-style: none; padding: 0; margin: 14px 0; }
.guide-list li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  align-items: baseline;
  padding: 10px 0;
  color: var(--fg-2);
  line-height: 1.7;
  font-size: 14px;
}
.guide-list .bullet {
  color: var(--accent, #d4a943);
  font-size: 14px;
  filter: drop-shadow(0 0 6px rgba(212,169,67,0.4));
}

.guide-math {
  font-family: var(--font-mono);
  font-size: 14px;
  padding: 16px 18px;
  margin: 12px 0;
  background: rgba(0,0,0,0.5);
  border: 1px dashed rgba(212,169,67,0.35);
  border-radius: 6px;
  color: var(--accent);
  text-align: center;
  letter-spacing: 0.04em;
}

.guide-note {
  border-left: 3px solid rgba(212,169,67,0.5);
  padding-left: 14px;
  font-style: italic;
  color: var(--fg-2);
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 18px;
}
.guide-case {
  padding: 22px 20px;
  background: linear-gradient(180deg, rgba(20,8,8,0.5), rgba(8,4,4,0.7));
  border: 1px solid var(--border);
  border-radius: 10px;
}
.guide-case ol { padding-left: 20px; color: var(--fg-2); line-height: 1.8; font-size: 14px; }
.guide-case ol li { margin: 4px 0; }
.case-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.case-tag.good    { background: rgba(184,233,134,0.12); color: #b8e986; border: 1px solid rgba(184,233,134,0.3); }
.case-tag.bad     { background: rgba(139,26,26,0.2);    color: #ff7878; border: 1px solid rgba(139,26,26,0.5); }
.case-tag.neutral { background: rgba(212,169,67,0.12);  color: #d4a943; border: 1px solid rgba(212,169,67,0.3); }

.guide-faq details {
  padding: 16px 18px;
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 10px;
  cursor: pointer;
}
.guide-faq summary {
  font-family: var(--font-display, "Cinzel", serif);
  font-size: 16px;
  letter-spacing: 0.02em;
  color: var(--fg);
  list-style: none;
  position: relative;
  padding-right: 28px;
}
.guide-faq summary::-webkit-details-marker { display: none; }
.guide-faq summary::after {
  content: "+";
  position: absolute;
  right: 4px; top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--accent);
  transition: transform 0.2s;
}
.guide-faq details[open] summary::after {
  content: "−";
}
.guide-faq details[open] summary { margin-bottom: 10px; }
.guide-faq details p {
  color: var(--fg-2);
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}

@media (max-width: 760px) {
  .guide-block { grid-template-columns: 1fr; gap: 14px; padding: 28px 0; }
  .guide-num { position: static; font-size: 40px; }
  .guide-body h3 { font-size: 24px; }
  .guide-grid { grid-template-columns: 1fr; }
}
/* === Stake page guide bar === */
.stake-guide-bar {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 20px 24px;
  margin-bottom: 40px;
  background:
    linear-gradient(180deg, rgba(28,12,12,0.85), rgba(12,6,6,0.95)),
    radial-gradient(circle at 100% 50%, rgba(212,169,67,0.08), transparent 50%);
  border: 1px solid rgba(212,169,67,0.35);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
  box-shadow: inset 0 1px 0 rgba(212,169,67,0.1), 0 4px 18px rgba(0,0,0,0.3);
}
.stake-guide-bar::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,169,67,0.6), transparent);
}
.stake-guide-bar:hover {
  border-color: rgba(212,169,67,0.65);
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(212,169,67,0.2), 0 8px 28px rgba(212,169,67,0.15);
}
.sgb-icon {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent, #d4a943);
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(212,169,67,0.3);
  border-radius: 10px;
  filter: drop-shadow(0 0 10px rgba(212,169,67,0.3));
}
.sgb-icon svg { width: 28px; height: 28px; }
.sgb-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted, rgba(180,160,120,0.6));
  margin-bottom: 4px;
}
.sgb-title {
  font-family: var(--font-display, "Cinzel", serif);
  font-size: 18px;
  letter-spacing: 0.02em;
  color: var(--fg);
  margin-bottom: 2px;
}
.sgb-title em { color: var(--accent, #d4a943); font-style: italic; }
.sgb-sub {
  font-size: 12px;
  color: var(--fg-2);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}
.sgb-cta {
  display: flex; align-items: center; gap: 8px;
  color: var(--accent, #d4a943);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}
.sgb-cta svg { width: 16px; height: 16px; transition: transform 0.2s; }
.stake-guide-bar:hover .sgb-cta svg { transform: translateX(4px); }

@media (max-width: 600px) {
  .stake-guide-bar { grid-template-columns: 44px 1fr; padding: 16px 16px; gap: 14px; }
  .sgb-icon { width: 44px; height: 44px; }
  .sgb-icon svg { width: 22px; height: 22px; }
  .sgb-title { font-size: 15px; }
  .sgb-sub { font-size: 11px; }
  .sgb-cta { grid-column: 1 / -1; justify-content: flex-end; padding-top: 4px; }
}
.card code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  background: rgba(212, 169, 67, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
}
/* === Per-wallet eligibility badges on home phase cards === */
.phase-card { position: relative; }
.phase-card .eligibility-badge {
  position: absolute;
  bottom: 14px; right: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
}
.phase-card .eligibility-badge.yes {
  color: #b8e986;
  border-color: rgba(184, 233, 134, 0.4);
  box-shadow: 0 0 12px rgba(184, 233, 134, 0.2);
}
.phase-card .eligibility-badge.no {
  color: #8b1a1a;
  border-color: rgba(139, 26, 26, 0.5);
  opacity: 0.7;
}
.phase-card.you-eligible {
  border-color: rgba(184, 233, 134, 0.35);
}
/* === Epic crypt-style cooldown section === */
#cooldown-section {
  padding: 32px 0 48px;
  position: relative;
}
#cooldown-section::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(212,169,67,0.06), transparent 65%);
  pointer-events: none;
}

.cooldown-toolbar {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 14px 18px; margin-bottom: 18px;
  background: linear-gradient(180deg, rgba(20,8,8,0.7), rgba(8,4,4,0.85));
  border: 1px solid rgba(139,26,26,0.45);
  border-radius: 10px;
  flex-wrap: wrap;
}
.cooldown-toolbar .ct-info { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-2); }
.cooldown-toolbar .ct-info .ct-count { color: #d4a943; font-weight: 700; font-size: 14px; }
.cooldown-toolbar .ct-info .ct-eye { color: #8b1a1a; margin-right: 10px; }
.cooldown-toolbar .ct-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.cooldown-group {
  position: relative;
  margin-bottom: 16px;
  padding: 20px 22px;
  background:
    linear-gradient(180deg, rgba(28,10,10,0.85), rgba(10,4,4,0.95)),
    radial-gradient(circle at 100% 0%, rgba(212,169,67,0.08), transparent 50%);
  border: 1px solid rgba(139,26,26,0.5);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(212,169,67,0.08), 0 6px 24px rgba(0,0,0,0.4);
  overflow: hidden;
}
.cooldown-group::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,169,67,0.5), transparent);
}
.cooldown-group.ready {
  border-color: rgba(212,169,67,0.7);
  box-shadow: inset 0 1px 0 rgba(212,169,67,0.25), 0 0 32px rgba(212,169,67,0.15);
}

.cg-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; gap: 12px; flex-wrap: wrap; }
.cg-title { display: flex; align-items: baseline; gap: 8px; }
.cg-glyph { font-size: 18px; color: #d4a943; filter: drop-shadow(0 0 6px rgba(212,169,67,0.5)); }
.cg-count { font-family: var(--font-display, serif); font-size: 28px; font-weight: 700; color: var(--fg); }
.cg-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-2); }
.cg-timer { font-family: var(--font-mono); font-size: 16px; color: #d4a943; letter-spacing: 0.06em; text-shadow: 0 0 12px rgba(212,169,67,0.3); }

.cg-bar { height: 4px; background: rgba(139,26,26,0.25); border-radius: 2px; overflow: hidden; margin-bottom: 16px; }
.cg-bar .cooldown-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #8b1a1a, #d4a943);
  transition: width 1s linear;
  box-shadow: 0 0 8px rgba(212,169,67,0.4);
}

.cg-tokens { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.cooldown-token {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 6px 12px;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(139,26,26,0.4);
  color: var(--fg-2);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
  letter-spacing: 0.05em;
}
.cooldown-token:hover { color: var(--fg); border-color: rgba(212,169,67,0.5); transform: translateY(-1px); }
.cooldown-token.selected {
  background: linear-gradient(180deg, rgba(212,169,67,0.2), rgba(212,169,67,0.05));
  border-color: #d4a943;
  color: #d4a943;
  box-shadow: 0 0 12px rgba(212,169,67,0.3);
}
.cg-actions { display: flex; justify-content: flex-end; gap: 8px; }

@media (max-width: 600px) {
  .cooldown-toolbar { flex-direction: column; align-items: stretch; }
  .cooldown-toolbar .ct-actions { justify-content: center; }
  .cg-timer { font-size: 14px; }
  .cg-count { font-size: 24px; }
}

.nft-card.image-only .nft-card-body { padding: 10px 12px; }
.nft-card.image-only .nft-card-body.compact { text-align: center; }
.nft-card.image-only .nft-card-id { font-family: var(--font-mono); font-size: 12px; color: var(--fg-2); }

/* ============================================================
   Hero polish — additive to the site's original .hero rules
   ============================================================ */

/* Floating cryptic glyphs in the background. Subtle. */
.hero-glyphs { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.hero-glyphs .hg {
  position: absolute;
  left: var(--x); top: var(--y);
  font-size: clamp(18px, 3.4vw, 44px);
  color: rgba(212, 169, 67, 0.14);
  filter: drop-shadow(0 0 14px rgba(212, 169, 67, 0.18));
  animation: hg-drift 9s var(--d) ease-in-out infinite alternate;
  user-select: none;
}
@keyframes hg-drift {
  from { transform: translate(0, 0) rotate(0deg); opacity: 0.45; }
  to   { transform: translate(6px, -10px) rotate(3deg); opacity: 0.9; }
}

/* Make sure hero content layers above glyphs */
.hero .container { position: relative; z-index: 2; }

/* Prelude line above the badge */
.hero-prelude {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(13px, 1.4vw, 17px);
  color: var(--fg-2);
  max-width: 580px;
  margin: 0 auto 28px;
  line-height: 1.6;
  letter-spacing: 0.01em;
  opacity: 0.85;
}

/* Brand mark in nav — keep it tight so it never wraps */
.site-nav .brand {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.site-nav .brand-mark { flex: 0 0 auto; }

/* ============================================================
   Hero title — fluid, no wrap, scales with viewport
   Overrides the original .hero-title size to be more aggressive
   on small viewports.
   ============================================================ */
.hero-title {
  font-size: clamp(48px, 13vw, 184px);
  letter-spacing: 0.03em;
  white-space: nowrap;
  /* If the viewport is REALLY narrow, scale the text-shadow + clamp keep it safe */
}

/* ============================================================
   RESPONSIVE — full mobile pass
   ============================================================ */

/* Tablet & small laptop */
@media (max-width: 960px) {
  .container { padding-left: 22px; padding-right: 22px; }
  section { padding-top: 56px; padding-bottom: 56px; }
  .section-head { margin-bottom: 44px; }
}

/* Phone */
@media (max-width: 760px) {
  /* Containers and sections */
  .container { padding-left: 18px; padding-right: 18px; }
  section { padding-top: 48px; padding-bottom: 48px; }
  .section-head { margin-bottom: 36px; }

  /* Nav: hide desktop links, show mobile burger */
  .site-nav { padding: 14px 18px; }
  .site-nav .nav-links { display: none; }
  .site-nav .mobile-toggle { display: inline-flex; }
  .site-nav .brand { font-size: 14px; letter-spacing: 0.14em; gap: 8px; }
  .site-nav .brand-mark svg { width: 28px; height: 28px; }

  /* Hero block */
  .hero { min-height: 100vh; padding: 70px 0 100px; text-align: center; }
  .hero .container { display: flex; flex-direction: column; align-items: center; }
  .hero-prelude { font-size: 13px; max-width: 92%; margin-bottom: 20px; }
  .hero-badge {
    font-size: 10px;
    padding: 7px 14px;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }
  .hero-badge .sep { display: inline; }
  .hero-title {
    font-size: clamp(40px, 14vw, 76px);
    letter-spacing: 0.02em;
    margin-bottom: 18px;
  }
  .hero-subtitle {
    font-size: clamp(18px, 5vw, 26px);
    margin: 20px 0 16px;
  }
  .hero-description {
    font-size: 12px;
    max-width: 92%;
    margin-bottom: 32px;
    line-height: 1.8;
  }
  .hero-cta { flex-direction: column; width: 100%; max-width: 320px; gap: 10px; }
  .hero-cta .btn { width: 100%; }
  .hero-scroll { bottom: 20px; font-size: 8px; letter-spacing: 0.28em; }

  /* Stats grid: 2 columns */
  .stats { grid-template-columns: repeat(2, 1fr) !important; gap: 18px; }
  .stat .num { font-size: clamp(28px, 8vw, 44px) !important; }

  /* Phase banner: stack */
  .phase-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    text-align: center;
  }
  .phase-banner .btn { width: 100%; }

  /* Schedule / phase cards: single column */
  .schedule { grid-template-columns: 1fr !important; gap: 16px; }
  .phase-card { padding: 26px 22px; }

  /* Marquees: smaller cards */
  .marquee-track .nft-card { width: 140px; }
  .marquee-track { animation-duration: 90s; }

  /* NFT card grid */
  .nft-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important; gap: 12px; }

  /* Mint page layout: single column, controls below showcase */
  .mint-layout { grid-template-columns: 1fr !important; gap: 28px; }
  .mint-controls { padding: 26px 22px; }
  .mint-progress-header { grid-template-columns: 1fr !important; text-align: center; gap: 6px; }
  .mp-percent { justify-self: center !important; }

  /* (Allocation bar mobile rules moved up next to the desktop rules.) */

  /* Stake page user panel */
  #user-panel .us-grid,
  .user-panel-grid,
  .us-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 14px; }

  /* Leaderboard rows: drop the share column */
  .lb-row { grid-template-columns: 28px 1fr auto; font-size: 13px; gap: 8px; }
  .lb-row .share { display: none; }

  /* Activity feed */
  .act-row { grid-template-columns: 28px 1fr auto; font-size: 12px; gap: 8px; }
  .act-meta { font-size: 10px; text-align: right; }

  /* Cooldown toolbar / groups */
  .cooldown-toolbar { flex-direction: column; align-items: stretch; gap: 12px; }
  .cooldown-toolbar .ct-actions { justify-content: center; flex-wrap: wrap; }
  .cg-header { flex-direction: column; align-items: flex-start; gap: 6px; }
  .cg-count { font-size: 22px !important; }
  .cg-timer { font-size: 14px !important; }

  /* FAQ rows */
  .faq-item { padding: 14px 16px; }
  .faq-question { font-size: 15px; }

  /* (Footer mobile rules moved up into the main footer block.) */
}

/* Very narrow phones (≤420px) */
@media (max-width: 420px) {
  .stats { grid-template-columns: 1fr !important; }
  .hero-title { font-size: clamp(38px, 14vw, 60px); letter-spacing: 0.015em; }
  .hero-subtitle { font-size: 17px; }
  .hero-prelude { font-size: 12px; }
  .site-nav .brand span:last-child { display: none; } /* keep only the mark on tiny screens */
  .site-nav .brand-mark svg { width: 26px; height: 26px; }
}

/* === Mobile polish pass === */
@media (max-width: 760px) {
  /* Page padding */
  .container { padding-left: 18px; padding-right: 18px; }

  /* Section spacing */
  section { padding-top: 48px; padding-bottom: 48px; }

  /* Stats grid: 2 columns instead of 4 */
  .stats { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .stats .stat .num { font-size: clamp(28px, 7vw, 40px); }

  /* Phase cards stack */
  .schedule { grid-template-columns: 1fr; gap: 16px; }
  .phase-card { padding: 24px 20px; }

  /* Phase banner: stack the CTA */
  .phase-banner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .phase-banner .btn { width: 100%; text-align: center; }

  /* Nav: hide eyebrow on logo if cramped */
  nav .nav-links { display: none; }
  nav .nav-mobile-btn { display: flex; }

  /* Marquee speed feels frantic on small screens */
  .marquee-track { animation-duration: 80s; }

  /* NFT card grid */
  .nft-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }

  /* Stake page user panel: stack stats */
  #user-panel .us-grid { grid-template-columns: repeat(2, 1fr); }

  /* Leaderboard rows: tighter */
  .lb-row { grid-template-columns: 32px 1fr auto auto; font-size: 13px; gap: 8px; }
  .lb-row .share { display: none; }

  /* Activity feed */
  .act-row { grid-template-columns: 30px 1fr auto; font-size: 12px; }
  .act-meta { font-size: 10px; }

  /* Buttons full width when stacked */
  .hero-cta .btn { flex: 1; min-width: 0; }

  /* FAQ: tighter padding */
  .faq-item { padding: 14px 16px; }
}

@media (max-width: 420px) {
  .stats { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
}

/* ============================================================
   Crypt Card variant — gothic, all 8 traits, rank footer
   Used when global toggle (body.pkm-mode) is active.
   ============================================================ */
.pkm-card {
  --pkm-edge: var(--accent);
  --pkm-glow: var(--accent-glow);
  position: relative;
  border-radius: 14px;
  cursor: pointer;
  user-select: none;
  background:
    linear-gradient(180deg, rgba(36, 22, 38, 0.95), rgba(14, 10, 22, 0.98)),
    radial-gradient(circle at 50% 0%, rgba(212,169,67,0.10), transparent 60%);
  border: 1px solid var(--border-hi);
  padding: 4px;
  transition: transform 0.35s cubic-bezier(.4, 0, .2, 1), box-shadow 0.35s, border-color 0.3s;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 6px 22px rgba(0,0,0,0.45);
}
.pkm-card.rare      { --pkm-edge: var(--rare);      --pkm-glow: var(--rare-glow); }
.pkm-card.legendary { --pkm-edge: var(--legendary); --pkm-glow: var(--legendary-glow); }
.pkm-card:hover {
  transform: translateY(-5px);
  border-color: var(--pkm-edge);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 18px 44px rgba(0,0,0,0.55),
    0 0 0 1px var(--pkm-edge),
    0 0 36px var(--pkm-glow);
}

.pkm-frame {
  position: relative;
  background: linear-gradient(180deg, rgba(20, 14, 30, 0.6), rgba(10, 6, 18, 0.8));
  border: 1px solid rgba(212,169,67,0.18);
  border-radius: 10px;
  padding: 12px 14px 14px;
  overflow: hidden;
}
.pkm-frame::before {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.04) 50%, transparent 100%);
  opacity: 0.5;
  border-radius: 10px;
}

.pkm-banner {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(212,169,67,0.22);
  margin-bottom: 12px;
}
.pkm-id {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.06em;
  color: var(--fg);
  font-weight: 500;
}
.pkm-tier {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid var(--pkm-edge);
  background: rgba(0,0,0,0.4);
  color: var(--pkm-edge);
  font-weight: 700;
  text-shadow: 0 0 8px var(--pkm-glow);
}

.pkm-image {
  position: relative;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--bg-1), var(--bg-2));
  border: 1px solid rgba(212,169,67,0.24);
  border-radius: 6px;
  overflow: hidden;
}
.pkm-image img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.pkm-image img.loaded { opacity: 1; }
.pkm-image .placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(circle at 50% 40%, rgba(212,169,67,0.10), transparent 60%),
    repeating-linear-gradient(45deg, transparent 0, transparent 6px, rgba(212,169,67,0.02) 6px, rgba(212,169,67,0.02) 7px);
  color: var(--muted);
  opacity: 0.6;
}
.pkm-image .placeholder svg { width: 32%; height: 32%; opacity: 0.4; }
.pkm-image-ornament {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.25) 100%),
    radial-gradient(ellipse at 50% 100%, rgba(212,169,67,0.15), transparent 70%);
  mix-blend-mode: multiply;
}

.pkm-divider {
  display: flex; align-items: center; justify-content: center;
  gap: 12px;
  margin: 12px 0 10px;
  position: relative;
}
.pkm-divider::before, .pkm-divider::after {
  content: "";
  flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,169,67,0.32), transparent);
}
.pkm-divider-glyph {
  font-family: var(--font-script);
  font-size: 12px;
  color: var(--accent);
  text-shadow: 0 0 10px var(--accent-glow);
  letter-spacing: 0.1em;
}

.pkm-traits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px 16px;
  margin-bottom: 12px;
  /* both columns share the same min-width; min: 0 prevents grid blowout */
  min-width: 0;
}
.pkm-trait {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  align-items: baseline;
  gap: 6px;
  padding: 5px 0;
  font-family: var(--font-mono);
  font-size: 10px;
  border-bottom: 1px dotted rgba(212,169,67,0.12);
  min-width: 0;
}
.pkm-trait:last-child,
.pkm-trait:nth-last-child(2):not(:nth-child(odd)) { border-bottom: none; }
.pkm-tn {
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.pkm-tv {
  color: var(--fg);
  text-align: right;
  letter-spacing: 0.02em;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.pkm-trait-empty .pkm-tv { color: var(--muted-2); font-style: italic; }

@media (max-width: 760px) {
  .pkm-traits {
    grid-template-columns: 1fr;
    gap: 3px 0;
  }
  .pkm-trait {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    padding: 4px 0;
  }
}

.pkm-rank-footer {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-top: 10px;
  border-top: 1px solid rgba(212,169,67,0.22);
  font-family: var(--font-mono);
  font-size: 11px;
}
.pkm-rank-label {
  color: var(--muted);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
}
.pkm-rank-value {
  color: var(--accent);
  letter-spacing: 0.04em;
  font-weight: 700;
  text-shadow: 0 0 10px var(--accent-glow);
}

.pkm-lock {
  position: absolute;
  top: 16px; left: 16px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(212, 169, 67, 0.18);
  border: 1px solid var(--accent);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  z-index: 5;
  font-size: 13px;
}
.pkm-card.cooling .pkm-lock {
  background: rgba(240, 160, 80, 0.18);
  border-color: #f0a050; color: #f0a050;
}

.pkm-card.selected {
  border-color: var(--accent);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 0 0 2px var(--accent),
    0 14px 36px var(--accent-glow);
}
.pkm-card.selected::after {
  content: "✓";
  position: absolute;
  top: 14px; right: 14px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #1a1208;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  z-index: 5;
  box-shadow: 0 0 16px var(--accent-glow);
}

/* MoBadge for the closed/pokemon card sits on the IMAGE area, top-left,
   so it never overlaps the #ID banner above the image. */
.pkm-card .mo-badge {
  position: absolute;
  /* offset down past the banner so we land on the image */
  top: calc(56px + 14px);
  left: calc(20px + 12px);
  z-index: 5;
  padding: 4px 9px;
  font-size: 9px;
  letter-spacing: 0.18em;
  background: rgba(7, 6, 10, 0.82);
  backdrop-filter: blur(6px);
  border-radius: 100px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.55);
}
@media (max-width: 760px) {
  .pkm-card .mo-badge {
    top: calc(48px + 10px);
    left: calc(16px + 10px);
    font-size: 8px;
    padding: 3px 7px;
  }
}

@media (max-width: 760px) {
  .pkm-banner { padding-bottom: 8px; margin-bottom: 10px; }
  .pkm-id { font-size: 18px; }
  .pkm-traits { grid-template-columns: 1fr; gap: 3px 0; }
  .pkm-trait { padding: 4px 0; }
}

/* ============================================================
   Pokemon toggle switch
   ============================================================ */
.pkm-toggle-wrap {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.pkm-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  padding: 8px 14px;
  border: 1px solid var(--border-hi);
  border-radius: 100px;
  background: rgba(20, 16, 28, 0.5);
  transition: all 0.25s ease;
}
.pkm-toggle:hover { border-color: var(--accent-line); }
.pkm-toggle input { display: none; }
.pkm-toggle-track {
  position: relative;
  width: 38px; height: 20px;
  border-radius: 100px;
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border-hi);
  transition: all 0.25s;
}
.pkm-toggle-thumb {
  position: absolute;
  top: 2px; left: 2px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--fg-2);
  transition: all 0.25s cubic-bezier(.4, 0, .2, 1);
}
.pkm-toggle input:checked ~ .pkm-toggle-track {
  background: var(--accent-soft);
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}
.pkm-toggle input:checked ~ .pkm-toggle-track .pkm-toggle-thumb {
  left: 20px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}
.pkm-toggle-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-2);
  font-weight: 600;
}
.pkm-toggle:hover .pkm-toggle-label { color: var(--accent); }
.pkm-toggle-status {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============================================================
   Achievement plaques (engraved style)
   ============================================================ */
.badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}
.badge-plaque {
  position: relative;
  aspect-ratio: 1 / 0.85;
  background:
    linear-gradient(180deg, rgba(28, 20, 14, 0.85) 0%, rgba(10, 6, 4, 0.95) 100%),
    radial-gradient(circle at 50% 30%, rgba(212,169,67,0.08), transparent 60%);
  border: 1px solid var(--border-hi);
  border-radius: 6px;
  padding: 18px 12px 12px;
  transition: all 0.3s ease;
  cursor: default;
}
.badge-plaque-inner {
  position: relative;
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  gap: 6px;
}
.badge-corner {
  position: absolute;
  width: 10px; height: 10px;
  border: 1px solid var(--accent);
  opacity: 0.45;
}
.badge-corner.tl { top: -4px; left: -4px; border-right: 0; border-bottom: 0; }
.badge-corner.tr { top: -4px; right: -4px; border-left: 0; border-bottom: 0; }
.badge-corner.bl { bottom: -4px; left: -4px; border-right: 0; border-top: 0; }
.badge-corner.br { bottom: -4px; right: -4px; border-left: 0; border-top: 0; }

.badge-sigil {
  font-family: var(--font-script);
  font-size: 36px;
  color: var(--accent);
  line-height: 1;
  text-shadow: 0 0 18px var(--accent-glow);
  margin-top: 4px;
}
.badge-name {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--fg);
  text-align: center;
  line-height: 1.2;
}
.badge-meta {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  text-align: center;
}

/* Locked state */
.badge-plaque.locked {
  filter: grayscale(0.85) brightness(0.55);
}
.badge-plaque.locked .badge-sigil {
  color: var(--muted-2);
  text-shadow: none;
}
.badge-plaque.locked .badge-meta { color: var(--muted-2); }

/* Earned state */
.badge-plaque.earned {
  border-color: rgba(212,169,67,0.5);
  box-shadow: inset 0 1px 0 rgba(212,169,67,0.12), 0 6px 18px rgba(0,0,0,0.45);
}
.badge-plaque.earned .badge-corner { opacity: 0.9; }
.badge-plaque.earned .badge-sigil {
  animation: badge-sigil-breathe 4.2s ease-in-out infinite alternate;
}
@keyframes badge-sigil-breathe {
  from { text-shadow: 0 0 14px var(--accent-glow); }
  to   { text-shadow: 0 0 22px var(--accent-glow), 0 0 4px var(--accent-hi); }
}

/* Ignition animation for newly-earned badges */
.badge-plaque.igniting {
  animation: badge-ignite 1.2s ease-out;
}
@keyframes badge-ignite {
  0%   { transform: scale(0.98); box-shadow: 0 0 0 rgba(212,169,67,0); }
  20%  { transform: scale(1.05); box-shadow: 0 0 24px var(--accent); }
  100% { transform: scale(1);    box-shadow: inset 0 1px 0 rgba(212,169,67,0.12), 0 6px 18px rgba(0,0,0,0.45); }
}

/* Tooltip */
.badge-tooltip {
  position: absolute;
  bottom: calc(100% + 8px); left: 50%;
  transform: translateX(-50%);
  width: max-content; max-width: 240px;
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.6;
  color: var(--fg-2);
  letter-spacing: 0.02em;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 10;
}
.badge-plaque:hover .badge-tooltip { opacity: 1; }

@media (max-width: 480px) {
  .badge-grid { grid-template-columns: repeat(2, 1fr); }
  .badge-sigil { font-size: 28px; }
  .badge-name { font-size: 12px; }
}

/* ============================================================
   Scroll-reveal v2 — cinematic section entry + child stagger
   ----------------------------------------------------------
   Sections fade up with a wider translate, a stronger gold
   sweep across the TOP and BOTTOM edges, and a soft radial
   bloom that pulses once. Children inside revealed sections
   stagger in on top of that with their own subtle lift.
   ============================================================ */

/* ---- Sections ---- */
section.reveal-target,
footer.site-footer.reveal-target {
  opacity: 0;
  transform: translateY(60px);
  transition:
    opacity 1.1s cubic-bezier(.16, .8, .24, 1),
    transform 1.1s cubic-bezier(.16, .8, .24, 1);
  will-change: opacity, transform;
  position: relative;
}
section.reveal-target.in-view,
footer.site-footer.reveal-target.in-view {
  opacity: 1;
  transform: translateY(0);
}
section.reveal-instant,
footer.site-footer.reveal-instant {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* Top hairline sweep — wider, brighter, longer */
section.reveal-target::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(212, 169, 67, 0.85) 50%,
    transparent 100%
  );
  opacity: 0;
  transform: scaleX(0);
  transform-origin: center;
  pointer-events: none;
  z-index: 4;
  box-shadow: 0 0 14px rgba(212, 169, 67, 0.45);
}
section.reveal-target.in-view::after {
  animation: reveal-sweep-top 1.6s cubic-bezier(.16, .8, .24, 1) 0.18s forwards;
}
@keyframes reveal-sweep-top {
  0%   { opacity: 0; transform: scaleX(0); }
  25%  { opacity: 1; transform: scaleX(1); }
  100% { opacity: 0; transform: scaleX(1); }
}

/* Inner radial bloom — bigger, lingers longer */
section.reveal-target::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 70% 60% at 50% 0%,
      rgba(212, 169, 67, 0.18) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 50% 50% at 50% 100%,
      rgba(196, 102, 255, 0.08) 0%,
      transparent 60%
    );
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}
section.reveal-target.in-view::before {
  animation: reveal-bloom 2s cubic-bezier(.16, .8, .24, 1) 0.22s forwards;
}
@keyframes reveal-bloom {
  0%   { opacity: 0; transform: scale(0.95); }
  35%  { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1); }
}

/* Content above the section pseudo-elements stays clickable */
section.reveal-target > *,
footer.site-footer.reveal-target > * {
  position: relative;
  z-index: 1;
}

/* ============================================================
   Reveal-child stagger
   Each card/tile/item lifts in with its own delay (set via JS as
   --reveal-delay). Stagger is capped at 360ms so a grid of 50
   cards doesn't take 3 seconds to finish.
   ============================================================ */
.reveal-child {
  opacity: 0;
  transform: translateY(24px) scale(0.985);
  transition:
    opacity 0.7s cubic-bezier(.16, .8, .24, 1) var(--reveal-delay, 0ms),
    transform 0.7s cubic-bezier(.16, .8, .24, 1) var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal-child.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.reveal-child.reveal-instant {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* NFT cards: the existing hover lift should compose with the reveal.
   When a card is mid-reveal, don't allow the hover transform to
   override the translate-from-below. After reveal completes
   the hover transform takes over. */
.reveal-child.in-view.nft-card:hover,
.reveal-child.in-view.pkm-card:hover {
  /* These already have hover rules elsewhere. Just confirm the
     transform is not stuck. */
  transform: translateY(-8px) scale(1.012);
}

/* Don't double-animate when reduced-motion is on */
@media (prefers-reduced-motion: reduce) {
  section.reveal-target,
  footer.site-footer.reveal-target,
  .reveal-child {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  section.reveal-target::before,
  section.reveal-target::after {
    animation: none !important;
    opacity: 0 !important;
  }
}

/* ============================================================
   NFT card hover pop — already lifts -6px; smooth it and
   intensify slightly. Only NFT cards, not sections.
   ============================================================ */
.nft-card {
  transition:
    transform 0.32s cubic-bezier(.2, .65, .25, 1),
    box-shadow 0.32s cubic-bezier(.2, .65, .25, 1),
    border-color 0.25s ease;
}
.nft-card:hover {
  transform: translateY(-8px) scale(1.012);
}

/* Pokemon card variant — same gentle pop */
.pkm-card {
  transition:
    transform 0.32s cubic-bezier(.2, .65, .25, 1),
    box-shadow 0.32s cubic-bezier(.2, .65, .25, 1),
    border-color 0.25s ease;
}
.pkm-card:hover {
  transform: translateY(-8px) scale(1.012);
}