:root {
  --purple-deep: #2a1048;
  --black: #0d0618;
  --font: "Fredoka", system-ui, sans-serif;
}

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

html,
body {
  height: 100%;
  overflow: hidden;
  background: var(--black);
  font-family: var(--font);
  color: #fff;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

#game-root {
  position: relative;
  width: 100%;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
}

#game-canvas {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--purple-deep);
  cursor: crosshair;
  outline: none;
}

.back-link {
  position: absolute;
  left: max(1rem, env(safe-area-inset-left));
  bottom: max(0.85rem, env(safe-area-inset-bottom));
  z-index: 2;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.4rem 0.75rem;
  border-radius: 0.65rem;
  background: rgba(13, 6, 24, 0.45);
  border: 1px solid rgba(123, 63, 168, 0.4);
  pointer-events: auto;
}

.back-link:hover {
  color: #fff;
  background: rgba(74, 29, 122, 0.55);
}
