/* ============================================================
   Gedeelde opmaak voor de canvas-arcadespellen
   (Planeetverdediger, Neontunnel, Sterrensprong)
   ============================================================ */

html, body { height: 100%; }
body {
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}
.nav { width: 100%; flex: none; }

#wrap {
  flex: 1;
  min-height: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}
#spel { position: relative; flex: none; }

#spel canvas {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  border: 1.5px solid rgba(99,179,237,0.35);
  box-shadow: 0 0 40px rgba(99,179,237,0.15), 0 10px 40px rgba(0,0,0,0.6);
  background: #05060f;
  touch-action: none;   /* slepen/tikken stuurt het spel, niet de pagina */
}

/* Ronde knoppen op het speelveld: alleen op aanraakschermen tijdens het spelen */
.aanraak-knop {
  display: none;
  position: absolute;
  bottom: 12px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.25);
  background: rgba(10,14,35,0.55);
  color: #fff;
  font-size: 1.4rem;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.aanraak-knop.links  { left: 12px; }
.aanraak-knop.rechts { right: 12px; }
.aanraak-knop .aantal {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 22px;
  height: 22px;
  border-radius: 11px;
  background: #fb923c;
  color: #1a1a2e;
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (pointer: coarse) {
  body[data-toestand="spelen"] .aanraak-knop { display: flex; }
}

.onderbalk {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 12px 8px;
  font-size: 0.72rem;
  color: rgba(144,205,244,0.7);
  text-align: center;
  max-width: 100%;
}
.geluid-knop {
  flex: none;
  padding: 3px 10px;
  border: 1px solid rgba(99,179,237,0.3);
  border-radius: 50px;
  background: rgba(255,255,255,0.06);
  color: #90cdf4;
  font: inherit;
  cursor: pointer;
}
.geluid-knop.uit { color: rgba(144,205,244,0.45); text-decoration: line-through; }
.onderbalk .aanraak { display: none; }
@media (pointer: coarse) {
  .onderbalk .toetsen { display: none; }
  .onderbalk .aanraak { display: inline; }
}
