body.mobile { margin: 0; background: #0b0806; color: #f0e6d6; --wood: rgba(30, 21, 13, 0.92); --wood2: rgba(46, 32, 20, 0.95); --edge: rgba(240, 200, 120, 0.16); --text: #f0e6d6; --muted: #b3a48e; --safe-b: env(safe-area-inset-bottom, 0px); overflow: hidden; }
.mobile .muted { color: var(--muted); }
.mobile .small { font-size: 12px; }
.mobile * { -webkit-tap-highlight-color: transparent; scrollbar-width: none; }
.mobile ::-webkit-scrollbar { display: none; }

/* 真手机上铺满；电脑上居中显示一个手机外框 */
.phone { position: fixed; inset: 0; display: flex; flex-direction: column; background: #140e09; overflow: hidden; }
@media (min-width: 700px) {
  body.mobile { display: flex; align-items: center; justify-content: center; height: 100vh; background: radial-gradient(ellipse at 50% 40%, #2a1c10, #0b0806 70%); }
  .phone { position: relative; inset: auto; width: 390px; height: min(844px, 94vh); border-radius: 44px; border: 10px solid #050403; box-shadow: 0 0 0 2px #3a2a1a, 0 30px 80px rgba(0, 0, 0, 0.7); }
}

.mtop { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 8px; background: linear-gradient(180deg, rgba(10, 6, 3, 0.95), rgba(20, 14, 9, 0.9)); border-bottom: 1px solid var(--edge); z-index: 3; }
.who { display: flex; align-items: baseline; gap: 6px; min-width: 0; flex-wrap: wrap; }
.who b { font-size: 18px; color: #fff3dc; letter-spacing: 1px; }
.who small { color: var(--muted); font-size: 12px; width: 100%; }
.aibadge { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: 1px; line-height: 1; padding: 3px 5px; border-radius: 5px; color: #1a1205; background: #b8d8ff; vertical-align: 2px; cursor: help; }
.mpill { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #8a7a66; display: inline-block; }
.dot.live { background: #ff6a4a; box-shadow: 0 0 8px #ff6a4a; animation: mglow 1.2s infinite; }
.dot.home { background: #78d89a; }
@keyframes mglow { 50% { box-shadow: 0 0 2px #ff6a4a; } }

.mmain { flex: 1; position: relative; min-height: 0; }
.tab { position: absolute; inset: 0; overflow-y: auto; padding: 12px 12px 16px; display: none; flex-direction: column; gap: 10px; }
.tab.on { display: flex; }
.tab[data-tab="chat"] { padding: 0; gap: 0; }

.mroom { position: relative; height: 300px; flex: none; border-radius: 16px; overflow: hidden; border: 1px solid var(--edge); background: #1a110a; }
.mroom canvas.gl { position: absolute; inset: 0; display: block; touch-action: pan-y; }
.awayCard { position: absolute; inset: auto 12px 12px; z-index: 2; display: none; background: rgba(20, 13, 8, 0.82); border: 1px dashed rgba(240, 200, 120, 0.35); border-radius: 12px; padding: 10px 12px; backdrop-filter: blur(4px); font-size: 13px; }
.awayCard.show { display: block; }
.awayCard b { color: #ffe0a0; }

.mcard { background: var(--wood); border: 1px solid var(--edge); border-radius: 14px; padding: 12px; flex: none; }
.mcard.sticky { position: sticky; top: -12px; z-index: 2; backdrop-filter: blur(6px); }
.mcard h3 { margin: 0; font-size: 14px; color: #f6dca0; }
.mcard h4 { margin: 10px 0 4px; font-size: 13px; color: #f6dca0; }
.sh { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.mrow { display: flex; gap: 8px; }
.mrow > * { flex: 1; min-width: 0; min-height: 44px; text-align: center; padding: 8px 0; border-radius: 10px; white-space: nowrap; }
.mobile .primary { border-radius: 10px; padding: 9px 14px; }
.mobile .ghost { border-color: var(--edge); border-radius: 10px; padding: 7px 12px; }
.btns { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.btns > * { flex: 1; text-align: center; }
.stitle { font-size: 15px; font-weight: 600; color: #fff3dc; }
.vitals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; font-size: 12px; color: var(--muted); }
.vitals i { display: block; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); margin-top: 3px; overflow: hidden; }
.vitals b { display: block; height: 100%; }
.feel { margin-top: 8px; font-size: 12px; color: #e0d0b8; line-height: 1.6; }

.skills { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.skill { font-size: 12px; padding: 2px 9px; border-radius: 10px; background: rgba(240, 200, 96, 0.18); border: 1px solid rgba(240, 200, 96, 0.5); color: #ffe0a0; }
.attrs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; margin-top: 10px; font-size: 12px; }
.attr { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 10px; border-radius: 8px; background: rgba(0, 0, 0, 0.22); color: var(--muted); }
.attr span:last-child { color: #f6dca0; font-size: 16px; font-weight: 700; }

/* 故事流：最新的在上面 */
.story { display: flex; flex-direction: column; gap: 8px; }
.divider { font-size: 11px; color: var(--muted); text-align: center; margin: 6px 0 0; letter-spacing: 1px; }
.sitem { background: rgba(255, 255, 255, 0.04); border: 1px solid var(--edge); border-radius: 12px; padding: 9px 11px; font-size: 13px; line-height: 1.6; }
.sitem.diary { background: rgba(156, 196, 255, 0.07); border-color: rgba(156, 196, 255, 0.22); }
.sitem.diary small { color: #9cc4ff; display: block; font-size: 11px; }
.sitem.announce { background: rgba(240, 200, 96, 0.08); border-color: rgba(240, 200, 96, 0.3); color: #ffe0a0; text-align: center; }
.sitem.warn { border-color: rgba(240, 120, 90, 0.5); background: rgba(240, 120, 90, 0.08); }
.sitem.good { border-color: rgba(120, 216, 154, 0.4); background: rgba(120, 216, 154, 0.07); }
.sitem .line { margin: 2px 0; }
.sitem .line b { margin-right: 4px; }
.sitem .gift { color: #ffe0a0; font-size: 12px; }
.empty { color: var(--muted); padding: 40px 10px; text-align: center; font-size: 13px; }

/* 聊天 */
.chatHead { display: flex; justify-content: space-between; align-items: center; padding: 8px 14px; border-bottom: 1px solid var(--edge); background: rgba(20, 14, 9, 0.9); font-size: 13px; }
.mchat { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.bub { max-width: 80%; padding: 8px 12px; border-radius: 16px; font-size: 14px; line-height: 1.55; background: var(--wood2); border: 1px solid var(--edge); align-self: flex-start; border-bottom-left-radius: 4px; white-space: pre-wrap; word-break: break-word; }
.bub.me { align-self: flex-end; background: linear-gradient(135deg, #f0c860, #e08a3a); color: #1a1205; border: 0; border-radius: 16px; border-bottom-right-radius: 4px; }
.bub.typing { color: var(--muted); font-style: italic; }
.bub .note { font-size: 11px; color: #9cc4ff; margin-top: 3px; }
.sys { align-self: center; max-width: 92%; font-size: 11px; color: rgba(214, 200, 180, 0.5); padding: 2px 10px; text-align: center; line-height: 1.5; }
.chatBar { display: flex; gap: 8px; padding: 8px 10px; border-top: 1px solid var(--edge); background: rgba(16, 11, 7, 0.95); }
.chatBar input { flex: 1; min-width: 0; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--edge); border-radius: 18px; padding: 9px 14px; color: var(--text); outline: none; font-size: 15px; }
.chatBar input:focus { border-color: rgba(240, 200, 120, 0.5); }

/* 背包 */
.slots { display: flex; gap: 8px; flex-wrap: wrap; }
.slot { width: 52px; height: 52px; border-radius: 12px; border: 1px solid var(--edge); background: rgba(255, 255, 255, 0.04); display: flex; align-items: center; justify-content: center; position: relative; padding: 0; cursor: pointer; }
.slot.open { border-style: dashed; cursor: default; }
.slot .wl { position: absolute; bottom: 2px; font-size: 10px; color: var(--muted); }
.slot .uses { position: absolute; right: 3px; top: 1px; font-size: 10px; color: #ffe0a0; }
.mgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.cell { aspect-ratio: 1; border-radius: 12px; border: 1px solid var(--edge); background: rgba(255, 255, 255, 0.04); display: flex; align-items: center; justify-content: center; position: relative; padding: 0; cursor: pointer; }
.cell.empty { opacity: 0.35; }
.cell.blank { cursor: default; }
.cell .cnt { position: absolute; right: 4px; bottom: 2px; font-size: 11px; font-weight: 600; }
.cell .new { position: absolute; left: 3px; top: 2px; font-size: 9px; color: #1a1205; background: #f0c860; border-radius: 4px; padding: 0 3px; }
.r-common { border-color: rgba(180, 180, 190, 0.3); }
.r-uncommon { border-color: rgba(90, 176, 240, 0.65); box-shadow: inset 0 0 12px rgba(90, 176, 240, 0.18); }
.r-rare { border-color: rgba(240, 200, 96, 0.85); box-shadow: inset 0 0 14px rgba(240, 200, 96, 0.25); }
.coin { display: inline-flex; align-items: center; gap: 3px; color: #ffe0a0; }
.dt { display: flex; gap: 10px; align-items: flex-start; }
.dt .eff { color: #ffe0a0; font-size: 13px; margin: 4px 0; }

.mtabs { display: flex; border-top: 1px solid var(--edge); background: rgba(12, 8, 5, 0.97); padding-bottom: var(--safe-b); z-index: 3; }
.mtabs button { flex: 1; background: none; border: 0; padding: 7px 0 8px; color: var(--muted); font-size: 11px; display: flex; flex-direction: column; align-items: center; gap: 1px; position: relative; cursor: pointer; }
.mtabs button i { font-style: normal; font-size: 19px; line-height: 1.1; }
.mtabs button.on { color: #f6dca0; }
.mtabs em { position: absolute; top: 5px; left: 56%; width: 7px; height: 7px; border-radius: 50%; background: #ff6a4a; display: none; }
.mtabs em.show { display: block; }

.sheet { position: absolute; inset: 0; z-index: 20; background: rgba(0, 0, 0, 0.5); display: none; align-items: flex-end; }
.sheet.show { display: flex; }
.sbox { width: 100%; max-height: 82%; display: flex; flex-direction: column; background: #1c140c; border-top: 1px solid var(--edge); border-radius: 20px 20px 0 0; padding-bottom: var(--safe-b); animation: sup .25s ease; }
@keyframes sup { from { transform: translateY(40px); } }
.shead { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px 8px; }
.shead h3 { margin: 0; font-size: 15px; color: #f6dca0; }
.sbody { overflow-y: auto; padding: 0 16px 16px; font-size: 13px; line-height: 1.6; }
.opt { display: block; width: 100%; text-align: left; margin-top: 8px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--edge); background: rgba(255, 255, 255, 0.04); cursor: pointer; }
.opt b { color: #fff3dc; }
.opt[disabled] { opacity: 0.45; }
.mem { padding: 6px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.mem .k { font-size: 11px; color: #9cc4ff; margin-right: 6px; }
.mem.big .k { color: #f0c860; }
.album .ahead { color: var(--muted); margin-bottom: 10px; }
.album .ahead b { color: #f0c860; }
.album .agrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 12px; padding: 4px 2px; }
.album .apc { position: relative; padding: 6px 6px 6px; background: #fbf6ea; border-radius: 3px; box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45); transform: rotate(var(--r)); min-width: 0; }
.album .apc.hung::before { content: ""; position: absolute; top: -6px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffe7a0, #d98a2e); box-shadow: 0 2px 3px rgba(0, 0, 0, 0.5); }
.album .aimg { display: block; width: 100%; aspect-ratio: 3 / 2; padding: 0; border: none; background: #2a2018 center / cover; }
.album .atx { padding: 6px 2px 4px; color: #4a3a2a; font-size: 13px; line-height: 1.4; text-align: center; overflow-wrap: anywhere; }
.album .atx small { display: block; color: #8a7a64; font-size: 11px; }
.album .aacts { display: flex; gap: 6px; }
.album .aacts button { display: inline-flex; align-items: center; justify-content: center; gap: 2px; min-height: 44px; padding: 0 4px; border-radius: 8px; border: 1px solid #d8c8a8; background: #f2e8d4; color: #6a5236; font: inherit; font-size: 12px; white-space: nowrap; }
.album .aacts .apin { flex: 1; min-width: 0; }
.album .aacts .adel { flex: none; width: 44px; }
.album .aacts .apin.on { background: linear-gradient(180deg, #ffd977, #e89a3a); border-color: #b8762a; color: #3a2108; }
.album .aacts button:disabled { opacity: 0.55; }
.album .aempty { padding: 34px 10px; text-align: center; color: var(--muted); line-height: 1.8; }
.catalog .chead { color: #f0e0c0; font-weight: 700; letter-spacing: 2px; margin: 0 0 8px; }
.catalog .chead b { color: #f0c860; }
.catalog .cgroup { margin: 0 0 12px; }
.catalog .cgname { color: var(--muted); font-size: 13px; letter-spacing: 2px; margin: 0 0 6px; }
.catalog .cgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 8px; }
.catalog .ccell { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 44px; padding: 4px 4px 5px; border: 2px solid var(--rc); border-radius: 6px; background: #fbf6ea; color: #4a3a2a; font: inherit; text-align: center; cursor: pointer; --rc: #c8b48e; }
.catalog .ccell.cr-uncommon { --rc: #9fc4e0; }
.catalog .ccell.cr-rare { --rc: #e8b84a; box-shadow: 0 0 8px rgba(255, 210, 110, 0.45); }
.catalog .cimg { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 3 / 2; background: #2a2018 center / cover; border-radius: 2px; }
.catalog .ccell.plain .cimg { background: linear-gradient(160deg, #e9dcc0, #d6c4a0); }
.catalog .cname { display: block; margin-top: 4px; font-size: 13px; line-height: 1.3; overflow-wrap: anywhere; }
.catalog .ccount { position: absolute; top: 2px; right: 3px; padding: 0 5px; border-radius: 8px; background: rgba(30, 20, 12, 0.72); color: #fff3dc; font-size: 13px; }
.catalog .ccell.miss { border-style: dashed; background: rgba(0, 0, 0, 0.28); color: var(--muted); box-shadow: none; }
.catalog .ccell.miss .cimg { background: rgba(255, 255, 255, 0.04); color: var(--rc); font-size: 20px; font-weight: 700; }
.album .asub { color: #f0e0c0; font-weight: 700; letter-spacing: 2px; margin: 6px 0 6px; padding-top: 10px; border-top: 1px solid rgba(240, 200, 120, 0.16); }
.memDay { margin: 12px 0 2px; font-size: 12px; opacity: 0.6; font-weight: normal; }
.memDay:first-child { margin-top: 0; }
.mem.vague { opacity: 0.75; } .mem.faded { opacity: 0.5; }
.call { display: flex; flex-direction: column; gap: 6px; margin: 8px 0; }
.mtoast { position: absolute; left: 50%; bottom: 80px; transform: translateX(-50%); z-index: 60; background: rgba(30, 20, 12, 0.96); border: 1px solid var(--edge); border-radius: 12px; padding: 8px 14px; font-size: 13px; max-width: 86%; opacity: 0; pointer-events: none; transition: opacity .3s; }
.mtoast.show { opacity: 1; }
/* 因果卡：你的准备起了什么作用 */
.cause { display: flex; align-items: flex-start; gap: 8px; margin-top: 6px; padding: 8px 10px; border-radius: 10px; font-size: 13px; line-height: 1.6; color: #fff3dc; background: rgba(120, 200, 120, 0.1); border: 1px solid rgba(140, 210, 140, 0.25); }
.cause svg, .cause img { flex: none; }
.cause small { display: block; color: #ffd890; font-size: 12px; }
.cause.miss { background: rgba(240, 160, 90, 0.1); border-color: rgba(240, 170, 100, 0.3); }
.cause.unused { background: none; border: 0; padding: 2px 0; font-size: 12px; color: #b8a888; align-items: center; }
.cmore > summary { margin-top: 6px; font-size: 12px; color: #f0c860; min-height: 32px; display: flex; align-items: center; }
.mcare { margin-top: 10px; padding-top: 8px; border-top: 1px dashed rgba(240, 200, 120, 0.25); }
.mcare .btns { margin-top: 6px; }
.mcare button { min-height: 44px; }
/* 跟你学：手机上按钮够大（≥ 44 px） */
.ask .askopts button, .ask .askown button, .ask .askown input { min-height: 44px; }
/* 送它去远行：出门前的一句嘱咐 */
.opt.big { padding: 14px 16px; min-height: 64px; border-color: rgba(240, 200, 120, 0.4); background: linear-gradient(180deg, rgba(255, 216, 120, 0.12), rgba(255, 216, 120, 0.04)); }
.opt.big b { font-size: 17px; letter-spacing: 2px; }
.opt.big[disabled] { background: rgba(255, 255, 255, 0.03); border-color: var(--edge); }
.linkbtn { display: block; margin: 10px 0 0 auto; min-height: 36px; padding: 0 4px; background: none; border: 0; color: #f0c860; font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; }
.wakes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }
.wakes button { min-height: 44px; font-size: 15px; }
.wakes button.on { border-color: #f0c860; color: #ffe7a8; background: rgba(240, 200, 96, 0.14); }
.dwords { width: 100%; box-sizing: border-box; min-height: 44px; margin: 4px 0 10px; padding: 8px 12px; border-radius: 10px; border: 1px solid rgba(240, 200, 120, 0.35); background: rgba(0, 0, 0, 0.25); color: #fff3dc; font-size: 15px; }
/* 远行回来的小结：盖在通知卡片和小提示上面（通知先藏起来，小提示等关掉小结再出） */
.sheet.loot { z-index: 40; }
body.mobile:has(#sheet.loot.show) .notices { visibility: hidden; }
.sheet.loot .stitle { font-size: 18px; color: #f0c860; }
.tripFeel { margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: linear-gradient(180deg, rgba(240, 200, 120, 0.1), rgba(240, 200, 120, 0.04)); border: 1px solid rgba(240, 200, 120, 0.22); }
.tripFeel .tfq { font-size: 14px; line-height: 1.75; color: #fff3dc; }
.tripFeel .tfq::before { content: '“'; color: #f0c860; margin-right: 2px; }
.tripFeel .tfq::after { content: '”'; color: #f0c860; margin-left: 2px; }
.tripFeel .tfw { display: flex; align-items: center; justify-content: flex-end; margin-top: 6px; text-align: right; font-size: 12px; color: var(--muted); }
.tripFeel .tfw em { font-style: normal; margin-left: 8px; padding: 1px 8px; border-radius: 10px; background: rgba(240, 200, 96, 0.16); color: #ffe0a0; }
/* 把这句话做成卡片：44 px 的点按区，图标 20 px，不撑高这一行 */
.tshare { flex: none; width: 44px; height: 44px; margin: -12px auto -12px -12px; padding: 12px; border: 0; border-radius: 50%; background: none; color: #c8b090; }
.tshare svg { display: block; width: 100%; height: 100%; }
.tshare:disabled { opacity: 0.5; }
/* 它学到的 / 遇到的人 */
.tripLearn p, .tripMet .tmrow { margin: 4px 0 0; font-size: 13px; line-height: 1.7; color: #e8dcc4; }
.tripLearn .tlq { color: #fff3dc; }
.tripLearn .tlq::before, .tripMet .tmq::before { content: '“'; color: #f0c860; margin-right: 2px; }
.tripLearn .tlq::after, .tripMet .tmq::after { content: '”'; color: #f0c860; margin-left: 2px; }
.tripLearn .tlself { color: var(--muted); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.tripLearn .tlself.open { display: block; }
.tripLearn .tlattr { font-size: 12px; color: #f6dca0; }
.tripMet .tmrow { padding: 4px 0; }
.tripMet .tmrow b { color: #f6dca0; margin-right: 6px; }
.tripMet .tmrow em { font-style: normal; font-size: 11px; margin-right: 6px; padding: 1px 7px; border-radius: 9px; background: rgba(140, 210, 140, 0.18); color: #c8f0c0; white-space: nowrap; }
.tripMet .tmrow em.down { background: rgba(240, 170, 100, 0.18); color: #ffd0a0; }
.lootRow { display: flex; flex-wrap: wrap; gap: 6px; }
.lootItem { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 2px 10px 2px 4px; border: 1px solid; border-radius: 18px; font-size: 13px; background: rgba(0, 0, 0, 0.25); color: #fff3dc; }
.tripMore { margin-top: 10px; border-top: 1px solid rgba(240, 200, 120, 0.14); }
.tripMems p { margin: 4px 0 0; font-size: 13px; color: #d8c8a8; line-height: 1.7; }
.tripList { list-style: none; margin: 0; padding: 0 0 0 12px; border-left: 2px solid rgba(240, 200, 120, 0.18); display: flex; flex-direction: column; gap: 8px; font-size: 13px; line-height: 1.7; color: #e8dcc4; }
.tripList small { display: block; font-size: 11px; color: var(--muted); }
.tripList li.world { color: #b8c4d8; }
.tripList li.moment { color: #f6dca0; font-weight: 600; }
.sheet.loot .btns > * { min-height: 44px; }

/* 去看看它（peek.js）：远行途中全屏偷看小岛，镜头跟着它；只有关闭、顶上一行地点时间、底下一行它此刻的样子 */
[data-peek] { min-height: 44px; }
.peek { position: absolute; inset: 0; z-index: 15; background: #0b0806; overflow: hidden; }
.peekStage { position: absolute; inset: 0; }
.peekStage canvas.gl { position: absolute; inset: 0; display: block; touch-action: none; }
.peek .labels { z-index: 1; }
.peekTop { position: absolute; z-index: 2; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 10px; padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 18px; background: linear-gradient(180deg, rgba(10, 6, 3, 0.7), rgba(10, 6, 3, 0)); pointer-events: none; }
.peekTop .xclose { margin-left: 0; width: 44px; height: 44px; pointer-events: auto; }
.peekTitle { font-size: 14px; color: #fff3dc; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.peekLine { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 22px 18px calc(14px + var(--safe-b)); font-size: 13px; line-height: 1.5; color: var(--muted); background: linear-gradient(0deg, rgba(10, 6, 3, 0.8), rgba(10, 6, 3, 0)); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; pointer-events: none; }
.peekLine:empty { display: none; }
.peekBack { position: absolute; z-index: 2; left: 50%; transform: translateX(-50%); bottom: calc(76px + var(--safe-b)); min-height: 44px; padding: 0 18px; border-radius: 22px; border: 1px solid var(--edge); background: rgba(20, 13, 8, 0.85); color: #f6dca0; font-size: 13px; cursor: pointer; backdrop-filter: blur(4px); }
.peekBack[hidden] { display: none; }

/* ---------- 共用弹层在手机上（2026-11-10）：dialog / journey / notify / interior / postcards / snapshot / tip 都挂进 #phone（common.js uiHost()），
   这里用 position: absolute 铺满手机（电脑上预览时裁在外框里），样式换成手机的底部 sheet。电脑版的样式不动。
   层级（#phone 里，低 → 高）：
     0  页面            2  吸顶卡片        3  顶栏 / 底部标签
     15 去看看它 .peek   20 底部 sheet     22 家具 .imenu / 纪念物 .kcard    30 捏人 .onb.compact（onboard.css）  32 通知 .notices
     40 回家小结 .sheet.loot   45 看照片 .pview / 拍照、分享卡片 .snap（后开的在上面）   50 弹窗 .gdlg   60 小提示 .mtoast   90 过场 .jy   100 说明卡 .gtip   110 进门 .gate（gate.js，没登录时盖住一切）
---------- */
body.mobile .gdlg, body.mobile .jy, body.mobile .pview, body.mobile .snap, body.mobile .notices { position: absolute; }

/* 弹窗：底部 sheet，深色卡片，按钮整行竖排、主按钮在上；点遮罩 = 取消 */
body.mobile .gdlg { z-index: 50; align-items: flex-end; background: rgba(0, 0, 0, 0.5); backdrop-filter: none; }
body.mobile .gdlg .gbox { width: 100%; box-sizing: border-box; padding: 16px 16px calc(16px + var(--safe-b)); border: 0; border-top: 1px solid var(--edge); border-radius: 20px 20px 0 0; background: #1c140c; box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5); text-align: left; animation: sup .25s ease both; }
body.mobile .gdlg .gbox::before, body.mobile .gdlg .gbox::after, body.mobile .gdlg .gtitle::before, body.mobile .gdlg .gtitle::after { display: none; }
body.mobile .gdlg .gtitle { display: block; margin: 0 0 8px; padding: 0; font-size: 16px; letter-spacing: 1px; color: #f6dca0; background: none; border: 0; box-shadow: none; transform: none; text-shadow: none; }
body.mobile .gdlg .gmsg { font-size: 14px; line-height: 1.7; color: var(--text); text-shadow: none; }
body.mobile .gdlg .gin { min-height: 44px; font-size: 16px; border: 1px solid var(--edge); background: rgba(255, 255, 255, 0.06); color: var(--text); box-shadow: none; }
body.mobile .gdlg .gin:focus { border-color: rgba(240, 200, 120, 0.5); }
body.mobile .gdlg .gbtns { flex-direction: column-reverse; gap: 8px; margin-top: 16px; }
body.mobile .gdlg .gbtn { width: 100%; min-height: 46px; letter-spacing: 1px; border: 0; }
body.mobile .gdlg .gbtn:hover { transform: none; filter: none; }
body.mobile .gdlg .gbtn:focus { outline: none; }
body.mobile .gdlg .gok { box-shadow: none; }
body.mobile .gdlg .gno { color: var(--text); background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px var(--edge); }
body.mobile .gdlg .gdanger { box-shadow: none; }

/* 过场幕布：只盖手机，竖屏字号 */
body.mobile .jy { z-index: 90; padding: 0 20px; }
/* 画是横的 1000×600：竖屏里按 2 倍手机宽贴底居中，不然房子会被放大到满屏 */
body.mobile .jy .jart { top: auto; bottom: 0; left: -50%; width: 200%; height: auto; }
body.mobile .jy h1 { font-size: 34px; letter-spacing: 8px; text-indent: 8px; line-height: 1.3; word-break: break-all; }
body.mobile .jy small { font-size: 12px; letter-spacing: 4px; }
body.mobile .jy p { font-size: 14px; letter-spacing: 1px; }
body.mobile .jy .jbtns { flex-direction: column; align-self: stretch; gap: 8px; }
body.mobile .jy .jbtn { min-height: 46px; }

/* 通知：顶栏下面一列，左右各留 12 px */
body.mobile .notices { z-index: 32; left: 12px; right: 12px; top: calc(env(safe-area-inset-top, 0px) + 72px); width: auto; transform: none; }
body.mobile .notice { min-height: 44px; box-sizing: border-box; padding-right: 44px; }
body.mobile .notice .nx { top: 0; right: 0; width: 44px; height: 44px; padding: 0; }

/* 换家具：从底下升起的 sheet（不压暗，上面的小屋还能看到刚摆上的款式） */
body.mobile .imenu.isheet { position: absolute; z-index: 22; left: 0; right: 0; bottom: 0; top: auto; width: auto; max-height: 62%; overflow-y: auto; box-sizing: border-box; padding: 4px 10px calc(10px + var(--safe-b)); border: 0; border-top: 1px solid var(--edge); border-radius: 20px 20px 0 0; background: #1c140c; box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.55); animation: sup .25s ease both; font-size: 14px; overscroll-behavior: contain; }
body.mobile .imenu.isheet .ihead { position: sticky; top: 0; z-index: 1; align-items: center; padding: 10px 6px 8px; background: #1c140c; color: #f6dca0; }
body.mobile .imenu.isheet .ihead small { flex: 1; margin-left: 8px; }
body.mobile .imenu.isheet .irow { min-height: 48px; padding: 6px 8px; }
body.mobile .imenu.isheet .irow:hover { background: none; }
body.mobile .imenu.isheet .irow.sel, body.mobile .imenu.isheet .irow.cur { background: rgba(255, 214, 140, 0.1); }
body.mobile .imenu.isheet .irow .in i { font-size: 12px; }
/* 点一下 = 先摆出来看（.sel，金边），行尾一个「换上这个」；正摆着的那款写「现在用的」 */
body.mobile .imenu.isheet .irow.sel { box-shadow: inset 0 0 0 1px rgba(255, 214, 140, 0.45); }
body.mobile .imenu.isheet .irow.sel .il { display: none; }
body.mobile .imenu.isheet .irow.cur .in b::after { content: none; }
body.mobile .imenu.isheet .icur { margin-left: 6px; padding: 1px 6px; border-radius: 6px; font-size: 11px; color: #ffd977; background: rgba(255, 217, 119, 0.12); }
body.mobile .imenu.isheet .iok { flex: none; min-height: 44px; padding: 0 14px; font: inherit; font-size: 14px; font-weight: 700; }
body.mobile .imenu.isheet .iok:disabled { opacity: 0.6; }
/* 点纪念物：底下升起一张小卡片（cabin3d.js openKeep），点别处 / × 收起 */
body.mobile .kcard { position: absolute; z-index: 22; left: 0; right: 0; bottom: 0; box-sizing: border-box; padding: 4px 16px calc(16px + var(--safe-b)); border-top: 1px solid var(--edge); border-radius: 20px 20px 0 0; background: #1c140c; box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.55); animation: sup .25s ease both; }
body.mobile .kcard .khead { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 48px; }
body.mobile .kcard .khead b { font-size: 16px; letter-spacing: 1px; color: #f6dca0; }
body.mobile .kcard .kx { flex: none; width: 44px; height: 44px; }
body.mobile .kcard p { margin: 0; font-size: 14px; line-height: 1.7; color: var(--text); white-space: pre-line; }

/* 看照片：铺满手机，照片按宽度放，关闭在右上，按钮在底部整行 */
body.mobile .pview { z-index: 45; flex-direction: column; padding: calc(64px + env(safe-area-inset-top, 0px)) 12px calc(84px + var(--safe-b)); box-sizing: border-box; }
body.mobile .pview .pv { position: static; width: 100%; box-sizing: border-box; max-width: none; padding: 10px 10px 0; transform: none; }
body.mobile .pview img { width: 100%; }
body.mobile .pview .cap { padding: 10px 4px 12px; font-size: 15px; }
body.mobile .pview .pvx { top: calc(12px + env(safe-area-inset-top, 0px)); right: 12px; width: 44px; height: 44px; }
body.mobile .pview .pvacts { left: 12px; right: 12px; bottom: calc(16px + var(--safe-b)); transform: none; flex-direction: column; gap: 8px; white-space: normal; }
body.mobile .pview .pvbtn { width: 100%; min-height: 46px; }
/* 小结里的明信片：两张一排 */
body.mobile .pcards { gap: 10px; }
body.mobile .pcards .pc { width: calc(50% - 5px); box-sizing: border-box; padding: 5px 5px 0; }
body.mobile .pcards .pc:hover { transform: rotate(var(--r)); }
body.mobile .pcards .pc .ph { width: 100%; height: auto; aspect-ratio: 3 / 2; }
body.mobile .pcards .pc .tx { font-size: 12px; }
body.mobile .pcards .pmeta { font-size: 13px; padding-bottom: 6px; }
body.mobile .pcards .pnew { top: 44px; right: 6px; }
body.mobile .pcback { font-size: 13px; }
body.mobile .pclead { font-size: 14px; }
body.mobile .pmark { top: -8px; right: 2px; width: 44px; height: 48px; padding: 6px 8px; }
body.mobile .pshare { left: 0; top: 0; width: 44px; height: 44px; padding: 12px; background: none; }
body.mobile .pshare svg { padding: 3px; box-sizing: border-box; border-radius: 50%; background: rgba(30, 20, 12, 0.62); width: 26px; height: 26px; margin: -3px; }

/* 拍照 / 分享卡片（share.js shareCard）：铺满手机，照片按宽度放，按钮在底部整行竖排（.snap .sbox 和手机 sheet 的 .sbox 同名，这里全部重设） */
body.mobile .snap { z-index: 45; align-items: stretch; background: rgba(5, 3, 2, 0.94); backdrop-filter: none; }
body.mobile .snap .sbox { width: 100%; max-height: none; box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; gap: 0; padding: calc(64px + env(safe-area-inset-top, 0px)) 12px calc(16px + var(--safe-b)); border: 0; border-radius: 0; background: none; box-shadow: none; animation: none; }
body.mobile .snap img { width: 100%; height: auto; max-height: none; min-height: 0; object-fit: contain; flex: 0 1 auto; margin: auto 0; }
body.mobile .snap .sbtns { flex-direction: column; gap: 8px; margin-top: 16px; }
body.mobile .snap .sbtns button { width: 100%; min-height: 46px; }
body.mobile .snap .sx { top: calc(12px + env(safe-area-inset-top, 0px)); right: 12px; width: 44px; height: 44px; font-size: 26px; }

/* 说明卡：位置由 tip.js 夹在手机里面（最宽 = 手机宽 − 24 px） */
body.mobile .gtip { z-index: 100; font-size: 13px; }
.tripBecause .tbsaid { margin: 0 0 4px; font-size: 12px; line-height: 1.6; color: var(--muted); }
