/* ======================================================
   BASED UNDEADS - Shared Styles
   Premium, refined, onchain-native aesthetic
   ====================================================== */

:root {
  /* ═══ Gothic palette ═══ */
  --bg:            #0a0505;          /* near-black with blood undertone */
  --bg-secondary:  #140808;
  --bg-tertiary:   #1a0a0a;
  --fg:            #ece4d0;          /* aged parchment white */
  --muted:         #6a5a4a;
  --muted-2:       #9a8878;
  --accent:        #c8a450;          /* tarnished gold */
  --accent-2:      #e8c878;          /* bright gold */
  --accent-dim:    rgba(200, 164, 80, 0.10);
  --accent-glow:   rgba(200, 164, 80, 0.35);
  --blood:         #8b1a1a;          /* deep blood red */
  --blood-bright:  #b33030;
  --danger:        #cc2222;
  --gold:          #c8a450;
  --bone:          #e0d8c8;
  --border:        rgba(200, 164, 80, 0.12);
  --glass:         rgba(20, 8, 8, 0.45);
  --glass-border:  rgba(200, 164, 80, 0.18);
}

/* ═══ Global gothic atmosphere ═══ */
body::before {
  /* vignette - dark corners, candlelight center */
  content: '';
  position: fixed; inset: 0;
  background: radial-gradient(ellipse at center, transparent 80%, rgba(0,0,0,0.50) 100%);
  pointer-events: none; z-index: 2;
}
body::after {
  /* slow drifting fog */
  content: '';
  position: fixed; inset: -20%;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(139, 26, 26, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(200, 164, 80, 0.04) 0%, transparent 50%);
  pointer-events: none; z-index: 1;
  animation: gothicDrift 28s ease-in-out infinite alternate;
}
@keyframes gothicDrift {
  0%   { transform: translate(0, 0)     scale(1); }
  50%  { transform: translate(-2%, 1%)  scale(1.06); }
  100% { transform: translate(1%, -2%)  scale(1); }
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Syne', sans-serif;
  background: var(--bg);
  color: var(--fg);
  overflow-x: hidden;
  cursor: none;
  min-height: 100vh;
}

img, canvas, iframe { max-width: 100%; }

::-webkit-scrollbar { width: 3px; height: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(200,164,80,0.35); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(200,164,80,0.6); }

/* ─── Custom Cursor ─── */
.cursor {
  width: 20px; height: 20px;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  will-change: transform;
  transition: width .2s, height .2s, border-color .2s, background .2s;
}
.cursor-dot {
  width: 4px; height: 4px;
  background: var(--fg); border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  will-change: transform;
}
.cursor.hover {
  width: 50px; height: 50px;
  border-color: var(--accent);
  background: rgba(0,255,136,0.1);
}

/* ─── Noise / Constellation ─── */
.noise { position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: 0.5; }
.noise::before, .noise::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,0.3), transparent),
    radial-gradient(1px 1px at 30% 65%, rgba(255,255,255,0.25), transparent),
    radial-gradient(1px 1px at 55% 30%, rgba(0,255,136,0.4), transparent),
    radial-gradient(1px 1px at 70% 75%, rgba(255,255,255,0.2), transparent),
    radial-gradient(1px 1px at 85% 15%, rgba(255,255,255,0.3), transparent),
    radial-gradient(1.5px 1.5px at 20% 80%, rgba(0,255,136,0.3), transparent),
    radial-gradient(1px 1px at 90% 50%, rgba(255,255,255,0.2), transparent),
    radial-gradient(1px 1px at 45% 90%, rgba(0,255,136,0.25), transparent);
  background-size: 200px 200px;
  animation: twinkle 5s ease-in-out infinite;
}
.noise::after {
  background-size: 300px 300px;
  animation: twinkle 7s ease-in-out infinite reverse;
  opacity: 0.6;
}
@keyframes twinkle { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }

/* ─── Scroll Progress ─── */
.scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 2px; width: 0;
  background: linear-gradient(90deg, var(--accent), #00cc6f);
  z-index: 9999;
  transition: width .1s ease;
}

/* ─── Navigation ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 40px;
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(3,3,3,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,255,136,0.1);
}
.nav-logo {
  font-family: 'Creepster', cursive;
  font-size: 22px;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 2px;
  text-shadow: 0 0 20px rgba(0,255,136,0.5);
  transition: text-shadow .3s;
}
.nav-logo:hover { text-shadow: 0 0 30px rgba(0,255,136,0.8); }

.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-link {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg);
  text-decoration: none;
  opacity: 0.65;
  transition: all .3s;
  position: relative;
}
.nav-link:hover { opacity: 1; color: var(--accent); }
.nav-link::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1px; background: var(--accent);
  transition: width .3s;
}
.nav-link:hover::after { width: 100%; }

.nav-social { display: flex; gap: 16px; align-items: center; }
.nav-social a { color: var(--fg); opacity: 0.6; transition: all .3s; font-size: 18px; text-decoration: none; }
.nav-social a:hover { opacity: 1; color: var(--accent); }

.nav-cta-btn {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 10px 20px;
  background: transparent;
  color: var(--fg);
  text-decoration: none;
  border-radius: 100px;
  border: 1px solid var(--glass-border);
  transition: all .3s;
  display: inline-flex; align-items: center; gap: 8px;
  opacity: 1;
}
.nav-cta-btn:hover {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 10px 30px rgba(0,255,136,0.3);
}

.mobile-menu-btn {
  display: none; background: none; border: none;
  color: var(--fg); font-size: 22px; cursor: none;
}

/* ─── Typography ─── */
.font-display { font-family: 'Instrument Serif', serif; }
.font-mono { font-family: 'Geist Mono', monospace; }
.font-creepy { font-family: 'Creepster', cursive; }

/* ─── Hero ─── */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  position: relative;
  padding: 120px 40px 80px;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center bottom, rgba(0,255,136,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero-badge {
  font-family: 'Geist Mono', monospace;
  font-size: 10px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--accent);
  padding: 8px 16px;
  border: 1px solid rgba(0,255,136,0.3);
  border-radius: 100px;
  margin-bottom: 32px;
  opacity: 0; animation: fadeUp 1s .2s forwards;
  display: inline-flex; align-items: center; gap: 8px;
}
.hero-badge .pulse {
  width: 6px; height: 6px; background: var(--accent);
  border-radius: 50%; animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(1.2)} }

.hero-title {
  font-family: 'Creepster', cursive;
  font-size: clamp(60px, 14vw, 180px);
  line-height: .9;
  letter-spacing: .04em;
  color: var(--fg);
  text-shadow: 0 0 60px rgba(0,255,136,0.3);
  margin-bottom: 24px;
  opacity: 0; animation: fadeUp 1s .4s forwards;
}
.hero-subtitle {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(22px, 4vw, 42px);
  font-style: italic; color: var(--accent);
  margin-bottom: 32px;
  opacity: 0; animation: fadeUp 1s .6s forwards;
}
.hero-description {
  font-family: 'Geist Mono', monospace;
  font-size: 13px; letter-spacing: .03em;
  color: var(--muted-2);
  max-width: 540px; line-height: 1.8;
  opacity: 0; animation: fadeUp 1s .8s forwards;
}
.hero-cta {
  margin-top: 48px; display: flex; gap: 16px;
  opacity: 0; animation: fadeUp 1s 1s forwards; flex-wrap: wrap; justify-content: center;
}


.btn-primary {
  font-family: 'Geist Mono', monospace;
  font-size: 12px; letter-spacing: .1em;
  text-transform: uppercase; padding: 18px 36px;
  background: var(--accent); color: var(--bg);
  text-decoration: none; border-radius: 100px;
  font-weight: 600; border: none; cursor: none;
  transition: all .3s;
  display: inline-flex; align-items: center; gap: 10px;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px var(--accent), 0 20px 50px rgba(0,255,136,0.4);
}
.btn-secondary {
  font-family: 'Geist Mono', monospace;
  font-size: 12px; letter-spacing: .1em;
  text-transform: uppercase; padding: 18px 36px;
  background: transparent; color: var(--fg);
  text-decoration: none; border-radius: 100px;
  font-weight: 500;
  border: 1px solid var(--glass-border);
  cursor: none; transition: all .3s;
  display: inline-flex; align-items: center; gap: 10px;
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.2);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.1);
}

.scroll-indicator {
  position: absolute; bottom: 40px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  opacity: 0; animation: fadeUp 1s 1.2s forwards;
}
.scroll-indicator span {
  font-family: 'Geist Mono', monospace;
  font-size: 9px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--muted);
}
.scroll-line {
  width: 1px; height: 60px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s infinite;
}
@keyframes scrollPulse { 0%,100%{opacity:.3;transform:scaleY(1)} 50%{opacity:1;transform:scaleY(1.2)} }
@keyframes fadeUp { from{opacity:0;transform:translateY(30px)} to{opacity:1;transform:translateY(0)} }

/* ─── Sections ─── */
.section { padding: 140px 40px; max-width: 1400px; margin: 0 auto; }

.section-header { text-align: left; margin-bottom: 48px; }
.section-label {
  font-family: 'Geist Mono', monospace;
  font-size: 10px; letter-spacing: .25em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 14px;
}
.section-label::before {
  content: ''; width: 6px; height: 6px;
  background: var(--accent); border-radius: 50%;
  animation: pulse 2s infinite;
}
.section-label::after {
  content: ''; width: 40px; height: 1px; background: var(--accent);
}
.section-title {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.1; letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.section-title em { font-style: italic; color: var(--accent); }
.section-sub {
  font-family: 'Geist Mono', monospace;
  font-size: 13px; color: var(--muted-2);
  max-width: 600px; line-height: 1.7;
}

/* ─── Glass Card base ─── */
.glass-card, .tool-panel, .raffle-panel, .control-panel {
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  transition: all .4s;
  will-change: transform;
}
.glass-card:hover {
  border-color: rgba(255,255,255,0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 20px 60px rgba(0,0,0,0.4);
}

/* ==================== SALES TRACKER ==================== */
.sales-container { width: 100%; }

.sales-tabs {
  display: flex; gap: 8px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  padding: 6px;
  width: fit-content;
  margin-bottom: 40px;
}
.sales-tab {
  font-family: 'Geist Mono', monospace;
  font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase;
  padding: 12px 24px;
  border: none; background: none;
  color: var(--muted);
  border-radius: 100px;
  cursor: none;
  transition: all .3s;
  white-space: nowrap;
}
.sales-tab.active {
  background: var(--fg); color: var(--bg);
  font-weight: 600;
}
.sales-tab:hover:not(.active) { color: var(--fg); }

.sales-panel { display: none; }
.sales-panel.active { display: block; animation: fadeUp .4s ease; }

.sales-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}
.sales-stat {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 24px 20px;
  text-align: center;
  transition: all .3s;
}
.sales-stat:hover { border-color: rgba(0,255,136,0.2); transform: translateY(-2px); }
.sales-stat-val {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
  margin-bottom: 8px;
}
.sales-stat-val.accent { color: var(--accent); }
.sales-stat-lbl {
  font-family: 'Geist Mono', monospace;
  font-size: 9px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--muted);
}

.sales-big-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 40px 0 60px;
}
.sales-big-stat {
  background: linear-gradient(135deg, rgba(0,255,136,0.04), rgba(255,255,255,0.02));
  border: 1px solid rgba(0,255,136,0.1);
  border-radius: 28px;
  padding: 48px 32px;
  text-align: center;
  transition: all .4s;
}
.sales-big-stat:hover {
  border-color: rgba(0,255,136,0.3);
  transform: translateY(-4px);
  box-shadow: 0 30px 80px rgba(0,255,136,0.15);
}
.sales-big-val {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(56px, 9vw, 120px);
  line-height: .95;
  margin-bottom: 16px;
  letter-spacing: -0.04em;
}
.sales-big-val.accent { color: var(--accent); text-shadow: 0 0 40px rgba(0,255,136,0.3); }
.sales-big-lbl {
  font-family: 'Geist Mono', monospace;
  font-size: 11px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--muted);
}

.sales-scroller-wrapper { margin-top: 32px; }
.sales-subtitle {
  font-family: 'Instrument Serif', serif;
  font-size: 24px; margin-bottom: 20px;
}
.sales-scroller {
  display: flex; gap: 16px;
  overflow-x: auto; overflow-y: hidden;
  padding: 8px 0 20px;
  scroll-snap-type: x mandatory;
}
.sale-card {
  flex: 0 0 220px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: var(--fg);
  scroll-snap-align: start;
  transition: all .4s;
  will-change: transform;
}
.sale-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 20px 50px rgba(0,255,136,0.2);
}
.sale-card img {
  width: 100%; aspect-ratio: 1;
  object-fit: cover;
  display: block;
}
.sale-card-body { padding: 14px 16px; }
.sale-card-id {
  font-family: 'Instrument Serif', serif;
  font-size: 18px;
  margin-bottom: 4px;
}
.sale-card-price {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 4px;
}
.sale-card-time {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  color: var(--muted);
}
.sale-card-badge {
  position: absolute;
  top: 10px; right: 10px;
  background: rgba(0,0,0,0.8);
  padding: 4px 10px;
  border-radius: 100px;
  font-family: 'Geist Mono', monospace;
  font-size: 9px;
  color: var(--accent);
  backdrop-filter: blur(6px);
}
.sale-card { position: relative; }

.sales-loading {
  grid-column: 1/-1;
  text-align: center; padding: 40px;
  color: var(--muted);
  font-family: 'Geist Mono', monospace;
  font-size: 13px;
}
.sales-loading i { margin-right: 8px; color: var(--accent); }

/* Floor Listings */
.floor-wrapper { margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--border); }
.floor-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 24px; flex-wrap: wrap; gap: 16px;
}
.floor-viewall {
  font-family: 'Geist Mono', monospace;
  font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  transition: gap .3s;
}
.floor-viewall:hover { gap: 14px; }
.floor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.floor-item {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: var(--fg);
  transition: all .4s;
  position: relative;
}
.floor-item:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 20px 50px rgba(0,255,136,0.15);
}
.floor-item img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.floor-item-body { padding: 14px 16px; }
.floor-item-id {
  font-family: 'Instrument Serif', serif;
  font-size: 17px;
}
.floor-item-price {
  font-family: 'Geist Mono', monospace;
  font-size: 12px; color: var(--accent);
  margin-top: 4px;
}
.floor-item-arrow {
  position: absolute;
  top: 12px; right: 12px;
  width: 32px; height: 32px;
  background: rgba(0,0,0,0.8);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .3s;
}
.floor-item:hover .floor-item-arrow { opacity: 1; }

/* ─── Featured NFT Scroller ─── */
.nft-scroller-section { padding: 100px 0; overflow: hidden; }
.nft-scroller-header { padding: 0 40px; margin-bottom: 48px; max-width: 1400px; margin-left: auto; margin-right: auto; }
.scrolling-container { position: relative; overflow: hidden; padding: 20px 0; }
.nft-scroll-row { display: flex; gap: 24px; width: max-content; }
.nft-scroll-left  { animation: scrollLeft  60s linear infinite; }
.nft-scroll-right { animation: scrollRight 60s linear infinite; }
@keyframes scrollLeft  { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }
@keyframes scrollRight { 0%{transform:translateX(-50%)} 100%{transform:translateX(0)} }
.nft-scroll-row:hover { animation-play-state: paused; }

.nft-card {
  width: 220px; flex-shrink: 0;
  transition: all .5s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
.nft-card:hover { transform: translateY(-16px) scale(1.03); z-index: 10; }
.nft-card a { text-decoration: none; display: block; }
.nft-card img {
  width: 100%; height: 220px;
  object-fit: cover; border-radius: 20px;
  border: 1px solid var(--glass-border);
  transition: all .4s;
}
.nft-card:hover img {
  border-color: var(--accent);
  box-shadow: 0 20px 50px rgba(0,255,136,0.3);
}
.nft-card p {
  font-family: 'Geist Mono', monospace;
  font-size: 11px; color: var(--muted);
  text-align: center; margin-top: 12px;
  transition: color .3s;
}
.nft-card:hover p { color: var(--fg); }

/* ─── Stats Section ─── */
.stats-section {
  padding: 80px 40px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-grid {
  max-width: 1400px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stat-item {
  text-align: center;
  padding: 40px 24px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  transition: all .4s;
}
.stat-item:hover {
  transform: translateY(-6px);
  border-color: rgba(0,255,136,0.2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 20px 40px rgba(0,0,0,0.3);
}
.stat-number {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(40px, 6vw, 60px);
  line-height: 1; margin-bottom: 10px;
  letter-spacing: -0.03em;
}
.stat-number.accent { color: var(--accent); }
.stat-label {
  font-family: 'Geist Mono', monospace;
  font-size: 10px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--muted);
}

/* ─── Staking Teaser ─── */
.staking-teaser {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 48px 0;
}
.staking-teaser-text {
  color: var(--muted-2); line-height: 1.8;
  margin: 20px 0 32px; font-size: 15px;
}
.staking-teaser-steps {
  display: flex; flex-direction: column; gap: 20px;
  margin-bottom: 32px;
}
.teaser-step {
  display: flex; gap: 16px;
  align-items: flex-start;
  padding: 18px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  transition: border-color .3s;
}
.teaser-step:hover { border-color: rgba(0,255,136,0.2); }
.teaser-num {
  flex-shrink: 0;
  width: 38px; height: 38px;
  background: rgba(0,255,136,0.1);
  border: 1px solid rgba(0,255,136,0.3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Instrument Serif', serif;
  font-size: 18px; color: var(--accent);
}
.teaser-step h4 {
  font-family: 'Instrument Serif', serif;
  font-size: 20px; margin-bottom: 4px;
}
.teaser-step p {
  font-family: 'Geist Mono', monospace;
  font-size: 11px; color: var(--muted-2);
  line-height: 1.6;
}
.staking-teaser-visual {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.staking-teaser-visual img {
  width: 100%; aspect-ratio: 1;
  object-fit: cover; border-radius: 16px;
  border: 1px solid var(--glass-border);
  image-rendering: pixelated;
  transition: all .4s;
}
.staking-teaser-visual img:hover {
  transform: scale(1.05);
  border-color: var(--accent);
}

/* ─── $1 Game Teaser ─── */
.dollar-game-teaser {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  background: linear-gradient(135deg, rgba(0,255,136,0.04), transparent 60%);
  border: 1px solid rgba(0,255,136,0.1);
  border-radius: 32px;
  padding: 64px 48px;
}
.dollar-game-title {
  font-family: 'Creepster', cursive;
  font-size: clamp(40px, 6vw, 80px);
  line-height: .9;
  text-shadow: 0 0 40px rgba(0,255,136,0.3);
  margin-top: 4px;
  margin-bottom: 20px;
}
.dollar-game-desc {
  color: var(--muted-2);
  line-height: 1.8;
  font-size: 15px;
  margin-bottom: 12px;
}
.dollar-game-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.dollar-game-cell {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 32px 20px;
  text-align: center;
  transition: all .3s;
}
.dollar-game-cell:hover {
  border-color: rgba(0,255,136,0.2);
  transform: translateY(-4px);
}
.dg-num {
  font-family: 'Instrument Serif', serif;
  font-size: 48px; line-height: 1;
  color: var(--fg);
  letter-spacing: -0.03em;
}
.dg-num.accent { color: var(--accent); }
.dg-lbl {
  font-family: 'Geist Mono', monospace;
  font-size: 9px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--muted);
  margin-top: 8px;
}

/* ─── About ─── */
.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-content p {
  font-size: 15px; line-height: 1.9;
  color: var(--muted-2);
  margin-bottom: 20px;
}
.about-image-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.about-image {
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  transition: all .4s;
}
.about-image:hover { transform: scale(1.05); border-color: var(--accent); }
.about-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter .4s;
  image-rendering: pixelated;
}
.about-image:hover img { filter: grayscale(0%); }

/* ─── Team ─── */
.team-member {
  text-decoration: none;
  color: inherit;
  transition: transform .4s;
}
.team-member:hover { transform: translateY(-8px); }
.team-avatar {
  width: 140px; height: 140px;
  border-radius: 50%;
  margin: 32px auto 20px;
  overflow: hidden;
  border: 3px solid var(--glass-border);
  transition: border-color .3s;
}
.team-member:hover .team-avatar { border-color: var(--accent); }
.team-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter .4s;
}
.team-member:hover .team-avatar img { filter: grayscale(0%); }
.team-name {
  font-family: 'Instrument Serif', serif;
  font-size: 26px; margin-bottom: 4px;
}
.team-role {
  font-family: 'Geist Mono', monospace;
  font-size: 11px; letter-spacing: .15em;
  text-transform: uppercase; color: var(--muted);
}

/* ─── Footer ─── */
footer {
  padding: 60px 40px;
  border-top: 1px solid var(--border);
  margin-top: 60px;
}
.footer-content {
  max-width: 1400px; margin: 0 auto;
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 24px;
}
.footer-logo {
  font-family: 'Creepster', cursive;
  font-size: 20px; color: var(--accent);
  text-decoration: none; letter-spacing: 2px;
}
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-link {
  font-family: 'Geist Mono', monospace;
  font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color .3s;
}
.footer-link:hover { color: var(--fg); }
.footer-copy {
  font-family: 'Geist Mono', monospace;
  font-size: 10px; color: var(--muted);
}

/* ─── Notifications ─── */
.notification {
  position: fixed; top: 90px; right: 24px;
  padding: 16px 24px;
  border-radius: 12px;
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  z-index: 10000;
  animation: slideIn .3s ease;
  max-width: 320px;
  backdrop-filter: blur(10px);
}
.notification.success { background: rgba(0,255,136,0.15); border: 1px solid rgba(0,255,136,0.4); color: var(--accent); }
.notification.error   { background: rgba(255,68,68,0.15); border: 1px solid rgba(255,68,68,0.4); color: var(--danger); }
.notification.info    { background: rgba(100,100,255,0.15); border: 1px solid rgba(100,100,255,0.4); color: #8888ff; }
@keyframes slideIn { from{transform:translateX(120px);opacity:0} to{transform:translateX(0);opacity:1} }

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .about-container { grid-template-columns: 1fr; gap: 48px; }
  .dollar-game-teaser { grid-template-columns: 1fr; gap: 40px; padding: 40px 28px; }
  .staking-teaser { grid-template-columns: 1fr; gap: 40px; }
  .sales-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  html, body { overflow-x: hidden; max-width: 100vw; }
  .cursor, .cursor-dot { display: none; }
  body { cursor: auto; }
  a, button, input, select { cursor: pointer; }

  nav { padding: 14px 16px; }
  .nav-links, .nav-social { display: none; }
  .mobile-menu-btn { display: block; }
  .nav-links.mobile-open {
    display: flex !important;
    position: fixed;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    background: rgba(3,3,3,0.98);
    backdrop-filter: blur(20px);
    padding: 28px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    z-index: 99;
  }

  .section, .hero { padding-left: 20px; padding-right: 20px; }
  .hero { padding: 100px 20px 60px; }
  .section { padding-top: 80px; padding-bottom: 80px; }
  .hero-cta { flex-direction: column; width: 100%; }
  .hero-cta .btn-primary, .hero-cta .btn-secondary { width: 100%; justify-content: center; }
  .sales-tabs { width: 100%; overflow-x: auto; }
  .sales-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .sales-big-stats { grid-template-columns: 1fr; gap: 16px; }
  .floor-grid { grid-template-columns: repeat(2, 1fr); }

  .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-item { padding: 24px 16px; }

  .dollar-game-grid { grid-template-columns: 1fr 1fr; }
  .staking-teaser-visual { grid-template-columns: repeat(3, 1fr); }

  .footer-content { flex-direction: column; gap: 20px; text-align: center; }
  .footer-links { justify-content: center; }

  .nft-card { width: 160px; }
  .nft-card img { height: 160px; }
}

@media (max-width: 480px) {
  .sales-stats { grid-template-columns: 1fr 1fr; gap: 8px; }
  .floor-grid { grid-template-columns: 1fr 1fr; }
  .sale-card { flex: 0 0 170px; }
  .nav-cta-btn { padding: 8px 14px; font-size: 10px; }
}

/* ─── Hidden utility ─── */
.hidden { display: none !important; }
/* ═══════════════════════════════════════════════════════════════
   GOTHIC EXTRAS - testnet banner, demo card, project viewer,
   grid variety for the different sections
   ═══════════════════════════════════════════════════════════════ */

/* ─── Testnet banner across the top of staking.html ─── */
.testnet-banner {
  position: fixed; top: 0; left: 0; right: 0; z-index: 101;
  background: linear-gradient(90deg, #3a0505 0%, #5a0a0a 50%, #3a0505 100%);
  color: #ffc8c8;
  font-family: 'Geist Mono', monospace;
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  padding: 8px 16px; text-align: center;
  border-bottom: 1px solid rgba(200, 164, 80, 0.35);
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.testnet-banner .tb-pulse {
  width: 8px; height: 8px; background: #ff4444; border-radius: 50%;
  box-shadow: 0 0 10px #ff4444; animation: tbPulse 1.5s infinite;
}
.testnet-banner strong { color: #ffdada; letter-spacing: .2em; }
@keyframes tbPulse { 0%,100%{opacity:1} 50%{opacity:.35} }
body:has(.testnet-banner) nav { top: 30px; }

/* ─── OpenSea nav button ─── */
.opensea-btn {
  padding: 8px 14px !important;
  font-size: 12px !important;
  display: inline-flex !important; align-items: center; gap: 8px;
}
.opensea-btn svg { color: #2081E2; filter: drop-shadow(0 0 6px rgba(32,129,226,0.5)); }

/* ─── Gothic nav logo + hover ─── */
.nav-logo {
  text-shadow: 0 0 18px rgba(200,164,80,0.45), 0 0 2px rgba(139,26,26,0.8);
}
.nav-logo:hover { text-shadow: 0 0 28px rgba(200,164,80,0.8), 0 0 4px rgba(139,26,26,1); }

/* ─── Hero ─── */
.hero-title {
  text-shadow: 0 0 40px rgba(200,164,80,0.3), 0 0 80px rgba(139,26,26,0.2);
  background: linear-gradient(180deg, #ece4d0 0%, #c8a450 60%, #7a5a2a 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-subtitle { color: var(--accent); }
.hero-badge {
  background: rgba(20,8,8,0.6);
  border-color: rgba(200,164,80,0.4);
  color: var(--accent-2);
}
.hero-badge .pulse { background: var(--blood); box-shadow: 0 0 8px var(--blood); }

/* ─── Buttons ─── */
.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #1a0a0a;
  font-weight: 700;
  letter-spacing: .12em;
  box-shadow: 0 0 0 1px rgba(200,164,80,0.4), 0 8px 20px rgba(200,164,80,0.15);
}
.btn-primary:hover {
  box-shadow: 0 0 0 1px var(--accent-2), 0 14px 40px rgba(200,164,80,0.4), 0 0 30px rgba(139,26,26,0.3);
}
.btn-secondary {
  border-color: rgba(200,164,80,0.3);
  color: var(--bone);
}
.btn-secondary:hover {
  background: rgba(200,164,80,0.08);
  border-color: var(--accent);
  color: var(--accent-2);
}
.btn-sm {
  font-family: 'Geist Mono', monospace;
  font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  padding: 10px 18px; border-radius: 100px; cursor: none;
  text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--glass-border); transition: all .3s;
}
.btn-sm.primary   { background: var(--accent); color: #1a0a0a; font-weight: 700; border-color: var(--accent); }
.btn-sm.primary:hover { box-shadow: 0 6px 20px rgba(200,164,80,0.4); }
.btn-sm.secondary { background: transparent; color: var(--bone); }
.btn-sm.secondary:hover { background: rgba(200,164,80,0.08); color: var(--accent-2); border-color: var(--accent); }

/* ─── Gothic card frame - "stained glass" feel ─── */
.glass-card, .stat-card, .sales-stat, .floor-item, .sale-card,
.stake-nft-card, .teaser-step, .how-card, .tool-card, .dollar-game-cell {
  background: linear-gradient(180deg, rgba(20,8,8,0.55), rgba(10,5,5,0.35));
  border: 1px solid var(--glass-border);
}
.glass-card:hover, .stat-card:hover, .sales-stat:hover,
.floor-item:hover, .sale-card:hover, .teaser-step:hover,
.how-card:hover, .tool-card:hover, .dollar-game-cell:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(200,164,80,0.2), 0 20px 50px rgba(139,26,26,0.2);
}

.section-title em { color: var(--accent); font-style: italic; }
.section-label { color: var(--accent); }
.stat-number.accent { color: var(--accent-2); text-shadow: 0 0 20px rgba(200,164,80,0.4); }

/* ─── Demo Royalty card ─── */
.demo-royalty-card {
  max-width: 1400px; margin: 0 auto 24px; padding: 0 40px;
}
.demo-royalty-card .drc-content {
  background: linear-gradient(135deg, rgba(139,26,26,0.08), rgba(200,164,80,0.04));
  border: 1px dashed rgba(200,164,80,0.35);
  border-radius: 28px;
  padding: 32px;
  position: relative;
}
.demo-royalty-card .drc-content::before {
  content: '⚱';
  position: absolute; top: -14px; left: 32px;
  font-size: 28px; background: var(--bg);
  padding: 0 8px; color: var(--accent);
}
.demo-royalty-card h3 {
  font-family: 'Instrument Serif', serif;
  font-size: 28px; margin: 8px 0 12px;
}
.drc-desc {
  font-family: 'Geist Mono', monospace;
  font-size: 12px; color: var(--muted-2);
  line-height: 1.8; margin-bottom: 20px;
  max-width: 680px;
}
.drc-stats {
  display: flex; gap: 16px; margin-bottom: 20px; flex-wrap: wrap;
}
.drc-stats > div {
  display: flex; flex-direction: column; gap: 4px;
  padding: 10px 18px; border: 1px solid var(--glass-border);
  border-radius: 12px;
}
.drc-k { font-family: 'Geist Mono', monospace; font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.drc-v { font-family: 'Instrument Serif', serif; font-size: 20px; color: var(--accent-2); }

@media (max-width: 768px) {
  .demo-royalty-card { padding: 0 16px; }
  .demo-royalty-card .drc-content { padding: 24px 18px; }
}

/* ─── Timer pills ─── */
.timer-display.locked {
  background: rgba(139,26,26,0.1); border: 1px solid rgba(139,26,26,0.4);
  color: #ff8888; padding: 10px 18px; border-radius: 100px;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Geist Mono', monospace; font-size: 11px; letter-spacing: .1em;
}
.timer-display.unlocked {
  background: rgba(200,164,80,0.08); border: 1px solid rgba(200,164,80,0.4);
  color: var(--accent-2); padding: 10px 18px; border-radius: 100px;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Geist Mono', monospace; font-size: 11px; letter-spacing: .1em;
}
.lock-badge { color: #ff8888 !important; background: rgba(20,0,0,0.9) !important; }

/* ─── Previous Projects section ─── */
.projects-section { padding-top: 100px; padding-bottom: 100px; }
.projects-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px;
  max-width: 1200px; margin: 0 auto;
}
.project-viewer {
  background: linear-gradient(180deg, rgba(20,8,8,0.6), rgba(10,5,5,0.3));
  border: 1px solid var(--glass-border);
  border-radius: 28px; padding: 32px;
  transition: all .4s;
}
.project-viewer:hover { border-color: var(--accent); box-shadow: 0 30px 80px rgba(139,26,26,0.2); }
.project-viewer h3 {
  font-family: 'Instrument Serif', serif;
  font-size: 28px; margin-bottom: 4px; color: var(--bone);
}
.project-viewer .subtitle {
  font-family: 'Geist Mono', monospace;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 20px;
}
.viewer-frame-wrap {
  aspect-ratio: 1;
  border-radius: 16px; overflow: hidden;
  border: 1px solid var(--glass-border);
  background: var(--bg-tertiary);
  margin-bottom: 16px;
  box-shadow: inset 0 0 60px rgba(0,0,0,0.5);
}
.viewer-frame-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
.viewer-controls { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.viewer-info {
  font-family: 'Geist Mono', monospace; font-size: 11px;
  color: var(--muted-2); letter-spacing: .1em;
}
.viewer-info strong { color: var(--accent-2); }
@media (max-width: 768px) { .projects-grid { grid-template-columns: 1fr; } }

/* ─── Gothic grid variations (each section looks different) ─── */

/* STAKING TEASER - hexagonal tarot-card spread */
.staking-teaser-visual {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 12px !important;
  position: relative;
}
.staking-teaser-visual img {
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  border-radius: 0 !important;
  border: none !important;
  filter: sepia(.25) contrast(1.05) brightness(.95);
  transition: transform .5s, filter .5s;
}
.staking-teaser-visual img:nth-child(even) { transform: translateY(16px); }
.staking-teaser-visual img:hover {
  transform: scale(1.08) translateY(0) !important;
  filter: sepia(0) contrast(1.1) brightness(1.05) drop-shadow(0 0 20px rgba(200,164,80,0.5));
  z-index: 2;
}

/* ABOUT (Story) - offset masonry with dark frames */
.about-image-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 10px !important;
}
.about-image {
  border-radius: 4px !important;
  border: 1px solid var(--glass-border) !important;
  padding: 6px;
  background: linear-gradient(135deg, rgba(20,8,8,0.6), rgba(40,16,16,0.4));
  box-shadow: inset 0 0 20px rgba(0,0,0,0.6);
  transition: all .4s;
}
.about-image:nth-child(3n+2) { transform: translateY(20px); }
.about-image:nth-child(3n+3) { transform: translateY(-10px); }
.about-image img {
  filter: grayscale(.7) sepia(.4) contrast(1.1);
  transition: filter .5s;
  border: 1px solid rgba(200,164,80,0.15);
  width: 100%; height: 100%; object-fit: cover;
  image-rendering: pixelated;
}
.about-image:hover {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 1px var(--accent), 0 20px 40px rgba(139,26,26,0.3);
}
.about-image:hover img { filter: grayscale(0) sepia(0) contrast(1); }

/* FEATURED scroller - slight sepia, hover lights up */
.nft-card img {
  filter: sepia(.15) brightness(.92) contrast(1.05);
  transition: filter .4s, transform .4s;
  border: 1px solid var(--glass-border);
}
.nft-card:hover img {
  filter: sepia(0) brightness(1.05) contrast(1.1);
  border-color: var(--accent);
  box-shadow: 0 20px 50px rgba(200,164,80,0.3);
}

/* FLOOR grid - blood-drip accent on hover */
.floor-item { position: relative; }
.floor-item::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 2px; background: linear-gradient(90deg, transparent, var(--blood), transparent);
  opacity: 0; transition: opacity .3s;
}
.floor-item:hover::before { opacity: 1; }

/* SALE cards (sold badge is now blood red) */
.sale-card-badge {
  color: var(--accent-2) !important;
  background: rgba(20,8,8,0.95) !important;
  border: 1px solid rgba(200,164,80,0.3);
}

/* ─── Notifications re-tint ─── */
.notification.success { background: rgba(200,164,80,0.15); border-color: rgba(200,164,80,0.4); color: var(--accent-2); }
.notification.error   { background: rgba(139,26,26,0.15);  border-color: rgba(139,26,26,0.45); color: #ff8888; }
.notification.info    { background: rgba(60,30,30,0.65);   border-color: rgba(200,164,80,0.25); color: var(--bone); }

/* ─── Floating skulls (visible on every page) ─── */
.skull-floaters {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 3;          /* above fog, below nav */
  overflow: hidden;
}
.skull-float {
  position: absolute;
  font-size: 14px;
  opacity: 0;
  animation: floatSkull var(--dur) var(--delay) infinite ease-in;
  left: var(--x);
  bottom: -30px;
  pointer-events: none;
  color: rgba(200, 164, 80, 0.5);
  filter: drop-shadow(0 0 8px rgba(139, 26, 26, 0.5));
}
@keyframes floatSkull {
  0%   { transform: translateY(0)       rotate(0deg);   opacity: 0; }
  10%  { opacity: .6; }
  50%  { transform: translateY(-60vh)   rotate(180deg); opacity: .7; }
  90%  { opacity: .3; }
  100% { transform: translateY(-110vh)  rotate(360deg); opacity: 0; }
}
/* ═══════════════════════════════════════════════════════════════
   Gothic popup modal for featured Undeads
   ═══════════════════════════════════════════════════════════════ */
.undead-modal-overlay {
  position: fixed; inset: 0; z-index: 9998;
  background: rgba(5, 2, 2, 0.88);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity .22s ease;
}
.undead-modal-overlay.open { opacity: 1; }
.undead-modal {
  background: linear-gradient(180deg, rgba(26, 10, 10, 0.98), rgba(10, 5, 5, 0.95));
  border: 1px solid rgba(200, 164, 80, 0.35);
  border-radius: 18px;
  max-width: 920px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  position: relative;
  box-shadow: 0 0 0 1px rgba(139, 26, 26, 0.3), 0 40px 120px rgba(139, 26, 26, 0.4),
              inset 0 1px 0 rgba(200, 164, 80, 0.1);
  transform: scale(0.96);
  transition: transform .22s ease;
}
.undead-modal-overlay.open .undead-modal { transform: scale(1); }
.undead-modal::before {
  /* decorative gothic corners */
  content: ''; position: absolute; inset: 10px;
  border: 1px solid rgba(200, 164, 80, 0.15);
  border-radius: 12px;
  pointer-events: none;
}
.undead-modal-close {
  position: absolute; top: 14px; right: 16px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(139, 26, 26, 0.15);
  border: 1px solid rgba(200, 164, 80, 0.3);
  color: var(--accent-2, #e8c878);
  font-size: 22px; line-height: 1;
  cursor: pointer;
  transition: all .2s;
}
.undead-modal-close:hover {
  background: rgba(139, 26, 26, 0.35);
  border-color: var(--accent, #c8a450);
  transform: rotate(90deg);
}
.undead-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding: 36px;
  align-items: start;
}
.undead-modal-img {
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(200, 164, 80, 0.2);
  background: #0a0505;
  box-shadow: inset 0 0 60px rgba(0,0,0,0.6);
}
.undead-modal-img img {
  width: 100%; height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 20px rgba(200, 164, 80, 0.15));
}
.undead-modal-eyebrow {
  font-family: 'Geist Mono', 'Share Tech Mono', monospace;
  font-size: 11px; letter-spacing: .25em; text-transform: uppercase;
  color: var(--accent, #c8a450);
  margin-bottom: 8px;
}
.undead-modal-name {
  font-family: 'Cinzel Decorative', 'Instrument Serif', serif;
  font-size: clamp(28px, 4vw, 40px);
  color: var(--bone, #e0d8c8);
  line-height: 1.1;
  margin-bottom: 24px;
  text-shadow: 0 0 30px rgba(200, 164, 80, 0.25);
}
.undead-modal-body { min-height: 80px; margin-bottom: 24px; }
.undead-modal-traits {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.undead-trait-pill {
  background: rgba(139, 26, 26, 0.12);
  border: 1px solid rgba(200, 164, 80, 0.25);
  border-radius: 8px;
  padding: 10px 14px;
  transition: all .3s;
}
.undead-trait-pill:hover {
  border-color: var(--accent, #c8a450);
  background: rgba(200, 164, 80, 0.1);
  transform: translateY(-1px);
}
.utp-type {
  display: block;
  font-family: 'Geist Mono', 'Share Tech Mono', monospace;
  font-size: 9px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent, #c8a450);
  margin-bottom: 4px;
}
.utp-val {
  font-family: 'Instrument Serif', 'EB Garamond', serif;
  font-size: 15px;
  color: var(--bone, #e0d8c8);
}
.undead-modal-notraits {
  color: var(--muted-2, #9a8878);
  font-style: italic;
  font-size: 14px;
  padding: 20px 0;
}
.undead-modal-cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--accent, #c8a450), var(--accent-2, #e8c878));
  color: #1a0a0a;
  border-radius: 100px;
  font-family: 'Geist Mono', 'Share Tech Mono', monospace;
  font-size: 12px; letter-spacing: .15em; text-transform: uppercase; font-weight: 700;
  text-decoration: none;
  transition: all .3s;
  box-shadow: 0 10px 30px rgba(200, 164, 80, 0.25);
}
.undead-modal-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 45px rgba(200, 164, 80, 0.5), 0 0 30px rgba(139, 26, 26, 0.4);
}

@media (max-width: 720px) {
  .undead-modal-grid { grid-template-columns: 1fr; gap: 20px; padding: 24px; }
  .undead-modal-traits { grid-template-columns: 1fr; }
  .undead-modal-img { max-width: 80%; margin: 0 auto; }
}
/* ═══════════════════════════════════════════════════════════════
   Iframe performance - content-visibility + GPU layer promotion.
   Gives embedded iframes (Squiggler, Arweave puzzle) room to breathe.
   ═══════════════════════════════════════════════════════════════ */
.viewer-frame-wrap iframe {
  /* Skip rendering until near viewport - huge load-time win */
  content-visibility: auto;
  /* Reserve space so layout doesn't jump when iframe paints */
  contain-intrinsic-size: 600px 600px;
  /* Promote to own GPU layer so page scroll doesn't repaint iframe */
  transform: translateZ(0);
  will-change: transform;
  /* Prevent double-render artifacts on transform */
  backface-visibility: hidden;
  /* Let the browser decode images inside async */
  image-rendering: auto;
}

/* When an iframe is NOT in viewport, disable pointer events entirely.
   Prevents hover inside the page from bubbling into the iframe. */
.viewer-frame-wrap:not(:hover) iframe {
  pointer-events: auto;  /* keep interactive, just don't force paints */
}