/* Sun–Earth–Moon only: the scale note, compass letters, orbit tags and the
   panels' canvases. Shared panel and label styles come from sim-runtime.css. */

/* At the stage's bottom edge, right above the shell's AI note. On narrow
   stages the shell's bottom bar (step view / copy link) would cover it, so
   it sits just above that bar. */
#scale-note {
  position: absolute;
  left: 12px;
  bottom: 12px;
  max-width: min(320px, calc(100% - 24px));
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 4px 4px 4px 8px;
  border-radius: var(--sim-radius);
  background: rgb(0 0 0 / 0.55);
  z-index: 1;
}
#scale-note[hidden] {
  display: none;
}
@media (max-width: 560px) {
  #scale-note {
    bottom: 60px;
  }
}
/* The icon is small; the button around it is a larger tap target. */
#scale-info {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin: -6px -2px -6px 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--sim-fg);
  cursor: pointer;
}
#scale-info svg {
  width: 16px;
  height: 16px;
}
#scale-info:hover,
#scale-info:focus-visible,
#scale-info[aria-expanded="true"] {
  color: var(--sim-strong);
  outline: none;
  background: rgb(255 255 255 / 0.12);
}
#scale-tip {
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  width: min(300px, calc(100vw - 24px));
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--sim-line);
  border-radius: var(--sim-radius);
  background: var(--sim-panel);
  color: var(--sim-fg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.sem-compass {
  font: 500 15px/1 var(--sim-font);
  color: var(--sim-strong);
  text-shadow: 0 1px 3px #000;
}

.sem-tag {
  padding: 2px 7px;
  border-radius: 999px;
  background: rgb(10 10 10 / 0.8);
  color: var(--sim-muted);
  font: 400 11px/1.3 var(--sim-font);
  white-space: nowrap;
}

#year-chart {
  display: block;
  width: 100%;
  height: 140px;
}

.moon-row {
  display: flex;
  gap: 14px;
  align-items: center;
}
#moon-disc {
  width: 96px;
  height: 96px;
  flex: none;
}
