/* ==========================================================================
   THE NULLBORN — components.css
   Section + component styles. Tokens, buttons, glass, reveal primitives and
   shared keyframes all live in base.css — nothing here redefines them.
   ========================================================================== */

/* --- Stacking: keep real content above the fixed grain/vignette layers --- */
main,
.footer { position: relative; z-index: 2; }

/* Reveal offsets (e.g. data-reveal="right") translate elements sideways before
   they animate in, which can push past the viewport edge. Clip rather than
   scroll — `clip` does not create a scroll container, so smooth scrolling and
   any future sticky positioning keep working. */
main { overflow-x: clip; }

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 clamp(20px, 4vw, 48px);
  border-bottom: 1px solid transparent;
  transition:
    background var(--dur-med) var(--ease-out),
    border-color var(--dur-med) var(--ease-out),
    backdrop-filter var(--dur-med) var(--ease-out);
}

.navbar.scrolled {
  background: rgba(3, 3, 4, 0.6);
  border-bottom-color: var(--line);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
}

.navbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
}

.navbar__brand-mark {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--grad-accent);
  box-shadow: 0 0 14px var(--accent-soft);
  animation: pulseGlow 2.6s ease-in-out infinite;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 40px);
}

.navbar__links a {
  position: relative;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 6px 0;
  transition: color var(--dur-fast) var(--ease-out);
}

.navbar__links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent-2);
  box-shadow: 0 0 8px var(--accent-2-soft);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur-med) var(--ease-out);
}

.navbar__links a:hover { color: var(--text-primary); }
.navbar__links a:hover::after { transform: scaleX(1); transform-origin: left; }

.navbar__burger {
  display: none;
  position: relative;
  width: 44px;   /* minimum comfortable touch target */
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
}

.navbar__burger span {
  position: absolute;
  left: 13px;
  width: 18px;
  height: 1px;
  background: var(--text-primary);
  transition: transform var(--dur-med) var(--ease-out), opacity var(--dur-fast) linear;
}
.navbar__burger span:nth-child(1) { top: 17px; }
.navbar__burger span:nth-child(2) { top: 22px; }
.navbar__burger span:nth-child(3) { top: 27px; }

.navbar__burger[aria-expanded='true'] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.navbar__burger[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.navbar__burger[aria-expanded='true'] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  padding: calc(var(--nav-h) + 90px) clamp(22px, 5vw, 64px) 120px;
  max-width: var(--container-max);
  margin: 0 auto;
  overflow: hidden;
}

/* Baseline rule the hero content sits on — an editorial anchor rather than
   a floating centred block. */
.hero::after {
  content: '';
  position: absolute;
  left: clamp(22px, 5vw, 64px);
  right: clamp(22px, 5vw, 64px);
  bottom: 92px;
  height: 1px;
  background: var(--line);
  z-index: 1;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero__bg canvas { width: 100%; height: 100%; }

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--grad-radial-hero);
  animation: pulseGlow 9s ease-in-out infinite;
}

/* Perspective grid floor, masked out toward the edges */
.hero__grid-lines {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(ellipse 74% 66% at 50% 45%, #000 10%, transparent 74%);
  -webkit-mask-image: radial-gradient(ellipse 74% 66% at 50% 45%, #000 10%, transparent 74%);
}

/* Slow orbit ring behind the title */
.hero__ring {
  position: absolute;
  top: 46%;
  left: 78%;
  width: min(680px, 82vw);
  aspect-ratio: 1;
  margin: calc(min(680px, 82vw) / -2) 0 0 calc(min(680px, 82vw) / -2);
  z-index: 0;
  pointer-events: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  opacity: 0.5;
}
.hero__ring::before,
.hero__ring::after {
  content: '';
  position: absolute;
  border-radius: 50%;
}
.hero__ring::before {
  inset: 14%;
  border: 1px solid var(--accent-soft);
  animation: spinSlow 34s linear infinite;
}
.hero__ring::after {
  inset: 30%;
  border: 1px dashed var(--accent-2-soft);
  animation: spinSlow 46s linear infinite reverse;
}

.hero__chain-tag {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  margin-bottom: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.hero__chain-tag .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 10px var(--accent-2);
  animation: pulseGlow 2.2s ease-in-out infinite;
}

.hero__title {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.6rem, 13.5vw, 12rem);
  line-height: 0.86;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  margin-bottom: 34px;
  max-width: 100%;
}

.hero__title .glow-letter {
  display: block;
  color: var(--text-primary);
}
/* Only the second line flickers — a single point of instability reads as a
   signal fault; flickering everything reads as a broken page. */
.hero__title .glow-letter:last-child {
  animation: flicker 11s steps(1) infinite;
}

.hero__subtitle {
  position: relative;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: clamp(0.85rem, 1.5vw, 1.02rem);
  letter-spacing: 0.26em;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 54px;
  padding-left: 2px;
}
.hero__subtitle strong {
  color: var(--text-primary);
  font-weight: 600;
}

.hero__ctas {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-start;
}

.hero__scroll-cue {
  position: absolute;
  left: clamp(22px, 5vw, 64px);
  bottom: 30px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.hero__scroll-cue .line {
  width: 1px;
  height: 46px;
  background: linear-gradient(180deg, var(--accent), transparent);
  transform-origin: top;
  animation: scrollCue 2.4s var(--ease-soft) infinite;
}
@keyframes scrollCue {
  0%   { transform: scaleY(0); opacity: 0; }
  40%  { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1) translateY(46px); opacity: 0; }
}

/* ==========================================================================
   COLLECTION STATS
   ========================================================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: clamp(56px, 7vw, 88px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat-card {
  position: relative;
  overflow: hidden;
  padding: clamp(30px, 3.4vw, 46px) clamp(20px, 2.6vw, 34px);
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;

  /* the row is the object; cards are divisions within it */
  background: transparent;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: background var(--dur-med) var(--ease-out);
}
.stat-card:first-child { border-left: 0; }

/* mouse-follow sheen (--mx/--my written by gallery.js) */
.stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.08), transparent 62%);
  transition: opacity var(--dur-med) var(--ease-out);
}

/* drifting gradient wash */
.stat-card::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(130deg, rgba(255, 255, 255, 0.06), transparent 46%, rgba(255, 255, 255, 0.09));
  background-size: 220% 220%;
  animation: gradientShift 9s ease infinite;
  transition: opacity var(--dur-med) var(--ease-out);
}

.stat-card:hover { background: rgba(255, 255, 255, 0.022); }
.stat-card:hover::before,
.stat-card:hover::after { opacity: 1; }

.stat-card__label {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.stat-card__value {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.9rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  transition: opacity var(--dur-med) var(--ease-out);
}
.stat-card:hover .stat-card__value { opacity: 1; }

.stat-card__foot {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.6;
  color: var(--text-tertiary);
}

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about__layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}

.about__lead {
  margin-top: 32px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.3rem, 2.8vw, 2.05rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.about__body {
  margin-top: 22px;
  max-width: 56ch;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.75;
}
.about__body em { color: var(--text-tertiary); font-style: italic; }

/* The closing line of the lore — carries the collection's whole thesis, so it
   gets the accent treatment rather than sitting flat in the paragraph. */
.about__body em.about__accent,
.about__accent {
  font-style: normal;
  background: var(--grad-accent);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 8s ease infinite;
  font-weight: 500;
}

.about__meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
}
.about__meta-list li {
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition:
    border-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
}
.about__meta-list li:hover {
  border-color: var(--accent-2-soft);
  color: var(--text-primary);
  transform: translateY(-3px);
}

/* --- floating specimen visual --- */
.about__visual {
  position: relative;
  aspect-ratio: 4 / 4.6;
  will-change: transform;
}

.about__visual-inner {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255, 255, 255, 0.08), transparent 62%),
    rgba(13, 13, 18, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
}
.about__visual-inner svg {
  color: var(--line-strong);
  width: 100%;
  height: 100%;
  animation: floatSlow 12s ease-in-out infinite;
}
.about__visual-core {
  position: absolute;
  width: 42%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 66%);
  filter: blur(18px);
  animation: pulseGlow 5s ease-in-out infinite;
}

.scanline {
  position: absolute;
  left: 0;
  right: 0;
  top: -30%;
  height: 30%;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.09), transparent);
  animation: scanSweep 6s var(--ease-soft) infinite;
}
@keyframes scanSweep { to { top: 100%; } }

.about__float-tag {
  position: absolute;
  padding: 9px 15px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
  white-space: nowrap;
}
.about__float-tag--1 { top: 8%;  left: -18px;  animation: floatY 7s ease-in-out infinite; }
.about__float-tag--2 { top: 46%; right: -18px; animation: floatY 9s ease-in-out infinite 0.6s; }
.about__float-tag--3 { bottom: 9%; left: 4%;  animation: floatY 8s ease-in-out infinite 1.2s; }

/* ==========================================================================
   NFT GALLERY
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: clamp(44px, 6vw, 70px);
}

.nft-card {
  position: relative;
  padding: 14px;
  overflow: hidden;
  transform: perspective(800px);
  transform-style: preserve-3d;
  transition:
    border-color var(--dur-med) var(--ease-out),
    box-shadow var(--dur-med) var(--ease-out),
    transform 0.25s var(--ease-out);
}
.nft-card:hover {
  border-color: var(--accent-soft);
  box-shadow: 0 34px 70px -34px var(--accent-soft);
}

.nft-card__badge {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 3;
  padding: 5px 11px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: rgba(3, 3, 4, 0.6);
  backdrop-filter: blur(8px);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.nft-card__frame {
  position: relative;
  aspect-ratio: 1;
  background:
    radial-gradient(110% 100% at 30% 15%, rgba(255, 255, 255, 0.07), transparent 62%),
    linear-gradient(170deg, #101012, #060607);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: grid;
  place-items: center;
}

/* Real artwork drops in here later — see index.html note. */
.nft-card__art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out), filter var(--dur-slow) var(--ease-out);
}
.nft-card:hover .nft-card__art { transform: scale(1.08); filter: saturate(1.15) contrast(1.05); }

.nft-card__glyph {
  color: var(--text-tertiary);
  position: relative;
  z-index: 2;
  width: 46%;
  transition: color var(--dur-med) var(--ease-out), transform var(--dur-slow) var(--ease-out);
  transition: transform var(--dur-slow) var(--ease-out);
}
.nft-card__glyph svg { width: 100%; height: 100%; }
.nft-card:hover .nft-card__glyph { transform: scale(1.1) rotate(4deg); color: var(--text-primary); }

.nft-card__mouse-glow {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.14), transparent 60%);
  transition: opacity var(--dur-med) var(--ease-out);
}
.nft-card:hover .nft-card__mouse-glow { opacity: 1; }

.nft-card__noise {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.4;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}

.nft-card__scan {
  position: absolute;
  left: 0;
  right: 0;
  top: -40%;
  height: 40%;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.10), transparent);
  transition: opacity var(--dur-fast) linear;
}
.nft-card:hover .nft-card__scan { opacity: 1; animation: scanSweep 2.4s var(--ease-soft) infinite; }

.nft-card__label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 6px 4px;
}
.nft-card__id {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.14em;
}
.nft-card__status {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.gallery-foot {
  display: flex;
  justify-content: center;
  margin-top: 44px;
}

/* ==========================================================================
   GAME — "PROVE YOURSELF"
   Core identity preserved: black field, white glowing orbs, mono type.
   ========================================================================== */
.game-frame {
  position: relative;
  max-width: 860px;
  margin: clamp(40px, 6vw, 64px) auto 0;
  padding: 1px;
  border-radius: var(--radius-lg);
  background: linear-gradient(130deg, var(--accent-soft), transparent 32%, transparent 68%, var(--accent-2-soft));
  background-size: 300% 300%;
  animation: gradientShift 10s ease infinite;
}

.game-frame__inner {
  position: relative;
  border-radius: calc(var(--radius-lg) - 1px);
  background: rgba(6, 6, 9, 0.86);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  padding: clamp(30px, 5vw, 60px) clamp(20px, 4vw, 48px);
  min-height: 480px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.game-frame__corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1px solid var(--accent-2-soft);
  pointer-events: none;
}
.game-frame__corner--tl { top: 14px; left: 14px;  border-right: 0; border-bottom: 0; }
.game-frame__corner--tr { top: 14px; right: 14px; border-left: 0;  border-bottom: 0; }
.game-frame__corner--bl { bottom: 14px; left: 14px;  border-right: 0; border-top: 0; }
.game-frame__corner--br { bottom: 14px; right: 14px; border-left: 0;  border-top: 0; }

/* --- entry portal --- */
.game-portal { width: 100%; max-width: 420px; text-align: center; }
.game-portal h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.game-portal p {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.game-input-group { display: grid; gap: 14px; justify-items: center; }

.game-input {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-align: center;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.game-input::placeholder { color: var(--text-tertiary); }
.game-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.10), 0 0 26px -8px var(--accent);
}

.game-error {
  display: none;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--danger);
  margin-top: 4px;
}

/* --- live game --- */
.game-live { display: none; width: 100%; text-align: center; }
.game-live.active { display: block; animation: fadeUp 0.6s var(--ease-out); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

.game-progress {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}
.game-progress__segment {
  width: 34px;
  height: 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 2px;
  background: transparent;
  transition: all var(--dur-fast) var(--ease-out);
}
.game-progress__segment.pass {
  border-color: #fff;
  background: #fff;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.85);
}
.game-progress__segment.fail {
  border-color: var(--danger);
  background: rgba(255, 59, 92, 0.25);
  box-shadow: 0 0 14px rgba(255, 59, 92, 0.5);
}

.game-round-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 26px;
}

.orb-grid {
  display: grid;
  gap: 16px;
  justify-content: center;
  margin: 0 auto 28px;
}

.orb {
  border: 2px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.015);
  cursor: pointer;
  transition: transform 0.1s ease, background 0.1s ease, box-shadow 0.1s ease, border-color 0.1s ease;
}
.orb:hover { border-color: rgba(255, 255, 255, 0.4); transform: scale(1.03); }
.orb.active {
  border-color: #fff;
  background: #fff;
  box-shadow: 0 0 28px rgba(255, 255, 255, 0.9), 0 0 60px rgba(255, 255, 255, 0.16);
  transform: scale(1.04);
}
.orb.error {
  border-color: var(--danger);
  background: rgba(255, 59, 92, 0.16);
  box-shadow: 0 0 26px rgba(255, 59, 92, 0.5);
}

.game-status {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
  min-height: 22px;
}
.game-status--danger { color: var(--danger); animation: flicker 0.6s steps(1) 2; }

/* --- completion state --- */
.game-complete {
  display: none;
  text-align: center;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.game-complete.active { display: flex; animation: fadeUp 0.8s var(--ease-out); }

.game-complete__ring {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--accent-2-soft);
  background: rgba(201, 212, 240, 0.05);
  box-shadow: 0 0 50px -10px var(--accent-2-soft);
  margin-bottom: 18px;
  animation: pulseGlow 2.4s ease-in-out infinite;
}
.game-complete__ring { color: var(--accent-2); }
.game-complete__ring svg { width: 34px; height: 34px; }

.game-complete__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.game-complete__sub {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent-2);
}

/* ==========================================================================
   TASKS — "SECURE YOUR SPOT"
   ========================================================================== */

.qualify-progress {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin: 36px 0 22px;
}
.qualify-progress__track {
  flex: 1 1 220px;
  height: 2px;
  border-radius: 2px;
  background: var(--line);
  overflow: hidden;
}
.qualify-progress__fill {
  width: 0;
  height: 100%;
  background: var(--grad-accent);
  box-shadow: 0 0 18px var(--accent-soft);
  transition: width var(--dur-slow) var(--ease-out);
}
.qualify-progress__count {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-secondary);
  white-space: nowrap;
}

.task-list { display: grid; gap: 8px; }

.task-item {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: clamp(14px, 2.4vw, 26px);
  padding: clamp(18px, 2.4vw, 26px) clamp(16px, 2.6vw, 26px);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition:
    background var(--dur-med) var(--ease-out),
    border-color var(--dur-med) var(--ease-out),
    opacity var(--dur-med) var(--ease-out),
    transform var(--dur-med) var(--ease-out);
}
.task-item:hover { background: rgba(255, 255, 255, 0.025); border-color: var(--line); }

.task-item[data-status='locked'] { opacity: 0.45; }
.task-item[data-status='locked'] .task-item__action,
.task-item[data-status='locked'] .task-item__verify { pointer-events: none; opacity: 0.4; }
.task-item[data-status='locked'] .task-item__verify-note { display: none; }

.task-item[data-status='in-progress'] { border-color: var(--line); }
.task-item[data-status='completed'] {
  border-color: rgba(201, 212, 240, 0.26);
  background: rgba(201, 212, 240, 0.03);
}
.task-item[data-status='completed'] .task-item__action,
.task-item[data-status='completed'] .task-item__verify { display: none; }
.task-item[data-status='completed'] .task-item__verify-note { display: none; }

.task-item__index {
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--text-tertiary);
  white-space: nowrap;
}

.task-item__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1rem, 2vw, 1.2rem);
  letter-spacing: 0.01em;
  margin-bottom: 6px;
}
.task-item__desc {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.task-item__verify-note {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.6;
  color: #d9c08a;
  opacity: 0.85;
  max-width: 52ch;
}

.task-item__status {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--text-tertiary);
  white-space: nowrap;
}
.task-item[data-status='in-progress'] .task-item__status {
  color: var(--accent-2);
  border-color: var(--accent-2-soft);
  animation: pulseGlow 1.8s ease-in-out infinite;
}
.task-item[data-status='completed'] .task-item__status {
  color: var(--accent-2);
  border-color: rgba(201, 212, 240, 0.42);
  background: rgba(201, 212, 240, 0.07);
  animation: none;
}

.task-item__actions { display: flex; align-items: center; gap: 10px; }

.task-item__check {
  width: 30px;
  height: 30px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 22px -4px var(--accent-2);
  transform: scale(0);
  transition: transform var(--dur-med) var(--ease-out);
}
.task-item__check { color: var(--void-black); }
.task-item__check svg { width: 16px; height: 16px; }
.task-item__check path {
  stroke-dasharray: 26;
  stroke-dashoffset: 26;
  transition: stroke-dashoffset 0.5s var(--ease-out) 0.15s;
}
.task-item[data-status='completed'] .task-item__check { transform: scale(1); }
.task-item[data-status='completed'] .task-item__check path { stroke-dashoffset: 0; }

.tasks-complete-banner {
  display: none;
  margin-top: 30px;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.2rem, 3vw, 1.9rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-2);
  text-shadow: 0 0 34px var(--accent-2-soft);
}
.tasks-complete-banner.active { display: block; animation: fadeUp 0.7s var(--ease-out); }

/* ==========================================================================
   TICKET
   ========================================================================== */
.ticket-section .section-inner { text-align: center; }

.ticket-locked {
  margin: 28px auto 0;
  max-width: 46ch;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
}

.ticket-stage {
  display: none;
  position: relative;
  perspective: 1600px;
  margin: clamp(40px, 6vw, 64px) auto 0;
  max-width: 640px;
}
.ticket-stage.active { display: block; }

.ticket-stage::after {
  content: '';
  position: absolute;
  inset: -14% -10%;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.14), transparent 66%);
  opacity: 0;
  transition: opacity 1.2s var(--ease-out);
}
.ticket-stage.reveal::after { opacity: 1; }

.ticket-burst {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.ticket-card {
  position: relative;
  z-index: 2;
  transform: rotateY(90deg) scale(0.88);
  opacity: 0;
  transform-style: preserve-3d;
  transition: transform 1.25s var(--ease-out), opacity 0.9s var(--ease-out);
}
.ticket-stage.reveal .ticket-card { transform: rotateY(0) scale(1); opacity: 1; }

.ticket-card__inner {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 3.4vw, 38px);
  border: 1px solid var(--accent-soft);
  border-radius: var(--radius-lg);
  text-align: left;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02) 42%, rgba(201, 212, 240, 0.08)),
    rgba(8, 8, 11, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 40px 90px -40px var(--accent-soft);
}

.ticket-card__scanline {
  position: absolute;
  left: 0;
  right: 0;
  top: -40%;
  height: 40%;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: scanSweep 4.5s var(--ease-soft) infinite;
}

.ticket-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.ticket-card__brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.1rem, 2.6vw, 1.5rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.ticket-card__chain {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  padding: 6px 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  color: var(--text-secondary);
}

.ticket-card__status {
  margin-top: 18px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 5vw, 3rem);
  letter-spacing: 0.1em;
  color: var(--accent-2);
  text-shadow: 0 0 40px var(--accent-2-soft);
}

.ticket-card__divider {
  height: 1px;
  margin: 22px 0;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 12px);
}

.ticket-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(20px, 4vw, 40px);
}
.ticket-card__meta { display: grid; gap: 18px; }
.ticket-card__label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 6px;
}
.ticket-card__value {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  letter-spacing: 0.12em;
  color: var(--text-primary);
  word-break: break-all;
}
#ticket-id { color: var(--accent-2); text-shadow: 0 0 22px var(--accent-2-soft); }

/* QR-style placeholder: 5x5 grid built by ticket.js */
.ticket-card__qr {
  flex: none;
  width: clamp(96px, 24vw, 124px);
  aspect-ratio: 1;
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 1.5px;
  padding: 9px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
}
.ticket-card__qr i { border-radius: 1px; background: transparent; }
.ticket-card__qr i.on { background: var(--text-primary); }
/* Corner finders sit brighter so the block reads as a code, not noise. */
.ticket-card__qr i.finder { background: var(--text-primary); box-shadow: 0 0 5px rgba(255, 255, 255, 0.4); }

.ticket-card__serial {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

/* Reassurance strip under the pass: the qualification is stored, and checking
   it is a later step. Deliberately states what is and is not true yet. */
.ticket-status {
  display: none;
  max-width: 560px;
  margin: 44px auto 0;
  padding: 24px 28px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.02);
}
.ticket-stage.active ~ .ticket-status { display: block; }

.ticket-status__head {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 12px;
}
.ticket-status__body {
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.85;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

.ticket-actions { display: none; justify-content: center; margin-top: 40px; }
.ticket-stage.active ~ .ticket-actions { display: flex; }

/* ==========================================================================
   SHARE
   ========================================================================== */
.share-panel {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(34px, 5vw, 60px) clamp(24px, 4vw, 50px);
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 18px;
}
.share-panel__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 4.4vw, 2.8rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.share-panel__sub {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.share-panel__cta { margin-top: 10px; }

/* ==========================================================================
   FINAL CTA
   ========================================================================== */
.final-cta {
  position: relative;
  padding: clamp(110px, 18vh, 200px) 0;
  text-align: center;
  overflow: hidden;
  border-top: 1px solid var(--line);
}
.final-cta__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 60% at 50% 50%, rgba(255, 255, 255, 0.07), transparent 68%),
    radial-gradient(80% 40% at 50% 100%, rgba(201, 212, 240, 0.06), transparent 70%);
  animation: pulseGlow 10s ease-in-out infinite;
}
.final-cta .container { position: relative; z-index: 2; }

.final-cta__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.4rem, 10vw, 8.6rem);
  line-height: 0.88;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  margin-bottom: 44px;
}
.final-cta__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  border-top: 1px solid var(--line);
  padding: 46px 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer__brand {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.footer__links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer__links a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color var(--dur-fast) var(--ease-out);
}
.footer__links a:hover { color: var(--accent-2); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* Tablet: 2-column NFT grid, 2-column stats */
@media (max-width: 1000px) {
  .stats-grid  { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 880px) {
  .about__layout { grid-template-columns: 1fr; }
  .about__visual {
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
    transform: none !important; /* disable parallax offset in stacked layout */
  }
  .about__float-tag--1 { left: 0; }
  .about__float-tag--2 { right: 0; }
}

/* Compact navigation */
@media (max-width: 900px) {
  .navbar__burger { display: block; }
  .navbar__cta { display: none; }

  .navbar__links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px clamp(20px, 5vw, 40px) 26px;
    background: rgba(3, 3, 4, 0.96);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border-bottom: 1px solid var(--line);
    clip-path: inset(0 0 100% 0);
    transition: clip-path var(--dur-med) var(--ease-out);
  }
  .navbar__links.open { clip-path: inset(0 0 0 0); }
  .navbar__links a {
    padding: 18px 0;
    font-size: 13px;
    border-bottom: 1px solid var(--line);
  }
  .navbar__links a::after { display: none; }
}

/* Mobile: single-column cards, touch-friendly controls */
@media (max-width: 640px) {
  .stats-grid,
  .gallery-grid { grid-template-columns: 1fr; }

  .stat-card { min-height: 168px; }

  .hero { padding-top: calc(var(--nav-h) + 48px); }
  .hero__scroll-cue { display: none; }
  .hero__ring { opacity: 0.3; }

  .task-item {
    grid-template-columns: 1fr auto;
    row-gap: 14px;
  }
  .task-item__body { grid-column: 1 / -1; order: 2; }
  .task-item__index { order: 1; }
  .task-item__status { order: 1; justify-self: end; }
  .task-item__actions { grid-column: 1 / -1; order: 3; justify-content: flex-start; flex-wrap: wrap; }

  .task-item__action,
  .task-item__verify { min-height: 44px; }

  .ticket-card__row { flex-direction: column; align-items: flex-start; gap: 24px; }
  .ticket-card__qr { align-self: center; }

  .game-frame__inner { min-height: 420px; padding: 28px 16px; }
  .game-progress { gap: 6px; }
  .game-progress__segment { width: 26px; }

  .btn { padding: 15px 26px; min-height: 46px; }

  .footer__inner { flex-direction: column; align-items: flex-start; gap: 18px; }
}

/* Reduce ambient motion cost on small screens */
@media (max-width: 640px), (prefers-reduced-motion: reduce) {
  .about__visual-inner svg,
  .about__float-tag--1,
  .about__float-tag--2,
  .about__float-tag--3 { animation: none; }
  .scanline { display: none; }
}

/* ==========================================================================
   SHARE — step 2 (paste link) and step 3 (stored confirmation)
   Both are hidden until earned: the link form appears after the post is
   opened, the confirmation only after the link is actually stored.
   ========================================================================== */
.share-link,
.share-stored {
  display: none;
  width: min(520px, 100%);
  margin-top: 30px;
  text-align: left;
}
.share-link.active,
.share-stored.active { display: block; animation: fadeUp 0.6s var(--ease-out); }

.share-link__label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 12px;
}

.share-link__row { display: flex; gap: 10px; align-items: stretch; }

.share-link__input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 15px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.share-link__input::placeholder { color: var(--text-tertiary); }
.share-link__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.07);
}

.share-link__msg {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.7;
  color: var(--text-secondary);
  min-height: 16px;
}
.share-link__msg[data-kind='warn'] { color: #d9c08a; }

.share-stored {
  padding: 24px 26px;
  border: 1px solid rgba(201, 212, 240, 0.26);
  border-radius: var(--radius-lg);
  background: rgba(201, 212, 240, 0.04);
  text-align: center;
}
.share-stored__head {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 12px;
}
.share-stored__body {
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.85;
  color: var(--text-secondary);
}
.share-stored__link {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  word-break: break-all;
  transition: border-color var(--dur-fast) var(--ease-out);
}
.share-stored__link:hover { border-color: var(--accent); }

/* Missions restored from a previous visit — read-only, not re-runnable. */
.tasks-restored .task-item__action,
.tasks-restored .task-item__verify { display: none; }

@media (max-width: 560px) {
  .share-link__row { flex-direction: column; }
  .share-link__row .btn { width: 100%; }
}

/* NFT video cards — fill the square frame exactly like a still would. */
.nft-card__video {
  object-fit: cover;
  background: var(--void-black);
}

/* Real artwork is present, so the placeholder badge has nothing to say. */
.nft-card:has(.nft-card__art) .nft-card__badge { display: none; }

/* How-to-attach hint, shown after the composer is opened. */
.share-attach-hint {
  display: none;
  width: min(520px, 100%);
  margin-top: 20px;
  padding: 13px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.7;
  text-align: center;
  color: var(--text-secondary);
}
.share-attach-hint.active { display: block; animation: fadeUp 0.5s var(--ease-out); }
.share-attach-hint[data-kind='ok']   { border-color: rgba(201, 212, 240, 0.3); color: var(--accent-2); }
.share-attach-hint[data-kind='warn'] { border-color: rgba(217, 192, 138, 0.38); color: #d9c08a; }
