/* Base responsive */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
  background: #050516;
  color: #ddd;
}

/* Header */
#screenInfo {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 6px 12px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  font-size: 14px;
  z-index: 10;
  text-align: left;
}

/* Canvas */
#space {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  touch-action: none;
}

/* Halo lumineux autour de la planète */
.planet-halo {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  --halo-color: rgba(100,200,255,0.3);
  --halo-min: 20px;
  --halo-max: 40px;
  animation: pulse 2s infinite alternate;
    background-color: rgba(5, 5, 22, 0.5); 
}

/* Animation du halo */
@keyframes pulse {
  0% { box-shadow: 0 0 var(--halo-min) calc(var(--halo-min)/2) var(--halo-color); }
  50% { box-shadow: 0 0 var(--halo-max) calc(var(--halo-max)/2) var(--halo-color); }
  100% { box-shadow: 0 0 calc((var(--halo-max)+var(--halo-min))/2) calc((var(--halo-max)+var(--halo-min))/4) var(--halo-color); }
}

/* Paramètres planète */
.planet {
  --planet-opacity: 1;  /* 0 = invisible, 1 = opaque */
}

/* Paramètres étoiles */
.star {
  --star-color: rgba(255,255,255,0.2);
  --star-size: 0.3px;
}
