/* ── RESET & BASE ──────────────────────────────────────── */

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

:root {
  /* garden */
  --leaf:       #3a7a2a;
  --leaf-light: #6abf4a;
  --vine:       #2d5a1e;
  --earth:      #4a3520;
  --earth-light:#8b6b4a;
  --petal:      #e85a8a;
  --petal-warm: #f4a040;
  --sunlight:   #f8e070;
  --sky:        #1a2a1a;

  /* tech (from froods palette) */
  --gold:       #e8a020;
  --amber:      #ff8c00;
  --orange:     #e05a10;
  --cream:      #f0e8d0;
  --black:      #0a0806;
  --deep:       #110e0a;

  /* glow */
  --glow-gold:  0 0 8px #e8a020, 0 0 20px rgba(232,160,32,0.4);
  --glow-leaf:  0 0 8px #6abf4a, 0 0 20px rgba(106,191,74,0.3);
}

@font-face {
  font-family: 'Bebas Neue';
  src: url('assets/fonts/BebasNeue-Regular.woff2') format('woff2');
  font-display: swap;
}

@font-face {
  font-family: 'Space Mono';
  src: url('assets/fonts/SpaceMono-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Space Mono';
  src: url('assets/fonts/SpaceMono-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: 'VT323';
  src: url('assets/fonts/VT323-Regular.woff2') format('woff2');
  font-display: swap;
}

html, body {
  width: 100%; height: 100%; overflow: hidden;
  background: var(--black);
  font-family: 'Space Mono', monospace;
  color: var(--cream);
}

/* ── STAGE ─────────────────────────────────────────────── */

#stage {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
}

#ambient {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
}

#scene {
  position: relative;
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  z-index: 1;
}

#scene svg {
  max-width: 100%;
  max-height: 100%;
}

/* ── OVERLAY / PANELS ──────────────────────────────────── */

#overlay {
  position: fixed; inset: 0;
  z-index: 50;
  pointer-events: none;
}

#overlay.active {
  pointer-events: auto;
}

.panel {
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%) translateY(100%);
  width: min(90vw, 600px);
  max-height: 80vh;
  overflow-y: auto;
  background: rgba(10, 8, 6, 0.95);
  border: 1px solid rgba(232, 160, 32, 0.3);
  border-bottom: none;
  padding: 2rem;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  font-family: 'Space Mono', monospace;
  color: var(--cream);
}

.panel.open {
  transform: translateX(-50%) translateY(0);
}

.panel h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  letter-spacing: 4px;
  color: var(--gold);
  margin-bottom: 1rem;
}

.panel p {
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* ── SCANLINE OVERLAY ──────────────────────────────────── */

#stage::after {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.08) 2px,
    rgba(0,0,0,0.08) 4px
  );
  pointer-events: none;
  z-index: 100;
}
