/* The RocSite Quest - the phone */
.phone {
  position: fixed; left: 50%; bottom: 0; z-index: 42; width: min(420px, 100%); height: min(88vh, 860px);
  transform: translate(-50%, 104%); transition: transform 0.42s cubic-bezier(.2, 1.05, .3, 1);
  padding: 8px 8px 0; filter: drop-shadow(0 -10px 40px rgba(0, 0, 0, 0.45));
}
.phone.on { transform: translate(-50%, 0); }
.ph-screen {
  position: relative; height: 100%; display: flex; flex-direction: column; overflow: hidden;
  border-radius: 34px 34px 0 0; border: 6px solid #15151a; border-bottom: 0;
  background: radial-gradient(120% 70% at 30% 0%, #ffcf9a 0%, #e98a6a 28%, #5a4a7e 62%, #1c1830 100%);
  color: #fff; padding-bottom: var(--sb);
}
.phone:not(.at-home) .ph-screen { background: linear-gradient(180deg, #1d1a26, #141219); }
.ph-status { display: flex; align-items: center; justify-content: space-between; padding: 10px 22px 4px; font-size: 15px; font-weight: 700; }
.ph-brand { display: flex; align-items: center; gap: 6px; font-size: 13px; letter-spacing: 0.06em; opacity: 0.9; }
.ph-sig { display: flex; gap: 2px; align-items: flex-end; }
.ph-sig i { width: 3px; background: #fff; border-radius: 1px; }
.ph-sig i:nth-child(1) { height: 5px; } .ph-sig i:nth-child(2) { height: 8px; } .ph-sig i:nth-child(3) { height: 11px; } .ph-sig i:nth-child(4) { height: 14px; }
.ph-bar { display: flex; align-items: center; gap: 6px; padding: 2px 8px; min-height: 52px; }
.ph-bar b { flex: 1; font: 600 22px var(--serif); }
.ph-back, .ph-close { width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.1); font-size: 30px; line-height: 1; }
.phone.at-home .ph-back { visibility: hidden; }
.ph-body { flex: 1; overflow-y: auto; padding: 4px 16px 18px; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.ph-home { align-self: center; width: 134px; height: 24px; border: 0; background: transparent; position: relative; margin-bottom: 4px; }
.ph-home::after { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.75); }
.ph-hello { padding: 6px 4px 18px; text-shadow: 0 2px 12px rgba(60, 20, 40, 0.4); }
.ph-hello small { display: block; font-size: 17px; opacity: 0.9; }
.ph-hello b { display: block; font: 600 34px/1.1 var(--serif); margin: 2px 0 10px; }
.chip { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; background: rgba(255, 255, 255, 0.18); vertical-align: 2px; }
.chip.live { background: #6fd8cc; color: #062a2a; }
.ph-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 8px; padding: 6px 0 20px; }
.ph-app { position: relative; display: flex; flex-direction: column; align-items: center; gap: 7px; border: 0; background: none; padding: 0; min-height: 48px; }
.ph-app span { width: 68px; height: 68px; border-radius: 20px; display: grid; place-items: center; box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.ph-app svg { width: 34px; height: 34px; }
.ph-app b { font-size: 15px; font-weight: 600; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5); }
.ph-app:active span { transform: scale(0.93); }
.ph-badge { position: absolute; top: -6px; right: calc(50% - 44px); min-width: 24px; height: 24px; border-radius: 12px; background: #ff4a3d; font: 800 14px/24px var(--sans); font-style: normal; text-align: center; }
.ph-signin, .ph-card { margin: 4px 0 14px; padding: 14px; border-radius: 20px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.14); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.ph-signin b, .ph-card > b { display: block; font-size: 18px; margin-bottom: 4px; }
.ph-signin small, .ph-card > small { display: block; font-size: 15px; opacity: 0.8; margin-bottom: 10px; }
.ph-card.now span { display: block; font-size: 15px; opacity: 0.75; margin-bottom: 10px; }
.ph-card.now small { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold2); }
.ph-btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 50px; margin-top: 8px; border: 0; border-radius: 16px; text-decoration: none;
  background: linear-gradient(180deg, #ffcf86, #f5a54a); color: #2a1608; font-size: 17px; font-weight: 800; }
.ph-btn.big { min-height: 64px; margin-bottom: 14px; }
.ph-btn:disabled { opacity: 0.55; }
.ph-note { margin: 0 0 12px; font-size: 15px; opacity: 0.85; }
.ph-status { margin: 10px 0 0; font-size: 15px; color: var(--gold2); min-height: 1.4em; }
.ph-list { display: flex; flex-direction: column; gap: 2px; }
.ph-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; text-align: left; padding: 12px 12px; min-height: 64px; border: 0; border-radius: 14px; background: rgba(255, 255, 255, 0.05); }
.ph-row b { font-size: 16px; } .ph-row span { grid-column: 1; font-size: 15px; opacity: 0.8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-row small { grid-column: 2; grid-row: 1; font-size: 13px; opacity: 0.7; }
.ph-row.unread b::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #6fd8cc; margin-right: 8px; vertical-align: 2px; }
.ph-row.deal small { grid-column: 1 / -1; grid-row: auto; font-size: 14px; opacity: 1; }
.stage { font-style: normal; display: inline-block; padding: 2px 8px; border-radius: 8px; background: rgba(255, 255, 255, 0.14); margin-right: 6px; font-weight: 700; }
.s-closed { background: #8ff0b4; color: #062a14; } .s-negotiating, .s-offer { background: #ffcf86; color: #2a1608; } .s-inspection { background: #ff9d7e; color: #2a0e06; }
.ph-mail b { display: block; font: 600 22px/1.2 var(--serif); } .ph-mail small { display: block; font-size: 14px; opacity: 0.75; margin: 4px 0 12px; }
.ph-mailbody { font-size: 17px; line-height: 1.5; white-space: pre-wrap; }
.ph-facts { display: grid; gap: 8px; margin: 6px 0 10px; }
.ph-facts div { padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.07); }
.ph-facts small { display: block; font-size: 13px; opacity: 0.7; } .ph-facts b { font-size: 17px; }
.ph-chat { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.bubble { max-width: 86%; padding: 10px 14px; border-radius: 20px; font-size: 16px; line-height: 1.45; }
.bubble.me { align-self: flex-end; background: linear-gradient(180deg, #ffcf86, #f5a54a); color: #2a1608; border-bottom-right-radius: 6px; }
.bubble.ai { align-self: flex-start; background: rgba(255, 255, 255, 0.1); border-bottom-left-radius: 6px; }
.bubble small { display: block; margin-top: 6px; font-size: 12px; opacity: 0.65; }
.bubble.typing { opacity: 0.7; animation: breathe 1.2s ease-in-out infinite; }
.ph-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 10px; }
.chip-btn { min-height: 44px; padding: 0 14px; border-radius: 22px; border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.08); font-size: 15px; }
.chip-btn.on { background: #6fd8cc; color: #062a2a; border-color: transparent; font-weight: 700; }
.ph-input { position: sticky; bottom: 0; display: flex; gap: 8px; padding: 8px 0 2px; background: linear-gradient(180deg, rgba(20, 18, 25, 0), #141219 30%); }
.ph-input input, .ph-text { flex: 1; width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 25px; border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.08); color: #fff; font: 16px var(--sans); -webkit-user-select: text; user-select: text; }
.ph-text { border-radius: 16px; resize: none; }
.ph-input button { width: 50px; height: 50px; border-radius: 50%; border: 0; background: #ffb357; color: #2a1608; font-size: 20px; }
.ph-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ph-gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 14px; display: block; }
.ph-card audio { width: 100%; margin-top: 6px; }
.round.phone-btn svg { width: 24px; height: 24px; }
@media (min-width: 900px) { .phone { left: auto; right: 28px; transform: translate(0, 104%); bottom: 0; } .phone.on { transform: translate(0, 0); } }
