body:has(.atlas-app) { background: #0c282c; color: #f5f3e9; }
body:has(.atlas-app) .navbar { background: #0c282c; border-color: #ffffff18; box-shadow: none; }
body:has(.atlas-app) .navbar a { color: #d7e4df; }
body:has(.atlas-app) .secondary-navbar { display: none; }
body:has(.atlas-app) .footer { background: #0c282c; color: #9ab1ad; border-color: #ffffff18; padding: 1rem; }
.atlas-app { --ink: #183d3d; --muted: #536b67; --gold: #e8bb68; max-width: 1200px; margin: auto; padding: 24px 32px 0; }
.atlas-app button, .atlas-dialog button, .atlas-app input { font: inherit; }
.atlas-app button, .atlas-dialog button { cursor: pointer; }
.atlas-app button:focus-visible, .atlas-dialog button:focus-visible, .atlas-app a:focus-visible { outline: 3px solid #d99c36; outline-offset: 4px; }
.atlas-top { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding-bottom: 23px; }
.atlas-brand { font: 36px/1.1 Georgia, serif; letter-spacing: -1px; text-align: center; }
.atlas-brand span { display: block; font: 10px/2.7 system-ui, sans-serif; letter-spacing: 2.5px; color: #b7cbc5; }
.atlas-back, .atlas-top .atlas-link { color: #ccdcd6; text-decoration: none; font-size: 14px; }
.atlas-link { border: 0; padding: 8px 0; background: none; color: var(--ink); text-decoration: underline; text-underline-offset: 5px; font-size: 14px; }
.atlas-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; gap: 12px; }
.atlas-modes { display: flex; background: #ffffff09; border: 1px solid #ffffff1a; padding: 4px; border-radius: 30px; gap: 4px; }
.atlas-modes button { border: 0; background: none; color: #c3d4cd; border-radius: 24px; padding: 10px 20px; font-size: 14px; }
.atlas-modes button.selected { background: #e8bb68; color: #183632; }
.atlas-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: currentColor; margin-left: 7px; vertical-align: middle; }
.atlas-save { font-size: 12px; color: #b4c8c0; }
.atlas-layout { display: grid; grid-template-columns: 0.88fr 1.12fr; min-height: 630px; border-radius: 14px; overflow: hidden; box-shadow: 0 20px 70px #0003; }
.atlas-landscape { position: relative; isolation: isolate; min-height: 630px; background: #123b41; overflow: hidden; }
.atlas-landscape img { position: absolute; height: 100%; width: 100%; object-fit: cover; object-position: 44% center; z-index: -2; }
.atlas-landscape::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg,#062c35d9, #07343705 40%,#06272ced 100%); z-index: -1; }
.atlas-scene-heading { padding: 39px 36px; }
.atlas-eyebrow { font: 11px/1.5 system-ui, sans-serif; letter-spacing: 2px; font-weight: 650; }
.atlas-scene-heading .atlas-eyebrow { color: #f2cb80; }
.atlas-scene-heading h1 { font: 52px/1.12 Georgia, serif; letter-spacing: -1.5px; margin: 13px 0; color: #fff9e9; }
.atlas-scene-heading p { max-width: 220px; color: #eef2de; font-size: 16px; line-height: 1.6; }
.atlas-scene-bottom { position: absolute; bottom: 32px; left: 36px; right: 36px; }
.atlas-scene-bottom > .atlas-eyebrow { color: #e9d1a3; font-size: 10px; }
.atlas-stops { display: flex; justify-content: space-between; position: relative; margin: 22px 0 17px; }
.atlas-stops::before { content: ''; position: absolute; top: 18px; left: 0; right: 0; height: 1px; background: #d8d6ab66; z-index: -1; }
.atlas-stop { width: 36px; height: 36px; border-radius: 50%; border: 1px solid #b9cabb; background: #123b3c; color: #d4dfd0; font-size: 12px !important; }
.atlas-stop.active { background: #f0c778; color: #19342e; border: 3px solid #fff2c5; box-shadow: 0 0 0 4px #edce6c22; }
.atlas-stop.done { background: #d8e6cf; color: #15362f; }
.atlas-stop:disabled { opacity: .65; cursor: default; }
.atlas-scene-link { background: transparent; border: 0; color: #e6eedb; font-size: 14px !important; padding: 8px 0; }
.atlas-board { background: #f8f7f1; color: var(--ink); padding: 30px 42px; min-width: 0; }
.atlas-board-top { display: flex; justify-content: space-between; align-items: center; color: var(--muted); margin-bottom: 24px; gap: 10px; }
.atlas-board-top > span:last-child { font-size: 12px; }
.atlas-board h2 { font: 36px/1.2 Georgia, serif; letter-spacing: -.7px; margin-bottom: 10px; color: #183d3d; }
.atlas-rule { font-size: 14px; color: var(--muted); line-height: 1.7; }
.atlas-from { margin: 27px 0 25px; }
.atlas-from > .atlas-eyebrow, .atlas-clue > .atlas-eyebrow { display: block; color: #62756b; margin-bottom: 10px; font-size: 10px; }
.atlas-tiles { display: flex; gap: 10px; }
.atlas-tile { display: inline-flex; width: 58px; height: 64px; justify-content: center; align-items: center; background: #e8ede4; border: 1px solid #d3dcd0; border-bottom: 3px solid #c3d2c4; border-radius: 7px; font: 32px Georgia, serif; }
.atlas-tile.changed { animation: atlas-pop .4s ease-out; background: #d8e7c8; }
.atlas-clue { min-height: 85px; }
.atlas-clue p { font: 23px/1.4 Georgia, serif; }
.atlas-input-label { display: block; font-size: 12px; color: var(--muted); margin: 18px 0 6px; }
.atlas-answer-row { display: flex; gap: 10px; }
#word-guess { width: 100%; min-width: 0; height: 57px; padding: 10px 15px; border: 1px solid #a1b6a8; border-radius: 6px; background: #fffefa; color: #173d39; font-size: 25px; letter-spacing: 7px; text-transform: uppercase; }
#word-guess::placeholder { font-size: 15px; letter-spacing: .7px; text-transform: none; color: #6d7d70; }
#word-guess:focus { outline: 2px solid #346354; outline-offset: 2px; }
#word-guess[aria-invalid=true] { border-color: #a95336; }
.atlas-primary { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 50px; border: 0; border-radius: 6px; padding: 14px 21px; background: #214f44; color: #fffdf0; font-weight: 600 !important; font-size: 14px !important; white-space: nowrap; }
.atlas-primary:hover { background: #133d33; }
.atlas-message { min-height: 27px; font-size: 14px; line-height: 1.4; margin-top: 10px; color: #3e6046; }
.atlas-message.error { color: #9b4226; }
.atlas-assistance { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.atlas-assistance > span { font-size: 12px; color: var(--muted); }
.atlas-word-trail { display: flex; flex-wrap: wrap; gap: 7px; padding-top: 22px; margin-top: 10px; border-top: 1px solid #dce1d5; min-height: 44px; }
.atlas-word-trail span { color: #627469; font-size: 12px; letter-spacing: 1px; }
.atlas-word-trail span:not(:last-child)::after { content: ' /'; color: #91a393; padding-left: 7px; }
.atlas-footnote { text-align: center; color: #b2c8c0; font: italic 15px Georgia, serif; padding: 20px 0; }
.atlas-arrival { display: block; font-size: 42px; color: #a4772f; margin: 5px 0 18px; }
.atlas-reflection { font: 22px/1.65 Georgia, serif; margin: 20px 0; }
.atlas-collected { display: flex; flex-wrap: wrap; gap: 7px; margin: 25px 0; }
.atlas-collected span { border: 1px solid #ced9c9; border-radius: 5px; padding: 8px 12px; font-size: 13px; letter-spacing: 1px; }
#finish-note { color: #536b67; font-size: 14px; margin: 20px 0; }
#finish-panel .atlas-link { margin: 12px 0 0 16px; }
#share-status { font-size: 14px; margin-top: 10px; }
#share-fallback { width: 100%; min-height: 150px; margin-top: 15px; padding: 10px; }
.atlas-dialog { margin: auto; width: min(530px,calc(100% - 32px)); max-height: 90dvh; overflow-y: auto; padding: 38px; border: 0; border-radius: 14px; background: #f8f7f1; color: #183d3d; box-shadow: 0 30px 100px #0005; }
.atlas-dialog::backdrop { background: #031c25c9; backdrop-filter: blur(4px); }
.atlas-dialog h2 { font: 32px/1.2 Georgia, serif; margin: 14px 0 20px; }
.atlas-dialog p { font-size: 16px; line-height: 1.7; margin-bottom: 17px; }
.atlas-dialog .atlas-small { font-size: 13px; color: #536b67; }
.atlas-dialog-close { position: absolute; top: 8px; right: 14px; border: 0; background: none; font-size: 28px !important; color: #183d3d; padding: 0 10px; }
.atlas-example { display: flex; justify-content: center; gap: 25px; padding: 15px; margin: 20px 0; background: #e8ede4; border-radius: 6px; font: 22px Georgia, serif; }
.atlas-journey-choice { width: 100%; text-align: left; padding: 18px; margin-top: 10px; border: 1px solid #cbd8ca; background: #edf0e6; border-radius: 7px; color: #183d3d; }
.atlas-journey-choice strong { display: block; font: 24px Georgia, serif; margin-bottom: 5px; }
.atlas-journey-choice span { display: block; font-size: 13px; }
[hidden] { display: none !important; }
@keyframes atlas-pop { 0% { transform: translateY(-8px); opacity: .4; } 100% { transform: translateY(0); opacity: 1; } }
@media (max-width: 800px) {
 .atlas-app { padding: 18px 18px 0; } .atlas-layout { grid-template-columns: 1fr; } .atlas-landscape { min-height: 235px; } .atlas-landscape img { object-position: center 45%; } .atlas-scene-heading { padding: 24px; } .atlas-scene-heading h1 { font-size: 40px; margin: 7px 0; } .atlas-scene-heading p { max-width: 100%; font-size: 14px; } .atlas-scene-bottom { left: auto; right: 24px; width: 190px; bottom: 24px; } .atlas-scene-bottom > .atlas-eyebrow { display: none; } .atlas-stops { margin: 10px 0; } .atlas-stop { width: 26px; height: 26px; font-size: 10px !important; } .atlas-stops::before { top: 13px; } .atlas-scene-link { font-size: 12px !important; } .atlas-board { padding: 27px; } .atlas-board-top { margin-bottom: 16px; } .atlas-layout { min-height: 0; } .atlas-save { max-width: 135px; text-align: right; } .atlas-brand { font-size: 30px; } .atlas-brand span { font-size: 9px; letter-spacing: 1.2px; } .atlas-top { gap: 8px; } .atlas-back,.atlas-top .atlas-link { font-size: 12px; } .atlas-from { margin: 20px 0; }
}
@media (max-width: 450px) {
 .atlas-app { padding: 14px 12px 0; } .atlas-brand { font-size: 27px; } .atlas-brand span { display: none; } .atlas-toolbar { align-items: flex-start; } .atlas-modes button { padding: 9px 12px; font-size: 12px; } .atlas-save { font-size: 10px; max-width: 93px; padding-top: 6px; } .atlas-landscape { min-height: 210px; } .atlas-scene-heading { padding: 22px; } .atlas-scene-heading h1 { font-size: 36px; } .atlas-scene-heading p { max-width: 200px; } .atlas-scene-bottom { right: 20px; bottom: 12px; width: 175px; } .atlas-scene-link { padding: 4px 0; } .atlas-board { padding: 23px 21px; } .atlas-board h2 { font-size: 31px; } .atlas-rule { font-size: 13px; } .atlas-clue p { font-size: 21px; } .atlas-answer-row { gap: 8px; } .atlas-primary { padding: 13px; gap: 10px; font-size: 13px !important; } #word-guess { letter-spacing: 4px; padding: 8px 12px; font-size: 23px; } .atlas-tile { width: 52px; height: 57px; } .atlas-assistance > span { font-size: 11px; } .atlas-dialog { padding: 30px 23px; }
}
@media (prefers-reduced-motion: reduce) { .atlas-app *, .atlas-dialog * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
/* Keep secondary labels readable and controls comfortable on small screens. */
.atlas-brand span, .atlas-eyebrow, .atlas-from > .atlas-eyebrow, .atlas-clue > .atlas-eyebrow, .atlas-scene-bottom > .atlas-eyebrow { font-size: 12px; }
.atlas-modes button, .atlas-link, .atlas-back, .atlas-top .atlas-link, .atlas-scene-link { min-height: 44px; font-size: 14px; }
.atlas-dialog-close { min-width: 44px; min-height: 44px; }
.atlas-stop { position: relative; }
.atlas-stop::after { content: ''; position: absolute; inset: -5px; }
@media (max-width: 800px) {
 .atlas-landscape { min-height: 245px; }
 .atlas-scene-bottom { left: 24px; right: 24px; bottom: 14px; width: auto; display: flex; align-items: center; gap: 22px; }
 .atlas-stops { flex: 1; max-width: 250px; }
 .atlas-stop { width: 30px; height: 30px; font-size: 12px !important; }
 .atlas-stops::before { top: 15px; }
 .atlas-scene-link { white-space: nowrap; font-size: 14px !important; }
 .atlas-brand span { font-size: 10px; }
}
@media (max-width: 450px) {
 .atlas-brand { font-size: 28px; }
 .atlas-landscape { min-height: 255px; }
 .atlas-scene-bottom { gap: 10px; flex-wrap: wrap; }
 .atlas-stops { flex-basis: 100%; min-width: 100%; margin: 0; }
 .atlas-scene-link { min-height: 30px; padding: 0; }
 .atlas-scene-heading p { max-width: 100%; }
 .atlas-save { font-size: 12px; max-width: 100px; }
 .atlas-modes button { font-size: 14px; padding: 8px 10px; }
 .atlas-assistance > span { font-size: 12px; }
 .atlas-top { flex-wrap: wrap; }
 .atlas-back, .atlas-top .atlas-link { font-size: 12px; }
}
@media (max-width: 360px) {
 .atlas-toolbar { flex-wrap: wrap; }
 .atlas-save { max-width: none; text-align: left; }
 .atlas-answer-row { flex-direction: column; }
 .atlas-tile { width: 48px; }
 .atlas-brand { font-size: 25px; }
}
.atlas-results-note { text-align: center; margin: 20px 0 0; color: #c3d5cc; font-size: 14px; }
.atlas-results-note a { display: inline-block; color: #f2ca80; padding: 10px; text-underline-offset: 4px; }
