.world-journey{--journey-gold:#e8c58a;--journey-muted:#c5cbc8;color:#f2eee5;scroll-margin-top:100px;padding-block:3rem 4rem}
.journey-heading{max-width:790px}
.world-journey h2{font:clamp(2rem,4vw,3.4rem)/1.15 Georgia,serif;margin:.6rem 0 1rem}
.journey-overline{color:var(--journey-gold,#e8c58a);font:700 .78rem/1.6 Andika,sans-serif;letter-spacing:.15em;text-transform:uppercase}
.journey-intro{color:var(--journey-muted,#c5cbc8);line-height:1.8;font-size:1rem}
.journey-dashboard{display:grid;grid-template-columns:1fr auto;gap:1rem;margin:1.7rem 0;padding:1.4rem 1.6rem;background:#1b292c;border:1px solid #d3b88745;border-radius:16px}
.journey-rank{font-size:1.15rem}
.journey-xp{color:var(--journey-gold);font-weight:bold}
.journey-xp-track{grid-column:1/-1;height:12px;overflow:hidden;border-radius:20px;background:#060f16;box-shadow:inset 0 1px 3px #0008}
.journey-xp-fill{display:block;height:100%;width:0;border-radius:inherit;background:linear-gradient(90deg,#6faeaa,#d9c08b);transition:width 1.1s cubic-bezier(.22,1,.36,1)}
.journey-status{grid-column:1/-1;color:var(--journey-muted);line-height:1.7;margin:0;font-size:.88rem}
.journey-announcement{min-height:1.7em;color:#ffdc9c;line-height:1.7}
.journey-gained .journey-dashboard{animation:journey-earned 1.3s ease-out}
.atlas-culture{text-transform:uppercase;font-size:.68rem;letter-spacing:.12em;color:#e0c893}
.atlas-land-status{font-size:.8rem;color:#d1e2d7;line-height:1.5}
.atlas-caption{font-size:.78rem;line-height:1.7;color:#a4b8b7}
.journey-routes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin:2rem 0}
.journey-route{display:flex;flex-direction:column;align-items:flex-start;gap:.85rem;border:1px solid #d8c6a22c;border-radius:14px;background:#19262bcc;padding:1.25rem;min-width:0}
.journey-route h3{font:1.3rem/1.4 Georgia,serif;margin:0}
.journey-route>span{font-size:.85rem;color:#bfcdcb}
.world-journey progress,.journey-dialog progress{width:100%;height:9px;accent-color:#b6c4a4;border:0;border-radius:20px;overflow:hidden}
.journey-next{display:inline-block;color:#efcf99!important;font-size:.9rem;line-height:1.7;text-decoration:underline!important;text-underline-offset:4px;overflow-wrap:anywhere}
.journey-review-button{font:inherit;font-size:.88rem!important;line-height:1.6!important;border:1px solid #b3c5c34d!important;border-radius:8px!important;background:#223339!important;color:#f3ecd9!important;padding:.7rem 1rem!important;cursor:pointer;white-space:normal!important}
.journey-locked{filter:saturate(.4)}
.journey-lock-label{display:block;font:700 .75rem/1.6 Andika,sans-serif;letter-spacing:.04em;color:#efcf99;padding:.25rem .5rem;align-self:flex-start;background:#172329e8;border-radius:6px;white-space:normal}
.journey-tools{display:flex;align-items:center;flex-wrap:wrap;gap:1rem}
.journey-tools button,.journey-dialog-head button{font:inherit;line-height:1.5;padding:.65rem .9rem;color:#f2e6ce;border:1px solid #b2b8ab66;background:#203239;border-radius:8px;cursor:pointer}
.journey-tools p{flex-basis:100%;color:#b9c6c5;max-width:750px;font-size:.8rem;line-height:1.7}
.journey-dialog{box-sizing:border-box;width:min(740px,calc(100vw - 28px));max-height:calc(100dvh - 36px);overflow:auto;background:#17272e;color:#f2eee4;border:1px solid #c4b28c77;border-radius:20px;padding:clamp(1.2rem,4vw,2.5rem);font:1rem/1.8 Andika,'Trebuchet MS',sans-serif;box-shadow:0 24px 120px #000a}
.journey-dialog::backdrop{background:#071117d9;backdrop-filter:blur(7px)}
.journey-dialog-head{display:flex;gap:1rem;justify-content:space-between;align-items:flex-start;margin-bottom:1.5rem}
.journey-dialog h2{font:1.65rem/1.35 Georgia,serif;margin:0;max-width:80%}
.journey-dialog h3{font:1.2rem/1.4 Georgia,serif;margin:1.5rem 0 .7rem}
.journey-dialog-head button{flex-shrink:0}
.journey-dialog p{line-height:1.85;white-space:normal}
.journey-dialog .journey-next{display:block;margin-top:1.5rem}
.learning-notions{padding:0;list-style:none;display:grid;gap:.7rem}
.learning-notions li{border-left:3px solid #9bb8a4;background:#22373b;padding:1rem 1.2rem;line-height:1.8}
.learning-practice{border:1px solid #d5bd9038;border-radius:10px;padding:1rem 1.2rem;margin:1.5rem 0}
.learning-practice h3{margin-top:0}
.learning-answer{background:#263e42;border-radius:10px;padding:1.1rem}
.journey-xp-note{font-size:.85rem;color:#d8c39c;border-top:1px solid #b3b8a633;padding-top:1rem}
.atlas-chapter{padding:1rem 0;border-bottom:1px solid #b3b8a633}
.journey-review-button:focus-visible,.journey-tools button:focus-visible,.journey-dialog button:focus-visible,.journey-next:focus-visible{outline:3px solid #f2d49d;outline-offset:5px}
@keyframes journey-earned{0%{box-shadow:0 0 0 0 #f4cf9066}
100%{box-shadow:0 0 0 18px #f4cf9000}
}
@keyframes journey-reveal{0%{filter:brightness(1.5)}
100%{filter:brightness(1)}
}
@media(max-width:760px){.journey-routes{grid-template-columns:1fr}
.journey-dashboard{padding:1.2rem}
.journey-dialog h2{font-size:1.4rem}
}
@media(max-width:430px){.journey-dialog-head{flex-wrap:wrap}
.journey-dialog h2{max-width:100%}
}
@media(prefers-reduced-motion:reduce){.journey-xp-fill{transition:none}
.journey-gained .journey-dashboard{animation:none}
}

.world-atlas{position:relative;margin:2rem 0}
.world-atlas>svg{display:block;width:100%;aspect-ratio:2;border:1px solid #bdc7b24d;border-radius:18px;background:#162f34;cursor:grab;touch-action:pan-y}
.world-atlas>svg:active{cursor:grabbing}
.atlas-controls{display:flex;flex-wrap:wrap;gap:.6rem;margin-bottom:.9rem}
.atlas-controls button{font:inherit;font-size:.82rem;line-height:1.6;border:1px solid #bdc7b24d;background:#243a40;color:#e6dfcd;padding:.5rem .8rem;border-radius:7px;cursor:pointer}
.atlas-controls button:focus-visible,.atlas-marker:focus-visible{outline:3px solid #f2d49d;outline-offset:4px}
.atlas-unknown text{fill:#b0b8ad;letter-spacing:6px;font:italic 18px Georgia,serif}
.atlas-marker{cursor:pointer}
.atlas-marker circle{fill:#d8bb83;stroke:#263b3c;stroke-width:2}
.atlas-marker text{fill:#1a3034;font:700 10px sans-serif;pointer-events:none}
.atlas-marker[data-state=locked] circle,.atlas-marker[data-state=pending] circle{fill:#76858a;stroke:#b4b8ad;stroke-dasharray:2 2}
.atlas-marker[data-state=complete] circle{fill:#f4d68e;stroke:#fff0be}
.atlas-fog-opening{transition:rx 1.5s ease,ry 1.5s ease}
.atlas-discovered-route{stroke-dashoffset:60;animation:atlas-route 1.8s ease-out forwards}
.atlas-destinations{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.8rem}
.atlas-destination{font:inherit;min-height:145px;display:flex;flex-direction:column;align-items:flex-start;text-align:left;justify-content:center;gap:.6rem;padding:1.3rem;border:1px solid #b9c5ab4d;border-radius:12px;background:#253e42;color:#f5ead2;cursor:pointer}
.atlas-destination strong{font:1.15rem/1.4 Georgia,serif}
.atlas-destination[data-state=locked],.atlas-destination[data-state=pending]{background:#233038;border-style:dashed}
.atlas-destination[data-state=complete]{border-color:#d3bb82;background:#35453e}
.atlas-destination:focus-visible{outline:3px solid #f2d49d;outline-offset:4px}
@keyframes atlas-route{to{stroke-dashoffset:0}
}
@media(max-width:760px){.atlas-destinations{grid-template-columns:repeat(2,minmax(0,1fr))}
.world-atlas>svg{min-height:240px;aspect-ratio:1.5}
}
@media(prefers-reduced-motion:reduce){.atlas-fog-opening{transition:none}
.atlas-discovered-route{animation:none;stroke-dashoffset:0}
}

.atlas-fog-opening{transition:transform 2.6s cubic-bezier(.2,.6,.2,1)}
.atlas-clouds{opacity:.68}
.journey-ending{margin:1.7rem 0;padding:1.3rem;border:1px solid #d6bd8959;border-radius:12px;background:#1e353d;color:#ece4d2;line-height:1.8}
.journey-ending strong{display:block;font:1.3rem/1.5 Georgia,serif}
.journey-ending progress{display:block;width:100%;height:9px;accent-color:#c9c393}
.journey-ending .journey-review-button{display:block;margin:1rem 0}
.journey-dialog:has(.learning-notions){animation:journey-folio .35s ease-out}
@keyframes journey-folio{from{opacity:0;transform:translateY(12px)}
to{opacity:1;transform:translateY(0)}
}
@media(prefers-reduced-motion:reduce){.atlas-fog-opening{transition:none}
.journey-dialog:has(.learning-notions){animation:none}
}
.world-journey progress,.journey-dialog progress,.journey-ending progress{appearance:none;-webkit-appearance:none;background:#07181e;color:#c5c591;border:0;border-radius:20px;overflow:hidden}
.world-journey progress::-webkit-progress-bar,.journey-dialog progress::-webkit-progress-bar,.journey-ending progress::-webkit-progress-bar{background:#07181e;border-radius:20px}
.world-journey progress::-webkit-progress-value,.journey-dialog progress::-webkit-progress-value,.journey-ending progress::-webkit-progress-value{background:linear-gradient(90deg,#7eaaa4,#dbbf86);border-radius:20px;transition:width 1s ease}
.world-journey progress::-moz-progress-bar,.journey-dialog progress::-moz-progress-bar,.journey-ending progress::-moz-progress-bar{background:linear-gradient(90deg,#7eaaa4,#dbbf86);border-radius:20px}
@media(prefers-reduced-motion:reduce){.world-journey progress::-webkit-progress-value,.journey-dialog progress::-webkit-progress-value,.journey-ending progress::-webkit-progress-value{transition:none}}
