/* phone.css — the smartphone modal */
.gm-full.phone { background: rgba(43, 31, 63, .6); }
.gm-full.phone .gm-body { padding: 0; }
.ph-frame { position: absolute; left: 10px; right: 10px; top: 70px; bottom: 10px; box-sizing: border-box; padding: 9px; border-radius: 36px;
  background: linear-gradient(160deg, #3b2a55, #1d1529); box-shadow: 0 0 0 2px #6b4c8f, 0 8px 24px rgba(0, 0, 0, .5); display: flex; }
.ph-notch { position: absolute; top: 9px; left: 50%; width: 70px; height: 7px; margin-left: -35px; border-radius: 4px; background: #1d1529; z-index: 3; }
.ph-screen { flex: 1; min-width: 0; display: flex; flex-direction: column; border-radius: 28px; overflow: hidden; position: relative;
  background: linear-gradient(170deg, #fff1e6 0%, #ffe3ee 45%, #e6dcf7 100%); }
.ph-status { flex: none; display: flex; justify-content: space-between; align-items: center; padding: 12px 20px 6px; font: 800 14px/1.2 var(--font); color: var(--ink); background: rgba(255, 255, 255, .45); }
.ph-content { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 10px 10px 14px; }
.ph-pane { display: flex; flex-direction: column; gap: 10px; }
.ph-in { animation: phin .3s cubic-bezier(.3, 1.4, .5, 1) both; }
@keyframes phin { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
.ph-tabs { flex: none; display: flex; background: #fff6ee; border-top: 2px solid #ffc4d6; padding: 4px 4px 6px; gap: 2px; }
.ph-tab { -webkit-appearance: none; appearance: none; flex: 1 1 0; min-width: 0; min-height: 52px; border: 0; border-radius: 16px; background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  font: 800 14px/1.2 var(--font); color: var(--ink-soft); cursor: pointer; transition: transform .12s, background .15s; }
.ph-tab .ic { font-size: 20px; line-height: 1; }
.ph-tab .tx { white-space: nowrap; }
.ph-tab.on { background: #ffd6e4; color: var(--rose-deep); }
.ph-tab:active { transform: scale(.92); }
.ph-tab.shop { color: var(--violet); }
.ph-empty { text-align: center; padding: 40px 16px; font: 700 15px/1.5 var(--font); color: var(--ink-soft); }
.ph-count { text-align: center; font: 800 15px var(--font); color: var(--violet); }

/* feed */
.ph-post { background: #fff; border-radius: 20px; padding: 12px; box-shadow: 0 3px 8px rgba(122, 47, 85, .15); }
.ph-post-head { display: flex; align-items: center; gap: 10px; }
.ph-av { width: 42px; height: 42px; border-radius: 50%; overflow: hidden; flex: none; background: linear-gradient(135deg, #ff8fb1, #b79ae8); color: #fff; font: 900 20px/42px var(--font); text-align: center; border: 2px solid #ffc4d6; box-sizing: border-box; }
.ph-av img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; display: block; }
.ph-post-who .nm { font: 900 16px/1.2 var(--font); color: var(--ink); }
.ph-post-who .tm { font: 700 13px/1.3 var(--font); color: var(--ink-soft); }
.ph-post-t { margin: 8px 0 6px; font: 700 15px/1.5 var(--font); color: var(--ink); white-space: pre-wrap; word-break: break-word; }
.ph-post-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; display: block; }
.ph-post-foot { display: flex; justify-content: flex-end; margin-top: 4px; }
.ph-like { -webkit-appearance: none; appearance: none; width: 48px; height: 44px; border: 0; background: transparent; font-size: 24px; color: var(--rose-deep); cursor: pointer; transition: transform .15s; }
.ph-like.on { animation: phpop .35s ease; }
.ph-like:active { transform: scale(1.3); }
@keyframes phpop { 0% { transform: scale(.6); } 60% { transform: scale(1.35); } 100% { transform: scale(1); } }

/* friends */
.ph-row { -webkit-appearance: none; appearance: none; display: flex; align-items: center; gap: 12px; width: 100%; box-sizing: border-box; text-align: left; padding: 10px 12px; min-height: 76px; border: 0; border-left: 6px solid var(--c); border-radius: 18px; background: #fff; box-shadow: 0 3px 8px rgba(122, 47, 85, .15); cursor: pointer; font-family: var(--font); color: var(--ink); transition: transform .12s; }
.ph-row:active { transform: scale(.97); }
.ph-head { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; flex: none; border: 3px solid var(--c); background: #f6e7ef; box-sizing: border-box; }
.ph-head img { width: 130%; margin-left: -15%; display: block; }
.ph-row-main { flex: 1; min-width: 0; }
.ph-row-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ph-row-top .nm { font: 900 17px/1.2 var(--font); }
.tag { font: 800 13px/1.2 var(--font); padding: 2px 8px; border-radius: 10px; background: #ffd6e4; color: var(--rose-deep); }
.mood { font-size: 17px; }
.ttl { font: 700 14px/1.3 var(--font); color: var(--ink-soft); margin: 1px 0 4px; }
.ph-bar { position: relative; height: 10px; border-radius: 6px; background: #f1dbe6; overflow: visible; }
.ph-bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #ff8fb1, #ff5f8f); transition: width .5s; }
.ph-bar b { position: absolute; right: -2px; top: -5px; font-size: 14px; color: #ff5f8f; }
.ph-pback { align-self: flex-start; }
.ph-pf-top { display: flex; gap: 12px; align-items: flex-end; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 35%, #fff), #fff); border-radius: 22px; padding: 10px 12px 0; overflow: hidden; min-height: 190px; }
.ph-pf-img { height: 190px; width: auto; flex: none; display: block; }
.ph-pf-name { flex: 1; min-width: 0; padding-bottom: 14px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.ph-pf-name .n { font: 900 24px/1.2 var(--font); color: var(--ink); }
.ph-pf-name .t { font: 700 14px/1.3 var(--font); color: var(--ink-soft); }
.ph-pf-name .ph-bar { width: 100%; }
.ph-sec { background: #fff; border-radius: 16px; padding: 10px 14px; }
.ph-sec .lb { font: 900 14px/1.2 var(--font); color: var(--rose-deep); margin-bottom: 3px; }
.ph-sec .tx { font: 700 15px/1.55 var(--font); color: var(--ink); word-break: break-word; }
.ph-sec .tx.rl { margin-top: 2px; }
.ph-sec .tx.dim, .ph-sec.lock .tx { color: var(--ink-soft); }
.ph-sec.lock { background: rgba(255, 255, 255, .6); }
.ph-msg { align-self: center; min-width: 200px; margin: 6px 0; }

/* album */
.ph-counters { display: flex; justify-content: space-around; background: #fff; border-radius: 16px; padding: 8px 4px; font: 900 15px var(--font); color: var(--violet); }
.ph-h { font: 900 18px/1.2 var(--font); color: var(--rose-deep); padding: 4px 4px 0; }
.ph-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ph-cg { -webkit-appearance: none; appearance: none; padding: 0; border: 3px solid #fff; border-radius: 12px; overflow: hidden; aspect-ratio: 2 / 3; background: #fff; box-shadow: 0 2px 6px rgba(122, 47, 85, .25); cursor: pointer; transition: transform .12s; }
.ph-cg:active { transform: scale(.95); }
.ph-cg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph-cg.lock { background: linear-gradient(160deg, #6b5a85, #3a2d4f); display: flex; align-items: center; justify-content: center; }
.ph-cg .q { font-size: 26px; filter: grayscale(.4); opacity: .8; }
.ph-ends { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ph-end { display: flex; gap: 6px; align-items: center; background: rgba(255, 255, 255, .6); border-radius: 12px; padding: 6px 10px; min-height: 36px; font: 700 14px/1.3 var(--font); color: var(--ink-soft); }
.ph-end.on { background: #fff; color: var(--ink); }
.ph-end.on span:first-child { color: #f2b13b; }
.ph-end .n { min-width: 0; word-break: break-word; }
.ph-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 4px; }
.ph-note { min-height: 72px; padding: 10px; box-sizing: border-box; background: #fff9d9; border-radius: 4px; box-shadow: 0 3px 6px rgba(122, 47, 85, .25); transform: rotate(var(--r)); font: 700 14px/1.45 var(--font); color: #7a5a3a; word-break: break-word; display: flex; align-items: center; justify-content: center; text-align: center; background-image: repeating-linear-gradient(transparent 0 20px, rgba(200, 160, 100, .25) 20px 21px); }
.ph-note:not(.on) { color: #b9a98a; background-color: #f1ead3; }
.ph-viewer { position: absolute; inset: 0; z-index: 10; background: rgba(20, 12, 30, .94); display: flex; align-items: center; justify-content: center; animation: gfade .2s both; cursor: pointer; }
.ph-viewer.out { animation: gfadeout .18s both; }
.ph-viewer img { max-width: 100%; max-height: 100%; object-fit: contain; animation: gpop .3s both; }
.ph-viewer .hint { position: absolute; bottom: 18px; font: 800 14px var(--font); color: #fff6ee; text-shadow: var(--ol); }

/* bag */
.ph-item { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 18px; padding: 8px 12px; min-height: 64px; box-shadow: 0 3px 8px rgba(122, 47, 85, .12); }
.ph-item.zero img { opacity: .5; filter: grayscale(.5); }
.ph-item img { width: 48px; height: 48px; object-fit: contain; flex: none; }
.ph-item-main { flex: 1; min-width: 0; }
.ph-item .nm { font: 900 16px/1.2 var(--font); color: var(--ink); }
.ph-item .ds { font: 700 13px/1.35 var(--font); color: var(--ink-soft); }
.ph-item-n { font: 900 18px var(--font); color: var(--rose-deep); flex: none; }
.ph-goshop { align-self: center; margin-top: 6px; }
.gm-full.phone .gm-close { top: 14px; left: 14px; }
