/* Night shift on the warehouse floor. Teal is the robots' own light (eyes,
   signals); amber is work (crates, the dock, the button). robots.js reads
   these tokens, so change colours here only. */
:root {
  --night: #0f1426;
  --floor: #19203a;
  --horizon: #2b3663;
  --shell: #d8dde8;
  --shell-2: #c3cde2;
  --shell-3: #e4dccb;
  --visor: #1a2140;
  --glow: #7de3d6;
  --crate: #efb546;
  --crate-dark: #b8842c;
  --ink: #eef0f6;
  --muted: #97a0be;

  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
}

body {
  overflow: hidden;
  background: var(--night);
  color: var(--ink);
  font-family: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.45;
}

#floor {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  touch-action: manipulation;
}

/* The copy sits over the sky above the floor; only the button takes clicks,
   so a click anywhere else reaches the canvas. */
.intro {
  position: relative;
  z-index: 1;
  max-width: 40rem;
  padding: clamp(28px, 7vh, 88px) clamp(16px, 6vw, 96px) 0;
  pointer-events: none;
}

h1 {
  margin: 0;
  font-size: clamp(2.1rem, 6.2vw, 4.75rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.015em;
}

.status {
  margin: 0.6rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
}

.play {
  display: none;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: clamp(1.25rem, 4vh, 2.5rem);
}

.robots-ready .play {
  display: flex;
}

@media (prefers-reduced-motion: reduce) {
  .robots-ready .play {
    display: none;
  }
}

button {
  pointer-events: auto;
  padding: 0.6rem 1.15rem;
  border: 1.5px solid var(--crate);
  border-radius: 999px;
  background: transparent;
  color: var(--crate);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

button:hover {
  background: rgb(239 181 70 / 0.12);
}

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

button:focus-visible {
  outline: 2px solid var(--glow);
  outline-offset: 3px;
}

.hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.coarse-pointer {
  display: none;
}

@media (pointer: coarse) {
  .fine-pointer {
    display: none;
  }

  .coarse-pointer {
    display: inline;
  }
}

/* The 404 page: no canvas, just copy. */
.plain {
  display: grid;
  place-items: center;
  min-height: 100%;
  padding: 24px 16px;
  text-align: center;
}

.plain p {
  margin: 0.5rem 0 0;
  color: var(--muted);
}

a {
  color: var(--glow);
}

a:focus-visible {
  outline: 2px solid var(--glow);
  outline-offset: 3px;
}
