:root {
  --green: #1f9d55;
  --green-d: #17864a;
  --ink: #1c2430;
  --muted: #667085;
  --card: #ffffff;
  --line: #e6ebf2;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #d5e4f5; color: var(--ink); font-family: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif; }
#view { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
#ui { position: fixed; inset: 0; pointer-events: none; }
/* `.sheet` 一定要给 auto：pointer-events 是继承属性，#ui 上的 none 会一路传下来，
   卡片自己的空档就变成"透明洞"，点下去穿透到背后的地图/桌面上。 */
#ui button, #ui input, #ui .panel, #ui .hit, #ui .sheet { pointer-events: auto; }
/* ⚠️ 一张图看懂这行的必要性：`.szmap` 是 `position: fixed; z-index: 1` 的整屏层。
   z-index 是"级别"，不是"谁写得靠后就谁在上面" —— 只要 `.szmap` 有 z-index:1，
   任何 z-index:auto 的兄弟都会被它压住，DOM 顺序再靠后也没用。
   表现就是：地图里点「怎么去」，出行卡其实已经开出来了（S.panel === "ride"），
   但它开在地图底下，玩家看到的是"点了没反应"。这个 bug 藏了很久就是这个原因。
   所以凡是"要浮在地图上面"的浮层，都得显式抬到 1 以上。 */
.panel, .sheet, .toasts, .banner, .coach, .hoverchip { z-index: 40; }

/* ── 地图页的浮层：让开右上角的天气+金额，并且跟地图一样是深色玻璃 ──
   原来 `.sheet` 和 `.szcard` 都从 top:64/74 起，正好压在 ¥ 那个药丸上，
   两个并排挤在右上角像贴错位置。往下让到 112，钱永远在最上面一层。 */
body[data-place="city"] .sheet,
body[data-place="city"] .panel,
body[data-place="city"] .szcard { top: 112px; }
/* 往下挪了 42px，高度上限也要跟着减，不然底部会顶出屏幕 */
body[data-place="city"] .panel { max-height: calc(100% - 132px); }
body[data-place="city"] .sheet {
  background: linear-gradient(180deg, rgba(15, 26, 46, .97), rgba(8, 15, 28, .98));
  border: 1px solid rgba(255, 255, 255, .14); color: #e8f1fc;
  box-shadow: 0 26px 60px rgba(0, 0, 0, .6);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
}
body[data-place="city"] .sheet-head > button { background: rgba(255, 255, 255, .1); color: #cfe0f5; }
body[data-place="city"] .sheet h2,
body[data-place="city"] .sheet .moneyline { color: #93a9c4; }
body[data-place="city"] .wchip { color: #bcd3ee; background: rgba(255, 255, 255, .09); }
body[data-place="city"] .ride { background: rgba(255, 255, 255, .055); border-color: rgba(255, 255, 255, .09); color: #e8f1fc; }
body[data-place="city"] .ride:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .2); }
body[data-place="city"] .ride.cheap { background: rgba(61, 186, 108, .16); border-color: rgba(61, 186, 108, .32); }
body[data-place="city"] .ride.fast { background: rgba(76, 155, 255, .16); border-color: rgba(76, 155, 255, .32); }
body[data-place="city"] .ride.off { background: rgba(255, 255, 255, .03); }
body[data-place="city"] .ride .rmain small { color: #8fa1b8; }
body[data-place="city"] .ride .rnum u { color: #cfe0f5; }
body[data-place="city"] .ride .rnum small { color: #7d90a8; }
body[data-place="city"] .ride .tag { color: #9df3c8; background: rgba(61, 186, 108, .2); }
body[data-place="city"] .ride .tag.fast { color: #a9d5ff; background: rgba(76, 155, 255, .2); }
body[data-place="city"] .minibuy { background: rgba(255, 255, 255, .14); color: #eaf3ff; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
button:focus-visible, input:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

.studio-top { position: absolute; top: 18px; left: 0; right: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.studio-top h1 {
  margin: 0; font-size: 14px; letter-spacing: 0.22em; font-weight: 800; color: #fff;
  background: rgba(16, 28, 42, .72); padding: 7px 16px; border-radius: 999px;
}
.steps { display: flex; gap: 6px; }
.steps i { width: 28px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.4); display: block; }
.steps i.on { background: #3dff9a; box-shadow: 0 0 8px rgba(61, 255, 154, .8); }

.back {
  position: absolute; top: 16px; left: 16px;
  width: 40px; height: 40px; border-radius: 999px; background: #fff;
  box-shadow: 0 6px 18px rgba(28, 40, 60, 0.12);
  font-size: 18px;
}
.name-pill {
  position: absolute; top: 68px; left: 16px;
  background: #fff; border-radius: 999px; padding: 8px 12px;
  box-shadow: 0 6px 18px rgba(28, 40, 60, 0.1);
  display: flex; align-items: center; gap: 6px;
}
.name-pill input { border: 0; width: 88px; background: transparent; }
.hint-drag {
  position: absolute; left: 18px; bottom: 20px;
  color: #123024; font-size: 13px; font-weight: 800;
  background: rgba(255,255,255,.86); border-radius: 999px; padding: 7px 12px;
}

.sheet {
  position: absolute; top: 64px; right: 22px; bottom: 22px; width: min(420px, calc(100% - 32px));
  background: var(--card); border-radius: 28px;
  box-shadow: 0 18px 50px rgba(28, 40, 60, 0.14);
  padding: 18px 16px 16px; display: flex; flex-direction: column; gap: 10px;
  overflow: auto;
}
/* 出行卡要给底部的 dock 让位，否则最后一行被挡住 */
.sheet.ridecard { bottom: 118px; gap: 8px; }
.sheet h2 { margin: 0; font-size: 15px; color: #3e8fd0; font-weight: 600; }
.choices { display: flex; flex-direction: column; gap: 8px; }
.choices.grid { display: grid; grid-template-columns: 1fr 1fr; }
/* 性别：两张大一点的 3D 预览 */
.choices.grid.gender { gap: 10px; margin-bottom: 4px; }
.choices.grid.gender .opt { padding: 10px 12px; }
.choices.grid.gender .opt .opic3d { width: 54px; height: 54px; }
.choices.grid.gender .opt .opic3d img { width: 100%; height: 100%; object-fit: contain; }
.choices.grid.gender .opt b { font-size: 15px; }
.opt {
  text-align: left; border-radius: 16px; padding: 12px; background: #f6f8fb; border: 2px solid transparent;
}
.opt.on { border-color: var(--green); background: #eefbf3; }
.opt:disabled { opacity: 0.48; cursor: not-allowed; }
.opt b { display: block; margin-bottom: 2px; }
.opt span { color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch { width: 36px; height: 36px; border-radius: 999px; border: 3px solid #fff; box-shadow: 0 0 0 1px #d5dde8; }
.swatch.on { box-shadow: 0 0 0 2px var(--green); }
.row-label { font-size: 12px; color: var(--muted); margin-top: 4px; }
.go {
  margin-top: auto; background: #1c2430; color: #fff; border-radius: 999px;
  padding: 14px; font-weight: 650; font-size: 16px;
}
.go:hover { background: #000; }
.go:disabled { background: #c5ced8; cursor: not-allowed; }

/* 城市视图里 3D canvas 是后插进来的兄弟节点，会盖住没给 z-index 的 HUD，
   于是时钟、现金、天气钮全被埋在地图底下。HUD 一律抬到 700。 */
.hud-top, .toast, .need-dock, .actions, .viewtoggle, .panel, .hoverchip, .coach { pointer-events: auto; }
.hud-top {
  position: absolute; top: 14px; left: 12px; right: 12px; z-index: 700;
  /* 整条顶栏跟左边的需求环一样高。点事件若留在这块空白上，会把布置面板最上面的「样板」吃掉。 */
  pointer-events: none;
  display: flex; justify-content: space-between; align-items: flex-start;
  /* 以前三个元素紧挨着，时钟、天气、钱糊成一坨。现在互相让开 10px，
     并且钱在最右自成一格，不会被时钟那一行挤到屏幕外。 */
  gap: 10px;
  background: transparent; box-shadow: none; padding: 0;
}
#ui .hud-top.hit { pointer-events: none; }
#ui .hud-top > * { pointer-events: auto; }
.where, .cash {
  background: #1c2430; color: #fff; border-radius: 14px; padding: 8px 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,.18);
}
.where { text-align: left; }
.where b { display: block; font-size: 15px; font-variant-numeric: tabular-nums; }
.where span { display: block; margin-top: 2px; color: #c5ced8; font-size: 12px; font-weight: 600; }
.where .wmain { min-width: 0; }
.where .wmain span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cash { font-size: 16px; flex: 0 0 auto; }
.dot { width: 8px; height: 8px; border-radius: 99px; display: inline-block; background: #3dba6c; margin-right: 4px; }
.hud-left .toast { position: relative; z-index: 2; width: max-content; max-width: min(280px, 72vw); }
.toast {
  background: linear-gradient(100deg, rgba(22, 32, 48, .96), rgba(12, 18, 28, .94));
  color: #f6f1e6; border: 1px solid rgba(240, 193, 74, .45); border-radius: 16px; padding: 8px 8px 8px 12px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .08);
  display: flex; justify-content: space-between; gap: 8px; align-items: center;
}
.toast p { margin: 0; font-size: 13px; font-weight: 800; }
.toast button { background: #f0c14a; color: #2a1c08; border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 900; }
.need-dock {
  position: absolute; left: 14px; bottom: 78px; display: flex; gap: 6px;
  background: rgba(255,255,255,0.94); padding: 8px; border-radius: 16px;
  box-shadow: 0 8px 24px rgba(20,30,50,0.12);
}
.need-dock button { width: 28px; height: 10px; border-radius: 99px; }
.actions { position: absolute; right: 14px; bottom: 78px; display: flex; flex-direction: column; gap: 8px; }
.viewtoggle { position: absolute; left: 14px; top: 78px; }
.viewtoggle button, .actions button, .mini {
  background: #fff; border-radius: 999px; padding: 10px 14px;
  box-shadow: 0 8px 24px rgba(20,30,50,0.12); font-weight: 600;
}
.panel {
  position: absolute; top: 70px; right: 16px; width: min(380px, calc(100% - 24px));
  max-height: calc(100% - 110px); overflow: auto;
  background: #fff; border-radius: 24px; padding: 14px;
  box-shadow: 0 18px 50px rgba(20,30,50,0.2);
}
.panel h3 { margin: 0 0 8px; }
.panel .opt { width: 100%; }
.tabs { display: flex; gap: 6px; margin-bottom: 8px; }
.tabs button { padding: 6px 10px; border-radius: 999px; background: #f2f4f7; font-size: 13px; }
.tabs button.on { background: #e5f6eb; color: var(--green-d); font-weight: 700; }
.moneyline { color: var(--muted); font-size: 12.5px; margin: 0 0 8px; }
.hoverchip {
  position: absolute; transform: translate(-50%, -140%);
  background: #1c2430; color: #fff; font-size: 12px; padding: 4px 8px; border-radius: 8px;
  pointer-events: none;
}
.coach {
  position: absolute; left: 14px; top: calc(var(--hud-h, 160px) + 10px); bottom: auto;
  transform: none; max-width: 232px;
  background: rgba(28,36,48,0.9); color: #fff; padding: 8px 12px; border-radius: 14px;
  font-size: 13px; line-height: 1.45; text-align: left;
}
body[data-place="city"] .coach {
  top: auto; bottom: 108px; left: 50%; right: auto;
  transform: translateX(-50%);
  max-width: min(440px, calc(100% - 32px));
  text-align: center; z-index: 4;
}
.needsheet { display: flex; flex-direction: column; gap: 8px; }
.needrow { display: grid; grid-template-columns: 52px 1fr 32px; gap: 8px; align-items: center; font-size: 13px; }
.needrow .bar { height: 8px; background: #eef1f5; border-radius: 99px; overflow: hidden; }
.needrow .bar span { display: block; height: 100%; }
.banner {
  position: absolute; left: 14px; top: calc(var(--hud-h, 168px) + 86px); right: auto;
  transform: none; max-width: 240px;
  background: rgba(28, 36, 48, 0.92); color: #fff;
  padding: 8px 12px; border-radius: 14px; font-size: 13px; font-weight: 700;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .28);
}
.banner.up { top: calc(var(--hud-h, 168px) + 86px); }

.fit {
  position: absolute; top: 78px; right: 12px; bottom: 76px; width: min(460px, calc(100% - 20px));
  background: linear-gradient(180deg, rgba(24, 30, 44, .96), rgba(12, 16, 26, .96));
  color: #f6f1e6;
  border: 1px solid rgba(240, 193, 74, .22);
  border-radius: 22px; z-index: 712; overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .06);
  pointer-events: auto;
  backdrop-filter: blur(12px);
}
.fit header { display: flex; align-items: center; gap: 8px; padding: 12px 12px 8px; }
.fit header b { font-size: 18px; color: #fff; }
.fit header button { margin-left: auto; background: #f0c14a; color: #2a1c08; border-radius: 999px; padding: 6px 12px; font-weight: 800; }
.fitbody { flex: 1; display: flex; min-height: 0; }
.fitcats {
  width: 72px; flex: none; display: flex; flex-direction: column; gap: 6px;
  padding: 4px 8px 12px; overflow: auto;
}
.fitcats button {
  border-radius: 12px; padding: 11px 4px; font-size: 13px; font-weight: 800;
  background: rgba(255, 255, 255, .07); color: #e4ddd0;
  border: 1px solid rgba(255, 255, 255, .08);
}
.fitcats button.on { background: #f0c14a; color: #2a1c08; border-color: transparent; box-shadow: 0 6px 16px rgba(240, 193, 74, .22); }
.fitask {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin: 0 10px 10px; padding: 10px 12px;
  background: #1a1408; border-radius: 14px;
  border: 1px solid rgba(240, 193, 74, .45);
}
.fitask b { color: #fff; font-size: 14px; }
.fitask span { flex: 1 1 140px; color: #d7c4a4; font-size: 12px; line-height: 1.4; }
.fitask button { border-radius: 999px; padding: 7px 14px; font-weight: 800; }
.fitask button:first-of-type { background: #f0c14a; color: #2a1c08; }
.fitask button:last-of-type { background: transparent; color: #c9c2b6; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.flea {
  position: absolute; top: 78px; right: 12px; width: min(380px, calc(100% - 24px));
  max-height: min(72vh, 560px);
  background: linear-gradient(180deg, rgba(24, 30, 44, .96), rgba(12, 16, 26, .96));
  color: #f6f1e6; border: 1px solid rgba(240, 193, 74, .22);
  border-radius: 22px; z-index: 40; overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .45);
  pointer-events: auto;
}
.flea header { display: flex; align-items: center; gap: 8px; padding: 12px 12px 4px; }
.flea header b { font-size: 18px; color: #fff; }
.flea header button { margin-left: auto; background: #f0c14a; color: #2a1c08; border-radius: 999px; padding: 6px 12px; font-weight: 800; }
.fleatip { margin: 0; padding: 6px 14px 8px; color: #c9c2b6; font-size: 12.5px; line-height: 1.45; }
.flealist { overflow: auto; display: flex; flex-direction: column; gap: 8px; padding: 0 12px 12px; }
.flealist .good { flex-direction: row; align-items: center; gap: 10px; }
.flealist .good .thumb { width: 72px; flex: none; aspect-ratio: 1; }
.fitpane { flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: 0; }
.fitgoods { flex: 1; overflow: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 10px 10px 4px; align-content: start; align-items: start; }
.fitgoods.packs { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.good { background: rgba(255, 255, 255, .06); border-radius: 16px; padding: 8px; text-align: left; display: flex; flex-direction: column; gap: 6px; width: auto; min-width: 0; color: #f6f1e6; border: 1px solid rgba(255, 255, 255, .05); }
.good.on { outline: 2px solid #f0c14a; }
.good .thumb { display: block; height: auto; aspect-ratio: 88 / 64; border-radius: 12px; overflow: hidden; background: #2a241c; }
.good .thumb svg, .good .thumb img { width: 100%; height: 100%; display: block; object-fit: cover; }
.good .meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.good b { font-size: 14px; }
.good small, .tier { color: #b7b1a6; font-size: 11px; font-weight: 800; }
.good .say { color: #c9c2b6; font-weight: 600; font-size: 11px; line-height: 1.35; }
.tier.t1 { color: #e7c9a0; }
.tier.t2 { color: #8ec8ef; }
.tier.t3 { color: #f0c14a; }
.good em { font-style: normal; color: #f0c14a; font-weight: 800; font-size: 13px; }
.good.wide { min-height: 0; }
.good.pack {
  flex: 0 0 auto; width: 100%; min-height: 112px; height: auto; overflow: hidden;
  flex-direction: row; gap: 10px; align-items: center; padding: 8px;
}
.packstage {
  width: 92px; height: 92px; flex: none; align-self: center; border-radius: 12px; position: relative; overflow: hidden;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .16) 1px, transparent 1px) 0 0 / 16px 16px,
    linear-gradient(rgba(0, 0, 0, .16) 1px, transparent 1px) 0 0 / 16px 16px,
    var(--floor, #c9844a);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18);
}
.packstage .pk { position: absolute; border-radius: 3px; background: #f6f1e6; box-shadow: 0 2px 0 rgba(0, 0, 0, .18); }
.packstage .k-bed { left: 10%; top: 18%; width: 34%; height: 58%; background: #f4efe4; }
.packstage .k-sofa { left: 48%; top: 22%; width: 40%; height: 28%; background: #3d6b4f; }
.packstage .k-stool, .packstage .k-desk { left: calc(12% + var(--i) * 16%); bottom: 12%; width: 16%; height: 16%; background: #c4533a; border-radius: 50%; }
.packstage .k-box, .packstage .pk:not([class*="k-"]) { right: 10%; bottom: 14%; width: 18%; height: 22%; background: #d7c4a4; }
.packbody { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; text-align: left; }
.packblurb {
  color: #c9c2b6; font-weight: 600; font-size: 12px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.packbuy { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.packbuy > b { color: #f0c14a; font-size: 14px; }
.packbar { flex: 1; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.packbar i { display: block; height: 100%; background: linear-gradient(90deg, #c9842a, #f0c14a); border-radius: 99px; }
.packbuy small { color: #d7c4a4; font-weight: 700; }
.fit p { margin: 0; padding: 8px 12px 12px; color: #c9c2b6; font-size: 12.5px; line-height: 1.45; }
.homeacts {
  position: absolute; left: 12px; right: auto; transform: none;
  bottom: calc(var(--above-dock, 100px) + 118px);
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  z-index: 6; pointer-events: auto;
}
.homeacts button {
  display: flex; flex-direction: row; align-items: center; gap: 6px;
  min-width: 0; padding: 6px 12px 6px 8px; border-radius: 999px;
  background: linear-gradient(180deg, rgba(32, 40, 58, .94), rgba(14, 18, 28, .95));
  color: #f6f1e6; border: 1px solid rgba(240, 193, 74, .28);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255, 255, 255, .08);
  font-weight: 800; font-size: 11px;
}
.homeacts button i { font-style: normal; font-size: 16px; color: #f0c14a; line-height: 1.1; }
.homeacts button.on { background: linear-gradient(180deg, #f0c14a, #c9842a); color: #2a1c08; border-color: transparent; }
.homeacts button.on i { color: #2a1c08; }
.selbar {
  position: absolute; left: 12px; z-index: 6; pointer-events: auto;
  bottom: 78px; display: flex; gap: 8px; align-items: center;
  border-radius: 999px; padding: 8px 10px 8px 14px;
  background: linear-gradient(100deg, rgba(22, 32, 48, .96), rgba(12, 18, 28, .94));
  color: #f6f1e6; border: 1px solid rgba(240, 193, 74, .4);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .4);
}
.selbar b { font-size: 14px; }
.selbar span { color: #f0d7a8; font-size: 12px; }
.selbar button {
  background: #f0c14a; color: #2a1c08; border-radius: 999px; padding: 6px 10px; font-weight: 800; font-size: 13px;
}
.settle-bg { position: absolute; inset: 0; background: transparent; }
.settle-wrap .settle { position: relative; z-index: 1; }
.prevue { width: min(340px, 100%); padding: 18px 18px 14px; }
.prevue h3 { margin: 8px 0 0; font-size: 22px; line-height: 1.25; color: #fff; }
.prevue > p { margin: 8px 0 0; font-size: 13.5px; line-height: 1.55; color: #d5deea; }
.prevue .squip { margin: 6px 0 12px; }
.prevue .evopts button:disabled { opacity: 0.45; cursor: not-allowed; }

.dock {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  display: flex; background: #1c2430; border-radius: 16px; z-index: 4;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
/* ⚠️ 这条是上一版 dock 的残留。它 .dock button 的优先级（0,1,1）比
   后面 .dockbtn（0,1,0）高，于是按钮被硬塞了 12px 上下内边距，
   整条 dock 从 60px 高撑到 89px，压住了左下角的今日条。
   排除掉 .dockbtn，让它各走各的。 */
.dock button:not(.dockbtn) { flex: 1; padding: 12px 8px; color: #9aa3ad; font-weight: 700; border-radius: 16px; }
.dock button.on { color: #fff; }

.maptools {
  position: absolute; top: 58px; right: 10px;
  display: flex; flex-direction: column; gap: 8px; align-items: flex-end; z-index: 3;
}
.maptools button, .legend {
  background: #fff; border-radius: 999px; padding: 8px 12px;
  box-shadow: 0 8px 20px rgba(20,30,50,.12); font-weight: 700; font-size: 13px;
}
.legend { color: #3d4a5c; font-weight: 650; white-space: nowrap; }
.pins { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.pin, .dlabel { position: absolute; left: 0; top: 0; display: flex; flex-direction: row; align-items: center; gap: 4px; }
.dlabel {
  pointer-events: none; color: #fff; font-weight: 800; font-size: 13px;
  letter-spacing: 0.12em; text-shadow: 0 1px 2px rgba(0,0,0,.45);
}
.pin i {
  width: 9px; height: 9px; border-radius: 2px; background: #0c7a42; flex: none;
  box-shadow: 0 0 0 2px rgba(255,255,255,.85);
}
.pin.ln-4 i { background: #d6453d; }
.pin.ln-5 i { background: #3d6bba; }
.pin.ln-x i { background: #f2c200; }
.pin.ln-w i { background: #6ea35a; }
.pin.ln-off i { background: #9aa3ad; }
.pin.on i { width: 12px; height: 12px; }
.pin span {
  background: transparent; color: #fff; font-size: 12px; font-weight: 800;
  text-shadow: 0 1px 2px rgba(0,0,0,.7); padding: 0;
}
.pincard {
  position: absolute; left: 50%; bottom: 76px; transform: translateX(-50%);
  width: min(420px, calc(100% - 24px)); background: #fff; border-radius: 22px;
  padding: 14px; box-shadow: 0 16px 40px rgba(20,30,50,.2); z-index: 4;
}
.pincard b { display: block; margin-bottom: 4px; }
.pincard p { margin: 0 0 10px; color: #667085; font-size: 13.5px; line-height: 1.45; }
.pincard .go { width: 100%; }

.phone-wrap {
  position: absolute; inset: 0; z-index: 780;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  pointer-events: none; overflow: hidden;
}
.phone-stack {
  position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 10px;
  transform-origin: center center; will-change: transform;
}
.phone-wrap > * { pointer-events: auto; }
.phone-dim {
  position: absolute; inset: 0; border: 0; cursor: pointer;
  background: radial-gradient(ellipse at 50% 38%, rgba(12, 20, 36, .35), rgba(4, 8, 16, .82));
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.xclose { background: #fff; border-radius: 999px; padding: 8px 14px; font-weight: 800; }
/* ══════════ 手机外壳 ══════════ */
.device {
  position: relative;
  width: 400px; height: 760px; flex: none;
  background: linear-gradient(155deg, #4a515c 0%, #1a1e24 42%, #0a0c10 100%);
  border-radius: 44px; padding: 7px;
  box-shadow:
    0 40px 90px rgba(0, 0, 0, .55),
    inset 0 0 0 1px rgba(255, 255, 255, .12),
    inset 0 -2px 8px rgba(0, 0, 0, .35);
}
.dev-rim {
  pointer-events: none; position: absolute; inset: 5px; border-radius: 40px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.dev-btn { position: absolute; border-radius: 2px; background: linear-gradient(180deg, #5c636d, #353b44); pointer-events: none; }
.dev-btn.vol-up { left: -2px; top: 128px; width: 3px; height: 28px; }
.dev-btn.vol-dn { left: -2px; top: 168px; width: 3px; height: 28px; }
.dev-btn.pwr { right: -2px; top: 148px; width: 3px; height: 46px; }
.dev-screen {
  position: relative; height: 100%; border-radius: 38px; overflow: hidden;
  background: #0e1218; color: #1c2430; display: flex; flex-direction: column;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .65);
}
.dev-island {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 28px; border-radius: 99px; background: #050608; z-index: 8;
  display: grid; place-items: center; pointer-events: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .04);
}
.dev-island i { width: 8px; height: 8px; border-radius: 99px; background: #121820; box-shadow: inset 0 0 0 1px #252d38; }
.dev-status {
  flex: none; display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px 6px; min-height: 44px; color: #fff; font-size: 12px; font-weight: 800;
  position: relative; z-index: 5;
}
.dev-screen.on-home .dev-status { background: transparent; color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, .45); }
.dev-screen.in-app .dev-status {
  background: #f2f3f5; color: #1c2430; padding-top: 38px; padding-bottom: 4px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .06);
}
.dev-screen.in-app .dev-island { background: #050608; }
.dev-status .sright { display: flex; align-items: center; gap: 6px; }
.sig { display: flex; align-items: flex-end; gap: 1.5px; height: 10px; }
.sig em { width: 3px; background: currentColor; border-radius: 1px; display: block; opacity: .95; }
.sig em:nth-child(1) { height: 4px; }
.sig em:nth-child(2) { height: 6px; }
.sig em:nth-child(3) { height: 8px; }
.sig em:nth-child(4) { height: 10px; }
.dev-status .wifi {
  width: 14px; height: 10px; position: relative;
  border: 2px solid currentColor; border-top: 0; border-radius: 0 0 8px 8px; opacity: .9;
}
.dev-status .wifi::before {
  content: ""; position: absolute; left: 50%; bottom: 1px; transform: translateX(-50%);
  width: 4px; height: 4px; border-radius: 99px; background: currentColor;
}
.dev-status .bat {
  width: 24px; height: 11px; border: 1.5px solid currentColor; border-radius: 3px;
  position: relative; padding: 1.5px; opacity: .92;
}
.dev-status .bat::after {
  content: ""; position: absolute; right: -3px; top: 3px; width: 2px; height: 4px;
  border-radius: 0 1px 1px 0; background: currentColor;
}
.dev-status .bat em { display: block; height: 100%; background: #3dff9a; border-radius: 1.5px; transition: width .3s; }
.dev-status .bat.low em { background: #ff6b6b; }
.dev-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.dev-screen.on-home .dev-body { margin-top: -38px; padding-top: 38px; }
.dev-home {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  width: 132px; height: 28px; z-index: 7; display: grid; place-items: center;
}
.dev-home button {
  width: 132px; height: 28px; border-radius: 99px; background: transparent; cursor: pointer;
}
.dev-home button::after {
  content: ""; display: block; width: 118px; height: 4px; margin: 0 auto; border-radius: 99px;
  background: rgba(255, 255, 255, .72); box-shadow: 0 0 8px rgba(255, 255, 255, .25);
  transition: transform .15s, opacity .15s;
}
.dev-screen.in-app .dev-home button::after { background: rgba(28, 36, 48, .35); box-shadow: none; }
.dev-home button:active::after { transform: scaleX(.88); opacity: .7; }
.dev-close {
  position: relative; z-index: 1; display: flex; align-items: center; gap: 6px;
  background: rgba(22, 30, 44, .92); color: #f6f1e6; border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px; padding: 8px 18px 8px 14px; font-weight: 800; font-size: 13px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .45);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.dev-close-ico {
  width: 18px; height: 18px; border-radius: 99px; background: rgba(255, 255, 255, .12);
  position: relative; flex: none;
}
.dev-close-ico::after {
  content: ""; position: absolute; left: 50%; top: 7px; transform: translateX(-50%);
  border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid #f6f1e6;
}

/* 主屏 */
.home {
  flex: 1; min-height: 0; display: flex; flex-direction: column;
  padding: 4px 12px 38px; color: #fff; position: relative; overflow: hidden;
}
.home-bg {
  background:
    radial-gradient(ellipse 120% 80% at 50% -10%, rgba(255, 255, 255, .12), transparent 55%),
    linear-gradient(180deg, #1a3a6e 0%, #0f2447 52%, #081528 100%);
}
.home-bg.k-rain, .home-bg.k-storm, .home-bg.k-shower, .home-bg.k-typhoon {
  background:
    radial-gradient(ellipse 90% 60% at 80% 0%, rgba(120, 160, 200, .18), transparent 50%),
    linear-gradient(180deg, #2a3f58 0%, #152232 55%, #0a121c 100%);
}
.home-bg.k-damp, .home-bg.k-gray, .home-bg.k-muggy {
  background: linear-gradient(180deg, #3a4a5c 0%, #243040 55%, #141c28 100%);
}
.home-bg.k-sun, .home-bg.k-breeze {
  background:
    radial-gradient(ellipse 100% 70% at 30% 0%, rgba(255, 210, 120, .22), transparent 55%),
    linear-gradient(180deg, #2a4a7a 0%, #16325a 52%, #0c1a30 100%);
}
.home-head { margin-top: 6px; padding: 0 2px; }
.home-loc { margin: 0; font-size: 22px; font-weight: 900; letter-spacing: .02em; line-height: 1.15; text-shadow: 0 4px 16px rgba(0, 0, 0, .35); }
.home-sub { margin: 3px 0 0; font-size: 11px; opacity: .82; font-weight: 700; }
.home-warn {
  margin: 8px 0 0; padding: 6px 10px; border-radius: 12px; font-size: 11px; font-weight: 800;
  background: rgba(255, 90, 90, .22); border: 1px solid rgba(255, 120, 120, .35);
}
.homegrid { margin-top: 12px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 4px; }
.apic { display: flex; flex-direction: column; align-items: center; gap: 4px; -webkit-tap-highlight-color: transparent; min-width: 0; }
.ap-ico {
  position: relative; width: 50px; height: 50px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255, 255, 255, .22);
  transition: transform .16s cubic-bezier(.2, 1.6, .4, 1), box-shadow .16s;
}
.ap-ico svg { width: 30px; height: 30px; display: block; flex: none; }
.ap-name { font-size: 10px; color: #fff; font-weight: 700; text-shadow: 0 1px 4px rgba(0, 0, 0, .55); max-width: 60px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; }
.ap-badge {
  position: absolute; top: -4px; right: -4px; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 99px; background: #ff3b30; color: #fff; font-size: 9px; font-weight: 900;
  display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0, 0, 0, .35); line-height: 1;
}
.apic:active .ap-ico { transform: scale(.9); }
.apic:hover .ap-ico { transform: translateY(-2px) scale(1.03); }
.homedock {
  margin-top: auto; padding: 8px 8px 6px; border-radius: 22px;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px 4px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .28);
}
.homewidget { margin-top: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.disclaim {
  position: fixed; left: 0; right: 0; bottom: 6px; z-index: 3;
  text-align: center; font-size: 10px; line-height: 1.5; font-weight: 600;
  color: rgba(255, 255, 255, 0.45); text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  pointer-events: none; padding: 0 24px;
}
.wg {
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left; color: #fff;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 16px; padding: 10px 10px 8px; min-height: 84px;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: transform .14s, background .14s, border-color .14s;
}
.wg-wx { grid-row: span 1; }
.wg-cash { }
.wg-ico { font-style: normal; font-size: 20px; line-height: 1; filter: drop-shadow(0 2px 4px rgba(0,0,0,.3)); }
.wg-ico-cash {
  width: 22px; height: 22px; border-radius: 6px; background: linear-gradient(135deg, #ffd978, #f0c14a);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45);
  position: relative;
}
.wg-ico-cash::after {
  content: ""; position: absolute; inset: 5px 6px; border: 2px solid #7a5208; border-radius: 3px;
}
.wg-main { display: flex; flex-direction: column; gap: 0; width: 100%; }
.wg:hover { background: rgba(255, 255, 255, .2); border-color: rgba(255, 255, 255, .28); transform: translateY(-2px); }
.wg:active { transform: scale(.97); }
.wg b { display: block; font-size: 11px; opacity: .85; font-weight: 800; }
.wg em { display: block; font-style: normal; font-size: 22px; font-weight: 900; margin: 1px 0 0; font-variant-numeric: tabular-nums; }
.wg small { font-size: 10px; opacity: .72; line-height: 1.35; margin-top: auto; }

/* APP 外壳 */
.app { flex: 1; min-height: 0; display: flex; flex-direction: column; background: #f2f3f5; }
[data-fxk^="app:"].fxin { animation: fxAppIn .34s cubic-bezier(.2, 1.35, .4, 1) both; }
@keyframes fxAppIn {
  0% { opacity: 0; transform: translateX(18px) scale(.98); }
  100% { opacity: 1; transform: none; }
}
.app-bar {
  flex: none; display: flex; align-items: center; gap: 4px;
  background: rgba(255, 255, 255, .96); color: #1c2430;
  padding: 8px 12px 10px; border-bottom: 1px solid rgba(0, 0, 0, .06);
  box-shadow: 0 4px 16px rgba(20, 30, 50, .06);
}
.dev-screen.in-app .app-bar { padding-top: 4px; margin-top: -2px; }
.app-bar b { flex: 1; font-size: 16px; font-weight: 800; text-align: center; padding-right: 22px; }
.app-bar b s { display: none; }
.ab-back {
  color: #2a5bd7; font-size: 28px; line-height: 1; width: 32px; height: 32px; text-align: center;
  border-radius: 99px; flex: none;
}
.ab-back:active { background: rgba(42, 91, 215, .12); }
.app-body { flex: 1; min-height: 0; overflow: auto; -webkit-overflow-scrolling: touch; }
.app-page { padding: 10px 12px 40px; }

/* ══════════ 深聊 ══════════ */
.wx { flex: 1; min-height: 0; display: flex; flex-direction: column; background: #ededed; }
.wx-search { margin: 8px 12px 6px; padding: 7px; border-radius: 8px; background: #fff; color: #9aa1ab; font-size: 12.5px; text-align: center; }
.wx-list { flex: 1; min-height: 0; overflow: auto; background: #fff; }
.wx-sep { padding: 7px 14px; font-size: 11px; font-weight: 800; color: #8a93a0; background: #f5f6f8; }
.chat s.online { width: 7px; height: 7px; border-radius: 99px; background: #3dba6c; display: inline-block; }
.wx-tab { flex: none; display: flex; border-top: 1px solid #e3e5e8; background: #f7f7f7; }
.wx-tab b { flex: 1; text-align: center; padding: 9px 0; font-size: 11px; color: #8a93a0; }
.wx-tab b.on { color: #07c160; }
.thread-body { padding: 12px 10px; display: flex; flex-direction: column; gap: 10px; }
.bubrow { display: flex; gap: 8px; align-items: flex-start; }
.bubrow i { width: 32px; height: 32px; border-radius: 6px; color: #fff; display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 13px; flex: none; }
.bubrow .bub { margin: 0; max-width: 74%; background: #fff; border-radius: 4px 12px 12px 12px; padding: 8px 11px; font-size: 13.5px; line-height: 1.5; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.07); overflow-wrap: anywhere; }
.bubrow.me { flex-direction: row-reverse; }
.bubrow.me .bub { background: #95ec69; border-radius: 12px 4px 12px 12px; }
.wx-input { flex: none; display: flex; gap: 6px; align-items: center; padding: 8px; border-top: 1px solid #e3e5e8; background: #f7f7f7; }
.wx-input input { flex: 1; min-width: 0; border: 0; border-radius: 8px; padding: 8px 10px; background: #fff; font-size: 13.5px; }
.wx-input input:focus { outline: 2px solid #07c160; }
.wx-voice { width: 34px; height: 34px; border-radius: 99px; background: #fff; color: #5a6675; font-weight: 900; flex: none; }
.wx-send { flex: none; background: #07c160; color: #fff; border-radius: 8px; padding: 8px 14px; font-weight: 800; font-size: 13px; }
.card-act { align-self: stretch; background: #fffdf5; border-radius: 12px; padding: 10px 12px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.07); }
.card-act p { margin: 0; font-size: 13px; line-height: 1.5; }
.card-act .row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.card-act .row button { background: #1c2430; color: #fff; border-radius: 999px; padding: 6px 12px; font-size: 12.5px; font-weight: 700; }
.goods { align-self: stretch; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.good-mini { background: #fff; border-radius: 10px; padding: 8px; text-align: left; display: flex; flex-direction: column; gap: 2px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.07); }
.good-mini b { font-size: 12.5px; }
.good-mini span { font-size: 11px; color: #8a93a0; }
.good-mini.on { background: #eefbf3; }
.good-mini:disabled { opacity: 0.5; }

/* ══════════ 饭点 ══════════ */
.mt-head { background: #fff; border-radius: 12px; padding: 10px; }
.mt-search { background: #f3f4f6; border-radius: 99px; padding: 7px 12px; font-size: 12.5px; color: #8a93a0; }
.mt-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px; }
.mt-cat { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; color: #4a5566; }
.mt-cat i { font-style: normal; font-size: 21px; }
.mt-list { margin-top: 10px; background: #fff; border-radius: 12px; overflow: hidden; }
.mt-item { display: flex; gap: 10px; align-items: center; padding: 10px; border-bottom: 1px solid #f0f1f3; }
.mt-thumb { width: 48px; height: 48px; border-radius: 10px; display: grid; place-items: center; font-size: 24px; font-style: normal; flex: none; }
.mt-main { flex: 1; min-width: 0; }
.mt-main b { display: block; font-size: 13.5px; }
.mt-main small { display: block; font-size: 11px; color: #8a93a0; }
.mt-tag { display: inline-block; margin-top: 3px; font-size: 10.5px; color: #c4533a; background: #fff2ee; border-radius: 4px; padding: 2px 5px; }
.mt-buy { text-align: right; flex: none; }
.mt-buy em { display: block; font-style: normal; font-weight: 800; color: #ff5000; font-size: 14px; }
.mt-buy button { margin-top: 4px; background: #ffd100; color: #3d2c00; border-radius: 999px; padding: 5px 12px; font-size: 12px; font-weight: 800; }
.mt-buy button:disabled { background: #eee; color: #bbb; }
.mt-foot, .tb-foot, .vd-foot, .bs-foot { margin-top: 10px; font-size: 11px; color: #8a93a0; text-align: center; }

/* ══════════ 淘街 ══════════ */
.tb-head { background: #fff; border-radius: 12px; padding: 10px; }
.tb-search { background: #fff2ec; border-radius: 99px; padding: 7px 12px; font-size: 12.5px; color: #ff5000; }
.tb-tabs { display: flex; gap: 14px; margin-top: 10px; font-size: 12.5px; color: #8a93a0; }
.tb-tabs b.on { color: #ff5000; font-weight: 800; }
.tb-grid { margin-top: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tb-card { background: #fff; border-radius: 12px; padding: 8px; text-align: left; display: flex; flex-direction: column; gap: 3px; }
.tb-img { height: 72px; border-radius: 8px; display: grid; place-items: center; font-size: 26px; font-style: normal; }
.tb-card b { font-size: 12.5px; }
.tb-card em { font-style: normal; color: #ff5000; font-weight: 800; font-size: 14px; }
.tb-card small { font-size: 10.5px; color: #8a93a0; }
.tb-card:disabled { opacity: 0.55; }

/* ══════════ 煲剧 ══════════ */
.vd-tabs { display: flex; gap: 14px; font-size: 12.5px; color: #8a93a0; padding: 2px 2px 8px; }
.vd-tabs b.on { color: #2a5bd7; font-weight: 800; }
.vd-hero { background: linear-gradient(120deg, #2a5bd7, #16245c); color: #fff; border-radius: 12px; padding: 14px; }
.vd-hero span { font-size: 11px; opacity: 0.8; }
.vd-hero b { display: block; font-size: 17px; margin-top: 2px; }
.vd-hero small { display: block; font-size: 11.5px; opacity: 0.85; margin-top: 3px; }
.vd-list { margin-top: 10px; background: #fff; border-radius: 12px; overflow: hidden; }
.vd-item { display: flex; align-items: center; gap: 10px; padding: 10px; border-bottom: 1px solid #f0f1f3; }
.vd-thumb {
  width: 40px; height: 40px; border-radius: 8px; background: #1c2430; color: #fff;
  display: grid; place-items: center; font-size: 10px; font-weight: 800; flex: none;
}
.vd-play::after {
  content: ""; width: 0; height: 0; margin-left: 3px;
  border-top: 7px solid transparent; border-bottom: 7px solid transparent; border-left: 11px solid #fff;
}
.vd-vip { font-size: 10px; letter-spacing: .04em; }
.media-view { display: flex; flex-direction: column; gap: 10px; padding-bottom: 36px; }
.media-stage {
  background: #000; border-radius: 12px; overflow: hidden; aspect-ratio: 16/10;
  display: grid; place-items: center;
}
.media-stage video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.media-audio { aspect-ratio: auto; padding: 24px 12px; background: linear-gradient(160deg, #2a2048, #121820); }
.media-disc {
  width: 88px; height: 88px; border-radius: 99px; margin: 0 auto 12px;
  background: radial-gradient(circle at 35% 30%, #4a4a4a, #111 65%);
  box-shadow: inset 0 0 0 6px rgba(255,255,255,.08), 0 8px 24px rgba(0,0,0,.45);
  animation: discSpin 4s linear infinite;
}
@keyframes discSpin { to { transform: rotate(360deg); } }
.media-stage audio { width: 100%; }
.media-meta b { display: block; font-size: 15px; }
.media-meta p { margin: 4px 0 0; font-size: 12px; color: #667085; line-height: 1.5; }
.media-back {
  width: 100%; background: #1c2430; color: #fff; border-radius: 12px; padding: 11px; font-weight: 800;
}
.ls-head { padding: 2px 2px 8px; }
.ls-head b { font-size: 15px; }
.ls-head small { display: block; font-size: 11px; color: #8a93a0; margin-top: 2px; }
.vd-main { flex: 1; min-width: 0; }
.vd-main b { display: block; font-size: 13px; }
.vd-main small { display: block; font-size: 11px; color: #8a93a0; }
.vd-item button { flex: none; background: #2a5bd7; color: #fff; border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 800; }
.vd-item button:disabled { background: #ddd; color: #999; }

/* ══════════ 找活 ══════════ */
.bs-head { display: flex; justify-content: space-between; align-items: baseline; padding: 2px 2px 6px; }
.bs-head b { font-size: 15px; }
.bs-head small { font-size: 11px; color: #8a93a0; }
.bs-item { background: #fff; border-radius: 12px; padding: 12px; margin-top: 8px; display: flex; gap: 10px; align-items: center; }
.bs-main { flex: 1; min-width: 0; }
.bs-main b { display: block; font-size: 13.5px; }
.bs-main small { display: block; font-size: 11.5px; color: #667085; margin-top: 2px; line-height: 1.45; }
.bs-main span { display: inline-block; margin-top: 4px; font-size: 10.5px; color: #8a93a0; }
.bs-pay { text-align: right; flex: none; }
.bs-pay em { display: block; font-style: normal; font-weight: 800; color: #1e6fff; font-size: 14px; }
.bs-pay button { margin-top: 4px; background: #1e6fff; color: #fff; border-radius: 999px; padding: 6px 14px; font-size: 12px; font-weight: 800; }

/* ══════════ 兜里 ══════════ */
.ap-card { background: linear-gradient(150deg, #1677ff, #0a4bb5); color: #fff; border-radius: 14px; padding: 14px; }
.ap-card b { font-size: 12px; opacity: 0.85; }
.ap-card em { display: block; font-style: normal; font-size: 28px; font-weight: 800; margin: 2px 0 10px; }
.ap-rows { display: flex; gap: 8px; }
.ap-rows button { flex: 1; background: rgba(255, 255, 255, 0.2); color: #fff; border-radius: 999px; padding: 8px 10px; font-size: 12px; font-weight: 800; }
.ap-rows button:disabled { opacity: 0.5; }
.ap-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; background: #fff; border-radius: 12px; padding: 10px; }
.ap-q { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; color: #4a5566; }
.ap-q i { font-style: normal; font-size: 20px; }
.ap-bills { margin-top: 10px; background: #fff; border-radius: 12px; padding: 10px; }
.ap-bills > b { font-size: 12.5px; display: block; margin-bottom: 4px; }
.ap-bills small { font-size: 11.5px; color: #8a93a0; }
.ap-bill { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid #f2f3f5; font-size: 12px; }
.ap-bill em { font-style: normal; font-weight: 800; }
.ap-bill em.out { color: #d6453d; }
.ap-bill em.in { color: #0c7a42; }

/* ══════════ 鹏城通 ══════════ */
.code-card { background: #fff; border-radius: 14px; padding: 14px; text-align: center; }
.code-card b { font-size: 13px; }
.qr { width: 148px; height: 148px; margin: 10px auto; padding: 9px; background: #fff; border: 1px solid #eceff3; border-radius: 10px; }
.qr svg { width: 100%; height: 100%; fill: #1c2430; }
.code-card small { display: block; font-size: 11px; color: #8a93a0; }
.code-card .row { display: flex; justify-content: center; margin-top: 8px; }
.code-card .row button { background: #12b76a; color: #fff; border-radius: 999px; padding: 7px 16px; font-size: 12.5px; font-weight: 800; }
.line-info { margin-top: 10px; background: #fff; border-radius: 12px; padding: 10px; }
.line-info > b { font-size: 12.5px; display: block; margin-bottom: 2px; }
.li-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 12.5px; border-bottom: 1px solid #f2f3f5; }
.li-row em { font-style: normal; color: #667085; }

/* ══════════ 备忘录 ══════════ */
.nt-title { font-size: 12px; color: #8a93a0; margin: 10px 0 6px; font-weight: 800; }
.nt-list { background: #fff; border-radius: 12px; padding: 8px; }
.nt-item { display: flex; gap: 8px; align-items: center; padding: 6px 4px; font-size: 12.5px; color: #4a5566; }
.nt-item i { width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid #c5ced8; flex: none; }
.nt-item.on i { background: #12b76a; border-color: #12b76a; }
.nt-item.on span { color: #8a93a0; text-decoration: line-through; }
.nt-card { background: #fffdf5; border-radius: 12px; padding: 10px; }
.nt-card p { margin: 0 0 6px; font-size: 12.5px; line-height: 1.5; }

@media (max-height: 780px) {
  .home-loc { font-size: 20px; }
  .ap-ico { width: 46px; height: 46px; }
}
.chats { display: flex; flex-direction: column; }
.chat {
  display: flex; gap: 10px; align-items: center; width: 100%;
  padding: 12px 14px; background: #fff; border-bottom: 1px solid #eee; text-align: left;
}
.chat i {
  width: 42px; height: 42px; border-radius: 8px; color: #fff; flex: none;
  display: grid; place-items: center; font-style: normal; font-weight: 800;
}
.chat > span { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.chat b { display: flex; align-items: center; gap: 6px; }
.chat em { width: 8px; height: 8px; border-radius: 99px; background: #d6453d; }
.chat small { color: #8a93a0; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat > span { flex: 1; }
.wx-side { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.wx-side u { font-style: normal; text-decoration: none; color: #b2b2b2; font-size: 11px; font-weight: 600; }
.wx-badge {
  min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px;
  background: #fa5151; color: #fff; font-size: 10px; font-weight: 800;
  display: grid; place-items: center; font-style: normal;
}
.app[data-app="wechat"] .app-bar { background: #ededed; box-shadow: none; border-bottom: 0; }
.dev-screen.in-app:has(.app[data-app="wechat"]) .dev-status { background: #ededed; color: #111; }
.app[data-app="wechat"] .ab-back { color: #191919; }
.phone-dead {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 28px 22px; text-align: center; background: #0c0e12; color: #e8eef6;
}
.phone-dead b { font-size: 22px; }
.phone-dead p { margin: 0 0 8px; color: #9aa6b4; font-size: 13px; line-height: 1.5; }
.phone-dead button {
  width: min(240px, 100%); border: 0; border-radius: 12px; padding: 12px; font-weight: 900; cursor: pointer;
  background: #f2c14b; color: #1c2430;
}
.dead-ico {
  width: 42px; height: 22px; border: 2px solid #e8eef6; border-radius: 4px; position: relative; margin-bottom: 6px;
}
.dead-ico::after {
  content: ""; position: absolute; right: -5px; top: 6px; width: 3px; height: 8px; background: #e8eef6; border-radius: 1px;
}
.thread { padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.bubble { background: #fff; border-radius: 4px 16px 16px 16px; padding: 10px 12px; }
.bubble p { margin: 0; line-height: 1.5; font-size: 14px; }
.bubble .row, .thread .row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.bubble .row button, .thread .row button {
  background: #1c2430; color: #fff; border-radius: 999px; padding: 6px 12px; font-weight: 700;
}
.phone-back { color: #fff; font-weight: 800; }

@media (max-width: 800px) {
  .sheet { left: 12px; right: 12px; width: auto; top: auto; height: min(46vh, 420px); }
  .hint-drag { display: none; }
  .dock button { padding: 10px 14px; }
  .legend { font-size: 11px; max-width: 46vw; white-space: normal; text-align: right; }
  .fit { top: auto; left: 8px; right: 8px; width: auto; height: auto; max-height: 58vh; bottom: var(--above-dock, 82px); }
  .flea { top: auto; left: 8px; right: 8px; width: auto; max-height: 58vh; bottom: 68px; }
  .fitcats { width: 64px; }
  .fitcats button { padding: 8px 0; font-size: 12px; }
  .fitgoods { display: grid; grid-template-columns: 1fr 1fr; overflow: auto; }
  .fitgoods.packs { display: flex; flex-direction: column; }
  .good { min-width: 0; flex: none; }
  .good.wide { width: 100%; }
}

.birthcard {
  border-radius: 22px; padding: 16px; background: #f6f8fb;
  border: 2px solid transparent; display: flex; flex-direction: column; gap: 4px;
}
.pass.birthcard {
  background: #10283c; color: #fff; border-color: transparent;
}
.pass.birthcard .btag { color: #8ee7c0; }
.pass.birthcard .barea { color: #c5d4e4; }
.pass.birthcard .bstats li { background: rgba(255,255,255,.1); color: #fff; }
.pass.birthcard .bblurb { color: #e7eef6; }
.pass.birthcard .bperk { color: #f0d7a8; }
.pass.birthcard.rolling > b { color: #9eb0c4; }
.sheet .srow { margin-top: auto; }
.sheet .srow button:disabled { opacity: .45; }
.birthcard.rolling > b { color: #8a93a0; }
.birthcard .brow { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.btag { font-size: 11px; letter-spacing: 0.16em; color: #8a93a0; font-weight: 800; }
.bseal { font-size: 11px; font-weight: 800; color: #0c7a42; background: #e5f6eb; border-radius: 999px; padding: 3px 8px; }
.birthcard > b { font-size: 25px; line-height: 1.25; letter-spacing: 0.01em; }
.barea { font-size: 12.5px; color: #667085; font-weight: 700; }
.bstats { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.bstats li { font-size: 11.5px; font-weight: 800; color: #3d4a5c; background: #eef1f5; border-radius: 999px; padding: 4px 9px; }
.bblurb { margin: 8px 0 0; font-size: 13.5px; line-height: 1.65; color: #2c3644; }
.bperk { margin: 4px 0 0; font-size: 12px; line-height: 1.55; color: #8a7355; font-weight: 700; }

.settle-wrap {
  position: absolute; inset: 0; z-index: 820; pointer-events: auto;
  display: grid; place-items: center; padding: 16px;
  background: radial-gradient(ellipse at center, rgba(8, 14, 24, .28), rgba(4, 8, 16, .78));
}
.settle {
  width: min(400px, 100%); max-height: 88vh; overflow: auto; position: relative;
  color: #f4efe4;
  background:
    linear-gradient(165deg, rgba(36, 52, 74, .97), rgba(12, 18, 30, .98));
  border-radius: 22px; padding: 20px 18px 16px;
  border: 1px solid rgba(120, 190, 255, .4);
  box-shadow: 0 28px 70px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .1);
  animation: evGlow 2.2s ease-in-out infinite;
}
.settle::before {
  content: ""; position: absolute; top: 18px; right: 16px;
  width: 10px; height: 10px; border-radius: 99px; z-index: 2;
  background: #7ec8ff; color: #7ec8ff;
  box-shadow: 0 0 10px #7ec8ff;
  animation: evPing 1.35s ease-out infinite;
}
.billcard, .prevue { border-color: rgba(240, 193, 74, .45); animation-name: goldGlow; }
.billcard::before, .prevue::before { background: #f0c14a; color: #f0c14a; box-shadow: 0 0 10px #f0c14a; }
.settle .shead { display: flex; justify-content: space-between; gap: 12px; padding-right: 18px; font-size: 11.5px; color: #9eb0c4; font-weight: 800; letter-spacing: 0.08em; }
.settle .shead span:last-child { color: #8fd0ff; }
.smoney { display: flex; align-items: flex-end; gap: 12px; margin-top: 14px; }
.smoney div { display: flex; flex-direction: column; gap: 2px; }
.smoney span { font-size: 11px; color: #8a93a0; font-weight: 800; }
.smoney b { font-size: 24px; font-variant-numeric: tabular-nums; }
.smoney b.up { color: #c0392b; }
.smoney b.down { color: #1f9d55; }
.smoney i { color: #c5ced8; font-style: normal; padding-bottom: 4px; }
.sdelta { margin: 4px 0 14px; font-size: 12.5px; color: #667085; font-weight: 700; }
.sneeds { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 14px; }
.sneed { display: grid; grid-template-columns: 34px 1fr; gap: 6px; align-items: center; font-size: 11.5px; color: #667085; font-weight: 700; }
.sneed i { display: block; height: 6px; background: #eef1f5; border-radius: 99px; overflow: hidden; }
.sneed i b { display: block; height: 100%; }
.sline { margin: 16px 0 0; font-size: 14px; line-height: 1.62; color: #1c2430; }
.sgrade { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.sgrade b { font-size: 42px; line-height: 1; letter-spacing: -0.02em; }
.sgrade .gS { color: #c0392b; }
.sgrade .gA { color: #d97706; }
.sgrade .gB { color: #2f6f9a; }
.sgrade .gC { color: #9aa3ad; }
.sgrade span { font-size: 13px; line-height: 1.5; color: #3d4a5c; font-weight: 700; }
.squip { margin: 12px 0 18px; font-size: 12px; color: #8a93a0; }
.srow { display: flex; gap: 8px; }
.srow button { flex: 1; background: #f0c14a; color: #2a1c08; border-radius: 999px; padding: 13px; font-weight: 900; font-size: 14px; }
.srow button.ghost { background: transparent; color: #d5deea; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }

.resume {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: #eef7ff; border: 2px solid #cfe6ff; border-radius: 18px; padding: 12px;
}
.resume b { display: block; font-size: 14px; }
.resume span { display: block; margin-top: 3px; font-size: 12px; color: #667085; }
.resume button { background: #1c2430; color: #fff; border-radius: 999px; padding: 9px 15px; font-weight: 800; font-size: 13px; }

/* 样子：左边分类，选项带选中反馈 */
.sheet.look {
  /* 一行一张卡之后需要更宽的面板，不然选项要横向滚动才看得全 */
  width: min(480px, calc(100% - 28px));
  padding: 0;
  overflow: hidden;
}
.lookstage { display: flex; height: 100%; min-height: 0; }
/* 捏人的步骤轨：以前是一列「01 头 / 02 身」纯文字，像设置页，不像捏人。
   现在是一条会往上长的进度线 + 五个发光节点 + 底部完成度计数。 */
.lookrail {
  width: 92px; flex: none; display: flex; flex-direction: column; gap: 8px;
  padding: 16px 8px 12px; position: relative;
  background: linear-gradient(180deg, #1c2b3c 0%, #101820 100%);
  overflow: hidden;
}
.lookrail::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(180deg, transparent 0 12px, rgba(255,255,255,.035) 12px 13px);
}
/* 进度线 */
.lr-prog {
  position: absolute; left: 50%; top: 34px; bottom: 46px; width: 3px;
  transform: translateX(-50%); border-radius: 3px;
  background: rgba(255, 255, 255, .12); pointer-events: none; z-index: 1;
}
.lr-prog i {
  position: absolute; left: 0; top: 0; width: 100%; border-radius: 3px;
  background: linear-gradient(180deg, #3dff9a, #19c37d);
  box-shadow: 0 0 10px rgba(61, 255, 154, .7);
  transition: height .45s cubic-bezier(.2, 1.2, .35, 1);
}
.lookrail button {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 4px 2px 6px; border-radius: 14px; color: #9eb0c4;
}
/* 节点：六边形感的圆牌，里面是图标，角上挂序号 */
.lr-node {
  position: relative; width: 42px; height: 42px; border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(160deg, #26374d, #16202e);
  border: 1.5px solid rgba(255, 255, 255, .14);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 255, 255, .1);
  transition: transform .18s cubic-bezier(.3, 1.6, .4, 1), border-color .2s, background .2s;
}
.lr-node em { font-size: 21px; font-style: normal; line-height: 1; filter: saturate(.9); }
.lr-node s {
  position: absolute; right: -3px; top: -4px; text-decoration: none;
  font-size: 8.5px; font-weight: 900; letter-spacing: .04em;
  min-width: 16px; height: 16px; padding: 0 3px; border-radius: 8px;
  display: grid; place-items: center;
  background: #0c1420; color: #7f93aa; border: 1px solid rgba(255, 255, 255, .16);
}
.lr-node u {
  position: absolute; right: -3px; top: -4px; text-decoration: none;
  width: 18px; height: 18px; border-radius: 50%;
  display: grid; place-items: center; font-size: 11px; font-weight: 900;
  background: #19c37d; color: #06301c; border: 2px solid #0c1420;
  box-shadow: 0 0 10px rgba(25, 195, 125, .6);
}
.lookrail button b { font-size: 12.5px; font-weight: 800; letter-spacing: .04em; }
.lookrail button:hover .lr-node { transform: translateY(-2px) scale(1.06); border-color: rgba(255, 255, 255, .4); }
.lookrail button:hover { color: #fff; }
/* 走过的一步：节点转成暗绿，字也亮一点 */
.lookrail button.done .lr-node {
  background: linear-gradient(160deg, #16342a, #10251d);
  border-color: rgba(61, 255, 154, .42);
}
.lookrail button.done b { color: #a8e6c4; }
/* 当前这一步：整块发光 */
.lookrail button.on { color: #fff; }
.lookrail button.on .lr-node {
  background: linear-gradient(160deg, #e9fff3, #b8f5d6);
  border-color: #3dff9a;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .4), 0 0 0 4px rgba(61, 255, 154, .16), inset 0 1px 0 rgba(255, 255, 255, .8);
  animation: tabPop .34s cubic-bezier(.2, 1.45, .3, 1);
}
.lookrail button.on .lr-node s { background: #123024; color: #3dff9a; border-color: transparent; }
.lookrail button.on .lr-node em { filter: none; }
@keyframes tabPop { 0% { transform: translateY(-6px) scale(.86); } 60% { transform: scale(1.08); } 100% { transform: none; } }
/* 底部完成度 */
.lr-foot {
  margin-top: auto; position: relative; z-index: 2;
  align-self: center; display: flex; align-items: baseline; gap: 2px;
  padding: 3px 10px; border-radius: 999px;
  background: rgba(0, 0, 0, .32); border: 1px solid rgba(255, 255, 255, .1);
}
.lr-foot b { font-size: 14px; font-weight: 900; color: #3dff9a; font-variant-numeric: tabular-nums; }
.lr-foot span { font-size: 10px; font-weight: 800; color: #7f93aa; }
.lookcol {
  flex: 1; min-width: 0; min-height: 0;
  display: flex; flex-direction: column; gap: 10px;
  padding: 16px 14px 14px;
}
.lookpane { flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 8px; animation: paneIn .36s cubic-bezier(.2, .85, .2, 1); }
.lookpane.quiet { animation: none; }
@keyframes paneIn { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
.lookpane > * { animation: rowIn .42s both; }
.lookpane > *:nth-child(2) { animation-delay: .04s; }
.lookpane > *:nth-child(3) { animation-delay: .08s; }
.lookpane > *:nth-child(4) { animation-delay: .12s; }
.lookpane > *:nth-child(5) { animation-delay: .16s; }
.lookpane > *:nth-child(6) { animation-delay: .2s; }
.lookpane.quiet > * { animation: none; }
.lookpane.swap { animation: paneFlash .5s ease; }
@keyframes paneFlash {
  0% { box-shadow: inset 0 0 0 3px #19c37d; background: #e9fff3; }
  100% { box-shadow: inset 0 0 0 0 transparent; background: transparent; }
}
@keyframes rowIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.sheet.look .opt {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 8px;
  background: #fff; border: 2px solid #e4ebf3;
  transition: transform .16s ease, background .16s ease, box-shadow .16s ease, color .16s ease;
}
.sheet.look .opt em { flex: 1; min-width: 0; font-style: normal; }
.sheet.look .opt .opic { width: 28px; height: 28px; flex: none; color: #243044; display: grid; place-items: center; }
.sheet.look .opt .opic3d {
  width: 46px; height: 46px; flex: none; border-radius: 14px; overflow: hidden;
  background: radial-gradient(120% 100% at 50% 8%, #f2f7fc 0%, #dfe9f4 60%, #cfdcec 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7), 0 3px 8px rgba(20, 40, 60, .14);
  display: grid; place-items: end center;
}
.sheet.look .opt .opic3d img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sheet.look .opt.has3d { align-items: center; gap: 10px; }
.sheet.look .opt.has3d em b { font-size: 13.5px; }
.sheet.look .opt.has3d em span { font-size: 12px; }
/* ⚠️ 两列网格 + 46px 缩略图 = 每张卡留给文字的只有 60px，
   「短发、粗眉、肩宽」被挤成三行，整页看着像炸了。
   改成一行一张卡，缩略图和文字并排，文字一路排到底不再折行。 */
.sheet.look .choices.grid:not(.gender) { grid-template-columns: 1fr; gap: 7px; }
.sheet.look .choices.grid:not(.gender) .opt.has3d { gap: 12px; padding: 9px 12px; }
.sheet.look .choices.grid:not(.gender) .opt.has3d .opic3d { width: 52px; height: 52px; }
.sheet.look .choices.grid:not(.gender) .opt.has3d em b { font-size: 14px; }
.sheet.look .choices.grid:not(.gender) .opt.has3d em span { font-size: 12.5px; }
/* 性别那两张保留两列，但图挪到文字上面，字才有整行宽度 */
.sheet.look .choices.grid.gender { grid-template-columns: 1fr 1fr; gap: 9px; }
.sheet.look .choices.grid.gender .opt { flex-direction: column; align-items: stretch; text-align: center; gap: 8px; padding: 12px 10px; }
.sheet.look .choices.grid.gender .opt .opic3d { width: 100%; height: 72px; }
.sheet.look .choices.grid.gender .opt .opic3d img { object-fit: contain; }
.sheet.look .choices.grid.gender .opt .tick { position: absolute; top: 8px; right: 8px; }
.sheet.look .opt .opic svg { width: 26px; height: 26px; display: block; }
.sheet.look .opt .chip {
  width: 22px; height: 22px; flex: none; border-radius: 7px; display: block;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.16);
}
.sheet.look .opt .tick {
  width: 18px; height: 18px; flex: none; border-radius: 50%;
  background: #3dff9a; color: #123024; font-style: normal; font-weight: 900;
  display: grid; place-items: center; font-size: 12px;
}
.sheet.look .opt:hover { transform: translateY(-2px); background: #fff; box-shadow: 0 8px 16px rgba(20, 40, 60, .08); }
.sheet.look .opt.on {
  background: #123024; border-color: #19c37d; color: #fff;
  animation: pickPop .32s cubic-bezier(.2, 1.5, .3, 1);
  box-shadow: 0 10px 22px rgba(18, 48, 36, .32);
}
.sheet.look .opt.on span { color: #b7ebc9; }
.sheet.look .opt.on .opic { color: #3dff9a; }
.sheet.look .opt.on::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 28%, rgba(255,255,255,.28) 48%, transparent 68%);
  transform: translateX(-120%);
  animation: sheen .55s ease;
}
@keyframes pickPop { 45% { transform: scale(1.045); } 100% { transform: none; } }
@keyframes sheen { to { transform: translateX(120%); } }
.sheet.look .swatch { transition: transform .16s cubic-bezier(.2, 1.5, .3, 1); }
.sheet.look .swatch:hover { transform: scale(1.08); }
.sheet.look .swatch.on { animation: swatchPop .34s cubic-bezier(.2, 1.6, .3, 1); box-shadow: 0 0 0 3px #123024, 0 0 0 6px #3dff9a; }
@keyframes swatchPop { 50% { transform: scale(1.2); } }
.sheet.look .go { position: relative; overflow: hidden; }
.sheet.look .go::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.28), transparent);
  transform: translateX(-120%);
  animation: goShine 2.6s ease-in-out infinite;
}
@keyframes goShine { 55%, 100% { transform: translateX(120%); } }
@media (prefers-reduced-motion: reduce) {
  .lookrail button.on, .lookpane, .lookpane > *, .sheet.look .opt.on, .sheet.look .opt.on::before, .sheet.look .swatch.on, .sheet.look .go::after { animation: none; }
}

.evcard .evtitle { margin: 14px 0 8px; font-size: 26px; font-weight: 900; letter-spacing: 0.01em; color: #fff; }
.evcard .evbody { margin: 0 0 16px; font-size: 14px; line-height: 1.7; color: #d5deea; }
.evopts { display: flex; flex-direction: column; gap: 8px; }
.evopts button {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  text-align: left; color: #f6f1e6; border-radius: 14px; padding: 13px 14px;
  background: linear-gradient(100deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .03));
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}
.evopts b { font-size: 15px; font-weight: 800; }
.evopts span {
  font-size: 12px; color: #f0c14a; font-weight: 900; white-space: nowrap;
  background: rgba(240, 193, 74, .14); border-radius: 999px; padding: 4px 8px;
}
.slink { display: block; width: 100%; margin-top: 10px; padding: 8px; font-size: 12px; color: #8a93a0; }

/* ══════════ 同城：别人和话 ══════════ */
.mppeers { position: fixed; inset: 0; z-index: 3; pointer-events: none; }
.mppeers.hide { display: none; }
.mppeer {
  position: absolute; left: 0; top: 0;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  will-change: transform;
}
.mpdot {
  width: 30px; height: 30px; padding: 0; border: 0; cursor: pointer;
  background: transparent; position: relative; pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}
.mpdot::before {
  /* 放大的隐形点击区 */
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
}
.mpdot::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 11px;
  transform: translate(-50%, -50%);
  border-radius: 50%; background: #3ddc84; border: 2.5px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(61, 220, 132, 0.5);
  animation: mpPulse 2.6s ease-out infinite;
}
@keyframes mpPulse {
  0% { box-shadow: 0 2px 8px rgba(0,0,0,0.3), 0 0 0 0 rgba(61,220,132,0.45); }
  70% { box-shadow: 0 2px 8px rgba(0,0,0,0.3), 0 0 0 9px rgba(61,220,132,0); }
  100% { box-shadow: 0 2px 8px rgba(0,0,0,0.3), 0 0 0 0 rgba(61,220,132,0); }
}
.mpdot:hover::after { transform: translate(-50%, -50%) scale(1.25); }
.mpdot.talking::after { background: #f59e0b; animation: none; box-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.mpdot.friend::after {
  background: #f5b90b; animation: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3), 0 0 0 3px rgba(245, 185, 11, 0.35);
}
.mpdot.friend::before {
  content: "友"; position: absolute; right: -8px; top: -10px; z-index: 1;
  font-size: 9px; font-weight: 900; color: #fff; background: #e03131;
  border-radius: 50%; width: 15px; height: 15px; line-height: 15px; text-align: center;
  transform: rotate(12deg); box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
.mpbubble {
  max-width: 168px; font-style: normal; font-size: 12px; line-height: 1.4;
  color: #1c2430; background: #fff; padding: 5px 9px; border-radius: 12px;
  box-shadow: 0 8px 20px rgba(20, 30, 50, 0.18);
  opacity: 0; transform: translateY(3px); transition: opacity 0.18s, transform 0.18s;
  overflow-wrap: anywhere;
}
.mpbubble.on { opacity: 1; transform: none; }

.mpbar {
  position: fixed; top: calc(var(--hud-h, 96px) + 10px); right: 14px; left: auto; bottom: auto;
  z-index: 6;
  width: min(300px, calc(100vw - 28px));
  display: flex; flex-direction: column; gap: 6px; align-items: stretch;
  pointer-events: none;
}
.mpbar.hide, .mpbar.home { display: none; }
.mpbar > * { pointer-events: auto; }
.mphead { display: flex; align-items: center; gap: 6px; }
.mpcount {
  display: flex; align-items: center; gap: 6px;
  background: rgba(20, 28, 40, 0.78); color: #fff;
  font-size: 11.5px; font-weight: 800; border-radius: 999px; padding: 5px 11px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
}
.mpcount i { width: 6px; height: 6px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 3px rgba(61, 220, 132, 0.2); }
.mpbar.off .mpcount i { background: #9aa3ad; box-shadow: none; }
.mpstate { font-size: 11px; font-weight: 700; color: #5a6a7d; background: rgba(255, 255, 255, 0.85); border-radius: 999px; padding: 3px 8px; }
.mpstate:empty { display: none; }
.mpfar {
  display: none; font-size: 10.5px; font-weight: 800; color: #5a6a7d;
  background: rgba(255, 255, 255, 0.82); border-radius: 999px; padding: 3px 8px;
}
.mpfar.on { display: inline-block; }

.mpevent { display: none; pointer-events: auto; }
.mpevent.on { display: block; animation: mpevIn 0.35s cubic-bezier(0.2, 1.2, 0.4, 1); }
@keyframes mpevIn { from { opacity: 0; transform: translateY(8px); } }
.mpevcard {
  padding: 10px 11px 11px; border-radius: 16px;
  background: linear-gradient(145deg, rgba(16, 22, 34, 0.94), rgba(28, 38, 56, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: #e8eef6;
}
.mpevent.almost .mpevcard { box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(242, 193, 75, 0.35); }
.mpevtop { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.mpevico { font-size: 22px; line-height: 1; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.35)); }
.mpevtitle { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.mpevtitle b { font-size: 13px; font-weight: 900; letter-spacing: 0.02em; }
.mpevtitle small { font-size: 10px; font-weight: 700; color: #8fd0ff; letter-spacing: 0.06em; }
.mpevclock {
  font-size: 11px; font-weight: 900; font-variant-numeric: tabular-nums;
  color: #f2c14b; background: rgba(242, 193, 75, 0.12); border-radius: 8px; padding: 4px 7px;
}
.mpevbar {
  height: 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.08); overflow: hidden; margin-bottom: 8px;
}
.mpevbar i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--mp-accent, #f2c14b), #8fd0ff);
  border-radius: 99px; transition: width 0.35s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.mpevfaces { display: flex; gap: 4px; margin-bottom: 6px; flex-wrap: wrap; }
.mpevface {
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  font-size: 10px; font-weight: 900; color: #fff; border: 2px solid rgba(255,255,255,0.85);
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
.mpevface.empty { background: rgba(255,255,255,0.08) !important; color: #6a7585; border-style: dashed; }
.mpevhint { margin: 0 0 8px; font-size: 11px; line-height: 1.45; color: #a8b4c4; font-weight: 600; }
.mpevloot { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
.mpevloot span {
  font-size: 10px; font-weight: 800; color: #f0c14a;
  background: rgba(240, 193, 74, 0.12); border-radius: 999px; padding: 3px 8px;
}
.mpevhide {
  margin-top: 6px; border: 0; background: transparent; color: #8a93a0;
  font-size: 11px; font-weight: 800; cursor: pointer; width: 100%;
}
.mpevbtn {
  width: 100%; font-size: 12px; font-weight: 900; color: #1c2430; background: var(--mp-accent, #f2c14b);
  border-radius: 12px; padding: 8px 12px; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  transition: transform 0.12s, filter 0.12s;
}
.mpevbtn.ready { animation: mpevPulse 1.2s ease-in-out infinite; }
@keyframes mpevPulse { 50% { filter: brightness(1.08); transform: scale(1.02); } }
.mpevbtn.joined { background: rgba(255,255,255,0.12); color: #c5ced8; box-shadow: none; }
.mpevbtn.pop { transform: scale(0.96); }
.mpevbtn:hover { filter: brightness(1.06); }

.mpscenechip {
  display: none; font-size: 10.5px; font-weight: 800; color: #2c3644;
  background: rgba(255, 255, 255, 0.92); border-radius: 999px; padding: 4px 9px;
  box-shadow: 0 4px 12px rgba(20, 30, 50, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.04);
}
.mpscenechip.on { display: inline-block; }
.mpstatbadge {
  display: none; margin-left: 4px; font-size: 9px; font-weight: 900; color: #f2c14b;
  background: rgba(242, 193, 75, 0.18); border-radius: 6px; padding: 1px 5px; vertical-align: middle;
}
.mpstatbadge.on { display: inline-block; }
.mpcount { border: 1px solid transparent; }
.mpbar[data-scene]:not([data-scene="default"]) .mpcount {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16), inset 0 0 0 1px rgba(255,255,255,0.06);
}
.mpbar.open .mpfeed {
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 12px 34px rgba(20, 30, 50, 0.16), inset 3px 0 0 var(--mp-accent, #f2c14b);
}
.mpq.hot {
  color: #9a4a12; background: linear-gradient(135deg, #fff8eb, #fff);
  box-shadow: 0 4px 14px rgba(242, 193, 75, 0.25);
}

.mpscene {
  position: fixed; left: 50%; top: calc(var(--hud-h, 96px) + 8px); z-index: 7;
  display: flex; align-items: flex-start; gap: 10px; max-width: min(320px, calc(100% - 24px));
  padding: 12px 14px; border-radius: 18px;
  background: linear-gradient(135deg, rgba(16, 22, 34, 0.94), rgba(32, 42, 60, 0.92));
  color: #e8eef6; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0; transform: translateX(-50%) translateY(-10px);
  transition: opacity 0.35s, transform 0.35s cubic-bezier(0.2, 1.2, 0.4, 1);
  pointer-events: none;
}
.mpscene.in { opacity: 1; transform: translateX(-50%); }
.mpsceneico { font-size: 28px; line-height: 1; }
.mpscenebody b { display: block; font-size: 15px; font-weight: 900; margin-bottom: 4px; }
.mpscenebody p { margin: 0 0 8px; font-size: 12px; line-height: 1.5; color: #b8c4d4; font-weight: 600; }
.mpscenechips { display: flex; flex-wrap: wrap; gap: 5px; }
.mpscenechips span {
  font-size: 10px; font-weight: 800; color: #f0c14a;
  background: rgba(240, 193, 74, 0.14); border-radius: 999px; padding: 3px 8px;
}

.mpreward {
  position: fixed; inset: 0; z-index: 9; display: grid; place-items: center; padding: 20px;
  background: rgba(12, 18, 28, 0.55); opacity: 0; transition: opacity 0.25s;
}
.mpreward.in { opacity: 1; }
.mprewardin {
  width: min(340px, 100%); padding: 22px 20px 18px; border-radius: 22px; text-align: center;
  background: linear-gradient(160deg, #1a2434, #243048);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  color: #e8eef6; transform: scale(0.92); transition: transform 0.35s cubic-bezier(0.2, 1.4, 0.4, 1);
}
.mpreward.in .mprewardin { transform: scale(1); }
.mpr-ico { font-size: 36px; display: block; margin-bottom: 8px; }
.mpr-title { display: block; font-size: 20px; font-weight: 900; margin-bottom: 8px; }
.mpr-body { margin: 0 0 14px; font-size: 13px; line-height: 1.55; color: #b8c4d4; font-weight: 600; }
.mpr-loot { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.mpr-loot span {
  font-size: 11px; font-weight: 800; color: #f0c14a;
  background: rgba(240, 193, 74, 0.14); border-radius: 999px; padding: 5px 10px;
}
.baydock {
  position: fixed; left: 50%; bottom: 108px; transform: translateX(-50%);
  z-index: 6; display: none; gap: 8px; pointer-events: auto;
}
.baydock.on { display: flex; }
.baydock-btn {
  min-width: 72px; padding: 10px 14px; border: 0; border-radius: 16px;
  font-size: 14px; font-weight: 900; color: #072033; cursor: pointer;
  background: linear-gradient(180deg, #8ee7ff, #3ec6e0);
  box-shadow: 0 10px 24px rgba(20, 80, 110, .28), inset 0 1px 0 rgba(255,255,255,.7);
}
.baydock-btn.k-photo { background: linear-gradient(180deg, #ffe08a, #f2c14b); }
.baydock-btn.k-pass { background: linear-gradient(180deg, #b7f0ff, #3ec6e0); }
.baydock-btn:active { transform: translateY(2px) scale(.98); }
.baypose.bayline { bottom: 176px; }
.baypose {
  position: fixed; left: 50%; bottom: 108px; transform: translateX(-50%);
  z-index: 950; width: min(420px, calc(100% - 24px));
  padding: 14px 14px 12px; border-radius: 22px;
  background: rgba(10, 22, 34, .94); color: #e8f4ff;
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
  text-align: center;
}
.baypose-kicker { margin: 0; font-size: 11px; font-weight: 800; letter-spacing: .14em; color: #f2c14b; }
.baypose-title { display: block; margin: 2px 0 6px; font-size: 22px; font-weight: 900; }
.baypose-sub, .baypose-status { margin: 0 0 10px; font-size: 13px; font-weight: 700; line-height: 1.45; color: #c5d7e6; }
.baypose-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 10px; }
.baypose-row button {
  min-width: 72px; border: 0; border-radius: 14px; padding: 10px 12px;
  font-size: 14px; font-weight: 900; color: #072033; cursor: pointer;
  background: rgba(255,255,255,.88);
}
.baypose-row button.on { background: #ffe08a; box-shadow: 0 0 0 3px rgba(255,224,138,.35); }
.baypose-shot {
  width: 100%; border: 0; border-radius: 14px; padding: 12px;
  font-size: 16px; font-weight: 900; color: #072033; cursor: pointer;
  background: linear-gradient(180deg, #ffe08a, #f2c14b);
}
.baypose-shot:disabled { opacity: .45; cursor: default; }
.baypose-quit {
  margin-top: 8px; border: 0; background: transparent; color: #9bb0c2;
  font-size: 12px; font-weight: 800; cursor: pointer;
}
.mpfeed:empty { display: none !important; }

.bayshot {
  position: fixed; inset: 0; z-index: 960;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 16px 16px 20px; overflow: auto;
  background: rgba(8, 16, 28, .72);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.bayshot-cv {
  width: min(460px, 90vw, 52vh); height: auto; border-radius: 16px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, .45);
  background: #f7f1e6;
}
.bayshot-acts { display: flex; gap: 8px; }
.bayshot-acts button {
  border: 0; border-radius: 14px; padding: 11px 16px;
  font-size: 14px; font-weight: 900; cursor: pointer; color: #072033;
}
.bayshot-save { background: linear-gradient(180deg, #ffe08a, #f2c14b); }
.bayshot-share { background: #fff; }
.bayshot-shut { background: rgba(255,255,255,.16); color: #fff !important; }
.bayshot-note {
  margin: 0; max-width: 380px; text-align: center;
  color: #d5e4f2; font-size: 12px; font-weight: 700; line-height: 1.45;
}
.baypass {
  position: fixed; left: 50%; bottom: 108px; transform: translateX(-50%);
  z-index: 950; width: min(420px, calc(100% - 24px));
  padding: 14px 14px 12px; border-radius: 22px;
  background: rgba(8, 28, 40, .92); color: #e8f6ff;
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
  text-align: center;
}
.baypass-kicker { margin: 0; font-size: 11px; font-weight: 800; letter-spacing: .12em; color: #8fd0df; }
.baypass-who { display: block; margin: 2px 0 8px; font-size: 26px; font-weight: 900; }
.baypass-seats { display: flex; gap: 8px; justify-content: center; margin: 0 0 10px; }
.baypass-seats span {
  min-width: 72px; padding: 8px 10px; border-radius: 14px;
  background: rgba(255,255,255,.08); color: #d5eef8; font-size: 13px; font-weight: 800;
}
.baypass-seats span.hot { background: #ffe08a; color: #072033; box-shadow: 0 0 0 3px rgba(255,224,138,.35); }
.baypass-quit {
  margin-top: 8px; border: 0; background: transparent; color: #9bb8c6;
  font-size: 12px; font-weight: 800; cursor: pointer;
}
.baypass-chain { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 10px; }
.baypass-chain span {
  font-size: 12px; font-weight: 800; color: #d5eef8;
  background: rgba(255,255,255,.08); border-radius: 999px; padding: 4px 8px;
}
.baypass-chain span.now { color: #072033; background: #ffe08a; }
.baypass-track {
  height: 8px; border-radius: 99px; overflow: hidden; background: rgba(255,255,255,.12); margin-bottom: 8px;
}
.baypass-bar {
  display: block; height: 100%; width: 100%; transform-origin: left center; background: #8ee7ff;
}
.baypass-sub { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: #b7dbe8; }
.baypass-hit {
  width: 100%; border: 0; border-radius: 14px; padding: 12px;
  font-size: 18px; font-weight: 900; color: #072033; cursor: pointer;
  background: linear-gradient(180deg, #fff, #8ee7ff);
}
.baypass-hit:disabled { opacity: .55; }
.baypass-goal { display: block; margin-top: 6px; font-size: 12px; color: #f2c14b; font-weight: 800; }
.baypass.end .baypass-hit, .baypass.end .baypass-track { display: none; }
.bayfloat {
  position: fixed; left: 50%; top: 42%; z-index: 9; pointer-events: none;
  font-size: 22px; font-weight: 900; color: #fff;
  text-shadow: 0 4px 16px rgba(0,0,0,.45);
  transform: translate(-50%, 8px); opacity: 0; transition: .35s;
}
.bayfloat.good { color: #ffe08a; }
.bayfloat.in { opacity: 1; transform: translate(-50%, -18px); }
.baysplash {
  position: fixed; z-index: 7; width: 18px; height: 18px; margin: -9px 0 0 -9px;
  border-radius: 50%; border: 3px solid rgba(142, 231, 255, .9);
  animation: bayRip .65s ease-out forwards; pointer-events: none;
}
@keyframes bayRip { to { transform: scale(6); opacity: 0; } }
body.bayflash::after {
  content: ""; position: fixed; inset: 0; z-index: 12; pointer-events: none;
  background: #fff; animation: bayBlink .18s ease-out;
}
@keyframes bayBlink { from { opacity: .85; } to { opacity: 0; } }

.mpr-ok {
  width: 100%; font-size: 13px; font-weight: 900; color: #1c2430; background: #f2c14b;
  border-radius: 14px; padding: 11px; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.mpdot.evt::after { background: #8fd0ff; box-shadow: 0 2px 8px rgba(0,0,0,0.3), 0 0 0 3px rgba(143, 208, 255, 0.35); }
.mpdot.waving::after { animation: mpWaveDot 0.45s ease-in-out infinite; background: #f2c14b; }
@keyframes mpWaveDot { 50% { transform: translate(-50%, -58%) scale(1.15); } }
.mpdot.near::after { transform: translate(-50%, -50%) scale(1.12); }
.mpdot.midfar::after { opacity: 0.78; transform: translate(-50%, -50%) scale(0.92); }

.mpcardin[data-scene]::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--mp-accent, #f2c14b); opacity: 0.85;
}
.mpcardin[data-scene="dinner"] { --mp-accent: #f2c14b; }
.mpcardin[data-scene="street"] { --mp-accent: #e07a3a; }
.mpcardin[data-scene="gaoxin"] { --mp-accent: #5b8fd4; }
.mpcardin[data-scene="huaqiang"] { --mp-accent: #3ddc84; }
.mpcardin[data-scene="hub"] { --mp-accent: #9b7ed9; }
.mpcardin[data-scene="book"] { --mp-accent: #6b8f71; }
.mpcardin[data-scene="bay"] { --mp-accent: #4ecdc4; }

.mpfeed {
  display: none; flex-direction: column; gap: 5px;
  max-height: 32vh; overflow: auto; padding: 8px 10px;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-radius: 16px; box-shadow: 0 12px 34px rgba(20, 30, 50, 0.16);
}
.mpbar.open .mpfeed, .mpbar.hasmsg .mpfeed { display: flex; }
.mpmsg { font-size: 12.5px; line-height: 1.5; color: #2c3644; overflow-wrap: anywhere; }
.mpmsg b { font-weight: 800; margin-right: 2px; }
.mpmsg.me { color: #1c2430; }
.mpmsg.sys { font-size: 11px; color: #8a93a0; font-weight: 700; }

.mpquick { display: none; gap: 6px; flex-wrap: wrap; }
.mpbar.open .mpquick { display: flex; }
.mpquick.dead { opacity: 0.4; }
.mpquick button {
  font-size: 11.5px; font-weight: 700; color: #3d4a5c;
  background: rgba(255, 255, 255, 0.92); border-radius: 999px; padding: 5px 10px;
  box-shadow: 0 4px 12px rgba(20, 30, 50, 0.1);
}
.mpquick button:hover { background: #fff; }

.mpform {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 999px; padding: 4px 4px 4px 13px;
  box-shadow: 0 8px 24px rgba(20, 30, 50, 0.16);
}
.mpinput { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 13px; padding: 8px 0; outline: none; }
.mpinput::placeholder { color: #93a0b0; }
.mpsend { background: #1c2430; color: #fff; border-radius: 999px; padding: 8px 14px; font-weight: 800; font-size: 12.5px; }
.mpbar.off .mpsend { background: #c5ced8; }

@media (max-width: 560px) {
  .mpbar { top: calc(var(--hud-h, 150px) + 6px); right: 10px; left: auto; bottom: auto; width: min(240px, 70vw); }
  .mpfeed { max-height: 26vh; }
  .mpbubble { max-width: 128px; font-size: 11.5px; }
}


/* ══════════ 路人名片 ══════════ */
.mpcard {
  position: fixed; inset: 0; z-index: 8; background: rgba(16, 24, 36, 0.28);
  display: flex; align-items: flex-end; justify-content: center; padding: 14px 14px 92px;
  animation: mpFade 0.16s ease-out;
}
@keyframes mpFade { from { opacity: 0; } }
.mpcardin {
  width: min(420px, 100%); background: #fff; border-radius: 24px;
  padding: 18px 18px 16px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  animation: mpPop 0.2s cubic-bezier(0.2, 1.2, 0.4, 1);
  position: relative; overflow: hidden;
}
@keyframes mpPop { from { transform: translateY(24px) scale(0.96); opacity: 0; } }
.mpcardin::before {
  /* 顶部那条小拉手，像 Lagos 的卡片 */
  content: ""; position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 44px; height: 5px; border-radius: 99px; background: #e6eaf0;
}
.mpchead { display: flex; align-items: center; gap: 12px; }
.mpcava {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  color: #fff; font-weight: 900; font-size: 19px;
  box-shadow: inset 0 -8px 14px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(20, 30, 50, 0.2);
}
.mpcwho { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.mpcname { font-size: 17.5px; letter-spacing: 0.01em; }
.mpctitle {
  font-size: 10.5px; font-weight: 800; color: #9a4a12; background: #fdeee0;
  padding: 2px 8px; border-radius: 6px; transform: rotate(-1.5deg);
}
.mpcx { border: 0; background: #f2f4f7; color: #667085; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-size: 13px; flex: none; }
.mpcx:hover { background: #e6e9ef; }
.mpcstat { margin: 10px 2px 0; font-size: 12.5px; color: #8a93a0; font-weight: 700; }
.mpcchips { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.mpclabel { font-size: 10.5px; font-weight: 800; letter-spacing: 0.1em; color: #b0b8c4; }
.mpcchip {
  font-size: 11.5px; font-weight: 800; color: #3d4a5c;
  background: #f2f4f7; border-radius: 999px; padding: 4px 10px;
}
.mpccred { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 9px 12px; background: #f8f9fb; border-radius: 14px; }
.mpclevel { font-size: 12.5px; color: #b57f1f; letter-spacing: 0.04em; }
.mpcstamp {
  margin-left: auto; font-size: 10.5px; font-weight: 900; color: #e03131;
  border: 2px solid #e03131; border-radius: 8px; padding: 2px 7px;
  transform: rotate(-6deg); opacity: 0.85;
}
.mpcflavor { margin: 12px 2px 0; font-size: 13.5px; line-height: 1.65; color: #2c3644; min-height: 0; }
.mpcflavor:empty, .mpcsaid:empty { display: none; }
.mpcsaid { margin: 6px 2px 0; font-size: 12.5px; line-height: 1.6; color: #667085; font-weight: 700; }
.mpcacts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.mpcbtn {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  background: #f6f8fb; border-radius: 14px; padding: 12px 10px; cursor: pointer;
  border: 2px solid transparent; transition: transform 0.12s;
}
.mpcbtn:hover { background: #eef1f5; border-color: #dfe5ee; transform: translateY(-1px); }
.mpcbtn:active { transform: scale(0.97); }
.mpcbtn i { font-style: normal; font-size: 16px; }
.mpcbtn span { font-size: 13.5px; font-weight: 800; color: #1c2430; }
.mpcbtn:last-child { background: #1c2430; }
.mpcbtn:last-child span { color: #fff; }
.mpcbtn:last-child:hover { background: #2c3848; border-color: transparent; }

@media (max-width: 560px) {
  .mpcard { padding-bottom: 84px; align-items: flex-end; }
}

/* ══════════ HUD v2：有游戏感的顶栏/底栏 ══════════ */
.where {
  display: flex; align-items: center; gap: 9px; text-align: left;
  /* 吃掉剩余空间，天气钮才能贴到现金左边而不是跑到屏幕中间。
     但自己必须能收缩（flex-shrink + min-width:0），否则窄屏上时钟那一行
     会把现金顶出屏幕右边。 */
  flex: 0 1 auto; min-width: 0; margin-right: auto;
  background: rgba(20, 28, 40, 0.82); color: #fff;
  border-radius: 999px; padding: 8px 16px 8px 10px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
  transform: rotate(-1.2deg);
  transition: transform 0.15s;
}
.where:hover { transform: rotate(0deg) scale(1.03); }
.where b { display: block; font-size: 14.5px; font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.where span { display: block; margin-top: 1px; color: #aab6c5; font-size: 11px; font-weight: 700; }
.wemoji { font-size: 21px; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)); }
.wmain { display: block; }

/* 天气和钱同一排。钱再单独掉到下一行，会压住布置面板最上面的「样板」。 */
.hud-right {
  flex: 0 0 auto; display: flex; flex-direction: row; align-items: center; gap: 8px;
}
/* 左边这一列：时钟 → 需求环 → 徽章/帮助。
   以前需求环和徽章是用 left/top 写死定位的，"时钟两行就撞上"是必然的；
   现在它们都在同一个纵向流里，时钟多高都不用管。 */
.hud-left {
  flex: 0 1 auto; min-width: 0;
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
}
.hud-left .where { margin-right: 0; }
.hud-mini { display: flex; align-items: center; justify-content: flex-start; gap: 8px; width: 100%; }
/* 钱是这个游戏的主线，必须比天气、时钟都抢眼。
   以前是个和天气钮一样大的灰胶囊 —— 玩家看完天气就忘了自己还有多少钱。
   现在：独成一格、金色描边 + 外发光 + 22px 粗字，钱快见底时整块转成红色并慢闪。 */
.cash {
  display: flex; align-items: center; gap: 8px; flex: 0 0 auto;
  background: linear-gradient(155deg, #55421a 0%, #1e2534 70%);
  color: #ffd979; border-radius: 999px; padding: 11px 22px 11px 15px;
  border: 1.5px solid rgba(255, 209, 102, .62);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 0 26px rgba(255, 186, 68, .28);
  /* 钱是这个游戏里最该被一眼看见的数字 —— 比天气、比时间都大一号 */
  font-size: 22px; font-variant-numeric: tabular-nums; font-weight: 900;
  letter-spacing: .01em;
  text-shadow: 0 1px 5px rgba(0, 0, 0, .55);
}
.cash i { font-style: normal; font-size: 23px; filter: drop-shadow(0 0 8px rgba(255, 196, 90, .8)); }
.cash.bump { animation: cashBump 0.5s cubic-bezier(0.3, 1.6, 0.4, 1); }
@keyframes cashBump {
  30% { transform: scale(1.14); }
}
/* 钱见底：转成红色，慢闪，别让玩家到交租那天才发现 */
.cash.low {
  color: #ffb2a2; border-color: rgba(255, 120, 100, .62);
  background: linear-gradient(155deg, #4a1e15 0%, #1e2534 68%);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .1), 0 0 20px rgba(255, 90, 70, .22);
  animation: cashLow 1.9s ease-in-out infinite;
}
.cash.low i { filter: drop-shadow(0 0 7px rgba(255, 110, 90, .7)); }
@keyframes cashLow {
  0%, 100% { box-shadow: 0 10px 26px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.1), 0 0 14px rgba(255,90,70,.16); }
  50% { box-shadow: 0 10px 26px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.1), 0 0 26px rgba(255,90,70,.42); }
}
.cashfloat {
  position: absolute; right: 18px; top: 62px; font-weight: 900; font-size: 16px;
  pointer-events: none; animation: cashFloat 1.4s ease-out forwards;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.cashfloat.up { color: #6fe3a1; }
.cashfloat.down { color: #ff9d8a; }
@keyframes cashFloat {
  from { opacity: 0; transform: translateY(6px); }
  15% { opacity: 1; }
  to { opacity: 0; transform: translateY(-26px); }
}

/* 以前这块是纯白卡片（rgba(255,255,255,.96)），浮在 3D 场景上像贴了一张
   Excel 表 —— 玩家一眼看出"这是网页"。现在换成深色玻璃 + 金属描边，
   和顶栏、需求环同一套材质，才像同一个游戏里长出来的东西。 */
.dock {
  left: 50%; right: auto; bottom: 14px; transform: translateX(-50%);
  width: min(560px, calc(100% - 24px));
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(180deg, rgba(21, 31, 49, .93), rgba(9, 16, 28, .95));
  -webkit-backdrop-filter: blur(14px) saturate(1.25); backdrop-filter: blur(14px) saturate(1.25);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 22px; padding: 8px 10px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .1);
  z-index: 4;
}
/* 底栏「你在哪」：按地点换图标换主色，左边一道发光竖条标"当前"。
   --pc 是每个地点自己的主色，下面几处（竖条 / 图标底 / 信号条 / 淡光）都吃它。 */
.placecard {
  --pc: #6cb4ff;
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px;
  padding: 5px 8px; border-radius: 16px; position: relative; overflow: hidden;
}
/* 这层淡光让整块牌跟着地点变色，不然就是一块灰底上放两行字 */
.placecard::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120% 140% at 0% 50%, rgba(108, 180, 255, .22), transparent 62%);
}
.placecard.k-room { --pc: #ffc46b; }
.placecard.k-room::after { background: radial-gradient(120% 140% at 0% 50%, rgba(255, 196, 107, .2), transparent 62%); }
.placecard.k-street { --pc: #7ee0b0; }
.placecard.k-street::after { background: radial-gradient(120% 140% at 0% 50%, rgba(126, 224, 176, .18), transparent 62%); }
.placecard.k-ride { --pc: #b79cff; }
.placecard.k-ride::after { background: radial-gradient(120% 140% at 0% 50%, rgba(183, 156, 255, .2), transparent 62%); }
.placecard.k-spot { --pc: #ff9d6e; }
.placecard.k-spot::after { background: radial-gradient(120% 140% at 0% 50%, rgba(255, 157, 110, .2), transparent 62%); }
/* 当前地点那道竖条 */
.placecard::before {
  content: ""; position: absolute; left: 1px; top: 9px; bottom: 9px; width: 2.5px;
  border-radius: 3px; background: var(--pc); box-shadow: 0 0 9px var(--pc); z-index: 1;
}
.picon {
  width: 38px; height: 38px; flex: none; border-radius: 13px;
  display: grid; place-items: center; font-style: normal; font-size: 19px;
  color: #10233c;
  background: linear-gradient(155deg, #ffffff 0%, var(--pc) 52%, rgba(0, 0, 0, .18) 100%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .34), inset 0 -5px 9px rgba(0, 0, 0, .2), inset 0 1px 0 rgba(255, 255, 255, .7);
  transform: rotate(-3deg); position: relative; z-index: 1;
}
.picon svg { width: 25px; height: 21px; display: block; stroke-width: 1.9; }
.pmain { min-width: 0; flex: 1; position: relative; z-index: 1; }
.pmain b {
  display: block; font-size: 14.5px; color: #eef4fb; font-weight: 800; letter-spacing: .03em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .5);
}
.pmain span {
  display: block; margin-top: 1.5px; font-size: 11px; color: #93a7bf; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: opacity 0.4s;
}
/* 右边三根"信号条"：就是为了让这块看着像游戏里的状态牌，不是列表项。
   手机上地方不够，收掉（下面 640 那段里 display:none）。 */
.pflag { flex: none; display: flex; align-items: flex-end; gap: 2.5px; height: 15px; position: relative; z-index: 1; }
.pflag u { width: 2.5px; border-radius: 2px; background: var(--pc); box-shadow: 0 0 6px var(--pc); }
.pflag u:nth-child(1) { height: 6px; opacity: .55; }
.pflag u:nth-child(2) { height: 10px; opacity: .75; }
.pflag u:nth-child(3) { height: 15px; }
/* ══════════ dock 按钮：手绘图标 + 特效 ══════════ */
.dockbtns { display: flex; gap: 3px; flex: none; }
.dockbtn {
  position: relative; flex: none; width: 62px; padding: 7px 0 6px;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  border-radius: 18px; color: #93a3b8; font-weight: 800;
  background: transparent;
  transition: transform 0.18s cubic-bezier(0.3, 1.6, 0.4, 1), color 0.16s, background 0.16s, box-shadow 0.16s;
}
.dockbtn .dico { width: 34px; height: 30px; display: grid; place-items: center; transition: transform 0.18s cubic-bezier(0.3, 1.7, 0.4, 1); }
.dockbtn svg { width: 31px; height: 27px; display: block; overflow: visible; }
.dockbtn .dlab { font-size: 10.5px; letter-spacing: 0.05em; }
.dockbtn:hover { background: rgba(255, 255, 255, .09); color: #dfe9f6; }
.dockbtn:hover .dico { transform: translateY(-2px) rotate(-6deg) scale(1.07); }
.dockbtn:active { transform: scale(0.9); }
.dockbtn.on { color: #fff; transform: translateY(-4px); box-shadow: 0 10px 22px rgba(20, 30, 50, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.dockbtn.on.k-home { background: linear-gradient(160deg, #41536e, #232f42); box-shadow: 0 10px 22px rgba(20, 30, 50, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.18); }
.dockbtn.on.k-city { background: linear-gradient(150deg, #6cb4ff, #3a6fd8); }
.dockbtn.on.k-phone { background: linear-gradient(150deg, #55dd93, #0fb866); }
/* 切到这一页时图标弹一下。只能挂在"刚出现"的框上 ——
   挂 .dockbtn.on 的话，render() 一重建就弹一次，点地板都会弹。 */
[data-fxk^="dock"].fxin .dico { animation: icoPop 0.55s cubic-bezier(0.3, 1.7, 0.4, 1); }
@keyframes icoPop { 40% { transform: translateY(-5px) rotate(-9deg) scale(1.16); } }

/* 屋里：窗户亮灯 */
.dockbtn.on .win { fill: #ffe08a; stroke: #fff6d8; animation: winOn 2.6s ease-in-out infinite; }
.dockbtn.on .win:nth-of-type(2n) { animation-delay: 0.8s; }
.dockbtn.on .win:nth-of-type(3n) { animation-delay: 1.5s; }
@keyframes winOn { 0%, 100% { opacity: 1; } 45% { opacity: 0.5; } }
/* 线路：车在跑、站点亮 */
.dockbtn.on .stn { fill: #fff; stroke-width: 2; }
.dockbtn.on .car { animation: metroRun 2.8s ease-in-out infinite; }
@keyframes metroRun { 0%, 100% { transform: translateX(-7px); } 50% { transform: translateX(7px); } }
/* 深聊：未读时气泡抖 + 三个点跳 */
.dockbtn.on .bub { fill: rgba(255, 255, 255, 0.18); }
.dockbtn.ring .bub { animation: bubWig 1.5s ease-in-out infinite; }
@keyframes bubWig { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-4deg) translateY(-1px); } 60% { transform: rotate(4deg); } }
.dockbtn.ring .d1, .dockbtn.ring .d2, .dockbtn.ring .d3 { animation: dotJump 1.2s ease-in-out infinite; }
.dockbtn.ring .d2 { animation-delay: 0.16s; }
.dockbtn.ring .d3 { animation-delay: 0.32s; }
@keyframes dotJump { 0%, 60%, 100% { transform: translateY(0); opacity: 0.45; } 30% { transform: translateY(-2.6px); opacity: 1; } }
.dockbtn .ddot {
  position: absolute; top: 3px; right: 8px; width: 9px; height: 9px; border-radius: 99px;
  background: #ff4d4f; box-shadow: 0 0 0 2px #fff, 0 0 12px rgba(255, 77, 79, 0.85);
  animation: ddotPulse 1.2s ease-in-out infinite;
}
.dockbtn.on .ddot { display: none; }
@keyframes ddotPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.4); } }
.dockbtn.ring::after {
  content: ""; position: absolute; inset: -1px; border-radius: 19px;
  border: 2px solid rgba(255, 77, 79, 0.55); animation: ringPulse 1.6s ease-out infinite;
}
@keyframes ringPulse { 0% { opacity: 0.9; transform: scale(0.96); } 100% { opacity: 0; transform: scale(1.12); } }

/* ══════════ 楼道牌：下楼 / 上楼 / 布置 ══════════ */
.stairs { position: absolute; right: 14px; bottom: 78px; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.stairbtn {
  position: relative; width: 98px; padding: 10px 8px 9px;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  background: linear-gradient(170deg, #fffdf6, #fff4e2);
  border-radius: 17px; box-shadow: 0 12px 26px rgba(20, 30, 50, 0.22);
  transform: rotate(-2.5deg); color: #3a4453;
  transition: transform 0.18s cubic-bezier(0.3, 1.6, 0.4, 1), box-shadow 0.18s, filter 0.18s;
}
.stairbtn::before {
  content: ""; position: absolute; top: -7px; left: 50%; width: 48px; height: 15px;
  transform: translateX(-50%) rotate(-4deg);
  background: rgba(255, 214, 138, 0.85); box-shadow: 0 1px 4px rgba(80, 60, 20, 0.18);
}
.stairbtn:hover { transform: rotate(-2.5deg) translateY(-5px) scale(1.04); box-shadow: 0 18px 34px rgba(20, 30, 50, 0.26); }
.stairbtn:active { transform: rotate(-2.5deg) scale(0.93); }
.stairbtn.busy { filter: saturate(0.5) brightness(0.98); }
.sfloor {
  display: flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 800; letter-spacing: 0.06em;
  background: #2b3543; color: #ffe0a8; border-radius: 999px; padding: 3px 9px;
}
.sfloor .lamp { width: 6px; height: 6px; border-radius: 99px; background: #ffc457; box-shadow: 0 0 8px #ffc457; animation: lampBlink 1.6s steps(1) infinite; }
@keyframes lampBlink { 0%, 60% { opacity: 1; } 61%, 100% { opacity: 0.25; } }
.sart { width: 90px; height: 30px; display: grid; place-items: center; color: #4a5566; }
.sart svg { width: 82px; height: 27px; overflow: visible; }
.slab { font-size: 15px; font-weight: 800; letter-spacing: 0.04em; line-height: 1.1; }
.slab em { display: block; font-style: normal; font-size: 10px; font-weight: 700; color: #9aa5b4; margin-top: 1px; }
.stairbtn.down:hover .sguy { animation: guyDown 0.95s ease-in-out infinite; }
.stairbtn.up:hover .sguy { animation: guyUp 0.95s ease-in-out infinite; }
@keyframes guyDown { from { transform: translate(0, -8px); opacity: 0; } 30% { opacity: 1; } to { transform: translate(-6px, 9px); opacity: 0; } }
@keyframes guyUp { from { transform: translate(-6px, 9px); opacity: 0; } 30% { opacity: 1; } to { transform: translate(0, -8px); opacity: 0; } }
.stairbtn:hover .s1 { animation: stepDot 0.95s ease-in-out infinite; }
.stairbtn:hover .s2 { animation: stepDot 0.95s ease-in-out infinite 0.48s; }
@keyframes stepDot { 0% { opacity: 0.2; transform: scale(0.7); } 50% { opacity: 1; transform: scale(1.5); } 100% { opacity: 0.2; transform: scale(0.7); } }

/* 「布置」也是同一套玻璃材质，别再是一块白饼 */
.sidebtn {
  display: flex; align-items: center; gap: 5px; padding: 7px 13px 7px 8px;
  background: linear-gradient(160deg, rgba(38, 30, 66, .94), rgba(16, 20, 38, .95));
  border: 1px solid rgba(190, 150, 255, .34);
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .42), 0 0 16px rgba(150, 100, 255, .16), inset 0 1px 0 rgba(255, 255, 255, .12);
  transform: rotate(2.5deg); font-size: 12.5px; font-weight: 800; color: #d9c9ff;
  transition: transform 0.18s cubic-bezier(0.3, 1.6, 0.4, 1), box-shadow 0.18s, color 0.18s;
}
.sidebtn .dico { width: 24px; height: 22px; display: grid; place-items: center; color: #c9a4ff; }
.sidebtn .dico svg { width: 24px; height: 21px; overflow: visible; }
.sidebtn:hover { transform: rotate(-3deg) translateY(-4px); color: #fff; box-shadow: 0 15px 30px rgba(0, 0, 0, .5), 0 0 22px rgba(160, 110, 255, .34); }
.sidebtn:hover .dico { animation: brushWag 0.62s ease; }
@keyframes brushWag { 30% { transform: rotate(-24deg) translateY(-2px); } 62% { transform: rotate(14deg); } }
.sidebtn:active { transform: rotate(2.5deg) scale(0.93); }

/* ══════════ 聊天条 v2：默认收起，挂在右上 HUD 下面 ══════════ */
.mpbar { top: calc(var(--hud-h, 96px) + 10px); right: 14px; left: auto; bottom: auto; }
.mpbar.hasmsg .mpfeed { display: none; }
.mptoast {
  display: block; align-self: flex-start; max-width: 270px; text-align: left;
  font-size: 12px; font-weight: 700; line-height: 1.45; color: #2c3644;
  background: #fffdf5; border-radius: 4px 14px 14px 14px; padding: 8px 12px;
  box-shadow: 0 10px 26px rgba(20, 30, 50, 0.18);
  transform: rotate(-0.8deg) translateY(6px); opacity: 0; pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  overflow-wrap: anywhere;
}
.mptoast.on { opacity: 1; transform: rotate(-0.8deg) translateY(0); pointer-events: auto; }
.mptoast:empty { display: none; }

@media (max-width: 560px) {
  .dock { width: calc(100% - 20px); }
  .mpbar { top: calc(var(--hud-h, 150px) + 6px); right: 10px; left: auto; bottom: auto; }
}

/* 收起态：只留胶囊 + 小纸条 */
.mpbar .mpform, .mpbar .mpquick { display: none; }
.mpbar.open .mpform { display: none; }
.mpbar.open .mpquick { display: flex; }
.mpbar.open .mptoast { display: none; }

.mpcount.hello { animation: mpHello 0.6s cubic-bezier(0.3, 1.8, 0.4, 1); }
@keyframes mpHello {
  35% { transform: scale(1.18) rotate(-3deg); }
}

/* ══════════ 特效层：点击涟漪 / 火花 / 转场 ══════════ */
#fx { position: fixed; inset: 0; pointer-events: none; z-index: 60; overflow: hidden; }
.fxripple {
  position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 99px;
  border: 2px solid var(--c); box-shadow: 0 0 20px var(--c), inset 0 0 12px var(--c);
  animation: fxRipple 0.62s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
}
@keyframes fxRipple {
  from { transform: scale(0.35); opacity: 0.95; }
  to { transform: scale(9); opacity: 0; }
}
.fxspark {
  position: absolute; width: var(--s); height: var(--s);
  margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
  border-radius: 99px; background: var(--c); box-shadow: 0 0 10px var(--c);
  animation: fxSpark 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
}
@keyframes fxSpark {
  from { transform: translate(0, 0) rotate(0) scale(1); opacity: 1; }
  to { transform: translate(var(--dx), var(--dy)) rotate(var(--r)) scale(0.15); opacity: 0; }
}
.fxemo {
  position: absolute; font-size: 20px; margin: -11px 0 0 -11px;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.28));
  animation: fxEmo 0.9s cubic-bezier(0.2, 0.8, 0.3, 1) forwards;
}
@keyframes fxEmo {
  0% { transform: translate(0, 0) scale(0.4) rotate(-22deg); opacity: 0; }
  25% { transform: translate(0, -18px) scale(1.3) rotate(8deg); opacity: 1; }
  100% { transform: translate(7px, -78px) scale(0.75) rotate(26deg); opacity: 0; }
}

body.shakeit #view, body.shakeit #ui { animation: fxShake 0.5s ease-in-out; }
@keyframes fxShake {
  0%, 100% { transform: translate(0, 0); }
  14% { transform: translate(-2px, 3px); }
  30% { transform: translate(2px, -2px); }
  46% { transform: translate(-3px, 2px); }
  62% { transform: translate(2px, 2px); }
  80% { transform: translate(-1px, -1px); }
}

.stairwipe { position: absolute; inset: 0; display: grid; place-items: center; }
.stairwipe.out { opacity: 0; transition: opacity 0.36s ease; }
.swslabs { position: absolute; inset: -12% -16%; display: flex; flex-direction: column; }
.swslabs i {
  flex: 1; display: block; transform: translateX(-118%) rotate(-3deg);
  background: linear-gradient(100deg, #101a26 0%, #1d2c3d 55%, #26394e 100%);
  animation: swIn 0.34s cubic-bezier(0.35, 0, 0.25, 1) forwards;
  animation-delay: calc(var(--i) * 45ms);
}
.swslabs i:nth-child(even) { background: linear-gradient(100deg, #16222f 0%, #223344 60%, #2c4256 100%); }
.swslabs i { border-bottom: 2px solid rgba(255, 176, 84, 0.14); }
.swmid { position: relative; text-align: center; color: #fff; opacity: 0; animation: swMid 1s ease forwards; }
.swlab { display: block; font-size: 23px; font-weight: 900; letter-spacing: 0.08em; text-shadow: 0 6px 22px rgba(0, 0, 0, 0.55); }
.swfeet { display: flex; gap: 12px; justify-content: center; margin-top: 10px; }
.swfeet b { font-size: 15px; opacity: 0; animation: swFoot 0.55s ease forwards; }
.swfeet b:nth-child(1) { animation-delay: 0.06s; }
.swfeet b:nth-child(2) { animation-delay: 0.28s; }
.swfeet b:nth-child(3) { animation-delay: 0.5s; }
@keyframes swIn { from { transform: translateX(-118%) rotate(-3deg); } to { transform: translateX(0) rotate(-3deg); } }
@keyframes swOut { from { transform: translateX(0) rotate(-3deg); } to { transform: translateX(118%) rotate(-3deg); } }
@keyframes swInUp { from { transform: translateX(118%) rotate(-3deg); } to { transform: translateX(0) rotate(-3deg); } }
@keyframes swOutUp { from { transform: translateX(0) rotate(-3deg); } to { transform: translateX(-118%) rotate(-3deg); } }
.stairwipe.up .swslabs i { animation-name: swInUp; }
.stairwipe.out .swslabs i { animation: swOut 0.4s cubic-bezier(0.35, 0, 0.25, 1) forwards; animation-delay: calc(var(--i) * 40ms); }
.stairwipe.up.out .swslabs i { animation-name: swOutUp; }
@keyframes swMid { 0% { opacity: 0; transform: scale(0.9); } 22% { opacity: 1; transform: scale(1); } 100% { opacity: 1; transform: scale(1); } }
@keyframes swFoot {
  0% { opacity: 0; transform: translateY(9px) scale(0.6); }
  45% { opacity: 1; transform: translateY(-7px) scale(1.2); }
  100% { opacity: 0.95; transform: translateY(0) scale(1); }
}

@media (max-width: 560px) {
  .dockbtn { width: 54px; }
  .dockbtn svg { width: 27px; height: 24px; }
  .stairbtn { width: 88px; }
  .sart svg { width: 66px; height: 22px; }
}

/* ══════════ 深圳 3D 行政区地图 ══════════ */
.szmap { position: fixed; inset: 0; z-index: 1; overflow: hidden; color: #eaf2ff; }
.szmap-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 50% 12%, rgba(80,170,255,.18), transparent 60%),
    radial-gradient(90% 70% at 15% 90%, rgba(255,140,80,.14), transparent 60%),
    linear-gradient(180deg, #071021 0%, #08182f 55%, #050b18 100%);
}
.szmap-bg::after {
  content: ""; position: absolute; inset: 0; opacity: .35;
  background:
    repeating-linear-gradient(90deg, rgba(120,180,255,.10) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(0deg, rgba(120,180,255,.10) 0 1px, transparent 1px 64px);
}
.sztop { position: absolute; left: 0; right: 0; top: 0; padding: 16px 18px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; pointer-events: none; }
.sztitle b { font-size: 26px; letter-spacing: .08em; color: #12324f; text-shadow: 0 1px 0 rgba(255,255,255,.45); }
.sztitle span { display: block; font-size: 11px; color: #1d4568; opacity: .85; font-weight: 700; letter-spacing: .12em; margin-top: 2px; }
.sztips { font-size: 11px; color: #1d4568; opacity: .8; font-weight: 700; }

.sz3d-wrap { position: absolute; inset: 0; cursor: grab; }
.sz3d-wrap:active { cursor: grabbing; }
.sz3d-wrap canvas { display: block; width: 100%; height: 100%; }

/* ── 3D 地图上的名字牌 ──
   名字必须画在 DOM 上。贴到 sprite 上的字在世界空间里，
   一拉远就只剩七八像素高，怎么提分辨率都是糊的。 */
.szlab-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.szlab {
  position: absolute; left: 0; top: 0; pointer-events: auto;
  display: flex; align-items: center; gap: 5px;
  padding: 3px 8px 3px 5px; border-radius: 999px; gap: 4px;
  background: rgba(6, 13, 26, .84);
  -webkit-backdrop-filter: blur(8px) saturate(1.2); backdrop-filter: blur(8px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .38);
  color: #eaf2fb; font-size: 11.5px; font-weight: 800; line-height: 1;
  white-space: nowrap; cursor: pointer; transform-origin: 50% 50%;
  will-change: transform, opacity;
}
.szlab i {
  width: 7px; height: 7px; border-radius: 50%; flex: none;
  background: var(--lc); box-shadow: 0 0 7px var(--lc);
}
.szlab b { font-weight: 800; letter-spacing: .01em; text-shadow: 0 1px 3px rgba(0,0,0,.55); }
/* 能进去的地方：名字牌更亮，一眼分得清"能去"和"只看看" */
.szlab.big {
  background: rgba(8, 18, 34, .9);
  border-color: rgba(255, 255, 255, .3);
  font-size: 12.5px;
}
.szlab.big b { color: #fff; }
.szlab:hover { background: rgba(30, 54, 92, .95); border-color: rgba(255,255,255,.45); z-index: 3; }
.szlab.hot {
  background: var(--lc); border-color: rgba(255,255,255,.7); color: #071021;
  box-shadow: 0 8px 22px rgba(0,0,0,.45), 0 0 0 3px rgba(255,255,255,.18);
  z-index: 4;
}
.szlab.hot i { background: #071021; box-shadow: none; }
.szlab.hot b { color: #071021; text-shadow: none; }

/* 区列表 */
/* 区列表挪到左下角：原来竖在左边的正中，正好压住南山/福田那一堆点，
   地名本来就挤，再叠一排区名就没法看了。 */
/* 窗口矮的时候（比如 1080×510）这列区名会长到顶上去，跟左上角"0/31"徽章按钮撞脸。
   给个高度上限 + 自家滚动，撞不上也不挤掉地图。 */
.szdists { position: absolute; left: 12px; top: auto; bottom: 112px; transform: none;
  display: flex; flex-direction: column; gap: 5px;
  max-height: calc(100% - 300px); overflow-y: auto; overflow-x: hidden; scrollbar-width: none; }
.szdists::-webkit-scrollbar { display: none; }
.szd { display: flex; align-items: center; gap: 7px; padding: 6px 11px 6px 8px; border-radius: 20px;
  background: rgba(10,20,38,.62); border: 1px solid rgba(255,255,255,.1); color: #cfe0f5;
  font-size: 12px; font-weight: 800; letter-spacing: .1em; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.szd i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.szd:hover { background: rgba(20,36,64,.85); color: #fff; transform: translateX(2px); }
.szd.on { background: var(--c); color: #071021; border-color: transparent; }

/* 缩放 */
/* 地铁图例：八条线画上去，不给个对照表玩家分不清哪条是哪条 */
.szlines { position: absolute; left: 50%; transform: translateX(-50%); bottom: 150px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 5px 7px; max-width: min(760px, 84vw); pointer-events: none; }
.szl { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px 3px 7px; border-radius: 999px;
  background: rgba(8, 16, 32, .8); border: 1px solid rgba(255,255,255,.12); color: #dbe8f8;
  font-size: 11px; font-weight: 800; letter-spacing: .04em; white-space: nowrap;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.szl i { width: 12px; height: 3.5px; border-radius: 2px; background: var(--c); box-shadow: 0 0 7px var(--c); flex: none; }
.szzoom { position: absolute; right: 14px; bottom: 90px; display: flex; flex-direction: column; gap: 6px; }
.szzoom button { width: 38px; height: 38px; border-radius: 12px; background: rgba(10,20,38,.7); color: #dceaff;
  border: 1px solid rgba(255,255,255,.12); font-size: 15px; font-weight: 900; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.szzoom button:last-child { font-size: 11px; }
.szzoom button:hover { background: rgba(30,54,92,.9); }

.szhere {
  position: absolute; left: 50%; top: 78px; transform: translateX(-50%);
  z-index: 5; display: flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 10px; border-radius: 999px; pointer-events: none;
  background: linear-gradient(135deg, rgba(10, 18, 32, .92), rgba(28, 40, 64, .88));
  border: 1px solid rgba(255, 209, 102, .75);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .35), 0 0 0 4px rgba(255, 209, 102, .15);
  color: #fff; animation: szHere 1.6s ease-in-out infinite;
}
@keyframes szHere { 50% { box-shadow: 0 10px 28px rgba(0,0,0,.35), 0 0 0 8px rgba(255, 209, 102, 0); } }
.szhere i {
  width: 10px; height: 10px; border-radius: 50%; background: #ffd166;
  box-shadow: 0 0 0 4px rgba(255, 209, 102, .35);
}
.szhere b { font-size: 11px; letter-spacing: .12em; color: #ffd166; }
.szhere span { font-size: 14px; font-weight: 900; }
.home-ping {
  display: block; width: 100%; margin-top: 8px; text-align: left;
  background: #f2c14b; color: #1c2430; font-weight: 900; font-size: 12px;
  border-radius: 12px; padding: 8px 10px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .2);
}
.sznow { position: absolute; left: 50%; bottom: 108px; transform: translateX(-50%);
  padding: 7px 14px; border-radius: 20px; background: rgba(10,20,38,.72); color: #cfe0f5; font-size: 12px; font-weight: 700;
  border: 1px solid rgba(255,255,255,.12); }
.sznow b { color: #ffd166; }

/* 景点卡片 */
.szcard {
  position: absolute; right: 16px; top: 74px; width: 292px; border-radius: 20px; overflow: hidden;
  background: linear-gradient(180deg, rgba(12,22,42,.96), rgba(8,16,32,.96));
  border: 1px solid rgba(255,255,255,.14); box-shadow: 0 26px 60px rgba(0,0,0,.5);
  animation: cardIn .28s cubic-bezier(.2,1.2,.4,1) both;
}
@keyframes cardIn { from { opacity: 0; transform: translateX(24px) scale(.96) } }
.szc-x { position: absolute; right: 8px; top: 8px; z-index: 2; padding: 5px 10px; border-radius: 12px;
  background: rgba(6,14,28,.6); color: #9fb2cc; font-size: 11px; font-weight: 800; border: 1px solid rgba(255,255,255,.14); }
.szc-art { height: 152px; background: linear-gradient(165deg, color-mix(in srgb, var(--pc) 30%, #0b1730), #0a1428);
  display: grid; place-items: center; overflow: hidden; }
.szc-art svg { width: 100%; height: 100%; }
.szc-body { padding: 12px 14px 14px; }
.szc-head { display: flex; align-items: center; gap: 8px; }
.szc-head b { font-size: 18px; font-weight: 900; letter-spacing: .04em; }
.szc-head .tag { font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 10px;
  background: color-mix(in srgb, var(--pc) 30%, transparent); color: color-mix(in srgb, var(--pc) 70%, #fff);
  border: 1px solid color-mix(in srgb, var(--pc) 45%, transparent); }
.szc-body p { margin: 8px 0 10px; font-size: 12.5px; line-height: 1.65; color: #b9c8de; }
.szc-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.szc-meta span { font-size: 10.5px; font-weight: 700; padding: 4px 9px; border-radius: 10px;
  background: rgba(255,255,255,.07); color: #9fb2cc; }
.szc-go { margin-top: 12px; width: 100%; padding: 11px 0; border-radius: 14px; font-size: 14px; font-weight: 900;
  background: linear-gradient(150deg, color-mix(in srgb, var(--pc) 90%, #fff), var(--pc)); color: #071021;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--pc) 40%, transparent); }
/* 锁着的地点 / 已经在这儿：给一块说明牌，别让卡片底部空着 */
.szc-lock {
  margin-top: 12px; padding: 9px 12px; border-radius: 12px;
  background: rgba(255, 255, 255, .07); border: 1px dashed rgba(255, 255, 255, .22);
  color: #cbd8e6; font-size: 12px; font-weight: 700; line-height: 1.5;
}

@media (max-width: 720px) {
  .szdists { left: 8px; top: auto; bottom: 120px; transform: none; flex-direction: row; flex-wrap: wrap; max-width: 60vw; }
  /* 底部 dock 高 90 左右，卡片贴到 62 会被 dock 压掉一截，标题都看不见 */
  .szcard { right: 8px; left: 8px; width: auto; top: auto; bottom: 104px; max-height: calc(100dvh - 300px); overflow: auto; }
  .szc-art { height: 106px; }
  .sznow { bottom: 400px; }
  .szzoom { bottom: 150px; right: 8px; }
}

/* ══════════ 账本 / 月结 ══════════ */
.billcard { width: min(420px, 100%); }
.billh { margin: 8px 0 16px; font-size: 22px; font-weight: 900; letter-spacing: -0.01em; color: #fff; }
.billtop { display: flex; gap: 26px; }
.billtop div { display: flex; flex-direction: column; gap: 2px; }
.billtop span { font-size: 11px; font-weight: 800; color: #8a93a0; letter-spacing: 0.08em; }
.billtop b { font-size: 21px; font-weight: 900; font-variant-numeric: tabular-nums; }
.billtop b.in { color: #3dff9a; }
.billtop b.out { color: #ff8f8f; }
.billbar { display: flex; gap: 2px; height: 12px; margin: 16px 0 9px; background: rgba(255, 255, 255, .08); border-radius: 99px; overflow: hidden; }
.billbar i { display: block; height: 100%; }
.billkey { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.billkey span { display: flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; color: #c5d0dc; }
.billkey i { width: 7px; height: 7px; border-radius: 2px; }
.billfacts { list-style: none; margin: 16px 0 0; padding: 0; }
.billfacts li { position: relative; padding-left: 13px; font-size: 12.5px; line-height: 1.95; color: #d5deea; }
.billfacts li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 4px; height: 4px; border-radius: 50%; background: #f0c14a; }
.billfacts b { font-weight: 900; color: #fff; }
.billline { margin: 16px 0 18px; padding: 12px 14px; background: rgba(255, 255, 255, .06); border-radius: 14px; font-size: 13.5px; line-height: 1.72; color: #f6f1e6; }
.billline em { display: block; margin-top: 6px; font-style: normal; text-align: right; font-size: 11.5px; font-weight: 700; color: #f0d7a8; }

/* 手机里的账本页 */
.bk { margin-top: 10px; }
.bk-head { display: flex; align-items: baseline; justify-content: space-between; padding: 0 2px; }
.bk-head b { font-size: 13.5px; }
.bk-head small { font-size: 11px; color: #8a93a0; font-weight: 700; }
.bk-sum { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; background: #fff; border-radius: 13px; padding: 12px 14px; }
.bk-sum div { display: flex; flex-direction: column; gap: 1px; }
.bk-sum span { font-size: 10.5px; font-weight: 800; color: #8a93a0; letter-spacing: .08em; }
.bk-sum b { font-size: 18px; font-weight: 900; font-variant-numeric: tabular-nums; }
.bk-sum b.in { color: #0c7a42; }
.bk-sum b.out { color: #c0392b; }
.bk-net { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; background: #fff; border-radius: 13px; padding: 11px 14px; border-left: 3px solid #0c7a42; }
.bk-net.neg { border-left-color: #c0392b; }
.bk-net span { font-size: 11.5px; font-weight: 800; color: #8a93a0; }
.bk-net b { font-size: 19px; font-weight: 900; font-variant-numeric: tabular-nums; color: #0c7a42; }
.bk-net.neg b { color: #c0392b; }
.bk-bars { margin-top: 8px; background: #fff; border-radius: 13px; padding: 12px 14px; }
.bk-bars small { font-size: 11.5px; color: #8a93a0; }
.bk-row { display: grid; grid-template-columns: 40px 1fr 62px; align-items: center; gap: 9px; height: 23px; }
.bk-n { font-size: 11.5px; color: #4a5566; font-weight: 700; }
.bk-t { display: block; height: 7px; background: #eef1f5; border-radius: 99px; overflow: hidden; }
.bk-t i { display: block; height: 100%; border-radius: 99px; }
.bk-row b { font-size: 11.5px; text-align: right; font-variant-numeric: tabular-nums; color: #1c2430; }
.bk-facts { margin: 9px 2px 0; font-size: 11px; color: #8a93a0; font-weight: 700; }
.bk-title { margin: 12px 2px 6px; font-size: 12px; font-weight: 800; color: #4a5566; }
.bk-list { background: #fff; border-radius: 13px; padding: 4px 14px; }
.bk-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid #f2f3f5; font-size: 12px; }
.bk-item:last-child { border-bottom: 0; }
.bk-item span { color: #4a5566; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-item em { font-style: normal; font-weight: 800; font-variant-numeric: tabular-nums; flex: none; }
.bk-item em.in { color: #0c7a42; }
.bk-item em.out { color: #c0392b; }

/* ══════════ 找房：一个月的真账 ══════════ */
.homelist { display: flex; flex-direction: column; gap: 8px; }
.hopt { width: 100%; text-align: left; padding: 11px 13px; border-radius: 15px; background: #f7f8fa; border: 2px solid transparent; }
.hopt.on { border-color: #0fb866; background: #eefbf3; }
.hopt:disabled { opacity: .55; }
.hopt-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.hopt-h b { font-size: 14px; }
.hopt-h span { font-size: 11px; font-weight: 800; color: #8a93a0; }
.hopt-b { margin: 6px 0 0; font-size: 11.5px; line-height: 1.55; color: #667085; }
.hc { display: grid; grid-template-columns: 1fr 1fr 0.85fr 1.2fr; gap: 6px; align-items: end; margin: 10px 0 0; }
.hc span { display: block; font-size: 10px; font-weight: 800; color: #8a93a0; }
.hc b { font-size: 12.5px; font-variant-numeric: tabular-nums; }
.hc-t { padding-left: 9px; border-left: 1px dashed #dfe5ee; text-align: right; }
.hc-t b { font-size: 14px; font-weight: 900; }
.hc.best .hc-t b { color: #c0392b; }

/* ══════════ 熟人 ══════════ */
.pp { padding: 12px 12px 30px; }
.pp-head { display: flex; align-items: baseline; justify-content: space-between; padding: 0 2px 2px; }
.pp-head b { font-size: 14px; }
.pp-head small { font-size: 11px; font-weight: 800; color: #8a93a0; }
.pp-card { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 11px 12px; background: #fff; border-radius: 14px; }
.pp-face { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 15px; font-weight: 900; font-style: normal; }
.pp-main { flex: 1; min-width: 0; }
.pp-main b { display: block; font-size: 13.5px; }
.pp-main b small { margin-left: 6px; font-size: 10.5px; font-weight: 700; color: #8a93a0; }
.pp-bar { display: block; height: 5px; margin: 5px 0 4px; background: #eef1f5; border-radius: 99px; overflow: hidden; }
.pp-bar i { display: block; height: 100%; border-radius: 99px; }
.pp-main p { margin: 0; font-size: 11px; line-height: 1.5; color: #8a93a0; }
.pp-act { flex: none; width: 74px; }
.pp-act button { width: 100%; padding: 7px 0; border-radius: 999px; background: #f1f4f8; color: #4a5566; font-size: 11.5px; font-weight: 800; white-space: nowrap; }
.pp-act button.on { background: #b5763c; color: #fff; }
.pp-note { margin: 14px 2px 0; font-size: 11px; line-height: 1.7; color: #9aa3ad; }
.bk-empty { margin-top: 8px; background: #fff; border-radius: 13px; padding: 15px; font-size: 11.5px; line-height: 1.6; color: #8a93a0; text-align: center; }
.billcap { margin-top: 18px; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; color: #8a93a0; }
.billcap + .billbar { margin-top: 7px; }
.hc-note { margin: 10px 2px 0; padding-top: 9px; border-top: 1px dashed #e6eaef; line-height: 1.65; }

/* ══════════ 同城：头顶名字 ══════════ */
.mpname {
  font-style: normal; text-decoration: none;
  font-size: 10.5px; font-weight: 800; line-height: 1;
  color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
  padding: 2px 6px; border-radius: 99px;
  background: rgba(20, 28, 40, 0.42);
  white-space: nowrap; max-width: 96px; overflow: hidden; text-overflow: ellipsis;
}
.mpname.friend { background: rgba(176, 118, 60, 0.9); }

/* ══════════ 手机 · 同城 ══════════ */
.ct { padding: 12px 13px 22px; }
.ct-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.ct-head b { font-size: 15px; }
.ct-head small { font-size: 10.5px; font-weight: 700; color: #8a93a0; text-align: right; }
.ct-sec { margin: 15px 0 7px; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; color: #8a93a0; }
.ct-list { background: #fff; border-radius: 13px; overflow: hidden; }
.ct-row { display: flex; align-items: center; gap: 9px; padding: 9px 11px; border-bottom: 1px solid #f2f3f5; }
.ct-row:last-child { border-bottom: 0; }
.ct-row i { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 13px; font-weight: 900; font-style: normal; }
.ct-row span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ct-row span b { font-size: 13px; }
.ct-row span small { font-size: 10.5px; color: #8a93a0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-row em { flex: none; display: flex; gap: 5px; font-style: normal; }
.ct-row em button { padding: 5px 9px; border-radius: 999px; background: #f1f4f8; font-size: 11.5px; font-weight: 800; color: #4a5566; }
.ct-row em button:active { transform: scale(0.94); }
.ct-empty { background: #fff; border-radius: 13px; padding: 14px; font-size: 11.5px; line-height: 1.65; color: #8a93a0; }
.ct-wall { background: #fff; border-radius: 13px; padding: 4px 12px; }
.ct-post { padding: 8px 0; border-bottom: 1px solid #f2f3f5; }
.ct-post:last-child { border-bottom: 0; }
.ct-ph { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.ct-post b { font-size: 11.5px; font-weight: 900; }
.ct-post span { display: block; margin-top: 2px; font-size: 12px; line-height: 1.55; color: #3d4a5c; overflow-wrap: anywhere; }
.ct-post em { font-style: normal; font-size: 10px; font-weight: 700; color: #aab2bd; }
.ct-form { display: flex; gap: 7px; margin-top: 10px; }
.ct-form input { flex: 1; min-width: 0; padding: 9px 12px; border: 0; border-radius: 12px; background: #fff; font-size: 12.5px; font-family: inherit; color: #1c2430; }
.ct-form input::placeholder { color: #aab2bd; }
.ct-form button { flex: none; padding: 9px 15px; border-radius: 12px; background: #e03131; color: #fff; font-size: 12.5px; font-weight: 800; }

/* ══════════ 怎么去：出行选择卡 ══════════ */
.sheet-head { display: flex; align-items: center; gap: 8px; }
.sheet-head b { flex: 1; font-size: 16px; }
.sheet-head > button {
  flex: none; background: #eef1f5; color: #3d4a5c; border-radius: 999px;
  padding: 7px 14px; font-size: 13px; font-weight: 650;
}
.sheet-head > button:hover { background: #e2e7ee; }
.wchip {
  flex: none; font-size: 12px; font-weight: 700; color: #3d4a5c;
  background: #eef1f5; border-radius: 999px; padding: 5px 10px;
}
.ride {
  display: flex; align-items: center; gap: 10px; text-align: left;
  border-radius: 15px; padding: 8px 11px; background: #f6f8fb;
  border: 2px solid transparent;
}
.ride:hover { background: #eef3f9; border-color: #d6e2ef; }
.ride:disabled { opacity: .42; cursor: not-allowed; }
.ride.cheap { background: #eefbf3; }
.ride.fast { background: #eff6ff; }
.ride.cheap.fast { background: #eaf7f1; }
.ride > i { flex: none; font-size: 21px; font-style: normal; width: 30px; text-align: center; }
.ride .rmain { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ride .rmain b { font-size: 14.5px; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.ride .rmain small { color: var(--muted); font-size: 12px; line-height: 1.4; }
.ride .rmain s { color: #b4553f; text-decoration: none; }
.ride .rnum { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.ride .rnum em { font-style: normal; font-size: 15px; font-weight: 750; }
.ride .rnum u { text-decoration: none; font-size: 12px; color: #3d4a5c; }
.ride .rnum small { font-size: 11px; color: #8a93a0; }
.ride .tag {
  font-style: normal; font-size: 10.5px; font-weight: 800; letter-spacing: .04em;
  color: #0f6e56; background: #dff4e8; border-radius: 999px; padding: 2px 7px;
}
.ride .tag.fast { color: #185fa5; background: #e2edfa; }
.ride.off { background: #f2f3f5; opacity: .8; cursor: default; }
.ride.off:hover { background: #f2f3f5; border-color: transparent; }
.ride.off > i { filter: grayscale(1); }
.minibuy {
  background: #1c2430; color: #fff; border-radius: 999px;
  padding: 7px 12px; font-size: 12px; font-weight: 700; white-space: nowrap;
}
.minibuy:hover { background: #000; }
.minibuy:disabled { background: #c5ced8; cursor: not-allowed; }

/* ══════════════════════════════════════════════════════════
   游戏特效层 · 框框的出场 / 反馈 / 手感
   规则：render() 是整块重建，所以动画只能靠 data-fxk 身份控制，
   已经在场上的框（.fxhold）一律不放动画，只有新出现的（.fxin）才演一遍。
   ══════════════════════════════════════════════════════════ */

/* ── 通用：错峰逐行 ── */
.fxstagger > * { animation: fxRow .4s cubic-bezier(.2,1.35,.4,1) both; }
.fxstagger > *:nth-child(1) { animation-delay: .02s }
.fxstagger > *:nth-child(2) { animation-delay: .07s }
.fxstagger > *:nth-child(3) { animation-delay: .12s }
.fxstagger > *:nth-child(4) { animation-delay: .17s }
.fxstagger > *:nth-child(5) { animation-delay: .22s }
.fxstagger > *:nth-child(6) { animation-delay: .27s }
.fxstagger > *:nth-child(7) { animation-delay: .32s }
.fxstagger > *:nth-child(8) { animation-delay: .37s }
.fxstagger > *:nth-child(n+9) { animation-delay: .42s }
@keyframes fxRow {
  0%   { opacity: 0; transform: translateX(-14px) scale(.97); }
  60%  { opacity: 1; transform: translateX(2px) scale(1.005); }
  100% { opacity: 1; transform: translateX(0) scale(1); }
}

/* ── ① 说话条 banner：从下弹上来，扫一道光 ── */
[data-fxk^="banner"].fxin { animation: fxBannerIn .5s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes fxBannerIn {
  0%   { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: none; }
}
[data-fxk^="banner"].fxin.up { animation-name: fxBannerInUp; }
@keyframes fxBannerInUp {
  0%   { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: none; }
}
.banner { overflow: hidden; border-left: 4px solid var(--green); }
.banner::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.85) 48%, transparent 66%);
  transform: translateX(-130%);
  animation: fxShine 1.1s ease .12s 1;
}
@keyframes fxShine { to { transform: translateX(130%); } }

/* ── ② 面板 / 出行卡 / 结算卡：从右边滑进来 ── */
[data-fxk^="panel"].fxin, [data-fxk^="sheet"].fxin { animation: fxSheetIn .46s cubic-bezier(.2,1.25,.4,1) both; }
/* 首帧位移别太大：无头/后台标签页里 CSS 动画时钟会停，fill:both 会把面板
   一直按在首帧 —— 48px 的位移会让面板右边被屏幕裁掉（看起来像"被盖住"）。
   收成 20px、去掉 scale，即使卡住也只是稍微偏一点，不会溢出。 */
@keyframes fxSheetIn {
  0%   { opacity: 0; transform: translateX(20px); filter: blur(2px); }
  100% { opacity: 1; transform: translateX(0); filter: blur(0); }
}

/* ── ③ 随机事件卡：居中弹入，背后遮罩一起亮 ── */
[data-fxk^="event"].fxin,
[data-fxk^="preview"].fxin { animation: fxWrapIn .3s ease both; }
@keyframes fxWrapIn { from { opacity: 0; } }
[data-fxk^="event"].fxin .settle,
[data-fxk^="preview"].fxin .settle { animation: fxEventIn .58s cubic-bezier(.2,1.5,.4,1) both; }
@keyframes evPing {
  0% { box-shadow: 0 0 0 0 currentColor; }
  100% { box-shadow: 0 0 0 14px transparent; }
}
@keyframes evGlow {
  0%, 100% { box-shadow: 0 28px 70px rgba(0, 0, 0, .55), 0 0 0 1px rgba(126, 200, 255, .2); }
  50% { box-shadow: 0 28px 70px rgba(0, 0, 0, .55), 0 0 26px rgba(126, 200, 255, .45); }
}
@keyframes goldGlow {
  0%, 100% { box-shadow: 0 28px 70px rgba(0, 0, 0, .55), 0 0 0 1px rgba(240, 193, 74, .2); }
  50% { box-shadow: 0 28px 70px rgba(0, 0, 0, .55), 0 0 26px rgba(240, 193, 74, .4); }
}
@keyframes fxEventIn {
  0%   { opacity: 0; transform: translateY(30px) scale(.9) rotate(-1.2deg); }
  55%  { opacity: 1; transform: translateY(-8px) scale(1.02) rotate(.4deg); }
  100% { opacity: 1; transform: translateY(0) scale(1) rotate(0); }
}
[data-fxk^="event"].fxin .evtitle { animation: fxTitleIn .5s cubic-bezier(.2,1.5,.4,1) .16s both; }
@keyframes fxTitleIn { 0% { opacity: 0; transform: translateY(8px); } 100% { opacity: 1; transform: none; } }
[data-fxk^="event"].fxin .evopts { }
[data-fxk^="event"].fxin .evopts button { animation: fxRow .42s cubic-bezier(.2,1.35,.4,1) both; }
[data-fxk^="event"].fxin .evopts button:nth-child(1) { animation-delay: .28s }
[data-fxk^="event"].fxin .evopts button:nth-child(2) { animation-delay: .36s }
[data-fxk^="event"].fxin .evopts button:nth-child(3) { animation-delay: .44s }
[data-fxk^="event"].fxin .evopts button:nth-child(4) { animation-delay: .52s }

/* ── ④ toast 提醒：从左边跳进来，抖两下 ── */
[data-fxk^="toast"].fxin { animation: fxToastIn .5s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes fxToastIn {
  0%   { opacity: 0; transform: translateX(-40px) scale(.9); }
  45%  { opacity: 1; transform: translateX(6px) scale(1.04) rotate(-1.5deg); }
  70%  { transform: translateX(-3px) scale(.99) rotate(1deg); }
  100% { opacity: 1; transform: translateX(0) scale(1) rotate(0); }
}

/* ── ⑤ coach 提示条：上浮淡入 ── */
[data-fxk^="coach"].fxin { animation: fxCoachIn .5s cubic-bezier(.2,1.3,.4,1) both; }
@keyframes fxCoachIn {
  0%   { opacity: 0; transform: translateX(-50%) translateY(16px); }
  100% { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ── ⑥ 地图地点卡（原来每次 render 都重播，改成身份控制） ── */
.szcard { animation: none; }
[data-fxk^="szcard"].fxin { animation: fxSzCardIn .42s cubic-bezier(.2,1.3,.4,1) both; }
@keyframes fxSzCardIn {
  0%   { opacity: 0; transform: translateX(34px) scale(.94); }
  100% { opacity: 1; transform: translateX(0) scale(1); }
}
[data-fxk^="szcard"].fxin .szc-art svg { animation: fxArtPop .7s cubic-bezier(.2,1.7,.4,1) .1s both; }
@keyframes fxArtPop {
  0% { transform: scale(.82) translateY(8px); opacity: .4; }
  55% { transform: scale(1.06) translateY(-3px); opacity: 1; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
[data-fxk^="szcard"].fxin .szc-head b { animation: fxRow .4s cubic-bezier(.2,1.4,.4,1) .16s both; }
[data-fxk^="szcard"].fxin .szc-body > p { animation: fxRow .4s cubic-bezier(.2,1.4,.4,1) .22s both; }
[data-fxk^="szcard"].fxin .szc-meta { animation: fxRow .4s cubic-bezier(.2,1.4,.4,1) .28s both; }
[data-fxk^="szcard"].fxin .szc-go { animation: fxGoIn .5s cubic-bezier(.2,1.6,.4,1) .34s both; }
@keyframes fxGoIn {
  0% { opacity: 0; transform: translateY(10px) scale(.92); }
  60% { opacity: 1; transform: translateY(-3px) scale(1.03); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.szc-go { position: relative; overflow: hidden; }
.szc-go::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 32%, rgba(255,255,255,.7) 50%, transparent 68%);
  transform: translateX(-140%);
}
.szc-go:hover::after { animation: fxShine .85s ease; }

/* ── ⑦ 地点卡（老地图） ── */
[data-fxk^="pincard"].fxin { animation: fxPinIn .44s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes fxPinIn {
  0% { opacity: 0; transform: translateX(-50%) translateY(26px) scale(.95); }
  100% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}

/* ── ⑧ 中央大字卡：出发 / 到达 / 进账 / 倒霉 ── */
.fxflash {
  position: absolute; left: 50%; top: 38%; transform: translate(-50%, -50%);
  display: grid; place-items: center; pointer-events: none;
}
.fxflash .fxf-in {
  position: relative; z-index: 2; text-align: center; color: #fff;
  padding: 16px 30px; border-radius: 22px;
  background: rgba(14, 22, 36, .88);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1.5px solid var(--fc);
  box-shadow: 0 22px 60px rgba(0,0,0,.42), 0 0 0 6px color-mix(in srgb, var(--fc) 18%, transparent);
  animation: fxFlashIn .62s cubic-bezier(.2,1.55,.4,1) both;
}
.fxflash .fxf-in b { display: block; font-size: 27px; font-weight: 900; letter-spacing: .04em; text-shadow: 0 4px 18px rgba(0,0,0,.5); }
.fxflash .fxf-in span { display: block; margin-top: 5px; font-size: 14px; font-weight: 700; color: var(--fc); letter-spacing: .06em; }
.fxflash .fxf-ring {
  position: absolute; left: 50%; top: 50%; width: 120px; height: 120px; margin: -60px 0 0 -60px;
  border-radius: 999px; border: 2px solid var(--fc); z-index: 1;
  animation: fxRing 1s cubic-bezier(.2,.7,.3,1) both;
}
.fxflash .fxf-ring.d2 { animation-delay: .16s; }
@keyframes fxRing {
  0% { transform: scale(.2); opacity: .95; }
  100% { transform: scale(2.6); opacity: 0; }
}
@keyframes fxFlashIn {
  0%   { opacity: 0; transform: scale(.7) translateY(16px); }
  50%  { opacity: 1; transform: scale(1.06) translateY(-6px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
.fxflash.out { animation: fxFlashOut .58s ease forwards; }
@keyframes fxFlashOut {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -78%) scale(.94); }
}
.fxflash.k-warn .fxf-in b { color: #ffd7d7; }
.fxflash.k-cash .fxf-in b { color: #ffe9b0; }

/* ── ⑨ 飘字 ── */
.fxfloat {
  position: absolute; transform: translate(-50%, -50%);
  font-size: 21px; font-weight: 900; letter-spacing: .02em; white-space: nowrap;
  text-shadow: 0 3px 12px rgba(0,0,0,.45), 0 0 20px rgba(255,255,255,.35);
  animation: fxFloat 1.5s cubic-bezier(.2,.8,.3,1) forwards;
}
.fxfloat.k-up { color: #5bf0a0; }
.fxfloat.k-down { color: #ff8f8f; }
.fxfloat.k-info { color: #ffe08a; }
@keyframes fxFloat {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(.5); }
  22%  { opacity: 1; transform: translate(-50%, -70%) scale(1.22); }
  45%  { transform: translate(-50%, -86%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -170%) scale(.9); }
}

/* ── ⑩ 一句话 ping：屏幕中上方的一条语气条 ── */
.fxping {
  position: absolute; left: 50%; top: 84px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px;
  padding: 9px 16px 9px 12px; border-radius: 999px;
  background: rgba(16, 24, 38, .92); color: #fff; font-size: 13.5px; font-weight: 700;
  box-shadow: 0 12px 34px rgba(0,0,0,.34);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  animation: fxPingIn .42s cubic-bezier(.2,1.5,.4,1) both;
}
.fxping i { width: 8px; height: 8px; border-radius: 99px; background: #3dff9a; box-shadow: 0 0 10px #3dff9a; }
.fxping.t-warn i { background: #ff7b7b; box-shadow: 0 0 10px #ff7b7b; }
.fxping.t-cash i { background: #ffd166; box-shadow: 0 0 10px #ffd166; }
.fxping.out { animation: fxPingOut .46s ease forwards; }
@keyframes fxPingIn { 0% { opacity: 0; transform: translateX(-50%) translateY(-14px) scale(.9); } 100% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); } }
@keyframes fxPingOut { 0% { opacity: 1; transform: translateX(-50%) translateY(0); } 100% { opacity: 0; transform: translateX(-50%) translateY(-16px); } }

/* ── ⑪ 按钮手感：按下压一下，hover 抬一点 ── */
#ui button { transition: transform .13s cubic-bezier(.2,1.4,.4,1), box-shadow .2s ease, background .2s ease, filter .2s ease; }
#ui button:hover:not(:disabled) { filter: brightness(1.03); }
#ui button:active:not(:disabled) { transform: scale(.955); }
#ui button.fxpress { animation: fxPress .22s ease; }
@keyframes fxPress { 0% { transform: scale(.93); } 60% { transform: scale(1.02); } 100% { transform: scale(1); } }
#ui button:disabled { cursor: not-allowed; }

/* 出行卡的行：hover 往右推一点，像要出发 */
.ride { transition: transform .18s cubic-bezier(.2,1.4,.4,1), background .2s, border-color .2s, box-shadow .2s; }
.ride:hover:not(:disabled) { transform: translateX(3px); box-shadow: 0 8px 22px rgba(31,157,85,.16); }
.ride.off:hover { transform: none; box-shadow: none; }
.ride > i { transition: transform .25s cubic-bezier(.2,1.7,.4,1); }
.ride:hover:not(:disabled) > i { transform: translateX(2px) scale(1.12) rotate(-4deg); }
.ride:active:not(:disabled) { transform: translateX(6px) scale(.985); }

/* 事件卡的选项：hover 亮边 */
.evopts button { transition: transform .18s cubic-bezier(.2,1.4,.4,1), background .2s, border-color .2s, box-shadow .2s; }
.evopts button:hover { transform: translateX(8px) scale(1.02); border-color: rgba(240, 193, 74, .75); background: linear-gradient(100deg, rgba(240, 193, 74, .28), rgba(255, 255, 255, .06)); box-shadow: 0 10px 24px rgba(240, 193, 74, .18); }
.evopts button:active { transform: translateX(10px) scale(.98); }

/* ── ⑫ 现金数字：变化时跳一下并染色 ── */
.cash.bump { animation: fxCashBump .5s cubic-bezier(.2,1.6,.4,1); }
@keyframes fxCashBump {
  0% { transform: scale(1); }
  30% { transform: scale(1.16) rotate(-1.5deg); }
  60% { transform: scale(.97) rotate(1deg); }
  100% { transform: scale(1); }
}
.cashfloat { position: absolute; right: 0; top: 100%; margin-top: 4px; font-size: 14px; font-weight: 900; white-space: nowrap; animation: fxFloat 1.5s cubic-bezier(.2,.8,.3,1) forwards; }
.cashfloat.up { color: #2ee08a; }
.cashfloat.down { color: #ff8f8f; }

/* ── ⑬ 需求条：掉得狠的时候闪一下 ── */
.need-dock button { transition: transform .2s, filter .2s; }
.need-dock button:hover { transform: scaleY(1.5); }

@media (prefers-reduced-motion: reduce) {
  .fxin, .fxstagger > *, .fxflash, .fxfloat, .fxping, .settle, .settle::before { animation: none !important; }
}

/* ── 手机：整机从下方推上来 ── */
[data-fxk="phone"].fxin { animation: fxWrapIn .26s ease both; }
[data-fxk="phone"].fxin .device { animation: fxPhoneIn .5s cubic-bezier(.2,1.3,.4,1) both; }
@keyframes fxPhoneIn {
  0%   { opacity: 0; transform: translateY(46px) scale(.93); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
/* 只有最新一条气泡弹进来，老的安静躺着 —— 不然每来一句整个聊天都在抖 */
.thread-body .bubrow:last-child { animation: fxBubIn .44s cubic-bezier(.2,1.5,.4,1) both; }
.thread-body .bubrow.me:last-child { animation-name: fxBubInMe; }
@keyframes fxBubIn {
  0%   { opacity: 0; transform: translateX(-16px) scale(.9); }
  60%  { opacity: 1; transform: translateX(3px) scale(1.02); }
  100% { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes fxBubInMe {
  0%   { opacity: 0; transform: translateX(16px) scale(.9); }
  60%  { opacity: 1; transform: translateX(-3px) scale(1.02); }
  100% { opacity: 1; transform: translateX(0) scale(1); }
}

/* ── 账单 / 月结：跟事件卡一样的入场 ── */
[data-fxk^="bill"].fxin { animation: fxWrapIn .3s ease both; }
[data-fxk^="bill"].fxin .settle { animation: fxEventIn .58s cubic-bezier(.2,1.5,.4,1) both; }
[data-fxk^="bill"].fxin .billh { animation: fxTitleIn .5s cubic-bezier(.2,1.5,.4,1) .16s both; }
[data-fxk^="bill"].fxin .smoney { animation: fxRow .46s cubic-bezier(.2,1.35,.4,1) .24s both; }
[data-fxk^="bill"].fxin .bars i { animation: fxBarIn .6s cubic-bezier(.2,.9,.3,1) both; }
[data-fxk^="bill"].fxin .bars i:nth-child(1) { animation-delay: .3s }
[data-fxk^="bill"].fxin .bars i:nth-child(2) { animation-delay: .36s }
[data-fxk^="bill"].fxin .bars i:nth-child(3) { animation-delay: .42s }
[data-fxk^="bill"].fxin .bars i:nth-child(4) { animation-delay: .48s }
[data-fxk^="bill"].fxin .bars i:nth-child(5) { animation-delay: .54s }
[data-fxk^="bill"].fxin .bars i:nth-child(6) { animation-delay: .6s }
@keyframes fxBarIn { 0% { transform: scaleX(0); transform-origin: left; } 100% { transform: scaleX(1); } }

/* ── 布置面板：从右边推入 ── */
[data-fxk="panel:fit"].fxin { animation: fxSheetIn .46s cubic-bezier(.2,1.25,.4,1) both; }

/* 地图上的"你现在在哪儿"小条：跟着地点卡一起进场，不能每次 render 都抖 */
[data-fxk^="szcard"].fxin ~ .sznow { animation: fxRow .5s cubic-bezier(.2,1.4,.4,1) .34s both; }

/* ── 需求条见底时提醒一下 ── */
.need-dock button.low { animation: fxLow 1.4s ease-in-out infinite; }
@keyframes fxLow { 0%,100% { filter: none; } 50% { filter: brightness(1.5) saturate(1.4); } }

/* ══════════════════════════════════════════════════════════
   首页 HUD 重做：需求环常驻 + 今日目标
   以前饿/精神/开心/人 全藏在右上角那个按钮后面，不点开根本不知道，
   玩家当然看不懂"这游戏在玩什么"。现在它们一直挂在那儿。
   ══════════════════════════════════════════════════════════ */
/* 需求环现在是左边那一列的第二个孩子（跟着时钟走），不再用写死的 top。
   写死 top:72 的年代，时钟卡是单行就正好、两行就被压住 —— 窄屏必翻车。 */
.hud-needs {
  position: relative; left: auto; top: auto; z-index: 1;
  display: flex; gap: 5px; padding: 7px 9px 5px;
  border-radius: 20px;
  background: rgba(13, 21, 35, .62);
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
  backdrop-filter: blur(12px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .12);
}
/* ⚠️ 入场动画必须挂在 .fxin 上（fx.js 给"刚出现的框"加的那个类），
   不能挂在 .hud-needs 这种基础类上 —— render() 是整块 innerHTML 重建，
   挂基础类 = 每次点地板都重播一遍，玩家看到的就是"点一下闪一下"。 */
[data-fxk="needsbar"].fxin { animation: fxNeedsIn .55s cubic-bezier(.2, 1.5, .4, 1) both; }
@keyframes fxNeedsIn {
  0% { opacity: 0; transform: translateY(-12px) scale(.92); }
  100% { opacity: 1; transform: none; }
}
.need-chip {
  position: relative; width: 43px; padding: 0; border: 0; background: none;
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.need-chip .ring { position: relative; width: 34px; height: 34px; }
.need-chip .ring svg { width: 34px; height: 34px; transform: rotate(-90deg); }
.need-chip .rbg { fill: none; stroke: rgba(255, 255, 255, .13); stroke-width: 3.4; }
.need-chip .rfg {
  fill: none; stroke: var(--nc); stroke-width: 3.4; stroke-linecap: round;
  transition: stroke-dashoffset .45s cubic-bezier(.2, 1.2, .4, 1);
  filter: drop-shadow(0 0 4px var(--nc));
}
.need-chip .nico {
  position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  font-size: 14px; line-height: 1;
}
.need-chip .nval {
  font-size: 9.5px; font-weight: 900; color: #e8eef7; letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
}
.need-chip .nlab {
  position: absolute; bottom: -15px; left: 50%; transform: translateX(-50%);
  font-size: 9px; font-weight: 700; color: rgba(255, 255, 255, .42);
  white-space: nowrap; opacity: 0; transition: opacity .2s;
}
.need-chip:hover .nlab { opacity: 1; }
.need-chip:hover .ring { transform: scale(1.08); }
.need-chip .ring { transition: transform .2s cubic-bezier(.2, 1.5, .4, 1); }
/* 低了就跳：这是玩家唯一必须看懂的红线 */
.need-chip.mid .rfg { animation: fxNeedWarn 1.8s ease-in-out infinite; }
.need-chip.low .rfg { animation: fxNeedAlarm 1s ease-in-out infinite; }
.need-chip.low .nico { animation: fxNeedBob 1s ease-in-out infinite; }
.need-chip.low .nval { color: #ff8f8f; }
@keyframes fxNeedWarn {
  0%, 100% { filter: drop-shadow(0 0 3px var(--nc)); }
  50% { filter: drop-shadow(0 0 9px var(--nc)); }
}
@keyframes fxNeedAlarm {
  0%, 100% { filter: drop-shadow(0 0 4px #ff5252); opacity: 1; }
  50% { filter: drop-shadow(0 0 14px #ff5252); opacity: .62; }
}
@keyframes fxNeedBob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-3px); }
}

/* ── 今日目标条 ──
   ⚠️ 以前是 left:12px + right:124px，等于一条几乎铺满屏幕的横杠，
   压在画面正中偏下，把 3D 场景切成两半。现在改成左下角一小块：
   宽度跟着内容走，最多 340px。 */
.todaybar {
  position: absolute; left: 12px; right: auto; bottom: 106px; z-index: 700;
  pointer-events: auto;
  width: auto; max-width: min(380px, calc(100vw - 150px));
  display: flex; align-items: center; gap: 8px;
  padding: 8px 8px 8px 14px; border-radius: 16px; cursor: default;
  background: linear-gradient(100deg, rgba(31, 44, 66, .93), rgba(20, 30, 48, .88));
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(120, 200, 255, .18);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .3);
  color: #dfe9f6; font-size: 13px;
  transition: transform .18s, border-color .2s;
}
[data-fxk="todaybar"].fxin { animation: fxTodayIn .5s cubic-bezier(.2, 1.4, .4, 1) both; }
.todaybar:hover { transform: translateY(-2px); border-color: rgba(120, 200, 255, .42); }
.todaybar b {
  flex: none; font-size: 11px; font-weight: 900; letter-spacing: .1em;
  color: #0d1523; background: linear-gradient(120deg, #ffd166, #ffb03a);
  padding: 3px 8px; border-radius: 8px;
}
.todaybar span {
  flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-weight: 700;
}
.todaybar button {
  flex: none; background: #f0c14a; color: #2a1c08; border-radius: 999px;
  padding: 7px 14px; font-weight: 800; font-size: 13px;
}
.todaybar button:hover { background: #ffd978; }
.todaybar i {
  flex: none; font-style: normal; font-size: 11px; font-weight: 800;
  color: #7fd0ff; background: rgba(80, 170, 255, .14);
  padding: 3px 8px; border-radius: 8px;
}
.todaybar.all-done { border-color: rgba(110, 240, 170, .34); }
.todaybar.all-done i { color: #6ef0aa; background: rgba(80, 230, 160, .14); }
@keyframes fxTodayIn {
  0% { opacity: 0; transform: translateY(14px) scale(.97); }
  100% { opacity: 1; transform: none; }
}

/* ── 地图上的提示 ── */
.maptip {
  position: absolute; left: 50%; top: 14px; transform: translateX(-50%); z-index: 26;
  display: flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(13, 21, 35, .7);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .12);
  color: #cfe3f6; font-size: 12px; white-space: nowrap;
  animation: fxRow .55s cubic-bezier(.2, 1.4, .4, 1) .2s both;
  pointer-events: none;
}
.maptip b { color: #ffd166; font-weight: 900; }
.maptip span { color: rgba(220, 235, 250, .72); font-weight: 600; }

/* 地图页：需求条挪到底部，别跟标题和区列表打架 */
/* 进地图以后需求环不要跑到屏幕正中间去 —— 它和"点地图上的圆点"那条提示
   叠在一条水平线上，中间被塞满，左边那串区名也跟着显得多余。
   统一回到左上角，跟屋里保持一致。 */
.hud-needs.on-city { top: 72px; bottom: auto; left: 12px; right: auto; transform: none; }
.hud-needs.on-city ~ .maptip { top: 14px; }
/* 左边那串区名收小一点，给需求环让位，也不抢地图的戏 */
.szdists { left: 12px; gap: 4px; }
.szd { padding: 4px 9px 4px 7px; font-size: 11px; letter-spacing: .06em; gap: 6px; }
.szd i { width: 7px; height: 7px; }

@media (max-width: 420px) {
  .need-chip { width: 38px; }
  .need-chip .ring, .need-chip .ring svg { width: 30px; height: 30px; }
  .need-chip .nico { top: 4px; font-size: 12.5px; }
  .hud-needs { gap: 2px; padding: 6px 7px 4px; }
  .todaybar { bottom: 116px; right: auto; max-width: calc(100vw - 130px); font-size: 12px; }
  /* 小屏底部塞不下那么多层：区名改成横排挂到需求环下面，
     "你现在"那条直接收掉（屋里/在城里 dock 左侧已经写着了），
     地铁图例留在提示条上方压扁一点。 */
  /* 手机上这列区名没地方放（顶上是需求环+"0/31"、底下是图例和提示条），
     地图本身又小，留着只会更乱 —— 直接收掉，靠地名牌子认地方就够了。 */
  .szdists { display: none; }
  .sznow { display: none; }
  .szlines { bottom: 162px; max-width: calc(100vw - 20px); gap: 4px 5px; }
  .szl { font-size: 10px; padding: 2px 7px 2px 6px; }
  /* 小屏顶部有三层（时间/天气金额/需求环），浮层再往下一档 */
  body[data-place="city"] .sheet,
  body[data-place="city"] .panel,
  body[data-place="city"] .szcard { top: 168px; }
}

/* ── 在路上：行程条 ──
   以前选完方式只闪一条横幅就没了，玩家根本不知道自己在坐什么、往哪去。
   现在整趟都挂着，进度条按真实时间走。 */
.tripbar {
  position: absolute; left: 12px; right: 12px; bottom: 16px; z-index: 42;
  pointer-events: auto;
  padding: 13px 16px 12px; border-radius: 22px;
  background: linear-gradient(120deg, rgba(12, 22, 38, .94), rgba(9, 16, 28, .9));
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid rgba(120, 190, 255, .22);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .1);
  color: #eaf3ff;
  animation: fxTripIn .5s cubic-bezier(.2, 1.4, .4, 1) both;
}
@keyframes fxTripIn {
  0% { opacity: 0; transform: translateY(26px) scale(.96); }
  100% { opacity: 1; transform: none; }
}
.trip-top { display: flex; align-items: center; gap: 11px; }
.trip-ico {
  flex: none; width: 42px; height: 42px; border-radius: 14px;
  display: grid; place-items: center; font-size: 22px; font-style: normal;
  background: linear-gradient(150deg, rgba(90, 180, 255, .28), rgba(50, 220, 180, .2));
  border: 1px solid rgba(140, 210, 255, .3);
  box-shadow: 0 0 18px rgba(80, 180, 255, .25);
  animation: fxTripBob 1.6s ease-in-out infinite;
}
@keyframes fxTripBob {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-3px) rotate(2deg); }
}
.trip-route { flex: 1; min-width: 0; }
.trip-route b {
  display: block; font-size: 14.5px; font-weight: 900; letter-spacing: .01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.trip-route b em { font-style: normal; color: #4fd1ff; margin: 0 3px; }
.trip-route small { display: block; margin-top: 2px; font-size: 11px; font-weight: 600; color: rgba(200, 222, 245, .62); }
.trip-cost {
  flex: none; font-size: 13px; font-weight: 900; color: #ffd166;
  background: rgba(255, 209, 102, .12); padding: 5px 10px; border-radius: 10px;
}
.trip-bar {
  position: relative; height: 8px; margin-top: 11px;
  border-radius: 99px; background: rgba(255, 255, 255, .1);
  overflow: hidden; box-shadow: inset 0 1px 3px rgba(0, 0, 0, .35);
}
.trip-bar i {
  position: absolute; left: 0; top: 0; bottom: 0; width: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #31d0aa, #4fd1ff 60%, #7fb6ff);
  box-shadow: 0 0 14px rgba(79, 209, 255, .7);
  transform-origin: left center;
  /* 进度不靠 CSS 动画（会被系统「减少动态效果」或无头环境冻住），
     比例由 main.js 的 100ms ticker 直接写进 transform。 */
  transition: transform .16s linear;
}
.trip-bar::after {
  content: ""; position: absolute; inset: 0; border-radius: 99px;
  background: linear-gradient(90deg, transparent 40%, rgba(255, 255, 255, .5) 50%, transparent 60%);
  background-size: 200% 100%;
  animation: fxTripShine 1.8s linear infinite;
  mix-blend-mode: overlay;
}
@keyframes fxTripShine { from { background-position: 160% 0; } to { background-position: -60% 0; } }
.trip-meta {
  display: flex; justify-content: space-between; margin-top: 7px;
  font-size: 11px; font-weight: 700; color: rgba(190, 214, 240, .6);
}
.trip-beat {
  margin-top: 8px; padding: 8px 10px; border-radius: 12px; background: rgba(255,255,255,.08);
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
}
.trip-beat p { margin: 0; flex: 1 1 160px; font-size: 13px; font-weight: 800; color: #fff; }
.trip-beat button {
  border: 0; border-radius: 999px; padding: 7px 12px; font-weight: 900; cursor: pointer;
  background: #f2c14b; color: #1c2430;
}
.trip-beat.hot { background: rgba(242, 193, 75, .22); }
.deskbar, .scenebar { bottom: 108px; }
.scenebar + .deskbar, .deskbar + .scenebar { bottom: 178px; }
.todaybar button + button { margin-left: 6px; background: transparent; color: #d7e4f2; box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); }
@media (max-width: 420px) {
  .tripbar { padding: 11px 13px 10px; bottom: 12px; }
  .trip-route b { font-size: 13px; }
  .trip-ico { width: 38px; height: 38px; font-size: 19px; }
}

/* ══════════════════════════════════════════════════════════
   新手引导：聚光灯 + 气泡
   ══════════════════════════════════════════════════════════ */
.guidelayer {
  position: fixed; inset: 0; z-index: 900; pointer-events: none;
  opacity: 0; transition: opacity .28s ease;
}
.guidelayer.on { opacity: 1; }
/* 聚光灯：一个巨大的外阴影把四周压黑，只有目标那块亮着 */
.gspot {
  position: absolute; border-radius: 18px;
  box-shadow: 0 0 0 9999px rgba(6, 11, 20, .72), 0 0 0 2px rgba(120, 210, 255, .75), 0 0 34px rgba(90, 190, 255, .55);
  transition: left .38s cubic-bezier(.2, 1.2, .4, 1), top .38s cubic-bezier(.2, 1.2, .4, 1),
    width .38s cubic-bezier(.2, 1.2, .4, 1), height .38s cubic-bezier(.2, 1.2, .4, 1);
  pointer-events: none;
}
.gbub {
  position: absolute; width: 320px; pointer-events: auto;
  padding: 15px 17px 13px; border-radius: 20px;
  background: linear-gradient(150deg, #f4fbff, #e6f2ff);
  color: #10203a;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45), 0 0 0 1px rgba(120, 190, 255, .5);
  transition: left .38s cubic-bezier(.2, 1.2, .4, 1), top .38s cubic-bezier(.2, 1.2, .4, 1);
  animation: fxBubPop .42s cubic-bezier(.2, 1.5, .4, 1) both;
}
@keyframes fxBubPop {
  0% { opacity: 0; transform: scale(.9) translateY(10px); }
  100% { opacity: 1; transform: none; }
}
.gbub::before {
  content: ""; position: absolute; width: 14px; height: 14px;
  background: #f4fbff; transform: rotate(45deg);
  top: -7px; left: 34px; border-radius: 3px;
  box-shadow: -1px -1px 0 rgba(120, 190, 255, .4);
}
.gbub-head { display: flex; align-items: baseline; gap: 8px; }
.gbub-head b { font-size: 16px; font-weight: 900; letter-spacing: .01em; }
.gstep {
  font-size: 10.5px; font-weight: 900; color: #2c6fb5;
  background: rgba(70, 150, 230, .14); padding: 2px 7px; border-radius: 7px;
}
.gbub p { margin: 8px 0 0; font-size: 13px; line-height: 1.65; color: #33506f; font-weight: 600; }
.gbub-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 13px; }
.gskip {
  border: 0; background: none; color: #7c93ad; font-size: 12px; font-weight: 700;
  cursor: pointer; padding: 6px 2px;
}
.gskip:hover { color: #4f6d8c; }
.gnext {
  border: 0; cursor: pointer; padding: 9px 20px; border-radius: 12px;
  background: linear-gradient(120deg, #2f7fe0, #1f5fc0);
  color: #fff; font-size: 13px; font-weight: 900; letter-spacing: .04em;
  box-shadow: 0 8px 20px rgba(40, 110, 200, .38);
  transition: transform .15s, box-shadow .2s, filter .2s;
}
.gnext:hover { transform: translateY(-1px); filter: brightness(1.06); box-shadow: 0 12px 26px rgba(40, 110, 200, .46); }
.gnext:active { transform: scale(.96); }
@media (max-width: 420px) {
  .gbub { width: calc(100vw - 32px) !important; }
  .gbub p { font-size: 12.5px; }
}

/* ── "怎么玩"小按钮：现在排在左列最下面（徽章那一行的右端），
   不再 absolute 钉在 right:12 top:70 —— 那个位置正好压在钱上。 ── */
.helpbtn {
  position: relative; right: auto; top: auto; z-index: 1;
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: rgba(13, 21, 35, .68); color: #cfe3f6;
  border: 1px solid rgba(255, 255, 255, .16);
  font-size: 14px; font-weight: 900; cursor: pointer;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .3);
  transition: transform .18s, background .2s, color .2s;
}
[data-fxk="help"].fxin { animation: fxRow .5s cubic-bezier(.2, 1.4, .4, 1) .4s both; }
.helpbtn:hover { transform: scale(1.1); background: rgba(40, 90, 160, .8); color: #fff; }
.helpbtn:active { transform: scale(.94); }

/* ── 玩法说明面板 ── */
.howto {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(440px, calc(100vw - 28px)); max-height: 78vh; overflow: auto;
  z-index: 60; padding: 20px 20px 16px; border-radius: 24px;
  background: linear-gradient(160deg, #16233a, #0e1829);
  border: 1px solid rgba(120, 190, 255, .26);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
  color: #dce9f7;
  /* 这条面板是靠 translate(-50%,-50%) 居中的，套 fxSheetIn 会把 transform 覆盖成
     translateX(0)，于是从屏幕中心往右下角长出去、底部按钮直接跑出屏幕。 */
  animation: htIn .4s cubic-bezier(.2, 1.3, .4, 1) both;
}
@keyframes htIn {
  from { opacity: 0; transform: translate(-50%, -50%) scale(.94); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.howto h3 { margin: 0 0 4px; font-size: 19px; font-weight: 900; color: #fff; }
.howto .ht-sub { margin: 0 0 14px; font-size: 12px; color: #7f9ab8; font-weight: 600; }
.ht-row { display: flex; gap: 11px; padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, .07); }
.ht-row:first-of-type { border-top: 0; }
.ht-ico {
  flex: none; width: 34px; height: 34px; border-radius: 11px;
  display: grid; place-items: center; font-size: 17px;
  background: rgba(90, 170, 255, .14); border: 1px solid rgba(120, 190, 255, .2);
}
.ht-txt b { display: block; font-size: 13.5px; font-weight: 900; color: #fff; margin-bottom: 3px; }
.ht-txt span { font-size: 12.5px; line-height: 1.6; color: #9fb6cf; font-weight: 600; }
.ht-foot {
  display: flex; gap: 8px; margin-top: 14px;
  /* 面板可能滚起来，按钮必须一直看得见，别让它掉到滚动区外面 */
  position: sticky; bottom: 0; padding: 12px 0 2px;
  background: #0e1829;
  box-shadow: 0 -14px 22px -6px rgba(14, 24, 41, .98);
}
.ht-foot button {
  flex: 1; padding: 11px; border-radius: 13px; border: 0; cursor: pointer;
  font-size: 13px; font-weight: 900;
}
.ht-foot .ht-go { background: linear-gradient(120deg, #ffd166, #ffb03a); color: #201700; }
.ht-foot .ht-close { background: rgba(255, 255, 255, .1); color: #cfe3f6; }
@media (max-width: 420px) { .howto { max-height: 82vh; padding: 17px 16px 14px; } }
/* 手机上底部中间被区名图例占着，需求环还是回左上角，别和它叠在一起 */
@media (max-width: 520px) {
  .hud-needs.on-city { top: 72px; bottom: auto; left: 12px; transform: none; }
  .hud-needs.on-city ~ .maptip { top: 14px; }
}
.gbub.no-tail::before { display: none; }

/* ══════════ 徽章解锁卡 ══════════ */
/* 放屏幕正上方居中：右上角是地点卡、右下角是手机和今日条，
   徽章卡如果也压右边，会正好盖住面板的 tab。 */
.fxbadge {
  position: fixed; left: 50%; top: 15px; z-index: 9400;
  display: flex; align-items: center; gap: 11px;
  width: min(340px, calc(100vw - 26px));
  padding: 11px 15px 11px 12px; border-radius: 15px;
  background: linear-gradient(120deg, rgba(38, 30, 12, .96), rgba(20, 26, 38, .96));
  border: 1px solid rgba(255, 209, 102, .5);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .05) inset;
  backdrop-filter: blur(9px);
  animation: fxBadgeIn .5s cubic-bezier(.2, 1.5, .4, 1) both;
  overflow: hidden;
}
.fxbadge .fxb-glow {
  position: absolute; inset: -40% -10%;
  background: radial-gradient(circle at 12% 50%, rgba(255, 209, 102, .34), transparent 62%);
  pointer-events: none;
  animation: fxBadgeSweep 2.4s linear infinite;
}
.fxbadge .fxb-ico {
  position: relative; width: 42px; height: 42px; flex: 0 0 42px;
  display: grid; place-items: center; font-size: 23px; border-radius: 12px;
  background: radial-gradient(circle at 35% 30%, #fff4d0, #ffcf5a 62%, #e39a1c);
  box-shadow: 0 0 18px rgba(255, 200, 80, .6);
  animation: fxBadgePop .62s cubic-bezier(.2, 1.7, .4, 1) both;
}
.fxbadge .fxb-txt { position: relative; min-width: 0; }
.fxbadge .fxb-txt b { display: block; font-size: 15px; font-weight: 900; color: #fff3d2; letter-spacing: .02em; }
.fxbadge .fxb-txt span { display: block; margin-top: 2px; font-size: 11.5px; color: #c8b48a; letter-spacing: .02em; }
.fxbadge .fxb-tag {
  position: relative; margin-left: auto; padding: 3px 8px; border-radius: 99px; white-space: nowrap;
  font-size: 10px; font-weight: 900; letter-spacing: .08em;
  background: rgba(255, 209, 102, .16); color: #ffd166; border: 1px solid rgba(255, 209, 102, .32);
}
.fxbadge.out { animation: fxBadgeOut .5s ease forwards; }
@keyframes fxBadgeIn { from { opacity: 0; transform: translate(-50%, -24px) scale(.9); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }
@keyframes fxBadgeOut { to { opacity: 0; transform: translate(-50%, -18px) scale(.95); } }
@keyframes fxBadgePop { 0% { transform: scale(0) rotate(-40deg); } 100% { transform: none; } }
@keyframes fxBadgeSweep { from { transform: translateX(-46%); } to { transform: translateX(46%); } }
@media (max-width: 520px) { .fxbadge { top: 166px; } }

/* ══════════ 成长面板 ══════════ */
.growtop { display: flex; align-items: center; gap: 12px; margin-bottom: 9px; }
.growtop .gtitle { flex: 1; min-width: 0; }
.growtop .gtitle b { display: block; font-size: 19px; font-weight: 900; color: #ffd98a; letter-spacing: .04em; }
.growtop .gtitle span { display: block; margin-top: 2px; font-size: 12px; color: #9db0c4; }
.growtop .gidx {
  flex: 0 0 auto; text-align: center; padding: 6px 12px; border-radius: 12px;
  background: linear-gradient(160deg, rgba(255, 209, 102, .16), rgba(255, 209, 102, .04));
  border: 1px solid rgba(255, 209, 102, .28);
}
.growtop .gidx b { display: block; font-size: 20px; font-weight: 900; color: #ffd166; line-height: 1.1; }
.growtop .gidx small { font-size: 9.5px; color: #b79a5f; letter-spacing: .12em; }
.gbar { height: 7px; border-radius: 99px; background: rgba(255, 255, 255, .09); overflow: hidden; margin-bottom: 8px; }
.gbar i {
  display: block; height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, #ffb03a, #ffd166 60%, #7dffb0);
  box-shadow: 0 0 12px rgba(255, 209, 102, .5);
  transform-origin: left center;
  animation: gbarFill .9s cubic-bezier(.2, .9, .3, 1) both;
}
@keyframes gbarFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.gvisit { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.gvp {
  padding: 4px 9px; border-radius: 99px; font-size: 11.5px; font-weight: 700;
  background: rgba(77, 148, 255, .14); color: #a8c8f0; border: 1px solid rgba(77, 148, 255, .26);
  animation: gvpIn .4s ease both;
}
.gvp.off { background: rgba(255, 255, 255, .05); color: #6f8096; border-color: rgba(255, 255, 255, .08); }
@keyframes gvpIn { from { opacity: 0; transform: scale(.8); } }
.gstats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.gstat {
  padding: 8px 4px; border-radius: 11px; text-align: center;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .07);
}
.gstat b { display: block; font-size: 15px; font-weight: 900; color: #e8f0f8; }
.gstat span { font-size: 10px; color: #8a9cb0; letter-spacing: .06em; }
.gach { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; }
.gitem {
  padding: 9px 10px; border-radius: 12px; text-align: left;
  background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .06);
  opacity: .62; transition: transform .18s ease, opacity .18s ease;
}
.gitem i { font-size: 17px; filter: grayscale(1); opacity: .5; }
.gitem b { display: block; margin-top: 3px; font-size: 12px; font-weight: 800; color: #7f8fa2; }
.gitem span { display: block; margin-top: 1px; font-size: 10px; line-height: 1.35; color: #66768a; }
.gitem.on {
  opacity: 1;
  background: linear-gradient(150deg, rgba(255, 209, 102, .13), rgba(255, 209, 102, .03));
  border-color: rgba(255, 209, 102, .3);
  animation: gitemOn .55s cubic-bezier(.2, 1.5, .4, 1) both;
}
.gitem.on i { filter: none; opacity: 1; }
.gitem.on b { color: #ffe0a2; }
.gitem.on span { color: #b8a479; }
.gitem:active { transform: scale(.97); }
@keyframes gitemOn { from { transform: scale(.9); } }
@media (max-width: 420px) { .gach { grid-template-columns: 1fr; } .gstats { grid-template-columns: repeat(2, 1fr); } }
@media (prefers-reduced-motion: reduce) { .fxbadge, .gbar i, .gvp, .gitem.on { animation-duration: .01ms !important; } }

/* ══════════ 徽章入口（常驻，别让用户找不到成长在哪） ══════════ */
/* 摆在左侧需求环正下方：右边被地点卡和 ? 按钮占满了，放右边一定打架 */
.medalbtn {
  position: relative; left: auto; top: auto; z-index: 1;
  display: flex; align-items: baseline; gap: 3px;
  padding: 6px 11px 6px 9px; border-radius: 99px;
  background: linear-gradient(140deg, rgba(38, 32, 16, .78), rgba(16, 22, 32, .78));
  border: 1px solid rgba(255, 209, 102, .28);
  color: #ffe0a2; cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .32);
  -webkit-backdrop-filter: blur(9px); backdrop-filter: blur(9px);
  transition: transform .16s ease, border-color .2s ease;
}
[data-fxk="medal"].fxin { animation: medalIn .46s cubic-bezier(.2, 1.5, .4, 1) both; transform-origin: left center; }
@keyframes medalIn { from { opacity: 0; transform: scale(.7); } }
.medalbtn i { font-size: 13px; }
.medalbtn b { font-size: 13.5px; font-weight: 900; letter-spacing: .02em; }
.medalbtn small { font-size: 9.5px; color: #a8916a; letter-spacing: .04em; }
.medalbtn:active { transform: scale(.93); }
.medalbtn.has-new { border-color: rgba(255, 209, 102, .8); animation: medalPulse 1.5s ease-in-out infinite; }
.medalbtn.has-new::after {
  content: ""; position: absolute; right: 5px; top: 4px;
  width: 7px; height: 7px; border-radius: 99px; background: #ffd166;
  box-shadow: 0 0 9px #ffd166; animation: medalDot 1.2s ease-in-out infinite;
}
@keyframes medalPulse { 50% { box-shadow: 0 8px 22px rgba(0, 0, 0, .32), 0 0 0 6px rgba(255, 209, 102, .1); } }
@keyframes medalDot { 50% { opacity: .3; transform: scale(.7); } }
@media (max-width: 520px) { .medalbtn { top: 137px; padding: 5px 9px 5px 8px; } }
@media (prefers-reduced-motion: reduce) { .medalbtn.has-new, .medalbtn.has-new::after { animation-duration: .01ms !important; } }

/* ══════════ 天气 ══════════
   深圳的天气要一直看得见：右上角常驻一枚，预警来了顶部挂一条，
   点开能看到往后 12 小时和三天。屋里有雨的时候，窗外也得有。 */

/* ── 常驻天气钮 ── */
.wxbtn {
  flex: 0 0 auto;
  display: flex; align-items: center; gap: 6px;
  padding: 7px 12px 7px 9px; border-radius: 99px;
  background: linear-gradient(160deg, rgba(26, 44, 74, .82), rgba(12, 20, 35, .86));
  border: 1px solid rgba(140, 190, 240, .3);
  color: #dbe8f6; cursor: pointer;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .36), inset 0 1px 0 rgba(255, 255, 255, .1);
  transition: transform .16s ease, border-color .25s ease;
}
.wxbtn:hover { border-color: rgba(160, 210, 255, .6); }
/* 入场动画挂在 .fxin 上而不是类本身：render() 每帧重建元素，
   挂类上会一直重播；而且 fx.js 有超时兜底，动画不跑也不会停在透明状态。 */
[data-fxk^="wx:"].fxin { animation: wxIn .5s cubic-bezier(.2, 1.4, .4, 1); }
.wxbtn i { font-size: 17px; line-height: 1; }
.wxbtn b { font-size: 15px; font-weight: 900; letter-spacing: .01em; }
.wxbtn small { font-size: 11px; color: #a8bdd4; letter-spacing: .02em; font-weight: 800; }
.wxbtn:active { transform: scale(.93); }
.wxbtn.hot { border-color: rgba(255, 176, 74, .5); background: linear-gradient(160deg, rgba(72, 46, 16, .85), rgba(20, 26, 42, .86)); }
.wxbtn.hot b { color: #ffd08a; }
.wxbtn.live { box-shadow: inset 0 0 0 1px rgba(110, 240, 190, .35); }
.wxbtn.live small::after { content: " · 实况"; font-size: 9px; opacity: .75; }
.wxbtn.wet { border-color: rgba(120, 160, 200, .6); background: linear-gradient(160deg, rgba(22, 44, 72, .88), rgba(10, 18, 32, .9)); }
.wxbtn.wet b { color: #c4ddf3; }
.wxbtn.alarm {
  border-color: rgba(232, 72, 79, .75);
  background: linear-gradient(120deg, rgba(72, 20, 24, .7), rgba(20, 26, 42, .7));
}
[data-fxk^="wx:"].alarm.fxhold { animation: wxAlarm 1.6s ease-in-out infinite; }
.wxbtn.alarm b { color: #ffd0d2; }
@keyframes wxIn { from { transform: translateY(-12px) scale(.88); } }
@keyframes wxAlarm {
  50% { box-shadow: 0 6px 18px rgba(0, 0, 0, .3), 0 0 0 5px rgba(232, 72, 79, .13); }
}

/* ── 预警条 ── */
.wxwarn {
  position: absolute; left: 50%; top: 96px; transform: translateX(-50%);
  z-index: 720; display: flex; align-items: center; gap: 8px;
  max-width: min(560px, calc(100vw - 24px));
  padding: 8px 14px; border-radius: 13px;
  background: linear-gradient(120deg, rgba(46, 20, 22, .93), rgba(16, 24, 40, .93));
  border: 1px solid var(--wc, #e8484f);
  color: #ffe9e9;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .45);
  pointer-events: none;
}
[data-fxk^="wxwarn"].fxin { animation: wxWarnIn .55s cubic-bezier(.2, 1.4, .4, 1); }
.wxwarn i { font-size: 17px; animation: wxWarnSpin 3.2s linear infinite; }
.wxwarn b { font-size: 13px; font-weight: 900; letter-spacing: .04em; color: var(--wc, #ff8a8a); white-space: nowrap; }
.wxwarn span { font-size: 11.5px; color: #d8c4c4; line-height: 1.35; }
.wxwarn.k-typhoon { --wc: #f08a3c; }
.wxwarn.k-typhoon.lv4 { --wc: #e8484f; }
.wxwarn.k-typhoon.lv1 { --wc: #4d94ff; }
.wxwarn.k-rain { --wc: #f2c14b; }
.wxwarn.k-rain.lv3 { --wc: #f08a3c; }
.wxwarn.k-heat { --wc: #f2c14b; }
.wxwarn.k-damp { --wc: #8fb8d6; }
.wxwarn.k-typhoon i { animation: wxWarnSpin 2.2s linear infinite; }
@keyframes wxWarnIn { from { transform: translate(-50%, -16px); } }
@keyframes wxWarnSpin { to { transform: rotate(360deg); } }
@media (max-width: 520px) {
  /* 手机上左边已经被时钟、需求环、徽章按钮排满了，预警条不能再居中 ——
     它一居中就压在需求环上。改成从需求环下面开始、右到边、左避开徽章钮。 */
  .wxwarn {
    top: 118px; left: 84px; right: 8px; transform: none; max-width: none;
    padding: 7px 10px; gap: 6px; align-items: flex-start;
  }
  .wxwarn span { font-size: 10px; line-height: 1.4; }
  .wxwarn b { font-size: 11.5px; }
  /* 小屏右上角挤三样东西会互相压：手机上天气只留图标和温度，
     天气名字进预报面板里看，一样不丢信息。 */
  .wxbtn { padding: 4px 9px 4px 7px; gap: 4px; }
  .wxbtn i { font-size: 13px; }
  .wxbtn b { font-size: 12.5px; }
  .wxbtn small { display: none; }
  .hud-top { top: 10px; left: 8px; right: 8px; gap: 6px; }
  .cash { font-size: 14px; }
}

/* ── 预报面板 ── */
/* 天气面板里的字全是浅色（#eaf4ff / #dce9f7 / #8fa4ba）、卡片是半透明白 ——
   这一整块本来就是照深色底写的，可 `.sheet` 的默认底子是白的，于是浅字压白底，
   "7 月 · 暴晒 · 湿度 88%"、"往后三天" 那几行基本看不见。这里直接给它深色玻璃。 */
.sheet.wxpanel {
  max-width: 430px;
  background: linear-gradient(180deg, rgba(15, 26, 46, .97), rgba(8, 15, 28, .98));
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 26px 60px rgba(0, 0, 0, .55);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
}
.sheet.wxpanel .sheet-head b { color: #eaf4ff; }
.sheet.wxpanel .sheet-head > button { background: rgba(255, 255, 255, .1); color: #cfe0f5; }
.sheet.wxpanel .moneyline { color: #8fa4ba; }
.wxnow { display: flex; align-items: center; gap: 14px; margin: 4px 0 2px; }
/* 图标占固定一格：emoji 的实际宽度各家字体不一样，不锁宽度就会压到温度上 */
.wxnow > i {
  flex: 0 0 48px; text-align: center;
  font-size: 38px; line-height: 1; font-style: normal;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .4));
}
.wxnow-main { flex: 1; min-width: 0; }
.wxnow-main b { display: block; font-size: 25px; font-weight: 900; color: #eaf4ff; letter-spacing: .01em; line-height: 1.15; }
.wxnow-main b em { font-style: normal; font-size: 15px; color: #9db4cc; margin-left: 5px; }
.wxnow-main span { display: block; margin-top: 2px; font-size: 11.5px; color: #8fa4ba; }
.wxnote {
  margin: 6px 0 0; padding: 8px 11px; border-radius: 10px;
  background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .07);
  font-size: 12px; color: #b6c6d8; line-height: 1.5;
}
.wxwarn2 {
  margin-top: 8px; padding: 9px 12px; border-radius: 11px;
  background: color-mix(in srgb, var(--wc) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--wc) 55%, transparent);
}
.wxwarn2 b { display: block; font-size: 13px; font-weight: 900; color: var(--wc); }
.wxwarn2 span { display: block; margin-top: 2px; font-size: 11.5px; color: #c3b6a8; }
.wxeffect {
  display: flex; align-items: center; gap: 8px; margin-top: 8px;
  padding: 8px 11px; border-radius: 10px;
  background: rgba(77, 148, 255, .1); border: 1px solid rgba(77, 148, 255, .2);
}
.wxeffect i { font-size: 15px; }
.wxeffect span { font-size: 12px; color: #b9d3ef; }
.wxsub { margin: 13px 0 6px; font-size: 11px; font-weight: 800; letter-spacing: .1em; color: #7d90a6; }
.wxhours {
  display: flex; gap: 5px; overflow-x: auto; padding-bottom: 4px;
  scrollbar-width: thin;
}
.wxh {
  flex: 0 0 auto; width: 48px; padding: 7px 3px; border-radius: 10px; text-align: center;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .06);
}
.wxh span { display: block; font-size: 9.5px; color: #7d90a6; }
.wxh i { display: block; font-size: 17px; margin: 3px 0 2px; font-style: normal; }
.wxh b { display: block; font-size: 12px; font-weight: 800; color: #dce9f7; }
.wxh.now { background: rgba(77, 148, 255, .16); border-color: rgba(77, 148, 255, .4); }
.wxh.now b { color: #b9d8ff; }
.wxdays { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.wxd {
  padding: 9px 5px; border-radius: 11px; text-align: center;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .06);
}
.wxd span { display: block; font-size: 10px; color: #7d90a6; }
.wxd i { display: block; font-size: 21px; margin: 4px 0 3px; font-style: normal; }
.wxd b { display: block; font-size: 12px; font-weight: 800; color: #dce9f7; }
.wxd small { display: block; margin-top: 2px; font-size: 10px; color: #8fa4ba; }
.wxd u { display: block; margin-top: 3px; font-size: 9.5px; text-decoration: none; font-weight: 800; }
.wxd.typh { background: rgba(240, 138, 60, .12); border-color: rgba(240, 138, 60, .32); }

/* ── 屋里的窗外：一层薄薄的天气，别挡住 UI ── */
.wxwin {
  position: absolute; inset: 0; z-index: 4; pointer-events: none;
  overflow: hidden; border-radius: inherit;
}
/* 下雨：斜的细条往下走 */
.wxwin.k-rain::before,
.wxwin.k-heavy::before {
  content: ""; position: absolute; inset: -30% -10% -30% -10%;
  background: repeating-linear-gradient(
    101deg,
    transparent 0 7px,
    rgba(198, 224, 248, .26) 7px 8px,
    transparent 8px 16px
  );
  animation: wxFall .62s linear infinite;
}
.wxwin.k-heavy::before {
  background: repeating-linear-gradient(
    104deg,
    transparent 0 5px,
    rgba(198, 224, 248, .4) 5px 6.5px,
    transparent 6.5px 13px
  );
  animation-duration: .38s;
}
/* 暴雨/台风：偶尔一道白闪 */
.wxwin.k-heavy::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 12%, rgba(226, 240, 255, .5), transparent 62%);
  opacity: 0; animation: wxFlash 5.5s steps(1, end) infinite;
}
/* 回南天：一屋子雾 */
.wxwin.k-fog::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(200, 214, 228, .3), rgba(200, 214, 228, .1) 55%, transparent);
  -webkit-backdrop-filter: blur(1.4px); backdrop-filter: blur(1.4px);
  animation: wxFog 7s ease-in-out infinite;
}
/* 暴晒：一道斜射进来的硬光 */
.wxwin.k-sun::before {
  content: ""; position: absolute; inset: -20% -30%;
  background: linear-gradient(112deg, transparent 42%, rgba(255, 214, 150, .19) 50%, transparent 58%);
  animation: wxSun 9s ease-in-out infinite;
}
/* 阴天：压一层冷灰 */
.wxwin.k-gray::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(120, 138, 158, .16), transparent 70%);
}
@keyframes wxFall { from { transform: translate(-26px, -46px); } to { transform: translate(0, 0); } }
@keyframes wxFlash {
  0%, 7%, 100% { opacity: 0; }
  1% { opacity: 1; }
  2.5% { opacity: .18; }
  4% { opacity: .82; }
  5.5% { opacity: 0; }
}
@keyframes wxFog { 50% { opacity: .62; } }
@keyframes wxSun { 50% { transform: translateX(26px); opacity: .72; } }
@media (prefers-reduced-motion: reduce) {
  .wxbtn, .wxbtn.alarm, .wxwarn, .wxwarn i,
  .wxwin::before, .wxwin::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* ══════════════════════════════════════════════════════════════════════
   手机端统一适配（≤640）
   ──────────────────────────────────────────────────────────────────────
   以前移动端规则散在 800/720/560/520/420 五档里，540 宽的机器正好掉进缝里，
   该收的没收、该让的没让。这里一档兜住，并且全部用真实高度做参照：

   · --hud-h  顶栏实测高度（main.js 的 syncHudMetrics 写进来）
   · --dock-h 底栏实测高度
   浮层不再写死 78/106/92 这种魔法数字 —— dock 一长高就会压上去，
   这轮截图里"同城1 压住按钮栏""下楼卡片被底栏盖掉"都是这么来的。
   ══════════════════════════════════════════════════════════════════════ */
:root {
  --dock-h: 78px;
  --hud-h: 190px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  /* 贴在 dock 上沿：底栏高度 + 底栏自身离底距离 + 一点缝 */
  --above-dock: calc(var(--dock-h) + 22px + var(--safe-b));
}

.adbtn, .testcash {
  border: 0; cursor: pointer; font-weight: 900; border-radius: 999px;
  font-size: 11px; padding: 6px 10px; letter-spacing: .02em;
}
.adbtn { background: #f2c14b; color: #1c2430; box-shadow: 0 6px 16px rgba(0,0,0,.18); }
.testcash { background: rgba(20, 28, 40, .55); color: #ffe7a3; border: 1px dashed rgba(255,209,102,.7); }
.adstage {
  position: fixed; inset: 0; z-index: 80; display: grid; place-items: center;
  background: rgba(8, 12, 20, .72); padding: 18px;
}
.adstage-in {
  width: min(680px, 100%); background: #121820; color: #e8eef6;
  border-radius: 18px; padding: 14px; box-shadow: 0 24px 60px rgba(0,0,0,.45);
}
.adstage-tip { margin: 0 0 10px; font-size: 13px; font-weight: 800; color: #f2c14b; }
.adstage-view { position: relative; width: 100%; aspect-ratio: 16/9; background: #000; border-radius: 12px; overflow: hidden; }
.adstage-video, .adstage-slot { position: absolute; inset: 0; width: 100%; height: 100%; }
.adstage-video { object-fit: contain; }
.adstage-x { margin-top: 10px; background: transparent; color: #9aabbe; font-weight: 800; font-size: 12px; }

@media (max-width: 640px) {
  /* ── ① 顶栏：三行网格（时钟+钱 / 需求环 / 徽章+帮助）──
     手机宽度放不下一行三块：需求环 6 个圈 254px + 金额 103px > 360。
     以前靠写死 top 硬叠，结果环压住金额、"?"压住钱数。 */
  .hud-top {
    top: calc(8px + var(--safe-t)); left: 10px; right: 10px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 7px;
  }
  .hud-left { display: contents; }              /* 三块直接变成 grid item */
  .where { grid-column: 1; grid-row: 1; min-width: 0; }
  .hud-right { grid-column: 2; grid-row: 1; flex-direction: row; align-items: center; gap: 6px; }
  .hud-needs { grid-column: 1 / -1; grid-row: 2; width: 100%; justify-content: space-between; }
  .hud-mini { grid-column: 1 / -1; grid-row: 3; justify-content: space-between; }
  /* 清掉老规则里写死的坐标 —— 它们靠 top 把元素"挪"到目的地，
     现在元素在流里了，那些 top 会把它再往下推一段（徽章就被推到半屏）。 */
  .hud-needs, .hud-needs.on-city, .medalbtn, .helpbtn {
    position: relative; top: auto; left: auto; right: auto; transform: none;
  }
  .medalbtn { padding: 5px 10px 5px 8px; }

  .where { padding: 7px 12px 7px 9px; gap: 7px; border-radius: 18px; }
  .where b { font-size: 13.5px; }
  .where span { font-size: 10.5px; }
  .wemoji { font-size: 19px; }
  .where .wmain { min-width: 0; }
  .where > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  .cash { font-size: 19px; padding: 9px 14px 9px 11px; gap: 6px; }
  .cash i { font-size: 16px; }
  .wxbtn { padding: 6px 9px 6px 7px; gap: 4px; }
  .wxbtn i { font-size: 15px; }
  .wxbtn b { font-size: 13.5px; }
  .wxbtn small { font-size: 10px; }

  /* 需求环：撑满一行，六个圈均匀铺开 —— 手指也更好点 */
  .need-chip { flex: 1 1 0; min-width: 0; width: auto; }
  .need-chip .ring, .need-chip .ring svg { width: 32px; height: 32px; }
  .need-chip .nico { top: 5px; font-size: 13px; }
  .need-chip .nval { font-size: 9.5px; }
  .hud-needs { gap: 0; padding: 7px 6px 5px; }

  /* ── ② 底栏 + 贴底浮层 ── */
  .dock {
    left: 10px; right: 10px; width: auto; transform: none;
    bottom: calc(10px + var(--safe-b));
    padding: 7px 8px; border-radius: 20px; gap: 6px;
  }
  .dock button:not(.dockbtn) { padding: 8px 6px; }
  .dockbtn { width: 56px; padding: 6px 0 5px; }
  .dockbtn svg { width: 26px; height: 23px; }
  .picon { width: 34px; height: 34px; border-radius: 12px; font-size: 17px; }
  .picon svg { width: 23px; height: 19px; }
  .pmain b { font-size: 13.5px; }
  .pmain span { font-size: 10.5px; }
  /* 手机上整块牌只有 144 宽，图标+文字就占满了，信号条收掉 */
  .pflag { display: none; }
  .placecard { padding: 4px 6px; border-radius: 14px; }

  /* 楼梯 / 布置：挂在 dock 上沿，别再让卡片从底栏里长出来 */
  .stairs { right: 10px; bottom: calc(var(--above-dock) + 4px); gap: 9px; }
  .homeacts { left: 8px; bottom: calc(var(--above-dock) + 86px); }
  .sidebtn { padding: 6px 11px 6px 7px; font-size: 12px; }
  .stairbtn { width: 84px; padding: 8px 6px 7px; border-radius: 15px; }
  .sfloor { white-space: nowrap; font-size: 9.5px; padding: 3px 7px; letter-spacing: .02em; }
  .sart { width: 76px; height: 26px; }
  .sart svg { width: 70px; height: 23px; }
  .slab { font-size: 14px; }

  /* 左侧贴底：同城条 → 今日条，依次往上摞 */
  .mpbar { top: calc(var(--hud-h) + 8px); right: 10px; left: auto; bottom: auto; width: min(230px, 62vw); }
  .todaybar {
    left: 10px; bottom: calc(var(--above-dock) + 34px);
    max-width: calc(100vw - 118px); padding: 7px 11px; font-size: 12px; border-radius: 14px;
  }
  .todaybar b { font-size: 10px; padding: 2px 6px; }
  .todaybar i { font-size: 10px; padding: 2px 6px; }

  /* ── ③ 地图页贴底的东西 ── */
  .szlines { left: 10px; right: 60px; bottom: calc(var(--above-dock) + 96px); max-width: none; transform: none; justify-content: flex-start; }
  .szl { font-size: 10px; padding: 2px 7px 2px 6px; }
  /* 旁白气泡：屋里当"字幕"挂在顶栏下面（屋里顶部是空的）；
     地图页顶部要用来看地名，所以改挂到底部图例下面、贴着「同城1」往上摞。 */
  .coach {
    top: calc(var(--hud-h) + 10px); bottom: auto;
    left: 10px; right: 10px; transform: none;
    text-align: center; border-radius: 14px;
    font-size: 12.5px; line-height: 1.45; padding: 7px 12px;
  }
  .hud-top:has(~ .wxwarn) ~ .coach { top: calc(var(--hud-h) + 62px); }
  body[data-place="city"] .coach,
  body[data-place="city"] .hud-top:has(~ .wxwarn) ~ .coach {
    top: auto; bottom: calc(var(--above-dock) + 36px);
    /* 左边对齐到图例，右边让开 +/- 那一列（34 宽 + 10 右距 = 316 起）。
       给满 294 宽，"拖着看全城。点一块地方，再坐过去。" 就能一行放完，
       不然 360 的机器上最后两个字会掉到第二行。 */
    left: 10px; right: 56px; text-align: left;
  }
  .szzoom { right: 10px; bottom: calc(var(--above-dock) + 36px); }
  .szzoom button { width: 34px; height: 34px; border-radius: 11px; font-size: 14px; }
  /* 顶栏已经说明"点圆点"，底部还有 coach，中间这条就别挤了 */
  .maptip { display: none; }
  .sznow { display: none; }
  .szdists { display: none; }

  /* 预警条：挂在顶栏下面，不再居中压需求环 */
  .wxwarn {
    top: calc(var(--hud-h) + 12px); left: 10px; right: 10px;
    transform: none; max-width: none; padding: 7px 11px;
  }
  .wxwarn span { font-size: 11px; }

  /* 浮层面板统一改成"底部抽屉"，从 dock 上沿往上长 */
  .panel {
    left: 10px; right: 10px; width: auto; top: auto;
    bottom: var(--above-dock);
    max-height: calc(100dvh - var(--hud-h) - 130px);
    border-radius: 22px; padding: 14px 13px;
  }
  .sheet {
    left: 10px; right: 10px; width: auto; top: auto;
    bottom: var(--above-dock); height: auto;
    max-height: min(56vh, calc(100dvh - var(--hud-h) - 120px));
    border-radius: 22px; padding: 14px 13px 12px;
  }
  .sheet.ridecard { bottom: var(--above-dock); }
  body[data-place="city"] .sheet,
  body[data-place="city"] .panel { top: auto; bottom: var(--above-dock); }
  body[data-place="city"] .szcard {
    left: 10px; right: 10px; width: auto; top: auto;
    bottom: var(--above-dock); max-height: min(58vh, calc(100dvh - var(--hud-h) - 110px));
  }
  .szc-art { height: 100px; }

  /* 在路上：行程条贴底（这屏幕没有 dock） */
  .tripbar { left: 10px; right: 10px; bottom: calc(10px + var(--safe-b)); padding: 11px 13px 10px; }

  /* ── ④ 捏人：卡片要够高，左边步骤轨要能整条露出来 ──
     以前 66vh —— 手机上卡片从 35% 就开始盖屏，人整个被吃掉。
     现在压到 50vh：卡片上沿落在 48%~51%，人（相机那头算好落在 12%~46%）
     整个露在上面。卡里内容本来就 overflow:auto，压矮了也只是多滚一点。 */
  .sheet.look {
    height: min(50vh, 400px); min-height: 0;
    bottom: calc(10px + var(--safe-b)); max-height: none;
    padding: 12px 10px 10px; border-radius: 22px;
  }
  .lookrail { width: 74px; padding: 10px 5px 8px; gap: 5px; }
  .lr-prog { top: 26px; bottom: 34px; }
  .lookrail button { padding: 3px 1px 4px; gap: 2px; }
  .lr-node { width: 36px; height: 36px; border-radius: 12px; }
  .lr-node em { font-size: 18px; }
  .lookrail button b { font-size: 10.5px; letter-spacing: .02em; }
  .lr-foot { padding: 2px 8px; }
  .lr-foot b { font-size: 12.5px; }
  .lr-foot span { font-size: 9px; }
  .lookcol { padding: 10px 9px 8px; gap: 8px; }
  .sheet.look .choices.grid.gender { gap: 7px; }
  .sheet.look .choices.grid.gender .opt { padding: 9px 7px; gap: 6px; }
  .sheet.look .choices.grid.gender .opt .opic3d { height: 62px; }
  .sheet.look .choices.grid.gender .opt em b { font-size: 13px; }
  .sheet.look .choices.grid.gender .opt em span { font-size: 10.5px; line-height: 1.35; }
  .sheet.look .choices.grid:not(.gender) .opt.has3d { padding: 8px 10px; gap: 10px; }
  .sheet.look .choices.grid:not(.gender) .opt.has3d .opic3d { width: 44px; height: 44px; }
  .sheet.look .choices.grid:not(.gender) .opt.has3d em b { font-size: 13px; }
  .sheet.look .choices.grid:not(.gender) .opt.has3d em span { font-size: 11.5px; }
  .go { padding: 12px; font-size: 15px; }

  /* ── ⑤ 手机壳 ── */
  /* 手机壳 + 下面那颗「收起」要一起塞进 dock 上方的空间里。
     以前 device 高 580、收起按钮就压在同城条上。 */
  .phone-wrap { justify-content: center; padding-bottom: calc(var(--dock-h) + 48px + var(--safe-b)); }
  .dev-close { padding: 7px 16px 7px 12px; font-size: 12px; }
  /* 手机开着的时候，底下这些浮层是点不到的，收掉别跟「收起」抢地方。
     hud-top 也要收 —— 手机壳高度是 calc(100dvh - 190px)，上面会空出一条，
     时钟/天气/金额就从那条缝里露出来（截图里就是"手机上面还压着一排数字"）。 */
  body[data-panel="phone"] .hud-top,
  body[data-panel="phone"] .coach,
  body[data-panel="phone"] .todaybar,
  body[data-panel="phone"] .mpbar,
  body[data-panel="phone"] .stairs { display: none; }

  /* ── ⑥ 别的地方顺带收一下 ── */
  .howto { top: 50%; max-height: 74vh; padding: 16px 14px 12px; }
  .fxbadge { top: calc(8px + var(--safe-t)); }
  .banner { max-width: calc(100vw - 24px); }
}

/* ══════════ 2.2 交互修复：闪烁 / 浮层遮挡 / 天气双口径 ══════════
   这一整段放在所有 @media 之后，是最终裁决层。 */

/* ① 「点一下就闪」：.tripbar 的入场动画原本挂在基础类上，
      render() 每次整块重建 DOM 都会从 opacity:0 重新滑入，
      连 fxEnter 已经把它标成 fxhold 也拦不住。
      改成只有新出现的那一帧（.fxin）才演。 */
.tripbar { animation: none; }
[data-fxk^="trip"].fxin { animation: fxTripIn .5s cubic-bezier(.2, 1.4, .4, 1) both; }

/* ② 「浮层被盖」：工位/场景浮条原来 bottom:108px，和 .todaybar(106px, z:700)
      几乎完全重叠，而自己只有 z:42 → 左半截被今日条压住。
      抬到今日条上方，用 dock 真实高度算，别再写死 108。 */
#ui .tripbar.deskbar, #ui .tripbar.scenebar {
  bottom: calc(var(--dock-h, 78px) + 104px);
  z-index: 720;
}
#ui .tripbar.scenebar + .tripbar.deskbar,
#ui .tripbar.deskbar + .tripbar.scenebar {
  bottom: calc(var(--dock-h, 78px) + 174px);
}

/* ②b 玩法说明面板：#ui 的 pointer-events:none 是继承属性，.howto 没带 .hit，
      里面的「知道了 / 带我走一遍」一直点不动（中心点直接穿透到 canvas）。
      同时 htIn 挂在基础类上，每次 render 会重播 → 顺手收进 .fxin。 */
.howto { pointer-events: auto; animation: none; }
[data-fxk="howto"].fxin { animation: htIn .4s cubic-bezier(.2, 1.3, .4, 1) both; }

/* ③ 路人名片/奖励/广告都是模态，却被 .sheet(z:40) 压在下面。
      HUD 700 / 手机 780 / 名片 820 / 广告 860 / 引导 900，逐级留空。 */
.mpcard { z-index: 820; }
.mpreward { z-index: 830; }
.adstage { z-index: 860; }
.wxwarn.k-game { --wc: #8fb8d6; background: linear-gradient(120deg, rgba(20, 38, 58, .94), rgba(14, 24, 40, .94)); }

/* ④ 天气面板：深圳此刻（实况） / 游戏里这天（玩法）分栏，互不混用 */
.wxblock { margin: 2px 0 10px; padding: 10px 12px; border-radius: 14px; border: 1px solid rgba(140, 190, 240, .16); }
.wxlive { background: rgba(36, 120, 110, .1); }
.wxsim { background: rgba(60, 100, 160, .09); }
.wxblock-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.wxblock-h b { font-size: 12px; font-weight: 900; color: #dcebf9; letter-spacing: .03em; }
.wxblock-h span { font-size: 10.5px; color: #8fa4ba; text-align: right; }
.wxcalm { margin-top: 6px; font-size: 11.5px; color: #9fc2b9; line-height: 1.5; }
@media (max-width: 640px) {
  .wxblock { padding: 9px 10px; }
  .wxblock-h { flex-wrap: wrap; }
  .wxblock-h span { text-align: left; }
}

/* ══════════ 2.2 真人互动深化：多人名单 / 邀约 / 留话 / 同城手账 ══════════
   铁律沿用上面三条：① 动画只挂 [data-fxk].fxin，基础类不挂（否则 render()
   重建 DOM 就会重播，就是「点一下就闪」）；② #ui 的 pointer-events:none 是继承的，
   浮层必须显式 auto；③ z-index 是层级不是顺序，.szmap(z:1) 会压住所有 auto。
   层级：HUD 700 < 场景条 720 < 手账 760 < 手机 780 < 邀约/留话卡 850
        < 名片 820(模态) / 奖励 830 / 广告 860 / 引导 900。 */

/* ① HUD 右上角那颗手账钮：跟天气钮同一套深色玻璃胶囊 */
.socialbtn {
  position: relative; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 34px; padding: 0; border-radius: 99px;
  background: linear-gradient(160deg, rgba(26, 44, 74, .82), rgba(12, 20, 35, .86));
  border: 1px solid rgba(140, 190, 240, .3);
  color: #dbe8f6; font-size: 17px; line-height: 1;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .36), inset 0 1px 0 rgba(255, 255, 255, .1);
  transition: transform .16s ease, border-color .25s ease;
  animation: none;
}
.socialbtn:hover { transform: translateY(-2px); border-color: rgba(160, 210, 255, .6); }
.socialbtn:active { transform: scale(.93); }
.socialbtn.ring { border-color: rgba(255, 186, 92, .72); box-shadow: 0 8px 22px rgba(0, 0, 0, .36), 0 0 0 3px rgba(255, 186, 92, .18); }
.socialbtn i {
  position: absolute; top: -5px; right: -5px; min-width: 17px; height: 17px;
  padding: 0 4px; border-radius: 99px; background: #ef5a5a; color: #fff;
  font-size: 10px; font-weight: 900; font-style: normal; line-height: 17px;
  border: 2px solid rgba(12, 20, 35, .92); box-shadow: 0 2px 6px rgba(0, 0, 0, .4);
}
/* 手机壳开着时 HUD 整排都收掉了，手账别从缝里漏出来 */
body[data-panel="phone"] .socialbtn { display: none; }

/* ② 邀约 / 选地点 / 留话：屏幕下方的深色玻璃小卡，不铺满屏、不挡 3D 场景 */
.socialcard {
  position: fixed; left: 12px; right: 12px; margin: 0 auto;
  width: auto; max-width: 400px;
  bottom: calc(var(--above-dock, 100px) + 14px);
  z-index: 850; pointer-events: auto;
  padding: 15px 16px 14px; border-radius: 22px;
  background: linear-gradient(165deg, rgba(20, 34, 56, .97), rgba(9, 16, 29, .98));
  border: 1px solid rgba(140, 190, 240, .28);
  box-shadow: 0 26px 60px rgba(0, 0, 0, .58), inset 0 1px 0 rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: blur(16px) saturate(1.25); backdrop-filter: blur(16px) saturate(1.25);
  color: #eaf3ff;
  animation: none;
}
[data-fxk^="invitein"].fxin,
[data-fxk^="invitepick"].fxin,
[data-fxk^="mailcompose"].fxin { animation: fxCardIn .38s cubic-bezier(.2, 1.3, .4, 1) both; }
@keyframes fxCardIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
.sc-head { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.sc-head > i { font-size: 20px; font-style: normal; line-height: 1; }
.sc-head > b { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 900; letter-spacing: .01em; }
.sc-head > button {
  flex: none; width: 28px; height: 28px; border-radius: 99px;
  background: rgba(255, 255, 255, .1); color: #cfe0f5; font-size: 17px; line-height: 1;
}
.sc-head > button:hover { background: rgba(255, 255, 255, .2); }
.sc-line { margin: 4px 0 6px; font-size: 13px; line-height: 1.6; color: #dce9f8; }
.sc-note { margin: 7px 0 0; font-size: 11.5px; line-height: 1.55; color: #8fa4ba; }
.sc-acts { display: flex; gap: 8px; margin-top: 12px; }
.sc-acts button {
  flex: 1; padding: 10px 12px; border-radius: 13px;
  background: rgba(255, 255, 255, .08); color: #d7e4f2;
  font-size: 12.5px; font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
}
.sc-acts button:hover { background: rgba(255, 255, 255, .16); }
.sc-acts button.main { background: linear-gradient(120deg, #2b8c62, #1f9d55); color: #fff; box-shadow: 0 6px 18px rgba(31, 157, 85, .32); }
.sc-acts button.main:hover { filter: brightness(1.1); }
.sc-places { display: flex; flex-direction: column; gap: 7px; margin: 4px 0 2px; }
.sc-places button {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  width: 100%; padding: 9px 12px; border-radius: 13px; text-align: left;
  background: rgba(255, 255, 255, .055); color: #eaf3ff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
}
.sc-places button:hover { background: rgba(255, 255, 255, .13); box-shadow: inset 0 0 0 1px rgba(140, 210, 255, .5); }
.sc-places button b { font-size: 13px; font-weight: 900; }
.sc-places button span { font-size: 11px; color: #9db4cc; }
.sc-input {
  display: block; width: 100%; margin: 4px 0 2px; padding: 11px 12px;
  border-radius: 13px; border: 1px solid rgba(140, 190, 240, .3);
  background: rgba(255, 255, 255, .07); color: #eaf3ff; font-size: 13px;
  outline: none; pointer-events: auto;
}
.sc-input::placeholder { color: #7d90a6; }
.sc-input:focus { border-color: rgba(110, 220, 180, .7); background: rgba(255, 255, 255, .11); }

/* ③ 同城手账：右侧抽屉，深色玻璃，三段（留话 / 碰过的人 / 往来）可滚 */
.socialsheet {
  position: absolute; right: 22px; top: 118px;
  bottom: var(--above-dock, 100px);
  width: min(390px, calc(100% - 32px));
  z-index: 760; pointer-events: auto;
  display: flex; flex-direction: column; gap: 0;
  padding: 15px 16px 14px; border-radius: 24px;
  background: linear-gradient(180deg, rgba(15, 26, 46, .97), rgba(8, 15, 28, .98));
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 26px 60px rgba(0, 0, 0, .55);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  color: #eaf4ff;
  animation: none;
}
[data-fxk="social"].fxin { animation: fxSheetIn .45s cubic-bezier(.2, 1.2, .4, 1) both; }
body[data-panel="phone"] .socialsheet { display: none; }
.socialsheet .wxsub { color: #8fa4ba; }
.socialsheet .sc-note { color: #9db4cc; }
.ss-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding-right: 3px; padding-bottom: 10px; }
.ss-mail {
  position: relative; margin: 0 0 7px; padding: 9px 11px 9px 12px; border-radius: 13px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .09);
}
.ss-mail.unread { background: rgba(255, 186, 92, .1); border-color: rgba(255, 186, 92, .32); }
.ss-mail.unread::before {
  content: ""; position: absolute; left: 4px; top: 12px;
  width: 5px; height: 5px; border-radius: 99px; background: #ffba5c;
}
.ss-mail > b { font-size: 12.5px; font-weight: 900; color: #eaf3ff; }
.ss-mail > span { margin-left: 7px; font-size: 10.5px; color: #7d90a6; }
.ss-mail > p { margin: 4px 0 0; font-size: 12.5px; line-height: 1.55; color: #c7d8ea; }
.ss-mail > button {
  margin-top: 6px; padding: 5px 11px; border-radius: 99px;
  background: rgba(110, 220, 180, .16); color: #a6e9cc; font-size: 11px; font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(110, 220, 180, .3);
}
.ss-mail > button:hover { background: rgba(110, 220, 180, .28); }
.ss-rel { display: flex; flex-wrap: wrap; gap: 6px; }
.ss-rel > span {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 10px; border-radius: 99px;
  background: rgba(140, 190, 240, .1); box-shadow: inset 0 0 0 1px rgba(140, 190, 240, .22);
  font-size: 11.5px;
}
.ss-rel > span b { font-weight: 900; color: #dcebf9; }
.ss-rel > span i { font-style: normal; color: #ffca7a; font-weight: 900; }
.ss-log { display: flex; align-items: baseline; gap: 7px; padding: 5px 0; border-bottom: 1px dashed rgba(255, 255, 255, .08); }
.ss-log > span { flex: none; font-size: 10px; color: #7d90a6; }
.ss-log > b { flex: none; max-width: 82px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; color: #cfe0f5; }
.ss-log > p { flex: 1; min-width: 0; margin: 0; font-size: 11.5px; color: #9db4cc; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ④ 三人以上场景浮条里的头像点：跟头顶小圆点一套配色 */
.pdots { display: inline-flex; align-items: center; margin-right: 5px; vertical-align: -3px; }
.pdot {
  display: inline-grid; place-items: center;
  width: 20px; height: 20px; margin-right: -5px; border-radius: 99px;
  background: var(--pc, #7fb6d9); color: #0d1a2b;
  font-size: 10px; font-weight: 900; font-style: normal;
  border: 2px solid rgba(12, 22, 38, .92);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
}
.pdot:last-child { margin-right: 0; }

/* ⑤ 窄屏：手账改底部抽屉，卡别顶到状态栏，红点不挤出 HUD */
@media (max-width: 640px) {
  .socialbtn { width: 34px; height: 31px; font-size: 15px; }
  .socialsheet {
    left: 10px; right: 10px; width: auto;
    top: auto; bottom: var(--above-dock, 100px);
    height: auto; max-height: min(56vh, calc(100dvh - var(--hud-h, 190px) - 110px));
    border-radius: 22px; padding: 13px 13px 12px;
  }
  .socialcard { left: 10px; right: 10px; max-width: none; padding: 13px 13px 12px; }
  .sc-acts button { padding: 9px 8px; font-size: 12px; }
}


/* ══════════ 2.3 真实时间 / 真实价格 ══════════
   HUD 从「周一 08:00」变成「11/7 周六 21:38」，天气面板写完整年月日与
   当前时分，预报从这一刻起算、跨零点标出「明天 11/8」。 */
#clock { font-size: 13px; letter-spacing: 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { #clock { font-size: 12px; } }
.wxh { padding: 7px 4px 8px; }
.wxh span { font-size: 10px; letter-spacing: -.02em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.wxh small { display: block; margin-top: 1px; font-size: 8.5px; line-height: 1.15; color: #f0b86a; white-space: nowrap; }
.wxh.cross { border-color: rgba(240, 184, 106, .38); background: rgba(240, 184, 106, .07); }
.wxd span, .wxd small { white-space: nowrap; }
.wxfoot { border-top: 1px solid rgba(255, 255, 255, .07); padding-top: 9px; margin-top: 2px; font-size: 11.5px; line-height: 1.6; }
.moneyline.wxfoot { margin-bottom: 0; }


/* ══════════ 2.4 场景条重做：小卡 + 真能收起 ══════════
   以前复用 .tripbar（left:12px; right:12px 的全宽黑条），把人物和海景横着切一刀；
   点「先看手机」又只 say 一句、不清状态，等于永远关不掉。
   现在右下角一张 300px 小卡，× 和「先不看」都真的收起。 */
#ui .tripbar.scenebar.scenecard {
  left: auto; right: 14px;
  width: min(300px, calc(100vw - 28px));
  bottom: calc(var(--dock-h, 78px) + 104px);
  z-index: 720;
  padding: 12px 13px 11px;
  border-radius: 18px;
  background: linear-gradient(155deg, rgba(20, 34, 52, .92), rgba(10, 20, 34, .9));
  border: 1px solid rgba(140, 200, 255, .2);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .09);
  pointer-events: auto;
}
.scn-x {
  position: absolute; top: 6px; right: 8px;
  width: 24px; height: 24px; padding: 0;
  border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .1); color: #cfe0f2;
  font-size: 17px; line-height: 22px; font-weight: 900;
}
.scn-x:hover { background: rgba(255, 255, 255, .2); }
.scn-top {
  padding-right: 22px; min-height: 20px;
  font-size: 12.5px; font-weight: 800; color: #dceaf8; line-height: 1.5;
}
.scn-top b { color: #fff; font-weight: 900; }
.scn-top span:not(.pdots) { color: rgba(205, 224, 244, .72); margin-left: 5px; }
.scn-top.hot { color: #ffd98a; }
.scn-top .pdots { vertical-align: middle; margin-right: 5px; }
.scn-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.scn-acts button {
  flex: 1 1 auto; min-width: 78px;
  border: 0; border-radius: 12px; padding: 8px 11px;
  font-size: 12.5px; font-weight: 900; cursor: pointer;
  background: rgba(255, 255, 255, .14); color: #dceaf8;
}
.scn-acts button.main { background: linear-gradient(180deg, #ffd873, #f2c14b); color: #1c2430; }
.scn-acts button.ghost {
  flex: 0 0 auto; min-width: 62px; background: transparent;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); color: #b9cee2;
}
.scn-acts button:active { transform: translateY(1px); }
@media (max-width: 640px) {
  #ui .tripbar.scenebar.scenecard {
    left: 10px; right: 10px; width: auto;
    bottom: calc(var(--dock-h, 78px) + 12px);
    padding: 11px 12px 10px;
  }
  .scn-acts button { padding: 9px 8px; font-size: 12px; }
}

/* ══════════ 3.1 性能：关掉毛玻璃合成 ══════════
   全站 20 多处 backdrop-filter: blur() 盖在持续重绘的 WebGL 画布上，
   浏览器每帧都要把画布内容读回来做一次高斯模糊 —— 实测约占 1/4~1/3 主线程，
   GPU 进程还要额外开合成层。这些卡片本身已经有 rgba / 渐变半透明底色，
   换成纯色几乎看不出差别，但每帧省掉一次全屏读回 + 模糊。
   用通配覆盖而不是逐条删：以后新加的浮层也不会把毛玻璃带回来。 */
*, *::before, *::after {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

/* 换装面板沿用城市夜色，颜色只用在穿搭本身和选中状态。 */
.room-tools { display: flex; align-items: center; justify-content: flex-end; gap: 7px; }
.sidebtn.k-wardrobe { padding-inline: 11px; color: #b8efdf; border-color: #4caa94; background: #193f42; transform: none; }
.outfit-choices { display: grid; gap: 6px; }
.outfit-choice { width: 100%; display: flex; align-items: center; gap: 9px; padding: 7px 9px; border: 1px solid #b7ced7; border-radius: 11px; background: #f5fbfc; color: #223747; text-align: left; }
.outfit-choice b, .outfit-choice small { display: block; line-height: 1.35; }
.outfit-choice small { font-size: 10px; opacity: .83; margin-top: 2px; }
.outfit-choice[aria-pressed="true"] { border-color: #54ab95; background: #dff6ee; }
.outfit-swatches { display: flex; flex: 0 0 auto; }
.outfit-swatches i { width: 9px; height: 23px; background: var(--swatch); border: 1px solid #53677944; }
.outfit-swatches i:first-child { border-radius: 5px 0 0 5px; }
.outfit-swatches i:last-child { border-radius: 0 5px 5px 0; }
.wardrobe-overlay { position: fixed; inset: 0; z-index: 790; display: grid; place-items: center; padding: 14px; background: #08172788; }
.wardrobe-panel { width: min(100%, 462px); max-height: min(90dvh, 660px); overflow: auto; border: 1px solid #7898a4; border-radius: 20px; padding: 16px; color: #edf9f9; background: #152c39; box-shadow: 0 22px 64px #050e1c88; }
.wardrobe-panel header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.wardrobe-panel header span { color: #9fc6cb; font-size: 11px; }
.wardrobe-panel h2 { margin: 3px 0 0; font-size: 22px; }
.wardrobe-panel header button { border: 0; border-radius: 10px; padding: 9px 13px; color: #12353a; background: #9be0cb; font-weight: 800; }
.wardrobe-main { display: grid; grid-template-columns: minmax(72px, 30%) minmax(0, 1fr); gap: 10px; align-items: stretch; }
.wardrobe-portrait { display: grid; place-items: center; background: radial-gradient(ellipse at 50% 30%, #c9ece1, #7aa6ae); border: 1px solid #83aab3; border-radius: 14px; overflow: hidden; }
.wardrobe-portrait img { width: 100%; object-fit: contain; transform: scale(1.42); }
.wardrobe-panel .row-label { color: #bbdbe0; margin: 11px 0 6px; }
.wardrobe-main .row-label { margin-top: 0; }
.wardrobe-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.wardrobe-pills button { border: 1px solid #a5c3cd; border-radius: 9px; padding: 6px 9px; background: #f0f7f8; color: #213b48; font-size: 12px; font-weight: 700; }
.wardrobe-pills button[aria-pressed="true"] { color: #164335; background: #bcf0dc; border-color: #52ad91; }
.wardrobe-panel .wardrobe-pills button { color: #eaf8fa; background: #223f4d; border-color: #587683; }
.wardrobe-panel .wardrobe-pills button[aria-pressed="true"] { color: #164335; background: #bcf0dc; border-color: #52ad91; }

/* 深圳城市图鉴 */
#atlas-view { position: fixed; inset: 0; z-index: 0; background: #8ed3df; pointer-events: none; }
#atlas-view[hidden] { display: none; }
#atlas-view .sz3d-wrap { z-index: 0; pointer-events: auto; touch-action: none; outline: 0; }
#atlas-chrome { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
#atlas-view .sz3d-wrap.is-grabbing, #atlas-view .sz3d-wrap.is-grabbing * { cursor: grabbing !important; }
#atlas-view .hit, #atlas-view button, #atlas-view summary, #atlas-view input { pointer-events: auto; }
#atlas-view button, #atlas-view summary { cursor: pointer; }
#atlas-view [hidden] { display: none !important; }
#atlas-view button:focus-visible, #atlas-view summary:focus-visible, #atlas-view input:focus-visible { outline: 2px solid #6256ac; outline-offset: 2px; }
.atlas-map { --atlas-ink: #263658; --atlas-muted: #525f7d; --atlas-paper: #fffdf8; --atlas-edge: #b9c5dc; pointer-events: none; }
body[data-place="city"] .hud-needs.on-city { display: none; }
.atlas-heading { position: absolute; z-index: 4; left: 23px; top: calc(var(--hud-h, 62px) + 19px); max-width: 310px; color: var(--atlas-ink); text-shadow: 0 1px 3px #ffffff8c; }
.atlas-kicker { display: flex; align-items: center; gap: 8px; font-size: 10px; font-weight: 900; letter-spacing: .18em; color: #35436a; }
.atlas-kicker i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.atlas-title { display: flex; align-items: center; gap: 10px; }
.atlas-title-sticker { display: grid; flex: 0 0 auto; width: 35px; height: 35px; place-items: center; border: 2px solid #fff8ea; border-radius: 12px 12px 12px 4px; background: var(--accent); color: #fffaf1; box-shadow: 0 3px 0 #40537b66; transform: rotate(-7deg); }
.atlas-title-sticker svg { width: 21px; height: 21px; }
.atlas-title h2 { margin: 4px 0; font-size: clamp(30px, 3vw, 46px); letter-spacing: .03em; line-height: 1.08; font-weight: 950; }
.atlas-heading p { margin: 1px 0 8px; font-size: 12px; line-height: 1.5; font-weight: 700; }
.atlas-heading button { border: 1px solid #b7c4df; border-radius: 9px; background: var(--atlas-paper); color: #35436a; padding: 5px 8px; font-size: 11px; font-weight: 800; white-space: nowrap; }
.atlas-here i { display: inline-block; vertical-align: 1px; width: 6px; height: 6px; border-radius: 50%; background: #ef9a49; margin-right: 3px; }

.atlas-portal { position: absolute; left: 0; top: 0; z-index: 2; display: flex; align-items: center; gap: 6px; padding: 5px 7px 5px 5px; min-height: 33px; border: 1px solid #ffffffdc; border-radius: 11px 11px 11px 5px; box-shadow: 0 3px 0 color-mix(in srgb, var(--accent), #20355c 24%), 0 6px 12px #253d6650; background: color-mix(in srgb, var(--accent) 12%, #fffdf6); color: #263658; text-align: left; white-space: nowrap; }
.atlas-portal small { display: grid; place-items: center; width: 22px; height: 22px; font-size: 9px; font-weight: 800; border-radius: 7px; background: var(--accent); color: #fffaf0; }
.atlas-portal small svg { width: 16px; height: 16px; }
.atlas-portal span { display: grid; gap: 2px; }
.atlas-portal b { font-size: 13px; font-weight: 900; line-height: 1; }
.atlas-portal em { font-size: 9px; font-style: normal; color: #495775; }
.atlas-portal i { font-style: normal; font-size: 15px; padding-left: 2px; color: var(--accent); }
.atlas-portal:hover, .atlas-portal:focus-visible { background: #fffdf8; z-index: 5; }
.atlas-pin.szlab { padding: 5px 8px; border-radius: 6px; background: #435784f5; border-color: #dddafab0; box-shadow: 0 3px 9px #324b796b; }
.atlas-pin.szlab.big { background: #fffdf3; border-color: #b7c6e4; }
.atlas-pin.szlab.big b { color: #263658; text-shadow: none; }
.atlas-pin.szlab.hot { background: #ffdc90; }
.atlas-pin.szlab.hot b { color: #362b36; }

.atlas-places { position: absolute; z-index: 4; left: 23px; top: calc(var(--hud-h, 62px) + 152px); width: min(276px, 31vw); color: var(--atlas-ink); border: 1px solid var(--atlas-edge); border-radius: 17px; background: var(--atlas-paper); box-shadow: 0 4px 0 #6783b25c, 0 9px 23px #263f6838; }
.atlas-places summary { display: flex; align-items: center; gap: 9px; padding: 9px 11px; list-style: none; border-radius: 16px; background: color-mix(in srgb, var(--accent) 10%, #fffdf7); }
.atlas-places summary::-webkit-details-marker { display: none; }
.atlas-index-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 11px; color: #fff9eb; background: var(--accent); }
.atlas-index-icon svg { width: 21px; height: 21px; }
.atlas-places summary b, .atlas-places summary small { display: block; }
.atlas-places summary b { font-size: 15px; line-height: 1.1; }
.atlas-places summary small { color: var(--atlas-muted); font-size: 10px; margin-top: 3px; }
.atlas-places summary i { margin-left: auto; width: 7px; height: 7px; border-right: 2px solid #62558d; border-bottom: 2px solid #62558d; transform: rotate(45deg); }
.atlas-places[open] summary i { transform: rotate(225deg); }
.atlas-index-body { padding: 8px 10px 9px; }
.atlas-search { display: flex; align-items: center; gap: 4px; padding: 0 7px; min-height: 35px; border: 1px solid #b8c7e3; border-radius: 10px; background: #f7f8ff; color: #53698b; }
.atlas-search input { width: 100%; border: 0; background: transparent; color: #3b3141; font: inherit; font-size: 12px; min-width: 0; }
.atlas-filters { display: flex; flex-wrap: wrap; gap: 3px; margin: 7px 0; }
.atlas-filters button { border: 1px solid #ccd7ef; border-radius: 10px; background: #eef1ff; color: #49577b; font-size: 10px; padding: 4px 7px; font-weight: 800; }
.atlas-filters button[aria-pressed="true"] { background: #504988; color: #fffaff; border-color: #504988; }
.atlas-index-count { padding: 0 2px 5px; color: var(--atlas-muted); font-size: 10px; }
.atlas-place-list { display: grid; max-height: min(39vh, 370px, calc(100dvh - var(--hud-h, 62px) - 372px)); min-height: 54px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.atlas-place { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 6px; text-align: left; padding: 5px 3px; color: #29395b; background: transparent; border: 0; border-bottom: 1px solid #dbe4f3; }
.atlas-place:hover { background: #eaf0fc; }
.atlas-place.featured { background: #edf3ff; border-radius: 8px; }
.atlas-place-icon { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: #eed1ba; color: #724c42; font-size: 11px; font-weight: 900; }
.atlas-place[data-category="nature"] .atlas-place-icon { background: #d9e4be; color: #47663f; }
.atlas-place[data-category="transit"] .atlas-place-icon { background: #d8e5e7; color: #395c6c; }
.atlas-place[data-category="city"] .atlas-place-icon { background: #e7d8e8; color: #684c70; }
.atlas-place-copy b, .atlas-place-copy small { display: block; }
.atlas-place-copy b { font-size: 12px; }
.atlas-place-copy small { font-size: 9px; color: var(--atlas-muted); margin-top: 2px; }
.atlas-place-status { font-size: 9px; font-weight: 700; color: #55668c; white-space: nowrap; }
.atlas-empty { margin: 10px 3px; font-size: 12px; }

.atlas-tools { position: absolute; z-index: 4; right: 20px; bottom: calc(var(--above-dock, 94px) + 9px); display: grid; grid-template-columns: repeat(2, 1fr); gap: 3px; }
.atlas-tools button, .atlas-lines button { min-height: 31px; padding: 4px 7px; color: #374668; background: #fffdf8; border: 1px solid #bbc9e4; border-radius: 9px; font-size: 11px; font-weight: 850; box-shadow: 0 2px 2px #43598338; }
.atlas-tools .atlas-home-action { grid-column: span 2; background: #def1e3; color: #214c3b; }
.atlas-tools .atlas-transit { grid-column: 1 / -1; }
.atlas-tools button[aria-pressed="true"], .atlas-lines button[aria-pressed="true"] { color: #fff9f4; background: #504988; border-color: #504988; }
.atlas-lines { position: absolute; z-index: 3; left: 50%; transform: translateX(-50%); bottom: calc(var(--above-dock, 94px) + 18px); display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; align-items: center; width: max-content; max-width: calc(100% - 205px); }
.atlas-lines i { display: inline-block; width: 8px; height: 4px; border-radius: 3px; vertical-align: 2px; margin-right: 3px; background: var(--line); }
.atlas-gesture { position: absolute; left: 22px; bottom: calc(var(--above-dock, 94px) + 6px); margin: 0; color: #35456c; background: #fffdf0dc; padding: 6px 9px; border-radius: 6px; font-size: 10px; font-weight: 800; }
.atlas-map .szcard { z-index: 6; width: 248px; top: calc(var(--hud-h, 62px) + 20px); background: #fff4e5; color: #3e303f; border-color: var(--atlas-edge); border-radius: 12px; }
.atlas-map .szc-art { background: linear-gradient(145deg,#f4d2ad,#dec4d6); height: 97px; }
.atlas-map .szc-head b, .atlas-map .szc-body p { color: #3e303f; }
.atlas-map .szc-x, .atlas-map .szc-meta span, .atlas-map .szc-lock { color: #654d59; background: #efdcc8; }
.atlas-map .szc-go { background: #cc7655; color: #231d25; box-shadow: none; }
.atlas-card-actions { display: grid; grid-template-columns: 68px minmax(0, 1fr); gap: 6px; margin-top: 10px; }
.atlas-card-actions button { margin: 0; }
.atlas-card-actions button:first-child { background: #f0ddc9; color: #533f4b; border-radius: 9px; border: 1px solid #b79882; font-size: 12px; font-weight: 800; }
.atlas-card-actions button[aria-pressed="true"] { background: #59475d; color: #fff0db; }

@media (max-width: 720px) {
  .atlas-heading { left: 11px; top: calc(var(--hud-h, 62px) + 12px); max-width: calc(100% - 22px); }
  .atlas-kicker { font-size: 9px; }
  .atlas-title h2 { font-size: 26px; }
  .atlas-heading p { margin: 2px 0 6px; font-size: 10px; }
  .atlas-portal { min-height: 24px; gap: 3px; padding: 3px 4px; }
  .atlas-portal b { font-size: 11px; }
  .atlas-portal small { width: 14px; height: 14px; font-size: 7px; border-radius: 4px; }
  .atlas-portal small svg { width: 11px; height: 11px; }
  .atlas-title-sticker { width: 24px; height: 24px; border-radius: 8px 8px 8px 3px; }
  .atlas-title-sticker svg { width: 14px; height: 14px; }
  .atlas-portal em, .atlas-portal i { display: none; }
  .atlas-places { left: 10px; right: 94px; bottom: calc(var(--above-dock, 94px) + 4px); top: auto; width: auto; max-width: 305px; }
  .atlas-places summary { padding: 6px 8px; }
  .atlas-place-list { max-height: min(29vh, 265px); }
  .atlas-search input { font-size: 16px; }
  .atlas-tools { right: 10px; bottom: calc(var(--above-dock, 94px) + 5px); }
  .atlas-tools button { min-height: 28px; }
  .atlas-lines { bottom: calc(var(--above-dock, 94px) + 4px); right: 91px; left: 10px; width: auto; max-width: none; justify-content: flex-start; transform: none; }
  .atlas-lines button { min-height: 27px; }
  .atlas-gesture { display: none; }
  body[data-place="city"] .atlas-map .szcard { left: 10px; right: 10px; width: auto; top: auto; bottom: var(--above-dock); }
  .atlas-map .szc-art { display: none; }
  .atlas-map .szc-body { padding-top: 12px; }
  .atlas-map:has(.szcard) .atlas-tools { bottom: calc(var(--above-dock, 94px) + 187px); }
}
.atlas-station { min-height: 24px; padding: 3px 5px; border-radius: 5px; }
.atlas-station b { font-size: 11px; }
.atlas-station small { width: 14px; height: 14px; color: #281f32; }
.atlas-night .atlas-heading { color: #fff6ee; text-shadow: 0 2px 8px #263c64; }
.atlas-night .atlas-kicker { color: #f9e0de; }
.atlas-leaders { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; fill: none; stroke-width: 2; stroke-linecap: round; }
.atlas-tools .atlas-north { grid-column: 1 / -1; }
.atlas-north i { display: inline-block; font-style: normal; color: #9b523f; }
.atlas-source { position: absolute; right: 20px; top: calc(var(--hud-h, 62px) + 12px); pointer-events: auto; border-radius: 5px; padding: 4px 7px; background: #fffdf3e8; color: #39476a; font-size: 10px; }
@media (max-width: 720px) {
  .atlas-source { top: calc(var(--hud-h, 62px) + 38px); right: 11px; font-size: 8px; }
}

/* 出行车票和途中行程卡 */
#ui .ridecard {
  --paper: #fff9ed;
  --ink: #203c3a;
  top: max(84px, var(--hud-h, 84px));
  right: 18px;
  bottom: auto;
  width: min(380px, calc(100% - 36px));
  max-height: calc(100dvh - max(84px, var(--hud-h, 84px)) - 18px);
  z-index: 760;
  display: flex;
  gap: 0;
  overflow: hidden;
  padding: 0;
  border-radius: 22px;
  border: 1px solid #e9d8b9;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 14px 40px #14283b45;
}
#ui .ridecard .sheet-head {
  justify-content: space-between;
  flex: none;
  padding: 12px 14px 10px;
}
#ui .ridecard .sheet-head small { display: block; color: #5c7669; font-size: 10px; font-weight: 800; letter-spacing: .14em; }
#ui .ridecard .sheet-head b { display: block; color: var(--ink); font-size: 20px; }
#ui .ridecard .sheet-head button {
  display: grid; place-items: center; width: 38px; height: 38px; padding: 0;
  color: var(--ink); background: #eee6d6; font-size: 23px;
}
.ride-ticket {
  flex: none; display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: center;
  margin: 0 12px; padding: 8px 12px; border-radius: 12px;
  color: #f8f5e9; background: #24594f;
}
.ride-ticket div:last-child { text-align: right; }
.ride-ticket span { display: block; font-size: 10px; color: #c2e0d2; }
.ride-ticket b { display: block; font-size: 14px; overflow-wrap: anywhere; }
.ride-ticket i { font-style: normal; color: #f6d98c; }
.ride-sheet-scroll { min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 0 12px 8px; }
.ride-facts { display: flex; justify-content: space-between; align-items: center; gap: 6px; color: #546961; font-size: 11px; margin: 8px 1px 6px; }
.ridecard [data-kind], .ride-journey { --ride-accent: #26715f; --ride-tint: #dcece1; }
.ridecard [data-kind="metro"], .ride-journey[data-kind="metro"] { --ride-accent: #168077; --ride-tint: #d2ede7; }
.ridecard [data-kind="bus"], .ride-journey[data-kind="bus"] { --ride-accent: #287d84; --ride-tint: #d8ebec; }
.ridecard [data-kind="taxi"], .ride-journey[data-kind="taxi"] { --ride-accent: #98591a; --ride-tint: #f8e5b8; }
.ridecard [data-kind="bike"], .ride-journey[data-kind="bike"] { --ride-accent: #326bb5; --ride-tint: #dce8fa; }
.ridecard [data-kind="bikeYellow"], .ride-journey[data-kind="bikeYellow"] { --ride-accent: #886521; --ride-tint: #f8eab5; }
.ridecard [data-kind="bike2"], .ride-journey[data-kind="bike2"] { --ride-accent: #775688; --ride-tint: #eee2f2; }
.ridecard [data-kind="ebike"], .ride-journey[data-kind="ebike"] { --ride-accent: #745795; --ride-tint: #eadff3; }
.ridecard .ride {
  width: 100%; min-height: 43px; padding: 4px 8px; margin: 0 0 3px; gap: 8px;
  border-radius: 11px; border: 1px solid #ecdfcb; background: #fffdf7; color: var(--ink);
}
.ridecard .ride > i { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 8px; background: var(--ride-tint, #eee6d6); font-size: 16px; }
.ridecard .ride .rmain { gap: 0; }
.ridecard .ride .rmain b { font-size: 13px; }
.ridecard .ride .rmain small, .ridecard .ride .rnum u { color: #546961; font-size: 11px; }
.ridecard .ride .rnum em { font-size: 13px; line-height: 1.1; }
.ridecard .ride:hover:not(:disabled), .ridecard .ride-picked {
  border-color: var(--ride-accent); background: var(--ride-tint);
}
.ridecard .ride:disabled { opacity: .63; }
.ridecard .ride.off { opacity: 1; background: #f1e9db; }
.ride-details { color: #546961; font-size: 11px; margin-top: 3px; }
.ride-details summary { cursor: pointer; padding: 6px 0; }
.ride-details p { margin: 2px 0 5px; line-height: 1.5; }
.ride-empty { font-size: 13px; }
.ride-confirm { flex: none; padding: 8px 12px 10px; border-top: 1px dashed #d8ccb5; }
.ride-confirm p { margin: 0 0 5px; color: #4f625a; font-size: 11px; }
.ride-confirm button {
  display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%;
  min-height: 41px; padding: 8px 12px; border-radius: 10px; color: white; background: var(--ride-accent);
}
.ride-confirm button span { font-size: 11px; white-space: nowrap; }

#ui .tripbar.ride-journey {
  left: 14px; right: auto; bottom: calc(14px + var(--safe-b, 0px));
  width: min(348px, calc(100% - 28px)); z-index: 715;
  border-radius: 15px; padding: 9px 11px 8px;
  border: 1px solid #d9ccb6; background: #fff8e9; color: #223c3a;
  box-shadow: 0 8px 24px #1928323b;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.ride-journey .trip-top { gap: 8px; }
.ride-journey .trip-ico { width: 34px; height: 34px; border-radius: 9px; background: var(--ride-tint); border: 0; box-shadow: none; animation: none; font-size: 18px; }
.ride-journey .trip-route b { color: #223c3a; font-size: 13px; }
.ride-journey .trip-route small { margin: 0; color: #596a60; }
.ride-journey .trip-route b em { color: var(--ride-accent); }
.ride-journey .ride-view { flex: none; min-height: 36px; border-radius: 9px; padding: 4px 8px; color: #213e3a; background: var(--ride-tint); font-size: 11px; font-weight: 800; }
.ride-journey .trip-bar { height: 4px; margin-top: 7px; background: #e5ddce; box-shadow: none; }
.ride-journey .trip-bar i { background: var(--ride-accent); box-shadow: none; }
.ride-journey .trip-bar::after { content: none; }
.ride-journey .trip-meta { margin-top: 4px; color: #586c61; }
.ride-journey .trip-beat { padding: 4px 0 0; margin-top: 5px; background: none; border-top: 1px solid #e8decd; border-radius: 0; }
.ride-journey .trip-beat p { flex-basis: 100%; color: #223c3a; font-size: 11px; }
.ride-journey .trip-beat button { min-height: 32px; background: var(--ride-tint); color: #223c3a; font-size: 11px; }
body[data-place="ride"] #view { cursor: grab; }
body[data-place="ride"] #view:active { cursor: grabbing; }
@media (max-width: 640px) {
  #ui .ridecard {
    top: auto; left: 8px; right: 8px; bottom: var(--above-dock, 80px);
    width: auto; max-height: min(73dvh, calc(100dvh - var(--above-dock, 80px) - 68px));
  }
  #ui .tripbar.ride-journey { left: 8px; width: min(340px, calc(100% - 16px)); bottom: calc(8px + var(--safe-b, 0px)); }
  .ride-journey .trip-beat button { min-height: 39px; }
}

/* 屋里的操作台和家具提示 */
#ui .home-console {
  position: absolute; right: 16px; bottom: max(16px, var(--safe-b, 0px)); z-index: 710;
  width: min(380px, calc(100% - 32px)); padding: 10px;
  background: #fff8e9; color: #253c3b; border: 1px solid #e1c9aa;
  border-radius: 18px; box-shadow: 0 8px 22px #232b3542;
}
.home-console > p {
  margin: 0 2px 7px; display: flex; justify-content: space-between; gap: 6px;
  align-items: baseline; font-size: 12px; font-weight: 850;
}
.home-console > p small { color: #5d6a60; font-size: 11px; font-weight: 600; }
.home-buttons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
.home-buttons button {
  --key-bg: #ddece4; --key-ink: #254a43;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  gap: 2px; padding: 7px 8px; min-height: 60px;
  border: 1px solid transparent; border-radius: 10px; color: var(--key-ink); background: var(--key-bg);
  text-align: left; line-height: 1.18;
}
.home-buttons .home-fit { --key-bg: #eee3f6; --key-ink: #544275; }
.home-buttons .home-care { --key-bg: #f6e4cc; --key-ink: #684b2c; }
.home-buttons .home-leave { --key-bg: #f1e9db; --key-ink: #49594e; }
.home-buttons button:hover, .home-buttons button:focus-visible { border-color: var(--key-ink); }
.home-buttons button:disabled { opacity: .55; cursor: wait; }
.home-buttons button i { font-style: normal; height: 18px; line-height: 18px; font-size: 19px; font-weight: 800; }
.home-buttons button svg { width: 17px; height: 17px; }
.home-buttons b, .home-buttons small { display: block; white-space: nowrap; }
.home-buttons b { font-size: 14px; }
.home-buttons small { margin-top: 2px; font-size: 10px; }

.home-pins { position: absolute; inset: 0; pointer-events: none; z-index: 38; }
.home-pins button {
  position: absolute; translate: -50% -100%; pointer-events: auto;
  display: inline-flex; align-items: center; gap: 4px; min-height: 30px; padding: 3px 7px 3px 4px;
  border-radius: 8px; white-space: nowrap; background: #fff8ec; border: 1px solid #dbc1a4;
  color: #344d43; font-size: 11px; font-weight: 850; box-shadow: 0 3px 8px #262f3940;
}
.home-pins button[hidden] { display: none; }
.home-pins button:hover, .home-pins button:focus-visible { background: #e2f3e8; border-color: #43766a; }
.home-pins button::after {
  content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  border: 4px solid transparent; border-top-color: #dbc1a4;
}
.home-pins i { font-style: normal; min-width: 18px; text-align: center; color: #216255; }
.home-pins [data-v="trash"] i, .home-pins [data-v="trashsort"] i { color: #97542c; }

#ui .social-home {
  width: auto; height: auto; min-height: 38px; gap: 6px; padding: 4px 10px 4px 7px; border-radius: 12px;
  background: #fff4dd; color: #38463d; border: 1px solid #e2c693;
  box-shadow: 0 3px 10px #1727343b; text-align: left;
}
.social-home-label { display: flex; flex-direction: column; gap: 2px; }
.social-home-label b { font-size: 12px; line-height: 1.12; white-space: nowrap; }
.social-home-label small { font-size: 10px; color: #6d634f; white-space: nowrap; }
#ui .social-home.ring { background: #ffebbd; border-color: #cb8a46; }

.home-pop { position: absolute; inset: 0; z-index: 785; }
.home-pop-shade { position: absolute; inset: 0; width: 100%; height: 100%; background: #16252b42; }
.home-sheet {
  position: absolute; right: 16px; bottom: calc(18px + var(--safe-b, 0px));
  width: min(380px, calc(100% - 32px)); max-height: calc(100dvh - 38px);
  overflow: auto; overscroll-behavior: contain; padding: 13px;
  border: 1px solid #e3ccab; border-radius: 19px; background: #fff8e9; color: #283e3b;
  box-shadow: 0 16px 40px #102b3666;
}
.home-sheet header { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.home-sheet header small { color: #527062; font-size: 11px; font-weight: 800; }
.home-sheet h2 { margin: 3px 0 0; font-size: 21px; }
.home-sheet-close { width: 40px; height: 40px; border-radius: 50%; background: #efe5d2; color: #384b43; font-size: 22px; }
.home-sheet p { margin: 9px 0 11px; color: #586558; font-size: 12px; line-height: 1.45; }
.home-task-list { display: grid; gap: 5px; }
.home-task {
  min-height: 45px; display: flex; align-items: center; gap: 8px; padding: 5px 8px;
  text-align: left; border: 1px solid #eadcc9; border-radius: 10px; background: #fffdf7; color: #273e39;
}
.home-task:hover, .home-task:focus-visible { border-color: #538174; }
.home-task.suggest { background: #edf5e8; border-color: #cddfca; }
.home-task i {
  font-style: normal; display: grid; place-items: center; width: 31px; height: 31px;
  background: #e7eee4; color: #446758; border-radius: 7px; font-size: 14px; font-weight: 850;
}
.home-task b, .home-task small { display: block; }
.home-task b { font-size: 13px; }
.home-task small { margin-top: 2px; font-size: 11px; color: #59685e; }
.home-task em { margin-left: auto; padding-left: 4px; font-size: 16px; font-style: normal; color: #617c6f; }
.home-exit {
  display: flex; justify-content: space-between; align-items: center; gap: 6px; width: 100%;
  min-height: 45px; margin-top: 10px; padding: 7px 10px; border-radius: 10px;
  background: #2b5a4d; color: #fffaf0; font-weight: 850;
}
.home-exit span { color: #d0e8da; font-size: 11px; }
.home-sorting { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.home-sorting button {
  display: grid; grid-template-columns: 30px 1fr; align-items: center; gap: 2px 6px;
  min-height: 53px; padding: 6px; background: #fffdf7; color: #35453b;
  border: 1px solid #eadcc9; border-radius: 9px; text-align: left;
}
.home-sorting button:hover, .home-sorting button:focus-visible { border-color: var(--bin-color); }
.home-sorting i { grid-row: span 2; border-radius: 5px; padding: 3px; background: var(--bin-color); color: white; text-align: center; font-style: normal; }
.home-sorting b { font-size: 12px; }
.home-sorting small { color: #606e63; font-size: 11px; }
.home-sheet .home-sort-hint { border-radius: 8px; margin: 9px 0 0; padding: 7px; background: #fae6cc; color: #66472d; }
.home-sort { min-height: 42px; padding: 7px 10px; border-radius: 12px; background: #fff8e9; color: #344d43; font-size: 12px; }
.home-sort b { display: block; color: #246958; }

body[data-place="room"] .viewtoggle { left: auto; top: 120px; right: 16px; }
@media (max-width: 1360px) {
  #ui .home-console { bottom: calc(var(--above-dock, 84px) + 4px); }
}
@media (max-width: 740px) {
  #ui .home-console { left: 8px; right: 8px; width: auto; bottom: calc(var(--above-dock, 84px) + 1px); padding: 7px; border-radius: 14px; }
  .home-console > p { margin-bottom: 5px; }
  .home-buttons button { min-height: 49px; flex-direction: row; align-items: center; justify-content: center; padding: 5px 3px; gap: 3px; }
  .home-buttons button i { font-size: 15px; }
  .home-buttons button svg { width: 14px; height: 14px; }
  .home-buttons b { font-size: 13px; }
  body[data-place="room"] .homeacts { bottom: calc(var(--above-dock, 84px) + 121px); gap: 4px; }
  body[data-place="room"] .todaybar { bottom: calc(var(--above-dock, 84px) + 81px); max-width: calc(100% - 20px); }
  body[data-place="room"] .viewtoggle { top: calc(var(--hud-h, 140px) + 19px); right: 10px; }
  body[data-place="room"] .coach { right: 68px; }
  .home-pins button { min-height: 36px; }
  .home-sheet { right: 8px; bottom: calc(8px + var(--safe-b, 0px)); width: calc(100% - 16px); }
}
.home-rest { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-top: 9px; }
.home-rest button { min-height: 41px; padding: 3px; border: 1px solid #eadcc9; border-radius: 8px; background: #f4ecdc; color: #41524a; font-size: 12px; }
.home-rest button:hover, .home-rest button:focus-visible { border-color: #538174; }
@media (max-width: 740px) {
  body[data-place="room"] .todaybar { bottom: calc(var(--above-dock, 84px) + 93px); }
  body[data-place="room"] .homeacts { bottom: calc(var(--above-dock, 84px) + 145px); }
}

/* Street activities and the optional life drawer */
.studio-start {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
  gap: 7px 12px; padding: 10px 11px; border: 1px solid #a9ccaa; border-radius: 12px;
  background: #e8f0d9; color: #284a38;
}
.studio-start small, .studio-start strong { display: block; }
.studio-start small { font-size: 11px; font-weight: 700; color: #526d4c; }
.studio-start button {
  min-height: 40px; padding: 6px 10px; border-radius: 8px;
  background: #38644c; color: #fff9df; font-weight: 800;
}
.studio-start button span { margin-left: 3px; }

#ui .where:hover { transform: none; }
#ui .life-open { gap: 7px; padding: 7px 11px; min-height: 43px; font-size: 15px; }
.life-open small { color: #ffedc2; font-size: 11px; position: relative; }
.life-open .life-dot { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: #ffd66b; top: -2px; right: -4px; }
#ui .hud-right .helpbtn { position: static; width: 37px; height: 37px; min-width: 37px; margin: 0; }
#ui .life-panel {
  border: 1px solid #dbd9bd; border-radius: 17px;
  background: #fff9e8; color: #2c4336; padding: 15px;
}
.life-panel > header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.life-panel > header h3 { margin: 0; }
.life-panel > header button {
  width: 38px; height: 38px; border-radius: 9px; background: #e9ead8; color: #345347; font-size: 21px;
}
.life-balance { display: grid; gap: 1px; padding: 10px 13px; border-radius: 11px; background: #e5edda; }
.life-balance small, .life-balance span { color: #4f664f; font-size: 12px; }
.life-balance strong { font-size: 26px; line-height: 1.2; }
.life-options { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin: 11px 0; }
.life-options button, .life-message {
  display: flex; align-items: center; gap: 8px; min-height: 45px; padding: 7px;
  border: 1px solid #e4dfc9; border-radius: 9px; color: #345347; background: #fffcf1; font-weight: 750;
}
.life-options button i {
  display: grid; place-items: center; width: 27px; height: 27px;
  border-radius: 6px; background: #e8edda; font-style: normal; font-size: 15px;
}
.life-message { justify-content: space-between; width: 100%; margin-top: 7px; background: #fcf1d8; }
.life-message span { font-size: 11px; }
.life-ad, .life-panel .needrow button { min-height: 38px; padding: 5px 9px; border-radius: 7px; color: #365545; background: #e9edda; font-size: 12px; font-weight: 750; }
.life-panel .needrow { grid-template-columns: 74px 1fr 28px 75px; }
.life-details { margin: 10px 0; font-size: 13px; }
.life-details summary { min-height: 36px; padding: 8px 0; cursor: pointer; }
.life-panel button:hover { filter: brightness(.95); }
.ride-actions { display: flex; flex: none; gap: 4px; }
.ride-journey .ride-skip { color: #132d2b; background: #f4d28a; }

@media (max-width: 740px) {
  body[data-place="room"] #ui .homeacts { bottom: calc(var(--above-dock, 84px) + 153px); }
  #ui .hud-right { gap: 4px; }
  #ui .life-open { padding: 5px 8px; min-height: 36px; font-size: 13px; gap: 4px; }
  #ui .hud-right .helpbtn { width: 30px; min-width: 30px; height: 34px; }
  #ui .hud-right .social-home { width: 35px; min-width: 35px; padding: 4px; }
  #ui .social-home-label { display: none; }
}
@media (max-width: 360px) {
  #ui .where { padding-inline: 7px; }
  .ride-actions { flex-direction: column; }
  .ride-actions button { min-height: 31px; }
}
.phone-table.home-ping { background: #e3eedb; color: #294b37; }

/* Compact status row below the clock, shared by the room, city and rides. */
#ui .hud-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; row-gap: 5px; }
#ui .hud-right { justify-self: end; }
#ui .condition-hud {
  grid-column: 1 / -1; justify-self: start; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center; gap: 2px; width: min(100%, 334px); min-height: 45px;
  padding: 4px; border-radius: 12px; color: #fcf5e6; background: #1d2b39ed;
  border: 1px solid #ffffff28; box-shadow: 0 3px 10px #15253838;
}
#ui .condition-hud:disabled { cursor: default; }
.condition-meter {
  position: relative; min-width: 0; display: grid; grid-template-columns: 14px auto 1fr;
  align-items: center; gap: 3px; padding: 3px 4px; border-radius: 6px;
}
.condition-meter i { font-style: normal; font-size: 12px; text-align: center; }
.condition-meter b { font-size: 11px; font-weight: 700; white-space: nowrap; }
.condition-meter strong { justify-self: end; font-size: 11px; color: #f8f4e4; font-variant-numeric: tabular-nums; }
.condition-meter > span {
  grid-column: 1 / -1; width: 100%; height: 3px; margin-top: 2px; border-radius: 6px;
  background: linear-gradient(90deg, var(--tone) var(--level), #fff2 var(--level));
}
.condition-meter.urgent { background: #8f422953; }
.condition-meter.urgent strong { color: #ffd1a3; }
.home-console .room-help-touch { display: none; }
@media (pointer: coarse) {
  .home-console .room-help-keys { display: none; }
  .home-console .room-help-touch { display: inline; }
}
body[data-place="room"] #ui .activity-entry { right: 16px; bottom: calc(var(--above-dock, 84px) + 109px); }
body[data-place="street"] #ui .activity-entry { left: 12px; right: auto; }

#ui .training {
  position: absolute; left: 14px; bottom: calc(var(--above-dock, 84px) + 112px); z-index: 731;
  width: min(280px, calc(100% - 28px)); padding: 10px; color: #2d4335; background: #f9f3df;
  border: 1px solid #c1c5a5; border-radius: 13px; box-shadow: 0 7px 20px #1d332e44;
}
.training header, .training footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.training header b, .training header small { display: block; }
.training small, .training-score { font-size: 12px; }
.training-track { position: relative; height: 14px; margin: 9px 0; border-radius: 8px; background: #dfdfd0; }
.training-track i {
  position: absolute; top: 0; height: 100%; width: 10%; transform: translateX(-50%);
  border-radius: 7px; background: #82b685;
}
.training-track > span {
  position: absolute; height: 18px; width: 4px; top: -2px; left: var(--progress, 0%);
  border-radius: 3px; background: #263e39;
}
.training button { min-height: 38px; padding: 5px 9px; border-radius: 8px; background: #e9e9d5; color: #2d4335; font-weight: 800; }
.training footer button { min-height: 44px; background: #345745; color: #fff8e5; }
.training.on-beat footer button { background: #226b45; box-shadow: 0 0 0 3px #a4cd96; }
@media (max-width: 500px) {
  #ui .condition-hud { width: min(100%, 305px); }
  .condition-meter { padding-inline: 3px; }
  .training footer small { display: none; }
  body[data-place="room"] #ui .training { bottom: calc(var(--above-dock, 84px) + 150px); }
}

/* The neighborhood lead and dialogue stay beside the scene. */
body.street-story .mpscene { display: none; }
.street-errand {
  position: absolute; left: 12px; bottom: calc(var(--above-dock, 84px) + 11px);
  z-index: 690; width: max-content; max-width: min(320px, calc(100% - 120px));
  display: flex; align-items: center; gap: 8px; padding: 7px 9px;
  border-radius: 11px; background: #f8eed6; color: #383e35; border: 1px solid #dbc4a3;
  box-shadow: 0 4px 13px #172f2b36;
}
.street-errand i {
  font-style: normal; display: grid; place-items: center; flex: 0 0 29px; height: 29px;
  border-radius: 7px; color: #753e2c; background: #efd4af;
}
.street-errand b, .street-errand small { display: block; }
.street-errand button {
  flex: none; min-height: 38px; padding: 5px 7px; border-radius: 7px;
  color: #fff8e8; background: #385c4c; font-size: 12px; font-weight: 750;
}
.street-errand b { font-size: 13px; }
.street-errand small { margin-top: 2px; color: #655741; font-size: 11px; line-height: 1.4; }
#ui .errand-talk {
  position: absolute; z-index: 790; left: 12px; bottom: calc(var(--above-dock, 84px) + 9px);
  width: min(386px, calc(100% - 24px)); max-height: calc(100dvh - var(--above-dock, 84px) - 26px);
  overflow: auto; overscroll-behavior: contain; padding: 12px;
  background: #fff7e7; border: 1px solid #dcc2a4; border-radius: 14px;
  color: #392f29; box-shadow: 0 8px 24px #1d292e60;
}
.errand-talk header { display: grid; grid-template-columns: 1fr auto; gap: 1px 6px; align-items: center; }
.errand-talk header small { color: #855b43; font-size: 11px; }
.errand-talk header b { grid-column: 1; font-size: 18px; }
.errand-talk header button {
  grid-column: 2; grid-row: 1 / span 2; min-width: 36px; min-height: 36px;
  color: #694f3d; background: #eee3ce; border-radius: 8px; font-size: 18px;
}
.errand-talk p { margin: 7px 0 10px; font-size: 13px; line-height: 1.55; }
.errand-talk footer { display: flex; flex-wrap: wrap; gap: 6px; }
.errand-talk footer button {
  min-height: 40px; padding: 6px 10px; border-radius: 8px; font-weight: 750;
  color: #fff8e8; background: #385c4c;
}
.errand-talk footer button + button { color: #5b4939; background: #eee3ce; }
body[data-place="street"] #ui .activity-entry { bottom: calc(var(--above-dock, 84px) + 78px); }

/* 后海球场。球和落点画在场景里，界面只保留比分与操作。 */
#badminton[hidden] { display: none; }
#badminton {
  position: fixed; inset: 0; z-index: 1090; pointer-events: none;
  color: #fff8e5;
}
.badminton-playing #ui .dock,
.badminton-playing #ui .banner,
.badminton-playing #fx,
.badminton-playing #ui .coach,
.badminton-playing #ui .scenecard,
.badminton-playing #ui .hud-right,
.badminton-playing .mpscene,
.badminton-playing .mpbar { visibility: hidden; }
.badminton-playing #ui .condition-hud { pointer-events: none; }
.court-hud, .court-controls {
  position: absolute; border: 1px solid #e9efcc46; background: #1c3a36eb;
  border-radius: 15px; box-shadow: 0 6px 20px #13242250;
}
.court-hud {
  top: calc(var(--hud-h, 100px) + 12px + var(--safe-t, 0px)); left: 12px;
  width: min(228px, calc(100% - 24px)); padding: 9px 11px;
}
.court-hud header { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.court-hud header small, .court-hud header b { display: block; }
.court-hud header small { color: #c4d8b0; font-size: 10px; font-weight: 800; }
.court-hud header b { font-size: 15px; }
.court-hud button, .court-controls button {
  min-height: 40px; padding: 6px 9px; pointer-events: auto; touch-action: manipulation;
  border: 0; border-radius: 9px; color: #1c3a36; background: #e8ead7; font-weight: 800;
}
.court-score { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin-top: 7px; }
.court-score > span { display: grid; gap: 1px; min-width: 0; text-align: center; }
.court-score small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; color: #dbe6cc; }
.court-score strong { font-size: 23px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.court-score i { font-style: normal; color: #d7be8c; }
.court-hud p { margin: 6px 0 0; text-align: center; color: #d4e0c8; font-size: 11px; }
.court-controls {
  left: 50%; bottom: max(12px, calc(var(--safe-b, 0px) + 7px)); transform: translateX(-50%);
  padding: 8px; width: min(348px, calc(100% - 20px));
}
.court-call { min-height: 23px; margin: 0 0 5px; text-align: center; font-size: 13px; font-weight: 780; }
.court-keys { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 6px; }
.court-keys button { min-height: 49px; }
.court-keys small { margin: 0 3px; font-size: 10px; }
.court-keys [data-court="swing"] { background: #fcdd93; }
#badminton[data-ready="true"] .court-keys [data-court="swing"] { background: #b8ef95; box-shadow: inset 0 0 0 2px #4f8b62; }
#badminton[data-ready="true"] .court-call { color: #d1f3ae; }
#badminton[data-done="true"] .court-keys { display: none; }
.court-controls .court-again { width: 100%; background: #fcdd93; }
.court-controls .court-again[hidden] { display: none; }
@media (max-width: 740px) {
  .court-hud {
    width: 146px; padding: 7px 8px; top: calc(var(--hud-h, 100px) + 9px + var(--safe-t, 0px));
  }
  .court-hud header b { font-size: 13px; }
  .court-hud header button { min-height: 34px; font-size: 11px; }
  .court-hud p { font-size: 10px; }
  .court-keys [data-court="swing"] small { display: none; }
}

#ui .court-launch {
  position: absolute; left: 12px; bottom: calc(var(--above-dock, 84px) + 10px); z-index: 723;
  min-height: 43px; padding: 6px 11px; border-radius: 10px; font-weight: 800;
  color: #315342; background: #f6f4df; border: 1px solid #bfd0aa;
}
#ui .court-launch[hidden] { display: none; }

#ui .meeting-entry { max-height: calc(100dvh - var(--above-dock, 84px) - 28px); }
.meeting-entry header b, .meeting-entry header small { display: block; }
.meeting-signs { margin: 8px 0; padding: 9px; border-radius: 10px; background: #f2e9d4; }
.meeting-signs > b { color: #425c48; font-size: 13px; }
.meeting-signs > small { display: block; margin-top: 6px; color: #635545; font-size: 11px; line-height: 1.45; }
.meeting-options { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 5px; }
.meeting-signs button {
  min-height: 37px; border-radius: 8px; padding: 5px 8px; color: #365844; background: #fff9e9; font-weight: 750;
}
.meeting-options button[aria-pressed="true"] { color: #fff8e6; background: #466a52; }
.meeting-list { display: grid; gap: 3px; margin-top: 6px; max-height: min(116px, 23vh); overflow: auto; }
.meeting-list button { display: flex; align-items: center; justify-content: space-between; gap: 6px; text-align: left; }
.meeting-list button span { color: #5b7056; font-size: 11px; }

#scene-photo[hidden] { display: none; }
#scene-photo { position: fixed; inset: 0; z-index: 1102; pointer-events: none; }
.scene-photo-panel {
  pointer-events: auto; position: absolute; bottom: max(12px, calc(var(--safe-b, 0px) + 8px)); left: 50%; transform: translateX(-50%);
  width: min(375px, calc(100% - 20px)); max-height: calc(100dvh - 24px); overflow: auto;
  padding: 10px; border-radius: 14px; background: #233d3aee; border: 1px solid #e5eed44a;
  color: #fff7e6; box-shadow: 0 5px 20px #142b2b55;
}
.scene-photo-panel header { display: flex; align-items: center; justify-content: space-between; }
.scene-photo-panel header small, .scene-photo-panel header b { display: block; }
.scene-photo-panel header small { color: #cde0c7; font-size: 11px; }
.scene-photo-panel header b { font-size: 16px; }
.scene-photo-panel p { margin: 7px 0; font-size: 13px; }
.scene-photo-panel button { min-height: 38px; border-radius: 8px; padding: 5px 8px; color: #314d43; background: #e8ebd7; font-weight: 760; }
.scene-photo-panel button[aria-pressed="true"] { background: #b9d5ac; box-shadow: inset 0 0 0 2px #5a8e68; }
.scene-photo-panel button:disabled { opacity: .52; }
.photo-poses { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.scene-photo-panel footer { display: flex; gap: 4px; margin-top: 6px; }
.scene-photo-panel .photo-shutter { margin-left: auto; color: #4d3421; background: #f5d694; }
.scene-photo-panel img { display: block; max-width: 100%; max-height: min(55vh, 420px); margin: 8px auto 0; border: 3px solid #fff3d4; border-radius: 6px; }
.scene-photo-active #ui .dock, .scene-photo-active #ui .hud-right,
.scene-photo-active #ui .banner, .scene-photo-active #ui .scenecard,
.scene-photo-active #ui .coach, .scene-photo-active #ui .activity-entry,
.scene-photo-active .baydock, .scene-photo-active .mpbar, .scene-photo-active .mpscene { visibility: hidden; }
.bay-album { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.bay-album a { display: grid; gap: 4px; padding: 5px; border: 1px solid #d8ccb3; border-radius: 7px; font-size: 11px; color: inherit; }
.bay-album img { width: 100%; height: 78px; object-fit: cover; border-radius: 4px; }

.photo-frame-guide {
  position: absolute; inset: 12% 12% 25%; opacity: .8;
  background:
    linear-gradient(#fff6d7 0 0) left top / 22px 2px,
    linear-gradient(#fff6d7 0 0) left top / 2px 22px,
    linear-gradient(#fff6d7 0 0) right top / 22px 2px,
    linear-gradient(#fff6d7 0 0) right top / 2px 22px,
    linear-gradient(#fff6d7 0 0) left bottom / 22px 2px,
    linear-gradient(#fff6d7 0 0) left bottom / 2px 22px,
    linear-gradient(#fff6d7 0 0) right bottom / 22px 2px,
    linear-gradient(#fff6d7 0 0) right bottom / 2px 22px;
  background-repeat: no-repeat;
}

.atlas-line-filter { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 6px 0; color: var(--atlas-muted); font-size: 11px; font-weight: 750; }
.atlas-line-filter[hidden] { display: none; }
.atlas-line-filter select { max-width: 70%; min-height: 32px; border: 1px solid var(--atlas-edge); border-radius: 8px; background: var(--atlas-paper); color: var(--atlas-ink); padding: 4px 6px; pointer-events: auto; }
.atlas-directory-more { width: 100%; min-height: 34px; margin-top: 4px; border-radius: 8px; background: #e6edf7; color: #304870; font-size: 12px; font-weight: 800; }
.metro-card-head { padding: 17px 70px 12px 16px; color: #fff7e5; background: var(--pc); }
.metro-card-head small { font-size: 11px; opacity: .91; }
.metro-card-head h2 { margin: 4px 0 0; line-height: 1.12; font-size: 24px; }
.metro-card-lines { display: grid; gap: 6px; }
.metro-card-lines div { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 9px; font-size: 12px; }
.metro-card-lines b { border-radius: 5px; padding: 4px 6px; background: var(--metro-color); color: #fff; }
.metro-card .szc-body > small { display: block; margin-top: 8px; font-size: 10px; }
.metro-card a { color: inherit; text-decoration: underline; }
.station-walk { position: absolute; left: 50%; bottom: calc(var(--above-dock, 86px) + 8px); transform: translateX(-50%);
  display: flex; align-items: center; justify-content: space-between; gap: 10px; width: min(460px, calc(100% - 20px));
  padding: 8px 10px; border: 1px solid #9eb8a9; border-radius: 13px; background: #f8f2df; color: #29493c;
  box-shadow: 0 5px 16px #112c3d55; }
.station-walk div { display: grid; gap: 2px; }
.station-walk small, .station-walk span { font-size: 10px; color: #4a6458; }
.station-walk b { font-size: 14px; }
.station-walk button { min-height: 35px; padding: 4px 10px; border-radius: 9px; background: #245344; color: white; font-size: 12px; font-weight: 800; white-space: nowrap; }
@media (max-width: 460px) { .station-walk span { display: none; } }

/* Atlas roaming is a primary action next to the map title. */
.atlas-heading .atlas-roam {
  display: grid; grid-template-columns: 32px 1fr auto; gap: 9px; align-items: center;
  margin-top: 9px; width: min(238px, 100%); min-height: 49px; padding: 6px 10px 6px 7px;
  border: 1px solid #e1ffdf; border-radius: 13px; background: #184d48; color: #f3fff3;
  text-align: left; text-shadow: none; box-shadow: 0 3px 0 #0d3f45a3, 0 6px 14px #16475732;
}
.atlas-heading .atlas-roam:hover, .atlas-heading .atlas-roam:focus-visible { background: #21635a; }
.atlas-heading .atlas-roam[aria-pressed="true"] { background: #4d4384; border-color: #eee2ff; }
.atlas-roam b, .atlas-roam small { display: block; line-height: 1.25; }
.atlas-roam b { font-size: 15px; }
.atlas-roam small { margin-top: 2px; font-size: 10px; color: #d8f2dd; }
.atlas-roam[aria-pressed="true"] small { color: #eee8ff; }
.atlas-roam-icon { display: grid; place-items: center; height: 32px; border-radius: 9px; background: #d8f5cf; color: #184d48; }
.atlas-roam-icon svg { width: 21px; height: 21px; }
.atlas-roam-arrow { font-size: 18px; }
@media (min-width: 721px) {
  .atlas-map:has(.atlas-roam) .atlas-places { top: calc(var(--hud-h, 62px) + 207px); }
  .atlas-map:has(.atlas-roam) .atlas-places:not([open]) { width: 148px; }
  .atlas-map:has(.atlas-roam) .atlas-place-list { max-height: min(39vh, 370px, calc(100dvh - var(--hud-h, 62px) - 428px)); }
}
@media (max-width: 760px) {
  .atlas-heading .atlas-roam { margin-top: 6px; min-height: 44px; }
}
.hub-card .szc-meta { flex-wrap: wrap; }
.hub-card .atlas-card-actions .szc-go { background: var(--pc); color: #fffdf2; border-color: transparent; }

.hub-walk {
  position: absolute; left: 18px; bottom: calc(var(--above-dock, 86px) + 10px); z-index: 8;
  box-sizing: border-box; width: min(386px, calc(100vw - 36px)); padding: 11px 12px;
  background: #fffdf5; color: #203a49; border: 1px solid #d1e1e6; border-top: 3px solid var(--hub-accent);
  border-radius: 15px; box-shadow: 0 5px 22px #1c314238;
}
.hub-walk header { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.hub-walk small { font-size: 10px; font-weight: 800; color: var(--hub-accent); }
.hub-walk h2 { margin: 0; font-size: 21px; line-height: 1.18; }
.hub-walk button { min-height: 33px; padding: 4px 8px; border: 1px solid #c8dce3; border-radius: 8px; background: #eef6f7; color: #244252; font-size: 11px; font-weight: 800; white-space: nowrap; }
.hub-walk button:hover, .hub-walk button:focus-visible { border-color: var(--hub-accent); }
.hub-walk header button, .hub-walk button[aria-pressed="true"] { background: var(--hub-accent); color: #fffdf2; border-color: transparent; }
.hub-walk-hint { display: flex; flex-wrap: wrap; gap: 3px 11px; margin: 6px 0; font-size: 10px; color: #4f6974; }
.hub-walk nav { display: flex; flex-wrap: wrap; gap: 5px; }
.hub-walk footer { display: flex; align-items: center; gap: 8px; justify-content: space-between; margin-top: 8px; padding-top: 7px; border-top: 1px solid #dce8e7; font-size: 11px; line-height: 1.4; }
@media (max-width: 520px) {
  .hub-walk { left: 9px; bottom: calc(var(--above-dock, 86px) + 4px); width: min(380px, calc(100vw - 18px)); padding: 8px 9px; }
  .hub-walk h2 { font-size: 18px; }
  .hub-walk button { min-height: 36px; padding-inline: 6px; }
  .hub-walk .hub-keys { display: none; }
}

.wutong-walk {
  position: absolute; z-index: 8; left: 18px; bottom: calc(var(--above-dock, 86px) + 10px);
  width: min(378px, calc(100vw - 36px)); box-sizing: border-box; padding: 10px 12px;
  background: #fbf5e4; color: #26443b; border: 1px solid #c7cfb2; border-top: 3px solid #537963;
  border-radius: 16px; box-shadow: 0 5px 22px #20382e48;
}
.wutong-walk header, .summit-song header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.wutong-walk h2, .summit-song h2 { margin: 0; line-height: 1.12; font-size: 23px; }
.wutong-walk small, .summit-song small { font-size: 10px; color: #567164; }
.wutong-walk button, .summit-song button {
  min-height: 34px; padding: 5px 8px; border: 1px solid #b6c9ad; border-radius: 9px;
  background: #e6eddb; color: #26443b; font: inherit; font-size: 12px; font-weight: 800;
}
.wutong-walk header button { background: #315b4d; color: #fff7dc; }
.wutong-walk nav { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 5px; }
.wutong-walk .wutong-launch { color: #392812; background: #f4cc72; border-color: #e0ae56; }
.wutong-progress { display: flex; align-items: center; gap: 8px; margin: 6px 0; font-size: 11px; }
.wutong-progress progress, .summit-song progress { width: 100%; height: 7px; accent-color: #548475; }
.wutong-progress b { min-width: 30px; text-align: right; }
.wutong-walk .wutong-hint { display: block; }
.summit-song {
  position: absolute; z-index: 90; inset: 0; display: grid; place-items: center; padding: 12px;
  background: #132e2ab5; color: #213d34;
}
.summit-song-sheet {
  width: min(510px, 100%); max-height: calc(100dvh - 24px); overflow: auto;
  padding: clamp(14px, 3vw, 27px); border: 1px solid #e6d8ad; border-radius: 22px; background: #fff7e5;
  box-sizing: border-box; box-shadow: 0 10px 48px #142b26a8;
}
.summit-song h2 { font-size: clamp(27px, 5vw, 36px); }
.summit-song header small { font-size: 11px; font-weight: 800; }
.summit-mode { font-size: 13px; margin: 14px 0 9px; }
.summit-tracks, .summit-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.summit-song button { min-height: 42px; padding-inline: 13px; }
.summit-song button[aria-pressed="true"], .summit-actions button:first-child { background: #315f51; border-color: #315f51; color: #fffbe8; }
.summit-note { color: #536c60; font-size: 12px; }
.summit-result { background: #ededd8; padding: 9px; border-radius: 8px; font-weight: 800; font-size: 13px; }
.summit-lyrics { display: grid; gap: 5px; align-content: center; min-height: 92px; padding: 8px; text-align: center; background: #e9efdd; border-radius: 13px; }
.summit-lyrics strong { order: -1; font-size: clamp(20px, 5vw, 30px); }
.summit-lyrics small { font-size: 12px; }
.summit-performance { display: flex; align-items: center; gap: 12px; min-height: 52px; }
.summit-performance meter { width: 100%; }
.summit-song .summit-tap { width: min(210px, 70%); background: #315f51; color: #fffbe8; touch-action: manipulation; }
.summit-song .summit-tap.on-beat { background: #f6cd6f; color: #402d1c; border-color: #daaa58; }
@media (max-width: 540px) {
  .wutong-walk { left: 9px; width: min(378px, calc(100vw - 18px)); padding: 7px 9px; bottom: calc(var(--above-dock, 86px) + 5px); }
  .wutong-walk h2 { font-size: 19px; }
  .wutong-walk button { min-height: 38px; font-size: 11px; }
}

.home-island {
  display: grid; grid-template-columns: 32px 1fr auto; gap: 9px; align-items: center;
  width: 100%; min-height: 46px; margin-top: 7px; padding: 5px 9px;
  background: #e0eee4; border: 1px solid #afcaba; border-radius: 11px; color: #244e44; text-align: left;
}
.home-island:hover, .home-island:focus-visible { background: #d0e6d8; border-color: #547f72; }
.home-island-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; color: #f7f8e6; background: #3d7365; font-size: 20px; }
.home-island b, .home-island small { display: block; line-height: 1.18; }
.home-island b { font-size: 13px; }
.home-island small { font-size: 10px; margin-top: 2px; color: #456b60; }
.home-island i { font-style: normal; font-size: 18px; }
body[data-place="island"] #view { touch-action: none; }
body[data-place="island"] #fx { display: none; }
.island-ui { position: absolute; inset: 0; pointer-events: none; color: #f8f2e2; }
.island-title {
  position: absolute; top: calc(max(18px, var(--safe-t, 0px)) + 6px); left: max(22px, env(safe-area-inset-left));
  padding: 12px 16px 11px; border-left: 2px solid #f6db9c; border-radius: 0 12px 12px 0;
  background: linear-gradient(90deg, #274b45ec, #274b45ba);
}
.island-title small { font-size: 10px; letter-spacing: .14em; }
.island-title h1 { margin: 2px 0; font-size: clamp(29px, 5vw, 46px); line-height: 1.08; font-weight: 820; letter-spacing: .05em; }
.island-title p { margin: 6px 0 0; font-size: 12px; color: #e6eddc; }
.island-tools {
  position: absolute; right: max(18px, env(safe-area-inset-right)); top: max(18px, var(--safe-t, 0px));
  display: flex; gap: 6px;
}
.island-ui button:not(.island-bead-ring) {
  min-height: 37px; padding: 6px 11px; border: 1px solid #d3e6d580; border-radius: 10px;
  background: #244e47; color: #fcf6e6; font: inherit; font-size: 12px; font-weight: 750; white-space: nowrap;
}
.island-ui button:not(.island-bead-ring):hover, .island-ui button:not(.island-bead-ring):focus-visible {
  background: #316c61; border-color: #d8e9da;
}
.island-ui .island-tools button.island-return { background: #f8edce; color: #244e47; border-color: #f6dfb1; }
.island-walk, .island-rest-controls {
  position: absolute; bottom: max(17px, var(--safe-b, 0px)); left: 50%; transform: translateX(-50%);
  border: 1px solid #f9eed497; border-radius: 16px; box-shadow: 0 5px 18px #1638322e;
}
.island-walk { width: max-content; max-width: calc(100vw - 22px); padding: 8px; background: #fff6e4; color: #244d44; }
.island-walk nav, .island-walk-row, .island-rest-controls { display: flex; align-items: center; gap: 5px; }
.island-walk nav { flex-wrap: wrap; }
.island-walk-row { flex-wrap: wrap; margin-top: 7px; border-top: 1px solid #d8e2d3; padding-top: 6px; }
.island-walk-row span { margin-inline: 2px 6px; font-size: 10px; }
.island-walk button[data-act="island-go"] { background: #e1ebdf; color: #254e45; border-color: #b8cfc0; }
.island-walk button[data-act="island-go"]:hover, .island-walk button[data-act="island-go"]:focus-visible { background: #cde2d3; }
.island-walk button[data-act="island-go"][aria-pressed="true"] { background: #d4e5d6; border-color: #83aa97; }
.island-rest-controls { background: #254e47d9; padding: 5px; width: max-content; max-width: calc(100vw - 22px); border-color: #b9d1c16b; }
.island-rest-controls button:not(.island-bead-ring) { background: transparent; border-color: #c2d5c448; }
.island-bead-panel { position: absolute; inset: 0; z-index: 8; display: grid; place-items: center; padding: 12px; background: #0b2827a6; }
.island-bead-panel > div {
  position: relative; width: min(350px, 100%); padding: 21px; text-align: center; border-radius: 21px;
  background: #fff2db; border: 1px solid #ffe6b9; color: #315547;
}
.island-bead-panel small { display: block; text-align: left; font-size: 11px; }
.island-bead-panel h2 { margin: 3px 0 2px; text-align: left; font-size: 24px; }
.island-bead-panel p { margin: 6px 0 0; font-size: 12px; }
.island-bead-panel .island-bead-close { position: absolute; right: 14px; top: 14px; }
.island-bead-ring {
  position: relative; width: 186px; height: 186px; margin-top: 14px; border: 1px solid #c5b296; border-radius: 50%;
  background: radial-gradient(circle, #f7e4bf, #e9d2ab); box-shadow: inset 0 1px 12px #795b3730; touch-action: none;
}
.island-bead-ring i {
  position: absolute; top: 50%; left: 50%; width: 17px; height: 17px; border-radius: 50%;
  transform: translate(-50%, -50%) rotate(calc(var(--a) + var(--turn))) translateY(-66px);
  background: radial-gradient(circle at 36% 28%, #d49865, #9d6746 45%, #634332 85%);
  box-shadow: 0 2px 3px #68472c61; pointer-events: none;
}
.island-bead-ring i:first-child { background: radial-gradient(circle at 36% 28%, #e7bb75, #8b6034 78%); }
@media (max-width: 520px) {
  .home-island { min-height: 43px; }
  .island-title { top: max(10px, var(--safe-t, 0px)); left: 10px; padding: 8px 9px; }
  .island-title p { display: none; }
  .island-tools { top: max(10px, var(--safe-t, 0px)); right: 10px; gap: 4px; }
  .island-ui button:not(.island-bead-ring) { min-height: 40px; padding-inline: 7px; font-size: 11px; }
  .island-walk { width: min(368px, calc(100vw - 20px)); }
  .island-walk nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* 离房 · 领养见面卡 */
.pet-overlay{position:fixed;inset:0;z-index:940;display:grid;place-items:center;background:#15242270;padding:14px;box-sizing:border-box}
.pet-sheet{width:min(740px,100%);max-height:calc(100dvh - 28px);overflow:auto;box-sizing:border-box;padding:clamp(16px,3vw,30px);background:#fbf5e7;color:#234437;border:1px solid #ded5bd;border-radius:22px;box-shadow:0 20px 80px #14231f55}
.pet-sheet header,.pet-journal,.pet-profile,.pet-room-button,.pet-outing{display:flex;align-items:center;gap:12px}
.pet-sheet header{justify-content:space-between;gap:16px}
.pet-sheet h2,.pet-sheet h3,.pet-sheet p{margin:0}
.pet-sheet h2{font-size:clamp(23px,4vw,34px);margin-top:3px}
.pet-sheet small,.pet-entry small,.pet-outing small,.pet-room-button small,.pet-journal small{display:block;color:#546c61}
.pet-sheet .pet-lead{margin:14px 0 10px;line-height:1.5}
.pet-sheet button,.pet-room-button,.pet-discovery,.pet-outing button{border:1px solid #c3d0bf;border-radius:10px;padding:9px 13px;background:#e9ecdf;color:#244b3c;font-weight:700;cursor:pointer}
.pet-sheet button:focus-visible,.pet-journal:focus-visible,.pet-outing button:focus-visible,.pet-room-button:focus-visible{outline:3px solid #ac7040;outline-offset:2px}
.pet-tabs,.pet-actions{display:flex;gap:7px;flex-wrap:wrap;margin:12px 0}
.pet-tabs [aria-pressed=true],.pet-grid button,.pet-adopt button{background:#285748;color:#fff7e7;border-color:#285748}
.pet-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.pet-grid article{overflow:hidden;border:1px solid #dad8c5;border-radius:15px;background:#fffaf0}
.pet-grid img,.pet-profile img{display:block;width:100%;height:auto;aspect-ratio:16/11;object-fit:cover;background:#e1e8d9}
.pet-grid article>div{padding:11px}
.pet-grid p{min-height:3em;margin:7px 0;font-size:13px;line-height:1.5}
.pet-profile{margin-top:16px}
.pet-profile img{width:min(45%,240px);border-radius:14px}
.pet-profile p{font-size:14px;line-height:1.5;margin-top:5px}
.pet-adopt{display:flex;align-items:end;gap:8px;flex-wrap:wrap;margin-top:14px}
.pet-adopt label{display:grid;gap:5px;font-size:13px}
.pet-adopt input{max-width:180px;border:1px solid #bdc8b6;border-radius:8px;background:#fffdf6;padding:9px;color:#244b3c;font:inherit}
.pet-journal{width:100%;justify-content:space-between;text-align:left;padding:11px 14px;border-radius:10px;background:#e4eddf;color:#254d3d;border:1px solid #c1d1bf;margin-bottom:10px}
.pet-room-button,.pet-discovery,.pet-outing{position:fixed;left:14px;bottom:calc(var(--dock-h,86px) + 24px);z-index:22;background:#faf3df;color:#234437;box-shadow:0 4px 18px #18261f35}
.pet-mini{width:45px;height:38px;object-fit:cover;border-radius:8px}
.pet-outing{padding:8px;border:1px solid #d7d7ba;border-radius:13px;max-width:calc(100vw - 28px);box-sizing:border-box;flex-wrap:wrap}
.pet-outing small{font-size:11px}
@media(max-width:520px){.pet-grid{grid-template-columns:1fr}.pet-grid article{display:grid;grid-template-columns:110px 1fr;align-items:center}.pet-grid p{min-height:0}.pet-grid img{height:100%;aspect-ratio:auto}.pet-room-button,.pet-outing,.pet-discovery{bottom:calc(var(--dock-h,72px) + 17px)}}
.home-companion-row{display:flex;gap:7px;margin-top:7px}
.home-companion-row .home-island{margin-top:0;flex:1;min-width:0}
.home-companion-row .pet-room-button{position:static;flex:0 1 42%;min-width:0;box-shadow:none;text-align:left;padding:5px 8px;line-height:1.2}
.home-companion-row .pet-room-button b{display:block;max-width:90px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.home-companion-row .pet-room-button small{font-size:10px;margin-top:2px}

/* Interaction panels stay on the edge of the scene. */
.scene-surface {
  --scene-panel:#182b29;
  --scene-text:#f7ead2;
  --scene-muted:#becdbf;
  --scene-line:#a4b59d55;
  --scene-key:#304642;
  --scene-accent:#efc486;
}
#ui .home-console {
  width:auto;
  max-width:calc(100% - 24px);
  padding:7px;
  border:1px solid #a4b59d66;
  border-radius:13px;
  background:#182b29f7;
  color:#f7ead2;
  box-shadow:0 5px 0 #12201dcf,0 10px 24px #0c18134a;
}
.home-console-caption {
  display:flex;align-items:center;gap:6px;
  margin:0 5px 6px;color:#c7d1bd;font-size:11px;font-weight:750;
}
.home-console-caption i {width:6px;height:6px;border-radius:50%;background:#e7b478;}
#ui .home-console .home-buttons {
  display:flex;gap:4px;align-items:stretch;
}
#ui .home-buttons > button {
  display:grid;place-content:center;justify-items:center;gap:3px;
  width:54px;min-width:0;min-height:48px;margin:0;padding:4px;
  position:static;color:#f7ead2;background:#304642;border:1px solid #a4b59d44;border-radius:8px;
  box-shadow:inset 0 -2px #0c191763;
}
#ui .home-buttons > button:hover {background:#415951;}
#ui .home-buttons > button:active {transform:translateY(1px);}
#ui .home-buttons > button i {font-style:normal;font-size:18px;line-height:1;}
#ui .home-buttons > button b {font-size:11px;line-height:1.15;}
#ui .home-buttons > .home-leave {color:#211b15;background:#e5b779;}
#ui .home-buttons > .pet-room-button .pet-mini {width:23px;height:20px;border-radius:4px;}
#ui .home-buttons > .pet-room-button small {display:none;}
#ui .home-buttons > .pet-room-button b {max-width:45px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}

#ui .pet-tray,#ui .home-sheet,.mpcardin.scene-surface,#ui .socialcard.scene-surface {
  box-sizing:border-box;
  color:var(--scene-text);background:var(--scene-panel);
  border:1px solid var(--scene-line);border-top:2px solid var(--scene-accent);
  border-radius:12px;box-shadow:0 12px 30px #0b161449;
  backdrop-filter:none;
}
#ui .pet-tray {
  position:fixed;right:14px;bottom:calc(var(--above-dock,85px) + 8px);z-index:940;
  width:min(340px,calc(100% - 28px));max-height:min(47dvh,380px);overflow:auto;
  padding:11px 12px;
}
.pet-tray header {display:grid;grid-template-columns:auto 1fr auto;gap:9px;}
.pet-tray header .pet-mini {width:41px;height:35px;}
.pet-tray header h2 {font-size:18px;margin-top:1px;overflow-wrap:anywhere;}
.pet-tray header small,.pet-tray .pet-encounter-note {color:var(--scene-muted);}
.pet-tray .pet-encounter-note {margin-top:9px;font-size:13px;line-height:1.45;}
.pet-tray .pet-actions {margin:8px 0 0;gap:5px;}
#ui .pet-tray button,#ui .home-sheet .home-rest button {
  min-height:35px;padding:6px 9px;background:var(--scene-key);color:var(--scene-text);
  border:1px solid var(--scene-line);border-radius:7px;font-size:12px;
}
#ui .pet-tray button[data-v="pet"],#ui .pet-tray .pet-adopt button {background:var(--scene-accent);color:#292218;}
#ui .pet-tray button:active {transform:translateY(1px);}
.pet-tray .pet-adopt {margin-top:9px;}

#ui .home-pop,.mpcard.hit,.wardrobe-overlay.hit {pointer-events:none;background:transparent;}
#ui .home-sheet,.mpcardin,.wardrobe-panel {pointer-events:auto;}
#ui .home-sheet {max-height:min(58dvh,570px);bottom:calc(var(--above-dock,85px) + 8px);}
#ui .home-sheet p,#ui .home-sheet header small {color:var(--scene-muted);}
#ui .home-sheet-close {width:34px;height:34px;}
.wardrobe-overlay {place-items:center end;}
.wardrobe-panel.scene-surface {width:min(390px,100%);max-height:min(70dvh,630px);}
.mpcard {justify-content:flex-start;padding:12px 14px calc(var(--above-dock,85px) + 8px);}
.mpcardin.scene-surface {width:min(360px,100%);max-height:min(53dvh,520px);overflow:auto;padding:13px;}
.mpcardin.scene-surface::before {display:none;}
.mpcardin .mpcstat,.mpcardin .mpclabel {color:#c3d1c6;}
.mpcardin .mpccred {background:#314741;}
#ui .socialcard.scene-surface {left:14px;right:auto;margin:0;width:min(345px,calc(100% - 28px));max-height:47dvh;overflow:auto;}
#ui .socialcard .sc-line,#ui .socialcard .sc-note {color:var(--scene-muted);}
#ui .scenecard.scene-surface {border-left:2px solid #efc486;background:#182b29ed;}
#ui .ridecard.scene-surface {max-height:min(62dvh,600px);}
@media(max-width:760px){
  #ui .home-console {left:auto;right:8px;bottom:calc(var(--above-dock,78px) + 3px);}
  #ui .home-buttons > button {width:clamp(39px,12vw,52px);min-height:44px;}
  #ui .pet-tray {right:8px;width:min(340px,calc(100% - 16px));bottom:calc(var(--above-dock,78px) + 5px);}
  .wardrobe-overlay {place-items:end center;padding-bottom:calc(var(--above-dock,78px) + 5px);}
  .wardrobe-panel.scene-surface {max-height:51dvh;}
}
@media(prefers-reduced-motion:reduce){
  .scene-surface,.scene-surface.fxin,.mpcard {animation:none!important;transition:none!important;}
}

#ui .socialsheet.scene-surface {
  background:#1a2d31;color:#f7ead2;border-color:#b1b6a36b;border-radius:13px;
  backdrop-filter:none;box-shadow:0 12px 35px #0b16145c;
}
#ui .socialsheet.scene-surface .wxsub,#ui .socialsheet.scene-surface .sc-note {color:#c3d1c6;}
#ui .errand-talk.scene-surface {
  background:#312b22;color:#f7ead2;border:1px solid #bb966b80;
  border-left:3px solid #e5b779;max-height:48dvh;
}
#ui .errand-talk.scene-surface header small {color:#e0b88f;}
.mpcardin .mpcflavor,.mpcardin .mpcsaid {color:#e6dac1;}
.mpcardin .mpcacts {gap:5px;margin-top:9px;}
.mpcardin .mpcbtn {background:#304642;border:1px solid #a4b59d55;border-radius:7px;padding:8px;min-height:40px;}
.mpcardin .mpcbtn span {color:#f7ead2;}
.mpcardin .mpcbtn:last-child {background:#efc486;}
.mpcardin .mpcbtn:last-child span {color:#292218;}
#ui .ridecard.scene-surface {border-radius:12px;border-top:3px solid #af8649;}
#ui .pet-tray.fxin {animation:scene-tray-enter 140ms ease-out both;}
@keyframes scene-tray-enter {from{transform:translateY(7px);opacity:.8;}to{transform:translateY(0);opacity:1;}}

#ui .home-shortcuts {
  position:absolute;right:16px;bottom:104px;z-index:712;
  display:grid;gap:7px;width:148px;max-width:calc(100% - 24px);
}
#ui .home-shortcut {
  position:relative;inset:auto;
  display:grid;grid-template-columns:34px minmax(0,1fr) 11px;
  align-items:center;gap:7px;width:100%;min-height:48px;padding:5px 7px;
  text-align:left;color:var(--shortcut-text);background:var(--shortcut-bg);
  border:1px solid var(--shortcut-line);border-radius:10px;
  box-shadow:0 3px 0 var(--shortcut-base),0 5px 15px #0b15173b;
  transition:transform .16s ease,box-shadow .16s ease;
}
#ui .shortcut-pet {--shortcut-text:#553021;--shortcut-bg:#f1d4ae;--shortcut-line:#f8e4c9;--shortcut-base:#936848;--shortcut-icon:#dca86f;}
#ui .shortcut-sea {--shortcut-text:#e0fbf5;--shortcut-bg:#225357;--shortcut-line:#79aab1;--shortcut-base:#16353c;--shortcut-icon:#36767a;}
#ui .shortcut-friends {--shortcut-text:#f8e8ff;--shortcut-bg:#4b3f61;--shortcut-line:#9d8cba;--shortcut-base:#312741;--shortcut-icon:#6b5784;}
#ui .shortcut-icon {display:grid;place-items:center;width:34px;height:34px;border-radius:7px;background:var(--shortcut-icon);font-size:23px;line-height:1;overflow:hidden;}
#ui .shortcut-friends .shortcut-icon {font-size:13px;letter-spacing:-2px;padding-right:2px;}
#ui .shortcut-icon img {width:34px;height:34px;object-fit:cover;}
#ui .home-shortcut b,#ui .home-shortcut small {display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
#ui .home-shortcut b {font-size:13px;line-height:1.25;}
#ui .home-shortcut small {font-size:10px;line-height:1.15;color:inherit;opacity:.82;margin-top:2px;}
#ui .shortcut-arrow {font-size:14px;opacity:.75;justify-self:end;}
@media(hover:hover){
  #ui .home-shortcut:hover {transform:translateX(-4px);box-shadow:0 3px 0 var(--shortcut-base),0 7px 17px #0b15175e;}
}
#ui .home-shortcut:active {transform:translateY(2px);box-shadow:0 1px 0 var(--shortcut-base);}
#ui .home-shortcut:focus-visible {outline:2px solid #ffe4aa;outline-offset:2px;}
@media(max-width:760px){
  #ui .home-shortcuts {right:8px;bottom:calc(var(--above-dock,78px) + 82px);width:120px;gap:6px;}
  #ui .home-shortcut {grid-template-columns:27px minmax(0,1fr) 9px;gap:5px;min-height:44px;}
  #ui .shortcut-icon,#ui .shortcut-icon img {width:27px;height:27px;}
}
@media(prefers-reduced-motion:reduce){#ui .home-shortcut{transition:none;}}
#ui .shortcut-icon svg {width:21px;height:21px;}
.scene-photo-active #ui .home-shortcuts {display:none;}

/* 后海球场：左手走位，右手选球。触控区不盖住离场。 */
.court-controls { left: auto; right: 20px; bottom: max(22px, env(safe-area-inset-bottom)); transform: none; width: 340px; background: #173d37ed; }
.court-keys { grid-template-columns: repeat(3, 1fr); }
.court-keys button { min-height: 64px; background: #f9e8b7; font-size: 17px; }
.court-keys button[data-court="drop"] { background: #d4ebd5; }
.court-keys button[data-court="smash"] { background: #ffc2a6; }
.court-keys small { display: block; margin-top: 5px; font-size: 10px; opacity: .75; }
.court-special { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 8px; }
.court-special button { min-height: 44px; background: #d5e2df; }
.court-special small { margin-left: 7px; font-size: 10px; }
.court-special button:disabled { opacity: .5; }
.court-move-pad { position: absolute; left: 0; top: 42%; bottom: 0; width: 48%; pointer-events: auto; touch-action: none; user-select: none; }
.court-move-pad span { position: absolute; left: 38px; bottom: 28px; color: #fff7dd; font-size: 13px; text-shadow: 0 1px 3px #18352c; }
.court-move-pad i { position: absolute; left: 42px; bottom: 65px; width: 68px; height: 68px; border-radius: 50%; background: #e9f2d830; border: 2px solid #f8f5df99; box-shadow: 0 0 0 18px #142f2c30; pointer-events: none; }
.court-guide { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); width: max-content; max-width: 90%; margin: 0; padding: 6px 12px; border-radius: 18px; background: #183b36db; font-size: 12px; transition: opacity .8s; pointer-events: none; }
#badminton[data-hint="false"] .court-guide { opacity: 0; }
#badminton[data-done="true"] .court-special, #badminton[data-done="true"] .court-move-pad { display: none; }
#badminton[data-ready="true"] .court-keys { filter: brightness(1.1); }
@media(max-width: 740px) {
  .court-controls { right: 8px; bottom: max(24px, env(safe-area-inset-bottom)); width: min(56%, 300px); padding: 7px; }
  .court-keys { gap: 4px; }
  .court-keys button { min-height: 60px; padding: 5px 2px; font-size: 14px; }
  .court-keys small { font-size: 9px; }
  .court-special { gap: 4px; }
  .court-special button { font-size: 12px; padding: 6px; }
  .court-special small { display: none; }
  .court-call { font-size: 12px; min-height: 30px; }
  .court-guide { bottom: 3px; font-size: 9px; padding: 4px; text-align: center; }
}

.badminton-playing .pet-discovery, .badminton-playing .pet-companion { display: none !important; }

@media(max-width:740px){ .court-hud { width: 166px; } }

/* Sport controls: distinct shot silhouettes and physical key caps. */
.court-controls { background: transparent; border: 0; box-shadow: none; padding: 0; width: 350px; }
.court-call { padding: 9px 16px; border-radius: 22px; background: #163d35eb; box-shadow: 0 4px 14px #0a29252b; margin-bottom: 10px; }
.court-keys button { position: relative; min-height: 106px; border-radius: 19px; border: 2px solid #fff9; border-bottom: 6px solid #b39c67; box-shadow: 0 5px 12px #14372b38; font-size: 17px; transition: transform .1s, filter .1s; }
.court-keys button[data-court="drop"] { border-bottom-color:#83ad91; }
.court-keys button[data-court="smash"] { border-bottom-color:#c78362; }
.court-glyph { display:block; font-size:30px; line-height:30px; margin-bottom:6px; }
.court-keys kbd { position:absolute; top:7px; left:8px; border:1px solid #19473544; border-bottom-width:3px; border-radius:5px; font:700 11px system-ui; padding:1px 5px; }
.court-keys button:active { transform:translateY(3px); }
.court-pressed { animation:court-press .22s ease-out; }
@keyframes court-press { 40% { transform:translateY(4px) scale(.96); filter:brightness(1.2); } }
.court-special button { border-radius: 20px; border:1px solid #ffffffa8; border-bottom:3px solid #86aaa2; padding:8px 14px; }
.court-venues { pointer-events:auto; margin-top:10px; font-size:12px; }
.court-venues summary { cursor:pointer; padding:8px; background:#ffffff18; border-radius:10px; }
.court-venues div { display:grid; gap:5px; margin:7px 0; }
.court-venues button[aria-pressed="true"] { background:#ffdf91; }
.court-venues small { color:#dbe6cc; }
@media(max-width:740px){
 .court-controls { width: min(58%,300px); right:9px; }
 .court-keys button { min-height:90px; font-size:14px; border-radius:15px; }
 .court-glyph { font-size:26px; line-height:27px; }
 .court-keys kbd { display:none; }
 .court-special button { padding:7px 9px; }
 .court-call { padding:7px 8px; }
}
@media(prefers-reduced-motion:reduce){.court-pressed{animation:none}}

.court-hud { z-index: 3; }
.court-controls { z-index: 2; }
.court-move-pad { z-index: 1; }

.court-return {
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  margin:0 0 8px;padding:9px;border-radius:9px;color:#fff3d9;
  background:#324938;border:1px solid #90a58366;
}
.court-return div {display:grid;gap:2px}
.court-return small {color:#f0cf89;font-size:10px;font-weight:800}
.court-return b {font-size:14px}
.court-return span {font-size:11px;line-height:1.35;color:#d7e4cf}
#ui .court-return button,.court-controls .court-save-rematch {
  min-height:40px;padding:6px 9px;border-radius:8px;
  background:#f4d68d;color:#293b2b;font-weight:800;white-space:nowrap;
}
.court-return i {font-style:normal}
.court-controls .court-save-rematch {width:100%;margin-bottom:6px}
.court-save-rematch[hidden] {display:none}
.court-controls .court-save-rematch:disabled {color:#dce9d8;background:#304a38}
@media(max-width:600px) {
  #ui .home-console .court-return {gap:6px;padding:6px}
  #ui .home-console .court-return b {font-size:12px}
  #ui .home-console .court-return span {font-size:10px}
}

#ui .home-console:has(.court-return) + .home-shortcuts {bottom:176px}
@media(max-width:760px) {
  #ui .home-console:has(.court-return) + .home-shortcuts {bottom:calc(var(--above-dock,78px) + 147px)}
}
