.map-page{--papu-head:88px;background:#f0eaf8}
.map-app{height:100svh;height:100dvh;min-height:460px;display:grid;grid-template-columns:340px minmax(0,1fr)}
.map-sidebar{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:24px;padding:28px 30px;background:#fff7e5;z-index:4}
.map-home{position:absolute;top:20px;left:26px;display:flex;align-items:center;gap:10px;font-weight:900;font-size:20px;min-height:44px}
.map-home b{color:var(--pink)}
.map-book{position:relative;width:100%;height:clamp(160px,35vh,340px);margin-top:45px;display:grid;place-items:center}
.map-page .book-hideout{position:relative;left:auto;top:auto;transform:rotate(-5deg);width:min(62%,24vh);margin-left:22px}
.map-copy{max-width:285px;text-align:center}
.map-copy h1{font-size:38px;font-weight:1000;letter-spacing:-1.4px;line-height:1.05;margin:0 0 14px;color:#3c2758}
.map-copy h1 span{color:var(--pink-dark)}
.map-copy p{font-size:16px;line-height:1.5;margin:0;color:#63506d;text-wrap:pretty}
.map-legal{display:flex;gap:18px;font-size:11px;margin-top:0;color:#7c6c83}
.map-legal button{min-height:30px}
.map-arena{min-width:0;min-height:0;display:flex;padding:0}
.map-table{position:relative;width:100%;height:100%;min-height:0;isolation:isolate;background:#d9c1d5;background-image:repeating-linear-gradient(92deg,transparent 0,transparent 220px,#b694b11a 221px,#b694b11a 223px,transparent 224px)}
.map-paper{position:absolute;inset:116px 28px 24px 4px;z-index:3}
.map-table[data-view=form] .map-paper{opacity:0;pointer-events:none}
/* Scene motion is separate from the playful hide-on-tap transform. Both ghost
   layers inherit the same progress, so the hands stay attached to the body. */
.map-table .peek img{translate:calc(var(--hide-x) * (1 - var(--scene-peek,1))) calc(var(--hide-y) * (1 - var(--scene-peek,1)));opacity:var(--scene-peek,1);transition:transform .22s cubic-bezier(.2,.8,.2,1)}
.map-table .peek.is-hiding img{opacity:0}
.map-table .sleep-z{opacity:var(--scene-peek,1);transition:none}
.map-table .peek.is-hiding .sleep-z{opacity:0}
.map-table .peek[inert]{pointer-events:none}
.map-page .map-hideout{width:100%;height:100%;min-height:0}
.map-page .map-panel{height:100%;border:0;border-radius:2px;display:flex;flex-direction:column;background:#f0eaf8;overflow:visible;box-shadow:3px 7px 0 #a587a42b,0 12px 24px #65516b14}
.map-page .map-topbar{height:48px;flex-shrink:0;background:#e5dbf0;border:0;border-radius:8px 8px 0 0;padding:0 18px}
.map-page .map-stage{height:auto;flex:1;min-height:0;border-radius:0 0 2px 2px;background-size:65px 65px}
.map-page .map-stage:after{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,transparent 32.9%,#816d9d10 33%,#ffffff40 33.4%,transparent 33.8%,transparent 66%,#816d9d10 66.4%,transparent 67%),linear-gradient(transparent 49.5%,#816d9d0d 50%,#ffffff40 50.4%,transparent 51%)}
.map-page .map-stage{background:#f0eaf8}
.region-heading{font-family:var(--body);font-size:calc(18px * var(--atlas-unit,1));font-weight:900;fill:#76527e}
.region-caption{font-family:var(--body);font-size:calc(11px * var(--atlas-unit,1));font-weight:800;fill:#8c7697}
.regional-map{touch-action:pan-y;outline:none}
.regional-map.can-pan{touch-action:none;cursor:grab}
.regional-map.is-dragging{cursor:grabbing}
.regional-map:focus-visible{outline:2px dashed #d54891;outline-offset:-3px}
.map-page .map-topbar #map-total{max-width:none;font-size:12px}
.map-page .map-live{font-size:13px}
.map-page .peek-trollino-fantasma{top:32%}
.map-page .peek-timba{right:9%}
.map-page .map-controls{flex-direction:row;right:auto;left:16px;bottom:16px;box-shadow:none;border:0;z-index:2}
.map-page .map-controls button{width:46px;height:46px}
.map-page .map-controls button+button{border-top:0;border-left:1px solid #e7ddec}
.map-page .map-compass{left:16px;top:14px;bottom:auto}
.map-page .city-summary{position:absolute;bottom:78px;left:16px;z-index:4;padding:8px 12px;max-width:calc(100% - 150px);max-height:55%;overflow:auto;background:#fffdf8ed;border-radius:6px;color:#695775}
.map-page .city-summary[open]{box-shadow:0 5px 24px #30223d1a}
.map-page .map-error{position:absolute;left:12px;right:70px;top:48px;background:#fffdf8e8;border-radius:4px;padding:8px 12px;z-index:4}
.join-sheet{position:absolute;inset:20px 0 20px;margin:auto;width:min(500px,calc(100% - 110px));padding:130px 24px 24px;background:#fffaf0;box-shadow:2px 6px 0 #a587a44d,0 12px 24px #65516b14;overflow:auto;overscroll-behavior:contain;z-index:1;border-radius:2px}
.sheet-back{position:absolute;top:16px;left:22px;min-height:44px;padding:0;border:0;background:none;color:#76527e;font-size:13px;font-weight:800}
.paper-folds{position:absolute;inset:0;z-index:5;pointer-events:none}
.paper-folds>svg{display:block;width:100%;height:100%;overflow:visible}
.report-button{position:absolute;z-index:6;bottom:35px;right:30px;width:142px;padding:0;border:0;background:none;isolation:isolate;transform:rotate(-5deg);touch-action:manipulation}
.report-button img{display:block;width:100%;height:auto;filter:drop-shadow(0 5px 0 #55325324);animation:button-beckon 3.8s ease-in-out infinite;transform-origin:50% 85%}
.report-button span{display:block;margin-top:-9px;position:relative;font-size:15px;line-height:1.15;font-weight:1000;color:#fff;letter-spacing:-.4px;text-shadow:-1px -1px 0 #571840,1px -1px 0 #571840,-1px 1px 0 #571840,2px 2px 0 #571840}
.report-button:hover img,.report-button:focus-visible img{animation:none;transform:translateY(-5px) scale(1.05)}
.report-button:active img{transform:translateY(4px) scale(.92)}
.map-table[data-view=form] .report-button,.report-button:disabled{visibility:hidden}
.paper-return{position:absolute;z-index:6;bottom:20px;right:10px;width:130px;border:0;padding:0;background:none;touch-action:manipulation}
.paper-return img{display:block;width:100%;height:auto;transition:transform .2s}
.paper-return:not([inert]):hover img{transform:rotate(8deg)}
.paper-return[inert] img{transform:none;transition:none}
@keyframes button-beckon{0%,72%,100%{transform:translateY(0) rotate(0)}78%{transform:translateY(-5px) rotate(-4deg)}84%{transform:translateY(-2px) rotate(4deg)}90%{transform:translateY(-5px) rotate(-2deg)}}
.map-page .signup-hideout{width:100%;max-width:none;margin:0}
.map-page .signup-panel{padding:24px;border:0}
.map-page #join-title{font-size:28px;color:var(--pink-dark);line-height:1.1;margin:0}
.map-page .field input{font-size:16px}
.map-page #join-done{display:block;margin:16px auto 0;min-height:44px}
.map-page .dialog-close{width:44px;height:44px;z-index:5}
.map-page .signup-action-hideout{margin-top:calc(var(--papu-head)*1.08)}
@media(min-width:761px) and (max-height:680px){
 .map-sidebar{gap:16px;padding:20px 28px}.map-book{height:24vh;margin-top:35px}.map-page .book-hideout{width:17vh}.map-copy h1{font-size:30px}.map-copy p{font-size:14px}.map-paper{top:108px}
}
@media(max-width:1000px) and (min-width:761px){.map-app{grid-template-columns:280px minmax(0,1fr)}.map-sidebar{padding-inline:22px}.map-arena{padding-right:16px}.map-page .map-topbar{padding-inline:12px;gap:6px}.map-page .map-live{font-size:11px}.map-page .map-topbar #map-total{font-size:10px}}
@media(max-width:760px){
 .map-page{--papu-head:62px}
 .map-app{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr);min-height:440px}
 .map-sidebar{display:grid;grid-template-columns:72px minmax(0,1fr);gap:8px 14px;padding:42px 16px 10px;align-items:center;justify-content:initial}
 .map-home{top:5px;left:20px;font-size:17px;min-height:36px}
 .map-book{grid-column:1;grid-row:1;height:84px;margin:0;width:72px}
 .map-page .book-hideout{width:54px;margin-left:12px}
 .map-page .peek-mike{width:38%}
 .map-copy{grid-column:2;text-align:left;max-width:none}
 .map-copy h1{font-size:24px;margin:0 0 5px;letter-spacing:-.8px}.map-copy h1 br{display:none}
 .map-copy p{font-size:13px;line-height:1.4}
 .map-legal{position:absolute;right:16px;top:10px;font-size:10px;gap:12px}
 .map-arena{padding:0}
 .map-paper{inset:52px 8px 8px 0}
 .map-page .map-topbar{height:34px;padding:0 10px;gap:6px}
 .map-page .map-live{font-size:10px}.map-page .map-topbar #map-total{font-size:10px;max-width:110px}
 .map-page .map-controls{display:flex;flex-direction:row;bottom:10px;left:10px;right:auto}
 .map-page .map-controls button{width:40px;height:40px}
 .map-page .map-controls button+button{border-top:0;border-left:1px solid #e7ddec}
 .map-page .map-compass{top:10px;bottom:auto;left:10px;font-size:10px}
 .map-page .city-summary{bottom:auto;top:34px;left:auto;right:8px;max-width:calc(100% - 50px);font-size:10px}
 .map-page .peek-trollino-fantasma{top:25%}
 .map-page .map-error{top:40px;right:12px;font-size:11px}
 .join-sheet{inset:10px 0;width:calc(100% - 24px);padding:120px 12px 18px}.map-page .signup-panel{padding:20px 16px}
 .paper-return{bottom:auto;top:12px;right:12px;width:85px}
 .report-button{width:78px;right:12px;bottom:12px}.report-button span{font-size:10px}
}
@media(max-width:360px){.map-sidebar{grid-template-columns:62px minmax(0,1fr);gap:8px 10px;padding-inline:12px}.map-book{width:62px}.map-page .book-hideout{width:50px;margin-left:12px}.map-copy h1{font-size:22px}.map-copy p{font-size:12px}.map-join{font-size:13px}}
@media(max-height:500px) and (min-width:600px){.map-app{grid-template-columns:250px minmax(0,1fr);grid-template-rows:1fr;min-height:320px}.map-sidebar{display:flex;padding:42px 20px 16px;gap:10px}.map-book{height:90px;width:100%;margin-top:10px}.map-page .book-hideout{width:60px}.map-copy{text-align:center}.map-copy h1{font-size:23px;margin-bottom:5px}.map-copy h1 br{display:none}.map-copy p{font-size:12px}.map-legal{position:static;font-size:9px}.map-arena{padding-top:78px}.map-page{--papu-head:62px}}
@media(max-height:500px) and (min-width:600px){.map-arena{padding:0}.map-paper{top:78px}.report-button{width:85px}.map-page .map-controls{flex-direction:row}.map-page .map-controls button{width:36px;height:40px}.join-sheet{width:calc(100% - 24px)}}
.character-pin{cursor:pointer;outline:none}
.character-pin .pin-art{transform-origin:0 0;transition:transform .18s ease-out}
.character-pin.pin-arriving .pin-art{animation:pin-arrive .32s ease-out}
@keyframes pin-arrive{0%{opacity:0;transform:translateY(-12px) scale(.65)}70%{opacity:1;transform:scale(1.08)}100%{transform:scale(1)}}
.character-pin:hover .pin-art,.character-pin:focus .pin-art{transform:scale(1.12)}
.character-pin .pin-count-bg{fill:#35223f;stroke:#fff;stroke-width:1.3}
.map-pin.character-pin .pin-count{fill:#fff;font:800 10px Arial,sans-serif;pointer-events:none}
.character-pin:focus .pin-count-bg{stroke:#ffca28;stroke-width:3}
.paper-folds .character-pin .pin-art{transform:none;transition:none;animation:none}
@media(prefers-reduced-motion:reduce){.character-pin.pin-arriving .pin-art{animation:none}}
@media(prefers-reduced-motion:reduce){.report-button img{animation:none}.map-paper,.paper-return img,.map-table .peek img,.character-pin .pin-art{transition:none}}
