#universe-dialog[data-sector="recruitment"] {
  inset: 0 auto auto 0;
  margin: 0;
  width: 100vw;
  height: 100svh;
}
main > .solar-experience {
  height: calc(100svh - var(--solar-header-height, 85px));
  min-height: 540px;
}
.solar-experience { isolation: isolate; }
.solar-experience .earth-copy {
  top: 50%;
  bottom: auto;
  left: 6.5%;
  width: min(38%, 410px);
  max-height: calc(100% - 118px);
  padding: 3px 3px 8px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  transform: translateY(-50%);
  background: none;
}
.solar-experience .earth-copy h1 {
  margin: 12px 0 18px;
  font-size: clamp(29px, 3.35vw, 48px);
  line-height: 1.23;
}
.solar-experience .earth-copy .eyebrow {
  font-size: 10px;
  letter-spacing: .18em;
  color: #a0cef2;
}
.solar-experience .earth-copy > p:not(.eyebrow, .earth-note),
.solar-experience .earth-tournament p {
  color: #a6bbce;
  line-height: 1.8;
}
.solar-experience .earth-actions { margin-top: 19px; }
.solar-experience .earth-tournament { margin-top: 18px; }
.solar-experience .earth-tournament h2 { font-size: 17px; font-weight: 500; line-height: 1.35; margin: 6px 0; }
.solar-experience .earth-copy .earth-note { color: #88a1bb; opacity: .87; font-size: 9px !important; margin: 4px 0 0; }
.solar-experience #solar-overview { font: inherit; font-size: 11px; margin-top: 10px; color: #b4d8f3; }
.solar-experience #visit-earth { font: inherit; font-size: 12px; line-height: 1.3; color: #ddf2ff; }
.solar-experience #visit-earth span { color: #b0d5f0; }
.solar-experience:not(.solar-ready) :is(.solar-labels, #solar-overview, .solar-hint) { display:none; }
.solar-experience.earth-focused .solar-hint { visibility: hidden; }
.solar-experience.solar-ready .earth-copy { opacity: 0; visibility: hidden; }
.solar-experience.earth-landed .earth-copy { opacity: 1; visibility: visible; pointer-events: auto; }
.earth-map {
  position: absolute;
  left: 45%; top: 10%; width: 53%; height: 80%;
  pointer-events: none;
  overflow: hidden;
}
.earth-map-texture { opacity: .72; }
.earth-city { fill: #edffff; }
.earth-city circle { fill: #9bede6; stroke: #0d343b; stroke-width: 1; }
.earth-city.selected circle { fill: #ffdfa5; stroke: #2f2418; }
.earth-city.selected text { fill: #fff1cd; }
.city-annotation {
  font-family: system-ui, sans-serif; font-weight: 500;
  dominant-baseline: middle; paint-order: stroke; stroke: #041221;
  stroke-width: 2.75px; stroke-linejoin: round;
}
.solar-ready .earth-map {
  inset: 0; width: 100%; height: 100%;
  visibility: hidden; opacity: 0; transition: opacity .45s;
}
.solar-ready .earth-map-texture { display: none; }
.earth-landed .earth-map { visibility: visible; opacity: 1; }
.earth-globe-control, .earth-drag-hint { display: none; }
.earth-landed .earth-globe-control {
  display: block; position: absolute; z-index: 2;
  left: var(--globe-x); top: var(--globe-y); width: var(--globe-diameter); height: var(--globe-diameter);
  transform: translate(-50%, -50%); border-radius: 50%;
  touch-action: none; pointer-events: auto; cursor: grab; user-select: none;
}
.earth-globe-control:active { cursor: grabbing; }
.earth-globe-control:focus-visible { outline: 1px solid #c5ebfd; outline-offset: 4px; }
.earth-landed .earth-drag-hint {
  display: block; position: absolute; margin: 0;
  left: var(--globe-x); top: calc(var(--globe-bottom) + 7px); transform: translateX(-50%);
  pointer-events: none; white-space: nowrap; font-size: 10px; color: #9db8cd; line-height: 1.4;
}

@media(max-width:740px) {
  main > .solar-experience { height: calc(100svh - var(--solar-header-height, 115px)); min-height: 0; }
  .solar-experience .earth-copy {
    left: 6%; top: 51%; bottom: 12px; width: 88%; max-width: none;
    max-height: none; transform: none; padding: 5px 3px 14px;
    touch-action: pan-y; background: none;
  }
  .solar-experience .earth-copy h1 { font-size: 26px; margin: 6px 0 9px; }
  .solar-experience .earth-copy h1 br { display: none; }

  .solar-experience .earth-copy .eyebrow { font-size: 8px; margin: 0; }
  .solar-experience .earth-actions { margin-top: 11px; }
  .solar-experience .earth-tournament { margin-top: 9px; }
  .solar-experience .earth-tournament h2 { margin: 6px 0; }
  .solar-experience .earth-tournament p { margin: 4px 0; }
  .earth-map { left: 2%; top: 6%; width: 96%; height: 42%; }
}
@media (max-height: 510px) and (min-width:741px) {
  .solar-experience { min-height: 0; }
  .solar-experience .earth-copy { max-height: calc(100% - 78px); top: 55%; }
}
@media (prefers-reduced-motion: reduce) {
  .solar-experience .earth-map, .solar-experience.solar-ready .earth-copy { transition: none; }
}

/* Keep the controls outside the globe's drag target. */
.solar-experience {
  --lunar-ink: #d9eaf5;
  --lunar-muted: #a6bfd1;
  --lunar-left: 6.5%;
  --lunar-bottom: max(34px, 8%);
}
.earth-zoom-tools, .earth-hint-touch { display: none; }
.earth-landed .earth-zoom-tools {
  position: absolute; z-index: 6; display: flex; align-items: center;
  bottom: max(20px, 4.5%); left: 72.4%; transform: translateX(-50%);
  gap: 3px; white-space: nowrap; pointer-events: auto;
}
.solar-experience :is(.earth-zoom-tools button, .moon-return, .moon-fallback-switch) {
  box-sizing: border-box; display: inline-flex; justify-content: center; align-items: center; gap: 9px;
  min-height: 44px; margin: 0; padding: 0 10px; border: 0; border-radius: 3px;
  background: none; font: inherit; font-size: 12px; line-height: 1.35;
  color: var(--lunar-ink); cursor: pointer; touch-action: manipulation; pointer-events: auto;
}
.solar-experience .earth-zoom-tools [data-earth-zoom] {
  width: 44px; padding: 0; font-size: 21px; font-weight: 400; font-variant-numeric: tabular-nums;
}
.solar-experience .earth-zoom-tools [data-visit-moon] { margin-left: 4px; }
.solar-experience .earth-zoom-tools [data-visit-moon]::before {
  content: ''; align-self: center; width: 1px; height: 15px; background: #8faec455; margin-right: 6px;
}
.lunar-glyph {
  display: inline-block; width: 14px; height: 14px; box-sizing: border-box;
  border: 1px solid #cddeed; border-radius: 50%;
  background: radial-gradient(circle at 70% 36%, #1c293d 12%, transparent 16%),
              linear-gradient(115deg, #d4deea 15%, #acbed0 44%, #344154 75%);
}
.solar-experience :is(.earth-zoom-tools button, .moon-return, .moon-fallback-switch):hover {
  background: #aecbe811; color: #fff;
}
.solar-experience :is(.earth-zoom-tools button, .moon-return, summary):focus-visible {
  outline: 2px solid #cce9ff; outline-offset: 2px;
}
.solar-experience .earth-zoom-tools button:disabled { opacity: .4; cursor: default; }
.solar-experience .earth-drag-hint { z-index: 2; }
@media (pointer: coarse) {
  .earth-hint-mouse { display: none; }
  .earth-hint-touch { display: inline; }
}

/* Both renderers use the same keyboard-operable crater disclosure. */
.solar-experience .moon-panel[hidden], .solar-ready .moon-fallback { display: none; }
.moon-panel, .moon-fallback-surface {
  position: absolute; inset: 0; z-index: 7; display: flex; flex-direction: column;
  align-items: flex-start; justify-content: flex-end; isolation: isolate; box-sizing: border-box;
  padding: 0 var(--lunar-left) var(--lunar-bottom); color: var(--lunar-ink); pointer-events: none;
}
.moon-navigation { display: contents; }
.moon-navigation h2 {
  margin: 0; color: var(--lunar-muted); font: inherit; font-size: 11px;
  letter-spacing: .12em; line-height: 1.5;
}
.moon-prompt, .moon-discovery {
  width: min(32vw, 31ch); margin: 7px 0 12px; color: #ecf5ff;
  font: inherit; font-size: clamp(18px, 1.7vw, 26px); line-height: 1.45; letter-spacing: -.015em;
  text-wrap: pretty; text-shadow: 0 1px 12px #04090f;
}
:is(.moon-panel, .moon-fallback-surface):has(.moon-den[open]) .moon-prompt { display: none; }
.moon-den { display: contents; }
.solar-experience .moon-crater {
  position: absolute; z-index: 1; display: block; list-style: none; pointer-events: auto;
  left: var(--crater-x, calc(var(--moon-x, 65%) + var(--moon-radius, 100px) * .14));
  top: var(--crater-y, calc(var(--moon-y, 42%) + var(--moon-radius, 100px) * .17));
  transform: translate(-50%, -50%); width: clamp(94px, calc(var(--moon-radius, 170px) * .65), 163px);
  height: 48px; border-radius: 50%; cursor: pointer; user-select: none; touch-action: manipulation;
}
.moon-den[open] .moon-crater::before {
  content: ''; position: absolute; left: 0; bottom: 40%; width: 100%; aspect-ratio: 540 / 512;
  pointer-events: auto;
}
.moon-crater::-webkit-details-marker, .moon-fallback-switch::-webkit-details-marker { display: none; }
.moon-crater-art, .moon-rim-back, .moon-rim-front, .moon-mascot {
  position: absolute; left: 50%; transform: translateX(-50%); pointer-events: none;
}
.moon-crater-art { width: 100%; height: 100%; bottom: 0; }
.moon-rim-back, .moon-rim-front {
  width: 85%; height: 51%; top: 31%; transform: translateX(-50%) rotate(-9deg);
  border-radius: 49% 57% 43% 54% / 62% 52% 63% 48%;
}
.moon-rim-back {
  background: radial-gradient(ellipse at 57% 77%, #b7ac98aa, #696158a6 48%, #3e3936b8 65%, #938c80aa 76%, #c2b8a8aa 84%, #8b8577aa),
              url('/assets/nasa-moon-color-2048.jpg') 38% 40% / 390%;
  box-shadow: inset 0 2px 3px #30292255, 1px 2px 2px #eee0c085, -2px -1px 3px #88806e60;
}
.moon-rim-front {
  background: linear-gradient(175deg, transparent 52%, #bdb09e33 72%, #877e6d99 88%), url('/assets/nasa-moon-color-2048.jpg') 34% 48% / 480%;
  clip-path: polygon(0 46%, 9% 61%, 18% 67%, 26% 66%, 36% 78%, 48% 74%, 55% 79%, 64% 72%, 69% 75%, 80% 66%, 88% 66%, 100% 43%, 100% 100%, 0 100%);
}
.moon-mascot {
  width: 87%; aspect-ratio: 540 / 512; bottom: 39%; transform-origin: bottom center;
  clip-path: inset(0 0 85%); transform: translate(-50%, 82%) scale(.92);
  background: center bottom / contain no-repeat url('/assets/moon-mascot-peek.webp');
}
.moon-den[open] .moon-mascot { clip-path: inset(0 0 6%); transform: translate(-50%, 8%); }
.moon-tracks { position: absolute; left: -19%; top: 76%; width: 50%; height: 100%; transform: rotate(-32deg); }
.moon-tracks i {
  position: absolute; width: 8px; height: 8px; opacity: .68;
  background: radial-gradient(ellipse at 50% 68%, #544b40 0 24%, transparent 30%),
    radial-gradient(circle at 17% 42%, #554d43 0 10%, transparent 17%),
    radial-gradient(circle at 44% 22%, #554d43 0 12%, transparent 18%),
    radial-gradient(circle at 74% 29%, #554d43 0 11%, transparent 17%);
  filter: drop-shadow(0 1px .4px #e6dbc2);
}
.moon-tracks i:nth-child(1) { left: 8%; top: 20%; transform: rotate(38deg) scale(.78); }
.moon-tracks i:nth-child(2) { left: 39%; top: 29%; transform: rotate(48deg); }
.moon-tracks i:nth-child(3) { left: 66%; top: 12%; transform: rotate(59deg); }
.moon-crater-label {
  position: absolute; right: calc(64% + var(--moon-radius, 140px)); top: calc(50% + 23px);
  transform: translateY(-50%); display: flex; align-items: center; gap: 8px; white-space: nowrap;
  color: #e5d6b7; font-family: inherit; font-size: 12px; font-weight: 500; line-height: 1.5; letter-spacing: .1em;
  padding: 9px 0; text-shadow: 0 1px 4px #141921;
}
.moon-crater-label::before {
  content:''; width: 7px; height: 7px; border: 1px solid #d2ba88; transform: rotate(45deg);
}
.moon-crater-label::after {
  content:''; position:absolute; left:calc(100% + 7px); top:50%; width:calc(var(--moon-radius,140px) * .90);
  height:1px; background:linear-gradient(90deg,#aa997099,#d2bb89a1,transparent); transform:rotate(-9deg); transform-origin:left;
}
.moon-crater:is(:hover,:focus-visible) .moon-crater-label { color: #fff5de; }
.moon-den[open] .moon-crater-label { color:#c9d4dc; }
.moon-stamps { width:min(34vw, 365px); max-width:100%; pointer-events:auto; margin:0 0 6px; color:#f1e6d0; }
.moon-stamps [hidden], .moon-stamps[hidden] { display:none !important; }
.solar-experience .moon-stamps :is(button,a) {
  appearance:none; display:inline-flex; align-items:center; justify-content:center; gap:9px;
  min-height:42px; padding:5px 14px; font:inherit; font-size:13px; cursor:pointer; text-decoration:none;
  color:#efe2c6; border:1px solid #b09b735e; border-radius:20px; background:#18212b;
}
.solar-experience .moon-stamps :is(button,a):is(:hover,:focus-visible) { border-color:#e3cc98; color:white; }
.moon-stamps [data-stamp-status] { margin:0; font-size:14px; line-height:1.55; color:#f0dfbc; }
.moon-stamps [data-stamp-status]:not(:empty) { margin:7px 0; }
.moon-stamp-keys { display:flex; gap:8px; }
.moon-stamp-keys button { min-width:46px; }
.moon-ticket label { display:block; font-size:12px; line-height:1.55; color:#b9cbd7; }
.moon-ticket input { display:block; box-sizing:border-box; width:100%; margin:5px 0 8px; padding:7px 10px; color:#deebf5; border:1px solid #344453; background:#101923; border-radius:5px; }
.moon-den:has(.moon-stamps[data-playing]) .moon-discovery { display:none; }
.moon-den:has([data-ticket]:not([hidden])) .moon-mascot { filter:drop-shadow(0 0 4px #e5c490bb); }
.moon-seal {
  display:none; position:absolute; z-index:1; right:5%; bottom:34%; place-items:center;
  width:25px; height:25px; border:2px double #e4cea3; border-radius:50%;
  background:radial-gradient(circle at 32% 23%,#fcdf96,#c09a5d 68%,#78603e);
  box-shadow:inset 0 0 0 2px #715a3f66,1px 2px 3px #322a2180;
  color:#58432d; font:700 18px/1 Georgia,serif; transform:rotate(16deg);
}
.moon-den:has([data-ticket]:not([hidden])) .moon-seal { display:grid; }
.moon-ticket-links { display:flex; align-items:center; gap:14px; }
.solar-experience .moon-ticket-links :is(a,button) { min-height:32px; padding:2px 0; border:0; border-radius:0; background:none; color:#b6c4ce; font-size:12px; text-decoration:underline; text-underline-offset:3px; }
@media (prefers-reduced-motion:no-preference) {
  :root:not(.motion-paused) .moon-den:has([data-ticket]:not([hidden])) .moon-seal { animation: moon-stamp-drop .55s ease-out; }
  @keyframes moon-stamp-drop { from {opacity:0;transform:translateY(-13px) rotate(-20deg);} to {opacity:1;transform:rotate(16deg);} }
}
.moon-den:not([open]) .moon-hide, .moon-den[open] .moon-inspect { display: none; }
.solar-experience .moon-return { padding-inline: 0 12px; justify-content: flex-start; }
.solar-experience:is(.moon-travel, .moon-landed) :is(.earth-zoom-tools, .earth-copy, .earth-globe-control, .earth-drag-hint, .earth-map, .solar-hint, .solar-labels) {
  visibility: hidden; pointer-events: none;
}

.moon-fallback { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.solar-experience .moon-fallback-switch {
  position: absolute; z-index: 2; left: 68%; bottom: var(--lunar-bottom); list-style: none;
}
.moon-depart { display: inline-flex; align-items: center; gap: 8px; }
.moon-fallback:not([open]) .moon-back, .moon-fallback[open] .moon-depart { display: none; }
.solar-experience .moon-fallback[open] > summary { left: var(--lunar-left); padding-left: 0; }
.moon-fallback-surface {
  z-index: 1; --moon-x: 69%; --moon-y: 44%; --moon-radius: min(17.5vw, 23.6svh);
  background: #080e18; padding-bottom: calc(var(--lunar-bottom) + 44px);
}
.moon-static-disc {
  position: absolute; z-index: -1; pointer-events: none; left: var(--moon-x); top: var(--moon-y);
  width: calc(2 * var(--moon-radius)); height: calc(2 * var(--moon-radius));
  transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(ellipse at 29% 27%, #b5c3de11 29%, #1418236b 63%, #060b14 96%),
              center / 170% 100% url('/assets/nasa-moon-color-2048.jpg');
  box-shadow: inset 2px 0 12px #a6b1c330;
}
.solar-experience:has(.moon-fallback[open]) > :is(.earth-copy, .earth-map) { visibility: hidden; }
@media (max-width:740px) {
  .solar-experience { --lunar-left: 6%; --lunar-bottom: max(22px, env(safe-area-inset-bottom)); }
  .earth-landed .earth-zoom-tools {
    left: 50%; bottom: auto; top: 49%; transform: translate(-50%, -5%); gap: 0;
  }
  .solar-experience.earth-landed .earth-copy { top: calc(49% + 47px); }
  .solar-experience .earth-drag-hint { font-size: 9px; }
  .moon-panel, .moon-fallback-surface { padding-inline: 7%; }
  .moon-stamps { width:min(85vw, 390px); }
  .moon-crater-label { right:auto; left:50%; top:calc(50% + var(--moon-radius,95px) + 12px); transform:translateX(-50%); }
  .moon-crater-label::after { left:50%; top:auto; bottom:100%; width:1px; height:calc(var(--moon-radius,95px) * .60); transform:none; background:linear-gradient(0deg,#ac9570a8,transparent); }
  .moon-den:has(.moon-stamps[data-playing]) .moon-crater-label { opacity:0; pointer-events:none; }
  .moon-prompt, .moon-discovery { width: min(86vw, 34ch); font-size: 19px; margin-bottom: 6px; }
  .solar-experience .moon-fallback-switch { left: 7%; bottom: 46%; }
  .solar-experience:not(.solar-ready) .earth-copy { top: calc(51% + 34px); }
  .solar-experience .moon-fallback[open] > summary { left: 7%; bottom: var(--lunar-bottom); }
  .moon-fallback-surface { --moon-x: 50%; --moon-y: 39%; --moon-radius: min(30.3vw, 19.7svh); }
}
@media (max-height:510px) and (min-width:741px) {
  .solar-experience { --lunar-bottom: 12px; }
  .moon-prompt, .moon-discovery { font-size: 17px; margin-block: 3px; }
  .earth-landed .earth-zoom-tools { bottom: 6px; }
}
@media (prefers-reduced-motion:no-preference) {
  :root:not(.motion-paused) .moon-den[open] .moon-mascot {
    animation: moon-peek-in .42s cubic-bezier(.2,.8,.25,1) both;
  }
  @keyframes moon-peek-in {
    from { clip-path: inset(0 0 85%); transform: translate(-50%, 82%) scale(.92); }
    to { clip-path: inset(0 0 6%); transform: translate(-50%, 8%); }
  }
}

@media (max-width:400px) {
  :lang(en) main > .solar-experience { height: calc(100svh - var(--solar-header-height, 165px)); }
}
