:root {
  --page-background: #000000;
  --gate-background: #344050;
  --gate-text: #d8f4ff;
  --gate-accent: #8fdcff;
  --gate-error: #ffb4a8;
  --focus-ring: #ffffff;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  background: var(--page-background);
  overflow: hidden;
}

.stage {
  position: relative;
  display: grid;
  place-items: center;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
}

.stage__canvas {
  display: block;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.gate {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 16px;
  background: radial-gradient(ellipse at center, var(--gate-background) 0%, var(--page-background) 75%);
  color: var(--gate-text);
  font-family: "Dicot Plasmid", system-ui, sans-serif;
  text-align: center;
}

.gate[hidden] {
  display: none;
}

.gate__title {
  margin: 0;
}

.gate__logo {
  display: block;
  width: min(420px, 80vw);
  height: auto;
}

.gate__status {
  min-height: 1.5em;
  margin: 0;
  font-size: 20px;
  max-width: 36em;
}

.gate--error .gate__status {
  color: var(--gate-error);
}

.gate__play {
  min-width: 160px;
  min-height: 48px;
  padding: 8px 32px;
  border: 2px solid var(--gate-accent);
  border-radius: 999px;
  background: transparent;
  color: var(--gate-text);
  font: inherit;
  font-size: 28px;
  letter-spacing: 0.05em;
  cursor: pointer;
}

.gate__play:hover {
  background: rgba(143, 220, 255, 0.15);
}

.gate__play:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 4px;
}
