/* ZecSmiths — charcoal + gold, full pixel/retro theme */
:root {
  --bg: #08070a;
  --bg-2: #121016;
  --card: #16121a;
  --line: rgba(255, 255, 255, 0.10);
  --text: #f6f3ee;
  --muted: #a39b92;
  --gold: #e0b45a;
  --gold-hot: #f0c97a;
  --accent: #ff6a3d;
  --ember: #ff6a3d;
  --ember-deep: #c43a12;
  --green: #2dff9a;
  --charcoal: #121016;
  --radius: 0;
  --font: "Pixelify Sans", "IBM Plex Mono", ui-monospace, monospace;
  --display: "Press Start 2P", "Pixelify Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --body: "IBM Plex Mono", "Pixelify Sans", ui-monospace, monospace;
  --glow: none;
  --pixel-border: 2px solid rgba(224, 180, 90, 0.55);
  --pixel-shadow: 3px 3px 0 #000;
  --pixel-shadow-sm: 2px 2px 0 #000;
}

* { box-sizing: border-box }
html { scroll-behavior: smooth; overflow-x: hidden }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: none;
  image-rendering: auto;
  background:
    radial-gradient(900px 480px at 85% 0%, rgba(224, 180, 90, 0.14), transparent 55%),
    radial-gradient(700px 420px at 0% 20%, rgba(255, 106, 61, 0.10), transparent 50%),
    radial-gradient(560px 360px at 50% 100%, rgba(255, 106, 61, 0.06), transparent 45%),
    var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none }
em { font-style: italic; color: var(--gold) }

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.045;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* Subtle CRT scanlines — tasteful, low opacity */
.scanlines {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.035;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 2px,
    rgba(0, 0, 0, 0.55) 2px,
    rgba(0, 0, 0, 0.55) 3px
  );
}

/* CSS ember particles + soft aurora wash */
.embers {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  opacity: 0.6;
}
.embers::before,
.embers::after {
  content: "";
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow:
    6vw 85vh 0 1px rgba(255, 106, 61, 0.45),
    12vw 72vh 0 0 rgba(224, 180, 90, 0.4),
    18vw 40vh 0 1px rgba(255, 140, 60, 0.35),
    24vw 95vh 0 0 rgba(240, 201, 122, 0.3),
    32vw 55vh 0 2px rgba(255, 106, 61, 0.4),
    40vw 28vh 0 0 rgba(224, 180, 90, 0.38),
    48vw 78vh 0 1px rgba(255, 160, 80, 0.32),
    55vw 15vh 0 0 rgba(224, 180, 90, 0.35),
    62vw 62vh 0 1px rgba(255, 106, 61, 0.42),
    70vw 88vh 0 0 rgba(240, 201, 122, 0.28),
    78vw 35vh 0 2px rgba(255, 140, 60, 0.38),
    85vw 70vh 0 0 rgba(224, 180, 90, 0.36),
    92vw 48vh 0 1px rgba(255, 106, 61, 0.4),
    8vw 22vh 0 0 rgba(255, 160, 80, 0.3),
    45vw 50vh 0 1px rgba(224, 180, 90, 0.25);
  animation: ember-rise 22s linear infinite;
}
.embers::after {
  animation-duration: 28s;
  animation-delay: -11s;
  opacity: 0.65;
  box-shadow:
    10vw 58vh 0 0 rgba(255, 106, 61, 0.38),
    22vw 18vh 0 1px rgba(224, 180, 90, 0.32),
    36vw 82vh 0 0 rgba(255, 140, 60, 0.4),
    52vw 42vh 0 2px rgba(240, 201, 122, 0.28),
    68vw 12vh 0 0 rgba(255, 106, 61, 0.35),
    80vw 66vh 0 1px rgba(224, 180, 90, 0.33),
    94vw 30vh 0 0 rgba(255, 160, 80, 0.3),
    15vw 90vh 0 1px rgba(240, 201, 122, 0.25),
    58vw 75vh 0 0 rgba(255, 106, 61, 0.36),
    74vw 50vh 0 1px rgba(224, 180, 90, 0.3);
}
@keyframes ember-rise {
  0% { transform: translateY(0) translateX(0); opacity: 0.45 }
  25% { opacity: 0.85 }
  50% { transform: translateY(-55vh) translateX(8px); opacity: 1 }
  75% { opacity: 0.7 }
  100% { transform: translateY(-110vh) translateX(-6px); opacity: 0 }
}

/* Soft animated aurora behind splash / collection (no assets) */
.splash::before,
#collection::before {
  content: "";
  position: absolute;
  inset: -10% -5%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 40% at 20% 30%, rgba(224, 180, 90, 0.16), transparent 60%),
    radial-gradient(ellipse 50% 45% at 80% 60%, rgba(255, 106, 61, 0.12), transparent 55%),
    radial-gradient(ellipse 40% 35% at 50% 80%, rgba(224, 180, 90, 0.08), transparent 50%);
  animation: aurora-drift 18s ease-in-out infinite alternate;
  opacity: 0.85;
  mix-blend-mode: screen;
}
@keyframes aurora-drift {
  0% { transform: translate(0, 0) scale(1); opacity: 0.7 }
  50% { transform: translate(2%, -1.5%) scale(1.04); opacity: 0.95 }
  100% { transform: translate(-1.5%, 2%) scale(1.02); opacity: 0.75 }
}

.nav, main, .footer { position: relative; z-index: 1 }

.nav {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.1rem;
  backdrop-filter: none;
  background: #08070a;
  border-bottom: var(--pixel-border);
  z-index: 30;
}
.nav nav { display: flex; gap: 1.35rem }
.nav nav a {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 500;
  font-family: var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav nav a:hover { color: var(--gold) }

.logo { font-weight: 700; letter-spacing: 0.04em; font-size: 1.05rem }
.logo span { color: var(--gold) }
.logo.logo-text {
  font-family: var(--display);
  font-size: clamp(0.55rem, 2.2vw, 0.72rem);
  line-height: 1.35;
  color: var(--gold-hot);
  text-shadow: 2px 2px 0 #000;
  letter-spacing: 0.02em;
  text-transform: none;
}

.nav-end { display: flex; align-items: center; gap: 0.55rem; flex-shrink: 0 }
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 2px solid rgba(224, 180, 90, 0.45);
  border-radius: 0;
  background: #121016;
  cursor: pointer;
  touch-action: manipulation;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--gold);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav.is-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg) }
.nav.is-open .nav-toggle span:nth-child(2) { opacity: 0 }
.nav.is-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg) }

.btn {
  touch-action: manipulation;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #1a1208;
  border-radius: 0;
  padding: 0.75rem 1.15rem;
  background: var(--gold);
  color: #1a1208;
  font-weight: 700;
  font-family: var(--display);
  font-size: 0.58rem;
  letter-spacing: 0.04em;
  line-height: 1.35;
  cursor: pointer;
  box-shadow: var(--pixel-shadow);
  transition: transform 0.08s, box-shadow 0.08s, background 0.08s;
  text-transform: uppercase;
}
.btn:hover { background: var(--gold-hot); transform: translate(-1px, -1px); box-shadow: 4px 4px 0 #000 }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #000 }
.btn-lg { padding: 0.95rem 1.35rem; font-size: 0.62rem }
.btn-sm { padding: 0.5rem 0.75rem; font-size: 0.5rem; box-shadow: var(--pixel-shadow-sm) }
.btn-ghost {
  background: #121016;
  color: var(--gold);
  border: 2px solid rgba(224, 180, 90, 0.65);
  box-shadow: var(--pixel-shadow-sm);
}
.btn-ghost:hover {
  border-color: var(--gold-hot);
  color: var(--gold-hot);
  background: #1a1520;
}
.btn:disabled { opacity: 0.55; cursor: default; transform: none; box-shadow: 2px 2px 0 #222 }

/* —— Splash —— */
.splash {
  position: relative;
  min-height: min(88vh, 760px);
  display: grid;
  place-items: center;
  padding: 3rem 1.25rem 4rem;
  overflow: hidden;
}
.splash-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 40%;
  filter: brightness(0.45) saturate(1.1);
  transform: scale(1.04);
}
.splash-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 8, 6, 0.35) 0%, rgba(10, 8, 6, 0.55) 45%, rgba(10, 8, 6, 0.88) 100%),
    radial-gradient(600px 320px at 50% 20%, rgba(232, 184, 74, 0.08), transparent 60%);
  z-index: 1;
}
.splash::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: min(28vh, 220px);
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, var(--bg) 92%);
}
.splash-copy {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 720px;
}
.splash h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(3rem, 9vw, 5.8rem);
  line-height: 0.92;
  margin: 0 0 1.1rem;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-shadow: 0 4px 32px rgba(0, 0, 0, 0.55);
}
.splash h1 span {
  background: linear-gradient(135deg, var(--gold), var(--ember));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.splash-lede { margin: 0 auto 1.5rem; max-width: 34rem }
.splash-lede strong { color: var(--gold) }
.splash .hero-cta { justify-content: center }
.splash-stats { margin: 1.75rem auto 0; max-width: 36rem }
.stats strong.stat-long {
  font-size: clamp(0.68rem, 2.4vw, 0.92rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  font-weight: 700;
}
.scroll-cue {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--gold);
  font-size: 1.4rem;
  opacity: 0.7;
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0) }
  50% { transform: translateX(-50%) translateY(6px) }
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.85rem;
}
.lede { color: var(--muted); font-size: 1.08rem }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 0.5rem }
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}
.stats div,
.stats .stat-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 4.6rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.85rem 0.65rem;
  backdrop-filter: none;
  box-shadow: inset 0 1px 0 rgba(224, 180, 90, 0.08);
}
.stats strong { display: block; font-size: 1.15rem; line-height: 1.2 }
.stats span { color: var(--muted); font-size: 0.78rem; font-family: var(--mono); margin-top: 0.28rem }

/* —— Forge section —— */
.forge-section {
  width: min(1100px, calc(100% - 1.5rem));
  margin: -2.25rem auto 0;
  padding-bottom: 2rem;
  scroll-margin-top: 4.5rem;
  position: relative;
  z-index: 3;
}
.forge-panel {
  position: relative;
  background:
    linear-gradient(180deg, rgba(224, 180, 90, 0.08), transparent 36%),
    var(--card);
  border: 1px solid rgba(224, 180, 90, 0.32);
  border-radius: var(--radius);
  padding: 1.35rem 1.35rem 1.5rem;
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.4);
  overflow: visible;
}
.forge-panel.panel {
  /* avoid double-panel stacking that reads as a hard cut through the header */
  background:
    linear-gradient(180deg, rgba(224, 180, 90, 0.08), transparent 36%),
    var(--card);
}
.forge-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
  overflow: visible;
  position: relative;
  z-index: 2;
}
.forge-head h2 {
  font-family: var(--display);
  font-weight: 700;
  margin: 0 0 0.35rem;
  font-size: clamp(1.7rem, 3.5vw, 2.35rem);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.forge-meta {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  white-space: nowrap;
}
.forge-meta[hidden],
#seats[hidden],
#seats:empty { display: none !important }
.canvas-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 900 / 520;
  min-height: 0;
  margin: 0;
  padding: 0;
  line-height: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(232, 184, 74, 0.2);
  box-shadow: inset 0 0 60px rgba(255, 106, 61, 0.06), 0 12px 40px rgba(0, 0, 0, 0.35);
}

/* —— Atmospheric sections —— */
.section { padding: 3.5rem 0; position: relative }
.section-inner { width: min(1100px, calc(100% - 2rem)); margin: 0 auto; position: relative; z-index: 2 }
.section-head { margin-bottom: 1.6rem }
.section-head h2 {
  font-family: var(--display);
  font-weight: 700;
  margin: 0 0 0.5rem;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.lore-lead strong { color: var(--gold) }
.muted { color: var(--muted) }
.muted.wide { max-width: 42rem }
.lore-lead { margin-bottom: 0.35rem }
.lore-lead + .lore-lead { margin-top: 0.65rem }
.section-head a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px }
.section-head strong { color: var(--text) }

.atmos { overflow: hidden }
.atmos-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.28;
  filter: saturate(1.05);
  pointer-events: none;
}
.atmos-forge .atmos-bg { opacity: 0.18 }
.atmos-hero .atmos-bg { opacity: 0.2; filter: brightness(0.55) saturate(0.85) contrast(1.05) }
.atmos-forge-plate {
  background-color: #0c0a0f;
  background-size: cover;
  background-position: center;
}
.atmos-ember .atmos-bg {
  opacity: 0.35;
  background-size: cover;
  background-repeat: no-repeat;
}
.atmos::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--bg) 0%, transparent 18%, transparent 82%, var(--bg) 100%);
  pointer-events: none;
  z-index: 1;
}

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem }
.card {
  background: var(--card);
  border: 1px solid rgba(224, 180, 90, 0.28);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}
.card-ember {
  backdrop-filter: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent), var(--card);
  border-color: rgba(224, 180, 90, 0.22);
}
.card h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0 0 0.45rem;
  color: var(--gold-hot);
  font-size: 1.05rem;
}
.card p { margin: 0; color: var(--muted) }

#collection { position: relative }
.collection-layout { display: grid; gap: 1.25rem; position: relative; z-index: 2 }
.collection-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.collection-grid figure {
  margin: 0;
  position: relative;
  border-radius: 2px;
  overflow: hidden;
  border: 2px solid rgba(224, 180, 90, 0.45);
  background: #0a0908;
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(224, 180, 90, 0.08),
    inset 0 0 0 1px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s steps(2, end), box-shadow 0.2s ease;
}
.collection-grid figure::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 40px rgba(8, 7, 10, 0.45);
  background: radial-gradient(circle at 50% 45%, transparent 42%, rgba(8, 7, 10, 0.35) 100%);
  opacity: 0.85;
  transition: opacity 0.35s ease, box-shadow 0.35s ease;
}
.collection-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center 28%;
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  -ms-interpolation-mode: nearest-neighbor;
  transition: transform 0.2s steps(2, end);
}
.collection-grid figcaption { display: none }
.pfp-float {
  animation: pfp-float 6.2s ease-in-out infinite, pfp-glow 5s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 0.55s), calc(var(--i, 0) * 0.7s);
  will-change: transform;
}
.pfp-float:hover {
  animation-play-state: paused;
  transform: translateY(-4px) scale(1.03);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.5),
    0 0 28px rgba(224, 180, 90, 0.35),
    0 0 0 1px rgba(224, 180, 90, 0.35);
}
.pfp-float:hover::after {
  opacity: 0.4;
  box-shadow: inset 0 0 28px rgba(224, 180, 90, 0.15);
}
.pfp-float:hover img { transform: scale(1.04) }
@keyframes pfp-float {
  0%, 100% { transform: translateY(0) rotate(-0.6deg) }
  33% { transform: translateY(-8px) rotate(0.5deg) }
  66% { transform: translateY(-3px) rotate(-0.3deg) }
}
@keyframes pfp-glow {
  0%, 100% { box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(224, 180, 90, 0.06) }
  50% { box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45), 0 0 18px rgba(224, 180, 90, 0.18), 0 0 0 1px rgba(224, 180, 90, 0.12) }
}
@media (prefers-reduced-motion: reduce) {
  .pfp-float,
  .embers::before,
  .embers::after,
  .splash::before,
  #collection::before,
  .scroll-cue {
    animation: none !important;
  }
  .pfp-float:hover,
  .pfp-float:hover img { transform: none }
}
.feature-hero {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
}
.feature-hero img:first-of-type {
  width: 100%;
  display: block;
  border-radius: 6px;
  border: 1px solid rgba(232, 184, 74, 0.28);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55), var(--glow);
}
.art-tag {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid var(--line);
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  z-index: 2;
}
.stamp-float {
  position: absolute;
  right: -8%;
  top: -6%;
  width: min(160px, 28vw);
  opacity: 0.55;
  pointer-events: none;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.5));
  z-index: 3;
}

.steps { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 0.85rem }
.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}
.steps .n {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(232, 184, 74, 0.15);
  color: var(--gold);
  font-family: var(--mono);
  font-weight: 500;
}
.steps h3 { margin: 0 0 0.25rem }
.steps p { margin: 0 0 0.7rem; color: var(--muted) }
.x-handle { color: var(--gold) }

.backup-raffle {
  margin-top: 0.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem 1.1rem;
  background: var(--card);
}
.backup-raffle summary {
  cursor: pointer;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.88rem;
  list-style: none;
}
.backup-raffle summary::-webkit-details-marker { display: none }

.raffle-card {
  display: grid;
  gap: 0.9rem;
  padding: 1.35rem;
  margin-top: 1rem;
  border-radius: 6px;
  border: 1px solid rgba(232, 184, 74, 0.28);
  background:
    radial-gradient(600px 180px at 10% 0%, rgba(232, 184, 74, 0.12), transparent 55%),
    var(--card);
}
.raffle-card label { display: grid; gap: 0.4rem; font-size: 0.92rem }
.raffle-card input[type=text],
.raffle-card input[type=url] {
  width: 100%;
  border: 1px solid var(--line);
  background: #0c0a0f;
  color: var(--text);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  font: inherit;
}
.input-wrap {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid var(--line);
  background: #0c0a0f;
  border-radius: 12px;
  padding: 0 0.2rem 0 1rem;
}
.input-wrap input { border: 0 !important; background: transparent !important; padding-left: 0.2rem }
.prefix { color: var(--muted); font-family: var(--mono) }
.check { grid-template-columns: auto 1fr; align-items: start; gap: 0.65rem }
.check input { margin-top: 0.25rem }
.form-note { margin: 0; color: var(--green) }
.form-note.error { color: #ff6b6b }

.roadmap { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.85rem }
.roadmap li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(22, 16, 14, 0.88);
  backdrop-filter: blur(4px);
}
.phase { font-family: var(--mono); color: var(--gold); font-size: 1.05rem }
.roadmap h3 { margin: 0 0 0.25rem }
.roadmap p { margin: 0; color: var(--muted) }

.faq details {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.95rem 1.1rem;
  background: var(--card);
  margin-bottom: 0.7rem;
}
.faq summary { cursor: pointer; font-weight: 600 }
.faq p { color: var(--muted); margin: 0.65rem 0 0 }

.footer {
  width: min(1100px, calc(100% - 2rem));
  margin: 2rem auto 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 1rem;
}
.footer-links { display: flex; gap: 1rem; flex-wrap: wrap; color: var(--muted) }
.footer-links a:hover { color: var(--gold) }
.tiny { color: #6d6570; font-size: 0.8rem; margin: 0 }

/* Sound toast */
.sound-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 100;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.82rem;
  background: rgba(22, 16, 14, 0.95);
  border: 1px solid rgba(232, 184, 74, 0.45);
  color: var(--gold);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
  pointer-events: none;
}
.sound-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Brand wordmark */
.logo.logo-img {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  max-width: 42vw;
}
.logo.logo-text {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(0.55rem, 2.2vw, 0.72rem);
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--gold-hot);
  text-decoration: none;
  text-shadow: 2px 2px 0 #000;
  line-height: 1.35;
}
.logo-text:hover { color: var(--gold-hot, #f0c978); }
.logo-img img {
  height: 28px;
  max-height: 36px;
  max-width: 42vw;
  width: auto;
  display: block;
  object-fit: contain;
}
.footer .logo.logo-text {
  font-family: var(--display);
  font-weight: 400;
  font-size: 0.65rem;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--gold-hot);
  text-decoration: none;
  text-shadow: 2px 2px 0 #000;
}
.logo-text:hover { color: var(--gold-hot, #f0c978); }
.logo-img img {
  height: 32px;
  max-width: 48vw;
}
@media (min-width: 900px) {
  .logo.logo-img img { height: 32px; max-width: none }
}

/* Mobile: game first — splash compact, forge near top */
@media (max-width: 900px) {
  .collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem }

  .nav {
    padding: 0.65rem 0.85rem;
    gap: 0.5rem;
  }
  .nav nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0.85rem 0.85rem;
    background: rgba(8, 7, 10, 0.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
  }
  .nav.is-open nav {
    display: flex;
  }
  .nav nav a {
    padding: 0.85rem 0.4rem;
    border-bottom: 1px solid var(--line);
    font-size: 0.95rem;
  }
  .nav-toggle { display: inline-flex }
  .nav-cta { padding: 0.5rem 0.85rem; font-size: 0.85rem }
  .grid-3 { grid-template-columns: 1fr }
  .splash { min-height: auto; padding: 1.5rem 1rem 2rem }
  .splash h1 { font-size: clamp(2.2rem, 11vw, 3.2rem) }
  .splash-lede { font-size: 1rem }
  .forge-section {
    margin-top: 0;
    width: min(1100px, calc(100% - 1rem));
    scroll-margin-top: 3.75rem;
  }
  .forge-panel {
    padding: 1rem;
    border-radius: 18px;
    overflow-x: hidden;
    max-width: 100%;
  }
  .forge-head { gap: 0.65rem }
  .section { padding: 2.5rem 0 }
  .section-inner { width: min(1100px, calc(100% - 2rem)) }
  .stamp-float { right: 0; top: -4%; width: 100px }
  .hero-cta .btn,
  .controls .btn { width: 100% }
  .hero-cta { flex-direction: column }
}

@media (max-width: 640px) {
  body.site-home .splash { order: 2 }
  .section { padding: 2.4rem 0 }
  .section-inner {
    width: min(1100px, calc(100% - 2.5rem));
    padding-left: 0;
    padding-right: 0;
  }
  .section-head h2 {
    font-size: clamp(1.4rem, 6.5vw, 1.85rem);
    line-height: 1.15;
  }
  .muted.wide { max-width: 100%; }
  .forge-section {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
    padding-bottom: 1.5rem;
  }
  .forge-panel { padding: 0.85rem 0.9rem }
  .forge-head h2 { font-size: 1.45rem }
  .forge-head .sub { font-size: 0.9rem; line-height: 1.4 }
  .stats { gap: 0.45rem }
  .stats div { padding: 0.65rem 0.5rem }
  .stats strong { font-size: 1rem }
  .stats strong.stat-long { font-size: 0.62rem }
  .collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem }
  .roadmap li,
  .steps li {
    padding: 1rem 1rem 1rem 0.95rem;
  }
  .roadmap .phase { margin-right: 0.65rem }
  .footer { width: min(1100px, calc(100% - 2.5rem)); margin: 1.5rem auto 2rem }
  .nav {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Inputs: 16px prevents iOS focus zoom */
#walletForm input,
.raffle-card input[type=text],
.raffle-card input[type=url],
.input-wrap input {
  font-size: 16px;
}

/* —— Legacy tier table (unused on ZecSmiths) —— */
.tier-table-card {
  margin: 0 0 1.5rem;
  padding: 1.2rem 1.25rem 1.15rem;
  background: linear-gradient(180deg, rgba(224, 180, 90, 0.07), transparent 40%), var(--card);
  border: 1px solid rgba(224, 180, 90, 0.28);
  border-radius: var(--radius);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
}
.tier-table-card h3 {
  font-family: var(--display);
  font-weight: 700;
  margin: 0 0 0.85rem;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.tier-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.tier-table th,
.tier-table td {
  text-align: left;
  padding: 0.7rem 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.tier-table tbody tr:last-child td { border-bottom-color: transparent }
.tier-table th {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.tier-table td strong { color: var(--gold-hot); font-weight: 700 }
.tier-foot {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}
@media (max-width: 640px) {
  .tier-table-card { padding: 1rem 0.9rem 0.95rem }
  .tier-table th, .tier-table td { padding: 0.6rem 0.4rem }
}

/* —— Referral checker (ZecSmiths forge) —— */
.invite-tip { margin-top: 0.65rem !important; }
.referral-checker {
  margin-top: 1.25rem;
  padding: 1.1rem 1.15rem 1.2rem;
  border-radius: 16px;
  border: 1px solid rgba(224, 180, 90, 0.28);
  background:
    linear-gradient(180deg, rgba(224, 180, 90, 0.06), transparent 45%),
    #0c0a0f;
}
.referral-checker h3 {
  margin: 0 0 0.35rem;
  font-family: var(--display);
  font-size: 1.05rem;
  color: var(--gold-hot, #f0c978);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.referral-checker > .tiny { margin: 0 0 0.85rem; }
.referral-check-row {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}
.referral-check-row input {
  flex: 1 1 200px;
  min-width: 0;
  border: 1px solid var(--line, rgba(255, 200, 120, 0.12));
  background: #08070a;
  color: var(--text);
  border-radius: 12px;
  padding: 0.8rem 0.95rem;
  font: inherit;
}
.referral-check-results[hidden] { display: none !important; }
.referral-stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.25rem 0 0.85rem;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(224, 180, 90, 0.22);
  background: rgba(224, 180, 90, 0.06);
}
.referral-stat label {
  color: var(--muted);
  font-size: 0.82rem;
}
.referral-stat strong {
  font-family: var(--display);
  font-size: 1.55rem;
  color: var(--gold-hot, #f0c978);
}
@media (max-width: 640px) {
  .referral-check-row { flex-direction: column; }
  .referral-check-row .btn { width: 100%; }
  .referral-checker { padding: 0.95rem; }
}


/* —— Pixel theme extras (20260920b) —— */
h1, h2, h3, .eyebrow {
  font-family: var(--display);
  letter-spacing: 0.02em;
}
h1 { font-size: clamp(1.2rem, 4.5vw, 2.1rem); line-height: 1.35; text-shadow: 3px 3px 0 #000; }
h2 { font-size: clamp(0.85rem, 3vw, 1.15rem); line-height: 1.4; text-shadow: 2px 2px 0 #000; }
h3 { font-size: clamp(0.65rem, 2.2vw, 0.85rem); line-height: 1.4; }
.eyebrow {
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}
.lede, .muted, .sub, p, .how-to, .tiny, .note {
  font-family: var(--body);
  font-size: 0.92rem;
}
.tiny { font-size: 0.78rem; }

.panel, .card, .stat-cell, .forge-wrap, .receipt-card, .referral-panel,
.referral-checker, .run-card-panel, .roadmap li, .collection-card {
  border-radius: 0 !important;
  border: 2px solid rgba(224, 180, 90, 0.35);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.55);
  backdrop-filter: none !important;
}

.stat-cell {
  background: #0c0a0f;
  padding: 0.85rem 0.7rem;
}
.stat-cell strong {
  font-family: var(--display);
  font-size: 0.72rem;
  color: var(--gold-hot);
}

/* Collection + brand art — crisp pixels */
img, .collection img, .smith-tile img, .gallery img,
.collection-grid img, .card img {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

input, textarea, select {
  border-radius: 0 !important;
  border: 2px solid rgba(224, 180, 90, 0.4) !important;
  background: #0c0a0f !important;
  font-family: var(--mono) !important;
  color: var(--text) !important;
  box-shadow: inset 2px 2px 0 #000;
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--gold) !important;
}

.progress-strip .step .dot,
.progress-strip .dot {
  border-radius: 0 !important;
  font-family: var(--display);
  font-size: 0.45rem;
  box-shadow: 2px 2px 0 #000;
}

.referral-panel {
  margin-top: 1rem;
  padding: 1rem;
  background: #121016;
}
.referral-panel .smith-label {
  font-family: var(--display);
  font-size: 0.55rem;
  color: var(--gold);
  margin-bottom: 0.55rem;
  display: block;
}
.referral-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.65rem;
}
.invite-cta-title {
  font-family: var(--display);
  font-size: 0.58rem;
  color: var(--gold-hot);
  margin: 0 0 0.45rem;
  text-shadow: 2px 2px 0 #000;
}

/* Stronger mobile spacing for chunky UI */
@media (max-width: 720px) {
  .nav { padding: 0.7rem 0.85rem; }
  .splash { padding: 2.25rem 1rem 3rem; min-height: min(82vh, 640px); }
  .splash-lede, .lede { font-size: 0.88rem; }
  .hero-cta { gap: 0.65rem; }
  .btn { padding: 0.85rem 1rem; min-height: 44px; }
  .section { padding: 2.5rem 1rem; }
  .panel, .forge-wrap { padding: 1rem !important; }
  .smith-row { flex-direction: column; align-items: stretch; gap: 0.55rem; }
  .smith-row .btn { width: 100%; }
  .referral-actions .btn { flex: 1 1 auto; }
  .hud { gap: 0.45rem; }
  .progress-strip { gap: 0.35rem; margin-bottom: 0.85rem; }
  .footer { padding: 2rem 1rem; gap: 1rem; }
}

/* Kill leftover soft pills / glass */
.btn, .nav-cta, .phase, .tier-badge, .receipt-badge, .receipt-pill {
  border-radius: 0 !important;
}
