/* The frame: the whole viewport on a phone, a centred handset on anything wider. */
.phone { position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; background: var(--bg); overflow: hidden; }
#statusbar { flex: 0 0 auto; height: calc(28px + var(--safe-top)); padding: var(--safe-top) 18px 0; display: flex; align-items: center; justify-content: center; font-size: 0.8125rem; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.screen { position: absolute; inset: calc(28px + var(--safe-top)) 0 0 0; display: none; flex-direction: column; overflow: hidden; }
.screen[data-active] { display: flex; }
.scroll { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
#offline { position: fixed; inset: 0; display: grid; place-items: center; background: var(--bg); color: var(--muted); z-index: 60; }
#signal { position: absolute; right: 16px; color: var(--warn); font-size: 0.6875rem; }
@media (min-width: 501px) {
  body { display: grid; place-items: center; background: #0e0f12 radial-gradient(ellipse at 50% 20%, #1a1b22, #0e0f12 70%); }
  .phone { width: 390px; height: min(780px, calc(100vh - 40px)); border-radius: 44px; box-shadow: 0 0 0 14px #000, 0 30px 80px #000c; }
  .screen { inset: 28px 0 0 0; }
  #statusbar { height: 28px; padding-top: 0; }
}
