:root {
  --text: #17314c;
  --muted: #4e6d88;
  --accent: #ff8d4d;
  --accent-strong: #ff6930;
  --shadow: 0 20px 50px rgba(21, 57, 94, 0.18);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: "Trebuchet MS", "Avenir Next", sans-serif;
  color: var(--text);
  background: #000;
  position: fixed;
  inset: 0;
}

.shell {
  width: 100%;
  height: 100%;
  position: fixed;
  inset: 0;
  overflow: hidden;
}

.stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

canvas {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
}

.overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 37, 61, 0.2);
  backdrop-filter: blur(3px);
  z-index: 5;
}

.overlay--hidden {
  display: none;
}

.card {
  width: min(100%, 320px);
  padding: 24px 22px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 249, 238, 0.92);
  text-align: center;
  box-shadow: var(--shadow);
}

.card h2 {
  margin: 2px 0 0;
  line-height: 1;
}

.card p {
  margin: 12px 0 0;
  line-height: 1.45;
}

.eyebrow {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 11px;
  color: var(--muted);
}

.controls {
  display: grid;
  gap: 6px;
  margin: 16px 0 18px;
  color: var(--muted);
  font-size: 13px;
}

#start-btn,
#restart-btn {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  cursor: pointer;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: white;
  font: inherit;
  font-weight: 700;
}

.tilt-btn {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  border: 0;
  border-radius: 999px;
  padding: 10px 20px;
  font: inherit;
  font-size: 14px;
  background: rgba(255, 252, 245, 0.72);
  color: var(--text);
  box-shadow: var(--shadow);
  cursor: pointer;
}
