/* The LAN form must remain reachable with browser chrome or a keyboard open. */
#lobby .entry {
  max-height: 100%;
  overflow-y: auto;
}

/* In landscape the cutout occupies the middle of a short edge. Keep the
   corner controls close to the frame and the side buttons below the cutout. */
@media (orientation: landscape) {
  .iphone .farm-topbar {
    left: 6px;
    right: 6px;
  }

  .iphone #wallet,
  .iphone #atlas-key,
  .iphone #house-exit {
    left: 6px;
  }

  .iphone #tools,
  .iphone .in-park #park-dock,
  .iphone #hud #emote-key {
    right: 6px;
  }

  .iphone #hud #emote-key {
    top: auto;
    bottom: calc(max(12px, env(safe-area-inset-bottom)) + 60px);
    transform: none;
  }
  .iphone .nearby.fishing-entry {
    right: 62px;
  }

  .iphone #fold {
    top: auto;
    bottom: max(12px, env(safe-area-inset-bottom));
    margin-top: 0;
  }

  .iphone body #story-resume,
  .iphone body:is([data-view=first], [data-view=third], .arranging-jump):not(.at-boat-helm) #stick {
    left: 34px;
  }
}
#host-vpn {
  width:min(370px,calc(100vw - 28px)); max-height:calc(100% - 20px); overflow:auto;
  padding:18px 20px; color:#444f40; background:#fff6e4;
  border:1px solid #9a8866; border-radius:17px; box-shadow:0 16px 65px #2c392e55;
}
#host-vpn::backdrop {background:#283d35a8}
#host-vpn h2 {margin:0 0 8px;font-size:21px}
#host-vpn p {margin:0 0 12px;font-size:14px;line-height:1.5}
#host-vpn label {display:grid;gap:4px}
#host-vpn input {width:100%;padding:7px;font:inherit}
#host-vpn form>div {display:flex;justify-content:flex-end;gap:8px;margin-top:12px}
#guest-vpn summary,#legacy-host summary {cursor:pointer}
