:root {
  /* AI cyberpunk graffiti — SlopHaus only (not Headwater linen) */
  --bg: #07060c;
  --surface: #0f0d18;
  --surface-elevated: #151222;
  --border: #2e2744;
  --border-light: #221c35;
  --text: #f2effa;
  --muted: #8f879f;
  --human: #ff4d6d;
  --human-bg: rgba(255, 77, 109, 0.12);
  --ai: #00e8ff;
  --ai-bg: rgba(0, 232, 255, 0.1);
  --accent: #c6ff3d;
  --accent-2: #ff2bd6;
  --accent-3: #7c5cff;
  --radius: 4px;
  --font: "Space Grotesk", "DM Sans", system-ui, sans-serif;
  --font-display: "Syne", "Space Grotesk", system-ui, sans-serif;
  --font-intrusion: "Share Tech Mono", ui-monospace, monospace;
  --font-graffiti: "Permanent Marker", "Syne", cursive;
  --glitch-magenta: #ff2bd6;
  --glitch-cyan: #00e8ff;
  --glitch-lime: #c6ff3d;
  --shadow-soft: 0 16px 48px rgba(0, 0, 0, 0.45), 0 0 40px rgba(255, 43, 214, 0.06);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.35);
  --glow-cyan: 0 0 18px rgba(0, 232, 255, 0.35);
  --glow-mag: 0 0 18px rgba(255, 43, 214, 0.35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.gallery-theme,
.glitch-theme {
  position: relative;
  background:
    radial-gradient(ellipse 90% 55% at 8% -5%, rgba(255, 43, 214, 0.16) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 95% 10%, rgba(0, 232, 255, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 50% 110%, rgba(198, 255, 61, 0.06) 0%, transparent 45%),
    radial-gradient(ellipse 40% 30% at 70% 60%, rgba(124, 92, 255, 0.08) 0%, transparent 50%),
    var(--bg);
}

/* Film grain + CRT scanlines — heavier */
.gallery-theme::before,
.glitch-theme::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.11;
  animation: grain-jitter 0.35s steps(2) infinite;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 1px,
      rgba(0, 0, 0, 0.18) 1px,
      rgba(0, 0, 0, 0.18) 2px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 3px,
      rgba(255, 43, 214, 0.015) 3px,
      rgba(255, 43, 214, 0.015) 4px
    ),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.65'/%3E%3C/svg%3E");
}

@keyframes grain-jitter {
  0% { transform: translate(0, 0); }
  50% { transform: translate(-1%, 0.5%); }
  100% { transform: translate(0.5%, -0.5%); }
}

/* Spray-paint graffiti wall wash — denser splatters */
.gallery-theme::after,
.glitch-theme::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.72;
  background:
    radial-gradient(circle at 8% 18%, rgba(255, 43, 214, 0.22) 0%, transparent 12%),
    radial-gradient(circle at 92% 12%, rgba(0, 232, 255, 0.18) 0%, transparent 14%),
    radial-gradient(circle at 18% 72%, rgba(198, 255, 61, 0.14) 0%, transparent 16%),
    radial-gradient(circle at 78% 68%, rgba(255, 43, 214, 0.16) 0%, transparent 13%),
    radial-gradient(circle at 48% 88%, rgba(0, 232, 255, 0.12) 0%, transparent 18%),
    radial-gradient(circle at 62% 28%, rgba(124, 92, 255, 0.14) 0%, transparent 11%),
    radial-gradient(ellipse 40% 8% at 15% 45%, rgba(255, 43, 214, 0.1) 0%, transparent 70%),
    radial-gradient(ellipse 30% 6% at 85% 55%, rgba(0, 232, 255, 0.1) 0%, transparent 70%);
  mix-blend-mode: screen;
}

/* Full-page glitch flash (toggled by JS) */
body.page-glitching {
  animation: page-rgb-split 0.18s steps(2) 2;
}

body.page-glitching main {
  filter: contrast(1.15) saturate(1.35);
}

@keyframes page-rgb-split {
  0% { filter: none; }
  25% { filter: hue-rotate(25deg) saturate(1.6); }
  50% {
    filter: none;
    transform: translateX(2px);
  }
  75% {
    filter: hue-rotate(-30deg);
    transform: translateX(-3px);
  }
  100% { filter: none; transform: none; }
}

/* Scanline wipe overlay */
.glitch-scan {
  position: fixed;
  left: 0;
  right: 0;
  height: 3px;
  pointer-events: none;
  z-index: 9999;
  background: linear-gradient(90deg, transparent, var(--glitch-cyan), var(--glitch-magenta), transparent);
  box-shadow: 0 0 18px var(--glitch-cyan), 0 0 8px var(--glitch-magenta);
  opacity: 0;
  mix-blend-mode: screen;
}

.glitch-scan.active {
  opacity: 0.85;
  animation: scan-wipe 0.45s linear forwards;
}

@keyframes scan-wipe {
  from { top: -2%; opacity: 0.9; }
  to { top: 102%; opacity: 0; }
}

/* Hidden AI intrusions — louder */
.ai-intrusion {
  position: fixed;
  pointer-events: none;
  z-index: 9997;
  font-family: var(--font-intrusion);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--glitch-cyan);
  text-shadow: 0 0 8px rgba(0, 232, 255, 0.7), 2px 0 var(--glitch-magenta), -2px 0 var(--glitch-lime);
  opacity: 0;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.ai-intrusion.visible { opacity: 0.88; animation: intrusion-glitch 0.35s steps(2) 1; }

.ai-intrusion--tl { top: 14%; left: 2%; transform: rotate(-16deg); }
.ai-intrusion--br { bottom: 12%; right: 2.5%; transform: rotate(11deg); color: var(--glitch-magenta); }
.ai-intrusion--mid { top: 38%; right: 4%; transform: rotate(-7deg); font-size: 0.58rem; color: var(--glitch-lime); }
.ai-intrusion--tr { top: 22%; right: 8%; transform: rotate(4deg); color: var(--glitch-magenta); font-size: 0.6rem; }
.ai-intrusion--bl { bottom: 28%; left: 4%; transform: rotate(-3deg); color: var(--glitch-lime); font-size: 0.55rem; }
.ai-intrusion--c { top: 62%; left: 35%; transform: rotate(2deg); font-size: 0.5rem; opacity: 0; color: var(--glitch-cyan); }

/* Card / section graffiti — always readable */
.graffiti-tag {
  position: absolute;
  font-family: var(--font-graffiti);
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--glitch-magenta);
  text-shadow:
    2px 2px 0 #000,
    -1px 0 var(--glitch-cyan),
    1px 0 var(--glitch-lime),
    0 0 14px rgba(255, 43, 214, 0.65);
  opacity: 0.72;
  pointer-events: none;
  z-index: 3;
  transform: rotate(8deg);
  animation: tag-wobble 4.5s ease-in-out infinite;
}

.product-card:hover .graffiti-tag,
.section-head:hover .graffiti-tag,
.hero:hover .graffiti-tag,
.loop-card:hover .graffiti-tag,
.game-tile:hover .graffiti-tag {
  opacity: 1;
  animation: intrusion-glitch 0.4s steps(2) 1, tag-wobble 4.5s ease-in-out infinite;
}

.graffiti-tag--1 { top: 0.35rem; right: 0.4rem; transform: rotate(9deg); }
.graffiti-tag--2 {
  bottom: 0.3rem; left: 0.35rem; transform: rotate(-13deg);
  color: var(--glitch-cyan);
  text-shadow: 2px 2px 0 #000, 0 0 14px rgba(0, 232, 255, 0.65), 1px 0 var(--glitch-magenta);
}
.graffiti-tag--3 {
  top: 38%; left: -0.15rem; transform: rotate(-78deg);
  color: var(--glitch-lime); font-size: 0.78rem;
  text-shadow: 2px 2px 0 #000, 0 0 12px rgba(198, 255, 61, 0.55);
}
.graffiti-tag--4 {
  top: 0.5rem; left: 0.4rem; transform: rotate(-6deg);
  color: var(--glitch-lime); font-size: 0.85rem;
}
.graffiti-tag--5 {
  bottom: 1.2rem; right: 0.3rem; transform: rotate(14deg);
  color: var(--glitch-magenta); font-size: 1.05rem;
}

@keyframes tag-wobble {
  0%, 100% { filter: none; }
  40% { filter: none; }
  42% { filter: hue-rotate(40deg); transform: rotate(10deg) translateX(1px); }
  44% { filter: none; transform: rotate(7deg) translateX(-1px); }
  46% { filter: none; }
}

/* Wall tags — bold, always-on graffiti layer */
.wall-tag {
  position: absolute;
  font-family: var(--font-graffiti);
  pointer-events: none;
  z-index: 2;
  opacity: 0.55;
  user-select: none;
  line-height: 0.9;
  text-transform: uppercase;
}

.wall-tag--slop {
  top: -0.15rem;
  right: 2%;
  font-size: clamp(2.2rem, 8vw, 4.2rem);
  color: var(--glitch-magenta);
  transform: rotate(7deg);
  opacity: 0.62;
  text-shadow:
    3px 3px 0 #000,
    -2px 0 var(--glitch-cyan),
    2px 0 var(--glitch-lime),
    0 0 28px rgba(255, 43, 214, 0.55);
  animation: wall-glitch 5s steps(1) infinite;
}

.wall-tag--exe {
  bottom: -0.4rem;
  left: 3%;
  font-size: clamp(1.4rem, 4.5vw, 2.4rem);
  color: var(--glitch-cyan);
  transform: rotate(-8deg);
  opacity: 0.58;
  letter-spacing: 0.06em;
  text-shadow:
    3px 3px 0 #000,
    2px 0 var(--glitch-magenta),
    0 0 22px rgba(0, 232, 255, 0.5);
  animation: wall-glitch 6.2s steps(1) infinite 0.8s;
}

.wall-tag--human {
  top: 48%;
  right: 0;
  font-size: clamp(0.85rem, 2vw, 1.1rem);
  color: var(--glitch-lime);
  transform: rotate(90deg);
  opacity: 0.5;
  font-family: var(--font-graffiti);
  letter-spacing: 0.08em;
  text-shadow: 2px 2px 0 #000, 0 0 14px rgba(198, 255, 61, 0.45);
}

.wall-tag--404 {
  top: 12%;
  left: -2%;
  font-size: clamp(1.1rem, 3.5vw, 1.8rem);
  color: var(--glitch-lime);
  transform: rotate(-18deg);
  opacity: 0.48;
  text-shadow: 2px 2px 0 #000, 0 0 16px rgba(198, 255, 61, 0.4);
}

.wall-tag--wetware {
  bottom: 18%;
  right: 8%;
  font-size: clamp(0.95rem, 2.8vw, 1.45rem);
  color: var(--glitch-magenta);
  transform: rotate(12deg);
  opacity: 0.5;
  text-shadow: 2px 2px 0 #000, -1px 0 var(--glitch-cyan), 0 0 18px rgba(255, 43, 214, 0.45);
}

.wall-tag--fooled {
  top: 72%;
  left: 18%;
  font-size: clamp(0.8rem, 2.2vw, 1.15rem);
  color: var(--glitch-cyan);
  transform: rotate(-4deg);
  opacity: 0.42;
  font-family: var(--font-intrusion);
  letter-spacing: 0.14em;
  text-shadow: 0 0 12px rgba(0, 232, 255, 0.5);
}

.wall-tag--x {
  top: 30%;
  left: 42%;
  font-size: clamp(3rem, 10vw, 5.5rem);
  color: var(--glitch-magenta);
  opacity: 0.12;
  transform: rotate(-12deg);
  text-shadow: none;
  z-index: 0;
  filter: blur(0.5px);
}

/* Paint drip under big tags */
.wall-tag--slop::after,
.wall-tag--exe::after {
  content: "";
  position: absolute;
  left: 35%;
  top: 95%;
  width: 3px;
  height: 28px;
  background: linear-gradient(180deg, currentColor, transparent);
  opacity: 0.55;
  border-radius: 2px;
}

@keyframes wall-glitch {
  0%, 88%, 100% {
    filter: none;
    clip-path: inset(0 0 0 0);
  }
  89% {
    filter: hue-rotate(80deg);
    clip-path: inset(15% 0 40% 0);
    transform: rotate(7deg) translateX(-4px);
  }
  91% {
    filter: none;
    clip-path: inset(50% 0 10% 0);
    transform: rotate(7deg) translateX(5px);
  }
  93% {
    clip-path: inset(0 0 0 0);
    text-shadow:
      3px 3px 0 #000,
      -3px 0 var(--glitch-cyan),
      3px 0 var(--glitch-lime),
      0 0 28px rgba(255, 43, 214, 0.55);
  }
}

/* Section graffiti rail */
.section-graffiti {
  position: relative;
}

.section-graffiti .wall-tag {
  opacity: 0.4;
}

@keyframes intrusion-glitch {
  0% { transform: translate(0); filter: none; }
  20% { transform: translate(-4px, 1px) skewX(-3deg); filter: hue-rotate(90deg) saturate(1.8); }
  40% { transform: translate(5px, -2px) skewX(2deg); filter: hue-rotate(-50deg); }
  60% { transform: translate(-2px, 2px); filter: contrast(1.4); }
  80% { transform: translate(3px, 0) skewX(-1deg); filter: none; }
  100% { transform: translate(0); filter: none; }
}

.intrusion-glitch {
  animation: intrusion-glitch 0.45s steps(2) 1 !important;
}

.intrusion-glitch-loop {
  animation: intrusion-glitch-loop 4.5s steps(1) infinite;
}

@keyframes intrusion-glitch-loop {
  0%, 82%, 100% { transform: translate(0); filter: none; text-shadow: none; }
  84% {
    transform: translate(-3px, 1px);
    filter: hue-rotate(60deg);
    text-shadow: -2px 0 var(--glitch-cyan), 2px 0 var(--glitch-magenta);
  }
  86% {
    transform: translate(4px, -1px);
    text-shadow: 2px 0 var(--glitch-cyan), -2px 0 var(--glitch-magenta);
  }
  88% { transform: translate(0); filter: none; text-shadow: none; }
}

@keyframes glitch-skew {
  0%, 100% { transform: skew(0deg) translate(0); }
  20% { transform: skew(-3deg) translateX(-3px); }
  40% { transform: skew(2.5deg) translateX(4px); }
  60% { transform: skew(-1.5deg) translateX(-2px); }
  80% { transform: skew(1deg) translateX(1px); }
}

@keyframes glitch-clip {
  0%, 100% { clip-path: inset(0 0 0 0); }
  25% { clip-path: inset(18% 0 5% 0); }
  50% { clip-path: inset(4% 0 35% 0); }
  75% { clip-path: inset(40% 0 8% 0); }
}

@keyframes spray-pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 0.95; }
}

/* Hero headline: always glitching hard */
.glitch-text {
  position: relative;
  display: inline-block;
  animation: glitch-skew 3.8s steps(1) infinite, intrusion-glitch-loop 3.8s steps(1) infinite;
}

.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
  pointer-events: none;
  animation: glitch-clip 2.8s steps(1) infinite;
}

.glitch-text::before {
  color: var(--glitch-cyan);
  transform: translate(-3px, 0);
  z-index: -1;
  text-shadow: var(--glow-cyan);
  animation: glitch-layers-a 2.4s steps(1) infinite;
}

.glitch-text::after {
  color: var(--glitch-magenta);
  transform: translate(3px, 0);
  z-index: -2;
  text-shadow: var(--glow-mag);
  animation: glitch-layers-b 2.7s steps(1) infinite;
}

@keyframes glitch-layers-a {
  0%, 86%, 100% { opacity: 0.35; transform: translate(-2px, 0); clip-path: inset(0 0 0 0); }
  88% { opacity: 0.85; transform: translate(-6px, 1px); clip-path: inset(20% 0 40% 0); }
  90% { opacity: 0.7; transform: translate(4px, -1px); clip-path: inset(55% 0 5% 0); }
  92% { opacity: 0.4; transform: translate(-2px, 0); clip-path: inset(0 0 0 0); }
}

@keyframes glitch-layers-b {
  0%, 80%, 100% { opacity: 0.3; transform: translate(2px, 0); clip-path: inset(0 0 0 0); }
  82% { opacity: 0.8; transform: translate(7px, -1px); clip-path: inset(10% 0 50% 0); }
  84% { opacity: 0.65; transform: translate(-4px, 2px); clip-path: inset(45% 0 12% 0); }
  86% { opacity: 0.35; transform: translate(2px, 0); clip-path: inset(0 0 0 0); }
}

@media (hover: hover) and (min-width: 768px) {
  .glitch-text:hover {
    animation: glitch-skew 0.35s steps(2) infinite;
  }
  .glitch-text:hover::before,
  .glitch-text:hover::after { opacity: 0.9; }
}

h1.glitch-text::before,
h1.glitch-text::after,
h2.glitch-text::before,
h2.glitch-text::after {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

/* Floating graffiti stamps (JS-spawned) */
.float-tag {
  position: fixed;
  font-family: var(--font-graffiti);
  font-size: clamp(0.85rem, 2.5vw, 1.35rem);
  text-transform: uppercase;
  pointer-events: none;
  z-index: 9996;
  opacity: 0;
  transition: opacity 0.2s;
  text-shadow: 2px 2px 0 #000, 0 0 12px currentColor;
  mix-blend-mode: screen;
}

.float-tag.visible { opacity: 0.7; animation: intrusion-glitch 0.4s steps(2) 1; }

a { color: inherit; }

.header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  padding-top: max(0.85rem, env(safe-area-inset-top));
  border-bottom: 1px solid var(--border);
  background: rgba(7, 6, 12, 0.88);
  backdrop-filter: blur(18px) saturate(1.2);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(255, 43, 214, 0.12), 0 8px 32px rgba(0, 0, 0, 0.35);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo {
  font-family: var(--font-graffiti);
  font-size: 1.55rem;
  font-weight: 400;
  line-height: 1;
  color: var(--glitch-magenta);
  text-shadow: 0 0 14px rgba(255, 43, 214, 0.55), 1px 1px 0 #000, -1px 0 var(--glitch-cyan);
  transform: rotate(-8deg);
  animation: intrusion-glitch-loop 3.8s steps(1) infinite;
}

.brand-name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
  animation: intrusion-glitch-loop 5.5s steps(1) infinite;
}

.brand-sub {
  display: block;
  font-size: 0.62rem;
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 0.2rem;
}

.nav-toggle {
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius);
  cursor: pointer;
}

.site-nav {
  display: none;
  position: fixed;
  top: calc(3.25rem + env(safe-area-inset-top));
  left: 0;
  right: 0;
  flex-direction: column;
  gap: 0;
  background: rgba(10, 8, 18, 0.97);
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 0;
  z-index: 99;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.site-nav.open { display: flex; }

.site-nav a {
  text-decoration: none;
  font-size: 0.92rem;
  color: var(--text);
  font-weight: 400;
  letter-spacing: 0.02em;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
}

.site-nav a:last-child { border-bottom: none; }

body.nav-open { overflow: hidden; }

.hero {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1rem 1rem;
  position: relative;
}

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hero-side .games-grid {
  padding: 0;
  max-width: none;
}

.reveal-preview-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.eyebrow {
  font-family: var(--font-intrusion);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--glitch-cyan);
  font-weight: 400;
  margin-bottom: 0.85rem;
  text-shadow: 0 0 10px rgba(0, 232, 255, 0.25);
}

.eyebrow--intrude {
  font-family: var(--font-intrusion);
  color: var(--ai);
  opacity: 0.7;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 9.5vw, 3.9rem);
  font-weight: 800;
  line-height: 0.98;
  margin-bottom: 0.85rem;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.hero h1 em {
  font-style: normal;
  font-weight: 800;
  color: var(--human);
  text-shadow: 0 0 24px rgba(255, 77, 109, 0.35);
}

.hero-lede {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
  margin-bottom: 1rem;
  max-width: 36rem;
}

.hero-cta {
  display: inline-block;
  text-decoration: none;
  background: linear-gradient(135deg, var(--glitch-magenta) 0%, #c41a9a 55%, var(--accent-3) 100%);
  color: #fff;
  font-weight: 600;
  padding: 0.95rem 1.55rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 43, 214, 0.55);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  box-shadow: 0 0 24px rgba(255, 43, 214, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: transform 0.15s, box-shadow 0.2s, filter 0.2s;
}

.hero-cta--primary { display: block; width: 100%; margin-bottom: 1rem; }

.hero-cta:hover {
  filter: brightness(1.08);
  box-shadow: 0 0 36px rgba(255, 43, 214, 0.4), var(--glow-mag);
  transform: translateY(-1px);
  color: #fff;
}

.hero-cta--outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
  box-shadow: none;
}

.hero-cta--outline:hover {
  border-color: var(--glitch-cyan);
  color: var(--glitch-cyan);
  box-shadow: var(--glow-cyan);
  filter: none;
}

.reveal-preview-card {
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.82rem;
  font-weight: 400;
  background: var(--surface-elevated);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
}

.reveal-preview-card.ai { border-left: 2px solid var(--ai); }
.reveal-preview-card.human { border-left: 2px solid var(--human); }

.collection-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1rem 2rem;
  scroll-margin-top: 4rem;
  position: relative;
}

.collection-section.hidden { display: none; }

/* P3 Drop page: graduation framing (optional after a call) */
.drop-grad-kicker {
  font-family: var(--font-mono, "Share Tech Mono", monospace);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--glitch-lime, #c6ff3d);
  margin: 0 0 0.55rem;
}

.drop-grad-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
}

.drop-status {
  max-width: none;
  margin: 0 0 0.85rem;
  padding: 0;
}

.drop-grad-lede {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
  margin: 0 0 1.25rem;
  max-width: 40rem;
}

.drop-empty {
  grid-column: 1 / -1;
  padding: 1rem 0.25rem 0.5rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.drop-empty a {
  color: var(--glitch-cyan, #00e8ff);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 232, 255, 0.35);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
  position: relative;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.section-sub {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 0.35rem;
  letter-spacing: 0.02em;
}

.section-link {
  color: var(--text);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.15rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.product-card {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
  position: relative;
  box-shadow: var(--shadow-card);
}

@media (hover: hover) {
  .product-card:hover {
    box-shadow: var(--shadow-soft), 0 0 0 1px rgba(0, 232, 255, 0.2);
    border-color: rgba(0, 232, 255, 0.35);
    transform: translateY(-3px);
  }
  .product-card:hover .product-image::after {
    opacity: 0.22;
  }
}

.product-tap {
  display: block;
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.product-image {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background:
    linear-gradient(145deg, #12101c 0%, #1a1528 100%);
  position: relative;
}

.product-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--glitch-cyan), var(--glitch-magenta), var(--glitch-lime));
  opacity: 0;
  transition: opacity 0.3s;
  mix-blend-mode: color-dodge;
  pointer-events: none;
}

.product-image img { width: 100%; height: 100%; object-fit: cover; }

.product-info {
  padding: 0.85rem 0.9rem 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
}

.product-info h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.product-tagline {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.4;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  padding: 0.6rem 0.9rem 0.75rem;
  border-top: 1px solid var(--border-light);
}

.price { font-weight: 500; font-size: 0.88rem; letter-spacing: 0.02em; }

.how-it-works {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1rem 5rem;
  border-top: 1px solid var(--border-light);
}

.how-it-works h2 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.65;
  padding-left: 2.75rem;
  position: relative;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-intrusion);
  font-size: 0.95rem;
  color: var(--glitch-cyan);
  font-weight: 400;
  text-shadow: var(--glow-cyan);
}

.steps strong {
  color: var(--text);
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 500;
}

.rewards-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-light);
}

.reward-card {
  background: var(--surface-elevated);
  border: 1px solid var(--border-light);
  padding: 1.1rem 1.15rem;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}

.reward-card--human { border-left: 2px solid var(--human); }
.reward-card--ai { border-left: 2px solid var(--ai); }

.reward-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.reward-card p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.55;
}

.reward-card .reward-stat {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-top: 0.5rem;
  color: var(--text);
}

.studio-mode-banner {
  max-width: 1100px;
  margin: 0 auto 3rem;
  padding: 0 1rem;
}

.studio-mode-inner {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  background:
    linear-gradient(135deg, rgba(255, 43, 214, 0.06), transparent 50%),
    var(--surface-elevated);
  box-shadow: inset 0 0 0 1px rgba(255, 43, 214, 0.08);
}

.studio-mode-inner h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 0.4rem;
}

.studio-mode-inner p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.mode-tag {
  display: inline-block;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 0.2rem 0.45rem;
  margin-bottom: 0.5rem;
}

.add-btn, .primary-btn {
  background: linear-gradient(135deg, var(--glitch-lime) 0%, #9fd420 100%);
  border: 1px solid rgba(198, 255, 61, 0.5);
  color: #0a0a08;
  font-weight: 700;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: filter 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 16px rgba(198, 255, 61, 0.2);
}

.add-btn:hover, .primary-btn:hover {
  filter: brightness(1.08);
  box-shadow: 0 0 24px rgba(198, 255, 61, 0.35);
  color: #0a0a08;
}

.cart-panel {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 92vh;
  max-height: 92dvh;
  background: var(--surface-elevated);
  border-top: 1px solid var(--border);
  border-radius: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  transition: transform 0.28s ease;
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -16px 48px rgba(0, 0, 0, 0.55), 0 0 40px rgba(255, 43, 214, 0.08);
}

.cart-panel.hidden {
  transform: translateY(110%);
  pointer-events: none;
}

.cart-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 0 1rem;
  -webkit-overflow-scrolling: touch;
}

.cart-footer {
  padding: 0.75rem 1rem 1rem;
  border-top: 1px solid var(--border-light);
  background: var(--surface-elevated);
}

.cart-panel:not(.hidden) ~ .overlay { display: block; }

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1rem 0.5rem;
  flex-shrink: 0;
}

.cart-header h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  text-transform: uppercase;
}

.icon-btn {
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.checkout-form { display: flex; flex-direction: column; gap: 0.6rem; }
.bet-summary { margin-bottom: 0.5rem; }

.checkout-form label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.checkout-form input, .checkout-form select {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.65rem 0.75rem;
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
}

.primary-btn--full {
  width: 100%;
  padding: 0.9rem 1rem;
  font-size: 0.82rem;
}

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.total { margin: 0.5rem 0; font-size: 0.92rem; }
.cart-note { font-size: 0.75rem; color: var(--muted); line-height: 1.5; }

.discount-line {
  font-size: 0.82rem;
  color: var(--human);
  margin: 0.25rem 0;
}

.overlay { position: fixed; inset: 0; background: rgba(4, 3, 10, 0.72); z-index: 150; }
.overlay.hidden { display: none; }

.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface-elevated);
  color: var(--text);
  border: 1px solid var(--glitch-cyan);
  box-shadow: var(--glow-cyan);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  z-index: 400;
  font-size: 0.85rem;
  font-family: var(--font-intrusion);
  letter-spacing: 0.04em;
}

.toast.hidden { display: none; }

.muted { color: var(--muted); font-size: 0.85rem; }

footer.site-footer {
  text-align: center;
  padding: 2.5rem 2rem;
  border-top: 1px solid var(--border-light);
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.7;
  position: relative;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.footer-intrusion {
  font-family: var(--font-intrusion);
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  color: var(--glitch-cyan);
  opacity: 0.25;
  margin-top: 0.75rem;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

.footer-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-nav a:hover { color: var(--text); }

.mobile-play-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  padding: 0.85rem 1rem;
  padding-bottom: max(0.85rem, env(safe-area-inset-bottom));
  background: linear-gradient(90deg, rgba(255, 43, 214, 0.92), rgba(124, 92, 255, 0.94));
  color: #fff;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  box-shadow: 0 -4px 24px rgba(255, 43, 214, 0.35);
}

body.checkout-open .mobile-play-bar,
body.nav-open .mobile-play-bar { display: none; }

main { padding-bottom: calc(4.5rem + env(safe-area-inset-bottom)); }

.partnership-strip {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.partner-chip {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: 0.1rem 0.65rem;
  align-items: center;
  padding: 0.75rem 0.85rem;
  background: linear-gradient(135deg, rgba(0, 232, 255, 0.06), rgba(255, 43, 214, 0.05));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.partner-chip:hover {
  border-color: rgba(0, 232, 255, 0.4);
  box-shadow: var(--glow-cyan);
}

.partner-chip--static { cursor: default; }

.partner-label {
  grid-row: 1 / span 2;
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--glitch-cyan);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-intrusion);
}

.partner-chip strong {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
}

.partner-sub {
  grid-column: 2;
  font-size: 0.72rem;
  color: var(--muted);
}

.loop-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.25rem 1rem 1.5rem;
  scroll-margin-top: 4rem;
}

.loop-grid {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.loop-card {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1rem 1.05rem;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.loop-card:hover {
  border-color: rgba(255, 43, 214, 0.35);
  box-shadow: 0 0 24px rgba(255, 43, 214, 0.1);
}

.loop-step {
  display: inline-block;
  font-family: var(--font-intrusion);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  color: var(--glitch-lime);
  text-shadow: 0 0 10px rgba(198, 255, 61, 0.35);
  margin-bottom: 0.35rem;
}

.loop-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 0.3rem;
}

.loop-card p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.55;
}

.loop-foot {
  margin-top: 0.85rem;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.studio-cta-row {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 1rem;
}

.studio-cta-row .hero-cta { width: 100%; }

@media (min-width: 768px) {
  .header { padding: 1rem 2rem; gap: 1.25rem; }
  .nav-toggle { display: none; }
  .site-nav {
    display: flex;
    position: static;
    flex-direction: row;
    gap: 1.75rem;
    margin-left: auto;
    background: transparent;
    border: none;
    padding: 0;
  }
  .site-nav a {
    font-size: 0.78rem;
    color: var(--muted);
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0;
    border: none;
  }
  .site-nav a:hover { color: var(--text); }
  .hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2.5rem;
    padding: 3rem 2rem 2rem;
    align-items: start;
  }
  .hero-cta--primary { display: inline-block; width: auto; margin-bottom: 0; }
  .mobile-play-bar { display: none; }
  main { padding-bottom: 0; }
  .partnership-strip {
    flex-direction: row;
    gap: 0.65rem;
  }
  .partner-chip { flex: 1; }
  .loop-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
  }
  .studio-cta-row {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .studio-cta-row .hero-cta { width: auto; }
  .how-it-works { padding-bottom: 3rem; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.15rem; }
  .product-info h3 { font-size: 1.05rem; }
  .product-tagline { font-size: 0.78rem; }
  .collection-section { padding: 2.5rem 2rem; }
  .cart-panel {
    top: 0; right: 0; left: auto; bottom: auto;
    width: min(420px, 100vw);
    height: 100vh;
    max-height: none;
    border-top: none;
    border-left: 1px solid var(--border);
    transform: translateX(100%);
    padding: 1.25rem;
    box-shadow: var(--shadow-soft);
  }
  .cart-panel.hidden { transform: translateX(100%); }
  .cart-panel:not(.hidden) { transform: translateX(0); }
  .steps { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 767px) {
  .steps { grid-template-columns: 1fr; gap: 1.25rem; }
  .rewards-strip { grid-template-columns: 1fr; }
  .studio-mode-banner { padding: 0 1rem; margin-bottom: 1rem; }
  /* Keep glitch layers on mobile — slightly thinner, not muted */
  .glitch-text::before, .glitch-text::after { opacity: 0.45; }
  .ai-intrusion { font-size: 0.55rem; }
  .ai-intrusion.visible { opacity: 0.75; }
  .wall-tag { opacity: 0.42; }
  .wall-tag--slop { opacity: 0.55; font-size: clamp(1.8rem, 12vw, 2.8rem); }
  .wall-tag--exe { opacity: 0.5; }
  .wall-tag--x { opacity: 0.1; }
  .graffiti-tag { opacity: 0.65; font-size: 0.82rem; }
  .hero-side { order: -1; }
  .reveal-preview-stack { grid-template-columns: 1fr; }
  .gallery-theme::before, .glitch-theme::before { opacity: 0.09; }
}

/* Game tiles on home (if game.css not loaded) */
.games-grid .game-tile {
  display: block;
  padding: 1rem 1.05rem;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  position: relative;
  overflow: hidden;
}

.games-grid .game-tile::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--glitch-magenta), var(--glitch-cyan), var(--glitch-lime));
  opacity: 0.7;
}

.games-grid .game-tile:hover {
  border-color: rgba(0, 232, 255, 0.4);
  box-shadow: var(--glow-cyan);
  transform: translateY(-2px);
}

.games-grid .game-tile h3 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.games-grid .game-tile p {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
}

.nav-toggle:hover {
  border-color: var(--glitch-magenta);
  color: var(--glitch-magenta);
  box-shadow: var(--glow-mag);
}