/* Base reset */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: radial-gradient(1200px 800px at 50% 30%, #0b0f2a 0%, #060814 50%, #02040a 100%);
  color: #e6e9ff;
  font-family: "Orbitron", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  text-shadow: 0 0 2px rgba(255,255,255,0.2);
  overflow: hidden;
}

/* Starfield canvas fills viewport */
#starfield { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; z-index: 0; }

/* CRT scanline overlay */
.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.05), rgba(0,0,0,0.05)),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.03) 0px, rgba(255,255,255,0.03) 1px, transparent 2px, transparent 3px);
  mix-blend-mode: overlay;
  animation: flicker 4s infinite steps(60);
  z-index: 2;
}

@keyframes flicker {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 0.35; }
}

.container {
  position: relative;
  z-index: 3;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 4rem 1.5rem;
}

/* Y2K chrome window */
.chrome {
  width: min(820px, 92vw);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255,255,255,0.2),
    inset 0 -1px 0 rgba(255,255,255,0.05);
  backdrop-filter: blur(8px) saturate(140%);
  position: relative;
  overflow: hidden;
}

.chrome-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
}

.title { margin-left: auto; font-size: 12px; letter-spacing: 2px; opacity: 0.7; }

.led { width: 10px; height: 10px; border-radius: 50%; display: inline-block; box-shadow: 0 0 8px currentColor; }
.led-red { color: #ff4d4d; background: #ff4d4d; }
.led-yellow { color: #ffd24d; background: #ffd24d; }
.led-green { color: #3dff9b; background: #3dff9b; }

.chrome-body { padding: 64px 28px 36px; text-align: center; position: relative; overflow: hidden; }

.headline {
  font-family: "VT323", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 400;
  font-size: clamp(36px, 7vw, 92px);
  line-height: 1.02;
  text-transform: none;
  color: #eaf2ff;
  text-shadow:
    0 0 2px rgba(255,255,255,0.6),
    0 0 12px rgba(64, 160, 255, 0.35),
    0 0 28px rgba(64, 160, 255, 0.25);
  letter-spacing: 0.5px;
}

.headline .spin {
  position: absolute;
  left: 0;
  top: 0;
  display: inline-block;
  transform: translate(0, 0);
  transform-origin: 50% 60%;
  pointer-events: none;
  will-change: transform;
  white-space: nowrap;
  animation: none;
  z-index: 5;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .headline .spin { animation: none; }
}

.sub {
  margin: 18px 0 0;
  font-size: 14px;
  letter-spacing: 0.18em;
  opacity: 0.75;
}

.chrome-bottom {
  display: flex;
  justify-content: center;
  padding: 28px;
  border-top: 1px solid rgba(255,255,255,0.1);
  background: linear-gradient(0deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
}

.btn {
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 12px;
  padding: 12px 22px;
  color: #081221;
  background: linear-gradient(180deg, #c0e6ff 0%, #71baff 70%, #2c87ff 100%);
  border: 0;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 110, 255, 0.5), inset 0 1px 0 rgba(255,255,255,0.7);
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.08s ease, filter 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn.flash { filter: brightness(1.3) saturate(1.4); box-shadow: 0 0 0 rgba(0,0,0,0), 0 0 32px rgba(44,135,255,0.9) inset; }

.footer {
  position: fixed;
  left: 0; right: 0; bottom: 10px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.2em;
  opacity: 0.6;
  z-index: 3;
}
.heart { color: #ff6aa8; text-shadow: 0 0 6px rgba(255,106,168,0.8); }

/* Small screens */
@media (max-width: 420px) {
  .title { display: none; }
  .chrome-body { padding: 48px 18px 28px; }
}


