/* ============================================================
   THEM — by Petra Voice
   softer · more air · minimal type system
   ============================================================ */

:root {
  /* palette B — soft pink mist + plum + bruise (default) */
  --fog:        #efe4e8;
  --mist:       #e0ccd4;
  --rose:       #e8c6cc;
  --rose-deep:  #c69aa5;
  --plum:       #6a4a5c;
  --plum-deep:  #3e2a36;
  --bruise:     #8a6c7c;
  --ink:        #1d141a;
  --obsidian:   #0e0a10;
  --paper:      #f5ecee;
  --halo:       #f5dce2;
  --accent:     #d88b94;

  --text:       #1d141a;
  --text-soft:  #4a3a44;
  --text-dim:   #7a6c74;

  /* ── reduced type system ──
     display: Fraunces (soft rounded serif, romantic but airy)
     body:    Inter
     mono:    JetBrains Mono (tiny kicker labels only)
  */
  --display:  "Fraunces", "Cormorant Garamond", serif;
  --display-alt: "Cormorant Garamond", serif;
  --display-goth: "UnifrakturMaguntia", "Fraunces", serif;
  --display-script: "Pinyon Script", "Fraunces", serif;
  --sans:     "Inter", ui-sans-serif, system-ui, sans-serif;
  --mono:     "JetBrains Mono", ui-monospace, monospace;
  --hand:     "Caveat", cursive;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--fog);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body {
  background:
    radial-gradient(ellipse at 15% 10%, #f5dce4 0%, transparent 40%),
    radial-gradient(ellipse at 85% 25%, #e8d0dc 0%, transparent 45%),
    radial-gradient(ellipse at 30% 60%, #d4bcc8 0%, transparent 50%),
    radial-gradient(ellipse at 85% 85%, #b89aa8 0%, transparent 55%),
    linear-gradient(180deg, #efe4e8 0%, #d8c4cc 60%, #a08898 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

/* grain overlay */
.grain {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9998;
  opacity: 0.42;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.88' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.12  0 0 0 0 0.08  0 0 0 0 0.1  0 0 0 0.75 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 180px 180px;
}

/* bright accent blobs on sections */
#world::before {
  content: "";
  position: absolute; width: 380px; height: 380px;
  top: -80px; right: -100px;
  background: radial-gradient(circle, rgba(0,220,200,0.12) 0%, transparent 70%);
  pointer-events: none; z-index: 0; border-radius: 50%;
}
#gallery::after {
  content: "";
  position: absolute; width: 300px; height: 300px;
  bottom: 40px; left: -60px;
  background: radial-gradient(circle, rgba(200,100,180,0.1) 0%, transparent 70%);
  pointer-events: none; z-index: 0; border-radius: 50%;
}

/* ============ GALLERY SKY + CLOUDS ============ */
.gallery-fog {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  /* NO overflow:hidden — it clips clouds at their translated start positions */
  overflow: visible;
}
/* sky gradient — wide ellipse spanning full section width */
.gallery-sky {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 100% 60% at 50% 45%,
    rgba(110, 175, 245, 0.70) 0%,
    rgba(150, 205, 250, 0.42) 35%,
    rgba(190, 225, 255, 0.18) 60%,
    transparent 80%
  );
  z-index: 0;
  pointer-events: none;
}
/* the cloud shape — soft white blurred ellipse with visible body */
.gallery-cloud-inner {
  background: rgba(255, 255, 255, 0.88);
  border-radius: 50%;
  filter: blur(16px);
  box-shadow:
    30px  10px 0 -4px  rgba(255,255,255,0.75),
    -26px  8px 0 -6px  rgba(255,255,255,0.7),
    4px  -16px 0 -4px  rgba(255,255,255,0.65);
  animation: cloud-idle-float ease-in-out infinite;
  will-change: transform;
}
@keyframes cloud-idle-float {
  0%   { transform: translate(0px,  0px); }
  25%  { transform: translate(9px, -11px); }
  50%  { transform: translate(16px,  0px); }
  75%  { transform: translate(7px,  11px); }
  100% { transform: translate(0px,  0px); }
}
#roadmap::before {
  content: "";
  position: absolute; width: 420px; height: 300px;
  top: 100px; right: -80px;
  background: radial-gradient(circle, rgba(100,180,255,0.08) 0%, transparent 70%);
  pointer-events: none; z-index: 0; border-radius: 50%;
}
.scanlines {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9997;
  background-image: repeating-linear-gradient(0deg, rgba(0,0,0,0.04) 0 1px, transparent 1px 3px);
  opacity: 0.5;
  mix-blend-mode: multiply;
}

/* cursor glow */
.cursor-glow {
  position: fixed;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,220,226,0.65) 0%, rgba(216,184,200,0.22) 40%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
  transition: opacity 0.3s;
}

.wrap {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ================= NAV ================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  backdrop-filter: blur(14px) saturate(1.1);
  background: linear-gradient(180deg, rgba(239,228,232,0.7), rgba(239,228,232,0));
  border-bottom: 1px solid rgba(29,20,26,0.05);
}
.nav-logo {
  font-family: var(--display);
  font-weight: 400;
  font-style: italic;
  font-size: 34px;
  color: var(--ink);
  letter-spacing: -0.02em;
  cursor: pointer; user-select: none;
  transition: all 0.3s;
  line-height: 1;
}
.nav-logo:hover { transform: translateY(-1px); }
.nav-logo sup {
  font-family: var(--mono);
  font-style: normal;
  font-size: 9px;
  vertical-align: top;
  opacity: 0.5;
  letter-spacing: 0.12em;
  margin-left: 4px;
}
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.nav-links a {
  color: var(--text-soft);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 9px 16px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: all 0.2s;
  display: flex; align-items: center; gap: 8px;
  color: var(--ink);
}
.nav-cta:hover { background: var(--ink); color: var(--fog); }
.nav-cta .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; box-shadow: 0 0 0 0 rgba(216,139,148,0.5); }
  50% { opacity: 0.4; box-shadow: 0 0 0 8px rgba(216,139,148,0); }
}

/* ================= HERO ================= */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 140px 0 80px;
  overflow: hidden;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  min-height: 80vh;
}

.hero-kaomoji {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  margin-bottom: 32px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.hero-kaomoji::before {
  content: ""; width: 24px; height: 1px; background: var(--text-dim);
}

.hero-title {
  font-family: var(--display-goth);
  font-weight: 400;
  font-style: normal;
  font-size: clamp(120px, 20vw, 280px);
  line-height: 0.82;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin: 0;
  position: relative;
  user-select: none;
}

.hero-tagline {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-soft);
  max-width: 480px;
  margin: 36px 0 0;
  text-wrap: pretty;
  letter-spacing: 0.01em;
}
.hero-tagline .em {
  color: var(--ink);
  font-weight: 500;
}

.hero-meta {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 52px;
  padding-top: 24px;
  border-top: 1px dashed rgba(29,20,26,0.18);
}
.hero-meta span { display: flex; align-items: center; gap: 8px; }
.hero-meta span::before {
  content: ""; width: 5px; height: 5px;
  background: var(--accent); border-radius: 50%;
}

.hero-platform {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 10px;
}
.hero-platform a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(176, 100, 120, 0.35);
  padding-bottom: 1px;
  transition: border-color 0.2s, color 0.2s;
}
.hero-platform a:hover { color: var(--ink); border-color: var(--ink); }

.hero-char-stage {
  position: relative;
  height: min(72vh, 680px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-char-main {
  position: relative;
  width: 82%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  box-shadow:
    0 50px 120px -20px rgba(20,10,25,0.45),
    inset 0 0 0 1px rgba(255,255,255,0.25);
  animation: float-main 8s ease-in-out infinite;
}
.hero-char-main img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.95) contrast(0.98);
}
.hero-char-main::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 60% 40%, transparent 40%, rgba(30,20,30,0.22));
  pointer-events: none;
}
.hero-char-halo {
  position: absolute;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,220,226,0.7) 0%, transparent 55%);
  filter: blur(30px);
  animation: breathe 7s ease-in-out infinite;
}

.hero-orbit {
  position: absolute;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 20px 50px -10px rgba(20,10,25,0.4);
  filter: saturate(0.9);
}
.hero-orbit img { width: 100%; height: 100%; object-fit: cover; }
.hero-orbit.o1 { width: 140px; height: 140px; top: 4%; right: -4%; animation: float-a 11s ease-in-out infinite; }
.hero-orbit.o2 { width: 100px; height: 100px; bottom: 10%; left: -4%; animation: float-b 13s ease-in-out infinite; }
.hero-orbit.o3 { width: 80px; height: 80px; bottom: 32%; right: -8%; animation: float-c 15s ease-in-out infinite; filter: saturate(0.8); }

@keyframes float-main { 0%,100% { transform: translateY(0) rotate(-0.5deg); } 50% { transform: translateY(-12px) rotate(0.5deg); } }
@keyframes float-a { 0%,100% { transform: translate(0,0) rotate(3deg); } 50% { transform: translate(-10px,-18px) rotate(-3deg); } }
@keyframes float-b { 0%,100% { transform: translate(0,0) rotate(-3deg); } 50% { transform: translate(12px,-16px) rotate(3deg); } }
@keyframes float-c { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-8px,14px); } }
@keyframes breathe { 0%,100% { opacity: 0.5; transform: scale(1); } 50% { opacity: 0.9; transform: scale(1.08); } }

.sticker {
  position: absolute;
  padding: 6px 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--plum);
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(29,20,26,0.1);
  border-radius: 4px;
  white-space: nowrap;
  box-shadow: 0 10px 20px -8px rgba(20,10,25,0.25);
  z-index: 3;
  user-select: none;
}
.sticker-dark { background: var(--ink); color: var(--fog); border-color: var(--ink); }

/* ticker */
.ticker {
  overflow: hidden;
  padding: 22px 0;
  border-top: 1px solid rgba(29,20,26,0.1);
  border-bottom: 1px solid rgba(29,20,26,0.1);
  background: rgba(255,255,255,0.25);
  backdrop-filter: blur(6px);
  position: relative;
  z-index: 3;
}
.ticker-track {
  display: flex; gap: 60px;
  animation: scroll 50s linear infinite;
  white-space: nowrap;
  font-family: var(--mono);
  font-style: normal;
  font-weight: 400;
  font-size: 12px;
  color: var(--plum);
  letter-spacing: 0.08em;
  text-transform: lowercase;
}
.ticker-track span { display: inline-flex; align-items: center; gap: 60px; }
.ticker-track span::after { content: "✦"; color: var(--accent); font-style: normal; }
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ================= sections ================= */
.section {
  position: relative;
  padding: 140px 0;
  z-index: 2;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 28px;
}
.kicker::before {
  content: ""; width: 28px; height: 1px; background: currentColor;
}

.section-title {
  font-family: var(--display-goth);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1.0;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin: 0 0 56px;
}

/* ============ WORLD ============ */
.world-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 96px;
  align-items: start;
}
.world-prose .lead {
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-soft);
  margin: 0 0 24px;
  text-wrap: pretty;
  max-width: 480px;
  letter-spacing: 0.01em;
}
.world-prose p {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.75;
  color: var(--text-soft);
  margin: 0 0 16px;
  text-wrap: pretty;
  max-width: 480px;
  letter-spacing: 0.01em;
}
/* ── pull-msg (restored win95 style) ── */
.pull-msg {
  border: 2px solid; border-color: #fff #808080 #808080 #fff;
  outline: 1px solid #000;
  max-width: 340px; margin: 36px 0 24px 48px;
  box-shadow: 3px 3px 0 rgba(0,0,0,0.18);
}
.pull-msg-title {
  background: linear-gradient(90deg, #000080 0%, #1084d0 100%);
  color: #fff; font-family: var(--mono); font-size: 11px;
  padding: 4px 8px; user-select: none;
}
.pull-msg-body {
  background: var(--fog);
  font-family: var(--display); font-style: italic; font-weight: 300;
  font-size: 16px; line-height: 1.7; color: var(--plum-deep);
  padding: 14px 16px;
}
.pull-msg-body::after { content: " ✦"; color: var(--accent); }
.world-prose .pull::after { content: " ✦"; color: var(--accent); }
.world-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 32px;
}
.world-tags span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 6px 12px;
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(29,20,26,0.12);
  border-radius: 999px;
  color: var(--plum);
}

.world-collage {
  position: sticky;
  top: 120px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.world-tile {
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 24px 60px -18px rgba(20,10,25,0.4);
  transition: transform 0.6s cubic-bezier(.2,.7,.2,1);
}
.world-tile:nth-child(1) { transform: rotate(-2deg); }
.world-tile:nth-child(2) { transform: rotate(1.5deg); margin-top: 32px; }
.world-tile:nth-child(3) { transform: rotate(1.5deg); margin-top: -18px; }
.world-tile:nth-child(4) { transform: rotate(-1.5deg); }
.world-tile:hover { transform: translateY(-6px) rotate(0) scale(1.02); z-index: 2; }
.world-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.world-tile .tile-label {
  position: absolute;
  left: 10px; bottom: 10px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: #fff;
  background: rgba(20,10,25,0.5);
  backdrop-filter: blur(4px);
  padding: 3px 8px; border-radius: 999px;
  text-transform: uppercase;
}

/* ============ GALLERY ============ */
.gallery-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.gallery-card {
  position: relative;
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 20px 50px -18px rgba(20,10,25,0.4);
  transition: transform 0.5s cubic-bezier(.2,.7,.2,1);
  will-change: transform;
}
.gallery-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.8s ease, filter 0.8s;
  filter: saturate(0.92);
}
.gallery-card:hover { transform: translateY(-6px) rotate(-1deg); z-index: 2; }
.gallery-card:hover img { transform: scale(1.08); filter: saturate(1.05); }
.gallery-card .num {
  position: absolute;
  top: 10px; left: 10px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.9);
  background: rgba(20,10,25,0.45);
  backdrop-filter: blur(8px);
  padding: 4px 8px;
  border-radius: 999px;
  text-transform: uppercase;
}
.gallery-card .heart {
  position: absolute;
  top: 10px; right: 10px;
  opacity: 0;
  transition: opacity 0.3s;
  color: var(--accent);
  font-size: 18px;
}
.gallery-card:hover .heart { opacity: 1; }

/* glitch swap — VHS interference style */
.gallery-card.glitch-active img {
  animation: img-glitch 0.7s steps(6) forwards;
}
@keyframes img-glitch {
  0%   { transform: translate(0,0);    filter: none;                                       opacity: 1; }
  12%  { transform: translate(-7px,0); filter: brightness(1.5) saturate(0.1) contrast(1.5); opacity: 0.75; }
  24%  { transform: translate(8px,0);  filter: brightness(0.6) saturate(0) contrast(2);   }
  38%  { transform: translate(-5px,0); filter: brightness(1.3) saturate(0.15) sepia(0.3); clip-path: inset(25% 0 48% 0); }
  52%  { transform: translate(6px,0);  filter: saturate(0) brightness(1.6);               clip-path: inset(65% 0 6% 0); }
  66%  { clip-path: none; transform: translate(-3px,0); filter: brightness(1.2) saturate(0.2) sepia(0.15); opacity: 0.88; }
  82%  { transform: translate(2px,0);  filter: brightness(1.05) saturate(0.5);            opacity: 0.96; }
  100% { transform: translate(0,0);    filter: none; clip-path: none; opacity: 1; }
}

/* classified / secret row */
.gallery-secret { margin-top: 16px; }
.gallery-classified {
  background: transparent;
  cursor: default;
  overflow: hidden;
}
.gallery-classified:hover { transform: none !important; z-index: auto !important; }
.gallery-classified:hover .heart { opacity: 0 !important; }
.gallery-classified:hover .traits { opacity: 0 !important; transform: translateY(8px) !important; }

/* blurred character silhouette underneath */
.classified-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  filter: blur(3px) saturate(0.6) brightness(1.05);
  z-index: 0;
}
/* warm beige-pink glassmorphism overlay — no border */
.classified-overlay {
  position: absolute; inset: 0;
  background: rgba(220, 196, 206, 0.38);
  backdrop-filter: blur(7px) saturate(1.3);
  -webkit-backdrop-filter: blur(7px) saturate(1.3);
  border: none;
  box-shadow: none;
  z-index: 1;
}
/* ??? label on top of overlay */
.classified-label {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 20px; letter-spacing: 0.5em;
  color: rgba(106, 74, 92, 0.4); user-select: none;
  z-index: 2;
}
.gallery-classified .num {
  z-index: 3;
  background: rgba(255,255,255,0.4);
  color: rgba(106, 74, 92, 0.6);
  backdrop-filter: none;
}
.one-of-one { z-index: 3; }
.one-of-one {
  position: absolute; top: 8px; right: 8px;
  background: #c8a800; color: #000;
  font-family: var(--mono); font-size: 9px; font-weight: 600;
  padding: 3px 7px; letter-spacing: 0.06em; text-transform: uppercase;
  border: 1px solid #9a8000;
}
.gallery-card .traits {
  position: absolute;
  left: 10px; right: 10px; bottom: 10px;
  display: flex; flex-wrap: wrap; gap: 4px;
  opacity: 0; transform: translateY(8px);
  transition: all 0.4s;
}
.gallery-card:hover .traits { opacity: 1; transform: translateY(0); }
.gallery-card .traits span {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  background: rgba(255,255,255,0.9);
  color: var(--ink);
  padding: 3px 7px;
  border-radius: 999px;
}

.noise-square {
  width: 100%; height: 100%;
  background:
    repeating-linear-gradient(45deg, rgba(20,10,25,0.04) 0 2px, transparent 2px 4px),
    linear-gradient(135deg, var(--rose) 0%, var(--bruise) 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}
.noise-square::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.8 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.45; mix-blend-mode: overlay;
}
.noise-square > * { position: relative; z-index: 1; }

.gallery-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(29,20,26,0.12);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.gallery-meta strong { color: var(--ink); font-weight: 500; }

/* ============ VAULT / countdown ============ */
.vault {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 48px;
  padding: 56px;
  background: var(--ink);
  color: var(--fog);
  border-radius: 28px;
  margin-top: 56px;
  position: relative;
  overflow: hidden;
}
.vault::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 15% 30%, rgba(245,220,226,0.18), transparent 50%),
    radial-gradient(circle at 85% 70%, rgba(200,150,210,0.16), transparent 50%);
  pointer-events: none;
}
.vault-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
}
.vault-title {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: 64px;
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 16px 0 14px;
  color: var(--fog);
}
.vault-sub {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--mist);
  opacity: 0.75;
  max-width: 360px;
}

.countdown {
  display: flex;
  gap: 12px;
  position: relative;
  z-index: 1;
}
.countdown-box {
  min-width: 92px;
  padding: 18px 14px;
  text-align: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  backdrop-filter: blur(8px);
}
.countdown-num {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: 48px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--fog);
  filter: none;
  user-select: none;
  transition: filter 0.8s cubic-bezier(.2,.7,.2,1);
}
.countdown-num.foggy { filter: blur(9px); opacity: 0.75; }
.countdown-box:hover .countdown-num.foggy { filter: blur(6px); opacity: 0.88; }
.countdown-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 10px;
  opacity: 0.7;
}

/* ============ PHASES ============ */
.phases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}
.phase-card {
  position: relative;
  padding: 40px 32px;
  border-radius: 22px;
  background: rgba(255,255,255,0.4);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(29,20,26,0.08);
  overflow: hidden;
  transition: all 0.5s;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.phase-card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 70% 0%, rgba(245,220,226,0.5), transparent 55%);
  pointer-events: none;
}
.phase-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.55);
  box-shadow: 0 30px 60px -20px rgba(20,10,25,0.25);
}
.phase-num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--text-dim);
  text-transform: uppercase;
  display: flex; align-items: center; gap: 10px;
}
.phase-num .lock {
  display: inline-block;
  width: 12px; height: 12px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
  position: relative;
}
.phase-num .lock::before {
  content: ""; position: absolute;
  width: 7px; height: 5px;
  border: 1.5px solid currentColor;
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  top: -6px; left: 50%; transform: translateX(-50%);
}
/* open lock — shackle swings to the right */
.phase-num .lock.open::before {
  top: -7px;
  left: 70%;
  transform: translateX(-50%) rotate(30deg);
  border-color: #7dbb8a;
}
.phase-num .lock.open {
  border-color: #7dbb8a;
}
.phase-name {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: 34px;
  color: var(--ink);
  margin: 20px 0 14px;
  line-height: 1;
  letter-spacing: -0.02em;
}
.phase-name-sub {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--bruise);
  letter-spacing: 0.02em;
}
.phase-name-sub a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.phase-name-sub a:hover { color: var(--plum); }
.phase-reveal {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px dashed rgba(29,20,26,0.18);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.phase-reveal .status {
  padding: 4px 10px;
  background: var(--ink);
  color: var(--fog);
  border-radius: 4px;
  font-size: 9px;
  letter-spacing: 0.18em;
}
.phase-reveal .status[data-status="open"] {
  background: rgba(80, 160, 100, 0.15);
  color: #7dbb8a;
  border: 1px solid rgba(80, 160, 100, 0.3);
}
.phase-name-sub a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.phase-name-sub a:hover { color: var(--plum); }

/* ============ ROADMAP ============ */
.road-track {
  position: relative;
  padding: 20px 0 20px;
}
.road-track::before {
  content: "";
  position: absolute;
  left: 24px; top: 40px; bottom: 40px;
  width: 1px;
  background: repeating-linear-gradient(180deg, var(--plum) 0 6px, transparent 6px 12px);
  opacity: 0.4;
}
.road-item {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 36px;
  align-items: baseline;
  padding: 32px 0;
  border-bottom: 1px dashed rgba(29,20,26,0.14);
}
.road-item:last-child { border-bottom: none; }
.road-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--fog);
  border: 2px solid var(--plum);
  margin-left: 18px;
  margin-top: 10px;
}
.road-item.active .road-dot {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 6px rgba(216,139,148,0.2);
}
.road-title {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.road-title em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.28em;
  color: var(--text-dim);
  margin-left: 14px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  vertical-align: middle;
}
.road-desc {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-soft);
  margin-top: 8px;
  max-width: 580px;
  text-wrap: pretty;
}
.road-badge {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(29,20,26,0.1);
  color: var(--text-dim);
  white-space: nowrap;
}
.road-item.active .road-badge {
  background: var(--ink); color: var(--fog); border-color: var(--ink);
}

/* ============ PETRA ============ */
.petra-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 72px;
  align-items: start;
}
.petra-portrait {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px -10px rgba(20,10,25,0.35);
  transition: transform 0.6s cubic-bezier(.2,.7,.2,1);
}
.petra-portrait:hover { transform: scale(1.02); }
.petra-portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.95);
}

.petra-name {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: 96px;
  color: var(--ink);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin: 0 0 10px;
}
.petra-subname {
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--bruise);
  margin: 0 0 52px;
  max-width: 440px;
  line-height: 1.5;
}
.petra-prose p {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-soft);
  text-wrap: pretty;
  margin: 0 0 18px;
  max-width: 560px;
}
.petra-prose p em {
  color: var(--ink);
  font-style: normal;
  font-weight: 400;
}
.petra-creds {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px 32px;
  margin-top: 40px;
  padding-top: 36px;
  border-top: 1px solid rgba(29,20,26,0.12);
}
.petra-cred .k {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 6px;
}
.petra-cred .v {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  line-height: 1.5;
}
.petra-cred .v a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(29,20,26,0.25);
  transition: all 0.2s;
  padding-bottom: 1px;
}
.petra-cred .v a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.petra-cred .v em {
  font-family: var(--display);
  font-style: italic;
  color: var(--plum);
}

/* ============ WALLET CHECKER ============ */
/* checker fog layer (clouds + sky) */
.checker-fog {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, black 18%, black 82%, transparent 100%);
  mask-image:         linear-gradient(180deg, transparent 0%, black 18%, black 82%, transparent 100%);
}
.checker-fog-sky {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 100% 70% at 50% 44%,
    rgba(110, 175, 245, 0.58) 0%,
    rgba(150, 205, 250, 0.32) 40%,
    rgba(190, 225, 255, 0.10) 65%,
    transparent 82%
  );
}

.checker-window {
  max-width: 680px;
  margin: 0 auto;
  border: 2px solid;
  border-color: #fff #808080 #808080 #fff;
  outline: 2px solid #000;
  box-shadow: 6px 6px 0 rgba(0,0,0,0.35);
}
.checker-titlebar {
  background: linear-gradient(90deg, #000080 0%, #1084d0 50%, #000080 100%);
  color: #fff;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  padding: 4px 6px 4px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  letter-spacing: 0.02em;
}
.checker-winbody {
  background: #d4c4ca;
  padding: 32px 40px 28px;
  border-top: 2px solid #808080;
}
.checker-winbody .section-title {
  color: var(--ink);
  margin-bottom: 16px;
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(28px, 4vw, 52px);
}

/* locked / coming soon inner popup */
.checker-locked-popup {
  position: relative;
  z-index: 2;
  background: #c0c0c0;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  border-right: 2px solid #808080;
  border-bottom: 2px solid #808080;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.3);
  max-width: 360px;
  margin: 0 0 24px;
  font-family: var(--mono);
  font-size: 11px;
}
.checker-locked-title {
  background: linear-gradient(90deg, #000080, #1084d0);
  color: #fff;
  padding: 3px 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.checker-locked-body {
  padding: 14px 16px 10px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: #000;
}
.checker-locked-icon { font-size: 26px; flex-shrink: 0; }
.checker-locked-body p { margin: 0 0 5px; font-size: 12px; line-height: 1.4; }
.checker-locked-btns {
  padding: 6px 16px 12px;
  display: flex;
  justify-content: center;
}
.checker-locked-btns button {
  background: #c0c0c0;
  border-top: 1px solid #fff;
  border-left: 1px solid #fff;
  border-right: 1px solid #808080;
  border-bottom: 1px solid #808080;
  padding: 4px 24px;
  font-family: var(--mono);
  font-size: 11px;
  cursor: pointer;
  letter-spacing: 0.04em;
}

/* input area */
.checker-fields { margin-top: 4px; }

.checker-inactive {
  pointer-events: none;
  user-select: none;
}

/* frosted glass over the ENTIRE winbody when locked */
.checker-winbody { position: relative; }
.checker-winbody.is-locked::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(212, 196, 202, 0.28);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  pointer-events: none;
  z-index: 1;
}
.checker-row {
  display: flex;
  gap: 6px;
  align-items: stretch;
}
.checker-input {
  flex: 1;
  background: #fff;
  border-top: 1px solid #808080;
  border-left: 1px solid #808080;
  border-right: 1px solid #fff;
  border-bottom: 1px solid #fff;
  padding: 6px 10px;
  font-family: var(--mono);
  font-size: 12px;
  color: #000;
  outline: none;
  letter-spacing: 0.02em;
}
.checker-input::placeholder { color: #808080; }
.checker-btn {
  background: #c0c0c0;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  border-right: 2px solid #808080;
  border-bottom: 2px solid #808080;
  padding: 6px 20px;
  font-family: var(--mono);
  font-size: 11px;
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: 0.06em;
  color: #000;
}
.checker-btn:hover:not(:disabled) { background: #d0d0d0; }
.checker-btn:active:not(:disabled) {
  border-top-color: #808080; border-left-color: #808080;
  border-right-color: #fff; border-bottom-color: #fff;
}
.checker-btn:disabled { opacity: 0.5; cursor: default; }

.checker-result {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 16px;
  padding: 10px 14px;
  border-top: 2px solid;
  border-color: #808080 #fff #fff #808080;
  background: #c8b8be;
  animation: checker-fade 0.3s ease;
}
@keyframes checker-fade {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.checker-result-icon { font-size: 16px; flex-shrink: 0; margin-top: 2px; }
.checker-result-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #000080;
  margin-bottom: 4px;
}
.checker-result-text {
  font-family: var(--mono);
  font-size: 11px;
  color: #000;
  line-height: 1.5;
}

/* ============ RECOMMENDED COLLECTIONS ============ */
.recs {
  padding: 80px 0;
  background: transparent;
  position: relative;
  overflow: visible;
}
.recs-window {
  max-width: 860px;
  border: 2px solid;
  border-color: #fff #808080 #808080 #fff;
  outline: 2px solid #000;
  box-shadow: 6px 6px 0 rgba(0,0,0,0.35);
  position: relative;
}
.recs-titlebar {
  background: linear-gradient(90deg, #000080 0%, #1084d0 50%, #000080 100%);
  color: #fff;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  padding: 4px 6px 4px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  letter-spacing: 0.02em;
}
.recs-win-btns {
  display: flex; gap: 2px;
}
.recs-win-btns span {
  width: 16px; height: 14px;
  background: #c0c0c0;
  border: 1px solid;
  border-color: #fff #808080 #808080 #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; line-height: 1;
  color: #000;
  cursor: default;
  font-family: var(--mono);
}
.recs-winbody {
  background: #d4c4ca;
  padding: 32px 40px 24px;
  border-top: 2px solid #808080;
}
.recs .kicker { color: var(--plum); }
.recs .section-title { color: var(--ink); margin-bottom: 32px; }
.recs-intro {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-soft);
  max-width: 620px;
  margin: 0 0 28px;
}
.recs-intro .hand {
  font-family: var(--hand);
  font-size: 18px;
  color: var(--plum);
  display: block;
  margin-bottom: 10px;
  transform: rotate(-1deg);
}
.recs-list {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 2.2;
  color: var(--text);
}
.recs-list a {
  color: #000080;
  text-decoration: underline;
  transition: color 0.15s;
  white-space: nowrap;
}
.recs-list a:hover { color: #0000ff; }
.recs-icon { margin-right: 4px; font-style: normal; }
.recs-list .star { color: var(--text-dim); margin: 0 8px; }
.recs-statusbar {
  margin-top: 20px;
  padding-top: 8px;
  border-top: 2px solid;
  border-color: #808080 #fff #fff #808080;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-soft);
  display: flex;
  gap: 24px;
}

/* little scrapbook notes scattered around */
.scrap {
  position: absolute;
  font-family: var(--hand);
  font-weight: 500;
  font-size: 22px;
  color: var(--plum);
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
  z-index: 4;
  opacity: 0.8;
}
.scrap.sm { font-size: 18px; }
.scrap.lg { font-size: 28px; }
.scrap::after { content: " ✦"; color: var(--accent); }
.scrap.no-heart::after { content: ""; }

/* ============ Y2K DOODLES ============ */
.doodle {
  position: absolute;
  pointer-events: none;
  z-index: 3;
  opacity: 0.85;
  color: var(--plum);
}
.doodle svg { display: block; width: 100%; height: 100%; }
.doodle.rot-a { transform: rotate(-12deg); }
.doodle.rot-b { transform: rotate(8deg); }
.doodle.rot-c { transform: rotate(-3deg); }
.doodle.spin { animation: spin 18s linear infinite; }
.doodle.wiggle { animation: wiggle 4s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes wiggle {
  0%,100% { transform: rotate(-4deg) translateY(0); }
  50% { transform: rotate(4deg) translateY(-4px); }
}

/* handwritten y2k inline note */
.y2k-note {
  position: absolute;
  font-family: var(--hand);
  font-size: 20px;
  color: var(--plum);
  transform: rotate(-6deg);
  pointer-events: none;
  z-index: 3;
  opacity: 0.85;
  line-height: 1.1;
  white-space: nowrap;
}
.y2k-note.pink { color: var(--rose-deep); }
.y2k-note.dark { color: var(--ink); }
.y2k-note u { text-decoration-style: wavy; text-decoration-color: var(--accent); }

/* corner frame markers */
.corner {
  position: absolute;
  width: 18px; height: 18px;
  border: 1.5px solid var(--plum);
  pointer-events: none;
  opacity: 0.4;
}
.corner.tl { top: 20px; left: 20px; border-right: none; border-bottom: none; }
.corner.tr { top: 20px; right: 20px; border-left: none; border-bottom: none; }
.corner.bl { bottom: 20px; left: 20px; border-right: none; border-top: none; }
.corner.br { bottom: 20px; right: 20px; border-left: none; border-top: none; }

/* taped polaroid-style note */
.taped-note {
  position: absolute;
  padding: 10px 14px 14px;
  background: rgba(255, 250, 230, 0.85);
  font-family: var(--hand);
  font-size: 16px;
  color: var(--ink);
  line-height: 1.2;
  box-shadow: 0 10px 24px -8px rgba(20,10,25,0.3);
  transform: rotate(-3deg);
  max-width: 180px;
  z-index: 3;
  pointer-events: none;
}
.taped-note::before {
  content: "";
  position: absolute;
  top: -10px; left: 50%;
  transform: translateX(-50%) rotate(-4deg);
  width: 60px; height: 18px;
  background: rgba(232,198,204,0.7);
  border: 1px dashed rgba(255,255,255,0.6);
}

/* ============ FOOTER ============ */
.footer {
  padding: 100px 0 40px;
  border-top: 1px solid rgba(29,20,26,0.1);
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  margin-bottom: 72px;
  align-items: start;
}
.footer-brand .mark {
  font-family: var(--display-goth);
  font-style: normal;
  font-weight: 400;
  font-size: 100px;
  line-height: 0.9;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.footer-brand p {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: 18px;
  color: var(--text-soft);
  max-width: 560px;
  margin: 20px 0 0;
  line-height: 1.4;
}
.footer h4 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 22px;
  font-weight: 500;
}
.footer ul {
  list-style: none;
  margin: 0; padding: 0;
  display: grid; gap: 12px;
}
.footer ul a {
  color: var(--text-soft);
  text-decoration: none;
  font-family: var(--sans);
  font-size: 14px;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0; /* gap removed — arrow uses width trick, takes no space when hidden */
}
.footer ul a:hover { color: var(--ink); }
/* arrow: width:0 when hidden → takes NO space → links align with h4 headers */
.footer ul a::before {
  content: "→";
  color: var(--rose-deep);
  display: inline-block;
  width: 0;
  overflow: hidden;
  opacity: 0;
  white-space: nowrap;
  transition: width 0.18s ease, opacity 0.18s ease, margin-right 0.18s ease;
  margin-right: 0;
}
.footer ul a:hover::before {
  width: 14px;
  opacity: 1;
  margin-right: 6px;
}
.footer-legal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid rgba(29,20,26,0.08);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.footer-legal .kao {
  color: var(--plum);
  opacity: 0.7;
  letter-spacing: 0.05em;
  font-size: 12px;
}

/* ============ EASTER EGG MODAL ============ */
.egg {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(14,10,16,0.88);
  backdrop-filter: blur(20px);
  z-index: 9999;
  opacity: 0; pointer-events: none;
  transition: opacity 0.6s;
}
.egg.active { opacity: 1; pointer-events: auto; }
.egg-card {
  max-width: 520px;
  padding: 56px 48px;
  background: var(--paper);
  border-radius: 24px;
  text-align: center;
  transform: scale(0.94);
  transition: transform 0.6s cubic-bezier(.2,.7,.2,1);
  box-shadow: 0 40px 100px -20px rgba(0,0,0,0.5);
  position: relative;
}
.egg.active .egg-card { transform: scale(1) rotate(-1deg); }
.egg-card .glyph {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: 120px;
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 20px;
}
.egg-card p {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: 24px;
  color: var(--text-soft);
  line-height: 1.4;
  margin: 0 0 32px;
  text-wrap: pretty;
  letter-spacing: -0.01em;
}
.egg-card p em { color: var(--accent); font-style: italic; }
.egg-card small {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: block;
  cursor: pointer;
}

/* ============ AUDIO TOGGLE ============ */
.audio-toggle {
  position: fixed;
  bottom: 24px; left: 24px;
  z-index: 100;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(29,20,26,0.1);
  display: flex;
  align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--ink);
  transition: all 0.3s;
}
.audio-toggle:hover { background: var(--ink); color: var(--fog); transform: scale(1.05); }
.audio-toggle .bars {
  display: flex; gap: 2px;
  align-items: flex-end;
  height: 14px;
}
.audio-toggle .bars span {
  display: block;
  width: 2px;
  background: currentColor;
  border-radius: 1px;
}
.audio-toggle.playing .bars span { animation: eq 1s ease-in-out infinite; }
.audio-toggle .bars span:nth-child(1) { height: 40%; animation-delay: 0s; }
.audio-toggle .bars span:nth-child(2) { height: 90%; animation-delay: 0.15s; }
.audio-toggle .bars span:nth-child(3) { height: 60%; animation-delay: 0.3s; }
.audio-toggle .bars span:nth-child(4) { height: 80%; animation-delay: 0.45s; }
@keyframes eq {
  0%,100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}

/* ============ ASCII DECO ============ */
.ascii-deco {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 6px;
  color: var(--accent);
  margin-top: 28px;
  opacity: 0.65;
  user-select: none;
}

/* ============ ASCII FLOATS ============ */
.ascii-float {
  position: absolute;
  pointer-events: none;
  z-index: 3;
  user-select: none;
  font-family: var(--mono);
  color: var(--accent);
  opacity: 0.7;
  line-height: 1;
}
.ascii-float.wiggle { animation: wiggle 4s ease-in-out infinite; }
.ascii-float.rot-a { transform: rotate(-12deg); }
.ascii-float.rot-b { transform: rotate(8deg); }
.ascii-float.spin { animation: spin 18s linear infinite; }

/* ============ STICKY NOTE ============ */
.sticky-note {
  position: absolute;
  padding: 14px 16px 20px;
  background: #f7f0a0;
  background: linear-gradient(160deg, #f7f0a0 0%, #ede890 100%);
  font-family: var(--hand);
  font-size: 18px;
  color: #2a2220;
  line-height: 1.4;
  box-shadow: 3px 4px 12px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.5);
  z-index: 5;
  pointer-events: none;
  transform: rotate(-3deg);
  min-width: 150px;
}
.sticky-note::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: repeating-linear-gradient(90deg, rgba(180,160,0,0.3) 0 1px, transparent 1px 6px);
}
.sticky-note p { margin: 0 0 4px; }
.sticky-note .s-star { color: var(--plum); opacity: 0.6; font-size: 14px; }

/* ============ WIN95 POPUP ============ */
.win95-wrap {
  position: fixed;
  top: 38%;
  left: 14%;
  z-index: 9994;
  animation: popup-in 0.18s ease;
  cursor: default;
}
@keyframes popup-in {
  from { transform: scale(0.85) translateY(16px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}
.win95-wrap.glitching {
  animation: win95-glitch 0.48s steps(3) forwards;
}
@keyframes win95-glitch {
  0%   { transform: translate(0,0)     skew(0deg);   opacity: 1;   filter: none; }
  18%  { transform: translate(-14px,3px) skew(7deg);  opacity: 0.8; filter: hue-rotate(90deg) brightness(1.6) saturate(3); }
  36%  { transform: translate(16px,-5px) skew(-5deg); opacity: 0.5; filter: hue-rotate(180deg) invert(0.15); }
  54%  { transform: translate(-8px,8px)  skew(4deg);  opacity: 0.9; filter: hue-rotate(270deg); }
  72%  { transform: translate(6px,-3px); opacity: 0.3; filter: brightness(2) saturate(0); }
  100% { transform: translate(0,0);      opacity: 1;   filter: none; }
}
.win95-popup {
  background: #c0c0c0;
  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  border-right: 2px solid #808080;
  border-bottom: 2px solid #808080;
  min-width: 260px;
  font-family: var(--mono);
  font-size: 11px;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.4);
  user-select: none;
}
.win95-titlebar {
  background: linear-gradient(90deg, #000080, #1084d0);
  color: #fff;
  padding: 3px 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.win95-close {
  background: #c0c0c0;
  border-top: 1px solid #fff;
  border-left: 1px solid #fff;
  border-right: 1px solid #808080;
  border-bottom: 1px solid #808080;
  color: #000;
  width: 16px; height: 14px;
  padding: 0;
  font-size: 9px;
  cursor: pointer;
  font-family: var(--mono);
  line-height: 1;
}
.win95-close:active {
  border-top-color: #808080; border-left-color: #808080;
  border-right-color: #fff; border-bottom-color: #fff;
}
.win95-body {
  padding: 14px 16px 10px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: #000;
}
.win95-icon {
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
}
.win95-body p { margin: 0 0 6px; font-size: 12px; line-height: 1.4; letter-spacing: 0.02em; }
.win95-body p em { font-style: italic; font-family: var(--display); font-size: 1.15em; color: #000080; }
.win95-btns {
  padding: 6px 16px 12px;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.win95-btns button {
  background: #c0c0c0;
  border-top: 1px solid #fff;
  border-left: 1px solid #fff;
  border-right: 1px solid #808080;
  border-bottom: 1px solid #808080;
  padding: 4px 14px;
  font-family: var(--mono);
  font-size: 11px;
  cursor: pointer;
  min-width: 80px;
  letter-spacing: 0.04em;
}
.win95-btns button:active {
  border-top-color: #808080; border-left-color: #808080;
  border-right-color: #fff; border-bottom-color: #fff;
  padding: 5px 13px 3px 15px;
}

/* ============ BRIGHT ACCENT BLOBS ============ */
.accent-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(60px);
  mix-blend-mode: screen;
  opacity: 0.18;
}

/* ============ VHS / old video camera overlay ============ */
.vhs-overlay {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9995;
  overflow: hidden;
}
.vhs-overlay::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.08  0 0 0 0 0.06  0 0 0 0 0.07  0 0 0 0.2 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 150px 150px;
  animation: vhs-shake 0.1s steps(1) infinite;
  mix-blend-mode: overlay;
  opacity: 0.7;
}
.vhs-overlay::after {
  content: "";
  position: absolute;
  inset: -300px 0 0;
  background: repeating-linear-gradient(
    0deg,
    transparent 0px,
    transparent 2px,
    rgba(0,0,0,0.022) 2px,
    rgba(0,0,0,0.022) 3px
  );
  animation: vhs-scroll 14s linear infinite;
}
@keyframes vhs-shake {
  0%   { background-position: 0px 0px; }
  12%  { background-position: 38px -14px; }
  25%  { background-position: -20px 30px; }
  37%  { background-position: 50px 10px; }
  50%  { background-position: -8px -38px; }
  62%  { background-position: 24px 22px; }
  75%  { background-position: -32px 6px; }
  87%  { background-position: 12px -24px; }
  100% { background-position: -5px 16px; }
}
@keyframes vhs-scroll {
  from { transform: translateY(0); }
  to   { transform: translateY(300px); }
}

/* ============ responsive ============ */

/* ============ GAME SECTION ============ */
#game { text-align: center; position: relative; }
#game::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(80, 20, 30, 0.18) 0%, transparent 70%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
}

.game-card {
  max-width: 480px;
  margin: 0 auto;
  padding: 44px 44px 32px;
  position: relative;
  background: rgba(245, 236, 238, 0.07);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(212, 139, 148, 0.22);
  border-radius: 18px;
  box-shadow:
    0 8px 40px rgba(30, 10, 20, 0.35),
    inset 0 1px 0 rgba(255,255,255,0.08);
  overflow: visible;
}

.game-card-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 16px;
  text-transform: lowercase;
}
.game-card-title {
  font-family: "UnifrakturMaguntia", serif;
  font-size: clamp(48px, 8vw, 80px);
  font-weight: 400;
  color: var(--ink);
  line-height: 1;
  margin: 0 0 20px;
  letter-spacing: -1px;
}
.game-card-sub {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.9;
  color: var(--text-dim);
  margin: 0 0 32px;
}
.game-btn-go {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--fog);
  background: var(--plum-deep);
  border: 1px solid var(--accent);
  border-radius: 4px;
  padding: 14px 36px;
  text-decoration: none;
  box-shadow: 0 0 18px rgba(212, 139, 148, 0.25), inset 0 1px 0 rgba(255,255,255,0.06);
  transition: background 0.2s, box-shadow 0.2s, color 0.2s;
}
.game-btn-go:hover {
  background: var(--plum);
  box-shadow: 0 0 32px rgba(212, 139, 148, 0.45), inset 0 1px 0 rgba(255,255,255,0.1);
  color: #fff;
}

/* --- hanging monsters row at bottom of card --- */
.game-hung-row {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-around;
  transform: translateY(100%);
  padding: 0 8px;
  pointer-events: none;
}
.game-hung {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: sway calc(2.8s + var(--sway-delay) * 0.5) ease-in-out infinite;
  animation-delay: var(--sway-delay);
  transform-origin: top center;
}
@keyframes sway {
  0%, 100% { transform: rotate(calc(var(--sway-dir) * -4deg)); }
  50%       { transform: rotate(calc(var(--sway-dir) *  4deg)); }
}
.game-hung-string {
  width: 1px;
  height: 28px;
  background: var(--bruise);
  opacity: 0.45;
}
.game-hung-creature {
  width: 44px;
  height: 44px;
  image-rendering: pixelated;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.6));
}
.game-hung-creature svg { width: 100%; height: 100%; display: block; }

/* extra bottom padding so monsters don't clip into next section */
#game .wrap { padding-bottom: 80px; }

@media (max-width: 600px) {
  .game-hung-creature { width: 32px; height: 32px; }
  .game-hung-string { height: 20px; }
  #game .wrap { padding-bottom: 60px; }
}

/* ============ FAKE MINT BUTTON ============ */
.fake-mint-btn {
  font-family: var(--mono);
  font-size: 11px;
  background: var(--ink);
  color: var(--fog);
  border: none;
  padding: 10px 22px;
  cursor: pointer;
  letter-spacing: 0.12em;
  margin-top: 28px;
  display: inline-block;
  text-transform: lowercase;
  transition: background 0.15s;
}
.fake-mint-btn:hover { background: var(--plum); }

/* ============ BSOD OVERLAY ============ */
.bsod-overlay {
  position: fixed; inset: 0;
  background: #0000aa;
  color: #fff;
  font-family: "Courier New", monospace;
  font-size: 14px;
  line-height: 1.6;
  padding: 60px 80px;
  z-index: 99999;
  display: flex; align-items: flex-start;
  animation: bsod-in 0.08s steps(1) both;
}
.bsod-text { max-width: 640px; }
.bsod-text p { margin: 0 0 6px; }
.bsod-text .bsod-title {
  background: #aaa; color: #000;
  padding: 2px 8px; margin-bottom: 24px;
  display: inline-block;
}
.bsod-text .bsod-blink { animation: blink 1s steps(1) infinite; }
.bsod-fade { animation: bsod-out 0.4s ease forwards; }
@keyframes bsod-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes bsod-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes blink { 50% { opacity: 0; } }

/* ============ COLLABS ============ */
.collabs-intro {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-soft);
  max-width: 560px;
  margin: -24px 0 52px;
  letter-spacing: 0.01em;
}
.collabs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.collab-card {
  display: block;
  text-decoration: none;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255,255,255,0.35);
  border: 1px solid rgba(29,20,26,0.07);
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 50px -18px rgba(20,10,25,0.3);
  transition: transform 0.5s cubic-bezier(.2,.7,.2,1), box-shadow 0.5s;
  position: relative;
}
.collab-card:hover {
  transform: translateY(-8px) rotate(-0.5deg);
  box-shadow: 0 32px 70px -20px rgba(20,10,25,0.4);
}
.collab-img-wrap {
  aspect-ratio: 1/1;
  overflow: hidden;
  position: relative;
}
.collab-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.92);
  transition: transform 0.7s ease, filter 0.5s;
}
.collab-card:hover .collab-img {
  transform: scale(1.06);
  filter: saturate(1.05);
}
.collab-shimmer {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 60%);
  pointer-events: none;
}
.collab-info {
  padding: 20px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
}
.collab-name {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.1;
}
.collab-sub {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.collab-arrow {
  position: absolute;
  right: 20px; top: 50%;
  transform: translateY(-50%) translateX(4px);
  font-size: 16px;
  color: var(--accent);
  opacity: 0;
  transition: all 0.3s;
}
.collab-card:hover .collab-arrow { opacity: 1; transform: translateY(-50%) translateX(0); }

/* ============ RPG DIALOGUE ============ */
@keyframes dialogue-float {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(-6px); }
}
@keyframes rpg-blink {
  0%,100% { opacity: 1; }
  50%      { opacity: 0; }
}
@keyframes sprite-glitch {
  0%        { transform: translate(0,0);       filter: none; clip-path: none; }
  8%        { transform: translate(-10px,2px); filter: brightness(1.8) hue-rotate(90deg) saturate(4) contrast(1.6); clip-path: inset(0% 0 0% 0); }
  16%       { transform: translate(12px,-4px); filter: brightness(0.3) hue-rotate(210deg) saturate(0) contrast(3); clip-path: inset(10% 0 60% 0); }
  24%       { transform: translate(-8px,6px);  filter: brightness(2.2) saturate(0);  clip-path: inset(58% 0 8% 0); }
  32%       { transform: translate(14px,0);    filter: hue-rotate(320deg) brightness(1.6) contrast(2); clip-path: none; }
  40%       { transform: translate(-5px,-3px); filter: brightness(0.2) contrast(4); clip-path: inset(30% 0 30% 0); }
  48%       { transform: translate(8px,4px);   filter: brightness(1.5) hue-rotate(140deg) saturate(3); clip-path: none; }
  56%       { transform: translate(-12px,2px); filter: saturate(0) brightness(1.9); clip-path: inset(5% 0 72% 0); }
  64%       { transform: translate(6px,-5px);  filter: hue-rotate(270deg) brightness(0.5); clip-path: inset(70% 0 3% 0); }
  72%       { transform: translate(-3px,2px);  filter: brightness(2) hue-rotate(45deg); clip-path: none; }
  80%       { transform: translate(10px,0);    filter: brightness(0.6) saturate(0); }
  88%       { transform: translate(-6px,-2px); filter: none; }
  100%      { transform: translate(0,0);       filter: none; clip-path: none; }
}

@keyframes box-glitch {
  0%,100%   { transform: translate(0,0);      filter: none;                                        border-color: #3a2a44; }
  12%       { transform: translate(-7px,2px); filter: brightness(1.4) hue-rotate(80deg);           border-color: #ff0055; }
  24%       { transform: translate(9px,-3px); filter: brightness(0.5) saturate(0) contrast(2);     border-color: #00ffee; }
  36%       { transform: translate(-5px,4px); filter: brightness(1.7) hue-rotate(200deg);          border-color: #ff0055; clip-path: inset(18% 0 42% 0); }
  48%       { clip-path: inset(60% 0 4% 0);  transform: translate(8px,0);  filter: none;           border-color: #3a2a44; }
  60%       { clip-path: none; transform: translate(-4px,-2px); filter: brightness(0.4) contrast(3); }
  72%       { transform: translate(6px,3px);  filter: brightness(1.3) hue-rotate(120deg); }
  84%       { transform: translate(-2px,0);   filter: none; }
}
@keyframes mini-float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-5px); }
}

.rpg-dialogue {
  position: fixed;
  bottom: 56px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9990;
  display: flex;
  align-items: flex-end;
  gap: 0;
  animation: dialogue-float 3.5s ease-in-out infinite;
  user-select: none;
}
.rpg-sprite {
  width: 78px;
  height: 78px;
  object-fit: contain;
  image-rendering: pixelated;
  flex-shrink: 0;
  margin-bottom: 4px;
  filter: drop-shadow(0 4px 14px rgba(20,10,25,0.6));
  cursor: pointer;
  transition: transform 0.2s;
}
.rpg-sprite:hover { transform: scale(1.08); }
.rpg-sprite.rpg-glitch {
  animation: sprite-glitch 0.32s steps(6) infinite;
}
.rpg-box.box-glitch {
  animation: box-glitch 0.38s steps(5) infinite;
}

/* pixel-bordered box */
.rpg-box {
  background: rgba(8, 4, 12, 0.95);
  border: 2px solid #3a2a44;
  outline: 1px solid rgba(255,255,255,0.06);
  border-radius: 0;
  padding: 0;
  min-width: 340px;
  max-width: 500px;
  position: relative;
  box-shadow:
    0 0 0 1px #0e0a10,
    4px 4px 0 rgba(0,0,0,0.8),
    0 12px 40px rgba(0,0,0,0.7),
    inset 0 1px 0 rgba(255,255,255,0.04);
  cursor: pointer;
}
/* left arrow from sprite */
.rpg-box::before {
  content: "";
  position: absolute;
  left: -10px; bottom: 22px;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-right: 10px solid #3a2a44;
}
.rpg-box::after {
  content: "";
  position: absolute;
  left: -8px; bottom: 23px;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-right: 9px solid rgba(8,4,12,0.95);
}
/* scanline overlay inside box */
.rpg-noise {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    0deg,
    transparent 0px,
    transparent 2px,
    rgba(255,255,255,0.018) 2px,
    rgba(255,255,255,0.018) 3px
  );
  pointer-events: none;
  z-index: 0;
}
.rpg-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 10px 5px;
  border-bottom: 1px solid #2a1a34;
  position: relative; z-index: 1;
}
.rpg-name {
  font-family: "Press Start 2P", monospace;
  font-size: 8px;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: lowercase;
}
.rpg-mute {
  background: none;
  border: 1px solid #3a2a44;
  color: rgba(255,255,255,0.4);
  font-size: 10px;
  cursor: pointer;
  padding: 1px 5px;
  line-height: 1;
  transition: all 0.15s;
}
.rpg-mute:hover { border-color: var(--accent); color: var(--accent); }
.rpg-text {
  font-family: "Press Start 2P", monospace;
  font-size: 9px;
  line-height: 2;
  color: #ede4f0;
  letter-spacing: 0.04em;
  min-height: 44px;
  word-break: break-word;
  padding: 10px 40px 12px 12px;
  position: relative; z-index: 1;
}
.rpg-cursor {
  display: inline-block;
  animation: rpg-blink 0.7s steps(1) infinite;
  color: var(--accent);
  margin-left: 1px;
}
.rpg-prompt {
  position: absolute;
  bottom: 8px; right: 10px;
  font-family: "Press Start 2P", monospace;
  font-size: 7px;
  color: var(--accent);
  animation: rpg-blink 1.1s ease-in-out infinite;
  z-index: 1;
  letter-spacing: 0.05em;
}
.rpg-prompt-next { font-size: 6px; }

.rpg-close {
  position: absolute;
  top: -11px; right: -11px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(8,4,12,0.95);
  border: 1px solid #3a2a44;
  color: rgba(255,255,255,0.4);
  font-size: 9px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
  z-index: 2;
}
.rpg-close:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* mini mode — sprite only, bottom-left */
.rpg-mini {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 9990;
  cursor: pointer;
  animation: mini-float 3.5s ease-in-out infinite;
  user-select: none;
  text-align: center;
}
.rpg-sprite-mini-img {
  width: 72px; height: 72px;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 4px 12px rgba(20,10,25,0.6));
  display: block;
  transition: transform 0.2s;
}
.rpg-mini:hover .rpg-sprite-mini-img { transform: scale(1.1); }
.rpg-mini-hint {
  font-family: "Press Start 2P", monospace;
  font-size: 6px;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.08em;
  margin-top: 4px;
  text-align: center;
}

/* ── hide decorative floating labels that overflow on screens < 1360px ── */
/* these are positioned with negative offsets; they only look right on wide screens */
@media (max-width: 1360px) {
  .y2k-note, .ascii-float, .scrap { display: none; }
}

@media (max-width: 900px) {
  .wrap { padding: 0 20px; }
  .nav { padding: 14px 20px; }
  .nav-links { display: none; }
  .hero-inner, .world-grid, .petra-grid, .phases-grid, .footer-grid, .collabs-grid { grid-template-columns: 1fr; gap: 48px; }
  .gallery-strip { grid-template-columns: repeat(2, 1fr); }
  .vault { grid-template-columns: 1fr; padding: 32px 24px; }
  .section { padding: 80px 0; }
  .road-item { grid-template-columns: 32px 1fr; }
  .road-item .road-badge { grid-column: 2; }
  .footer-brand .mark { font-size: 72px; }

  /* ── hide decorative floating labels (already caught above, kept for clarity) ── */
  .y2k-note, .ascii-float, .scrap { display: none; }

  /* ── rpg close button: keep inside screen edge ── */
  .rpg-close { right: 4px; top: -4px; }

  /* ── mobile: show only 8 gallery cards (6 revealed + 2 classified) ── */
  .gallery-strip:not(.gallery-secret) .gallery-card:nth-child(n+7) { display: none; }
  .gallery-secret .gallery-card:nth-child(n+3) { display: none; }

  /* ── mobile countdown: prevent overflow ── */
  .countdown { gap: 8px; flex-wrap: nowrap; }
  .countdown-box { min-width: 0; flex: 1; padding: 14px 6px; }
  .countdown-num { font-size: 38px; }
  .vault-title { font-size: 48px; }

  /* ── mobile dialogue: narrower box, fits screen ── */
  .rpg-dialogue {
    left: 8px;
    right: 8px;
    transform: none;
    bottom: 14px;
    animation: dialogue-float-mobile 3.5s ease-in-out infinite;
  }
  .rpg-box {
    min-width: 0;
    max-width: none;
    flex: 1;
  }
  .rpg-sprite { width: 66px; height: 66px; }
}

@keyframes dialogue-float-mobile {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

@media (max-width: 480px) {
  /* extra-small phones: tighten countdown further */
  .vault { padding: 24px 16px; }
  .countdown { gap: 5px; }
  .countdown-box { padding: 10px 4px; }
  .countdown-num { font-size: 30px; }
  .vault-title { font-size: 38px; }
  .vault-sub { font-size: 13px; }
}
