/* Zahleninvasion. SPDX-License-Identifier: GPL-2.0-or-later. Copyright and credits: NOTICE. */
:root {
  color-scheme: dark;
  --ink: #f4f1ff;
  --muted: #a9a4d6;
  --accent: #3ad1c6;
  --panel: rgba(8, 10, 32, 0.92);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  background: #05061a;
  color: var(--ink);
  overflow: hidden;
  overscroll-behavior: none;
}

#stage {
  position: relative;
  width: min(100vw, calc(100dvh * 9 / 16));
  height: min(100dvh, calc(100vw * 16 / 9));
  margin: 0 auto;
  top: 50%;
  transform: translateY(-50%);
}

canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.toolbar {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  display: flex;
  gap: 4px;
  padding: 5px 6px;
}

/* Pause only makes sense while a round runs (main.ts sets data-phase="play"). */
body:not([data-phase='play']) #btn-pause {
  visibility: hidden;
}

.toolbar button {
  min-width: 30px;
  height: 30px;
  padding: 0 6px;
  font-size: 13px;
  font-weight: 700;
}

button {
  font: inherit;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  padding: 10px 16px;
  cursor: pointer;
}

button:hover,
button:focus-visible {
  border-color: var(--accent);
  outline: none;
}

button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #08152a;
  font-weight: 800;
}

.screen {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  padding: 48px 22px 24px;
  background: var(--panel);
  line-height: 1.4;
  font-size: 15px;
}

.screen[hidden] {
  display: none;
}

h1 {
  margin: 0 0 6px;
  font-size: 34px;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #6ee7ff, #d27bff 60%, #ffd34d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.tagline {
  font-size: 17px;
  font-weight: 600;
}

.rules {
  padding-left: 20px;
}

.rules li {
  margin: 4px 0;
}

.controls,
.privacy {
  color: var(--muted);
  font-size: 13px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.links a {
  color: var(--accent);
}
