:root {
  --bg: #020713;
  --fg: #ffffff;
  --soft: rgba(255,255,255,0.72);
  --glass: rgba(2,7,19,0.66);
  --line: rgba(255,255,255,0.22);
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  overscroll-behavior: none;
}

#spaceCanvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  background: var(--bg);
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(24px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
  background: radial-gradient(circle at 50% 40%, rgba(16,35,72,0.44), rgba(2,7,19,0.88) 64%);
  transition: opacity 280ms ease, visibility 280ms ease;
}

.overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.panel {
  width: min(500px, calc(100vw - 48px));
  box-sizing: border-box;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  text-align: center;
  box-shadow: 0 24px 80px rgba(0,0,0,0.46);
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1;
  letter-spacing: -0.04em;
}

p {
  margin: 0 auto 18px;
  color: var(--soft);
  font-size: 17px;
  line-height: 1.35;
}

button {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 16px 34px;
  min-width: 150px;
  font: inherit;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #071122;
  background: #ffffff;
  cursor: pointer;
  box-shadow: 0 12px 34px rgba(255,255,255,0.16);
}

button:active {
  transform: translateY(1px) scale(0.99);
}

.status {
  min-height: 1.35em;
  margin: 16px auto 0;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
}
