*{box-sizing:border-box}html,body{margin:0;height:100%;background:#143b31;color:#fff2d3;font-family:"Avenir Next",Avenir,"Trebuchet MS",sans-serif}body{height:100svh;display:flex;flex-direction:column;overflow:hidden}a,button{-webkit-tap-highlight-color:transparent;touch-action:manipulation}a{color:inherit;text-decoration:none}button{font:inherit;cursor:pointer}.map-header{position:relative;z-index:2;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:18px;padding:19px max(24px,env(safe-area-inset-left));background:#12382f;box-shadow:0 5px 22px #08251c55}.map-header p{font-size:12px;font-weight:800;letter-spacing:.16em;margin:0 0 5px;text-align:center;opacity:.72}h1{font-size:clamp(18px,2.5vw,28px);font-weight:650;letter-spacing:-.03em;margin:0}.back{justify-self:start;border:1px solid #e9e4ba50;border-radius:25px;padding:11px 15px;font-size:14px}.opened{text-align:right;font-size:14px;opacity:.72}#map-scroll{position:relative;flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-color:#9aab8466 transparent;scroll-behavior:smooth}.atlas{position:relative;width:min(100%,820px);margin:0 auto;isolation:isolate}.atlas>img{display:block;width:100%;height:auto;aspect-ratio:1/3}.map-breath{position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse at 40% 70%,#ffedca12,transparent 40%),radial-gradient(ellipse at 70% 33%,#a8d7e518,transparent 35%);animation:breathe 22s ease-in-out infinite alternate;mix-blend-mode:screen}.destination{position:absolute;left:var(--x);top:var(--y);transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;width:min(43vw,210px);padding:8px 3px;background:none;border:0;color:#fff3d4;text-shadow:0 2px 7px #123327,0 1px 2px #123327;z-index:1}.destination .pin{display:grid;place-items:center;width:29px;height:29px;border:1px solid #fff3ce9c;border-radius:50%;background:#173c31b8;box-shadow:0 2px 12px #173b3180;margin-bottom:5px}.pin svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:1.8}.pin .dot{width:8px;height:8px;border-radius:50%;background:#fff1c9}.destination .name{padding:6px 10px;border:1px solid #ffedc835;border-radius:14px;background:#103a2ed9;backdrop-filter:blur(6px);font-size:clamp(14px,1.9vw,19px);line-height:1.2;font-weight:650}.destination .state{margin-top:4px;font-size:12px;font-weight:600}.destination[aria-pressed=true] .name{background:#f8e4b9;color:#403c28;text-shadow:none;border-color:#fff3d6;box-shadow:0 0 0 3px #fff0ca35,0 4px 20px #183a3155}.destination[aria-pressed=true] .pin{background:#f8e4b9;color:#463e28}.destination.future{color:#f5efd8}.destination.future .name{background:#163c34c9}.destination.future .pin{background:#203f37a8}.destination:focus-visible,.play:focus-visible,.back:focus-visible{outline:3px solid #fff6dc;outline-offset:5px}.map-invitation{position:absolute;bottom:1.2%;left:8%;right:8%;text-align:center;font-size:14px;text-shadow:0 2px 8px #103327}.world-detail{position:relative;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:28px;padding:21px max(28px,calc((100vw - 930px)/2));background:#12382f;box-shadow:0 -6px 30px #0a291c66;min-height:165px;padding-bottom:max(21px,env(safe-area-inset-bottom))}.detail-text{max-width:660px;min-width:0}.eyebrow{display:block;font-size:12px;letter-spacing:.07em;color:#ebd4a2}h2{font-size:clamp(22px,3vw,30px);line-height:1.12;margin:6px 0 7px;letter-spacing:-.025em}#world-description{font-size:16px;line-height:1.4;margin:0;color:#e0e4ce}#world-progress{font-size:13px;color:#d5d9c1;margin:8px 0 0}.track{height:5px;border-radius:5px;background:#9aaf8c32;margin-top:10px;max-width:340px;overflow:hidden}.track span{display:block;height:100%;background:#e6d198;border-radius:5px}.play{flex-shrink:0;display:block;text-align:center;font-size:16px;font-weight:800;color:#483c22;border:1px solid #fff0c8;border-radius:32px;padding:16px 26px;background:linear-gradient(#f9e9c9,#dec291);box-shadow:0 5px 15px #08291d33}.play:active{transform:translateY(1px)}#coming{font-size:14px;color:#c4cbb7;white-space:nowrap}.play[hidden],#coming[hidden],.track[hidden]{display:none}@keyframes breathe{from{opacity:.45;transform:translateY(-9px)}to{opacity:.95;transform:translateY(9px)}}@media(max-width:650px){.map-header{grid-template-columns:auto 1fr;gap:10px;padding:13px 14px}.map-header>div{justify-self:end}.map-header p{text-align:right;font-size:10px}.map-header h1{font-size:18px}.back{font-size:13px;padding:10px 12px}.opened{grid-column:1/-1;text-align:center;font-size:12px;margin-top:-1px}.world-detail{display:grid;grid-template-columns:1fr;gap:13px;padding:17px 20px max(17px,env(safe-area-inset-bottom));min-height:215px}h2{font-size:24px;margin-top:4px}#world-description{font-size:15px;line-height:1.35}.play{padding:12px 20px;font-size:16px}.eyebrow{font-size:12px}#world-progress{font-size:12px;margin-top:6px}.destination .pin{width:24px;height:24px}.destination .state{font-size:11px}.destination .name{padding:5px 8px;font-size:14px}.map-invitation{font-size:12px}.track{max-width:none}}@media(max-height:650px) and (max-width:650px){.map-header{padding:9px 12px}.map-header h1{font-size:16px}.opened{display:none}.world-detail{padding:12px 16px;min-height:190px;gap:9px}h2{font-size:21px}#world-description{font-size:14px}.play{padding:10px 18px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important}}
.destination.future[aria-pressed=true] .name{background:#f8e4b9;color:#403c28}.destination.future[aria-pressed=true] .pin{background:#f8e4b9;color:#463e28}


/* Keep the original atlas; let its scenery replace the broad green frame. */
#map-scroll{overflow-x:hidden}
.atlas{width:min(100%,1160px)}
.atlas::before{content:'';display:none;position:absolute;left:50%;top:0;bottom:0;width:100vw;transform:translateX(-50%);z-index:-1;pointer-events:none;background:linear-gradient(#143b314d,#143b314d),url('../assets/ten-world-atlas-v1.png') center/100% 100% no-repeat;filter:blur(22px);opacity:.8}
.map-header{padding:12px max(20px,env(safe-area-inset-left));box-shadow:none}
.map-header p{margin-bottom:3px}
.world-detail{min-height:126px;padding:14px max(24px,calc((100vw - 1160px)/2));gap:20px;box-shadow:0 -3px 18px #0a291c33}
#world-description{font-size:15px}
#world-progress{margin-top:5px}
@media(min-width:1161px){.atlas::before{display:block}}
@media(max-width:650px){.map-header{padding:10px 14px}.world-detail{min-height:0;padding:12px 18px max(12px,env(safe-area-inset-bottom));gap:10px}h2{font-size:23px}#world-description{font-size:14px;line-height:1.35}}
@media(max-height:520px) and (min-width:651px){.map-header{padding:8px 16px}.map-header p{display:none}.map-header h1{font-size:20px}.opened{font-size:12px}.world-detail{min-height:0;padding:10px 16px;gap:16px}.world-detail .eyebrow,#world-description{display:none}.world-detail h2{font-size:20px;margin:0 0 5px}#world-progress{font-size:12px;line-height:1.3;margin:0}.play{padding:12px 20px;min-height:44px}}

/* Center the game name and title independently of the side controls. */
.map-header{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:0 18px}
.map-header .back{grid-column:1;grid-row:1/3;min-height:44px;display:inline-flex;align-items:center}
.back-small{display:none}
.map-header .map-heading{grid-column:2;grid-row:1/3;justify-self:center;text-align:center}
.map-header .map-heading p{display:block;text-align:center}
.map-header .map-heading h1{text-align:center}
.map-header .opened{grid-column:3;grid-row:1;justify-self:end;font-size:12px;margin:0}
.map-collections{grid-column:3;grid-row:2;justify-self:end;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:0 12px}
.map-collections a{display:inline-flex;align-items:center;min-height:44px;padding:0 2px;font-size:14px;white-space:nowrap;text-decoration:underline;text-decoration-color:#f6e4bd66;text-underline-offset:5px}
.map-collections a:hover{text-decoration-color:currentColor}
.map-collections a:focus-visible{outline:3px solid #fff6dc;outline-offset:2px;border-radius:4px}
@media(max-width:900px){
 .map-header{grid-template-columns:64px minmax(0,1fr) 64px;gap:3px 0;padding:10px 14px}
 .map-header .back{grid-column:1;grid-row:1;padding:9px 12px}
 .back-wide{display:none}.back-small{display:inline}
 .map-header .map-heading{grid-column:2;grid-row:1}
 .map-header .map-heading p{font-size:10px;margin-bottom:2px}
 .map-header .map-heading h1{font-size:23px;line-height:1.15}
 .map-header .opened{grid-column:1/-1;grid-row:3;justify-self:center;text-align:center;font-size:12px}
 .map-collections{grid-column:1/-1;grid-row:2;justify-self:center;justify-content:center;gap:0 8px}
}
@media(max-width:360px){.map-collections{gap:0 4px}.map-collections a{font-size:13px}}
@media(max-height:650px) and (max-width:900px){.map-header{padding:7px 12px}.map-header .opened{display:none}}
