/* Spookagotchi — compact touch-first exploration and team UI. */
#team58,#regionScene58{width:min(580px,94vw);max-height:88dvh;overflow:auto;border:1px solid #a38b58;border-radius:18px;background:#171c29;color:#f0e8d5;padding:18px}
.team58-card{display:flex;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid #ffffff17}.team58-card img{width:65px;height:70px;object-fit:contain}.team58-card>div{flex:1}.team58-card small{display:block;color:#b8becd;margin-top:5px}.team58-card button{min-height:44px}
#objective58{display:block;width:100%;font-size:13px;text-align:left;color:#f3dfa8;background:#252839;border:1px solid #ad8f4f70;border-radius:10px;padding:10px 12px;margin:7px 0}
.intent58{border:1px solid #927548;border-left:4px solid #e1bb67;background:#282435;border-radius:10px;padding:10px 12px;margin:8px 0}.intent58 strong{color:#ffdb99}.intent58 p{margin:5px 0;font-size:13px}.intent58 small{color:#b5cbbd}
#battleTeamPanel58{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:10px 0}#battleTeamPanel58[hidden]{display:none}#battleTeamPanel58 h3,#battleTeamPanel58>button:last-child{grid-column:1/-1}#battleTeamPanel58 button{min-height:44px;padding:8px}#battleTeamPanel58 img{display:block;width:64px;height:70px;object-fit:contain;margin:auto}#battleTeamPanel58 strong,#battleTeamPanel58 small{display:block;font-size:12px}.region58-actions{display:flex;gap:8px;flex-wrap:wrap}.region58-actions button{min-height:44px}
#mapDialog[data-time58=night] .map40-stage{box-shadow:inset 0 0 80px #060b2688}.map40-head{flex-wrap:wrap}.map40-controls{position:sticky;bottom:0;background:#171d2cf2;padding-bottom:max(8px,env(safe-area-inset-bottom));z-index:10}
@media(max-width:600px){#mapDialog{max-height:100dvh;height:100dvh;width:100vw;max-width:100vw;margin:0;padding:10px;border-radius:0}.map40-head{gap:5px}.map40-head strong{flex-basis:100%}.map40-head button{min-height:42px;padding:7px 10px}.destinations56,.map40-tools{font-size:12px}#map40-info{font-size:11px;margin:3px 0}#map40-guide{display:none}#map40-hint{font-size:12px}.map40-stage{min-height:220px;flex:1}#mapDialog>small{display:none}.rpg-commands{grid-template-columns:repeat(3,minmax(0,1fr))}.rpg-commands button{min-height:52px;padding:8px 4px}.rpg-commands small{font-size:10px}.intent58 p{font-size:12px}#battleDialog .battle-rules{font-size:12px}}

@media(max-width:600px){#battleDialog{width:100vw;max-width:100vw;max-height:100dvh;margin:0;padding:10px;border-radius:0}#battleDialog .rpg-arena{height:235px;min-height:210px}#battleDialog #battleCommands{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}#battleDialog #battleCommands button{min-height:52px;padding:7px 4px}#battleDialog .dialog-head h2{font-size:21px}#battleDialog .intent58{padding:8px 10px;margin:6px 0}#battleDialog .intent58 p{margin:4px 0}#battleDialog .battle50-status{font-size:11px}#battleDialog .battle-message{font-size:12px;padding:7px}#battleDialog .battle-rules{margin-top:8px}}
