:root {
  --sky-top: #5DC8F7;
  --sky-bottom: #BFEFFF;
  --ink: #2B2150;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  background: #5DC8F7;
  font-family: "Fredoka", "Baloo 2", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

#stage {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(120% 90% at 50% -10%, #8AD9FF 0%, var(--sky-top) 45%, var(--sky-bottom) 100%);
}

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

.back-link {
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  left: max(12px, env(safe-area-inset-left));
  z-index: 10;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  font-family: "Fredoka", "Baloo 2", system-ui, sans-serif;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(43, 33, 80, 0.18);
  backdrop-filter: blur(4px);
  transition: transform 0.12s ease, background 0.12s ease;
}

.back-link:hover { transform: translateY(-1px); background: #fff; }
.back-link:active { transform: translateY(0) scale(0.97); }

@media (prefers-reduced-motion: reduce) {
  .back-link { transition: none; }
}
