* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; background: #020408; color: #d8e4f0; font-family: 'Segoe UI', Arial, sans-serif; }
#world { display: block; width: 100vw; height: 100vh; outline: none; cursor: grab; }
#world:active { cursor: grabbing; }

/* Start Screen */
.start-screen {
  position: fixed; inset: 0; z-index: 30;
  display: grid; place-items: center;
  background: radial-gradient(ellipse at 50% 60%, rgba(20, 40, 80, 0.55), rgba(2, 4, 8, 0.88) 55%, #010204 100%);
  transition: opacity 0.9s ease, visibility 0.9s;
}
.start-screen.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.title-block {
  width: min(600px, calc(100vw - 40px)); padding: 52px 38px 44px;
  text-align: center;
  border-top: 1px solid rgba(100, 160, 255, 0.25);
  border-bottom: 1px solid rgba(100, 160, 255, 0.12);
  background: linear-gradient(90deg, transparent, rgba(10, 18, 40, 0.72) 18%, rgba(10, 18, 40, 0.72) 82%, transparent);
  text-shadow: 0 2px 20px #000;
}
.eyebrow { margin: 0 0 18px; color: #7aa8d8; font-size: 11px; font-weight: 600; letter-spacing: 0.35em; }
h1 { margin: 0; color: #eef4ff; font-size: clamp(48px, 8vw, 84px); font-weight: 300; line-height: 0.92; letter-spacing: -0.03em; }
.subtitle { margin: 20px auto 28px; max-width: 400px; color: #8ab0cc; font-size: 17px; font-style: italic; line-height: 1.5; }
#enter-button {
  appearance: none; padding: 13px 24px;
  border: 1px solid rgba(100, 170, 255, 0.4); border-radius: 0;
  background: rgba(15, 30, 65, 0.85); color: #ddeeff;
  font-size: 11px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  cursor: pointer; transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
#enter-button:hover { background: rgba(30, 55, 110, 0.9); border-color: rgba(140, 190, 255, 0.75); }
#enter-button:active { transform: translateY(1px); }
.controls-copy { margin: 20px 0 0; color: #556a80; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; }

/* HUD */
.hud {
  position: fixed; inset: 0; z-index: 10; pointer-events: none;
  opacity: 0; transition: opacity 0.5s;
  font-family: 'Segoe UI', Arial, sans-serif;
}
.hud.active { opacity: 1; pointer-events: auto; }

/* Planet Info Card */
.planet-card {
  position: absolute; top: 24px; left: 26px;
  padding: 14px 18px 12px; min-width: 200px;
  background: rgba(8, 16, 36, 0.72);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(80, 140, 220, 0.2);
  border-radius: 4px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255,255,255,0.05);
}
.card-kicker { display: block; margin-bottom: 5px; color: #5a8ab0; font-size: 9px; font-weight: 700; letter-spacing: 0.22em; }
#planet-name { color: #ddeeff; font-size: 22px; font-weight: 300; letter-spacing: 0.05em; }

/* Stats Grid */
.stat-grid {
  position: absolute; top: 24px; right: 26px;
  display: flex; flex-direction: column; gap: 10px;
  min-width: 260px; max-width: 320px;
}
.stat-item {
  background: rgba(8, 16, 36, 0.65);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(80, 140, 220, 0.15);
  border-radius: 4px; padding: 10px 14px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
}
.stat-label { display: block; margin-bottom: 3px; color: #4a7a9a; font-size: 9px; font-weight: 700; letter-spacing: 0.2em; }
.stat-item strong { color: #c8dff5; font-size: 14px; font-weight: 400; letter-spacing: 0.04em; }
.stat-item p { margin: 2px 0 0; color: #8aaabb; font-size: 12px; line-height: 1.45; }
.full-width { width: 100%; }

/* Time Control */
.time-control {
  position: absolute; left: 26px; bottom: 26px;
  display: flex; align-items: center; gap: 12px;
  background: rgba(8, 16, 36, 0.65);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(80, 140, 220, 0.15);
  border-radius: 4px; padding: 10px 16px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
}
.time-label { color: #5a8ab0; font-size: 9px; font-weight: 700; letter-spacing: 0.2em; white-space: nowrap; }
.time-slider {
  -webkit-appearance: none; appearance: none; width: 120px; height: 4px;
  background: rgba(60, 100, 160, 0.3); border-radius: 2px; outline: none;
  cursor: pointer;
}
.time-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 14px; height: 14px;
  background: #7ab0e0; border-radius: 50%; cursor: pointer;
  box-shadow: 0 0 6px rgba(100, 170, 255, 0.6);
}
.time-slider::-moz-range-thumb {
  width: 14px; height: 14px; background: #7ab0e0; border-radius: 50%; border: none;
  cursor: pointer; box-shadow: 0 0 6px rgba(100, 170, 255, 0.6);
}
#time-display { color: #a8c8e0; font-size: 12px; font-weight: 600; min-width: 38px; }

/* Hint */
.hint-text {
  position: absolute; bottom: 26px; right: 26px;
  color: #3a5070; font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Vignette */
.vignette { position: fixed; inset: 0; z-index: 5; pointer-events: none; background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,10,0.55) 100%); }

@media (max-width: 620px) {
  .title-block { padding-inline: 20px; }
  .stat-grid { right: 12px; top: auto; bottom: 80px; min-width: auto; max-width: calc(100vw - 28px); }
  .planet-card { left: 12px; top: 12px; }
  .time-control { left: 12px; bottom: 12px; }
  .hint-text { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .start-screen, .hud { transition: none; }
}
