* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #000;
  color: #b3b9c9;
  font-family: "Space Mono", monospace;
  font-size: 12px;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
}

#sea {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.header {
  position: sticky;
  top: 0;
  z-index: 1;
  height: 52px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav {
  display: flex;
}

.nav a {
  padding: 7px 12px;
  border-radius: 4px;
  text-transform: uppercase;
  color: rgba(179, 185, 201, 0.5);
}

.nav a:hover {
  animation: neon 1.05s steps(1) 1 forwards, hum 2.8s ease-in-out 1.05s infinite;
}

@keyframes neon {
  0%, 3% {
    color: rgba(179, 185, 201, 0.5);
    text-shadow: none;
  }
  4%, 7% {
    color: #ddd0ff;
    text-shadow: 0 0 4px rgba(175, 150, 255, 0.9), 0 0 10px rgba(120, 60, 240, 0.7);
  }
  8%, 13% {
    color: rgba(179, 185, 201, 0.5);
    text-shadow: none;
  }
  14%, 16% {
    color: #c0b0f2;
    text-shadow: 0 0 3px rgba(175, 150, 255, 0.6);
  }
  17%, 26% {
    color: rgba(179, 185, 201, 0.5);
    text-shadow: none;
  }
  27%, 30% {
    color: #ddd0ff;
    text-shadow: 0 0 5px rgba(175, 150, 255, 0.95), 0 0 14px rgba(120, 60, 240, 0.8);
  }
  31%, 34% {
    color: rgba(179, 185, 201, 0.5);
    text-shadow: none;
  }
  35%, 100% {
    color: #c3a6ff;
    text-shadow:
      0 0 4px rgba(200, 180, 255, 0.95),
      0 0 11px rgba(135, 85, 255, 0.85),
      0 0 24px rgba(95, 45, 225, 0.6),
      0 0 46px rgba(65, 25, 175, 0.42);
  }
}

@keyframes hum {
  0%, 100% { opacity: 1; }
  45% { opacity: 0.94; }
  70% { opacity: 0.99; }
}

@media (prefers-reduced-motion: reduce) {
  .nav a:hover {
    animation: none;
    color: #c3a6ff;
    text-shadow: 0 0 4px rgba(200, 180, 255, 0.95), 0 0 18px rgba(115, 70, 245, 0.7);
  }
}

.page {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 52px);
}
