/* Compact map controls. Dialog copy remains selectable. */
#mapViewport button,#mapViewport button *,#mapViewport .collect-controls,
#mapViewport .collect-controls *,#mapViewport .joystick,#mapViewport .joystick *{
  -webkit-user-select:none;user-select:none;-webkit-touch-callout:none;
}
#mapViewport .collect-button,#mapViewport .joystick{touch-action:none;pointer-events:auto}
#mapViewport .collect-button>*,#mapViewport .joystick>*{pointer-events:none}
#mapViewport .map-coordinates,#mapViewport .game-hint,#mapViewport .map-signature{display:none}
#mapViewport .adventure-hud{
  left:calc(20px + env(safe-area-inset-left));top:calc(94px + env(safe-area-inset-top));
  transform:none;width:236px;max-width:calc(100% - 24px);min-width:0;
  min-height:36px;height:36px;padding:6px 10px;gap:8px;border-radius:16px;
}
#mapViewport .adventure-hud>span{font-size:14px;line-height:18px;max-width:64px;overflow:hidden;text-overflow:ellipsis}
#mapViewport .adventure-hud>div{display:grid;grid-template-columns:minmax(16px,1fr) auto;gap:7px;align-items:center;min-width:0}
#mapViewport #hudTitle{display:none}
#mapViewport .adventure-hud .xp-track{height:4px;margin:0;border-radius:8px}
#mapViewport .adventure-hud small{font-size:10px;line-height:14px;white-space:nowrap}
#mapViewport .adventure-hud>strong{position:static;transform:none;flex:0 0 auto;max-width:none;line-height:16px;font-size:11px;padding:1px 5px;border-radius:9px}
#mapViewport .map-overview{top:calc(144px + env(safe-area-inset-top));left:calc(20px + env(safe-area-inset-left))}
#mapViewport .map-tools{top:calc(94px + env(safe-area-inset-top));right:calc(20px + env(safe-area-inset-right));flex-direction:row;width:190px;padding:4px;gap:4px;justify-content:center;border-radius:18px}
#mapViewport .map-tools button{width:44px;height:44px;min-height:44px;flex:0 0 44px;margin:0;border-radius:13px;font-size:23px}
#mapViewport .map-tools #zoomLevel{flex:1;min-width:30px;font-size:11px;line-height:16px;padding:0}
#mapViewport .map-tools #homeButton{margin:0;font-size:22px}
#mapViewport .joystick{width:120px;height:120px}
#mapViewport .collect-controls{gap:6px}
#mapViewport .collect-controls p{height:28px;min-height:28px;max-height:28px;padding:4px 8px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:18px}
#mapViewport .game-quick-actions{bottom:180px;gap:8px}
#mapViewport .game-quick-actions>button{min-width:78px;min-height:52px;padding:7px 10px;gap:7px;border-radius:17px}
#mapViewport .game-quick-actions>button>span{font-size:21px}
#mapViewport .game-quick-actions b{font-size:13px;line-height:17px}
#mapViewport .game-quick-actions small{font-size:10px;line-height:13px}
@media(max-width:650px){
  #mapViewport .game-hud{top:calc(10px + env(safe-area-inset-top));left:calc(12px + env(safe-area-inset-left));right:calc(12px + env(safe-area-inset-right));gap:8px}
  #mapViewport .game-brand{height:44px;min-height:44px;padding:6px 9px;gap:6px;border-radius:16px}
  #mapViewport .game-brand .brand-creature{width:28px;height:28px}
  #mapViewport .game-brand>span:last-child{font-size:15px;letter-spacing:0}
  #mapViewport .game-brand small{font-size:6px;line-height:8px;margin-top:1px}
  #mapViewport .game-account{width:40px;max-width:40px;height:44px;min-height:44px;padding:5px;border-radius:15px}
  #mapViewport .game-account svg{width:28px;height:28px;max-width:100%;max-height:100%;flex-shrink:1}
  #mapViewport .menu-button{height:44px;min-height:44px;padding:6px 9px;border-radius:16px}
  #mapViewport .menu-button b{font-size:13px}
  #mapViewport .adventure-hud{top:calc(64px + env(safe-area-inset-top));left:calc(12px + env(safe-area-inset-left));width:204px;height:32px;min-height:32px;padding:5px 9px;gap:6px;border-radius:14px}
  #mapViewport .adventure-hud>span{font-size:13px;line-height:18px}
  #mapViewport .map-overview{top:calc(108px + env(safe-area-inset-top));left:calc(12px + env(safe-area-inset-left));width:96px;padding:6px;border-radius:16px;max-height:max(44px,calc(100% - 300px - env(safe-area-inset-top) - env(safe-area-inset-bottom)))}
  #mapViewport .overview-heading{gap:4px;margin:0}
  #mapViewport .overview-heading b{font-size:11px}
  #mapViewport #overviewToggle{width:26px;height:26px}
  #mapViewport .map-tools{top:calc(108px + env(safe-area-inset-top));right:calc(12px + env(safe-area-inset-right));width:190px;padding:4px;gap:4px;border-radius:17px}
  #mapViewport .map-tools button{width:44px;height:44px;min-height:44px;flex-basis:44px}
  #mapViewport .map-tools #zoomLevel{min-width:30px;font-size:11px}
  #mapViewport .joystick-wrap{left:max(12px,env(safe-area-inset-left));bottom:max(18px,env(safe-area-inset-bottom))}
  #mapViewport .joystick-caption{display:none}
  #mapViewport .joystick{width:104px;height:104px}
  #mapViewport .collect-controls{right:max(12px,env(safe-area-inset-right));bottom:max(18px,env(safe-area-inset-bottom));width:148px;gap:6px}
  #mapViewport .collect-button{width:92px;height:92px}
  #mapViewport .game-quick-actions{right:max(12px,env(safe-area-inset-right));bottom:calc(156px + env(safe-area-inset-bottom));gap:6px}
  #mapViewport .game-quick-actions>button{width:64px;min-width:64px;min-height:54px;padding:5px 4px;flex-direction:column;gap:2px;border-radius:16px}
  #mapViewport .game-quick-actions>button>span{font-size:19px}
  #mapViewport .game-quick-actions b{font-size:12px;line-height:16px}
  #mapViewport .game-quick-actions small{display:none}
  #mapViewport .walking-toast{bottom:224px}
}
@media(max-height:600px) and (min-width:600px){
  #mapViewport .game-hud{top:calc(8px + env(safe-area-inset-top));left:calc(12px + env(safe-area-inset-left));right:calc(12px + env(safe-area-inset-right))}
  #mapViewport .game-brand,#mapViewport .game-account,#mapViewport .menu-button{height:40px;min-height:40px;padding-block:4px}
  #mapViewport .game-brand .brand-creature{width:28px;height:28px}
  #mapViewport .game-brand>span:last-child{font-size:16px;line-height:20px}
  #mapViewport .game-brand small,#mapViewport .game-account>span:last-child{display:none}
  #mapViewport .game-account{width:40px;max-width:40px;padding:4px;justify-content:center}
  #mapViewport .game-account svg{width:28px;height:28px;max-width:100%;max-height:100%;flex-shrink:1}
  #mapViewport .adventure-hud{top:calc(58px + env(safe-area-inset-top));left:calc(12px + env(safe-area-inset-left));width:192px;height:30px;min-height:30px;padding:4px 8px}
  #mapViewport .map-tools{top:calc(58px + env(safe-area-inset-top));right:calc(12px + env(safe-area-inset-right))}
  #mapViewport .map-overview{top:calc(98px + env(safe-area-inset-top));left:calc(12px + env(safe-area-inset-left));width:96px;padding:6px;max-height:calc(100% - 240px)}
  #mapViewport .overview-heading b{font-size:11px}
  #mapViewport .joystick-wrap{bottom:calc(12px + env(safe-area-inset-bottom));left:calc(12px + env(safe-area-inset-left))}
  #mapViewport .joystick{width:90px;height:90px}
  #mapViewport .collect-controls{right:calc(12px + env(safe-area-inset-right));bottom:calc(12px + env(safe-area-inset-bottom));width:124px}
  #mapViewport .collect-button{width:84px;height:84px}
  #mapViewport .game-quick-actions{right:calc(152px + env(safe-area-inset-right));bottom:calc(12px + env(safe-area-inset-bottom));gap:6px}
  #mapViewport .game-quick-actions>button{width:54px;min-width:54px;min-height:48px;padding:4px;flex-direction:column;gap:2px}
  #mapViewport .game-quick-actions b{font-size:11px;line-height:14px}
  #mapViewport .game-quick-actions small{display:none}
  #mapViewport .walking-toast{bottom:118px}
}

/* Official destinations stay visible before photos and activity details. */
#detailDialog .dialog-external-links{display:grid;gap:8px;margin:12px 0 20px}
#detailDialog .dialog-external-links a{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;margin:0;padding:10px 14px;border-radius:15px;font-size:15px;line-height:1.6;text-align:left;white-space:normal;overflow-wrap:anywhere}
#detailDialog .dialog-external-links .inline-store-link{border:1px solid #b7d9ec;background:#e3f3fc;color:#527d98;text-decoration:none}
