:root {
  --ink: #bc00fe;
  --ink-dim: #8a00bf;
  --ink-glow: rgba(188, 0, 254, 0.45);
  --bg: #07000c;
  --bg2: #120018;
  --panel: rgba(18, 0, 28, 0.72);
  --border: rgba(188, 0, 254, 0.25);
  --text: #f4ecff;
  --muted: #a68fc0;
  --common: #9aa0ab;
  --uncommon: #5bdc7a;
  --rare: #4db8ff;
  --epic: #ff7bff;
  --legendary: #ffd34d;
  --font: "Space Grotesk", system-ui, sans-serif;
  --pixel: "Press Start 2P", monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 20% 20%, rgba(188, 0, 254, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(255, 123, 255, 0.08), transparent 50%),
    radial-gradient(ellipse 100% 100% at 50% 100%, rgba(188, 0, 254, 0.06), transparent 40%);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

.ink-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}

.ink-orb-a {
  width: 420px;
  height: 420px;
  background: var(--ink);
  top: -8%;
  right: -5%;
  animation: orb-drift 14s ease-in-out infinite;
}

.ink-orb-b {
  width: 320px;
  height: 320px;
  background: #ff7bff;
  bottom: 10%;
  left: -8%;
  animation: orb-drift 18s ease-in-out infinite reverse;
}

@keyframes orb-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, 25px) scale(1.08); }
}

#bgCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.scanlines {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.08) 2px,
    rgba(0, 0, 0, 0.08) 4px
  );
  opacity: 0.35;
}

.header, main, .footer { position: relative; z-index: 2; }

/* HEADER */
.header {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 2rem;
  backdrop-filter: blur(16px);
  background: rgba(7, 0, 12, 0.75);
  border-bottom: 1px solid var(--border);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
}

.logo-mark {
  width: 2.2rem;
  height: 2.2rem;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #000;
  font-family: var(--pixel);
  font-size: 0.75rem;
  box-shadow: 0 0 24px var(--ink-glow);
}

.logo-text {
  font-family: var(--pixel);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
}

.nav {
  display: flex;
  gap: 1.5rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav a:hover { color: var(--ink); }

.header-stats {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pill-xp {
  border-color: rgba(255, 211, 77, 0.45);
  background: rgba(255, 211, 77, 0.12);
  color: var(--legendary);
}

.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 10000;
  background: var(--bg2);
  border: 1px solid var(--ink);
  color: var(--text);
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-size: 0.85rem;
  box-shadow: 0 0 30px var(--ink-glow);
  transition: transform 0.25s ease;
  pointer-events: none;
}

.toast.show { transform: translateX(-50%) translateY(0); }

.streak-bar-wrap { margin-bottom: 1rem; }

.streak-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.streak-bar {
  height: 8px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.streak-bar-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--ink), var(--legendary));
  box-shadow: 0 0 12px var(--ink-glow);
  transition: width 0.4s ease;
}

.streak-milestones {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.streak-milestones span {
  font-size: 0.65rem;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  border: 1px dashed var(--border);
  color: var(--muted);
}

.streak-milestones span.done {
  border-style: solid;
  border-color: var(--ink);
  color: var(--ink);
  background: rgba(188, 0, 254, 0.12);
}

.hint-bonus { color: var(--legendary) !important; }

.hunt-timer {
  font-family: var(--pixel);
  font-size: 0.55rem;
  color: var(--ink);
  margin-bottom: 0.75rem;
  letter-spacing: 0.06em;
}

.vault-progress {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  background: rgba(188, 0, 254, 0.08);
  border: 1px solid var(--border);
  font-size: 0.8rem;
}

.vault-progress strong { color: var(--legendary); }

.gallery-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.stat-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.65rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--panel);
  min-width: 90px;
}

.stat-chip strong { font-size: 1.1rem; }
.stat-chip span { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.06em; }

.gallery-subtitle {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 1rem;
}

.gallery-featured { margin-bottom: 2rem; }

.gallery-featured-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
}

.featured-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.featured-card:hover {
  transform: translateY(-4px);
  border-color: var(--ink);
  box-shadow: 0 0 25px var(--ink-glow);
}

.featured-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  image-rendering: pixelated;
  display: block;
}

.featured-meta {
  padding: 0.6rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.featured-meta strong { font-size: 0.75rem; }

.gallery-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.chip {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.chip:hover, .chip.active {
  border-color: var(--ink);
  color: var(--text);
  background: rgba(188, 0, 254, 0.15);
}

.nft-card.viewed { opacity: 0.92; }
.nft-card.viewed::after {
  content: "✓";
  position: absolute;
  bottom: 0.5rem;
  left: 0.5rem;
  font-size: 0.65rem;
  color: var(--uncommon);
  background: rgba(0, 0, 0, 0.55);
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
}

.gallery-error {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  padding: 2rem;
}

#loadAllBtn { font-size: 0.8rem; }

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--ink);
  color: #000;
  box-shadow: 0 0 30px var(--ink-glow);
}

.btn-primary:hover { box-shadow: 0 0 45px var(--ink-glow); }

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.8rem; }
.btn-block { width: 100%; }

/* HERO */
.hero {
  padding: 4rem 2rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  font-family: var(--pixel);
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  color: var(--ink);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.05;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.hero h1 .ink {
  color: var(--ink);
  text-shadow: 0 0 40px var(--ink-glow);
}

.lead {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 34rem;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-metrics {
  display: flex;
  gap: 2.5rem;
}

.hero-metrics div {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.hero-metrics strong {
  font-size: 1.4rem;
  color: var(--ink);
}

.hero-metrics span {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-stage {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
}

.hero-shimmer {
  position: absolute;
  inset: 8%;
  border-radius: 1rem;
  background: linear-gradient(
    115deg,
    transparent 35%,
    rgba(255, 255, 255, 0.12) 50%,
    transparent 65%
  );
  background-size: 200% 100%;
  animation: shimmer 3.5s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.hero-ring {
  position: absolute;
  inset: 5%;
  border: 2px solid var(--ink);
  border-radius: 1rem;
  animation: pulse-ring 3s ease-in-out infinite;
  opacity: 0.5;
}

.hero-ring.ring-2 {
  inset: 12%;
  animation-delay: 1.5s;
}

@keyframes pulse-ring {
  0%, 100% { transform: scale(1); opacity: 0.35; }
  50% { transform: scale(1.04); opacity: 0.7; }
}

#heroNft {
  width: min(100%, 380px);
  height: auto;
  image-rendering: pixelated;
  border-radius: 0.75rem;
  border: 3px solid var(--ink);
  box-shadow:
    0 0 60px var(--ink-glow),
    0 0 120px rgba(188, 0, 254, 0.25),
    0 20px 60px rgba(0, 0, 0, 0.5);
  animation: float 4s ease-in-out infinite;
  position: relative;
  z-index: 1;
  background: #BC00FE;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero-badge {
  position: absolute;
  bottom: 8%;
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  backdrop-filter: blur(8px);
}

.marquee {
  margin-top: 3rem;
  overflow: hidden;
  border-block: 1px solid var(--border);
  background: linear-gradient(90deg, rgba(188, 0, 254, 0.04), rgba(188, 0, 254, 0.12), rgba(188, 0, 254, 0.04));
  padding: 0.75rem 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: marquee 40s linear infinite;
}

.marquee-track img {
  width: 72px;
  height: 72px;
  image-rendering: pixelated;
  border-radius: 0.5rem;
  border: 2px solid var(--ink);
  box-shadow: 0 0 16px var(--ink-glow);
  transition: transform 0.2s;
}

.marquee-track img:hover {
  transform: scale(1.15) rotate(-3deg);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* SECTIONS */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.section-head {
  text-align: center;
  margin-bottom: 3rem;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin: 0.5rem 0 1rem;
}

.section-head p {
  color: var(--muted);
  max-width: 36rem;
  margin: 0 auto;
}

/* PLAY */
.play-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.play-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  backdrop-filter: blur(12px);
}

.play-card-main {
  grid-row: span 2;
}

.play-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.play-card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.play-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.tag {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tag-live {
  background: rgba(91, 220, 122, 0.15);
  color: var(--uncommon);
  border: 1px solid rgba(91, 220, 122, 0.35);
}

.tag-Legendary { background: rgba(255, 211, 77, 0.15); color: var(--legendary); }
.tag-Epic { background: rgba(255, 123, 255, 0.15); color: var(--epic); }
.tag-Rare { background: rgba(77, 184, 255, 0.15); color: var(--rare); }
.tag-Uncommon { background: rgba(91, 220, 122, 0.15); color: var(--uncommon); }
.tag-Common { background: rgba(154, 160, 171, 0.15); color: var(--common); }

.pulse-stage, .spin-stage {
  text-align: center;
  margin: 1rem 0;
}

.pulse-stage img, .spin-stage img {
  width: 180px;
  height: 180px;
  image-rendering: pixelated;
  border-radius: 0.5rem;
  border: 2px solid var(--ink);
  box-shadow: 0 0 30px var(--ink-glow);
}

.pulse-meta {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.hunt-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px dashed var(--border);
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  line-height: 1.6;
}

.hint {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.75rem;
  text-align: center;
}

.vault-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  min-height: 120px;
}

.vault-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  image-rendering: pixelated;
  border-radius: 0.35rem;
  border: 1px solid var(--border);
  cursor: pointer;
}

.vault-empty {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.85rem;
  min-height: 120px;
  border: 1px dashed var(--border);
  border-radius: 0.5rem;
}

/* GALLERY */
.gallery-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.gallery-toolbar input,
.gallery-toolbar select {
  flex: 1;
  min-width: 140px;
  padding: 0.65rem 1rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  color: var(--text);
  font-family: var(--font);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}

.nft-card {
  position: relative;
  background: linear-gradient(160deg, rgba(30, 0, 45, 0.9), rgba(12, 0, 18, 0.95));
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.nft-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(188, 0, 254, 0.15) 100%);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.2s;
}

.nft-card:hover::before { opacity: 1; }

.nft-card:hover {
  transform: translateY(-4px);
  border-color: var(--ink);
  box-shadow: 0 0 25px var(--ink-glow);
}

.nft-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  image-rendering: pixelated;
  display: block;
}

.nft-card-info {
  padding: 0.65rem 0.75rem;
}

.nft-card-info strong {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 0.25rem;
}

.nft-card-info span {
  font-size: 0.65rem;
  color: var(--muted);
}

.nft-heart {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  color: #fff;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.nft-heart.active { color: #ff4d8d; }

.gallery-load {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

#galleryCount { color: var(--muted); font-size: 0.85rem; }

/* ROADMAP */
.roadmap-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  position: relative;
}

.road-card {
  position: relative;
  background: linear-gradient(145deg, rgba(18, 0, 28, 0.95), rgba(30, 0, 45, 0.75));
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 1.5rem;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.25s;
}

.road-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.road-card-glow {
  position: absolute;
  inset: -40% -20% auto -20%;
  height: 120px;
  background: radial-gradient(circle, var(--road-color, var(--ink)) 0%, transparent 70%);
  opacity: 0.25;
  pointer-events: none;
}

.road-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--road-color, var(--muted));
}

.road-card.done::before { box-shadow: 0 0 16px var(--road-color); }
.road-card.live::before {
  background: var(--road-color);
  box-shadow: 0 0 20px var(--road-color);
  animation: road-pulse 2s ease-in-out infinite;
}

.road-card.next::before { background: linear-gradient(90deg, var(--road-color), var(--ink)); }

@keyframes road-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.road-card-head {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.road-icon {
  font-size: 1.75rem;
  line-height: 1;
  filter: drop-shadow(0 0 8px var(--road-color));
}

.road-phase {
  font-family: var(--pixel);
  font-size: 0.5rem;
  color: var(--road-color, var(--ink));
  margin-bottom: 0.35rem;
  letter-spacing: 0.1em;
}

.road-card h3 { margin-bottom: 0; font-size: 1.15rem; }

.road-sub {
  color: var(--road-color, var(--ink));
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.65rem;
  line-height: 1.4;
}

.road-text {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
  margin-bottom: 0.75rem;
}

.road-bullets {
  list-style: none;
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.road-bullets li {
  font-size: 0.78rem;
  color: var(--text);
  padding-left: 1rem;
  position: relative;
}

.road-bullets li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--road-color, var(--ink));
}

.road-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.road-status {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--road-color, var(--border));
  color: var(--road-color, var(--muted));
  background: rgba(255, 255, 255, 0.04);
}

.road-eta {
  font-size: 0.7rem;
  color: var(--muted);
  font-family: var(--pixel);
  letter-spacing: 0.04em;
}

.road-card.live .road-status {
  background: rgba(188, 0, 254, 0.15);
  animation: road-pulse 2s ease-in-out infinite;
}

.pill {
  font-size: 0.75rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(188, 0, 254, 0.12);
}

/* ABOUT */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.about-list {
  margin-top: 1.5rem;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.about-list li {
  padding-left: 1.25rem;
  position: relative;
  color: var(--muted);
}

.about-list li::before {
  content: "◆";
  position: absolute;
  left: 0;
  color: var(--ink);
  font-size: 0.6rem;
  top: 0.35rem;
}

.about-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
}

.trait-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.trait-cloud span {
  font-size: 0.75rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(188, 0, 254, 0.08);
  color: var(--muted);
}

/* FOOTER */
.footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover { color: var(--ink); }

/* MODAL */
.modal {
  border: none;
  padding: 0;
  background: transparent;
  max-width: 900px;
  width: calc(100% - 2rem);
}

.modal::backdrop {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(6px);
}

.modal-inner {
  position: relative;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  box-shadow: 0 0 80px var(--ink-glow);
}

.modal-sm .modal-inner {
  display: block;
  padding: 1.5rem;
  max-width: 400px;
  margin: 0 auto;
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border);
  color: var(--text);
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  font-size: 1.25rem;
  cursor: pointer;
}

#modalImg {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  image-rendering: pixelated;
}

.modal-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

#modalTraits {
  list-style: none;
  display: grid;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--muted);
}

#modalTraits li strong { color: var(--text); }

.modal-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: auto;
}

/* SPIN ANIM */
.spinning img {
  animation: spin-flash 0.6s steps(6) infinite;
}

@keyframes spin-flash {
  0%, 100% { filter: hue-rotate(0deg) brightness(1); }
  50% { filter: hue-rotate(40deg) brightness(1.3); }
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero-grid, .about-grid, .modal-inner { grid-template-columns: 1fr; }
  .play-grid { grid-template-columns: 1fr; }
  .play-card-main { grid-row: auto; }
  .roadmap-track { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
}

@media (max-width: 600px) {
  .header { padding: 1rem; }
  .section, .hero { padding-inline: 1rem; }
  .roadmap-track { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
}
