/* ══════════════════════════════════════════════════════════════
   GlitchCityArcade.com — Seattle 2088
   Retro 80s Neon Cyberpunk Design System
   ══════════════════════════════════════════════════════════════ */

/* ─── Google Fonts ─── */
/* Press Start 2P, Rajdhani, Orbitron loaded in HTML */

/* ─── Design Tokens ─── */
:root {
  /* Colors */
  --bg:          #0a0a0f;
  --surface:     #12121f;
  --surface-card:#161628;
  --surface-2:   #1a1a30;

  --pink:   #ff2d7b;
  --cyan:   #00e5ff;
  --purple: #b026ff;
  --gold:   #ffd700;

  --pink-glow:   0 0 12px #ff2d7b88, 0 0 32px #ff2d7b44;
  --cyan-glow:   0 0 12px #00e5ff88, 0 0 32px #00e5ff44;
  --purple-glow: 0 0 12px #b026ff88, 0 0 32px #b026ff44;
  --gold-glow:   0 0 12px #ffd70088, 0 0 32px #ffd70044;

  --text:      #e0e0f0;
  --text-muted:#6b6b8a;
  --text-faint:#3a3a58;

  --border:    rgba(0, 229, 255, 0.12);
  --border-pink: rgba(255, 45, 123, 0.2);
  --border-purple: rgba(176, 38, 255, 0.2);

  /* Type */
  --font-pixel: 'Press Start 2P', monospace;
  --font-body:  'Rajdhani', 'Share Tech Mono', sans-serif;
  --font-mono:  'Share Tech Mono', monospace;
  --font-num:   'Orbitron', monospace;

  /* Type Scale */
  --text-xs:   clamp(0.5rem,  0.45rem + 0.25vw, 0.6rem);
  --text-sm:   clamp(0.625rem, 0.58rem + 0.2vw, 0.75rem);
  --text-base: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-lg:   clamp(1rem,    0.9rem + 0.5vw, 1.25rem);
  --text-xl:   clamp(1.25rem, 1rem + 1vw,  1.75rem);
  --text-2xl:  clamp(1.75rem, 1rem + 2vw,  3rem);
  --text-hero: clamp(2rem,    0.5rem + 4vw, 4.5rem);

  /* Spacing */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.25rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;

  /* Radii */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;

  /* Transitions */
  --ease: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-glow: 250ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --max-w: 1200px;
  --nav-h: 64px;
}

/* ─── Base Reset ─── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}
body {
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
ul[role='list'], ol[role='list'] { list-style: none; }
button { cursor: pointer; background: none; border: none; font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
p { max-width: 72ch; }
h1, h2, h3, h4 { line-height: 1.15; }
::selection { background: rgba(255,45,123,0.3); color: #fff; }
:focus-visible {
  outline: 1px solid var(--cyan);
  outline-offset: 3px;
}

/* ─── CRT Scanline Overlay ─── */
.crt-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent 0px,
    transparent 2px,
    rgba(0,0,0,0.06) 2px,
    rgba(0,0,0,0.06) 4px
  );
}

/* ─── Grid Background ─── */
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* ══════════════════════════════════════════════════════════════
   NAVIGATION
   ══════════════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  height: var(--nav-h);
  background: rgba(10, 10, 15, 0.9);
  border-bottom: 1px solid rgba(255, 45, 123, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-6);
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--sp-6);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-shrink: 0;
  transition: opacity var(--ease);
}
.nav-logo:hover { opacity: 0.8; }
.nav-logo-text {
  font-family: var(--font-pixel);
  font-size: var(--text-xs);
  color: var(--pink);
  letter-spacing: 0.1em;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: var(--sp-1);
  margin-left: var(--sp-4);
}
.nav-link {
  font-family: var(--font-pixel);
  font-size: var(--text-xs);
  color: var(--text-muted);
  padding: var(--sp-2) var(--sp-3);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  transition: color var(--ease), border-color var(--ease), box-shadow var(--ease-glow);
  white-space: nowrap;
}
.nav-link:hover,
.nav-link.active {
  color: var(--cyan);
  border-color: rgba(0, 229, 255, 0.3);
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.2);
}
.nav-status {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-shrink: 0;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0f0;
  box-shadow: 0 0 6px #0f08;
  animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.status-text {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
  letter-spacing: 0.08em;
}
.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--sp-2);
  margin-left: auto;
}
.nav-mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--pink);
  transition: transform var(--ease), opacity var(--ease);
}
.nav-mobile-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-mobile-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-mobile-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .nav-mobile-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(10, 10, 15, 0.98);
    border-bottom: 1px solid var(--border-pink);
    padding: var(--sp-4) var(--sp-6);
    gap: var(--sp-1);
    margin-left: 0;
  }
  .nav-links.open { display: flex; }
  .nav-link { font-size: 0.5rem; }
  .nav-status { display: none; }
}

/* ══════════════════════════════════════════════════════════════
   SECTIONS — Base
   ══════════════════════════════════════════════════════════════ */
.section {
  position: relative;
  min-height: 100dvh;
  z-index: 1;
}
.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--sp-24) var(--sp-6) var(--sp-16);
}
.section-header {
  text-align: center;
  margin-bottom: var(--sp-12);
}
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--cyan);
  letter-spacing: 0.15em;
  margin-bottom: var(--sp-3);
}
.section-title {
  font-family: var(--font-pixel);
  font-size: var(--text-xl);
  color: var(--text);
  text-shadow: 0 0 20px rgba(255, 45, 123, 0.4);
  margin-bottom: var(--sp-4);
}
.section-subtitle {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  color: var(--text-muted);
  font-weight: 500;
}
.section-label {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--pink);
  letter-spacing: 0.15em;
  margin-bottom: var(--sp-6);
}

/* ─── Panel / Card ─── */
.card-panel {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--sp-6);
  position: relative;
  overflow: hidden;
}
.card-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0.5;
}
.panel-title {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--cyan);
  letter-spacing: 0.12em;
  margin-bottom: var(--sp-5);
}

/* ══════════════════════════════════════════════════════════════
   HOME / HERO
   ══════════════════════════════════════════════════════════════ */
.section--home {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: var(--nav-h);
  background: var(--bg);
}
.hero-grid {
  position: absolute;
  inset: 0;
  top: var(--nav-h);
  z-index: 0;
  overflow: hidden;
}
.hero-grid svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--sp-20) var(--sp-6) var(--sp-12);
  min-height: 80dvh;
  justify-content: center;
}

/* Hero eyebrow */
.hero-eyebrow {
  margin-bottom: var(--sp-6);
}
.pixel-tag {
  font-family: var(--font-pixel);
  font-size: var(--text-xs);
  color: var(--text-muted);
  letter-spacing: 0.2em;
  border: 1px solid rgba(255, 45, 123, 0.3);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius-sm);
  background: rgba(255, 45, 123, 0.05);
}

/* Hero Title + Glitch */
.hero-title {
  font-family: var(--font-pixel);
  font-size: var(--text-hero);
  line-height: 1.2;
  margin-bottom: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  align-items: center;
}
.glitch-text {
  display: inline-block;
  position: relative;
  color: var(--pink);
  text-shadow: var(--pink-glow);
  animation: glitch-main 4s steps(1) infinite;
}
.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
}
.glitch-text::before {
  color: var(--cyan);
  animation: glitch-top 4s steps(1) infinite;
  clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
  transform: translateX(-3px);
}
.glitch-text::after {
  color: var(--purple);
  animation: glitch-bottom 4s steps(1) infinite;
  clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
  transform: translateX(3px);
}
@keyframes glitch-main {
  0%, 88%, 100% { transform: none; opacity: 1; }
  89% { transform: skewX(-5deg); opacity: 0.9; }
  90% { transform: skewX(5deg) translateX(-4px); }
  91% { transform: none; opacity: 1; }
  95% { transform: translateX(2px) skewY(1deg); }
  96% { transform: none; }
}
@keyframes glitch-top {
  0%, 88%, 100% { transform: translateX(-3px); opacity: 0; }
  89% { transform: translateX(4px); opacity: 0.8; }
  90% { transform: translateX(-2px); opacity: 0.6; }
  91% { opacity: 0; transform: translateX(-3px); }
}
@keyframes glitch-bottom {
  0%, 88%, 100% { transform: translateX(3px); opacity: 0; }
  89% { transform: translateX(-4px); opacity: 0.8; }
  90% { transform: translateX(2px); opacity: 0.6; }
  91% { opacity: 0; transform: translateX(3px); }
}
.hero-title-line2 {
  color: var(--cyan);
  text-shadow: var(--cyan-glow);
}

/* Tagline */
.hero-tagline {
  font-family: var(--font-mono);
  font-size: var(--text-lg);
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: var(--sp-8);
}

/* CTA Buttons */
.hero-actions {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: var(--sp-10);
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-pixel);
  font-size: var(--text-xs);
  padding: var(--sp-4) var(--sp-6);
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: box-shadow var(--ease-glow), transform var(--ease), background var(--ease);
  white-space: nowrap;
  letter-spacing: 0.05em;
}
.btn--primary {
  background: var(--pink);
  color: #fff;
  border-color: var(--pink);
  box-shadow: 0 0 16px rgba(255, 45, 123, 0.4);
}
.btn--primary:hover {
  background: #ff4d8a;
  box-shadow: 0 0 24px rgba(255, 45, 123, 0.7), 0 0 48px rgba(255, 45, 123, 0.3);
  transform: translateY(-1px);
}
.btn--primary:active { transform: translateY(0); }
.btn--pulse {
  animation: btn-pulse 3s ease infinite;
}
@keyframes btn-pulse {
  0%, 100% { box-shadow: 0 0 16px rgba(255, 45, 123, 0.4); }
  50% { box-shadow: 0 0 28px rgba(255, 45, 123, 0.8), 0 0 48px rgba(255, 45, 123, 0.4); }
}
.btn--ghost {
  background: transparent;
  color: var(--cyan);
  border-color: rgba(0, 229, 255, 0.4);
}
.btn--ghost:hover {
  background: rgba(0, 229, 255, 0.08);
  box-shadow: var(--cyan-glow);
  transform: translateY(-1px);
}
.btn--sm {
  font-size: 0.45rem;
  padding: var(--sp-2) var(--sp-3);
}
.btn--disabled,
.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}
.btn--cyan {
  background: transparent;
  color: var(--cyan);
  border-color: rgba(0, 229, 255, 0.5);
}
.btn--cyan:hover {
  background: rgba(0, 229, 255, 0.1);
  box-shadow: var(--cyan-glow);
}
.btn--purple {
  background: transparent;
  color: var(--purple);
  border-color: rgba(176, 38, 255, 0.5);
}
.btn--purple:hover {
  background: rgba(176, 38, 255, 0.1);
  box-shadow: var(--purple-glow);
}

/* Stats Strip */
.stats-strip {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  padding: var(--sp-4) var(--sp-8);
  background: rgba(18, 18, 31, 0.8);
  border: 1px solid rgba(0, 229, 255, 0.15);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(8px);
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-1);
}
.stat-value {
  font-family: var(--font-num);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--cyan);
  text-shadow: var(--cyan-glow);
}
.stat-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
  letter-spacing: 0.1em;
}
.stat-divider {
  font-family: var(--font-mono);
  color: var(--text-faint);
  font-size: var(--text-sm);
}

/* Featured Games */
.featured-games {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-w);
  padding: var(--sp-8) var(--sp-6) var(--sp-16);
}
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--sp-4);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: var(--sp-6);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  opacity: 0.4;
  animation: fade-scroll 3s ease infinite;
}
@keyframes fade-scroll {
  0%, 100% { opacity: 0.4; transform: translateX(-50%) translateY(0); }
  50% { opacity: 0.7; transform: translateX(-50%) translateY(4px); }
}
.scroll-text {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  color: var(--text-muted);
}
.scroll-arrow {
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
}

/* ══════════════════════════════════════════════════════════════
   GAME CARDS
   ══════════════════════════════════════════════════════════════ */
.game-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  transition: transform var(--ease), box-shadow var(--ease-glow);
  display: flex;
  flex-direction: column;
}
.game-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
  opacity: 0;
  transition: opacity var(--ease-glow);
  pointer-events: none;
  z-index: 0;
}
.game-card:hover {
  transform: translateY(-4px);
}
.game-card:hover::before { opacity: 1; }

/* Game screenshot placeholder */
.game-screenshot {
  height: 160px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.game-screenshot-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.game-screenshot-label {
  font-family: var(--font-pixel);
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.4);
  text-align: center;
  line-height: 1.8;
  padding: var(--sp-4);
}
/* Pixel scanline on screenshot */
.game-screenshot::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent 0px, transparent 3px,
    rgba(0,0,0,0.15) 3px, rgba(0,0,0,0.15) 4px
  );
  pointer-events: none;
}

.game-card-body {
  padding: var(--sp-4);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  position: relative;
  z-index: 1;
}
.game-title {
  font-family: var(--font-pixel);
  font-size: var(--text-sm);
  color: var(--text);
  line-height: 1.4;
}
.game-desc {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.5;
  flex: 1;
}
.game-tags {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
}
.tag {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  padding: var(--sp-1) var(--sp-2);
  border-radius: var(--radius-sm);
  border: 1px solid;
  letter-spacing: 0.08em;
}
.tag--genre {
  border-color: rgba(176, 38, 255, 0.3);
  color: var(--purple);
  background: rgba(176, 38, 255, 0.08);
}
.game-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  margin-top: auto;
}

/* Status badges */
.status-badge {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--radius-sm);
  border: 1px solid;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.status--dev {
  color: var(--gold);
  border-color: rgba(255, 215, 0, 0.4);
  background: rgba(255, 215, 0, 0.08);
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.15);
}
.status--soon {
  color: var(--cyan);
  border-color: rgba(0, 229, 255, 0.4);
  background: rgba(0, 229, 255, 0.08);
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.15);
}
.status--proto {
  color: var(--purple);
  border-color: rgba(176, 38, 255, 0.4);
  background: rgba(176, 38, 255, 0.08);
  box-shadow: 0 0 8px rgba(176, 38, 255, 0.15);
}
.status--live {
  color: #0f0;
  border-color: rgba(0, 255, 0, 0.4);
  background: rgba(0, 255, 0, 0.08);
  box-shadow: 0 0 8px rgba(0, 255, 0, 0.15);
}

/* ─── Games Grid (Arcade Hub) ─── */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--sp-6);
}

/* ══════════════════════════════════════════════════════════════
   ARCADE SECTION
   ══════════════════════════════════════════════════════════════ */
.section--arcade {
  background: var(--bg);
  border-top: 1px solid rgba(255, 45, 123, 0.15);
}

/* ══════════════════════════════════════════════════════════════
   GALLERY SECTION
   ══════════════════════════════════════════════════════════════ */
.section--gallery {
  background: var(--surface);
  border-top: 1px solid rgba(0, 229, 255, 0.1);
}

/* Filter Tabs */
.filter-tabs {
  display: flex;
  gap: var(--sp-2);
  margin-bottom: var(--sp-8);
  justify-content: center;
  flex-wrap: wrap;
}
.filter-tab {
  font-family: var(--font-pixel);
  font-size: var(--text-xs);
  padding: var(--sp-2) var(--sp-5);
  border: 1px solid rgba(255, 45, 123, 0.25);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  background: transparent;
  transition: all var(--ease);
  cursor: pointer;
  letter-spacing: 0.05em;
}
.filter-tab:hover {
  color: var(--pink);
  border-color: rgba(255, 45, 123, 0.5);
}
.filter-tab.active {
  color: var(--pink);
  border-color: var(--pink);
  background: rgba(255, 45, 123, 0.1);
  box-shadow: 0 0 12px rgba(255, 45, 123, 0.2);
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--sp-6);
}
.gallery-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--ease), box-shadow var(--ease-glow);
  display: flex;
  flex-direction: column;
}
.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 229, 255, 0.12);
}
.gallery-card-image {
  height: 200px;
  position: relative;
  overflow: hidden;
}
.gallery-card-image-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent 0px, transparent 3px,
    rgba(0,0,0,0.1) 3px, rgba(0,0,0,0.1) 4px
  );
  pointer-events: none;
}
.gallery-card-body {
  padding: var(--sp-5);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.gallery-card-title {
  font-family: var(--font-pixel);
  font-size: var(--text-sm);
  color: var(--text);
}
.gallery-card-desc {
  font-size: var(--text-base);
  color: var(--text-muted);
  font-weight: 500;
  flex: 1;
  line-height: 1.5;
}
.gallery-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  margin-top: var(--sp-2);
}
.gallery-link {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--cyan);
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  transition: color var(--ease);
  letter-spacing: 0.08em;
}
.gallery-link:hover { color: #fff; }
.gallery-card[data-hidden="true"] { display: none; }

/* ══════════════════════════════════════════════════════════════
   PROFILE SECTION
   ══════════════════════════════════════════════════════════════ */
.section--profile {
  background: var(--bg);
  border-top: 1px solid rgba(176, 38, 255, 0.15);
}
.profile-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-5);
}
.profile-header-card {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  flex-wrap: wrap;
}
.profile-avatar {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border: 2px solid var(--pink);
  border-radius: var(--radius-md);
  box-shadow: 0 0 16px rgba(255, 45, 123, 0.4);
  overflow: hidden;
}
.profile-avatar svg { width: 100%; height: 100%; }
.profile-info {
  flex: 1;
  min-width: 200px;
}
.profile-username {
  font-family: var(--font-pixel);
  font-size: var(--text-xl);
  color: var(--pink);
  text-shadow: var(--pink-glow);
  margin-bottom: var(--sp-2);
}
.rank-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--gold);
  background: rgba(255, 215, 0, 0.08);
  border: 1px solid rgba(255, 215, 0, 0.25);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--radius-sm);
  letter-spacing: 0.06em;
}
.profile-meta {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: var(--sp-2);
  letter-spacing: 0.08em;
}
.profile-xp-section {
  flex: 1;
  min-width: 240px;
}
.xp-label {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-bottom: var(--sp-2);
  letter-spacing: 0.08em;
}
.xp-numbers {
  color: var(--gold);
  font-weight: 700;
}
.xp-bar {
  height: 8px;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: var(--sp-2);
  border: 1px solid rgba(255, 215, 0, 0.2);
}
.xp-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), #ffaa00);
  border-radius: var(--radius-sm);
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
  position: relative;
  overflow: hidden;
}
.xp-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: xp-shine 2s linear infinite;
}
@keyframes xp-shine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}
.xp-next {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

/* Stats Grid (profile) */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4);
}
.stat-block {
  text-align: center;
  padding: var(--sp-3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
}
.stat-block--full { grid-column: 1 / -1; }
.stat-block-value {
  font-family: var(--font-num);
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--sp-1);
}
.stat-block-value.cyan  { color: var(--cyan);  text-shadow: var(--cyan-glow); }
.stat-block-value.pink  { color: var(--pink);  text-shadow: var(--pink-glow); }
.stat-block-value.gold  { color: var(--gold);  text-shadow: var(--gold-glow); }
.stat-block-value.purple{ color: var(--purple);text-shadow: var(--purple-glow); }
.stat-block-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

/* Skills */
.skills-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.skill-item {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.skill-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.skill-name {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--text);
  letter-spacing: 0.08em;
}
.skill-level {
  font-family: var(--font-num);
  font-size: var(--text-xs);
  color: var(--text-muted);
}
.skill-bar {
  height: 4px;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.skill-fill {
  height: 100%;
  border-radius: var(--radius-sm);
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Inventory */
.inventory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: var(--sp-3);
}
.inventory-item {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--sp-3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  text-align: center;
  transition: border-color var(--ease), box-shadow var(--ease-glow);
}
.inventory-item:hover {
  border-color: rgba(255, 255, 255, 0.2);
}
.inv-icon {
  font-size: 1.75rem;
  line-height: 1;
}
.inv-name {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text);
  letter-spacing: 0.04em;
}
.inv-type {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.inv-rarity {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.rarity--common   { color: #9999aa; }
.rarity--rare     { color: var(--cyan);   text-shadow: 0 0 6px rgba(0, 229, 255, 0.5); }
.rarity--epic     { color: var(--purple); text-shadow: 0 0 6px rgba(176, 38, 255, 0.5); }
.rarity--legendary{ color: var(--gold);   text-shadow: 0 0 6px rgba(255, 215, 0, 0.5); }

/* Achievements */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
  gap: var(--sp-3);
}
.achievement-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-1);
}
.achievement-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  border: 1px solid;
  position: relative;
}
.achievement-icon.unlocked {
  border-color: rgba(255, 215, 0, 0.4);
  background: rgba(255, 215, 0, 0.08);
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.2);
}
.achievement-icon.locked {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  filter: grayscale(1);
  opacity: 0.4;
}
.achievement-name {
  font-family: var(--font-mono);
  font-size: 0.45rem;
  color: var(--text-muted);
  text-align: center;
  letter-spacing: 0.04em;
  max-width: 60px;
  word-break: break-word;
}

/* Activity Log */
.activity-log {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.activity-item {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  padding: var(--sp-3);
  border-left: 2px solid rgba(0, 229, 255, 0.2);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.activity-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 4px;
  flex-shrink: 0;
}
.activity-text {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text);
  font-weight: 500;
  flex: 1;
}
.activity-time {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
  flex-shrink: 0;
  letter-spacing: 0.06em;
}

/* Profile layout responsive */
@media (max-width: 768px) {
  .profile-layout { grid-template-columns: 1fr; }
  .profile-header-card { flex-direction: column; text-align: center; }
  .profile-username { font-size: var(--text-lg); }
}

/* ══════════════════════════════════════════════════════════════
   ABOUT SECTION
   ══════════════════════════════════════════════════════════════ */
.section--about {
  background: var(--surface);
  border-top: 1px solid rgba(176, 38, 255, 0.15);
}
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-5);
}
.about-lore {
  grid-column: 1 / -1;
}
.lore-text {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.lore-text p {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.7;
  max-width: 72ch;
}
.lore-divider {
  margin-top: var(--sp-6);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-faint);
  letter-spacing: 0.15em;
  text-align: center;
}

/* Network links */
.about-network-intro {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: var(--sp-5);
}
.about-network-intro strong { color: var(--text); }
.network-links {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.network-link {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color var(--ease), background var(--ease), transform var(--ease);
}
.network-link:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  transform: translateX(4px);
}
.network-link-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.network-link-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}
.network-link-name {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--text);
  letter-spacing: 0.06em;
}
.network-link-desc {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-family: var(--font-body);
}

/* Credits */
.credits-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-bottom: var(--sp-6);
}
.credit-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.credit-role {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
  letter-spacing: 0.08em;
}
.credit-name {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
}
.credit-name.cyan   { color: var(--cyan); }
.credit-name.purple { color: var(--purple); }
.credit-name.pink   { color: var(--pink); }
.credit-name.gold   { color: var(--gold); }

.credits-tagline {
  text-align: center;
  margin-top: var(--sp-4);
}
.pixel-small {
  font-family: var(--font-pixel);
  font-size: var(--text-xs);
  color: var(--text-faint);
  letter-spacing: 0.1em;
}
.pixel-tiny {
  font-family: var(--font-pixel);
  font-size: 0.5rem;
  letter-spacing: 0.08em;
}

@media (max-width: 768px) {
  .about-layout { grid-template-columns: 1fr; }
  .about-lore { grid-column: 1; }
}

/* ══════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════ */
.site-footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255, 45, 123, 0.2);
  background: var(--bg);
  padding: var(--sp-6);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: var(--sp-8);
  flex-wrap: wrap;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-pixel);
  font-size: var(--text-xs);
  color: var(--text-muted);
}
.footer-links {
  display: flex;
  gap: var(--sp-5);
}
.footer-links a {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
  letter-spacing: 0.08em;
  transition: color var(--ease);
}
.footer-links a:hover { color: var(--cyan); }
.footer-copy {
  margin-left: auto;
  color: var(--text-faint);
}

/* ══════════════════════════════════════════════════════════════
   NEON COLOR UTILITIES
   ══════════════════════════════════════════════════════════════ */
.text-pink   { color: var(--pink); }
.text-cyan   { color: var(--cyan); }
.text-purple { color: var(--purple); }
.text-gold   { color: var(--gold); }
.cyan  { color: var(--cyan); }
.pink  { color: var(--pink); }
.gold  { color: var(--gold); }
.purple{ color: var(--purple); }

/* ══════════════════════════════════════════════════════════════
   REDUCED MOTION
   ══════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  .stats-strip {
    gap: var(--sp-4);
    padding: var(--sp-4);
    flex-wrap: wrap;
    justify-content: center;
  }
  .stat-divider { display: none; }
  .hero-actions { flex-direction: column; align-items: center; }
  .section-title { font-size: var(--text-lg); }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-copy { margin-left: 0; }
  .games-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .profile-layout { grid-template-columns: 1fr; }
}
