/* Solar system game: things specific to this page (the rest comes from css/game.css). */
body.game.solar { background: #03040b; }

/* Planet names floating in 3D (CSS2DRenderer layer) */
.labels-layer { position: fixed; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.labels-layer.off .planet-label { opacity: 0; visibility: hidden; }
.planet-label {
  font: 800 .82rem var(--font); color: #e9ecff; white-space: nowrap;
  padding: 2px 9px; border-radius: 999px; cursor: pointer; pointer-events: auto;
  background: rgba(10, 12, 30, .55); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
  text-shadow: 0 1px 3px #000; transition: opacity .3s, background .2s;
  margin-top: 6px; /* the 3D layer positions labels with transform */
}
.planet-label:hover, .planet-label.hot { background: color-mix(in srgb, var(--c) 35%, rgba(10, 12, 30, .8)); }
.planet-label.small { font-size: .72rem; padding: 1px 7px; }

/* Planets list: little textured spheres instead of emoji */
.planets-panel { width: 210px; }
.planets-panel .view-buttons { gap: 4px; }
.planets-panel .view-btn { padding: 6px 10px; font-size: .98rem; }
.planet-ico {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  background: var(--img) center / 200% 100% repeat-x;
  box-shadow: inset -7px -5px 10px rgba(0, 0, 0, .65), inset 2px 2px 6px rgba(255, 255, 255, .18), 0 0 10px color-mix(in srgb, var(--c) 45%, transparent);
}
.planet-ico.sun { box-shadow: inset -3px -3px 8px rgba(160, 60, 0, .5), 0 0 16px #ffae4a; }
.planet-ico.ringed { position: relative; }
.planet-ico.ringed::after {
  content: ''; position: absolute; left: -7px; right: -7px; top: 11px; height: 8px; border-radius: 50%;
  border: 2px solid rgba(233, 210, 154, .85); transform: rotate(-18deg);
}

/* Info card with fun facts */
.planet-card { align-items: flex-start; max-width: min(620px, 96vw); }
.planet-thumb { width: 54px; height: 54px; margin-top: 2px; }
.planet-card .info-text { flex: 1; min-width: 0; }
.stats { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 4px; }
.stat {
  display: inline-flex; gap: 6px; align-items: baseline; padding: 3px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .07); font-size: .85rem; font-weight: 700; color: var(--text-dim);
}
.stat b { color: var(--text); font-weight: 900; }
.fact { margin: 4px 0 0; font-size: .98rem; line-height: 1.4; font-weight: 600; color: #d6dbff; }
.hint small { opacity: .75; }

@media (max-width: 860px) {
  .planets-panel { width: auto; }
  .planets-panel .view-btn { min-width: 62px; padding: 6px 6px; }
  .planet-ico { width: 28px; height: 28px; }
  .planet-thumb { width: 40px; height: 40px; }
  .planet-card { padding: 10px 12px; gap: 10px; }
  .fact { font-size: .86rem; }
  .stat { font-size: .76rem; padding: 2px 8px; }
  .planet-label { font-size: .7rem; }
}
