/* Base page + boot screen. Plain CSS, readable class names. */
:root {
  --space: #05030f;
  --chrome-blue: #3b55e0;
  --magenta: #e0388a;
  --cyan: #7ff5ff;
  --sun: #ff5a1e;
  --sun-hot: #ffc04a;
  --ui-font: -apple-system, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--space);
  color: #fff;
  font-family: var(--ui-font);
  touch-action: none;
  overscroll-behavior: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

#game {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* All DOM UI (touch controls, HUD) lives in here. Children opt in to pointer events. */
#ui {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10;
}

#boot {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: var(--space);
  text-align: center;
  padding: 24px;
}

#boot.ready {
  background: rgba(5, 3, 15, 0.55);
  cursor: pointer;
}

#boot-title {
  font-size: clamp(38px, 11vw, 96px);
  font-weight: 900;
  letter-spacing: 0.06em;
  font-style: italic;
  color: var(--cyan);
  text-shadow: 3px 3px 0 var(--magenta), 6px 6px 0 var(--chrome-blue);
}

#boot-sub {
  font-size: clamp(14px, 3.4vw, 22px);
  color: var(--sun-hot);
}

#boot-msg {
  margin-top: 18px;
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0.85;
}

#boot.ready #boot-msg {
  border: 2px solid var(--cyan);
  padding: 12px 22px;
  background: rgba(59, 85, 224, 0.45);
  opacity: 1;
}
