/* Portrait touch layout: primary controls remain reachable without scrolling. */
@media(max-width:600px){
 .masthead{height:calc(69px + env(safe-area-inset-top));padding-top:env(safe-area-inset-top)}
 .game{height:calc(100svh - 145px - env(safe-area-inset-top) - env(safe-area-inset-bottom));min-height:min(500px,calc(100svh - 145px - env(safe-area-inset-top) - env(safe-area-inset-bottom)))}
 .destinations{height:calc(76px + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom)}
 .masthead nav{gap:9px}.masthead #music{height:44px;min-width:44px;justify-content:center}
 .masthead .nav-invite{min-height:44px;font-size:11px}
 .world-tools button{min-width:44px;height:44px}.world-tools #help{width:44px}
 .world-tools span{font-size:10px}.quest{max-width:232px}.quest h2{font-size:12px}.tiny{font-size:7px}.stamp-row small{font-size:10px}.stamp-row>span{width:23px;height:23px}
 .touch-pad{grid-template-columns:repeat(3,44px);grid-template-rows:repeat(2,44px);gap:4px;right:12px;bottom:13px}
 .touch-pad button{font-size:21px}.interact-prompt{bottom:125px}.interact-prompt button{min-height:44px;font-size:12px}
 .marker .marker-text{font-size:11px;line-height:1.4}.marker{min-width:64px}.marker .symbol{width:29px;height:29px}
 .location-tag{font-size:9px;max-width:calc(100% - 170px);line-height:1.6}
 .destinations b{font-size:11px;letter-spacing:0}.destination-icon{font-size:23px}
 .quiet,.secondary,.text-link{min-height:44px;display:inline-flex;align-items:center;justify-content:center}
 .gold{min-height:46px}.intro .gold{font-size:12px}.intro h1{font-size:clamp(30px,9.6vw,43px);letter-spacing:2.5px;white-space:nowrap}.intro-foot{font-size:10px;line-height:1.8}.intro-description{font-size:14px}.intro-caption>span{font-size:10px}
 .close{width:44px;height:44px;right:10px;top:10px;font-size:27px}
 .modal-body{padding-top:50px}.modal-body>.lead{font-size:14px;line-height:1.9}.paper-letter p{font-size:14px;line-height:2}.paper-letter h3{font-size:25px}.panel-footer p{font-size:11px}
 .memory-card{min-height:84px}.memory-card .front small{font-size:11px;letter-spacing:0}.memory-card .back{font-size:30px}.game-score{font-size:11px;gap:8px}.game-score b{font-size:14px}.game-score .quiet{font-size:11px}
 .star-node{width:44px;height:44px;font-size:22px}.star-node small{font-size:11px;top:48px}.star-order{font-size:11px;gap:7px}.puzzle-hint,.mini-result{font-size:13px;line-height:1.9}
 .gallery-controls button{width:46px;height:46px}.gallery-controls span{font-size:12px}.gallery-copy>p:not(.overline){font-size:14px;line-height:1.9}.gallery-copy blockquote{font-size:18px}.gallery-copy .text-link{font-size:12px}.photo-expand{min-height:44px;font-size:11px}.photo-stage{touch-action:pan-y}
 .rsvp-form input{font-size:16px;height:48px}.rsvp-form label{font-size:14px}.rsvp-form .gold{font-size:14px;min-height:48px}.form-note{font-size:12px}.form-status{font-size:12px}.invite-place p{font-size:12px}.invite-place button{min-height:44px;font-size:12px}.invite-details .time{font-size:12px}.invite-details{padding-bottom:max(30px,env(safe-area-inset-bottom))}
 .help-list{font-size:14px;line-height:1.9}.help-list b{min-width:60px}.gift-body p{font-size:14px}.gift-body .gold{font-size:13px}.gift-body h2{line-height:1.5}
 .afterword>div>p:not(.overline){font-size:12px}.afterword .text-link{font-size:12px}footer button{min-height:44px;font-size:11px}
 .toast{font-size:13px}
}
@media(max-width:360px){.quest{max-width:208px}.quest h2{font-size:11px}.stamp-row small{font-size:9px}.stamp-row>span{width:21px;height:21px}.intro{padding-left:22px;padding-right:22px}.intro-foot{font-size:9px}.destinations b{font-size:10px}.modal-body{padding-left:19px;padding-right:19px}.star-order{font-size:10px;gap:5px}}
