.planet-view {
  margin: 0;
  border: 1px solid #46554b;
  border-radius: 17px;
  overflow: hidden;
  background: #17241d;
  color: #fffef4;
}
.planet-window {
  position: relative;
  isolation: isolate;
  background: #090e17;
}
#planet-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 1;
  max-height: 74vh;
  overflow: hidden;
  background: #060b13;
  outline-offset: -4px;
}
#planet-stage:focus-visible {
  outline: 3px solid #f9b466;
}
#planet-stage > img,
#planet-stage canvas {
  display: block;
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
}
#planet-stage > img {
  object-fit: contain;
  pointer-events: none;
}
#planet-stage canvas {
  touch-action: pan-y;
}
#planet-stage[data-render="webgl"] > img {
  visibility: hidden;
}
#planet-hover {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  border: 1px solid #adb9a55c;
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  color: #fffaf0;
  background: #19211ff0;
}
.planet-camera {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  border: 1px solid #a3afaa67;
  border-radius: 12px;
  overflow: hidden;
  background: #14201ded;
}
.planet-camera button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  font-size: 24px;
  color: #fbf6e9;
  line-height: 1;
}
.planet-camera button + button {
  border-top: 1px solid #92a19340;
}
.planet-camera button:hover,
.planet-camera button:focus-visible {
  background: #3f4e42;
}
.planet-camera button:focus-visible {
  outline-offset: -4px;
}
.planet-view figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding: 16px clamp(14px, 2vw, 25px);
  border-top: 1px solid #445247;
}
.planet-tools {
  display: grid;
  gap: 8px;
}
.planet-picker,
.planet-census {
  display: flex;
  align-items: center;
  gap: 10px;
}
.planet-picker label {
  font-weight: 600;
  font-size: 14px;
}
.planet-picker select,
.planet-picker button {
  height: 40px;
  max-width: 235px;
  min-width: 0;
  font: inherit;
  font-size: 14px;
  background: #28382e;
  color: #fffaf0;
  border: 1px solid #748575;
  border-radius: 8px;
  padding: 0 10px;
}
.planet-picker select {
  color-scheme: dark;
}
.planet-picker button {
  font-weight: 600;
}
.planet-picker button:disabled {
  color: #a3afa3;
  border-color: #48574c;
}
.planet-picker button:hover:enabled {
  background: #415341;
}
#planet-help {
  font-size: 14px;
  color: #cad5c9;
  line-height: 1.4;
}
.planet-census {
  flex-wrap: wrap;
}
.planet-census .population-number {
  font-size: 29px;
  letter-spacing: -0.055em;
}
.planet-census .episode-stat {
  color: #c9d3c8;
  border-left: 1px solid #586357;
  padding-left: 10px;
}
#detail-returning {
  color: var(--muted);
  font-size: 14px;
}
#detail-returning a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.credit-title {
  font-size: 15px;
  font-weight: 600;
  margin-top: 20px;
}
.credit-title + .credit {
  margin-top: 6px;
}
.screen-reader-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 680px) {
  .planet-window {
    display: flow-root;
  }
  #planet-stage {
    aspect-ratio: 1 / 1.08;
    max-height: 75svh;
  }
  #planet-stage:not([data-render="webgl"]) > img {
    object-fit: contain;
  }
  .planet-camera {
    position: static;
    flex-direction: row;
    width: max-content;
    margin: 0 10px 9px auto;
  }
  .planet-camera button + button {
    border-top: 0;
    border-left: 1px solid #92a19340;
  }
  .planet-view figcaption {
    align-items: flex-start;
    gap: 15px;
  }
  .planet-tools {
    width: 100%;
  }
  .planet-picker {
    flex-wrap: wrap;
    gap: 7px;
  }
  .planet-picker label {
    flex-basis: 100%;
  }
  .planet-picker select {
    flex: 1;
    max-width: none;
    font-size: 16px;
  }
  .planet-picker select,
  .planet-picker button {
    height: 44px;
  }
  .planet-census .population-number {
    font-size: 24px;
  }
}
