/* ================= 第二幕 相遇（王者荣耀） =================
   手机屏幕按 2 倍尺寸排版（1624×750），再由镜头整体缩放：
   字号都 ≥ 20px，谷歌浏览器的「最小字号」不会把它挤乱。 */
.gm-stage { --out: 0; }
.gm-head { position: absolute; top: calc(6% + var(--st)); left: 0; right: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 0 22px; pointer-events: none; transition: opacity .45s; }
.gm-intro { font-size: clamp(15px, 4.3vw, 20px); line-height: 1.75; }
.gm-stage[data-step='matching'] .gm-head, .gm-stage[data-step='matched'] .gm-head, .gm-stage[data-step='done'] .gm-head, .gm-stage.ach-on .gm-head { opacity: 0 !important; }

/*PHONE-BEGIN*/
.gm-cam { position: absolute; left: 0; top: 0; width: 1696px; height: 814px; transform-origin: 0 0; z-index: 2; opacity: calc(1 - var(--out)); }
.ph { position: absolute; inset: 0; border-radius: 104px; transform-origin: 50% 62%;
  background: linear-gradient(160deg, #3d3856, #17142c 38%, #0a0917);
  box-shadow: 0 0 0 6px #07060e, 0 0 0 10px rgba(255, 255, 255, .07), 0 60px 120px rgba(6, 4, 30, .6), inset 0 3px 0 rgba(255, 255, 255, .16); }
.ph-key { position: absolute; top: -12px; height: 14px; border-radius: 8px 8px 0 0; background: linear-gradient(#4d4864, #1b1832); }
.ph-key.k1 { left: 300px; width: 132px; }
.ph-key.k2 { left: 464px; width: 132px; }
.ph-key.k3 { right: 340px; width: 184px; }
.ph-screen { position: absolute; left: 36px; top: 32px; width: 1624px; height: 750px; border-radius: 68px; overflow: hidden; background: #05061a; color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif; -webkit-font-smoothing: antialiased; line-height: 1.3; }
.ph-screen svg { width: 100%; height: 100%; display: block; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---- lobby ---- */
.lb { position: absolute; inset: 0; }
.lb-bg { position: absolute; inset: 0; overflow: hidden; background: radial-gradient(120% 95% at 32% 34%, #4257bf 0%, #26318a 42%, #0a0d33 100%); }
.lb-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 6, 26, .55), transparent 18%, transparent 68%, rgba(5, 6, 26, .62)), linear-gradient(180deg, rgba(5, 6, 26, .5), transparent 16%, transparent 78%, rgba(5, 6, 26, .78)); }
.lb-rays { position: absolute; left: -100px; top: -300px; width: 1400px; height: 1400px; background: conic-gradient(from 200deg at 42% 34%, transparent 0 10deg, rgba(160, 190, 255, .12) 14deg, transparent 22deg, rgba(160, 190, 255, .08) 30deg, transparent 40deg, rgba(160, 190, 255, .1) 52deg, transparent 64deg, transparent 360deg); }
.lb-moon { position: absolute; left: 470px; top: 96px; width: 300px; height: 300px; opacity: .95; filter: drop-shadow(0 0 60px rgba(255, 236, 190, .5)); }
.lb-mt { position: absolute; bottom: 0; }
.lb-mt.m1 { left: -60px; width: 1040px; height: 340px; background: linear-gradient(#3a48ad, #182064); clip-path: polygon(0 100%, 0 55%, 18% 30%, 32% 48%, 50% 12%, 66% 42%, 80% 26%, 100% 62%, 100% 100%); }
.lb-mt.m2 { right: -40px; width: 1120px; height: 240px; background: linear-gradient(#27318a, #0e1244); clip-path: polygon(0 100%, 0 70%, 14% 46%, 30% 64%, 48% 22%, 66% 50%, 84% 30%, 100% 52%, 100% 100%); }
.lb-mt.m3 { left: 0; right: 0; height: 104px; background: linear-gradient(transparent, rgba(4, 5, 22, .92)); }
.lb-glint { position: absolute; left: 540px; top: 70px; width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 20px 7px rgba(255, 255, 255, .6); animation: lbglint 3.2s ease-in-out infinite; }
@keyframes lbglint { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
.lb-top { position: absolute; left: 0; right: 0; top: 0; height: 100px; display: flex; align-items: center; gap: 28px; padding: 0 44px 0 66px; background: linear-gradient(180deg, rgba(6, 8, 32, .78), rgba(6, 8, 32, 0)); }
.lb-me { display: flex; align-items: center; gap: 16px; }
.lb-av { width: 76px; height: 76px; border-radius: 18px; overflow: hidden; border: 4px solid #e9c37a; box-shadow: 0 0 0 3px rgba(0, 0, 0, .5); background: #fff; flex: none; }
.lb-av img { width: 100%; height: 100%; object-fit: cover; }
.lb-id { display: flex; flex-direction: column; align-items: flex-start; }
.lb-id b { font-size: 29px; font-weight: 700; }
.lb-id em { font-style: normal; font-size: 20px; font-weight: 600; color: #ffe7a6; background: rgba(0, 0, 0, .35); border: 2px solid rgba(233, 195, 122, .6); border-radius: 12px; padding: 0 10px; margin-top: 4px; }
.lb-cur { display: flex; gap: 18px; margin-left: auto; }
.cu { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 6px 0 4px; border-radius: 24px; background: rgba(0, 0, 0, .42); border: 2px solid rgba(255, 255, 255, .14); font-size: 24px; font-weight: 700; }
.cu > i { width: 36px; height: 36px; border-radius: 50%; flex: none; }
.cu.ticket > i { background: radial-gradient(circle at 35% 32%, #fff, #b8a2ff 42%, #6b4fe0); }
.cu.dia > i { width: 32px; background: linear-gradient(135deg, #e6f6ff, #6cc8ff 45%, #2f7be6); clip-path: polygon(50% 0, 100% 38%, 50% 100%, 0 38%); border-radius: 0; }
.cu.coin > i { background: radial-gradient(circle at 35% 32%, #fff6c8, #ffcf4a 45%, #c88a12); }
.cu em { font-style: normal; width: 30px; height: 30px; border-radius: 50%; background: #e9b74a; color: #3a2508; display: flex; align-items: center; justify-content: center; font-size: 26px; line-height: 1; font-weight: 800; }
.lb-sys { display: flex; align-items: center; gap: 18px; }
.sy { width: 44px; height: 44px; display: block; color: #e9e4ff; }
.ping { font-size: 21px; color: #6dff9b; font-weight: 700; }
.clock { font-size: 23px; font-weight: 700; }
.bat { position: relative; display: block; width: 44px; height: 22px; border: 3px solid #fff; border-radius: 6px; }
.bat::after { content: ''; position: absolute; right: -9px; top: 4px; width: 4px; height: 8px; background: #fff; border-radius: 0 2px 2px 0; }
.bat i { position: absolute; left: 3px; top: 3px; bottom: 3px; width: 66%; background: #fff; border-radius: 2px; }
.lb-left { position: absolute; left: 66px; top: 136px; display: flex; flex-direction: column; gap: 20px; }
.ll { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 22px; font-weight: 700; text-shadow: 0 2px 4px rgba(0, 0, 0, .6); cursor: pointer; }
.ll i { display: block; width: 80px; height: 80px; padding: 15px; border-radius: 22px; color: #fff; border: 3px solid rgba(255, 255, 255, .38); box-shadow: 0 6px 14px rgba(0, 0, 0, .35), inset 0 2px 0 rgba(255, 255, 255, .3); }
.ll-gift i { background: linear-gradient(160deg, #ff9db8, #e2507a); }
.ll-pass i { background: linear-gradient(160deg, #ffd77a, #d9932a); }
.ll-task i { background: linear-gradient(160deg, #8fd0ff, #3a7ee0); }
.lb-modes { position: absolute; right: 34px; bottom: 124px; display: grid; grid-template-columns: 336px 352px; grid-template-rows: 60px 248px; gap: 18px 20px; }
.lb-pill { display: flex; align-items: center; justify-content: center; border-radius: 30px; background: linear-gradient(180deg, rgba(40, 50, 120, .88), rgba(16, 20, 64, .92)); border: 2px solid rgba(160, 190, 255, .42); font-size: 27px; font-weight: 700; cursor: pointer; }
.lb-mode { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 22px 28px 24px; border-radius: 26px; border: 3px solid rgba(255, 255, 255, .3); box-shadow: 0 10px 30px rgba(0, 0, 0, .45), inset 0 3px 0 rgba(255, 255, 255, .25); }
.lb-mode::before { content: ''; position: absolute; left: -40%; top: -60%; width: 100%; height: 160%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .16), transparent); transform: rotate(18deg); }
.lb-mode b { position: relative; font-size: 58px; font-weight: 900; letter-spacing: .06em; text-shadow: 0 4px 10px rgba(0, 0, 0, .45); }
.lb-mode small { position: relative; font-size: 23px; font-weight: 600; opacity: .88; }
.m-vs { background: linear-gradient(160deg, #4f8cff, #2a3fb8 55%, #1b2378); }
.m-rank { background: linear-gradient(160deg, #ffcf6e, #c27a20 52%, #6e3a12); border-color: rgba(255, 226, 160, .65); }
.lb-emb { position: absolute; right: 24px; top: 20px; width: 104px; height: 118px; background: linear-gradient(160deg, #fff3c4, #f0b844 45%, #b9711a); clip-path: polygon(50% 0, 100% 18%, 92% 68%, 50% 100%, 8% 68%, 0 18%); }
.lb-emb::after { content: '★'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding-bottom: 8px; font-size: 54px; color: #fff; text-shadow: 0 2px 6px rgba(120, 60, 0, .6); }
.lb-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 112px; display: flex; align-items: center; gap: 46px; padding: 0 0 4px 50px; background: linear-gradient(0deg, rgba(5, 6, 26, .96), rgba(5, 6, 26, 0)); }
.lbb { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 22px; font-weight: 700; color: rgba(255, 255, 255, .94); text-shadow: 0 2px 4px rgba(0, 0, 0, .6); cursor: pointer; }
.lbb i { display: block; width: 62px; height: 62px; padding: 11px; border-radius: 17px; color: #fff; border: 2px solid rgba(255, 255, 255, .5); box-shadow: 0 4px 10px rgba(0, 0, 0, .35), inset 0 2px 0 rgba(255, 255, 255, .32); }
.b-hero i { background: linear-gradient(160deg, #ffb35c, #d9661c); }
.b-bag i { background: linear-gradient(160deg, #ff8fa8, #c9416a); }
.b-team i { background: linear-gradient(160deg, #a7a4ff, #5a4fd0); }
.b-fr i { background: linear-gradient(160deg, #7fd3ff, #2f86d6); border-radius: 50%; }
.b-shop i { background: linear-gradient(160deg, #ffd36b, #d39a1e); }
.b-fr::after { content: ''; position: absolute; right: 20px; top: -4px; width: 20px; height: 20px; border-radius: 50%; background: #ff3b4e; border: 3px solid #0b0d2c; }

/* ---- the invite (slides down from the top, like the real one) ---- */
.iv { position: absolute; left: 382px; top: 20px; width: 860px; height: 192px; z-index: 5; display: flex; align-items: center; gap: 22px; padding: 18px 24px 24px 34px; border-radius: 28px;
  background: linear-gradient(180deg, rgba(32, 38, 96, .97), rgba(14, 17, 52, .97)); border: 3px solid rgba(233, 195, 122, .78); box-shadow: 0 20px 50px rgba(0, 0, 0, .6), inset 0 2px 0 rgba(255, 255, 255, .12);
  transform: translateY(-260px); opacity: 0; transition: transform .6s cubic-bezier(.34, 1.56, .64, 1), opacity .3s; }
.iv::before { content: ''; position: absolute; left: 0; top: 20px; bottom: 20px; width: 8px; border-radius: 0 6px 6px 0; background: linear-gradient(#ffe7a6, #e0a43a); }
.iv-on .iv { transform: none; opacity: 1; }
.iv.pop { animation: ivpop .6s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes ivpop { 0% { translate: 0 -40px; scale: .96; } 100% { translate: 0 0; scale: 1; } }
.iv.nope { animation: ivnope .5s; }
@keyframes ivnope { 20% { translate: -16px 0; } 40% { translate: 16px 0; } 60% { translate: -10px 0; } 80% { translate: 8px 0; } }
.iv-av { width: 124px; height: 124px; flex: none; border-radius: 22px; overflow: hidden; border: 4px solid #e9c37a; background: #fff; }
.iv-av img { width: 100%; height: 100%; object-fit: cover; }
.iv-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.iv-name { display: flex; align-items: center; gap: 12px; min-width: 0; }
.iv-name b { font-size: 33px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rk { flex: none; font-size: 22px; font-weight: 700; color: #ffe7a6; background: rgba(233, 195, 122, .18); border: 2px solid rgba(233, 195, 122, .55); border-radius: 10px; padding: 0 10px; }
.iv-from { flex: none; font-style: normal; font-size: 21px; color: rgba(255, 255, 255, .62); }
.iv-text { font-size: 27px; color: rgba(255, 255, 255, .92); white-space: nowrap; }
.iv-text span { color: #ffd77a; font-weight: 700; }
.iv-mem { display: flex; align-items: center; gap: 8px; }
.mem { width: 40px; height: 40px; border-radius: 10px; border: 2px dashed rgba(255, 255, 255, .35); overflow: hidden; }
.mem.on { border: 2px solid #e9c37a; }
.mem img { width: 100%; height: 100%; object-fit: cover; }
.iv-mem small { font-size: 22px; color: rgba(255, 255, 255, .62); margin-left: 6px; }
.iv-btns { display: flex; gap: 18px; flex: none; }
.iv-btns button { width: 148px; height: 76px; border-radius: 38px; font: 800 31px -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif; color: #fff; cursor: pointer; }
.iv-no { background: rgba(255, 255, 255, .12); border: 2px solid rgba(255, 255, 255, .38); }
.iv-yes { color: #4a2a06 !important; background: linear-gradient(180deg, #ffe7a6, #f0b844 55%, #d48d1e); border: 2px solid #fff3c9; box-shadow: 0 6px 0 #9a5e10, 0 0 30px rgba(255, 210, 120, .6); animation: yesglow 1.4s ease-in-out infinite; }
.iv-yes:active { translate: 0 4px; box-shadow: 0 2px 0 #9a5e10; }
@keyframes yesglow { 50% { box-shadow: 0 6px 0 #9a5e10, 0 0 54px rgba(255, 210, 120, .95); } }
.iv-cd { position: absolute; left: 34px; right: 26px; bottom: 10px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.iv-cd i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #ffe7a6, #f0b844); transform-origin: 0 50%; animation: ivcd 20s linear forwards; }
@keyframes ivcd { to { transform: scaleX(0); } }

/* ---- loading ---- */
.ld { position: absolute; inset: 0; z-index: 6; display: flex; align-items: center; justify-content: center; gap: 22px; background: rgba(4, 6, 24, .84); opacity: 0; pointer-events: none; transition: opacity .3s; font-size: 30px; font-weight: 600; }
.ld-on .ld { opacity: 1; }
.ld-spin { width: 50px; height: 50px; border-radius: 50%; border: 6px solid rgba(255, 255, 255, .2); border-top-color: #f0c766; animation: spin .8s linear infinite; }

/* ---- the team room ---- */
.rm { position: absolute; inset: 0; z-index: 4; opacity: 0; pointer-events: none; transition: opacity .45s; background: radial-gradient(90% 72% at 35% 45%, #2c3a9e 0%, #18205f 46%, #080a2a 100%); }
.rm-on .rm { opacity: 1; pointer-events: auto; }
.rm-top { position: absolute; left: 0; right: 0; top: 0; height: 88px; display: flex; align-items: center; gap: 16px; padding: 0 40px 0 56px; background: linear-gradient(180deg, rgba(4, 6, 24, .82), rgba(4, 6, 24, 0)); }
.rm-back { font-size: 56px; line-height: 1; margin: -6px 6px 0 0; color: #f0d79a; }
.rm-top b { font-size: 33px; font-weight: 800; }
.rm-map { font-size: 23px; color: rgba(255, 255, 255, .66); margin-right: auto; }
.rm-pill { font-size: 23px; font-weight: 600; padding: 4px 18px; border-radius: 22px; border: 2px solid rgba(240, 215, 154, .5); color: #f0d79a; background: rgba(0, 0, 0, .25); }
.rm-pill.lock::before { content: ''; display: inline-block; width: 13px; height: 13px; border: 3px solid currentColor; border-radius: 3px; margin-right: 8px; vertical-align: -1px; }
.rm-stage { position: absolute; left: 48px; top: 424px; width: 1128px; height: 108px; border-radius: 50%; background: radial-gradient(closest-side, rgba(140, 170, 255, .42), rgba(140, 170, 255, 0)); }
.rm-slots { position: absolute; left: 36px; top: 172px; width: 1148px; display: flex; gap: 26px; }
.slot { position: relative; width: 200px; height: 300px; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border-radius: 24px; border: 3px dashed rgba(160, 190, 255, .45); background: rgba(10, 14, 50, .45); }
.slot .sl-av, .slot > b, .slot > em, .slot .crown { display: none; }
.slot.full { border: 3px solid #e9c37a; background: linear-gradient(180deg, rgba(233, 195, 122, .28), rgba(30, 24, 70, .86)); box-shadow: 0 0 30px rgba(233, 195, 122, .25); }
.slot.full .sl-av, .slot.full > b, .slot.full > em, .slot.full .crown { display: block; }
.slot.full .sl-plus { display: none; }
.sl-av { width: 128px; height: 128px; border-radius: 50%; overflow: hidden; border: 4px solid #fff3c9; background: #fff; }
.sl-av img { width: 100%; height: 100%; object-fit: cover; }
.slot > b { font-size: 27px; font-weight: 800; max-width: 184px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot > em { font-style: normal; font-size: 21px; font-weight: 700; color: #4a2a06; background: #f0c766; border-radius: 10px; padding: 0 10px; }
.slot.s1 > em { background: #ff9ec4; color: #4a0f2a; }
.crown { position: absolute; top: -20px; left: 50%; margin-left: -26px; width: 52px; height: 32px; background: linear-gradient(#ffe9a8, #e0a43a); clip-path: polygon(0 100%, 0 20%, 25% 60%, 50% 0, 75% 60%, 100% 20%, 100% 100%); }
.sl-plus { display: flex; flex-direction: column; align-items: center; font-size: 60px; line-height: 1; color: rgba(190, 210, 255, .66); }
.sl-plus small { font-size: 23px; margin-top: 8px; font-weight: 600; }
.slot.pop { animation: slotpop .6s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes slotpop { 0% { scale: .7; } 60% { scale: 1.08; } 100% { scale: 1; } }
.sl-bub { position: absolute; left: 50%; bottom: calc(100% + 22px); z-index: 2; transform: translateX(-50%) scale(.6); transform-origin: 50% 100%; width: max-content; max-width: 430px; white-space: normal; text-align: center; overflow-wrap: anywhere; font-size: 34px; line-height: 1.32; font-weight: 800; color: #1d1840; background: #fff; border-radius: 26px; padding: 10px 24px; opacity: 0; transition: all .35s cubic-bezier(.34, 1.56, .64, 1); box-shadow: 0 8px 20px rgba(0, 0, 0, .35); pointer-events: none; }
.sl-bub::after { content: ''; position: absolute; left: 50%; top: 100%; margin-left: -14px; border: 14px solid transparent; border-top-color: #fff; }
.sl-bub.her { background: #ffe1ec; }
.sl-bub.her::after { border-top-color: #ffe1ec; }
.sl-bub.on { opacity: 1; transform: translateX(-50%) scale(1); }
.rm-side { position: absolute; right: 12px; top: 96px; bottom: 16px; width: 404px; display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 26px; background: rgba(6, 8, 32, .74); border: 2px solid rgba(160, 190, 255, .25); }
.rs-tabs { display: flex; justify-content: space-between; }
.rs-tabs b { font-size: 23px; font-weight: 700; color: rgba(255, 255, 255, .56); padding: 4px 9px; border-radius: 12px; cursor: pointer; }
.rs-tabs b.on { color: #3a2508; background: linear-gradient(#ffe7a6, #f0b844); }
.rs-list { flex: 1; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.rs-row { height: 80px; flex: none; display: flex; align-items: center; gap: 14px; padding: 0 10px; border-radius: 16px; background: rgba(255, 255, 255, .05); }
.rs-av { width: 56px; height: 56px; flex: none; border-radius: 14px; background: linear-gradient(135deg, #7b8cff, #3d4aa8); }
.rs-av.a1 { background: linear-gradient(135deg, #ff9db8, #b84a72); }
.rs-av.a2 { background: linear-gradient(135deg, #ffd27a, #c27a20); }
.rs-av.a3 { background: linear-gradient(135deg, #8de0c0, #2e9d7a); }
.rs-av.a4 { background: linear-gradient(135deg, #c7c7d8, #6a6a86); }
.rs-nm { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.rs-nm i { display: block; width: 120px; height: 20px; border-radius: 10px; background: rgba(255, 255, 255, .34); filter: blur(3px); }
.rs-nm em { font-style: normal; font-size: 20px; font-weight: 600; }
.rs-nm em.on { color: #6dff9b; }
.rs-nm em.game { color: #ffcf6e; }
.rs-nm em.team { color: #7fd3ff; }
.rs-nm em.off { color: rgba(255, 255, 255, .42); }
.rs-inv { font-size: 22px; font-weight: 700; color: #3a2508; background: linear-gradient(#ffe7a6, #f0b844); border-radius: 18px; padding: 4px 16px; }
.rs-recruit { height: 60px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 30px; font-size: 25px; font-weight: 700; color: #f0d79a; border: 2px solid rgba(240, 215, 154, .5); }
.rm-chat { position: absolute; left: 28px; bottom: 18px; width: 672px; height: 216px; display: flex; flex-direction: column; padding: 10px 12px 12px; border-radius: 22px; background: rgba(4, 6, 24, .62); border: 2px solid rgba(160, 190, 255, .24); }
.cl-log { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 18px); mask-image: linear-gradient(to bottom, transparent 0, #000 18px); }
.cl { font-size: 27px; line-height: 1.35; opacity: 0; transform: translateY(10px); transition: opacity .35s, transform .35s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl.in { opacity: 1; transform: none; }
.cl b { font-weight: 700; color: #8fc4ff; }
.cl.me span, .cl.her span { font-size: 30px; font-weight: 600; }
.cl.her b { color: #ff9ec4; }
.cl.sys { font-size: 25px; color: #f0d79a; }
.cl.sent { animation: clsent .5s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes clsent { 0% { translate: 0 30px; scale: .9; } 100% { translate: 0 0; scale: 1; } }
.cl .dots { display: inline-flex; gap: 6px; padding: 0 4px; vertical-align: middle; }
.cl .dots i { width: 10px; height: 10px; border-radius: 50%; background: #fff; animation: dot 1s ease-in-out infinite; }
.cl .dots i:nth-child(2) { animation-delay: .15s; }
.cl .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 100% { transform: translateY(0); opacity: .4; } 40% { transform: translateY(-6px); opacity: 1; } }
.cl-bar { height: 68px; flex: none; display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.cl-quick { display: block; width: 64px; height: 60px; flex: none; padding: 10px; border-radius: 16px; background: rgba(255, 255, 255, .1); color: #f0d79a; }
.cl-in { flex: 1; min-width: 0; height: 60px; padding: 0 16px; border-radius: 14px; border: 2px solid rgba(255, 255, 255, .26); background: rgba(255, 255, 255, .1); color: #fff; outline: none;
  font: 600 30px -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif; -webkit-appearance: none; appearance: none; }
.cl-in::placeholder { color: rgba(255, 255, 255, .45); }
.cl-in:disabled { opacity: 1; -webkit-text-fill-color: #fff; }
.cl-send { width: 128px; height: 60px; flex: none; border-radius: 14px; font: 800 29px -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif; color: #3a2508; background: linear-gradient(#ffe7a6, #f0b844); border: 2px solid #fff3c9; cursor: pointer; }
.cl-send:disabled { filter: grayscale(.6) brightness(.72); }
.cl-send.glow { animation: sendglow 1.1s ease-in-out infinite; }
@keyframes sendglow { 50% { box-shadow: 0 0 46px rgba(255, 210, 120, .95); scale: 1.05; } }
.rm-voice { position: absolute; left: 716px; bottom: 24px; display: flex; flex-direction: column; gap: 16px; }
.rm-voice i { display: block; width: 76px; height: 76px; padding: 17px; border-radius: 50%; background: rgba(6, 8, 32, .72); border: 2px solid rgba(160, 190, 255, .36); color: #fff; }
.rm-go { position: absolute; left: 812px; bottom: 24px; width: 376px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.go-sub { font-size: 22px; font-weight: 600; color: rgba(255, 255, 255, .66); }
.go-btn { width: 100%; height: 116px; display: flex; align-items: center; justify-content: center; border-radius: 58px; font-size: 32px; font-weight: 800; color: rgba(255, 255, 255, .78); background: linear-gradient(180deg, rgba(60, 72, 150, .92), rgba(26, 32, 90, .96)); border: 3px solid rgba(160, 190, 255, .42); }
.go-btn.on { font-size: 36px; color: #3a2508; background: linear-gradient(180deg, #ffe7a6, #f0b844 55%, #d48d1e); border-color: #fff3c9; box-shadow: 0 0 40px rgba(255, 210, 120, .6); }

/* ---- 匹配成功 ---- */
.mt { position: absolute; inset: 0; z-index: 7; display: flex; align-items: center; justify-content: center; pointer-events: none; background: rgba(4, 6, 24, 0); transition: background .4s; }
.mt-on .mt { background: rgba(4, 6, 24, .45); }
.mt-band { width: 100%; height: 236px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; transform: scaleY(0); transition: transform .45s cubic-bezier(.34, 1.56, .64, 1);
  background: linear-gradient(90deg, transparent, rgba(240, 184, 68, .92) 18%, rgba(255, 231, 166, .98) 50%, rgba(240, 184, 68, .92) 82%, transparent); }
.mt-on .mt-band { transform: none; }
.mt-band b { font-size: 96px; font-weight: 900; color: #fff; letter-spacing: .12em; -webkit-text-stroke: 7px #5a3208; paint-order: stroke fill; text-shadow: 0 8px 0 rgba(90, 50, 8, .45); }
.mt-band span { font-size: 36px; font-weight: 800; color: #5a3208; }

.sc-off { position: absolute; inset: 0; z-index: 9; background: #020208; transition: opacity .7s; pointer-events: none; }
.screen-on .sc-off { opacity: 0; }
.glass { position: absolute; inset: 0; z-index: 10; pointer-events: none; border-radius: inherit; background: linear-gradient(115deg, rgba(255, 255, 255, .12) 0%, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0) 72%, rgba(255, 255, 255, .05) 100%); }
/*PHONE-END*/

/* ---- outside the phone (screen pixels) ---- */
/* his chat bubble: on the top layer (outside the phone screen), follows his slot, never smaller than 14px */
.gm-bub { position: absolute; left: 0; top: 0; z-index: 5; width: max-content; max-width: min(74vw, 15em); pointer-events: none; opacity: 0; transition: opacity .35s ease; font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif; font-weight: 800; line-height: 1.35; will-change: transform; }
.gm-bub.on { opacity: calc(1 - var(--out)); }
.gb-in { position: relative; padding: .4em .9em .42em; border-radius: 1.05em; background: #fff; color: #1d1840; box-shadow: 0 .3em 1em rgba(4, 6, 30, .42), 0 0 0 2px rgba(29, 24, 64, .08); transform-origin: var(--tx, 2em) 120%; }
.gm-bub.on .gb-in { animation: gbpop .5s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes gbpop { 0% { transform: scale(.55); } 100% { transform: none; } }
.gb-tx { display: block; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; }
.gb-tail { position: absolute; top: calc(100% - 1px); left: calc(var(--tx, 2em) - .52em); width: .86em; height: 1em; background: #fff; clip-path: polygon(0 0, 100% 0, 60% 100%); }
.gm-tap { position: absolute; left: 0; top: 0; z-index: 8; width: 0; height: 0; pointer-events: none; opacity: 0; transition: opacity .3s; }
.gm-tap.on { opacity: 1; }
.gt-ring { position: absolute; left: -30px; top: -30px; width: 60px; height: 60px; border-radius: 50%; border: 3px solid #fff2c4; box-shadow: 0 0 0 4px rgba(255, 158, 196, .6), 0 0 22px rgba(255, 220, 150, .9); animation: tapring 1.3s ease-out infinite; }
@keyframes tapring { 0% { transform: scale(.7); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }
.gt-label { position: absolute; left: 0; top: 38px; transform: translateX(calc(-50% + var(--dx, 0px))); white-space: nowrap; font-size: 15px; line-height: 1.4; color: var(--ink); background: var(--cream); border: 2.5px solid var(--ink); border-radius: 99px; padding: 3px 12px; box-shadow: 0 3px 0 rgba(42, 26, 18, .35); animation: tapbob 1.6s ease-in-out infinite; }
.gm-tap.above .gt-label { top: auto; bottom: 38px; }
@keyframes tapbob { 50% { translate: 0 -5px; } }
.gm-ach { position: absolute; z-index: 9; left: 50%; top: calc(max(8%, 68px) + var(--st)); width: min(92vw, 400px); display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 18px;
  background: linear-gradient(90deg, #ffe7a3, #ffd36b 60%, #ffc24a); border: 3px solid var(--ink); color: var(--ink); box-shadow: 0 4px 0 var(--ink), 0 0 30px rgba(255, 211, 107, .7);
  transform: translate(-50%, -30px) scale(.9); opacity: 0; transition: all .55s var(--ease-pop); pointer-events: none; }
.ach-on .gm-ach { opacity: 1; transform: translate(-50%, 0); }
.ach-badge { width: 44px; height: 44px; flex: none; border-radius: 50%; background: #fff4cc url(../assets/art/star_sparkle.webp) center / 80% no-repeat; border: 3px solid var(--ink); animation: spin 6s linear infinite; }
.ach-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.ach-tx > b { font-weight: normal; font-size: 17px; }
.ach-tx > span { font-size: 13px; opacity: .8; }
.ach-love { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.ach-love em { font-style: normal; font-size: 13px; color: #c2185b; }
.gl-bar { flex: 1; height: 12px; border-radius: 99px; background: rgba(255, 255, 255, .55); border: 2px solid var(--ink); overflow: hidden; }
.gl-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #ffb3d1, #ff5d93); }
.ach-love b { min-width: 30px; font-size: 16px; color: #c2185b; }
.gm-ach.max .ach-love b { font-size: 22px; line-height: 1; }
.gm-after { position: absolute; left: 0; right: 0; top: 58%; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0 20px; text-align: center; font-size: clamp(16px, 4.6vw, 20px); opacity: calc(1 - var(--out)); pointer-events: none; }
@media (min-aspect-ratio: 1/1) { .gm-after { top: 66%; } }
.gm-after > * { opacity: 0; }
.gm-cals { display: flex; align-items: center; gap: 16px; margin-top: 14px; }
.gm-cal { width: 106px; padding: 8px 6px 10px; text-align: center; display: flex; flex-direction: column; align-items: center; line-height: 1.1; border-radius: 12px 12px 14px 14px; }
.gm-cal::before { content: ''; position: absolute; left: -3px; right: -3px; top: -3px; height: 26px; background: var(--pink2); border: 3px solid var(--ink); border-radius: 12px 12px 0 0; }
.gm-cal em { position: relative; font-style: normal; font-size: 13px; color: var(--ink); z-index: 1; }
.gm-cal b { margin-top: 8px; font-size: 15px; color: var(--ink2); }
.gm-cal b small { font-family: var(--f-cute); font-size: 12px; }
.gm-cal strong { font-size: 46px; color: var(--rose); position: relative; }
.gm-cal strong::after { content: ''; position: absolute; inset: -4px -10px; border: 3px solid var(--pink2); border-radius: 50%; transform: rotate(-8deg); }
.gm-eq { font-size: 26px; color: var(--pink); animation: ld-beat 1.3s ease-in-out infinite; }
