/* The page around the prototype: full screen on a phone, a phone-sized frame on a big screen. */
html, body { margin: 0; height: 100%; background: #0F0C07; overscroll-behavior: none; }
body { -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; -webkit-touch-callout: none; }

#app { position: fixed; inset: 0; overflow: hidden; }
#app .proto { width: 100%; height: 100%; border-radius: 0; }
/* iPhone home-screen app: fill the whole screen, not the shorter viewport iOS reports there. boot.js sets --app-h. */
html.ios-app, html.ios-app body { height: var(--app-h, 100%); }
html.ios-app #app, html.ios-app #pick { bottom: auto; height: var(--app-h, 100%); }
/* The design draws every screen 390 wide; here they take the phone's width. boot.js sets the size. */
#app .ph:not(.bare) { width: var(--ph-w, 390px); }
/* The dock is drawn 362 wide; keep it centred on wider and narrower phones. */
#app .dock-at { display: flex; justify-content: center; }
#app .dock-at > .ph { flex: none; }

/* Launch screen */
#pick { position: fixed; inset: 0; width: auto; height: auto; z-index: 10; display: flex; align-items: flex-end;
  transition: opacity .32s ease; }
#pick.out { opacity: 0; pointer-events: none; }
.pick-in { width: 100%; box-sizing: border-box; padding: 0 16px calc(28px + env(safe-area-inset-bottom)); }
.pick-wm { opacity: 1 !important; display: block; margin-bottom: 18px; }
.pick-btns { display: flex; flex-direction: column; gap: 8px; margin-top: 26px; }
.pick-note { margin: 18px 0 0; text-align: center; }

/* Wider than a phone: show it in a phone-sized frame. */
@media (min-width: 700px) and (min-height: 880px) {
  body { display: flex; align-items: center; justify-content: center; }
  #app, #pick { position: relative; inset: auto; width: 390px; height: 844px; border-radius: 44px; overflow: hidden; flex: none;
    box-shadow: 0 30px 80px rgba(0,0,0,.5), 0 0 0 1px rgba(255,240,214,.08); }
  #pick { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
}
