/* The page around the player: the canvas fills the window, and until the game
   draws its own loading screen the boot overlay shows the wordmark and a bar in
   the game's accent. Tokens match Resources/UI/Endless.uss. */

html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  background: #0d1015;
  color: rgb(242, 244, 247);
  font-family: 'Helvetica Neue', 'Segoe UI', Roboto, Arial, sans-serif;
}

#unity-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  outline: none;
  touch-action: none;
  background: #0d1015;
}

.boot {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  background: #0d1015;
  transition: opacity 600ms ease;
}

.boot--done {
  opacity: 0;
  pointer-events: none;
}

.boot__title {
  margin: 0;
  font-size: clamp(40px, 8vw, 88px);
  font-weight: 200;
  letter-spacing: 0.3em;
  padding-left: 0.3em;
}

.boot__bar {
  width: min(280px, 60vw);
  height: 3px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.14);
}

.boot__fill {
  height: 100%;
  background: rgb(216, 195, 154);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 180ms ease;
}

.boot__message {
  margin: 0;
  max-width: 420px;
  padding: 0 24px;
  text-align: center;
  font-size: 15px;
  line-height: 1.5;
  color: rgb(173, 182, 196);
}

.boot--error .boot__bar {
  display: none;
}

.boot--error { opacity: 1; transition: none; }

.boot__retry {
  min-height: 44px;
  padding: 10px 22px;
  border: 1px solid rgb(216, 195, 154);
  border-radius: 10px;
  background: rgb(216, 195, 154);
  color: #151a22;
  font: inherit;
  cursor: pointer;
}

.boot__retry:focus-visible {
  outline: 2px solid white;
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .boot, .boot__fill { transition: none; }
}

/* The clipboard fallback's textarea: selectable, never seen. */
.offscreen {
  position: fixed;
  left: -9999px;
  top: 0;
  opacity: 0;
}
