/* Control settings in the travel menu, first-minute hints, mouse look and touch comfort. */
#control-settings{margin:0 0 12px;border-block:1px solid #67786c}
#control-settings summary{display:flex;align-items:center;min-height:44px;cursor:pointer}
#control-settings summary::after{content:"▾";margin-left:.5em;opacity:.8}
#control-settings[open] summary::after{content:"▴"}
#control-settings .language-field{padding:3px;border-top:1px solid #647568;color:#f4efdf}
@media(pointer:coarse){#control-settings .fine-pointer{display:none}}

#control-hint{position:absolute;left:50%;top:60px;z-index:3;transform:translateX(-50%);width:max-content;max-width:min(88%,580px);padding:7px 15px;border:1px solid #cdbf9a66;border-radius:999px;background:#10191cd4;color:#fff5da;font-size:.92rem;line-height:1.35;text-align:center;pointer-events:none;animation:control-hint .45s ease both}
#control-hint[hidden]{display:none}
@keyframes control-hint{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){#control-hint{animation:none}}
.looking-out #control-hint,.boarding #control-hint,body:has(#encounter:not([hidden])) #control-hint,#game:has(#handset-controls:not([hidden])) #control-hint{visibility:hidden}

/* While the mouse is held by the view, a dot marks what a click will use. */
body.mouse-look #game .aim{display:block;visibility:visible;width:5px;height:5px;margin:-2px 0 0 -2px}
body.mouse-look .scene canvas{cursor:none}

/* Fingers: nothing in the view is selected, zoomed or dragged away by accident. */
html{overscroll-behavior-y:contain}
#game .scene{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
#game .scene :is(input,textarea,.web-content){-webkit-user-select:text;user-select:text}
#game .scene button:not(.stick-home){touch-action:manipulation}
.touch-stick{width:84px;height:84px}
.touch-stick span{width:34px;height:34px}

/* A phone held sideways has its status lines at the top; the hint sits between the pad and the buttons. */
@media (pointer: coarse) and (orientation: landscape){
  #control-hint{top:auto;left:92px;bottom:max(14px,env(safe-area-inset-bottom));transform:none;border-radius:14px;text-align:left}
}
@media (pointer: coarse) and (orientation: portrait) and (max-width: 700px){
  /* low in the view, above the station announcement, so it never sits behind the day's task at the top */
  #game #control-hint{position:absolute;top:auto;left:50%;right:auto;bottom:calc(var(--hud-bottom,14px) + 132px);transform:translateX(-50%);margin:0;max-width:92%;border-radius:17px;font-size:.86rem}
}
