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

:root {
  --bg:     #0a0a0a;
  --accent: #a8ff78;
  --accent2: #78dbff;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
}

canvas {
  position: fixed;
  inset: 0;
  display: block;
}

#border-frame {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

#border-path {
  fill: none;
  stroke: rgba(210, 210, 210, 0.12);
  stroke-width: 1;
}

.site-title {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
  background: #0a0a0a;
  color: rgba(255, 255, 255, 0.45);
  font-family: sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0 14px;
  line-height: 1;
  transition: color 0.2s;
}

.site-title:hover { color: rgba(255, 220, 0, 0.9); }

.nav-link {
  position: fixed;
  bottom: 12px;
  z-index: 20;
  background: #0a0a0a;
  color: rgba(255, 255, 255, 0.45);
  font-family: sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0 14px;
  line-height: 1;
  transition: color 0.2s;
}

.nav-link:hover  { color: rgba(255, 220, 0, 0.9); }
.nav-link.active { color: rgba(255, 220, 0, 0.9); }
.nav-left  { left: 25%; transform: translate(-50%, 50%); }
.nav-right { left: 75%; transform: translate(-50%, 50%); }

.github-link {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 9;
  color: rgba(210, 210, 210, 0.35);
  transition: color 0.2s;
}

.github-link:hover { color: rgba(255, 220, 0, 0.9); }

.github-link svg {
  width: 38px;
  height: 38px;
  display: block;
}

.contact-btn {
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translate(-50%, 50%);
  z-index: 20;
  background: #0a0a0a;
  color: rgba(255, 255, 255, 0.45);
  font-family: sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0 14px;
  line-height: 1;
  transition: color 0.2s;
}

.contact-btn:hover { color: rgba(255, 220, 0, 0.9); }

#bg-canvas  { z-index: 0; }
#map-canvas { z-index: 1; }


/* ── Push transition overlay ─────────────────────────────── */
#push-overlay {
  position: fixed;
  inset: 0;
  background: #0a0a0a;
  z-index: 9999;
  display: none;
  pointer-events: none;
  will-change: transform;
}

/* ── Command prompt label ────────────────────────────────── */
.cmd-label {
  position: fixed;
  top: 32px;
  left: 32px;
  z-index: 20;
  font-family: monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: rgba(210, 210, 210, 0.3);
  pointer-events: none;
}

.cmd-prompt {
  color: rgba(210, 210, 210, 0.18);
}

.cmd-cursor {
  animation: blink 1.1s step-start infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ── Blog WIP notice ─────────────────────────────────────── */
.blog-wip {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  font-family: sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 220, 0, 0.95);
  background: rgba(10, 10, 10, 0.92);
  border: 1px solid rgba(255, 220, 0, 0.3);
  padding: 0.9rem 2rem;
  border-radius: 3px;
  pointer-events: none;
  white-space: nowrap;
}

/* ── Map tooltip ──────────────────────────────────────────── */
#map-tooltip {
  position: fixed;
  z-index: 30;
  font-family: sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(210, 210, 210, 0.9);
  background: rgba(10, 10, 10, 0.88);
  border: 1px solid rgba(210, 210, 210, 0.14);
  padding: 0.28rem 0.7rem;
  border-radius: 3px;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, calc(-100% - 8px));
  transition: opacity 0.15s;
  white-space: nowrap;
}

#map-tooltip.visible { opacity: 1; }

/* ── Map loading indicator ────────────────────────────────── */
#map-loading {
  position: fixed;
  inset: 0;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

.loading-text {
  font-family: sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(210, 210, 210, 0.25);
  animation: loadingPulse 1.4s ease-in-out infinite;
}

@keyframes loadingPulse {
  0%, 100% { opacity: 0.3; }
  50%       { opacity: 0.8; }
}
