/* Color Pulse — page shell. The game itself draws inside the canvas. */
* { box-sizing: border-box; }
html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  background: #d2f7ff;
  font-family: 'Trebuchet MS', Verdana, Segoe UI, sans-serif;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}
body {
  background: linear-gradient(180deg, #d2f7ff 0%, #e6fbff 38%, #fff4d6 72%, #ffe0f0 100%);
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}
#game-wrap {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
#game-wrap canvas {
  display: block;
  max-width: 100vw;
  max-height: 100vh;
  touch-action: none;
}
#boot-splash {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: linear-gradient(180deg, #d2f7ff, #fff4d6 60%, #ffe0f0);
  z-index: 5;
  transition: opacity 0.35s ease;
}
#boot-splash.hide { opacity: 0; pointer-events: none; }
.splash-ring {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  border: 12px solid #ff8a2b;
  border-top-color: #22c9f2;
  border-right-color: #a855f7;
  border-bottom-color: #2ed47a;
  animation: spin 1.8s linear infinite;
}
.splash-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 3px;
  color: #12325a;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
#boot-error {
  z-index: 20;
}
