:root {
  --bg-top: #1a1140;
  --bg-bot: #0c0b22;
  --ink: #FAF7F2;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  min-height: 100dvh;
  overflow: hidden;
  background: radial-gradient(120% 120% at 50% 0%, var(--bg-top) 0%, var(--bg-bot) 70%);
  color: var(--ink);
  font-family: 'Fredoka', 'Baloo 2', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.stage {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
}

#game {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}

.back-link {
  position: fixed;
  top: max(14px, env(safe-area-inset-top));
  left: max(16px, env(safe-area-inset-left));
  z-index: 10;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
  transition: background 0.18s ease, transform 0.18s ease;
}

.back-link:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}
