.sun-room {
  --gold: #ffcf60;
  --blue: #87e3fc;
  --plot: clamp(10rem, 22vw, 16rem);
  overflow-wrap: anywhere;
}
.sun-room [hidden] { display: none !important; }
.sun-room .sun-panel {
  color: #fcfaff;
  padding: clamp(.95rem, 3vw, 2.2rem);
  background: radial-gradient(ellipse at 46% 64%, #623f43 0%, transparent 59%),
              linear-gradient(155deg, #13283f, #20233e 48%, #0f2433);
  border-radius: .85rem;
}
.sun-room h2 { margin: 1.7rem 0 .6rem; font: 650 clamp(1.45rem, 3.4vw, 2.2rem)/1.14 Georgia, serif; }
.sun-room .sun-panel h2 { margin: 0 0 .45rem; color: inherit; }
.sun-room h3 { margin: 1.45rem 0 .5rem; font-size: 1.25rem; }
.sun-room p { max-width: 76ch; margin: .7rem 0; }
.sun-room .sun-panel p { color: inherit; }
.sun-room .sun-controls { display: flex; align-items: end; gap: .7rem; flex-wrap: wrap; margin: 1.25rem 0; }
.sun-room .sun-controls label { flex: 1 1 10rem; display: block; color: white; font-weight: 600; }
.sun-room .sun-controls :is(select, button) {
  color: #162235; font: inherit; font-weight: 650; padding: .5rem .8rem;
  min-height: 2.85rem; border: 1px solid #c0d2df; border-radius: .4rem;
}
.sun-room .sun-controls select { display: block; width: 100%; background: #fff; margin-top: .35rem; }
.sun-room .sun-controls button { background: #192335; color: white; flex: 1 1 7rem; }
.sun-room #sun-play { background: var(--gold); color: #1b2034; border-color: transparent; }
.sun-room .sun-controls button:hover { text-decoration: underline; }
.sun-room .sun-panel :is(button, select):focus-visible { outline: 3px solid white; outline-offset: 2px; z-index: 2; }
.sun-room .sun-gold { color: var(--gold); }
.sun-room .sun-blue { color: var(--blue); }
.sun-room .sun-unit { padding-top: .35rem; font-size: .9rem; }
.sun-room .sun-chart {
  margin: 1.2rem 0 1rem 1.35rem; position: relative;
  display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); gap: 0;
}
.sun-room .sun-grid { position: absolute; top: 0; height: var(--plot); width: 100%; pointer-events: none; }
.sun-room .sun-grid span { position: absolute; width: 100%; left: 0; border-top: 1px solid #ffffff45; }
.sun-room .sun-grid b { position: absolute; left: -1.25rem; top: -.62em; font: .79rem/1.2 var(--mono, monospace); }
.sun-room .sun-chart button {
  margin: 0; padding: 0; display: block; position: relative; background: transparent;
  border: none; border-radius: 0; color: white; min-width: 0; font: inherit;
}
.sun-room .sun-chart button:disabled { opacity: 1; cursor: default; }
.sun-room .sun-chart button:hover { background: #ffffff14; }
.sun-room .sun-chart button[aria-pressed=true] { background: #ffffff19; box-shadow: inset 0 -3px white; }
.sun-room .sun-pair {
  height: var(--plot); display: flex; align-items: end; justify-content: center; gap: clamp(5px,1vw,12px);
}
.sun-room .sun-pair i {
  position: relative; width: clamp(5px, 1vw, 12px); color: var(--gold);
  background: linear-gradient(to top,#ffb44a30,#ffb44ab8);
}
.sun-room .sun-pair i + i { color: var(--blue); background: linear-gradient(to top,#62d9fa20,#62d9fa9c); }
.sun-room .sun-pair i::before {
  position: absolute; left: 50%; top: 0; transform: translate(-50%,-50%);
  content: ""; width: clamp(8px,1.25vw,14px); aspect-ratio: 1;
  background: currentColor; border-radius: 50%; box-shadow: 0 0 13px currentColor;
}
.sun-room .sun-pair i + i::before { border-radius: 0; transform: translate(-50%,-50%) rotate(45deg) scale(.78); }
.sun-room .sun-chart .sun-playing::before { outline: 2px solid white; outline-offset: 3px; }
.sun-room .sun-label { display: block; padding: .58rem 0; font-size: clamp(.75rem, 1.8vw, .95rem); }
.sun-room .sun-readout { display: flex; align-items: baseline; gap: .45rem 1.3rem; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.sun-room .sun-readout :is(h3,p) { margin: 0; color: white; }
.sun-room .sun-readout h3 { min-width: 7rem; }
.sun-room .sun-panel .sun-hint { font-size: .93rem; color: #d6deeb; margin-bottom: 0; }
.sun-room .sun-links { display: flex; flex-wrap: wrap; gap: .45rem 1.5rem; margin: 1rem 0; font-weight: 650; }
.sun-room .sun-profiles { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,18rem),1fr)); gap: .6rem; align-items: start; }
.sun-room details { padding: .7rem; border: 1px solid #a4b1ad; border-radius: .35rem; background: #fff; color: #182936; }
.sun-room summary { cursor: pointer; font-weight: 650; }
.sun-room table { width: 100%; border-collapse: collapse; font-size: .9rem; font-variant-numeric: tabular-nums; }
.sun-room caption { padding: .8rem 0; text-align: left; }
.sun-room :is(td,th) { padding: .22rem .12rem; border-bottom: 1px solid #ced8db; text-align: right; }
.sun-room tr th:first-child { text-align: left; }
.sun-room .sun-credit { font-size: .93rem; }
@media (max-width: 40rem) {
  .sun-room { --plot: 7rem; }
  .sun-room .sun-controls { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .sun-room .sun-controls :is(select,button) { padding-inline: .25rem; }
  .sun-room .sun-chart { grid-template-columns: repeat(6,minmax(0,1fr)); row-gap: 1rem; --labels: 2.3rem; }
  .sun-room .sun-label { height: var(--labels); padding: .4rem 0; }
  .sun-room .sun-grid + .sun-grid { top: calc(var(--plot) + var(--labels) + 1rem); }
  .sun-room .sun-readout { display: grid; }
}
@media (min-width: 40.001rem) {
  .sun-room .sun-grid + .sun-grid { display: none; }
}
@media (forced-colors: active) {
  .sun-room .sun-pair i, .sun-room .sun-pair i::before { background: ButtonText; }
  .sun-room .sun-chart button[aria-pressed=true] { outline: 2px solid ButtonText; }
}
@media print {
  .sun-room .sun-controls, .sun-room .sun-hint, .sun-room #sun-share { display: none; }
  .sun-room .sun-panel { print-color-adjust: exact; break-inside: avoid; }
}
