:root{--ink:#49303b;--plum:#693c55;--coral:#ed6b6e;--salmon:#ff8470;--orange:#ee954c;--sun:#ffd876;--cream:#fff8ed;--ivory:#fffdf8;--rose:#ffe6d9;--border:#f3d7c6;--shadow:0 20px 60px rgba(118,55,46,.14)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--cream);color:var(--ink);font:15px/1.6 'DM Sans',sans-serif}button,input,textarea{font:inherit}button{cursor:pointer}a{color:inherit}.shell{max-width:1120px;padding:0 24px;margin:0 auto}.top-strip{position:relative;text-align:center;background:#743d57;color:#ffe8cf;padding:7px 12px;font:500 12px 'DM Sans',sans-serif;z-index:2}.hero{position:relative;isolation:isolate;overflow:hidden;min-height:458px;background:radial-gradient(ellipse at 88% 65%,#ffe39a 0%,#ffba6e 26%,transparent 63%),linear-gradient(163deg,#ed6876 0%,#f77b65 34%,#f6a36a 63%,#ffdb8a 100%)}.hero-bg-sun{position:absolute;z-index:-1;right:-80px;bottom:-85px;width:450px;height:450px;border-radius:50%;background:radial-gradient(circle at 50% 50%,#fff8c0,#ffe182 72%,#ffe59d 90%);box-shadow:0 0 85px 25px #fff0a299}.hero-horizon{position:absolute;bottom:0;left:0;right:0;height:19px;background:linear-gradient(90deg,#e88d6c88,#fce2b0aa,#e58a73aa);opacity:.6}.birds{position:absolute;right:8%;top:80px;color:#944b53;opacity:.32;font-size:38px;transform:rotate(12deg)}.hero-grid{position:relative;display:grid;grid-template-columns:1.55fr .8fr;gap:38px;align-items:center;min-height:458px;padding-top:45px;padding-bottom:34px}.eyebrow{letter-spacing:.18em;font-size:11px;color:#fff5df;font-weight:800}.eyebrow-dark{color:#c27a5a}.mini-book{color:#fff4b0}.hero h1,h2{font-family:'Fredoka',sans-serif;font-weight:600;letter-spacing:-.035em}.hero h1{font-size:clamp(46px,5.8vw,75px);line-height:.98;margin:16px 0 21px;color:#fff7ee;text-shadow:0 3px 0 #d8666140}.hero h1 em{font-style:normal;color:#ffe28e}.subheading{color:#fffcef;font:500 clamp(17px,2vw,22px)/1.3 'Fredoka',sans-serif;margin:0 0 14px}.hero-small{max-width:535px;line-height:1.65;color:#fff6e9;font-size:14px;margin:0 0 23px}.hero-actions{display:flex;gap:10px;flex-wrap:wrap}.btn{border:0;border-radius:50px;padding:13px 22px;display:inline-flex;align-items:center;justify-content:center;text-align:center;gap:7px;text-decoration:none;font-weight:800;font-size:14px;transition:transform .15s,box-shadow .15s}.btn:hover{transform:translateY(-2px)}.btn:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #553e97;outline-offset:2px}.btn-primary{background:#71415a;color:white;box-shadow:0 6px 0 #5a3348}.btn-light{background:#fff3e8;color:#994e58;box-shadow:0 4px 20px #90344526}.hero-art{position:relative;min-height:320px;display:flex;align-items:center;justify-content:center}.cover-glow{position:absolute;width:260px;height:260px;border-radius:50%;background:#fff9d47e;filter:blur(22px)}.book-cover{position:relative;width:220px;max-width:75%;border:5px solid #fcbd8a;border-radius:9px;box-shadow:16px 18px 0 #993e5960,0 24px 65px #8b425977;transform:rotate(8deg);object-fit:cover;aspect-ratio:1/1.04}.art-note{position:absolute;right:0;bottom:25px;color:#fffaf0;text-align:center;font:500 20px/1.1 'Fredoka',sans-serif;transform:rotate(-8deg);text-shadow:0 2px 12px #a8505b}
.map-section{padding-top:58px}.section-header{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:24px}.section-header h2{font-size:clamp(27px,3.4vw,39px);line-height:1.13;margin:8px 0 9px}.section-header h2 span{color:#f18f5a}.section-header p{color:#8b6571;margin:0}.counter{flex-shrink:0;min-width:146px;text-align:center;background:#fff1dc;border:1px solid #f6d7ac;border-radius:20px;padding:16px 20px}.counter span{display:block;font:700 41px/1.1 'Fredoka';color:#d86860}.counter small{display:block;color:#956974;font-weight:700;font-size:12px}.demo-banner{padding:12px 16px;border:1px solid #f5ca95;border-radius:12px;margin-bottom:16px;background:#fff4df;color:#85556b;font-size:13px}.demo-banner span{font-weight:800}.map-wrap{border:6px solid #fff;border-radius:22px;background:#fff;overflow:hidden;box-shadow:var(--shadow);position:relative}.map-controls{min-height:48px;padding:9px 14px;display:flex;align-items:center;justify-content:space-between}.map-legend{display:inline-flex;gap:7px;align-items:center;color:#855c68;font-weight:700;font-size:12px}.tiny-btn{border:1px solid #f0d8c8;background:#fff7f0;border-radius:25px;color:#855668;padding:5px 11px;font-size:12px;font-weight:700}#map{height:480px;background:#e6d5b9;z-index:0}#map .leaflet-tile-pane{filter:sepia(.36) saturate(.83) hue-rotate(-14deg)}.map-bottom{padding:12px 16px;display:flex;align-items:center;justify-content:space-between;gap:12px;color:#8b6670;font-size:12px}.btn-small{background:#f27e62;color:#fff;padding:10px 16px;font-size:12px}.map-credit{font-size:11px;color:#aa8791;text-align:right}.book-marker{background:transparent;border:0;overflow:visible!important}.pin-book{position:relative;display:block;width:44px;height:49px;margin:2px 0 0 6px;transform:rotate(-7deg);transition:transform .18s ease,filter .18s ease;filter:drop-shadow(0 6px 5px #77374980)}.pin-book::before{content:"";position:absolute;z-index:-1;bottom:-9px;left:16px;width:17px;height:17px;transform:rotate(45deg);background:#f5b16f;border:2px solid #fff6e6;border-radius:2px;box-shadow:1px 2px 5px #71365050}.pin-book::after{content:"";position:absolute;z-index:3;inset:-4px -4px -4px -4px;border:1.6px solid #ffefa9;border-radius:5px;pointer-events:none}.pin-book img{position:relative;display:block;width:44px;height:49px;object-fit:cover;border:2px solid #fff8df;border-radius:3px 5px 5px 3px;box-shadow:2px 2px 0 #804657,0 0 0 2px #f1a96d;background:#f88869}.pin-book-edge{position:absolute;left:-5px;top:2px;bottom:2px;width:6px;border-radius:3px 0 0 3px;background:linear-gradient(#b04959,#ef8f70,#93425d);box-shadow:-1px 2px 2px #80395855}.book-marker:hover .pin-book,.book-marker:focus .pin-book{transform:rotate(0deg) scale(1.28);filter:drop-shadow(0 9px 9px #77374980);z-index:20}.map-legend .mini-cover{width:17px;height:21px;object-fit:cover;border:1px solid white;border-radius:2px;box-shadow:1px 2px 4px #71365066;transform:rotate(-9deg);margin-right:3px}.selected-pin{display:grid;place-items:center;font-size:24px;background:#fff9e0;border:3px solid #e47170;border-radius:50%;width:32px;height:32px;box-shadow:0 4px 12px #ac657466}.popup-card{min-width:190px;max-width:260px;font-family:'DM Sans',sans-serif}.popup-card img{display:block;width:100%;max-height:175px;object-fit:cover;border-radius:9px;margin-bottom:8px}.popup-card strong{display:block;color:#773d55;font:600 17px 'Fredoka',sans-serif}.popup-card small{color:#ac786c;font-weight:800}.popup-card p{white-space:pre-wrap;margin:6px 0 0;color:#674b56;overflow-wrap:anywhere}.leaflet-popup-content-wrapper{border-radius:14px}.leaflet-control-attribution{font-size:9px!important}.stories-section{padding-top:54px;padding-bottom:56px}.section-header.compact{margin-bottom:19px}.stories-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.story-card{background:#fffdf8;border:1px solid #f2d6c4;box-shadow:0 4px 24px #8d536114;border-radius:20px;padding:16px;display:flex;flex-direction:column;gap:10px}.story-image{aspect-ratio:1.6;background:linear-gradient(130deg,#ed8991,#ffd486);border-radius:13px;object-fit:cover;width:100%}.story-placeholder{display:grid;place-items:center;color:#fff8dc;font-size:50px}.story-city{color:#cf746c;letter-spacing:.08em;font-size:11px;font-weight:800;text-transform:uppercase}.story-name{margin:0;font:600 21px 'Fredoka',sans-serif;color:#734657}.story-message{margin:0;color:#785b66;font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere}.story-demo{color:#ad858b;font-size:10px;font-weight:800;letter-spacing:.07em}.empty-state{padding:55px 20px;text-align:center;background:#fff9f0;border:2px dashed #efcdb4;color:#935a5b;border-radius:22px}.callout{margin-bottom:60px;display:grid;grid-template-columns:1.4fr .65fr;gap:55px;background:linear-gradient(120deg,#ffdaaa,#fff0d8);padding:40px 45px;border:1px solid #f4d0a6;border-radius:26px}.callout h2{font-size:34px;line-height:1.08;margin:4px 0 14px}.callout p{max-width:540px;color:#8a6068}.callout-star{font-size:36px;color:#e4746a}.sharing{align-self:center;border-left:1px solid #e8bdad;padding-left:32px}.sharing span{font:600 21px/1.2 'Fredoka';color:#824f5b;display:block;margin-bottom:16px}.btn-outline{border:2px solid #834b60;background:#fffaf4;color:#754458}.sharing p{font-size:12px}footer{text-align:center;background:#75435b;color:#fff0e3;padding:22px;font-size:12px}footer span{color:#ffe28d}.backdrop{position:fixed;inset:0;background:#402938b8;z-index:1400}.modal{position:fixed;right:0;top:0;bottom:0;z-index:1401;max-width:480px;width:100%;background:#fffaf4;overflow:auto;padding:30px 28px;box-shadow:-15px 0 70px #39213955}.modal-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.modal-head h2{font-size:27px;line-height:1.05;margin:6px 0 0}.close-button{font-size:28px;line-height:1;width:36px;height:36px;border:0;background:#f5dfd0;color:#6e4452;border-radius:50%}.modal-intro{color:#8f7176;font-size:13px;margin:14px 0 19px}.modal form{display:flex;flex-direction:column}.modal form>label:not(.check-row):not(.upload-area){color:#6e4555;font-weight:800;font-size:13px;margin-bottom:7px;margin-top:15px}.optional{font-weight:500;color:#ac8590}.modal input:not([type=checkbox]):not([type=file]),.modal textarea{width:100%;border:1px solid #e6cabb;border-radius:12px;background:#fff;padding:12px 13px;color:#5f3d4b;outline:none}.modal textarea{resize:vertical}.modal input:focus,.modal textarea:focus{border-color:#ec8d73}.search-row{display:flex;gap:8px}.search-row input{min-width:0;flex:1}.btn-search{background:#73465c;color:#fff;border-radius:12px;padding:11px 13px;font-size:12px}.hint{font-size:11px;color:#9d7c85;margin-top:6px}.search-results{max-height:170px;overflow:auto;border:1px solid #efd6c5;background:#fff;border-radius:12px;margin-top:8px}.result-button{border:0;width:100%;background:transparent;padding:11px 12px;text-align:left;border-bottom:1px solid #f8ebe3;color:#674650;font-size:12px}.result-button:hover{background:#fff0e4}.selected-place{display:flex;justify-content:space-between;align-items:center;margin-top:9px;background:#fef0da;color:#995b58;font-size:12px;padding:9px 12px;border-radius:9px;font-weight:700}.selected-place button{border:0;background:transparent;color:#9e5e62;font-size:18px}.char-count{text-align:right;color:#ac8793;font-size:11px}.upload-area{display:flex;gap:12px;align-items:center;border:2px dashed #ebbeaa;background:#fff4eb;border-radius:12px;padding:16px;cursor:pointer;color:#7c4d5b;font-size:13px}.upload-area>span:first-child{font-size:26px}.upload-area small{display:block;color:#a77d84;font-size:11px}.file-input{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden}.check-row{display:flex;align-items:flex-start;gap:9px;margin-top:19px;font-size:11px;line-height:1.5;color:#886674}.check-row input{margin-top:3px;accent-color:#d46f64;flex-shrink:0}.btn-submit{margin-top:17px;background:#f17e62;color:#fff;width:100%;border-radius:12px;font-size:14px}.btn:disabled{opacity:.6;cursor:wait}.privacy-note{text-align:center;font-size:11px;color:#a2838b}.form-message{font-size:13px;margin-top:10px;color:#ab4951}.form-message.success{color:#44816b}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:1600;background:#70445d;color:white;padding:13px 22px;border-radius:20px;box-shadow:0 8px 25px #4633445e;font-size:13px;max-width:94vw;text-align:center}
@media(max-width:800px){.hero-grid{grid-template-columns:1fr .5fr;gap:10px}.book-cover{width:160px}.art-note{font-size:16px;right:-10px}.hero h1{font-size:52px}.stories-grid{grid-template-columns:repeat(2,1fr)}.callout{grid-template-columns:1fr;gap:25px}.sharing{border-left:0;border-top:1px solid #e8bdad;padding-left:0;padding-top:20px}}
@media(max-width:590px){.shell{padding-left:17px;padding-right:17px}.top-strip{font-size:10px}.hero{min-height:auto}.hero-grid{min-height:unset;grid-template-columns:1fr;padding-top:43px;padding-bottom:35px}.hero h1{font-size:53px}.hero-art{min-height:0;position:absolute;right:0;top:32px;width:125px;opacity:.32;pointer-events:none}.book-cover{width:120px}.art-note{display:none}.hero-copy{position:relative;z-index:1}.hero-small{max-width:470px}.hero-actions{gap:7px}.hero-actions .btn{font-size:12px;padding:12px 15px}.section-header{align-items:flex-start;gap:10px}.section-header h2{font-size:29px}.section-header p{font-size:13px}.counter{min-width:83px;padding:12px 7px;border-radius:14px}.counter span{font-size:31px}.counter small{font-size:10px}#map{height:420px}.map-bottom{align-items:flex-start;flex-direction:column}.stories-grid{grid-template-columns:1fr}.callout{margin-left:17px;margin-right:17px;padding:25px 24px}.callout h2{font-size:30px}.modal{padding:25px 20px}.modal-head h2{font-size:25px}.search-row{gap:5px}.btn-search{padding:10px}.modal .search-row input{font-size:12px}.hero-bg-sun{right:-200px;bottom:-50px}.map-section{padding-top:40px}}

/* PALETA CAPA DO LIVRO — ROSA E DOURADO TORRADO */
:root{
  --ink:#583244;--plum:#703956;--coral:#d96076;--salmon:#e87580;
  --orange:#be713c;--sun:#d6a050;--cream:#fff5e7;--ivory:#fff9ef;
  --rose:#f6d0d0;--border:#ebcbb5;--shadow:0 20px 60px rgba(116,50,64,.16);
}
body{background:#fff5e8}
.top-strip{background:#763b57;color:#ffe5c5}
.hero{
  background:radial-gradient(ellipse at 84% 62%,rgba(245,186,99,.8) 0%,rgba(212,141,83,.55) 24%,transparent 62%),
    linear-gradient(150deg,#d65e7b 0%,#e56b78 31%,#d98267 58%,#d89c54 83%,#efc27b 100%);
}
.hero-bg-sun{
  background:radial-gradient(circle at 50% 42%,#ffe7a7 0%,#efbf70 62%,#d9954e 95%);
  box-shadow:0 0 90px 25px rgba(245,183,98,.48);
}
.hero-horizon{background:linear-gradient(90deg,#ad466d77,#b86f6488,#e5ad6a88)}
.hero h1 em,.mini-book,footer span{color:#eac179}
.hero h1{color:#fff4e6;text-shadow:0 3px 0 #7d3e5c4d}
.btn-primary{background:#753a58;box-shadow:0 6px 0 #582b43}
.btn-light{background:#fff0d5;color:#84455c}
.book-cover{border-color:#e6b86e;box-shadow:16px 18px 0 #8b3f5c55,0 24px 65px #73395270}
.eyebrow-dark{color:#b76b57}
.section-header h2 span,.callout-star{color:#cd6e72}
.section-header p{color:#8e626e}
.counter{background:#f9e2c0;border-color:#e6bc8b}
.counter span{color:#b9556b}
.counter small{color:#8e5666}
.demo-banner{background:#fbe9ce;border-color:#eac38c;color:#874e62}
.map-wrap{background:#fffaf2}
.map-legend{color:#75475c}
.tiny-btn{background:#fff0dc;border-color:#e8c49f;color:#844f61}
#map{background:#eed0b9}
#map .leaflet-tile-pane{filter:sepia(.55) saturate(.95) hue-rotate(-23deg)}
.map-bottom{color:#8e5c69}
.btn-small{background:#c9666c}
.pin-book::before{background:#d19a58}
.pin-book::after{border-color:#f7dfaa}
.pin-book img{box-shadow:2px 2px 0 #804657,0 0 0 2px #c76b69}
.story-card{border-color:#efd0bd;background:#fffaf3}
.story-image{background:linear-gradient(130deg,#d87284,#ddb26f)}
.story-city{color:#b85b68}
.callout{background:linear-gradient(120deg,#f0cad0,#f4d29f);border-color:#e6b6aa}
.callout p{color:#744a5b}
footer{background:#753b57}
.modal{background:#fff6ec}
.modal input:focus,.modal textarea:focus{border-color:#cd7280}

/* EDIÇÃO 3 — ROSA DA MANTA + CÉU E MAR DO LIVRO */
:root{
 --ink:#593043; --plum:#8c3553; --coral:#db4b65; --salmon:#e75a73;
 --orange:#bf6b45; --sun:#d9a55b; --cream:#fff4ed; --ivory:#fffaf6;
 --rose:#ffd8dd; --border:#efbfc4; --shadow:0 20px 60px rgba(113,39,64,.17);
}
body{background:#fff3ef}
.top-strip{background:#a83556;color:#fff3ed}
.hero{
 background-image:
   linear-gradient(90deg, rgba(112,24,60,.62) 0%,rgba(150,34,72,.48) 38%,rgba(139,29,60,.17) 65%,rgba(103,19,45,.05) 100%),
   url('assets/por-do-sol-mar.jpg');
 background-size:cover;
 background-position:center 74%;
}
.hero-bg-sun{display:none}
.hero-horizon{height:6px;opacity:.6;background:linear-gradient(90deg,#c63459,#f7c07d,#ed8c88)}
.birds{color:#fff1db;opacity:.45}
.hero h1{color:#fff5ef;text-shadow:0 3px 17px rgba(89,13,51,.4)}
.hero h1 em{color:#ffe1ae}
.eyebrow{color:#fff0e7}
.subheading{color:#fff9f1;text-shadow:0 2px 8px rgba(98,26,47,.3)}
.hero-small{color:#fff8f2;text-shadow:0 2px 9px rgba(89,13,51,.3)}
.btn-primary,.btn-small,.btn-submit{background:#ca3f60;color:#fffaf9;box-shadow:0 5px 0 #982c49}
.btn-primary:hover,.btn-small:hover,.btn-submit:hover{background:#b52e50}
.btn-light{background:#ffe6e9;color:#9b3255;box-shadow:0 4px 20px rgba(96,25,56,.15)}
.btn-outline{border-color:#b9405e;color:#a83354;background:#ffe6e8}
.btn-search{background:#bd3d5e;color:#fff9f7}
.tiny-btn{background:#ffe7e9;color:#a23a57;border-color:#ebadba}
.book-cover{border-color:#ffc5ac;box-shadow:16px 18px 0 rgba(134,36,69,.45),0 24px 65px rgba(83,25,53,.5)}
.cover-glow{background:rgba(255,222,173,.7)}
.hero .art-note{color:#fff8ec}
.eyebrow-dark{color:#b4405c}
.section-header h2 span,.callout-star{color:#cc3f61}
.counter{background:#ffe2e5;border-color:#efaeb9}
.counter span{color:#c83c5a}
.counter small{color:#9c4b63}
.demo-banner{background:#ffe4e6;border-color:#ecb4b8;color:#893b52}
.map-wrap{border-color:#fffcfa}
#map{background:#f8d8d2}
#map .leaflet-tile-pane{filter:sepia(.4) saturate(1.25) hue-rotate(300deg)}
.map-legend{color:#9b4160}
.map-bottom{color:#985b69}
.pin-book::before{background:#ea8e90}
.pin-book::after{border-color:#ffe5df}
.pin-book img{box-shadow:2px 2px 0 #9b3d5c,0 0 0 2px #d64e6a}
.story-card{border-color:#f1c4c7;background:#fffaf8}
.story-image{background:linear-gradient(130deg,#d54b6b,#f2ad78)}
.story-city{color:#c83d5b}
.story-name{color:#873c59}
.callout{background:linear-gradient(115deg,#f6b4c4 0%,#f9d4d2 54%,#f3cf9e 100%);border-color:#eca9bc}
.callout p{color:#794356}
footer{background:#a73958}
.modal{background:#fff8f6}
.modal .modal-head h2{color:#8f3551}
.modal input:focus,.modal textarea:focus{border-color:#cc4360}
.modal .check-row input{accent-color:#c6405f}
.upload-area{background:#ffecef;border-color:#e8a3b5}
.selected-place{background:#ffe3e8;color:#9d3654}
.selected-place button{color:#a43454}
.btn:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible{outline-color:#7b295b}
@media(max-width:800px){
 .hero{background-position:56% 70%}
}
@media(max-width:590px){
 .hero{background-position:53% 72%;}
 .hero::after{content:'';position:absolute;bottom:0;left:0;right:0;height:95px;background:linear-gradient(0deg,rgba(131,39,62,.25),transparent);pointer-events:none;z-index:-1}
 .hero-actions .btn{box-shadow:0 3px 0 #982c49}
 .hero .hero-art{opacity:.52;top:28px;right:-13px}
}

/* EDIÇÃO 4 — DEGRADÉ DOURADO TORRADO + ASTERISCOS */
:root{
  --rosa-manta:#ca3f60;
  --rosa-mapamundi:#d65371;
  --rosa-suave:#f6b4c4;
  --amarelo-torrado:#d79d56;
  --dourado-por-do-sol:#e9b873;
  --creme-quente:#fff1d9;
}
/* O cabeçalho preserva o pôr do sol e mar já aprovados. */
main{background:linear-gradient(180deg,#fff3ef 0%,#ffe9e3 29%,#fce2bb 56%,#e9b879 100%)}
.map-section{padding-bottom:15px}
.stories-section{
  background:linear-gradient(135deg,rgba(255,242,223,.76),rgba(240,188,116,.26));
  border:1px solid rgba(196,119,83,.14);
  border-radius:28px;
  margin-top:24px;
  margin-bottom:32px;
  padding:32px 24px 40px;
}
.stories-section .eyebrow-dark{color:#a84e63}
.stories-section .story-card{background:#fff9f1;border-color:#efc2b8}
.callout{
  background:linear-gradient(120deg,#f2a9b9 0%,#f2c49e 41%,#dca25a 100%);
  border-color:#e3ad7d;
  box-shadow:0 14px 45px rgba(129,66,51,.1);
}
.callout .sharing{border-left-color:rgba(149,65,70,.26)}
.section-header h2 span,.callout-star,.mini-book{font-family:Arial,sans-serif;font-weight:700;line-height:1;color:var(--rosa-manta)}
.callout-star{font-size:35px}
@media(max-width:590px){
  .stories-section{margin-left:17px;margin-right:17px;padding:28px 18px 34px;border-radius:22px}
  main{background:linear-gradient(180deg,#fff3ef 0%,#ffe9e3 26%,#f9daae 62%,#e8b576 100%)}
}

/* EDIÇÃO 5 — CARTOGRAFIA COM PROPORÇÕES NATURAIS / EQUAL EARTH */
#map{display:none}
.map-controls{gap:10px;flex-wrap:wrap;background:#fffbf8}
.map-toolbar{display:flex;gap:7px;align-items:center;justify-content:flex-end;flex-wrap:wrap}
.zoom-btn{font:700 20px/1 'Fredoka',sans-serif;min-width:34px;min-height:32px;padding:3px 10px}
.map-scroll{overflow:auto;overscroll-behavior-inline:contain;background:#f9c8b9;scrollbar-color:#d88c94 #ffe2d0;scrollbar-width:thin}
#map-stage{position:relative;isolation:isolate;width:100%;aspect-ratio:1280/620;overflow:hidden;
 background:linear-gradient(180deg,rgba(244,141,153,.57) 0%,rgba(245,155,137,.28) 49%,rgba(233,174,116,.42) 100%),url('assets/por-do-sol-mar.jpg') center 76%/cover no-repeat;background-color:#e9a5a5}
#map-stage::after{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,rgba(255,233,222,.15),transparent 62%,rgba(228,140,78,.12));z-index:0}
#world-svg{display:block;width:100%;height:100%;position:relative;z-index:1;touch-action:pan-y;cursor:crosshair;user-select:none;-webkit-user-select:none}
#world-svg.is-dragging{cursor:grabbing;touch-action:none}
#world-svg .countries path{fill:url(#continent-fill);stroke:#ffe0c1;stroke-width:1.15;vector-effect:non-scaling-stroke;stroke-linejoin:round}
#world-svg .gridlines path{fill:none;stroke:#fff2df;stroke-width:1.25;stroke-opacity:.42;stroke-linecap:round}
#world-svg .map-pin{cursor:pointer;outline:none}
#world-svg .map-pin .pin-visual{filter:drop-shadow(0px 5px 4px rgba(89,24,51,.6));transition:filter .2s ease}
#world-svg .map-pin:hover .pin-visual,#world-svg .map-pin:focus-visible .pin-visual{filter:drop-shadow(0 8px 6px rgba(89,24,51,.8))}
#world-svg .map-pin:hover .pin-scale,#world-svg .map-pin:focus-visible .pin-scale{transform:scale(1.14)}
#world-svg .map-pin .pin-scale{transition:transform .18s;transform-origin:0 -26px}
#world-svg .temp-pin{pointer-events:none}
.map-bottom{background:#fffaf6}
.story-popup{position:absolute;z-index:5;top:16px;left:16px;width:min(315px,calc(100% - 24px));max-height:calc(100% - 22px);overflow:auto;background:#fffaf6;border:2px solid #efc3bf;border-radius:17px;box-shadow:0 14px 35px rgba(97,31,54,.28);padding:15px;color:#68394c}
.story-popup[hidden]{display:none}
.close-popup{position:absolute;right:9px;top:8px;background:#ffebee;color:#a52f52;border:0;border-radius:99px;width:28px;height:28px;font:700 22px/1 sans-serif;z-index:6}
.popup-top{display:flex;gap:10px;align-items:flex-start;padding-right:18px}
.popup-cover{width:46px;height:57px;object-fit:cover;border-radius:4px;box-shadow:3px 4px 0 rgba(153,45,74,.3);flex-shrink:0}
.popup-title{font:600 18px/1.2 'Fredoka',sans-serif;color:#7e3652;margin:0 0 4px}
.popup-location{font-size:12px;color:#b3455d;font-weight:700}
.popup-photo{display:block;width:100%;max-height:145px;object-fit:cover;margin:12px 0 8px;border-radius:10px}
.popup-message{font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5;margin:9px 0 0}
.story-card{min-height:240px}
.story-card .story-see{border:0;background:#ffe6e8;color:#a23858;font-weight:800;border-radius:40px;padding:7px 12px;font-size:11px;align-self:flex-start;margin-top:auto}
.stories-more{text-align:center;margin-top:22px}
.photo-preview{display:flex;align-items:center;gap:12px;margin-top:9px;padding:9px;background:#fff1e8;border-radius:12px}
.photo-preview[hidden]{display:none}
.photo-preview img{width:65px;height:65px;object-fit:cover;border-radius:9px}
#entry-modal[hidden],#modal-backdrop[hidden],#toast[hidden]{display:none}
@media(max-width:730px){
 .map-scroll{scroll-snap-type:x proximity}
 #map-stage{width:max(810px,100%);min-width:810px}
 .map-bottom{font-size:12px}
 .map-legend{font-size:11px}
 .refresh-label{display:none}
 .story-popup{position:sticky;left:20px;max-width:280px}
}
@media(max-width:490px){
 .map-wrap{border-width:4px;border-radius:19px}
 .map-toolbar{gap:4px}
 .map-controls{padding:9px 8px}
 .tiny-btn{font-size:11px;padding:5px 9px}
 .zoom-btn{font-size:19px}
 .map-bottom{padding:13px 9px}
 .map-credit{line-height:1.4}
}
/* Ajustes finais da interação e da leitura em ecrãs pequenos */
#world-svg{touch-action:auto}
@media(max-width:730px){.story-popup{position:absolute}}
#map-stage .gridlines{pointer-events:none}
.map-pin:focus-visible{outline:none}
.map-pin:focus-visible .pin-visual rect:first-child{stroke:#fff5ce;stroke-width:5}

/* EDIÇÃO 6 — A AUTORA; continuação rosa + dourado torrado */
.author-section{position:relative;padding:12px 0 64px;isolation:isolate}
.author-panel{display:grid;grid-template-columns:minmax(305px,.96fr) minmax(0,1.04fr);gap:clamp(22px,3.7vw,46px);align-items:center;padding:clamp(21px,3.5vw,45px);border:1px solid #eab7b4;border-radius:30px;background:linear-gradient(140deg,#fffaf6 0%,#fff6ef 62%,#fff0df 100%);box-shadow:0 20px 50px rgba(138,58,74,.10);overflow:hidden}
.author-portrait-wrap{position:relative;align-self:stretch;display:flex;align-items:end;justify-content:center;min-height:560px}
.author-portrait-frame{position:relative;z-index:1;display:flex;align-items:flex-end;justify-content:center;overflow:hidden;width:min(100%,455px);height:100%;min-height:560px;border-radius:190px 190px 25px 25px;background:#fff;box-shadow:0 0 0 9px #dda046,0 12px 40px rgba(166,50,82,.13);}
.author-portrait-frame::after{content:'';position:absolute;inset:auto 0 0;height:16px;background:linear-gradient(90deg,#ca3f60,#e9b873);opacity:.48}
.author-portrait{display:block;width:100%;height:100%;object-fit:cover;object-position:center center}
.author-sparkle{position:absolute;color:#c93c60;z-index:2;font-weight:700;line-height:1;text-shadow:0 4px 18px #ffffffb2}
.author-sparkle-one{font-size:49px;top:7%;left:1%}.author-sparkle-two{font-size:34px;top:18%;right:-5%;color:#e18e40}
.author-photo-note{position:absolute;z-index:3;bottom:20px;right:-7px;transform:rotate(-4deg);background:#ca3f60;color:#fff8f2;border-radius:100px;padding:9px 16px;font:600 13px 'Fredoka',sans-serif;box-shadow:0 5px 0 #a13050;white-space:nowrap}
.author-photo-note span{color:#ffe7a9;margin:0 4px}
.author-copy .eyebrow{font-size:11px;letter-spacing:.19em}
.author-copy h2{font-size:clamp(37px,4vw,51px);line-height:1.04;color:#68374f;margin:12px 0 22px}
.author-copy h2 em{font-style:normal;color:#c94266}
.author-copy p{font-size:clamp(12.8px,1.2vw,14px);line-height:1.72;color:#6c4a56;margin:0 0 13px;text-wrap:pretty}
.author-copy p.author-intro{font-weight:700;color:#a63d58;font-size:16px;line-height:1.48;margin-bottom:17px}
.author-signature{margin-top:23px;font:500 16px/1.25 'Fredoka',sans-serif;color:#8e4e64}
.author-signature strong{font-size:23px;color:#c53b60}
.author-signature-intro{display:block;margin-bottom:7px;color:#8e4e64}.author-signature-name{display:block}.author-signature-name span{font-size:20px;color:#d89a51}
@media(max-width:900px){.author-panel{grid-template-columns:minmax(220px,.75fr) minmax(0,1.25fr);gap:27px;padding:27px}.author-portrait-wrap{min-height:450px}.author-portrait-frame{min-height:435px}.author-portrait{object-position:center bottom}}
@media(max-width:690px){.author-section{padding:4px 0 39px}.author-panel{grid-template-columns:1fr;gap:25px;padding:24px 20px 27px;border-radius:24px}.author-portrait-wrap{min-height:0;height:390px;width:min(325px,90%);margin:0 auto}.author-portrait-frame{min-height:0;border-radius:170px 170px 23px 23px}.author-photo-note{right:-15px;bottom:14px}.author-sparkle-one{left:-12px}.author-sparkle-two{right:-12px}.author-copy h2{font-size:38px;margin-top:9px;margin-bottom:17px}.author-copy p{font-size:13.3px;line-height:1.72}.author-copy p.author-intro{font-size:15px}}

.hero-author-link{display:inline-flex;align-items:center;gap:5px;margin-top:19px;color:#fff9ef;text-decoration:none;font-size:13px;font-weight:700;text-shadow:0 2px 8px #903356}
.hero-author-link:hover{text-decoration:underline;text-underline-offset:4px}
.author-portrait-wrap{max-height:675px;align-self:center}

/* Ajuste final da assinatura: nome na linha inferior */
.author-signature-name strong{color:#c53b60}

/* Fotografia dentro do arco: mobile conserva enquadramento aprovado;
   desktop aproxima a autora sem aumentar nem deformar o arco. */
.author-portrait{
  transform:scale(1.26);
  transform-origin:50% 0;
}
/* O enquadramento 1.26 reproduz exatamente a referência aprovada
   em computador e mantém a configuração móvel. */
