html:has(.globe-hero) { scrollbar-gutter: stable; }
.globe-hero { background: #080c11; }
.globe-background { overflow: hidden; }
.globe-background::after { pointer-events: none; }
.globe-hero .hero-layout { pointer-events: none; }
.globe-hero .hero-layout > * { pointer-events: auto; }
.globe-stage { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.globe-stage canvas { display: block; max-width: 100%; pointer-events: auto; cursor: grab; }
.globe-stage.is-dragging canvas { cursor: grabbing; }
.globe-ready .globe-stage { opacity: 1; }
.globe-background::after {
  background: linear-gradient(90deg, #080c11f5 0%, #080c11e8 27%, #080c1175 45%, #080c1100 65%), linear-gradient(0deg, #080c11 0%, #080c1100 23%, #080c1100 83%, #080c1180);
}
.globe-hero .hero-layout { min-height: 680px; grid-template-columns: minmax(0, 1.2fr) minmax(220px, 1fr); }
.globe-hero .hero-portrait { width: 156px; justify-self: end; align-self: end; margin-bottom: 6px; }
.globe-hero .hero-portrait > img { border: 1px solid #62615b; }
.globe-hero .hero-portrait figcaption { font-size: 11px; margin-top: 12px; padding-top: 9px; }
.globe-hero .hero-portrait figcaption span:last-child { font-size: 11px; }
.globe-hero .hero-summary > p { max-width: 540px; }
@media (min-width: 901px) and (max-height: 850px) {
  .globe-hero .hero-layout { min-height: 530px; }
  .globe-hero .hero-portrait { width: 132px; }
}
@media (max-width: 900px) {
  .globe-hero .hero-layout { min-height: 630px; grid-template-columns: minmax(0, 1.3fr) minmax(140px, .65fr); }
  .globe-hero .hero-portrait { width: 132px; }
}
@media (max-width: 600px) {
  .globe-hero .hero-layout { min-height: 0; grid-template-columns: minmax(0, 1fr) 98px; }
  .globe-hero .hero-portrait { width: 98px; margin: 0; align-self: center; }
  .globe-background::after { background: linear-gradient(0deg, #080c11 0%, #080c11e0 28%, #080c11a0 56%, #080c1120 82%, #080c1170); }
}
@media (max-width: 360px) {
  .globe-hero .hero-layout { grid-template-columns: minmax(0, 1fr) 82px; column-gap: 12px; }
  .globe-hero .hero-portrait { width: 82px; }
  .globe-hero .hero-summary > p { font-size: 15px; line-height: 1.55; }
  .globe-hero .hero-summary > p.hero-context { font-size: 14px; line-height: 1.6; }
  .globe-hero .hero-actions { grid-template-columns: 1.25fr 1fr; }
  .globe-hero .hero-actions .button { font-size: 12px; padding: 10px 8px; gap: 6px; height: 100%; }
}
@media (prefers-reduced-motion: reduce) { .globe-stage { transition: none; } }

.location-marker { position: relative; width: 1px; height: 1px; color: var(--gold); pointer-events: none; }
.marker-anchor { position: absolute; width: 4px; height: 4px; left: -2px; top: -2px; background: #ffe7a0; border-radius: 50%; }
.marker-leader { position: absolute; width: var(--stem-length); height: 1px; background: #c5a859a0; transform: rotate(var(--stem-angle)); transform-origin: 0 0; }
.marker-button { position: absolute; left: var(--dx); top: var(--dy); transform: translate(-50%, -50%); width: 32px; height: 32px; border: 1px solid #e7c76a8c; border-radius: 50%; background: #101820ee; color: #ffe6a2; display: grid; place-items: center; padding: 0; pointer-events: auto; box-shadow: 0 0 14px #e7c76a22; transition: color .2s, background .2s, box-shadow .2s; }
.marker-button > svg { width: 16px; height: 16px; }
.marker-button::before { content: ""; position: absolute; inset: -5px; border: 1px solid #e7c76a; border-radius: 50%; opacity: 0; pointer-events: none; animation: marker-invite 2.8s ease-out infinite; animation-delay: var(--pulse-delay, 0s); }
.marker-button:hover, .marker-button:focus-visible { color: #171a20; background: var(--gold); box-shadow: 0 0 22px #e7c76a70; }
.is-selected .marker-button { color: #fff; background: #b52939; border-color: #ffabb2; box-shadow: 0 0 0 3px #e7526130, 0 0 22px #e7526170; }
.is-selected .marker-button::before { animation: none; opacity: .55; border-color: #ff8c98; }
.is-selected .marker-anchor { background: #ff7f8b; }
.is-selected .marker-leader { background: #ef6575b3; }
.marker-label { position: absolute; top: calc(100% + 7px); left: 50%; transform: translateX(-50%); padding: 5px 8px; color: #fff0c1; background: #10161cf5; border: 1px solid #736540; border-radius: 3px; white-space: nowrap; font-size: 12px; line-height: 1.4; opacity: 0; pointer-events: none; }
.marker-button:is(:hover, :focus-visible) .marker-label, .is-selected .marker-label { opacity: 1; }
.is-selected .marker-label { color: #ffe6e9; border-color: #b85563; background: #29161cf5; }
.motion-paused .marker-button::before { animation: none; }
@keyframes marker-invite { 0% { transform: scale(.94); opacity: .5; } 70%, 100% { transform: scale(1.32); opacity: 0; } }
.locations-jump { color: var(--gold); display: inline-flex; align-items: center; gap: 9px; }
.locations-jump:hover { color: #fff0be; }
.location-section { background: #10151b; border-block: 1px solid var(--line); }
.location-directory { border: 0; }
.location-directory > summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 78px; padding-block: 20px; }
.directory-heading { display: flex; align-items: center; gap: 13px; font-size: 16px; }
.directory-heading > svg { color: var(--gold); width: 19px; height: 19px; }
.directory-count { font-size: 12px; color: var(--subtle); margin-left: 12px; }
.location-directory[open] > summary > svg { transform: rotate(180deg); }
.location-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 22px; padding-bottom: 25px; }
.location-link { display: flex; gap: 9px; align-items: center; min-height: 48px; padding: 8px 0; border-top: 1px solid var(--line); color: #d9dfe7; font-size: 14px; transition: color .2s; }
.location-link > svg { width: 16px; height: 16px; color: var(--gold); }
.location-link > svg:last-child { width: 14px; height: 14px; margin-left: auto; transition: transform .2s; }
.location-link:hover { color: var(--gold); }
.location-link:hover > svg:last-child { transform: translate(2px, -2px); }
.location-stories { padding-bottom: 20px; }
.location-story > summary { padding: 18px 0; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.location-story small { display: block; color: var(--subtle); }
.location-story-body { padding-bottom: 16px; }
.stories-enhanced .location-stories { display: none; }
.location-dialog { position: fixed; inset: 96px auto auto max(24px, calc((100% - 1200px) / 2)); width: min(440px, calc(100% - 48px)); max-height: calc(100dvh - 120px); margin: 0; padding: 26px; border: 1px solid #9b854a; border-top: 2px solid var(--gold); border-radius: 5px; color: var(--text); background: #12181f; box-shadow: 0 22px 70px #0008; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.location-dialog[open] { z-index: 120; animation: story-enter .28s cubic-bezier(.2,.7,.2,1) both; }
.motion-paused .location-dialog[open] { animation: none; }
.location-dialog-top { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 9px; position: sticky; top: -26px; background: #12181f; z-index: 2; }
.location-dialog-category { margin: 0; max-width: 290px; line-height: 1.5; }
.location-close { flex-shrink: 0; }
.location-dialog h2 { font-size: 34px; line-height: 1.2; padding-right: 15px; }
.location-dialog h2:focus { outline: none; }
.location-place { font-size: 12px; color: var(--subtle); margin: 7px 0 25px; }
.location-story-body h3 { font-size: 21px; line-height: 1.35; margin-bottom: 15px; font-weight: 550; }
.location-description { color: #cbd2dc; font-size: 15px; line-height: 1.75; }
.location-scope { padding: 0; margin: 23px 0; list-style: none; border-top: 1px solid var(--line); }
.location-scope li { padding: 11px 0 11px 17px; border-bottom: 1px solid var(--line); font-size: 13px; color: #e2d8bb; position: relative; }
.location-scope li::before { content: ""; position: absolute; width: 4px; height: 4px; background: var(--gold); left: 0; top: 20px; }
.location-note { font-size: 12px; line-height: 1.7; color: var(--subtle); margin-bottom: 14px; }
.location-related { font-size: 13px; line-height: 1.5; }
.location-dialog-nav { display: grid; grid-template-columns: 40px minmax(0, 1fr) 40px; gap: 12px; align-items: end; padding-top: 18px; border-top: 1px solid #75653b; }
.location-picker-wrap label { display: block; color: var(--subtle); font-size: 11px; margin-bottom: 4px; }
.location-picker-wrap select { width: 100%; min-height: 40px; border: 1px solid #454d59; border-radius: 3px; padding: 8px 30px 8px 10px; background: #171e27; color: var(--text); font: inherit; font-size: 13px; }
.location-picker-wrap select:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
@keyframes story-enter { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: translateX(0); } }
@media (max-width: 900px) { .location-links { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .directory-heading { flex-wrap: wrap; gap: 7px 10px; font-size: 15px; }
  .directory-count { flex-basis: 100%; margin-left: 29px; font-size: 11px; }
  .location-links { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
  .location-link { font-size: 12px; min-height: 48px; }
  .location-link > svg:last-child { display: none; }
  .location-dialog { inset: auto auto 10px 10px; width: calc(100% - 20px); max-width: calc(100% - 20px); max-height: calc(100dvh - 94px); padding: 22px; border-radius: 6px; }
  .location-dialog-top { top: -22px; }
  .location-dialog h2 { font-size: 29px; }
  .location-dialog .location-story-body h3 { font-size: 19px; }
  .location-description { font-size: 14px; }
  .location-place { margin-bottom: 20px; }
  .location-dialog .icon-button { width: 40px; height: 40px; }
  .location-scope { margin-block: 20px; }
  .marker-button { width: 28px; height: 28px; }
}
@media (prefers-reduced-motion: reduce) { .location-dialog[open], .marker-button::before { animation: none; } }
