/* Account screens share the map selector's palette, header and map artwork. */
.account-document { width:100%; }
.account-page { height:auto; min-height:100dvh; overflow:auto; }
.account-page .welcome-card { min-height:100dvh; height:auto; }
.account-page .welcome-logo { padding-bottom:18px; margin-bottom:0; border-bottom:1px solid var(--border); }
.account-page .welcome-logo h1 a { color:inherit; text-decoration:none; }
.account-stage { width:min(1440px,100%); margin:clamp(28px,5vh,64px) auto 0; display:grid; grid-template-columns:minmax(0,1fr) minmax(280px,340px); align-items:center; gap:clamp(32px,5vw,80px); padding:0 0 32px; }
.account-atlas { min-width:0; position:relative; }
.account-atlas img { display:block; width:100%; height:auto; max-height:720px; object-fit:contain; }
.account-atlas figcaption { display:flex; justify-content:space-between; gap:12px; margin:0; padding:14px 4px 0; border-top:1px solid var(--border); font:16px var(--site-typeface); color:var(--gold); }
.account-atlas figcaption span { font:12px var(--site-typeface); color:var(--text-dim); }
.account-panel { min-width:0; padding:28px 0; }
.account-eyebrow { color:var(--gold); font-size:11px; letter-spacing:.12em; text-transform:uppercase; margin-bottom:14px; }
.account-panel h2 { font:normal clamp(36px,4vw,56px)/1.08 var(--site-typeface); letter-spacing:-.035em; color:var(--text); margin-bottom:32px; }
.account-intro { color:var(--text-dim); font-size:14px; line-height:1.7; margin-bottom:28px; }
.account-providers { display:grid; gap:12px; }
.account-provider { display:grid; grid-template-columns:20px minmax(0,190px); align-items:center; justify-content:center; text-align:left; gap:12px; width:100%; min-height:50px; padding:12px; border-radius:5px; font:600 14px/1.4 var(--site-typeface); letter-spacing:0; text-transform:none; text-decoration:none; }
.account-provider.btn-secondary { background:var(--surface); color:var(--text); }
.account-provider.btn-secondary:hover { background:var(--surface-hi); border-color:var(--gold); }
.provider-mark { display:block; width:20px; height:20px; object-fit:contain; }
.billing-disclosure { font-size:12px; line-height:1.5; }
.account-note { margin-top:22px; color:var(--text-dim); font-size:12px; line-height:1.5; text-align:center; }
.account-notice { padding:12px; margin-bottom:20px; border-left:2px solid var(--gold); background:var(--gold-dim); color:var(--text); font-size:13px; line-height:1.6; }
.account-form p { margin-bottom:18px; }
.account-form label { text-transform:none; letter-spacing:0; color:var(--text); font-size:13px; margin-bottom:8px; }
.account-form input:not([type=hidden]):not([type=checkbox]):not([type=radio]),.account-form select { width:100%; min-height:44px; padding:10px 12px; border:1px solid var(--control-border); border-radius:5px; background:var(--surface); color:var(--text); font:14px var(--site-typeface); }
.account-form .helptext { display:block; margin-top:8px; color:var(--text-dim); font-size:12px; line-height:1.5; }
.account-form .errorlist { padding-left:18px; margin-bottom:12px; color:var(--danger); font-size:13px; line-height:1.5; }
.account-form .btn-primary { margin-top:24px; min-height:48px; font-size:13px; }
.account-panel a:focus-visible,.account-form input:focus-visible { outline:2px solid var(--gold); outline-offset:4px; }
@media (max-width:760px) {
    .account-stage { grid-template-columns:minmax(0,560px); justify-content:center; gap:24px; margin-top:24px; padding:0 0 24px; }
    .account-atlas img { height:auto; max-height:360px; }
    .account-atlas figcaption { display:none; }
    .account-panel { width:100%; max-width:400px; margin:auto; padding:0 8px; }
    .account-panel h2 { font-size:36px; margin-bottom:24px; }
    .account-panel h2 br { display:none; }
}
@media (prefers-reduced-motion:reduce) { .account-page a,.account-page button { transition:none; } }

/* A fixed artwork frame prevents layout movement between differently shaped maps. */
.map-slideshow-image { aspect-ratio:10/7; display:flex; align-items:center; justify-content:center; touch-action:pan-y; cursor:grab; border-radius:3px; border:1px solid var(--border); box-shadow:0 16px 40px #0003; }
.map-slideshow-image picture { display:contents; }
.map-slideshow-image:active { cursor:grabbing; }
.map-slideshow-image img { height:100%; max-height:none; user-select:none; -webkit-user-drag:none; }
.map-slideshow figcaption { align-items:center; min-height:61px; }
.map-slideshow-caption { display:flex; flex-direction:column; gap:6px; min-width:0; }
.map-slideshow-caption .map-slideshow-selection { margin-bottom:7px; font:12px/1.4 var(--detail-typeface); color:var(--text-dim); }
.map-slideshow-caption [data-map-name] { font:16px/1.3 var(--site-typeface); color:var(--gold); }
.map-slideshow-controls { display:flex; align-items:center; gap:4px; flex:none; }
.map-slideshow-controls [data-map-count] { min-width:4ch; margin-right:8px; font:12px var(--detail-typeface); font-variant-numeric:tabular-nums; white-space:nowrap; }
.map-slideshow-controls button { display:grid; place-items:center; width:40px; height:44px; padding:0; color:var(--text-dim); background:transparent; border:1px solid transparent; }
.map-slideshow-controls button:hover { color:var(--gold); background:var(--surface-hi); border-color:var(--border); }
.map-slideshow-controls svg { fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.map-slideshow-controls [hidden] { display:none; }
.map-slideshow-image:focus-visible { outline:2px solid var(--gold); outline-offset:4px; }
@media (max-width:760px) {
    .map-slideshow-image { height:auto; aspect-ratio:10/7; }
    .map-slideshow figcaption { display:flex; margin:0; padding-top:8px; }
    .map-slideshow-caption [data-map-name] { font-size:14px; }
    .map-slideshow-controls button { width:36px; }
}

.map-slideshow-image { position:relative; overflow:hidden; }
.map-slideshow-image .map-slideshow-outgoing { position:absolute; inset:0; pointer-events:none; }

/* The public entrance is a full-screen atlas, with controls above the artwork. */
.account-immersive .welcome-card { position:relative; isolation:isolate; padding:clamp(24px,4vw,64px); background:var(--bg); }
.account-immersive .welcome-logo { position:relative; z-index:1; align-self:flex-start; border:0; padding:0; }
.account-immersive .account-stage { flex:1; display:flex; align-items:center; width:100%; margin:0; padding:90px 0 130px; }
.account-immersive .map-slideshow { position:absolute; inset:0; margin:0; }
.account-immersive .map-slideshow-image { position:absolute; inset:0 0 0 auto; width:74%; height:100%; aspect-ratio:auto; border:0; border-radius:0; box-shadow:none; }
.account-immersive .map-slideshow-image img { width:100%; height:100%; max-height:none; object-fit:contain; object-position:right center; mask-image:none; }
.account-immersive .map-slideshow-image::after { content:""; position:absolute; inset:0; pointer-events:none; background:linear-gradient(90deg, color-mix(in srgb,var(--bg) 96%,transparent) 0%, color-mix(in srgb,var(--bg) 16%,transparent) 18%, transparent 58%, transparent 100%), linear-gradient(0deg, color-mix(in srgb,var(--bg) 94%,transparent), transparent 24%, transparent 78%, color-mix(in srgb,var(--bg) 50%,transparent)); }
.account-immersive .map-slideshow-image:focus-visible { outline-offset:-6px; }
.account-immersive .map-slideshow figcaption { position:absolute; bottom:clamp(24px,4vw,64px); left:44%; right:clamp(24px,4vw,64px); padding:0; border:0; gap:24px; }
.account-immersive .map-slideshow-caption { flex-direction:column; align-items:flex-start; gap:5px; }
.account-immersive .map-slideshow-caption [data-map-name] { font-size:22px; }
.account-immersive .map-slideshow-controls button { width:44px; color:var(--text); }
.account-immersive .account-panel { position:relative; z-index:1; width:min(100%,420px); padding:0; margin:0; }
.account-immersive .account-panel h2 { font-size:clamp(52px,6.5vw,88px); line-height:1.02; margin-bottom:40px; text-shadow:0 2px 24px rgb(0 0 0 / .2); }
.account-immersive .account-providers { max-width:340px; }
.account-immersive .account-provider { min-height:54px; }
.account-immersive .account-provider.btn-secondary { background:color-mix(in srgb,var(--surface) 85%,transparent); border-color:var(--control-border); }
.account-immersive .account-provider.btn-secondary:hover { background:var(--surface-hi); border-color:var(--gold); }
/* Let wrapped captions reserve their own space on tablets and phones. */
@media (max-width:1024px) {
    .account-immersive .account-stage { flex-direction:column; align-items:flex-start; justify-content:center; gap:48px; padding:90px 0 0; }
    .account-immersive .account-panel { order:1; }
    .account-immersive .map-slideshow { position:static; order:2; width:100%; }
    .account-immersive .map-slideshow figcaption { position:relative; inset:auto; z-index:1; flex-wrap:wrap; }
    .account-immersive .map-slideshow-caption { flex:1 1 300px; }
}
@media (max-width:760px) {
    .account-immersive .account-stage { padding:100px 0 0; align-items:center; }
    .account-immersive .account-panel h2 { font-size:clamp(48px,10vw,68px); margin-bottom:28px; }
    .account-immersive .account-panel h2 br { display:initial; }
    .account-immersive .map-slideshow-image { inset:0; width:100%; }
    .account-immersive .map-slideshow-image img { object-fit:cover; object-position:center; mask-image:none; }
    .account-immersive .map-slideshow-image::after { background:linear-gradient(90deg, color-mix(in srgb,var(--bg) 80%,transparent), color-mix(in srgb,var(--bg) 48%,transparent)), linear-gradient(0deg, color-mix(in srgb,var(--bg) 98%,transparent), color-mix(in srgb,var(--bg) 30%,transparent) 60%, color-mix(in srgb,var(--bg) 10%,transparent)); }
    .account-immersive .map-slideshow figcaption { gap:10px 20px; }
    .account-immersive .map-slideshow-caption { flex:1 1 100%; gap:6px; }
    .account-immersive .map-slideshow-caption [data-map-name] { font-size:16px; }
}

.billing-page .account-panel h2 { font-size:clamp(2rem,4vw,3rem); }
.billing-page .btn-primary,.billing-page .btn-secondary { display:inline-flex; align-items:center; justify-content:center; min-height:44px; font:600 14px/1.3 var(--site-typeface); text-transform:none; letter-spacing:0; text-decoration:none; }

.homepage-description { font-size:15px; line-height:1.5; color:var(--text); margin:0 0 10px; max-width:38ch; }
.homepage-features { font-size:12px; line-height:1.5; color:var(--text-dim); margin:0 0 16px; }
.map-slideshow-caption [data-map-hook] { font-size:12px; line-height:1.4; color:var(--text-dim); }

.account-immersive .map-slideshow-caption [data-map-hook] { flex-basis:100%; }

.account-immersive .welcome-logo { background:transparent; }

.account-return { display:flex; max-width:340px; text-align:center; }

.map-slideshow-caption [data-map-group] { flex-basis:100%; font:12px/1.3 var(--detail-typeface); color:var(--text-dim); }

.homepage-signin-note { margin:12px 0 0; max-width:340px; font:12px/1.5 var(--detail-typeface); color:var(--text-dim); }
.homepage-explore { display:inline-block; margin-top:20px; color:var(--gold); font:14px/1.5 var(--site-typeface); text-decoration:none; }
.homepage-explore:hover { text-decoration:underline; }

/* Billing and authenticated account screens use the shared compact header. */
.account-page .welcome-logo.signed-in-header { min-height:var(--app-header-height); padding-block:0; align-items:center; gap:16px; }
.account-page .signed-in-header h1 { font-size:.95rem; line-height:1.2; font-weight:700; letter-spacing:.04em; text-shadow:none; }
.account-page .signed-in-header .subtitle { margin:0; font-size:10px; }
@media(max-width:1100px) { .account-page .signed-in-header .subtitle { display:none; } }

/* Public homepage and information-page footer; no gameplay assets or scripts. */
.site-footer { width:min(1400px,100%); margin:0 auto; padding:0 clamp(24px,4vw,64px) 32px; color:var(--text-dim); font:14px/1.5 var(--detail-typeface); text-align:left; }
.site-footer-content { display:grid; grid-template-columns:minmax(0,1.5fr) repeat(5,minmax(0,1fr)); align-items:start; gap:32px; }
.site-footer-identity { min-width:0; }
.site-footer-links { display:grid; justify-items:start; align-content:start; gap:8px; min-width:0; }
.site-footer-label { font:600 12px/30px var(--detail-typeface); letter-spacing:.06em; text-transform:uppercase; }
.site-footer p { margin:0; }
.site-footer nav { display:grid; justify-items:start; gap:2px; max-width:100%; }
.site-footer :is(a,button) { display:inline-flex; align-items:center; gap:4px; min-height:28px; max-width:100%; color:inherit; text-align:left; text-decoration:none; overflow-wrap:anywhere; }
.site-footer button { padding:0; border:0; border-radius:0; background:none; box-shadow:none; font:inherit; cursor:pointer; }
.site-footer button[hidden] { display:none; }
.site-footer .site-footer-brand { gap:10px; color:var(--gold); font:600 26px/1.15 var(--site-typeface); }
.site-footer .brand-seal { width:30px; height:30px; }
.site-footer .site-footer-attribution { margin-top:6px; padding-left:40px; font-size:13px; }
.site-footer-facts { display:flex; flex-wrap:wrap; gap:4px 20px; margin-top:32px; color:color-mix(in srgb,var(--text-dim) 78%,var(--bg)); font-size:12px; }
.site-footer-facts span { white-space:nowrap; }
.site-footer-facts code { font:11px/1.5 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; font-variant-numeric:tabular-nums; }
.site-footer .community-link-separator { display:none; }
.site-footer :is(a,button):hover,.site-footer a[aria-current=page] { color:var(--gold); text-decoration:underline; text-underline-offset:3px; }
.site-footer .site-footer-brand:hover { text-decoration:none; }
.site-footer :is(a,button):focus-visible { outline:2px solid var(--gold); outline-offset:3px; }
@media(max-width:1200px) {
    .site-footer-content { grid-template-columns:repeat(5,minmax(0,1fr)); }
    .site-footer-identity { grid-column:1/-1; }
}
@media(max-width:760px) {
    .site-footer-content { grid-template-columns:repeat(2,minmax(0,1fr)); column-gap:24px; }
    .site-footer-copyright,.site-footer-location { flex-basis:100%; }
}
@media(any-pointer:coarse) { .site-footer :is(a,button) { min-height:44px; min-width:44px; } }

.site-footer-identity .theme-picker { padding-left:40px; width:fit-content; max-width:100%; }

/* Destination sign-in stays focused on account access; the homepage owns the atlas. */
.account-simple-signin .welcome-card { padding:clamp(20px,4vw,48px); background:var(--bg); }
.account-simple-signin .welcome-logo { align-self:stretch; border:0; padding:0; }
.account-simple-signin .welcome-logo h1 { font:600 26px/1.2 var(--site-typeface); letter-spacing:0; }
.account-simple-signin .welcome-logo .subtitle { display:none; }
.account-simple-signin .account-stage { display:block; width:min(100%,400px); margin:clamp(48px,12vh,120px) auto 0; padding-bottom:48px; }
.account-simple-signin .account-panel { width:100%; max-width:none; margin:0; padding:0; }
.account-simple-signin .account-panel h2 { color:var(--gold); font:600 32px/1.2 var(--site-typeface); letter-spacing:0; margin:0 0 12px; }
.account-simple-signin .account-intro { font:15px/1.5 var(--detail-typeface); margin-bottom:28px; }
.account-simple-signin .account-note { font:13px/1.5 var(--detail-typeface); text-align:left; }
