/* Visiting monsters stand at the edges of the Home garden. The layer never blocks the scene; only visitors take taps. */
.home-postcard{position:relative}
.visitor-layer{position:absolute;inset:0;z-index:6;overflow:hidden;pointer-events:none;border-radius:9px}
.visitor{position:absolute;bottom:7%;width:31%;aspect-ratio:400/460;padding:0;border:0;background:none;pointer-events:auto;cursor:pointer;animation:visitor-arrive 1.1s cubic-bezier(.2,.8,.3,1) both}
.visitor[data-spot=left]{left:2%;--from:-120%}.visitor[data-spot=right]{right:2%;--from:120%;animation-delay:.5s}
/* They face the monster who lives here. */
.visitor[data-spot=right] .visitor-art{transform:scaleX(-1)}
.visitor-art{display:block;width:100%;height:100%;filter:drop-shadow(0 4px 3px #2a1f3d40);animation:visitor-bob 2.6s ease-in-out infinite}
.visitor-letter{position:absolute;top:-4%;right:-6%;width:44%;animation:visitor-note 1.8s ease-in-out infinite;filter:drop-shadow(0 2px 2px #2a1f3d40)}
.visitor[data-spot=right] .visitor-letter{right:auto;left:-6%}
.visitor:hover .visitor-letter,.visitor:focus-visible .visitor-letter{transform:scale(1.15)}
.visitor:focus-visible{outline:3px solid #9466bc;outline-offset:2px;border-radius:14px}
@keyframes visitor-arrive{from{transform:translateX(var(--from));opacity:0}to{transform:none;opacity:1}}
@keyframes visitor-bob{50%{translate:0 -3%}}
@keyframes visitor-note{50%{translate:0 -12%;rotate:-6deg}}
.visitor-hello{display:flex;align-items:center;gap:14px;margin-bottom:12px}.visitor-hello p{margin:0}
.visitor-hello-art{width:92px;height:106px;flex:none}
.visitor-about{margin:0 0 12px;padding:10px 14px;border-radius:12px;background:#f6eef8}
.visitor-paper{margin:6px 0 14px;padding:20px 22px 14px}.visitor-paper .handwriting{margin:0;font-size:27px}
.visitor-form input{width:100%;padding:13px 14px;border:1px solid #d6c3df;border-radius:12px;background:#fffaf0;color:var(--ink);font:24px/1.3 Caveat,'Noteworthy','Segoe Print',cursive}
.visitor-form .paper-meta{margin-top:8px}
/* The Home monster's explore prompt: a system notice on the postcard with an exclamation badge, raised and chevroned so it reads as something to tap. */
.explore-bubble{position:absolute;top:4%;left:3%;max-width:58%;display:flex;align-items:center;gap:8px;padding:8px 10px 8px 8px;text-align:left;pointer-events:auto;cursor:pointer;
 border:2px solid #14245a;border-radius:8px;background:#fffaf0;color:#3a2a4a;box-shadow:0 3px 0 #14245a55,0 6px 12px #2a1f3d33;animation:visitor-arrive .6s cubic-bezier(.2,.8,.3,1) both;--from:0;transition:transform .12s,box-shadow .12s}
.explore-bubble-mark{flex:0 0 auto;display:grid;place-items:center;width:22px;height:22px;border:2px solid #14245a;border-radius:50%;background:#ffd35c;color:#14245a;font-weight:900;font-size:14px;line-height:1;box-shadow:0 2px 0 #14245a55}
.explore-bubble:active{transform:translateY(2px);box-shadow:0 1px 0 #14245a55,0 2px 6px #2a1f3d33}
.explore-bubble-text{display:flex;flex-direction:column;min-width:0;line-height:1.25}.explore-bubble-text strong{font-size:13px}.explore-bubble-text span{font-size:11px;color:#76637f}
.explore-bubble-go{font-size:20px;line-height:1;color:#ac85c6}
.explore-bubble[data-state=exploring]{background:#f3ecfa}.explore-bubble[data-state=exploring] .explore-bubble-mark{background:#e2d4ee;color:#68408a}
@media(prefers-reduced-motion:reduce){.explore-bubble{transition:none}}
/* The explore notice is a side trip, so it stays small beside the monster rather than the loudest thing on Home. */
.explore-bubble{max-width:50%;padding:6px 8px 6px 6px;border-radius:8px}.explore-bubble-mark{width:20px;height:20px;font-size:13px}.explore-bubble-text strong{font-size:12px}.explore-bubble-text span{font-size:10.5px}
/* The explore notice owns the postcard's top-left corner, so the road's destination caption moves to the top-right beside it. */
.home-postcard:has(.explore-bubble) .world-scene-label{left:auto;right:10px;max-width:calc(44% - 20px);text-align:right}
