/* =========================================================
   JUST_ANOTHER_STUDIOS v2.0 — "never grow up."
   3D graffiti — dark asphalt, neon spray, real depth.
   ========================================================= */

:root {
  --bg: #0a0a10;
  --bg-2: #10101a;
  --bg-3: #161622;
  --ink: #f4f0e6;
  --mute: #9a95a5;
  --dim: #4a4655;
  --line: rgba(244, 240, 230, 0.12);

  --red: #ff2c4c;
  --yellow: #ffd23f;
  --cyan: #2de2e6;
  --pink: #ff2cd6;
  --lime: #b6ff2c;
  --purple: #9b5bff;
  --accent: var(--red);

  --font-display: "Rubik Wet Paint", "Permanent Marker", cursive;
  --font-marker: "Permanent Marker", cursive;
  --font-script: "Caveat", cursive;
  --font-body: "Space Grotesk", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --shadow-pop: 6px 6px 0 rgba(0, 0, 0, 0.85);
  --ease-pop: cubic-bezier(0.2, 0.9, 0.25, 1.2);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; overflow-x: clip; }

body {
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(155, 91, 255, 0.10), transparent 60%),
    radial-gradient(1000px 700px at -10% 30%, rgba(45, 226, 230, 0.07), transparent 55%),
    radial-gradient(900px 900px at 50% 110%, rgba(255, 44, 76, 0.08), transparent 60%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; padding: 0; }
img { display: block; max-width: 100%; }
::selection { background: var(--accent); color: #fff; }

:focus-visible { outline: 2px dashed var(--yellow); outline-offset: 3px; border-radius: 4px; }

.accent { color: var(--accent); }
.wrap { max-width: 1360px; margin: 0 auto; padding: 0 44px; position: relative; }
@media (max-width: 720px) { .wrap { padding: 0 22px; } }

/* =========================================================
   AMBIENT LAYERS
   ========================================================= */
#fx-bg {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}
.vignette {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(0, 0, 0, 0.5) 100%);
}
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPSczMDAnIGhlaWdodD0nMzAwJz48ZmlsdGVyIGlkPSduJz48ZmVUdXJidWxlbmNlIGJhc2VGcmVxdWVuY3k9JzAuODUnIG51bU9jdGF2ZXM9JzInIHNlZWQ9JzQnLz48ZmVDb2xvck1hdHJpeCB2YWx1ZXM9JzAgMCAwIDAgMSAgMCAwIDAgMCAxICAwIDAgMCAwIDEgIDAgMCAwIDAuNCAwJy8+PC9maWx0ZXI+PHJlY3Qgd2lkdGg9JzMwMCcgaGVpZ2h0PSczMDAnIGZpbHRlcj0ndXJsKCNuKScvPjwvc3ZnPg==");
  opacity: 0.05;
  mix-blend-mode: overlay;
  animation: grain-shift 0.9s steps(4) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-1.5%, 1%); }
  50% { transform: translate(1%, -1.5%); }
  75% { transform: translate(-1%, -1%); }
  100% { transform: translate(0, 0); }
}

/* CRT retro mode (konami unlock) */
.crt { position: fixed; inset: 0; z-index: 95; pointer-events: none; opacity: 0; transition: opacity 0.6s; }
html.retro .crt {
  opacity: 1;
  background:
    radial-gradient(120% 100% at 50% 50%, transparent 60%, rgba(45, 226, 230, 0.06) 100%),
    repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0.22) 0 2px, transparent 2px 4px);
}
/* note: never put filter on body/html permanently — it breaks position:fixed children */

/* All real content sits above the fx canvas */
.nav, .hero, .tapes, .section, .footer, .scroll-progress { position: relative; z-index: 2; }

/* =========================================================
   CUSTOM CURSOR — 3D target-lock reticle
   ========================================================= */
#cursor { display: none; }
html.has-custom-cursor, html.has-custom-cursor * { cursor: none !important; }
@media (pointer: fine) {
  #cursor {
    /* above everything — panels (310), modals (320), toasts (300) — or it vanishes over them */
    display: block; position: fixed; left: 0; top: 0; z-index: 500;
    pointer-events: none; perspective: 300px;
  }
  .cur-3d {
    position: absolute; width: 48px; height: 48px;
    margin: -24px 0 0 -24px;
    transform-style: preserve-3d;
    will-change: transform;
  }
  .cur-ret {
    position: absolute; inset: 0; color: rgba(244, 240, 230, 0.75);
    filter: drop-shadow(0 0 6px rgba(45, 226, 230, 0.45));
    transition: color 0.18s, transform 0.25s var(--ease-pop);
  }
  .ret-ring {
    transform-origin: 24px 24px;
    animation: ret-spin 3.2s linear infinite;
  }
  @keyframes ret-spin { to { transform: rotate(360deg); } }
  .ret-brackets {
    opacity: 0;
    transform: scale(0.55);
    transform-origin: 24px 24px;
    transition: opacity 0.18s, transform 0.22s var(--ease-pop);
  }
  .cur-dot {
    position: absolute; left: 50%; top: 50%;
    width: 6px; height: 6px; border-radius: 50%;
    margin: -3px 0 0 -3px;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
    transition: background 0.18s, box-shadow 0.18s, transform 0.18s;
  }
  /* target lock */
  #cursor.is-link .cur-ret { color: var(--yellow); transform: scale(1.18); filter: drop-shadow(0 0 8px rgba(255, 210, 63, 0.6)); }
  #cursor.is-link .ret-brackets { opacity: 1; transform: scale(1); }
  #cursor.is-link .ret-ring { animation-duration: 1.1s; }
  #cursor.is-link .cur-dot { background: var(--yellow); box-shadow: 0 0 12px var(--yellow); }
  #cursor.is-down .cur-ret { transform: scale(0.8); color: var(--accent); }
  #cursor.is-down .cur-dot { transform: scale(1.8); }
  #cursor.is-hidden { opacity: 0; }
}
.splat {
  position: fixed; z-index: 499; pointer-events: none;
  border-radius: 50%;
  animation: splat-out 0.55s var(--ease-out) forwards;
}
@keyframes splat-out {
  0% { transform: translate(-50%, -50%) scale(0.2); opacity: 0.9; }
  100% { transform: translate(-50%, -50%) scale(1.6); opacity: 0; }
}

/* =========================================================
   NAV + HUD
   ========================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 26px;
  transition: background 0.35s, backdrop-filter 0.35s, box-shadow 0.35s, padding 0.35s;
}
.nav.scrolled {
  padding: 9px 26px;
  background: rgba(10, 10, 16, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 12px 40px rgba(0, 0, 0, 0.45);
}
.nav-brand { display: flex; align-items: center; gap: 11px; }
.nav-brand img {
  width: 42px; height: 42px; border-radius: 50%;
  border: 2px solid var(--ink);
  transition: transform 0.4s var(--ease-pop);
  background: var(--bg);
}
.nav-brand:hover img { transform: rotate(-14deg) scale(1.08); }
.nav-brand b {
  font-family: var(--font-display); font-weight: 400; font-size: 17px;
  letter-spacing: 0.01em;
}
.nav-links {
  display: flex; gap: 6px; align-items: center;
  font-family: var(--font-mono); font-size: 11.5px; text-transform: lowercase; letter-spacing: 0.06em;
  background: rgba(16, 16, 26, 0.7);
  border: 1px solid var(--line);
  padding: 6px; border-radius: 999px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.nav-links a {
  padding: 7px 14px; border-radius: 999px; opacity: 0.75;
  transition: opacity 0.2s, background 0.2s, color 0.2s, transform 0.2s;
}
.nav-links a:hover { opacity: 1; background: var(--ink); color: var(--bg); transform: rotate(-2deg); }

.hud { display: flex; align-items: center; gap: 12px; }
.hud-xp {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.05em;
  color: var(--mute);
}
.hud-lv { color: var(--yellow); font-weight: 700; }
.hud-bar {
  width: 74px; height: 8px; border-radius: 99px;
  border: 1px solid var(--line); background: rgba(0, 0, 0, 0.5);
  overflow: hidden; display: inline-block;
}
.hud-bar i {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--yellow), var(--red));
  border-radius: 99px;
  transition: width 0.7s var(--ease-out);
  box-shadow: 0 0 10px rgba(255, 210, 63, 0.7);
}
.hud-trophy {
  display: flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 700;
  border: 1.5px solid var(--ink); border-radius: 999px;
  padding: 7px 13px;
  background: rgba(16, 16, 26, 0.8);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.8);
  transition: transform 0.18s var(--ease-pop), box-shadow 0.18s, background 0.18s;
}
.hud-trophy:hover { transform: translate(-1px, -2px) rotate(-2deg); box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.8); background: var(--bg-3); }
.hud-trophy.bounce { animation: trophy-bounce 0.6s var(--ease-pop); }
@keyframes trophy-bounce {
  0% { transform: scale(1); } 40% { transform: scale(1.25) rotate(-6deg); } 100% { transform: scale(1); }
}
@media (max-width: 960px) {
  .hud-xp { display: none; }
  /* backdrop-filter would make .nav the containing block for the fixed dock below */
  .nav.scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(10, 10, 16, 0.94); }
  /* nav links become a game-style bottom dock */
  .nav-links {
    position: fixed;
    left: 50%; bottom: 14px; top: auto;
    transform: translateX(-50%);
    z-index: 100;
    background: rgba(10, 10, 16, 0.88);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--line);
    max-width: calc(100vw - 24px);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav-links a { padding: 8px 12px; white-space: nowrap; }
  /* keep the dock's lane clear */
  .hero-scrollcue { display: none; }
  .toast-stack { bottom: 76px; right: 12px; left: 12px; align-items: center; }
}

.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 101; pointer-events: none;
}
.scroll-progress i {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--pink), var(--yellow), var(--red));
  box-shadow: 0 0 12px rgba(255, 44, 76, 0.6);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 130px 0 70px;
  overflow: hidden;
  perspective: 1200px;
}
.hero-grid {
  display: grid; grid-template-columns: 1.25fr 1fr;
  gap: 40px; align-items: center;
}
.eyebrow {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--mute);
  display: flex; align-items: center; gap: 10px; margin-bottom: 26px;
}
.eyebrow-star { color: var(--yellow); animation: spin-slow 8s linear infinite; display: inline-block; }
@keyframes spin-slow { to { transform: rotate(360deg); } }

.hero-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(72px, 12.5vw, 190px);
  line-height: 0.88; letter-spacing: -0.01em;
  margin: 0; text-transform: lowercase;
  transform-style: preserve-3d;
}
.hero-title .line {
  display: block; position: relative;
  opacity: 0; transform: translateY(60px) rotate(-3deg);
  animation: line-drop 0.85s var(--ease-pop) forwards;
  /* 3D extrusion */
  text-shadow:
    1px 1px 0 #2a2433, 2px 2px 0 #2a2433, 3px 3px 0 #241f2c,
    4px 4px 0 #201b28, 5px 5px 0 #1c1723, 6px 6px 0 #18141f,
    8px 8px 0 rgba(0, 0, 0, 0.55), 14px 18px 40px rgba(0, 0, 0, 0.6);
}
.hero-title .line:nth-child(1) { animation-delay: 0.08s; }
.hero-title .line:nth-child(2) { animation-delay: 0.22s; margin-left: 0.55em; }
.hero-title .line:nth-child(3) { animation-delay: 0.38s; margin-left: 0.2em; }
.hero-title .line .accent {
  text-shadow:
    1px 1px 0 #7a1024, 2px 2px 0 #6d0e20, 3px 3px 0 #600c1c,
    4px 4px 0 #530a18, 5px 5px 0 #460814, 6px 6px 0 #390610,
    8px 8px 0 rgba(0, 0, 0, 0.55), 0 0 46px rgba(255, 44, 76, 0.55);
}
@keyframes line-drop {
  0% { opacity: 0; transform: translateY(60px) rotate(-3deg); }
  70% { opacity: 1; transform: translateY(-6px) rotate(0.6deg); }
  100% { opacity: 1; transform: translateY(0) rotate(0); }
}

.hero-lede {
  margin-top: 30px; font-size: 19px; max-width: 520px; color: var(--ink);
  line-height: 1.6;
}
.hero-lede .strike { text-decoration: line-through; color: var(--mute); text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.hero-lede em { font-family: var(--font-script); font-style: normal; color: var(--yellow); font-size: 1.28em; line-height: 1; }

.hero-stickers { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.sticker {
  font-family: var(--font-marker); font-size: 14.5px; text-transform: lowercase;
  padding: 7px 15px; border: 1.5px solid var(--ink); border-radius: 999px;
  background: var(--bg-2);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.8);
  transform: rotate(-2deg);
  transition: transform 0.2s var(--ease-pop), box-shadow 0.2s;
}
.sticker:hover { transform: rotate(0deg) translateY(-3px) scale(1.04); box-shadow: 4px 6px 0 rgba(0, 0, 0, 0.8); }
.sticker:nth-child(2) { transform: rotate(1.8deg); background: var(--ink); color: var(--bg); }
.sticker:nth-child(3) { transform: rotate(-1deg); background: var(--accent); color: #fff; border-color: #fff; }
.sticker:nth-child(4) { transform: rotate(2.4deg); background: var(--bg-2); color: var(--cyan); border-color: var(--cyan); }

.hero-cta { display: flex; gap: 16px; margin-top: 38px; flex-wrap: wrap; }

.btn {
  font-family: var(--font-display); font-weight: 400; font-size: 19px; text-transform: lowercase;
  padding: 15px 26px; border: 2px solid var(--ink); border-radius: 999px;
  background: var(--bg-2); color: var(--ink);
  box-shadow: var(--shadow-pop);
  display: inline-flex; align-items: center; gap: 12px;
  cursor: pointer; position: relative;
  transition: transform 0.16s var(--ease-pop), box-shadow 0.16s, background 0.2s;
  will-change: transform;
}
.btn:hover { transform: translate(-2px, -3px); box-shadow: 8px 9px 0 rgba(0, 0, 0, 0.85); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.85); }
.btn-primary {
  background: var(--accent); color: #fff; border-color: #fff;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.85), 0 0 30px rgba(255, 44, 76, 0.35);
}
.btn-arrow { display: inline-block; transition: transform 0.22s var(--ease-pop); }
.btn:hover .btn-arrow { transform: translateX(5px) rotate(-8deg); }
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-row.center { justify-content: center; }

/* mascot — real logo, black knocked out via screen blend, orbited by junk */
.hero-mascot { display: flex; justify-content: center; align-items: center; }
.mascot-3d {
  position: relative; width: min(88%, 440px);
  transform-style: preserve-3d;
  will-change: transform;
  animation: mascot-bob 5.5s ease-in-out infinite;
}
@keyframes mascot-bob {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-16px) rotate(1.2deg); }
}
.mascot-img {
  position: relative; z-index: 2;
  width: 100%;
  /* logo-cut.png is the studio logo with its black knocked out to alpha */
  filter: drop-shadow(0 0 26px rgba(255, 44, 76, 0.28)) drop-shadow(0 18px 40px rgba(0, 0, 0, 0.6));
  user-select: none;
}
.mascot-glow {
  position: absolute; inset: 6%;
  background: radial-gradient(50% 50% at 50% 46%, rgba(255, 44, 76, 0.16), rgba(155, 91, 255, 0.08) 55%, transparent 75%);
  animation: glow-breathe 5.5s ease-in-out infinite;
  z-index: 0;
}
@keyframes glow-breathe {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}
.mascot-ring {
  position: absolute; border-radius: 50%; z-index: 1;
  pointer-events: none;
}
.mascot-ring.ring-1 {
  inset: -7%;
  border: 1.5px dashed rgba(244, 240, 230, 0.28);
  animation: spin-slow 26s linear infinite;
}
.mascot-ring.ring-2 {
  inset: -16%;
  border: 1.5px solid rgba(45, 226, 230, 0.16);
  border-top-color: rgba(45, 226, 230, 0.55);
  animation: spin-slow 14s linear infinite reverse;
}
/* orbiters — a red orb and a yellow star circling the mascot */
.mascot-orbiter {
  position: absolute; inset: -7%; border-radius: 50%;
  animation: spin-slow 9s linear infinite;
  z-index: 3; pointer-events: none;
}
.mascot-orbiter.rev { inset: -16%; animation: spin-slow 17s linear infinite reverse; }
.mascot-orbiter .m-orb {
  position: absolute; top: -7px; left: 50%; margin-left: -7px;
  width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ff8fa3, var(--accent) 60%);
  box-shadow: 0 0 16px var(--accent), 0 0 40px rgba(255, 44, 76, 0.4);
}
.mascot-orbiter .m-star {
  position: absolute; bottom: -4px; left: 50%;
  font-size: 20px; font-style: normal; color: var(--yellow);
  text-shadow: 0 0 14px var(--yellow);
  animation: spin-slow 4s linear infinite; display: inline-block;
}
.m-spark {
  position: absolute; z-index: 3; font-style: normal;
  color: var(--cyan); text-shadow: 0 0 12px currentColor;
  animation: sparkle-tw 2.6s ease-in-out infinite;
  pointer-events: none;
}
.m-spark.s1 { top: 4%; left: -4%; font-size: 22px; color: var(--pink); animation-delay: 0.4s; }
.m-spark.s2 { top: 58%; right: -8%; font-size: 15px; color: var(--cyan); animation-delay: 1.2s; }
.m-spark.s3 { bottom: 2%; left: 10%; font-size: 17px; color: var(--lime); animation-delay: 2s; }
@keyframes sparkle-tw {
  0%, 100% { opacity: 0.15; transform: scale(0.6) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.15) rotate(90deg); }
}
.mascot-shadow {
  position: absolute; left: 16%; right: 16%; bottom: -44px; height: 30px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(0, 0, 0, 0.6), transparent 70%);
  animation: shadow-pulse 5.5s ease-in-out infinite;
}
@keyframes shadow-pulse {
  0%, 100% { transform: scaleX(1); opacity: 0.8; }
  50% { transform: scaleX(0.82); opacity: 0.5; }
}

.hero-rings {
  position: absolute; right: -180px; top: 8%;
  width: 640px; height: 640px; border-radius: 50%;
  border: 1.5px dashed rgba(244, 240, 230, 0.12);
  animation: spin-slow 70s linear infinite;
  pointer-events: none;
}
.hero-rings::before, .hero-rings::after {
  content: ""; position: absolute; border-radius: 50%;
}
.hero-rings::before { inset: 90px; border: 1.5px solid rgba(45, 226, 230, 0.12); }
.hero-rings::after { inset: 200px; border: 1.5px dashed rgba(255, 44, 76, 0.16); }

.hero-scrollcue {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--mute); opacity: 0.8;
}
.hero-scrollcue i {
  width: 1.5px; height: 42px; background: linear-gradient(var(--accent), transparent);
  animation: cue-drip 1.6s var(--ease-out) infinite;
}
@keyframes cue-drip {
  0% { transform: scaleY(0); transform-origin: top; }
  60% { transform: scaleY(1); transform-origin: top; }
  100% { transform: scaleY(1); opacity: 0; }
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-mascot { order: -1; }
  .mascot-3d { width: min(56%, 260px); }
  .hero { padding-top: 110px; }
}

/* =========================================================
   MARQUEE TAPES — two crossing angled bands
   ========================================================= */
.tapes { position: relative; padding: 28px 0; overflow: hidden; }
.tape {
  border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  padding: 13px 0; overflow: hidden; white-space: nowrap;
  width: 110vw; margin-left: -5vw;
}
.tape-a { background: var(--ink); color: var(--bg); transform: rotate(-1.6deg); box-shadow: 0 14px 40px rgba(0,0,0,.5); }
.tape-b { background: var(--accent); color: #fff; transform: rotate(1.2deg); margin-top: -14px; position: relative; z-index: -1; }
.tape-track {
  display: inline-flex; gap: 48px; align-items: center;
  font-family: var(--font-display); font-size: clamp(26px, 3.6vw, 46px);
  text-transform: lowercase; line-height: 1;
  animation: tape-scroll 30s linear infinite;
}
.tape-b .tape-track { animation-direction: reverse; animation-duration: 38s; }
.tape-track > span { display: inline-flex; gap: 48px; align-items: center; }
.tape-track .star { color: var(--accent); font-size: 0.8em; }
.tape-b .tape-track .star { color: var(--yellow); }
.tape-track .star.catchme { cursor: pointer; pointer-events: auto; transition: transform 0.2s, color 0.2s; }
.tape-track .star.catchme:hover { transform: scale(1.5) rotate(72deg); color: var(--cyan); }
@keyframes tape-scroll { to { transform: translateX(-50%); } }
.tape:hover .tape-track { animation-play-state: paused; }

/* =========================================================
   SECTIONS
   ========================================================= */
.section { padding: 100px 0; }
.section-head { margin-bottom: 48px; max-width: 980px; }
.section-tag {
  font-family: var(--font-mono); font-size: 11.5px; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--accent);
  display: flex; align-items: center; gap: 9px; margin-bottom: 18px;
}
.section-tag::before { content: "★"; color: var(--yellow); }
.section-tag.center { justify-content: center; }
.section-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(44px, 6.4vw, 96px);
  line-height: 0.95; text-transform: lowercase; margin: 0;
  text-wrap: balance;
  text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.6), 0 18px 40px rgba(0, 0, 0, 0.4);
}
.section-sub { margin: 20px 0 0; color: var(--mute); font-size: 17px; max-width: 560px; }
@media (max-width: 720px) { .section { padding: 84px 0; } }

/* =========================================================
   GAMES GRID — 3D tilt cards
   ========================================================= */
.games-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  perspective: 1400px;
}
.game-card {
  position: relative;
  border: 2px solid var(--ink); border-radius: 18px;
  background: linear-gradient(160deg, var(--bg-3), var(--bg-2) 62%);
  padding: 22px; min-height: 264px;
  display: flex; flex-direction: column; gap: 12px;
  box-shadow: var(--shadow-pop);
  transform-style: preserve-3d;
  transition: box-shadow 0.25s, border-color 0.25s;
  will-change: transform;
  cursor: pointer;
  overflow: hidden;
}
.game-card::after { /* glare */
  content: ""; position: absolute; inset: 0; border-radius: 16px;
  background: radial-gradient(320px 320px at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, 0.14), transparent 60%);
  opacity: 0; transition: opacity 0.25s; pointer-events: none;
}
.game-card:hover { box-shadow: 10px 14px 0 rgba(0, 0, 0, 0.8), 0 0 44px var(--card-glow, rgba(255, 44, 76, 0.16)); border-color: var(--card-c, var(--ink)); z-index: 5; }
.game-card:hover::after { opacity: 1; }
.game-card .badge {
  position: absolute; top: 14px; right: 14px;
  font-family: var(--font-mono); font-size: 9px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--lime); border: 1px solid var(--lime);
  padding: 3px 8px; border-radius: 99px;
  transform: translateZ(30px);
}
.game-card .badge::before { content: "●"; margin-right: 5px; animation: blink 1.6s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
.game-card .icon-wrap {
  width: 54px; height: 54px; color: var(--card-c, var(--ink));
  transform: translateZ(40px);
  transition: transform 0.35s var(--ease-pop);
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.5));
}
.game-card:hover .icon-wrap { transform: translateZ(56px) rotate(-10deg) scale(1.12); }
.game-card .icon-wrap svg { width: 100%; height: 100%; }
.game-card h4 {
  font-family: var(--font-display); font-weight: 400; font-size: 20px;
  line-height: 1.05; text-transform: lowercase; margin: 0;
  word-break: break-word;
  transform: translateZ(26px);
}
.game-card .twist {
  font-size: 14px; line-height: 1.45; color: var(--mute); margin: 0; flex: 1;
  transform: translateZ(14px);
}
.game-card .meta {
  display: flex; justify-content: space-between; gap: 10px;
  font-family: var(--font-mono); font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--dim); padding-top: 12px; border-top: 1px dashed rgba(244, 240, 230, 0.18);
}
.game-card .meta .genre { color: var(--mute); }
.game-card .meta .year { color: var(--card-c, var(--accent)); font-weight: 700; }

/* the meta card — game #22 = this website */
.game-card.card-meta {
  border-style: dashed; border-color: var(--yellow);
  background: linear-gradient(160deg, rgba(255, 210, 63, 0.08), var(--bg-2) 70%);
}
.game-card.card-meta .you-are-here {
  font-family: var(--font-marker); color: var(--yellow); font-size: 13px;
  transform: rotate(-2deg) translateZ(30px);
}
@media (max-width: 1140px) { .games-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 840px) { .games-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (max-width: 520px) { .games-grid { grid-template-columns: 1fr; } }

/* =========================================================
   PLAY — orbit_swap live demo
   ========================================================= */
.section-play {
  background: linear-gradient(180deg, transparent, rgba(155, 91, 255, 0.05) 30%, rgba(255, 44, 76, 0.04) 70%, transparent);
}
.play-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.phone-frame {
  position: relative;
  width: 100%; max-width: 350px; margin: 0 auto;
  aspect-ratio: 9 / 16;
  border: 3px solid var(--ink); border-radius: 40px;
  background: #07070c;
  box-shadow:
    0 0 0 8px rgba(244, 240, 230, 0.05),
    18px 24px 0 rgba(0, 0, 0, 0.65),
    0 0 80px rgba(155, 91, 255, 0.18);
  overflow: hidden;
  transform-style: preserve-3d;
}
.phone-notch {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 34%; height: 18px; border-radius: 99px;
  background: #000; border: 1.5px solid rgba(244, 240, 230, 0.2);
  z-index: 3;
}
#orbit-canvas { width: 100%; height: 100%; display: block; touch-action: manipulation; }
/* the overlay is a bottom plate — the attract-mode playthrough stays visible above it */
.orbit-overlay {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 46px 16px 18px;
  background: linear-gradient(transparent, rgba(7, 7, 12, 0.92) 45%);
  transition: opacity 0.4s, visibility 0.4s, transform 0.4s var(--ease-out);
}
.orbit-overlay.hidden { opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(14px); }
.orbit-plate {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border: 1.5px solid var(--line); border-radius: 18px;
  background: rgba(13, 13, 21, 0.85);
  padding: 12px 12px 12px 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
}
.orbit-copy { min-width: 0; }
.orbit-logo {
  font-family: var(--font-display); font-size: 21px; text-transform: lowercase;
  line-height: 1.1;
  text-shadow: 0 0 22px rgba(255, 44, 76, 0.6), 2px 2px 0 rgba(0, 0, 0, 0.8);
}
.orbit-overlay p { font-size: 12px; color: var(--mute); margin: 3px 0 0; line-height: 1.45; }
.orbit-overlay b { color: var(--yellow); }
.orbit-overlay .btn { font-size: 15px; padding: 11px 16px; flex-shrink: 0; box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.85), 0 0 22px rgba(255, 44, 76, 0.35); }
.orbit-best { font-family: var(--font-mono); font-size: 10px; color: var(--cyan); letter-spacing: 0.06em; margin-top: 4px; }

.play-info h3 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(26px, 3vw, 40px); line-height: 1.1;
  text-transform: lowercase; margin: 18px 0 16px;
}
.play-info .blurb { font-size: 17px; color: var(--mute); line-height: 1.65; max-width: 560px; }
.play-info .blurb em { font-family: var(--font-script); font-style: normal; color: var(--yellow); font-size: 1.25em; }
.play-info .wink { color: var(--dim); font-size: 0.92em; }
.stamp {
  display: inline-block; font-family: var(--font-display); font-size: 16px; text-transform: lowercase;
  background: var(--accent); color: #fff; border: 2px solid #fff;
  padding: 5px 15px; border-radius: 999px; transform: rotate(-3deg);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.8), 0 0 24px rgba(255, 44, 76, 0.4);
}
.featured-details {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 22px;
  border-top: 1px dashed rgba(244, 240, 230, 0.2); border-bottom: 1px dashed rgba(244, 240, 230, 0.2);
  padding: 20px 0; margin: 26px 0 30px;
}
.featured-details dt {
  font-family: var(--font-mono); font-size: 9.5px; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--dim); margin-bottom: 3px;
}
.featured-details dd { font-family: var(--font-display); font-size: 16px; text-transform: lowercase; margin: 0; }
@media (max-width: 960px) {
  .play-grid { grid-template-columns: 1fr; gap: 44px; }
  .featured-details { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================
   THE WALL — spray canvas
   ========================================================= */
.section-wall { padding-top: 90px; }
.wall-frame {
  position: relative;
  border: 3px solid var(--ink); border-radius: 22px;
  background:
    repeating-linear-gradient(0deg, rgba(244, 240, 230, 0.025) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(90deg, rgba(244, 240, 230, 0.025) 0 1px, transparent 1px 84px),
    linear-gradient(170deg, #17171f, #101018);
  box-shadow: 10px 12px 0 rgba(0, 0, 0, 0.7), inset 0 0 90px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  height: clamp(320px, 52vw, 520px);
}
#wall-canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; touch-action: none; }
.wall-stencil {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: clamp(38px, 7.5vw, 110px);
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(244, 240, 230, 0.12);
  pointer-events: none; user-select: none;
  text-transform: lowercase;
}
.wall-tools {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  margin-top: 22px; flex-wrap: wrap;
}
.caps { display: flex; gap: 12px; flex-wrap: wrap; }
.cap {
  width: 40px; height: 40px; border-radius: 50%;
  border: 2.5px solid rgba(244, 240, 230, 0.25);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.6), inset 0 -6px 10px rgba(0, 0, 0, 0.35);
  transition: transform 0.18s var(--ease-pop), border-color 0.18s, box-shadow 0.18s;
  position: relative;
}
.cap:hover { transform: translateY(-4px) rotate(-8deg); }
.cap.active {
  border-color: #fff; transform: translateY(-4px) scale(1.12);
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.6), 0 0 22px var(--cap-c, #fff);
}
.tool-btn {
  font-family: var(--font-mono); font-size: 12px; text-transform: lowercase; letter-spacing: 0.04em;
  border: 1.5px solid var(--line); border-radius: 999px;
  padding: 10px 18px; background: var(--bg-2); color: var(--mute);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.7);
  transition: transform 0.16s var(--ease-pop), color 0.2s, border-color 0.2s;
}
.tool-btn:hover { transform: translate(-1px, -2px); color: var(--ink); border-color: var(--ink); }
.tool-btn b { color: var(--yellow); }
.tool-btn.danger:hover { color: var(--red); border-color: var(--red); }
.wall-actions { display: flex; gap: 12px; }

/* =========================================================
   MANIFESTO
   ========================================================= */
.manifesto-lines { display: flex; flex-direction: column; }
.manifesto-line {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(26px, 4vw, 54px); line-height: 1.08; text-transform: lowercase;
  padding: 26px 10px;
  border-top: 1px dashed rgba(244, 240, 230, 0.18);
  display: grid; grid-template-columns: 74px 1fr auto; gap: 28px; align-items: center;
  transition: transform 0.28s var(--ease-out), color 0.2s, background 0.2s, padding-left 0.28s var(--ease-out);
  border-radius: 12px;
}
.manifesto-line:last-child { border-bottom: 1px dashed rgba(244, 240, 230, 0.18); }
.manifesto-line:hover { transform: translateX(14px); background: rgba(244, 240, 230, 0.03); }
.manifesto-line:hover .doodle { opacity: 1; transform: rotate(-3deg) scale(1.06); }
.manifesto-line .num { font-family: var(--font-script); font-size: 30px; color: var(--dim); }
.manifesto-line .accent { color: var(--accent); }
.manifesto-line .doodle {
  font-family: var(--font-marker); font-size: 15px; color: var(--yellow);
  opacity: 0.35; text-align: right;
  transition: opacity 0.25s, transform 0.25s var(--ease-pop);
}
@media (max-width: 720px) {
  .manifesto-line { grid-template-columns: 44px 1fr; gap: 14px; }
  .manifesto-line .doodle { display: none; }
}

/* =========================================================
   NUMBERS
   ========================================================= */
.section-numbers { padding: 40px 0; }
.numbers {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 2px solid var(--ink); border-radius: 22px;
  background: linear-gradient(160deg, var(--bg-3), var(--bg-2));
  box-shadow: var(--shadow-pop);
  overflow: hidden;
}
.numbers > div {
  padding: 52px 34px;
  border-right: 1px dashed rgba(244, 240, 230, 0.16);
  transition: background 0.25s;
}
.numbers > div:hover { background: rgba(244, 240, 230, 0.035); }
.numbers > div:last-child { border-right: none; }
.numbers .big {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(48px, 6vw, 84px); line-height: 1; margin-bottom: 10px;
  text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.65);
}
.numbers .label { font-size: 15px; color: var(--mute); line-height: 1.45; }
@media (max-width: 880px) {
  .numbers { grid-template-columns: 1fr 1fr; }
  .numbers > div { border-bottom: 1px dashed rgba(244, 240, 230, 0.16); }
  .numbers > div:nth-child(even) { border-right: none; }
  .numbers > div:nth-child(n+3) { border-bottom: none; }
}

/* =========================================================
   PRESS
   ========================================================= */
.press-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.press-card {
  border: 2px solid var(--ink); border-radius: 18px;
  background: linear-gradient(165deg, var(--bg-3), var(--bg-2) 70%);
  padding: 34px; box-shadow: var(--shadow-pop);
  transform: rotate(-0.5deg);
  transition: transform 0.25s var(--ease-pop), box-shadow 0.25s;
}
.press-card:nth-child(even) { transform: rotate(0.7deg); }
.press-card:hover { transform: rotate(0) translateY(-6px); box-shadow: 9px 12px 0 rgba(0, 0, 0, 0.8); }
.press-card blockquote {
  font-family: var(--font-display); font-size: clamp(17px, 1.7vw, 23px);
  line-height: 1.35; margin: 0 0 22px; text-transform: lowercase; text-wrap: pretty;
}
.press-card cite {
  font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--mute); font-style: normal;
  display: flex; align-items: center; gap: 10px;
}
.press-card cite::before { content: "★"; color: var(--yellow); }
.press-card.press-meta { border-style: dashed; border-color: var(--cyan); }
@media (max-width: 760px) { .press-grid { grid-template-columns: 1fr; } }

/* =========================================================
   CTA / CAREERS
   ========================================================= */
.cta { text-align: center; }
.cta-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(52px, 8.5vw, 140px); line-height: 0.92; text-transform: lowercase;
  margin: 0 0 30px;
  text-shadow: 4px 4px 0 rgba(0, 0, 0, 0.65), 0 24px 60px rgba(0, 0, 0, 0.5);
}
.cta-p { max-width: 540px; margin: 0 auto 40px; font-size: 18px; color: var(--mute); line-height: 1.65; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { padding: 70px 0 30px; border-top: 2px solid var(--ink); background: rgba(7, 7, 12, 0.6); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 44px; margin-bottom: 70px; }
.footer-brand { display: flex; align-items: center; gap: 13px; }
.footer-brand img { width: 54px; height: 54px; border-radius: 50%; border: 2px solid var(--ink); }
.footer-brand b { font-family: var(--font-display); font-size: 21px; text-transform: lowercase; font-weight: 400; }
.footer-grid p { margin-top: 16px; font-size: 14.5px; color: var(--mute); line-height: 1.6; max-width: 320px; }
.footer-tagline { font-family: var(--font-marker); font-size: 19px !important; color: var(--ink) !important; }
.footer h5 {
  font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--dim); margin: 0 0 18px; font-weight: 500;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 11px; }
.footer ul a, .footer .linklike {
  font-family: var(--font-display); font-size: 17px; text-transform: lowercase;
  transition: color 0.2s, transform 0.2s; display: inline-block; text-align: left;
}
.footer ul a:hover, .footer .linklike:hover { color: var(--accent); transform: translateX(4px); }
.secret-13 { opacity: 0.14; font-size: 17px; }
.secret-13:hover { opacity: 0.5; color: var(--ink) !important; }
.footer-bottom {
  border-top: 1px dashed rgba(244, 240, 230, 0.18); padding-top: 22px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px;
  font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--dim);
}
.konami-hint { opacity: 0.4; letter-spacing: 0.2em; cursor: help; transition: opacity .3s, color .3s; }
.konami-hint:hover { opacity: 1; color: var(--yellow); }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; } }

/* =========================================================
   TOASTS (achievements)
   ========================================================= */
.toast-stack {
  position: fixed; right: 22px; bottom: 22px; z-index: 300;
  display: flex; flex-direction: column; gap: 12px; align-items: flex-end;
  pointer-events: none;
}
.toast {
  display: flex; gap: 14px; align-items: center;
  background: linear-gradient(160deg, var(--bg-3), var(--bg-2));
  border: 2px solid var(--yellow); border-radius: 16px;
  padding: 14px 20px 14px 14px;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.8), 0 0 34px rgba(255, 210, 63, 0.25);
  animation: toast-in 0.55s var(--ease-pop), toast-out 0.4s ease-in 4.4s forwards;
  max-width: min(360px, 88vw);
  pointer-events: auto;
}
.toast .t-ico {
  width: 46px; height: 46px; flex-shrink: 0; border-radius: 12px;
  display: grid; place-items: center; font-size: 24px;
  background: rgba(255, 210, 63, 0.12); border: 1.5px solid rgba(255, 210, 63, 0.5);
}
.toast .t-kicker {
  font-family: var(--font-mono); font-size: 9px; text-transform: uppercase;
  letter-spacing: 0.18em; color: var(--yellow); margin-bottom: 3px;
}
.toast .t-name { font-family: var(--font-display); font-size: 17px; text-transform: lowercase; line-height: 1.1; }
.toast .t-desc { font-size: 12.5px; color: var(--mute); margin-top: 2px; }
.toast .t-xp { font-family: var(--font-mono); font-size: 11px; color: var(--lime); font-weight: 700; margin-left: auto; padding-left: 8px; }
.toast.levelup { border-color: var(--cyan); box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.8), 0 0 34px rgba(45, 226, 230, 0.3); }
.toast.levelup .t-ico { background: rgba(45, 226, 230, 0.12); border-color: rgba(45, 226, 230, 0.5); }
.toast.levelup .t-kicker { color: var(--cyan); }
@keyframes toast-in {
  0% { transform: translateX(120%) rotate(4deg); opacity: 0; }
  70% { transform: translateX(-6px) rotate(-1deg); opacity: 1; }
  100% { transform: translateX(0) rotate(0); opacity: 1; }
}
@keyframes toast-out { to { transform: translateY(20px); opacity: 0; } }

/* =========================================================
   TROPHY PANEL
   ========================================================= */
.trophy-panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 310;
  width: min(420px, 94vw);
  background: rgba(12, 12, 19, 0.97);
  border-left: 2px solid var(--ink);
  box-shadow: -30px 0 80px rgba(0, 0, 0, 0.6);
  transform: translateX(105%);
  transition: transform 0.45s var(--ease-out);
  display: flex; flex-direction: column;
  backdrop-filter: blur(10px);
}
.trophy-panel.open { transform: translateX(0); }
.trophy-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 26px 16px;
}
.trophy-head h4 { font-family: var(--font-display); font-weight: 400; font-size: 30px; text-transform: lowercase; margin: 0; }
.panel-close {
  width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--line);
  display: grid; place-items: center; font-size: 15px; color: var(--mute);
  transition: transform 0.2s var(--ease-pop), color 0.2s, border-color 0.2s;
}
.panel-close:hover { transform: rotate(90deg); color: var(--ink); border-color: var(--ink); }
.trophy-meta {
  padding: 0 26px 18px;
  font-family: var(--font-mono); font-size: 11.5px; color: var(--mute); letter-spacing: 0.05em;
  border-bottom: 1px dashed rgba(244, 240, 230, 0.16);
}
.trophy-meta .bar { height: 9px; border-radius: 99px; background: rgba(0,0,0,.5); border: 1px solid var(--line); overflow: hidden; margin-top: 10px; }
.trophy-meta .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--yellow), var(--red)); transition: width .6s var(--ease-out); }
.trophy-list { flex: 1; overflow-y: auto; padding: 14px 18px; display: flex; flex-direction: column; gap: 8px; }
.trophy-item {
  display: flex; gap: 13px; align-items: center;
  border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px;
  transition: border-color 0.2s, background 0.2s;
}
.trophy-item.unlocked { border-color: rgba(255, 210, 63, 0.55); background: rgba(255, 210, 63, 0.05); }
.trophy-item .t-ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-size: 20px; background: rgba(244, 240, 230, 0.05); flex-shrink: 0; }
.trophy-item.locked .t-ico { filter: grayscale(1); opacity: 0.4; }
.trophy-item .t-name { font-family: var(--font-display); font-size: 15px; text-transform: lowercase; }
.trophy-item.locked .t-name { color: var(--mute); }
.trophy-item .t-desc { font-size: 12px; color: var(--dim); }
.trophy-item.unlocked .t-desc { color: var(--mute); }
.trophy-item .t-xp { margin-left: auto; font-family: var(--font-mono); font-size: 10.5px; color: var(--dim); flex-shrink: 0; }
.trophy-item.unlocked .t-xp { color: var(--lime); font-weight: 700; }
.trophy-item.hidden-ach.locked .t-name::after { content: " ???"; color: var(--dim); }
.trophy-foot { padding: 16px 26px 22px; border-top: 1px dashed rgba(244, 240, 230, 0.16); }
.trophy-foot p { font-size: 12px; color: var(--dim); margin: 0 0 12px; line-height: 1.5; }

/* =========================================================
   MODAL
   ========================================================= */
.modal-veil {
  position: fixed; inset: 0; z-index: 320;
  background: rgba(5, 5, 9, 0.8); backdrop-filter: blur(6px);
  display: grid; place-items: center; padding: 24px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.modal-veil.open { opacity: 1; visibility: visible; }
.modal {
  position: relative; width: min(560px, 100%); max-height: 82vh; overflow-y: auto;
  background: linear-gradient(165deg, var(--bg-3), var(--bg-2));
  border: 2px solid var(--ink); border-radius: 22px;
  padding: 36px;
  box-shadow: 10px 12px 0 rgba(0, 0, 0, 0.8);
  transform: translateY(26px) rotate(-1deg);
  transition: transform 0.4s var(--ease-pop);
}
.modal-veil.open .modal { transform: translateY(0) rotate(0); }
.modal .panel-close { position: absolute; top: 16px; right: 16px; }
.modal h3 { font-family: var(--font-display); font-weight: 400; font-size: 32px; text-transform: lowercase; margin: 0 0 16px; }
.modal p, .modal li { color: var(--mute); font-size: 15px; line-height: 1.65; }
.modal .patch-list { list-style: none; padding: 0; margin: 14px 0; display: flex; flex-direction: column; gap: 9px; }
.modal .patch-list li { padding-left: 22px; position: relative; }
.modal .patch-list li::before { content: "»"; position: absolute; left: 0; color: var(--accent); font-family: var(--font-mono); }
.modal .patch-list b { color: var(--ink); }
.modal .mono { font-family: var(--font-mono); font-size: 11px; color: var(--dim); letter-spacing: .05em; text-transform: uppercase; }

/* singularity modal flavor */
.modal.singularity { border-color: var(--purple); box-shadow: 10px 12px 0 rgba(0,0,0,.8), 0 0 70px rgba(155, 91, 255, 0.4); text-align: center; }
.modal.singularity h3 { color: var(--purple); text-shadow: 0 0 30px rgba(155, 91, 255, 0.7); }
.sing-orb {
  width: 90px; height: 90px; margin: 6px auto 20px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #cbb1ff, var(--purple) 45%, #1c0f38 90%);
  box-shadow: 0 0 60px rgba(155, 91, 255, 0.8), 0 0 120px rgba(155, 91, 255, 0.4);
  animation: sing-pulse 2.6s ease-in-out infinite;
}
@keyframes sing-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12) rotate(10deg); } }
html.warping { animation: warp 0.9s ease-in-out; }
@keyframes warp {
  0%, 100% { filter: none; }
  40% { filter: hue-rotate(160deg) blur(1.5px) contrast(1.3); }
  70% { filter: hue-rotate(-120deg); }
}

/* =========================================================
   REVEAL ON SCROLL
   ========================================================= */
.reveal { opacity: 0; transform: translateY(44px); transition: opacity 0.8s ease-out, transform 0.8s var(--ease-out); }
/* rescue: if effects.js never ran (failed load, stale cache), content shows itself */
html:not(.fx-on) .reveal,
html:not(.fx-on) .reveal.stagger > * {
  animation: reveal-rescue 0.6s ease-out 1.5s forwards;
}
@keyframes reveal-rescue { to { opacity: 1; transform: none; } }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal.stagger > * { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease-out, transform 0.6s var(--ease-pop); }
.reveal.in-view.stagger > * { opacity: 1; transform: translateY(0); }
.reveal.in-view.stagger > *:nth-child(1) { transition-delay: 0.04s; }
.reveal.in-view.stagger > *:nth-child(2) { transition-delay: 0.08s; }
.reveal.in-view.stagger > *:nth-child(3) { transition-delay: 0.12s; }
.reveal.in-view.stagger > *:nth-child(4) { transition-delay: 0.16s; }
.reveal.in-view.stagger > *:nth-child(5) { transition-delay: 0.20s; }
.reveal.in-view.stagger > *:nth-child(6) { transition-delay: 0.24s; }
.reveal.in-view.stagger > *:nth-child(7) { transition-delay: 0.28s; }
.reveal.in-view.stagger > *:nth-child(8) { transition-delay: 0.32s; }
.reveal.in-view.stagger > *:nth-child(n+9) { transition-delay: 0.36s; }

/* confetti pieces (spawned by js) */
.confetti-bit {
  position: fixed; z-index: 250; pointer-events: none; top: -20px;
  animation: confetti-fall linear forwards;
}
@keyframes confetti-fall {
  0% { transform: translateY(-4vh) rotate(0); opacity: 1; }
  100% { transform: translateY(108vh) rotate(720deg); opacity: 0.6; }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  #fx-bg, .grain { display: none; }
  .reveal, .reveal.stagger > * { opacity: 1; transform: none; }
}
