/* ============================================================
   Cluster — a bubble shooter on a spinner
   ============================================================ */

#canvas-wrap {
  background: #080d18;
  padding: 8px;
}

#game-canvas {
  border-radius: 10px;
  image-rendering: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.55);
  cursor: crosshair;
  touch-action: none;
}

/* ── Splash ── */
#cl-start {
  position: absolute;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 24px;
  background: rgba(8, 13, 24, 0.86);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  text-align: center;
}
#cl-start.cl-hide { display: none; }

.cl-splash-logo {
  width: min(280px, 68vw);
  height: auto;
  filter: brightness(0) invert(1);
}

.cl-splash-line {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #94a3b8;
  max-width: 33ch;
}

.cl-btn {
  background: #2563eb;
  border: none;
  color: #fff;
  padding: 13px 40px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.12s;
  -webkit-tap-highlight-color: transparent;
}
.cl-btn:hover  { background: #3b82f6; }
.cl-btn:active { background: #1d4ed8; }

/* ── Toast — announces the switch to fresh colours ── */
#cl-toast {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translate(-50%, 12px);
  z-index: 50;
  max-width: min(320px, 86%);
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.94);
  border: 1px solid #2d4060;
  color: #cbd5e1;
  font-size: 0.76rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.01em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s, transform 0.22s;
}
#cl-toast.cl-toast-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ── End-of-run breakdown rows carry a label/value pair ── */
#modal-breakdown .bd-row span { color: #94a3b8; }

/* Four stats do not fit a 375px phone at the shared bar's spacing — Best was
   clipping off the right edge. Tighten the gutters rather than drop a stat. */
@media (max-width: 460px) {
  #stats { padding: 0 10px; }
  #stats .stat-item {
    padding-right: 9px;
    margin-right: 9px;
  }
  #stats .stat-label { font-size: 0.6rem; letter-spacing: 0.04em; }
  #stats .stat-value { font-size: 0.8rem; }
}
