/* ═══════════════════════════════════════════════════════════
   brickbybrick.gg — styles.css
   Synthwave neon aesthetic: dark void bg, neon green / purple / cyan
   Vanilla CSS — no build step, deploys as-is
   ═══════════════════════════════════════════════════════════ */

/* ─── Custom properties ─── */
:root {
  --void:        #0a0a12;
  --void-alt:    #0e0e1a;
  --void-card:   #12121f;
  --void-border: rgba(255,255,255,0.07);

  --neon-green:  #39ff7a;
  --neon-purple: #b14eff;
  --neon-cyan:   #22d3ee;
  --neon-orange: #f47215;

  --glow-green:  0 0 12px #39ff7a88, 0 0 32px #39ff7a44;
  --glow-purple: 0 0 12px #b14eff88, 0 0 32px #b14eff44;
  --glow-cyan:   0 0 12px #22d3ee88, 0 0 32px #22d3ee44;

  --text-primary:   #e8e8f0;
  --text-secondary: #8888aa;
  --text-dim:       #44445a;

  --font-display: 'Courier New', 'Lucida Console', monospace;
  --font-body:    system-ui, -apple-system, 'Segoe UI', sans-serif;

  --section-pad: clamp(4rem, 10vw, 7rem) clamp(1.25rem, 6vw, 4rem);
  --radius:      0.5rem;
  --radius-lg:   1rem;
}

/* ─── Reset / base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem; /* nav height */
}

body {
  background-color: var(--void);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* ─── Utility ─── */
.neon-green  { color: var(--neon-green);  }
.neon-purple { color: var(--neon-purple); }
.neon-cyan   { color: var(--neon-cyan);   }

/* ════════════════════════════════════════
   NAVIGATION
════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1rem, 5vw, 2.5rem);
  height: 3.75rem;
  background: rgba(10, 10, 18, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--void-border);
}

.nav-wordmark {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  text-shadow: var(--glow-green);
  transition: color 0.2s;
}
.nav-wordmark:hover { color: var(--neon-green); }
.nav-gg { color: var(--neon-green); }

.nav-links {
  display: flex;
  gap: clamp(1rem, 3vw, 2rem);
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color 0.2s;
  padding: 0.25rem 0;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 1px;
  background: var(--neon-cyan);
  box-shadow: var(--glow-cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-links a:hover { color: var(--neon-cyan); }
.nav-links a:hover::after { transform: scaleX(1); }

/* ════════════════════════════════════════
   BUTTONS
════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--neon-green);
  color: var(--void);
  box-shadow: var(--glow-green);
}
.btn-primary:hover, .btn-primary:focus-visible {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 0 20px #39ff7aaa, 0 0 50px #39ff7a66;
}

.btn-secondary {
  background: transparent;
  color: var(--neon-purple);
  border: 1.5px solid var(--neon-purple);
  box-shadow: var(--glow-purple);
}
.btn-secondary:hover, .btn-secondary:focus-visible {
  background: rgba(177, 78, 255, 0.12);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 20px #b14effaa, 0 0 50px #b14eff55;
}

.btn-outline {
  background: transparent;
  color: var(--neon-cyan);
  border: 1.5px solid var(--neon-cyan);
  box-shadow: var(--glow-cyan);
}
.btn-outline:hover, .btn-outline:focus-visible {
  background: rgba(34, 211, 238, 0.10);
  transform: translateY(-2px);
  box-shadow: 0 0 20px #22d3eeaa, 0 0 50px #22d3ee55;
}

.btn-large {
  padding: 1rem 2.4rem;
  font-size: 1rem;
}

.btn-icon { font-size: 1.1em; }

/* ════════════════════════════════════════
   HERO
════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem clamp(1.25rem, 6vw, 4rem) 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  opacity: 0.55;
}
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,10,18,0.55) 0%,
    rgba(10,10,18,0.25) 50%,
    rgba(10,10,18,0.90) 100%
  );
}

/* CRT scanlines */
.scanlines {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.08) 2px,
    rgba(0,0,0,0.08) 4px
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--neon-cyan);
  text-shadow: var(--glow-cyan);
  margin-bottom: 1rem;
  animation: fadeUp 0.8s ease both;
}

.hero-wordmark {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 10vw, 5.5rem);
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1;
  color: #fff;
  text-shadow: 0 0 18px #39ff7a66, 0 0 60px #39ff7a33;
  margin-bottom: 1rem;
  animation: fadeUp 0.8s 0.1s ease both;
}
.hero-gg {
  color: var(--neon-green);
  text-shadow: var(--glow-green);
}

.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  animation: fadeUp 0.8s 0.2s ease both;
}
.hero-tagline em {
  color: var(--neon-green);
  font-style: normal;
  font-weight: 600;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.8s 0.3s ease both;
}

/* Floating spider mascot */
.hero-spider {
  position: absolute;
  z-index: 3;
  right: clamp(2rem, 8vw, 8rem);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: spiderFloat 3.5s ease-in-out infinite;
  pointer-events: none;
}
.spider-img {
  width: clamp(64px, 10vw, 120px);
  filter: drop-shadow(0 0 14px #39ff7a88) drop-shadow(0 0 40px #9333ea44);
}
.web-thread {
  width: 2px;
  height: clamp(60px, 12vh, 150px);
  background: linear-gradient(to bottom, rgba(57,255,122,0.7), rgba(57,255,122,0));
  margin-top: 0;
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-dim);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: fadeIn 1.5s 1s ease both;
}
.scroll-arrow {
  width: 10px;
  height: 10px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  animation: scrollBounce 1.5s ease-in-out infinite;
}

/* Hide floating spider on small screens — hero is centered */
@media (max-width: 640px) {
  .hero-spider { display: none; }
  .hero { padding-bottom: 5rem; }
}

/* ════════════════════════════════════════
   SECTIONS — SHARED
════════════════════════════════════════ */
.section {
  position: relative;
  padding: var(--section-pad);
  overflow: hidden;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.section-inner--centered {
  grid-template-columns: 1fr;
  text-align: center;
  max-width: 740px;
}

.section-inner--two-col {
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

@media (max-width: 768px) {
  .section-inner,
  .section-inner--two-col {
    grid-template-columns: 1fr;
  }
}

.section-label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 900;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 1rem;
}

.body-copy {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.section-copy {
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

/* ════════════════════════════════════════
   GAME SECTION
════════════════════════════════════════ */
.section-game {
  background: var(--void-alt);
  border-top: 1px solid var(--void-border);
  border-bottom: 1px solid var(--void-border);
}

/* Subtle neon glow accent strip on top */
.section-game::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--neon-green), transparent);
  box-shadow: 0 0 16px 2px var(--neon-green);
}

.game-text .section-title {
  color: var(--neon-green);
  text-shadow: 0 0 24px #39ff7a55;
}

.game-subtitle {
  font-size: 1rem;
  color: var(--neon-cyan);
  letter-spacing: 0.04em;
  margin-bottom: 1.25rem;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.feature-list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.pill {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.pill.neon-green  { background: rgba(57,255,122,0.15); color: var(--neon-green);  border: 1px solid rgba(57,255,122,0.3); }
.pill.neon-purple { background: rgba(177,78,255,0.15); color: var(--neon-purple); border: 1px solid rgba(177,78,255,0.3); }
.pill.neon-cyan   { background: rgba(34,211,238,0.15); color: var(--neon-cyan);   border: 1px solid rgba(34,211,238,0.3); }

.deploy-note {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 0.75rem;
}

/* Game preview frame */
.game-preview {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.game-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(57,255,122,0.25);
  box-shadow: 0 0 32px #39ff7a22, 0 8px 32px rgba(0,0,0,0.6);
  cursor: pointer;
  /* Portrait aspect ratio (game is vertical) */
  aspect-ratio: 9 / 16;
  max-height: 480px;
}

.game-frame-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.game-frame-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(10,10,18,0.35);
  backdrop-filter: blur(1px);
}

.game-frame-spider {
  width: 80px;
  filter: drop-shadow(0 0 16px #39ff7aaa);
  animation: spiderFloat 3s ease-in-out infinite;
  margin-bottom: 1.5rem;
}

.game-frame-score {
  position: absolute;
  top: 1rem; right: 1rem;
  background: rgba(10,10,18,0.7);
  border: 1px solid rgba(57,255,122,0.3);
  border-radius: var(--radius);
  padding: 0.3rem 0.7rem;
  text-align: center;
  font-family: var(--font-display);
}
.score-label { display: block; font-size: 0.6rem; color: var(--text-dim); letter-spacing: 0.12em; }
.score-value { display: block; font-size: 1.2rem; color: var(--neon-green); font-weight: 700; }

.game-frame-water {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 18%;
  background: linear-gradient(
    to top,
    rgba(0, 180, 120, 0.55) 0%,
    rgba(34, 211, 150, 0.25) 60%,
    transparent 100%
  );
  border-top: 1.5px solid rgba(57,255,122,0.6);
  box-shadow: 0 -4px 24px #39ff7a44;
  animation: waterRise 4s ease-in-out infinite;
}

.game-frame-play-btn {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--void);
  background: var(--neon-green);
  padding: 0.65rem 1.8rem;
  border-radius: var(--radius);
  box-shadow: var(--glow-green);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.game-frame:hover .game-frame-play-btn {
  transform: scale(1.06);
  box-shadow: 0 0 28px #39ff7aaa;
}

.game-frame-caption {
  font-size: 0.78rem;
  color: var(--text-dim);
  text-align: center;
}

/* Live iframe embed — portrait canvas game */
.game-frame-iframe {
  display: block;
  width: 100%;
  /* Portrait: 9:16 aspect, capped so it doesn't swamp the desktop layout */
  aspect-ratio: 9 / 16;
  max-height: 600px;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--void);
  /* Neon-green glow — matches the old .game-frame aesthetic */
  box-shadow:
    0 0 0 1px rgba(57, 255, 122, 0.25),
    0 0 32px #39ff7a22,
    0 8px 32px rgba(0, 0, 0, 0.6);
  /* Prevent any overflow bleed from the iframe itself */
  overflow: hidden;
}

@media (max-width: 768px) {
  .game-frame-iframe {
    /* Full-width on mobile; portrait height capped to a sensible viewport fraction */
    max-height: min(72vh, 560px);
  }
}

/* Soundtrack strip */
.soundtrack-strip {
  border-top: 1px solid var(--void-border);
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.5rem;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(0rem, 1vw, 0rem);
}
.soundtrack-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.875rem;
  color: var(--text-secondary);
}
.soundtrack-icon {
  font-size: 1.1rem;
  color: var(--neon-purple);
  text-shadow: var(--glow-purple);
}
.soundtrack-inner strong { color: var(--text-primary); }
.soundtrack-inner em { color: var(--neon-purple); font-style: normal; }
.soundtrack-link {
  color: var(--neon-cyan);
  font-weight: 600;
  transition: color 0.2s;
  margin-left: auto;
}
.soundtrack-link:hover { color: #fff; }

/* ════════════════════════════════════════
   SERVER SECTION
════════════════════════════════════════ */
.section-server {
  background: var(--void);
}

/* Retro perspective grid background */
.server-grid-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  /* CSS-only perspective grid */
  background-image:
    linear-gradient(rgba(177,78,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(177,78,255,0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 100%, white, transparent);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 100%, white, transparent);
}
/* Horizon glow */
.server-grid-bg::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 35%;
  background: radial-gradient(ellipse 70% 60% at 50% 100%, rgba(177,78,255,0.12), transparent);
}

.section-server .section-inner {
  position: relative;
  z-index: 1;
}

.section-server .section-title {
  color: var(--neon-purple);
  text-shadow: 0 0 28px #b14eff55;
  margin-bottom: 1.25rem;
}

/* Server address card */
.server-card {
  margin: 2rem auto;
  max-width: 480px;
  background: var(--void-card);
  border: 1px solid rgba(177,78,255,0.3);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  box-shadow: 0 0 32px #b14eff22, 0 8px 24px rgba(0,0,0,0.5);
  text-align: center;
}

.server-card-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}

.server-address {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  background: rgba(177,78,255,0.08);
  border: 1.5px solid rgba(177,78,255,0.4);
  border-radius: var(--radius);
  padding: 0.85rem 1.25rem;
  margin-bottom: 0.75rem;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.server-address:hover {
  background: rgba(177,78,255,0.14);
  border-color: var(--neon-purple);
  box-shadow: 0 0 16px #b14eff44;
}

.server-addr-text {
  font-family: var(--font-display);
  font-size: clamp(0.9rem, 2.5vw, 1.15rem);
  font-weight: 700;
  color: var(--neon-purple);
  text-shadow: 0 0 10px #b14eff66;
  letter-spacing: 0.05em;
}

.copy-hint {
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  flex-shrink: 0;
  transition: color 0.2s;
}
.server-address:hover .copy-hint { color: var(--neon-cyan); }
/* State: copied */
.server-address.copied .server-addr-text { color: var(--neon-green); }
.server-address.copied .copy-hint { color: var(--neon-green); }

.server-version {
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* Server features grid */
.server-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
  width: 100%;
}

@media (max-width: 600px) {
  .server-features { grid-template-columns: 1fr; }
}

.server-feat {
  background: var(--void-card);
  border: 1px solid var(--void-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: left;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.server-feat:hover {
  border-color: rgba(177,78,255,0.3);
  box-shadow: 0 0 16px rgba(177,78,255,0.12);
}

.feat-icon {
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
  display: block;
}
.feat-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
  letter-spacing: 0.04em;
}
.feat-body {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ════════════════════════════════════════
   BUILD IN PUBLIC SECTION
════════════════════════════════════════ */
.section-build {
  background: var(--void-alt);
  border-top: 1px solid var(--void-border);
}

.section-build::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--neon-cyan), transparent);
  box-shadow: 0 0 16px 2px var(--neon-cyan);
}

.section-build .section-title {
  color: var(--neon-cyan);
  text-shadow: 0 0 24px #22d3ee44;
}

/* Build log */
.build-log {
  background: var(--void-card);
  border: 1px solid var(--void-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  font-family: var(--font-display);
}

.log-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--void-border);
  background: rgba(255,255,255,0.02);
}
.log-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon-green);
  box-shadow: 0 0 6px var(--neon-green);
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
.log-title {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.log-entries { padding: 0.5rem 0; }

.log-entry {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.7rem 1.25rem;
  font-size: 0.82rem;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  transition: background 0.15s;
}
.log-entry:last-child { border-bottom: none; }
.log-entry:hover { background: rgba(255,255,255,0.03); }

.log-tag {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  flex-shrink: 0;
  padding-top: 0.1rem;
  min-width: 3.5rem;
}
.log-tag.dim { color: var(--text-dim); }

.log-msg { color: var(--text-secondary); line-height: 1.45; }

/* ════════════════════════════════════════
   FOOTER
════════════════════════════════════════ */
.footer {
  background: var(--void);
  border-top: 1px solid var(--void-border);
  padding: 2.5rem clamp(1.25rem, 6vw, 4rem);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-wordmark {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
  margin-bottom: 0.2rem;
}

.footer-tagline {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--neon-cyan); }

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-dim);
  width: 100%;
}

/* ════════════════════════════════════════
   ANIMATIONS
════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes spiderFloat {
  0%, 100% { transform: translateY(0);     }
  50%       { transform: translateY(-12px); }
}

@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translateY(0);   opacity: 1; }
  50%       { transform: rotate(45deg) translateY(4px); opacity: 0.4; }
}

@keyframes waterRise {
  0%, 100% { transform: translateY(0);    }
  50%       { transform: translateY(-5px); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px var(--neon-green); }
  50%       { opacity: 0.5; box-shadow: 0 0 2px var(--neon-green); }
}

/* ════════════════════════════════════════
   FOCUS / ACCESSIBILITY
════════════════════════════════════════ */
:focus-visible {
  outline: 2px solid var(--neon-cyan);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ════════════════════════════════════════
   RESPONSIVE TWEAKS
════════════════════════════════════════ */
@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; align-items: center; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .soundtrack-inner { flex-direction: column; align-items: flex-start; }
  .soundtrack-link { margin-left: 0; }
}

@media (min-width: 769px) {
  /* On wider screens, game section: text left, preview right */
  .section-game .section-inner {
    grid-template-columns: 1fr 1fr;
  }
  .game-frame {
    max-height: 520px;
  }
  .game-frame-iframe {
    max-height: 620px;
  }
}
