/* Phone app + call screens */
.ph { position: absolute; inset: 0; background: #fff; display: flex; flex-direction: column; color: #111; }
.ph-scroll { flex: 1; overflow-y: auto; padding: 54px 16px 96px; scrollbar-width: none; }
.ph-scroll::-webkit-scrollbar { display: none; }
.ph-h1 { font-size: 33px; font-weight: 800; margin: 6px 0 6px; }
.ph-seg { display: flex; width: 170px; margin: 6px auto 0; background: #7676801f; border-radius: 9px; padding: 2px; }
.ph-seg button { flex: 1; border: 0; background: none; border-radius: 7px; padding: 5px; font-size: 13.5px; font-weight: 600; }
.ph-seg button.on { background: #fff; box-shadow: 0 2px 6px #0002; }
.ph-row { display: flex; align-items: center; gap: 8px; padding: 9px 0; border-bottom: .5px solid #e5e5ea; cursor: pointer; }
.ph-dir { width: 14px; display: grid; place-items: center; }
.ph-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ph-mid b { font-size: 16.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-mid b.missed { color: #FF3B30; }
.ph-mid span { font-size: 13.5px; color: #8a8a8e; }
.ph-when { font-size: 14px; color: #8a8a8e; }
.ph-i { border: 0; background: none; padding: 2px; display: grid; }
.ph-av { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(180deg, #A5ABB6, #858994); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 17px; flex-shrink: 0; }
.ph-av.big { width: 96px; height: 96px; font-size: 40px; margin: 0 auto; }
.ph-me { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: .5px solid #e5e5ea; }
.ph-crow { padding: 12px 2px; border-bottom: .5px solid #e5e5ea; font-size: 16.5px; cursor: pointer; }
.ph-card { padding: 16px 18px; text-align: center; }
.ph-card h2 { margin: 10px 0 14px; font-size: 26px; }
.ph-actions { display: flex; gap: 8px; margin-bottom: 14px; }
.ph-actions button { flex: 1; border: 0; background: #fff; color: var(--blue); border-radius: 10px; padding: 10px 2px; font-size: 13px; }
.ph-card .card { text-align: start; }
.ph-dial { display: flex; flex-direction: column; align-items: center; padding-top: 30px; }
.ph-num { height: 50px; font-size: 34px; direction: ltr; letter-spacing: 1px; }
.ph-keys { display: grid; grid-template-columns: repeat(3, 78px); gap: 14px 24px; direction: ltr; margin-top: 10px; }
.ph-keys button, .ph-callbtn { width: 78px; height: 78px; border-radius: 50%; border: 0; background: #E5E5EA; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ph-keys button:active { background: #c7c7cc; }
.ph-keys b { font-size: 34px; font-weight: 400; line-height: 1; }
.ph-keys span { font-size: 9.5px; letter-spacing: 2px; font-weight: 700; }
.ph-keyrow { display: grid; grid-template-columns: repeat(3, 78px); gap: 24px; direction: ltr; margin-top: 14px; align-items: center; }
.ph-callbtn { background: #34C759; }
.ph-del { border: 0; background: none; font-size: 24px; color: #8a8a8e; }
.ph-tabs { position: absolute; bottom: 0; left: 0; right: 0; height: 84px; padding: 6px 4px 26px; display: flex; background: #f9f9f9f2; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-top: .5px solid #d8d8dc; }
.ph-tabs button { flex: 1; border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 2px; color: #999; font-size: 10.5px; font-weight: 600; }
.ph-tabs button.on { color: var(--blue); }

/* call screen */
.call { position: absolute; inset: 0; z-index: 75; color: #fff; display: flex; flex-direction: column; align-items: center; overflow: hidden; overflow: clip; } /* clip: the blurred backdrop below is 40px wider than the screen; a scrollable box got pushed sideways by a tap */
.call::before { content: ""; position: absolute; inset: -40px; background: url('../assets/wallpaper/wallpaper.jpg') center / cover; filter: blur(30px) brightness(.55); z-index: -1; }
.call.snap::before { background: linear-gradient(180deg, #3a3500, #111); filter: none; }
.call-top { margin-top: 92px; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 24px; }
.call-kind { font-size: 15px; opacity: .75; }
.call-top h1 { font-size: 34px; font-weight: 500; margin: 6px 0 4px; }
.call-sub { font-size: 17px; opacity: .8; font-variant-numeric: tabular-nums; }
.call-av { width: 96px; height: 96px; border-radius: 50%; margin-top: 28px; background: #ffffff2e; display: grid; place-items: center; font-size: 40px; overflow: hidden; }
.call-av.snap { background: #FFFC00; }
.call-av.snap svg { width: 80%; height: 80%; }
.call-members { display: flex; gap: -6px; margin-top: 28px; }
.call-members span { width: 54px; height: 54px; border-radius: 50%; background: #ffffff38; border: 2px solid #ffffff55; display: grid; place-items: center; font-size: 22px; margin: 0 -5px; }
.call-bottom { margin-top: auto; width: 100%; padding: 0 44px 74px; display: grid; grid-template-columns: 1fr 1fr; row-gap: 34px; }
.call-mini { grid-column: span 2; display: flex; justify-content: space-between; padding: 0 6px; }
.call-mini button { border: 0; background: none; color: #fff; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 13px; }
.call-ans { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 14px; }
.call-btn { width: 74px; height: 74px; border-radius: 50%; border: 0; display: grid; place-items: center; }
.call-btn.red { background: #FF3B30; }
.call-btn.green { background: #34C759; }
.call-btn.ring { animation: ring 1.4s infinite; }
@keyframes ring { 0%, 100% { box-shadow: 0 0 0 0 #34c75988 } 60% { box-shadow: 0 0 0 16px #34c75900 } }
.call-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 26px; margin-top: auto; padding: 0 34px; }
.call-opt { border: 0; background: none; color: #fff; display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 12.5px; }
.call-opt svg { width: 72px; height: 72px; padding: 21px; border-radius: 50%; background: #ffffff2e; backdrop-filter: blur(10px); }
.call-opt.on svg { background: #fff; color: #111; }
.call-note { font-size: 12px; opacity: .6; margin: 18px 0 0; }
.call-end { margin: 22px 0 70px; }
.call.ringing .call-end { margin-top: auto; }
#island.call { width: 160px; cursor: pointer; pointer-events: auto; }
#island.call::before { content: ""; position: absolute; left: 16px; top: 13px; width: 11px; height: 11px; border-radius: 50%; background: #34C759; }
#island.call::after { content: attr(data-t); position: absolute; right: 16px; top: 9px; color: #34C759; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
