.system-explorer {
  --explorer-ink: var(--navy);
  --explorer-rule: var(--on-navy-border);
  --explorer-text: var(--on-navy-muted);
  --explorer-gold: var(--gold-light);
  min-width: 0;
  overflow: hidden;
  border-radius: 14px;
  color: var(--paper);
  background: var(--explorer-ink);
}
.system-explorer-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  padding: clamp(16px, 2.25vw, 31px) clamp(16px, 3vw, 37px) 13px;
}
.system-explorer-context {
  color: var(--explorer-text);
  font-size: .78rem;
}
.system-explorer h2 {
  margin: 3px 0 0;
  color: inherit;
  font-size: clamp(1.36rem, 2.28vw, 2.1rem);
  line-height: 1.5;
}
.system-explorer-play {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 7px;
  color: var(--gold-light);
  text-decoration: underline;
  text-underline-offset: .25em;
  font-size: .875rem;
}
.system-explorer-notice {
  max-width: 65ch;
  margin: 0;
  color: var(--explorer-text);
  font-size: .82rem;
  line-height: 1.8;
}
.system-explorer-roles, .system-explorer-sections {
  display: flex;
  flex-wrap: wrap;
  column-gap: clamp(13px, 2vw, 25px);
  padding-inline: clamp(16px, 3vw, 37px);
}
.system-explorer-roles {
  border-block-end: 1px solid var(--explorer-rule);
}
.system-explorer-role {
  background: var(--navy-raised);
}
.system-explorer-role[hidden], .system-explorer-section[hidden], .system-explorer-toggle[hidden] {
  display: none;
}
.system-explorer button {
  min-height: 44px;
  border: 0;
  color: var(--explorer-text);
  background: transparent;
  font: inherit;
  font-size: .875rem;
  cursor: pointer;
}
.system-explorer button:focus-visible, .system-explorer a:focus-visible,
.system-explorer-section:focus-visible {
  outline: 2px solid var(--explorer-gold);
  outline-offset: -3px;
}
.system-explorer-roles button, .system-explorer-sections button {
  padding: 3px 2px;
  border-block-end: 2px solid transparent;
}
.system-explorer-roles button[aria-selected="true"], .system-explorer-sections button[aria-selected="true"] {
  color: var(--gold-light);
  border-block-end-color: var(--explorer-gold);
}
.system-explorer-sections button {
  font-size: .8rem;
}
.system-explorer button:hover { color: #fff; }
.system-explorer button.system-explorer-toggle {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--on-navy-border);
  border-radius: 50%;
  color: var(--gold-light);
  font: 16px/1 Arial, sans-serif;
}
.system-explorer button.system-explorer-toggle[hidden] { display: none; }
.system-explorer-section {
  margin: 0;
  padding: 11px clamp(12px, 3vw, 37px) 15px;
}
.system-explorer-photo {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  background: radial-gradient(ellipse at 47% 52%, var(--navy-raised), var(--navy) 76%);
}
.system-explorer-photo img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}
.system-explorer-crop img {
  transform: scale(1.3);
  transform-origin: left bottom;
}
.system-explorer-portrait img {
  width: auto;
  max-width: 100%;
  height: 100%;
  padding-block: 6px;
}
.system-explorer-section figcaption {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 3px 12px;
  margin-block-start: 9px;
  color: var(--explorer-text);
  font-size: .82rem;
  line-height: 1.8;
}
.system-explorer-section figcaption small {
  font-size: .75rem;
  color: var(--on-navy-muted);
}
.system-explorer-details {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-inline: clamp(16px, 3vw, 37px);
  color: var(--gold-light);
  font-size: .82rem;
  text-decoration: underline;
  text-underline-offset: .3em;
}
@media (prefers-reduced-motion: no-preference) {
  .system-explorer-role:not([hidden]) .system-explorer-section:not([hidden]) .system-explorer-photo {
    animation: system-explorer-reveal .4s ease-out both;
  }
  @keyframes system-explorer-reveal { from { opacity: .65; } to { opacity: 1; } }
}
