/* CAP24 phone frame: the one phone design for the site.
   Used by Social + phone (social.html) and TV + phone (index.html, /tv).
   Change the frame here, not in the pages. Colour and font tokens (--border-hi, --text, --text-dim, --ff-mono)
   come from each page's :root. */

.pf-phone { width: 380px; max-width: 100%; aspect-ratio: 380 / 780; background: #000; border: 10px solid #1d232d; border-radius: 44px; box-shadow: 0 20px 60px rgba(0,0,0,0.6); overflow: hidden; position: relative; }
.pf-screen { position: absolute; inset: 0; overflow: hidden; background: #0d1117; display: flex; flex-direction: column; }

/* A web page open on the phone: address bar, optional notice, the page itself */
.pf-page { position: absolute; inset: 0; display: flex; flex-direction: column; background: #0b1016; }
.pf-page .pf-bar { flex: none; display: flex; align-items: center; gap: 8px; padding: 10px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.pf-page .pf-bar button { white-space: nowrap; flex: none; background: none; border: 1px solid var(--border-hi); color: var(--text); border-radius: 6px; padding: 6px 10px; font: inherit; font-size: 13px; cursor: pointer; }
.pf-page .pf-url { font-family: var(--ff-mono); font-size: 11px; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.pf-page .pf-sim { flex: none; background: #1a1205; color: #ffe3a1; font-size: 12px; padding: 6px 10px; border-bottom: 1px solid #5a4410; }
.pf-page iframe { flex: 1; width: 100%; border: 0; background: #0b1016; }
.pf-page .pf-empty { flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center; font-size: 13px; color: var(--text-dim); }
.pf-page .pf-empty[hidden] { display: none; }
