:root {
  color-scheme: dark;
  --night: #0c0f3a;
  --night-deep: #070923;
  --paper: #f5edda;
  --ink: #242441;
  --gold: #decea4;
  --gold-hot: #f3c46b;
  --rose: #e7a3b7;
  --story-font: "Libre Baskerville", Georgia, serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --vh: 1vh;
  background: var(--night);
  color: #f4efdd;
  font: 400 16px/1.65 var(--story-font);
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
* { box-sizing: border-box; }
html { overscroll-behavior-y: none; }
body, h1, h2, h3, p { margin: 0; }
body { background: transparent; min-height: 100%; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, button, input, label { font-weight: 400; }
a { color: inherit; }
img { -webkit-user-drag: none; user-select: none; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 50; top: 8px; left: 8px; padding: 1rem; background: var(--night); color: white; }
.touch-copy { display: none; }
@media (pointer: coarse) { .touch-copy { display: inline; } .mouse-copy { display: none; } }

/* ---------- background sky (WebGL canvas, CSS fallback) ---------- */
.sky-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; pointer-events: none; }
.sky-fallback { position: fixed; inset: 0; z-index: -2; pointer-events: none; background: radial-gradient(ellipse 120% 70% at 50% 100%, #1b2050, transparent 70%), radial-gradient(ellipse at 50% 0%, #11154a, transparent 60%), var(--night); }
.sky-fallback::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(1px 1px at 20% 30%, #fff8 50%, transparent), radial-gradient(1.5px 1.5px at 70% 20%, #fffa 50%, transparent), radial-gradient(1px 1px at 40% 70%, #fff7 50%, transparent), radial-gradient(1px 1px at 85% 60%, #fff8 50%, transparent), radial-gradient(1.5px 1.5px at 10% 85%, #fff9 50%, transparent); background-size: 240px 260px; opacity: .8; }
.gl-on .sky-fallback { display: none; }

/* ---------- story ---------- */
.story { position: relative; height: calc(var(--vh) * 920); }
.stage { position: sticky; top: 0; height: calc(var(--vh) * 100); overflow: hidden; isolation: isolate; }

.passage { position: absolute; z-index: 6; pointer-events: none; }
.story-copy {
  left: 22px; right: 22px; top: calc(var(--safe-top) + max(4.2svh, 22px));
  font-size: clamp(15px, 2.05svh, 18px); line-height: 1.72;
  text-shadow: 0 1px 14px #0a0c2ecc, 0 0 2px #0a0c2e99;
}
.story-copy h2 { margin-bottom: .55em; font-size: clamp(26px, 3.6svh, 38px); line-height: 1.2; letter-spacing: -.035em; color: #fff7e3; }
.opening { left: 50%; top: 46%; width: min(calc(100% - 44px), 770px); transform: translate(-50%, -50%); }
.opening h1 { font-size: clamp(27px, 4.2svh, 58px); line-height: 1.22; letter-spacing: -.045em; text-wrap: balance; color: #fff8e6; }
.opening p { max-width: 34ch; margin-top: 1.1em; font-size: clamp(16px, 2.25svh, 25px); line-height: 1.6; color: var(--gold); text-wrap: pretty; }
.opening-star { display: block; width: 26px; height: 26px; margin: 0 0 22px -2px; background: url("assets/img/estrela.webp") center / contain no-repeat; filter: drop-shadow(0 0 10px #f6d78baa); animation: star-breathe 4.8s ease-in-out infinite; }
@keyframes star-breathe { 0%, 100% { transform: scale(.8) rotate(0deg); opacity: .7; } 50% { transform: scale(1.12) rotate(45deg); opacity: 1; } }

/* words: rise from a soft blur-free mask, reverse on exit */
.reveal-text { display: block; }
.w { display: inline-block; opacity: 0; transform: translate3d(0, .55em, 0); transition: opacity .9s var(--ease-soft), transform 1.1s var(--ease-out); transition-delay: 0s; }
.is-in .w, .w.is-in-word { opacity: 1; transform: none; transition-delay: var(--d, 0s); }
.passage { opacity: 0; transition: opacity .6s var(--ease-soft); }
.passage.is-in { opacity: 1; transition-duration: .2s; }
.opening.is-in .w { transition-delay: calc(var(--d) + .45s); }
.opening.is-in.revealed .w { transition-delay: 0s; }

/* scroll cue */
.scroll-cue {
  position: absolute; z-index: 7; left: 50%; bottom: calc(var(--safe-bottom) + max(5.5svh, 24px)); transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 10px 22px; min-height: 56px;
  background: none; border: 0; color: #d9d2bd; font: 400 11px/1.4 var(--story-font); letter-spacing: .06em; cursor: pointer;
  transition: opacity .5s var(--ease-soft), transform .5s var(--ease-soft);
  animation: cue-in 1.4s 2.6s var(--ease-out) both;
}
@keyframes cue-in { from { opacity: 0; transform: translate(-50%, 12px); } }
.scroll-cue.is-hidden { opacity: 0; pointer-events: none; transform: translate(-50%, 10px); }
.gesture { width: 18px; height: 30px; border: 1px solid #d9d2bd77; border-radius: 12px; position: relative; }
.gesture span { position: absolute; width: 3px; height: 6px; left: 6.5px; bottom: 5px; border-radius: 4px; background: #e5d799; animation: invite-swipe 2.2s ease-in-out infinite; }
@keyframes invite-swipe { 0%, 15% { opacity: 0; transform: translateY(0); } 35% { opacity: 1; } 70%, 100% { opacity: 0; transform: translateY(-13px); } }

.map-cue {
  position: absolute; z-index: 7; left: 50%; bottom: calc(var(--safe-bottom) + 9svh); transform: translate(-50%, 16px);
  display: flex; flex-direction: column; align-items: center; gap: 14px; min-height: 44px; padding: 10px 18px;
  font-size: 13px; letter-spacing: .04em; color: var(--gold); text-decoration: none; opacity: 0; pointer-events: none;
  transition: opacity .9s var(--ease-soft), transform 1.2s var(--ease-out);
}
.map-cue.is-in { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.map-cue-star { width: 34px; height: 34px; background: url("assets/img/estrela.webp") center / contain no-repeat; filter: drop-shadow(0 0 14px #ffd27a); animation: star-breathe 3.6s ease-in-out infinite; }
.map-cue > span:last-child { margin-left: 8px; display: inline-block; animation: bob 2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(4px); } }

.story-progress { display: none; position: absolute; z-index: 7; right: 10px; top: 50%; width: 2px; height: 76px; transform: translateY(-50%); background: #ffffff14; border-radius: 2px; overflow: hidden; opacity: var(--progress-opacity, 0); transition: opacity .6s; }
.story-progress span { position: absolute; inset: 0; background: linear-gradient(#f6dc9c, #e7a3b7); transform-origin: top; transform: scaleY(var(--progress, 0)); }

/* no-WebGL fallback art */
.art-fallback { position: absolute; left: var(--art-x, 0); top: var(--art-y, 40%); width: var(--art-w, 100%); height: var(--art-h, 60%); display: none; -webkit-mask-image: linear-gradient(transparent, #000 14%, #000 88%, transparent); mask-image: linear-gradient(transparent, #000 14%, #000 88%, transparent); }
.no-gl .art-fallback { display: block; }
.art-fallback img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .2s linear; }
.art-fallback .fb-kingdom { opacity: var(--fb-kingdom, 0); object-position: 50% 50%; }
.art-fallback .fb-forest { opacity: var(--fb-forest, 0); }
.art-fallback .fb-portal { opacity: var(--fb-portal, 0); object-position: 55% 50%; }

/* ---------- map ---------- */
.map-section { position: relative; z-index: 5; width: min(1120px, 100%); margin: 0 auto; padding: 56px 0 72px; display: grid; grid-template-columns: 1fr; gap: 26px; scroll-margin-top: 0; }
.map-introduction { padding: 0 24px; max-width: 600px; }
.map-introduction h2 { font-size: clamp(28px, 7.4vw, 40px); line-height: 1.22; letter-spacing: -.045em; color: #fff7e3; }
.map-introduction > p { font-size: 15.5px; line-height: 1.85; margin-top: 20px; color: #ebe6d6; }
.map-instruction { display: flex; align-items: center; gap: 12px; margin-top: 22px !important; color: var(--gold) !important; font-size: 12.5px !important; opacity: 0; transform: translateY(8px); transition: opacity .8s 1.2s, transform .8s 1.2s var(--ease-out); }
.map-introduction.is-in .map-instruction { opacity: 1; transform: none; }
.tap-dot { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--gold-hot); box-shadow: 0 0 10px var(--gold-hot); flex: none; }
.tap-dot::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--gold-hot); animation: ping 1.8s var(--ease-out) infinite; }
@keyframes ping { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }

.atlas { width: 100%; max-width: 560px; margin: 0 auto; position: relative; }
.atlas-frame { position: relative; padding: 0 6px; }
.realm-map { display: block; width: 100%; height: auto; overflow: visible; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.map-sea { opacity: 0; transform: scale(.94); transform-origin: 50% 50%; transform-box: fill-box; transition: opacity 1.2s var(--ease-soft), transform 1.6s var(--ease-out); }
.atlas.is-in .map-sea { opacity: 1; transform: none; }
.map-beds { fill: #3a2c1c; opacity: 0; transition: opacity 1s .4s; pointer-events: none; }
.atlas.is-in .map-beds { opacity: .22; }

.region { cursor: pointer; outline: none; -webkit-tap-highlight-color: transparent; }
.piece { transform-box: fill-box; transform-origin: 50% 50%; opacity: 0; transition: transform 1.25s var(--ease-out), opacity .7s var(--ease-soft); transition-delay: calc(.35s + var(--i) * .16s); }
.region[data-place="escolha"] .piece { transform: translate(-120px, -260px) rotate(-14deg) scale(.82); }
.region[data-place="fonte"] .piece { transform: translate(260px, -120px) rotate(12deg) scale(.82); }
.region[data-place="vale"] .piece { transform: translate(-280px, 40px) rotate(-10deg) scale(.82); }
.region[data-place="lago"] .piece { transform: translate(240px, 120px) rotate(9deg) scale(.82); }
.region[data-place="fornalha"] .piece { transform: translate(-60px, 300px) rotate(-7deg) scale(.82); }
.atlas.is-in .region .piece { transform: none; opacity: 1; }
.atlas.is-settled .region .piece { transition-delay: 0s; }
.region-shadow { opacity: .55; transform-box: fill-box; transform-origin: 50% 50%; transition: transform .55s var(--ease-out), opacity .5s; }
.piece-lift { transition: transform .55s var(--ease-out); }
.region-muted-art, .region-art, .region-shadow { pointer-events: none; }
.region-art { transition: opacity .55s var(--ease-soft); }
.territory { fill: transparent; stroke: transparent; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
@media (hover: hover) {
  .atlas.is-settled .region:hover .piece-lift { transform: translateY(-10px); }
  .atlas.is-settled .region:hover .region-shadow { transform: translate(6px, 14px) scale(1.02); opacity: .7; }
}
.realm-map.has-active .region:not(.is-active) .region-art { opacity: 0; }
.realm-map.has-active .region:not(.is-active) .region-shadow { opacity: .25; }
.atlas.is-settled .region.is-active .piece-lift { transform: translateY(-34px); }
.atlas.is-settled .region.is-active .region-shadow { transform: translate(10px, 34px) scale(1.04); opacity: .85; }
.region.pop .piece-lift { animation: piece-pop .5s var(--ease-out); }
@keyframes piece-pop { 0% { transform: translateY(-34px) scale(1); } 40% { transform: translateY(-40px) scale(1.035); } 100% { transform: translateY(-34px) scale(1); } }
.region:focus-visible .territory { stroke: #fff0b5; stroke-width: 2; stroke-dasharray: 5 3; }

.route { pointer-events: none; transition: opacity .5s; }
.route-line { fill: none; stroke: #fff6da; stroke-width: 7; stroke-linecap: round; stroke-dasharray: .1 19; opacity: .95; }
.route-glow { fill: none; stroke: #ffc65c; stroke-width: 12; opacity: .45; }
.route-draw { stroke-dasharray: var(--route-len, 2000); stroke-dashoffset: var(--route-len, 2000); transition: stroke-dashoffset 2.8s 1.6s var(--ease-soft); }
.atlas.is-in .route-draw { stroke-dashoffset: 0; }
.route-stops .stop { fill: #fff3cf; stroke: #8a5a1f; stroke-width: 4; transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform .6s var(--ease-out), opacity .4s; transition-delay: calc(1.8s + var(--i) * .5s); pointer-events: none; }
.atlas.is-in .route-stops .stop { transform: scale(1); }
.route-stops .stop.is-active { fill: var(--gold-hot); }
.realm-map.has-active .route { opacity: .35; }
.realm-map.has-active .stop:not(.is-active) { opacity: .4; }

.place-card { margin: 18px 24px 0; }
.place-card-inner { position: relative; border-left: 1px solid #cbb37e88; padding: 2px 0 2px 18px; min-height: 120px; }
.place-index { display: block; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: #b9a77c; min-height: 1.4em; }
.place-card h3 { font-size: 18px; line-height: 1.45; color: var(--gold); margin-top: 2px; }
.place-card p { margin-top: 8px; font-size: 13.5px; color: #d6d4da; line-height: 1.8; max-width: 44ch; }
.place-card.swap h3, .place-card.swap p, .place-card.swap .place-index { animation: card-swap .6s var(--ease-out); }
@keyframes card-swap { from { opacity: 0; transform: translateY(8px); } }
.place-nav { display: flex; align-items: center; gap: 4px; margin-top: 10px; }
.place-nav button { background: none; border: 0; color: var(--gold); font: 400 12.5px/1.4 var(--story-font); min-height: 44px; cursor: pointer; padding: 8px 10px; }
.place-nav .map-reset { padding: 8px 6px; }
.place-nav button:disabled { color: #8d8c99; cursor: default; }
.place-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; display: block; }
.place-prev, .place-next { display: none; }
.map-next { text-align: center; padding: 0 24px; }
.chapter-link { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 52px; padding: 12px 26px; border: 1px solid #ddcda177; color: var(--gold); font-size: 13.5px; text-decoration: none; border-radius: 2px; position: relative; overflow: hidden; transition: border-color .3s, background-color .3s; }
.chapter-link::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, #fff3c94d 50%, transparent 70%); transform: translateX(-100%); animation: shine 4.5s 2s ease-in-out infinite; }
@keyframes shine { 0%, 60% { transform: translateX(-100%); } 85%, 100% { transform: translateX(100%); } }
.chapter-link:hover { background: #ddcda110; border-color: var(--gold); }

/* mobile: place details become a bottom sheet */
@media (max-width: 799px) {
  .place-card { position: fixed; z-index: 30; left: 10px; right: 10px; bottom: calc(10px + var(--safe-bottom)); margin: 0; transform: translateY(calc(100% + 30px)); transition: transform .55s var(--ease-out); pointer-events: none; }
  .place-card.is-open { transform: none; pointer-events: auto; }
  .place-card-inner { border: 1px solid #e7d2a066; border-radius: 16px; padding: 18px 18px 8px; min-height: 0; background: linear-gradient(160deg, #1b1f55f2, #0d1038f5); box-shadow: 0 18px 50px #02030fcc, inset 0 1px 0 #ffffff14; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
  .place-card p { font-size: 13.5px; max-width: none; }
  .place-nav { justify-content: space-between; margin: 6px -8px 0; border-top: 1px solid #ffffff12; }
  .place-prev, .place-next { display: block; }
  .place-nav .map-reset { flex: 1; text-align: center; }
  .map-section { padding-bottom: 40px; }
}

/* ---------- letter ---------- */
.letter-section { position: relative; z-index: 5; height: calc(var(--letter-travel, 130vh) + var(--letter-stage-height, 100vh)); }
.letter-stage { position: sticky; top: 0; height: var(--letter-stage-height, 100vh); overflow: hidden; perspective: 1400px; perspective-origin: 50% 40%; }
.letter-glow { position: absolute; left: 50%; top: 50%; width: 140vmin; height: 140vmin; transform: translate(-50%, -50%) scale(var(--glow-scale, .6)); background: radial-gradient(closest-side, #f6cf8a3d, #e7a3b71a 45%, transparent 70%); opacity: var(--glow, 0); pointer-events: none; }
.envelope { position: absolute; z-index: 1; left: 50%; top: var(--envelope-top, 10%); width: var(--envelope-width, 340px); aspect-ratio: 947 / 1280; transform: translate3d(-50%, var(--envelope-y, 0px), 0) scale(var(--envelope-scale, 1)); opacity: var(--envelope-opacity, 1); pointer-events: none; transform-style: preserve-3d; }
.env-fore { z-index: 3; }
.envelope-float { position: absolute; inset: 0; transform-style: preserve-3d; animation: float 5.5s ease-in-out infinite; }
.letter-stage.is-open .envelope-float { animation-play-state: paused; }
@keyframes float { 50% { transform: translateY(-8px) rotate(-.6deg); } }
.env { position: absolute; display: block; pointer-events: none; }
.env-body, .env-front { left: 0; top: 0; width: 100%; height: 100%; }
.env-body { filter: drop-shadow(0 24px 30px #02041ab3); }
.env-flapin { left: var(--fi-x); top: var(--fi-y); width: var(--fi-w); height: var(--fi-h); transform-origin: 50% 100%; transform: rotateX(var(--flapin-angle, -90deg)); backface-visibility: hidden; -webkit-backface-visibility: hidden; opacity: var(--flapin-opacity, 0); }
.env-flap { position: absolute; left: var(--fl-x); top: var(--fl-y); width: var(--fl-w); height: var(--fl-h); transform-origin: 50% 0; transform: rotateX(var(--flap-angle, 0deg)); backface-visibility: hidden; -webkit-backface-visibility: hidden; z-index: 4; }
.env-flap img { display: block; width: 100%; height: 100%; filter: drop-shadow(0 4px 5px #3a1f2a40); }
.seal-glow { opacity: var(--seal-glow, 1); position: absolute; left: var(--seal-x); top: var(--seal-y); width: var(--seal-d); height: var(--seal-d); transform: translate(-50%, -50%) scale(var(--seal-scale, 1)); border-radius: 50%; box-shadow: 0 0 0 0 #f6c9d6aa, 0 0 26px 6px #f3b2c955; animation: seal-pulse 2.6s ease-in-out infinite; }
@keyframes seal-pulse { 0%, 100% { box-shadow: 0 0 0 0 #f6c9d680, 0 0 18px 2px #f3b2c933; } 50% { box-shadow: 0 0 0 10px #f6c9d600, 0 0 34px 10px #f3b2c966; } }
.env-front { z-index: 3; }

form.letter-sheet {
  position: absolute; left: 50%; top: var(--sheet-top, 32px); z-index: 2; width: min(calc(100% - 32px), 440px);
  transform: translate3d(-50%, var(--sheet-y, 250px), 0) scale(var(--sheet-scale, .56)); transform-origin: 50% 0;
  clip-path: inset(0 0 var(--sheet-cut, 0px) 0); opacity: var(--sheet-opacity, 0); pointer-events: none;
}
form.letter-sheet.is-ready { pointer-events: auto; }
.letter-stage.sheet-front form.letter-sheet { z-index: 5; }
.letter-open { position: absolute; left: 50%; top: var(--letter-prompt-top, 75%); transform: translateX(-50%); z-index: 6; width: max-content; max-width: calc(100% - 32px); padding: 16px; display: flex; flex-direction: column; align-items: center; gap: 10px; border: 0; color: var(--paper); background: transparent; opacity: var(--letter-prompt-opacity, 1); font: 400 21px/1.3 var(--story-font); cursor: pointer; }
.letter-open-label { font-size: 11.5px; color: var(--gold); letter-spacing: .04em; }
.letter-stage.is-open .letter-open { visibility: hidden; }
.sparkles { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.sparkles i { position: absolute; width: var(--s); height: var(--s); background: url("assets/img/estrela.webp") center / contain no-repeat; opacity: 0; filter: drop-shadow(0 0 6px #ffd98a); }
.sparkles.burst i { animation: spark 1.6s var(--ease-out) var(--delay) both; }
@keyframes spark { 0% { opacity: 0; transform: translate(0, 0) scale(.2) rotate(0); } 25% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1) rotate(90deg); } }

form { padding: clamp(28px, 7vw, 44px); isolation: isolate; color: var(--ink); color-scheme: light; background: radial-gradient(ellipse at 30% 0%, #fffaf0, transparent 60%), linear-gradient(175deg, #f8f1e1, #efe4cb); border-radius: 2px; box-shadow: 0 1px 0 #fff inset, 2px 3px 0 #c4bba4, 4px 6px 0 #e3d5b9, 0 24px 60px #05071a73; }
form::before { content: ""; position: absolute; inset: 8px; border: 1px solid #ab935666; pointer-events: none; }
form::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 100% 100%, #c9a96b22, transparent 50%); }
form header { margin-bottom: 26px; }
form h2 { font-size: clamp(28px, 7.4vw, 38px); line-height: 1.2; letter-spacing: -.035em; }
form header p { margin-top: 16px; font-size: 13.5px; line-height: 1.85; color: #514e53; }
form header p + p { font-size: 12.5px; color: #746044; }
.field { margin-bottom: 16px; position: relative; }
label { display: block; font-size: 12px; margin-bottom: 2px; color: #4a4659; }
input { width: 100%; min-height: 46px; border: 0; border-bottom: 1px solid #a99f8d; border-radius: 0; padding: 7px 0 10px; background: transparent; color: var(--ink); font: inherit; font-size: 16px; line-height: 1.4; transition: border-color .25s, box-shadow .25s; }
input::placeholder { color: #8a837b; opacity: 1; }
input:focus { outline: none; border-color: #49456a; box-shadow: 0 1px #49456a; }
input:user-invalid { border-color: #9b4136; box-shadow: 0 1px #9b4136; }
button.download { margin-top: 10px; width: 100%; min-height: 50px; display: flex; align-items: center; justify-content: center; gap: 12px; border: 1px solid transparent; border-radius: 3px; padding: 10px 12px; background: #212744; color: #fff7e5; font: 400 14.5px/1.4 var(--story-font); cursor: pointer; position: relative; overflow: hidden; transition: background-color .3s ease, color .3s ease, transform .2s ease; }
button.download:enabled::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, #ffffff30 50%, transparent 65%); transform: translateX(-100%); animation: shine 3.5s 1s ease-in-out infinite; }
button.download:enabled:active { transform: scale(.98); }
button.download svg { width: 18px; height: 18px; }
button.download:disabled { background: #dad3c2; color: #676158; border-color: #c9bfab; cursor: default; }
@media (hover: hover) { button.download:enabled:hover { background: #383e60; } }
:focus-visible { outline: 2px solid #cfb679; outline-offset: 5px; }
#form-title:focus { outline: none; }
.status { font-size: 12.5px; line-height: 1.6; margin-top: 12px; color: #514e53; }
.status:empty { display: none; }
.noscript { padding: 24px; text-align: center; }

/* ---------- larger screens ---------- */
@media (min-width: 900px) and (min-height: 560px) {
  .story-copy { left: 6%; right: auto; top: 50%; width: 30%; max-width: 440px; transform: translateY(-50%); font-size: clamp(16px, 1.3vw, 20px); }
  .opening { width: min(calc(100% - 52px), 800px); }
  .story-progress { display: block; right: 22px; }
}
@media (min-width: 800px) {
  .map-section { grid-template-columns: 1fr 1fr; align-items: start; column-gap: 64px; padding: 96px 32px 90px; }
  .map-introduction { padding: 70px 0 0; }
  .map-introduction > p { font-size: 17px; }
  .atlas { grid-column: 2; grid-row: 1 / span 2; }
  .map-next { grid-column: 1; text-align: left; align-self: end; padding: 0 0 70px; }
  .place-card { margin: 18px 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .w { opacity: 1; transform: none; }
}
