body.cabin { overflow: hidden; background: #120c08; --wood: rgba(28, 19, 12, 0.82); --wood2: rgba(46, 32, 20, 0.9); --edge: rgba(240, 200, 120, 0.16); --text: #f0e6d6; --muted: #b3a48e; }
.cabin .muted { color: var(--muted); }
.cabin * { scrollbar-width: thin; scrollbar-color: rgba(240, 200, 120, 0.28) transparent; }
.cabin ::-webkit-scrollbar { width: 8px; height: 8px; }
.cabin ::-webkit-scrollbar-track { background: transparent; }
.cabin ::-webkit-scrollbar-thumb { background: rgba(240, 200, 120, 0.22); border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }
.cabin ::-webkit-scrollbar-thumb:hover { background-color: rgba(240, 200, 120, 0.4); }
.cabin ::-webkit-scrollbar-corner { background: transparent; }
.cabin .small { font-size: 12px; }
.room { position: fixed; inset: 0; }
.room canvas.gl { position: absolute; inset: 0; display: block; cursor: grab; animation: glin .45s ease both; }
@keyframes glin { from { opacity: 0; } }
.room canvas.gl:active { cursor: grabbing; }
.room::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 30% 55%, transparent 45%, rgba(0,0,0,0.55) 100%); }

.cbar { position: fixed; top: 0; left: 0; right: 0; z-index: 10; display: flex; align-items: center; gap: 22px; padding: 12px 22px; background: linear-gradient(180deg, rgba(10,6,3,0.75), transparent); }
.cbar .brand b { font-size: 17px; letter-spacing: 3px; color: #f6dca0; }
.cnav { display: flex; gap: 4px; }
.cnav a { padding: 5px 16px; border-radius: 18px; color: var(--muted); border: 1px solid transparent; }
.cnav a[hidden] { display: none; }
.cnav a.on { color: #1a1205; background: linear-gradient(135deg, #f0c860, #e08a3a); font-weight: 600; }
.cnav a:not(.on):hover { border-color: var(--edge); color: var(--text); }
.cnav a.hot { color: #ffd890; border-color: rgba(255, 200, 100, 0.5); animation: glow 2s infinite; }
@keyframes glow { 50% { box-shadow: 0 0 12px rgba(255, 190, 90, 0.45); } }
.spill { margin-left: auto; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #8a7a66; display: inline-block; }
.dot.live { background: #ff6a4a; box-shadow: 0 0 8px #ff6a4a; animation: glow 1.2s infinite; }
.dot.home { background: #78d89a; }

.hero { position: fixed; top: 64px; left: 28px; z-index: 5; max-width: 420px; text-shadow: 0 2px 10px rgba(0,0,0,0.8); pointer-events: none; }
.hname { font-size: 28px; font-weight: 700; letter-spacing: 2px; color: #fff3dc; border-left: 4px solid var(--c); padding-left: 12px; line-height: 1.1; }
.hname .hsep { display: inline-block; width: 1px; height: 16px; margin: 0 12px; vertical-align: middle; background: rgba(255, 230, 180, 0.35); }
.hname .hsub { vertical-align: middle; color: var(--muted); font-size: 13px; font-weight: 400; letter-spacing: 0; pointer-events: auto; }
.hsub .lv { color: #f0c860; font-weight: 600; }
.hskills { margin: 8px 0 0 16px; display: flex; gap: 8px; flex-wrap: wrap; pointer-events: auto; }
.hskills .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; cursor: help; }
.skillList { display: flex; flex-direction: column; gap: 6px; }
.skillOpt { display: grid; grid-template-columns: auto 52px 1fr; gap: 8px; align-items: center; padding: 6px 8px; border: 1px solid var(--edge); border-radius: 8px; cursor: pointer; }
.skillOpt:has(input:checked) { border-color: #f0c860; background: rgba(240, 200, 96, 0.12); }
.hself { margin: 10px 0 0 16px; font-size: 13px; color: #e0d0b8; font-style: italic; line-height: 1.6; }

.away { position: fixed; left: 38%; top: 70%; translate: -50% -100%; z-index: 5; display: none; width: 300px; padding: 14px 18px 16px; border-radius: 16px; text-align: left; color: var(--text); background: linear-gradient(180deg, rgba(44, 30, 18, 0.92), rgba(26, 17, 10, 0.92)); border: 1px solid rgba(240, 200, 120, 0.28); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 230, 180, 0.08); backdrop-filter: blur(6px); }
.away.show { display: block; animation: awayIn .35s ease; }
@keyframes awayIn { from { opacity: 0; transform: translateY(8px); } }
.away .ahead { display: flex; align-items: center; gap: 6px; font-size: 11px; letter-spacing: 2px; color: #9fd8a0; }
.away .ahead .atime { margin-left: auto; letter-spacing: 0; color: var(--muted); }
.away .atitle { margin-top: 6px; font-size: 20px; font-weight: 700; color: #fff0d0; letter-spacing: 1px; }
.away .asub { margin-top: 2px; color: var(--muted); font-size: 12px; }
.away .vitals { display: flex; flex-direction: column; gap: 7px; margin: 14px 0 16px; }
.vital { cursor: default; }
.vital .vl { display: flex; justify-content: space-between; font-size: 12px; color: #e8dcc4; }
.vital .vl em { font-style: normal; color: var(--muted); }
.vital i { display: block; height: 6px; margin-top: 3px; border-radius: 3px; overflow: hidden; background: rgba(255, 255, 255, 0.08); }
.vital b { display: block; height: 100%; border-radius: 3px; transition: width .6s ease; }
.away .aacts { display: flex; gap: 8px; }
.away .abtn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; border-radius: 12px; font-size: 14px; font-weight: 700; letter-spacing: 1px; text-decoration: none; color: #f0e0c0; border: 2px solid var(--dark, #1a0f07); background: linear-gradient(180deg, #6a4a30, #4a3220); box-shadow: inset 0 1px 0 rgba(255, 220, 160, 0.18), 0 3px 0 var(--dark, #1a0f07); }
.away .abtn.go { color: #3a2108; background: linear-gradient(180deg, #ffd977, #e89a3a); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 3px 0 var(--dark, #1a0f07); }
.away .abtn:hover { filter: brightness(1.08); }
.away .abtn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--dark, #1a0f07); }
.away .abtn.off { opacity: 0.5; cursor: default; filter: none; }
.away .pips { display: inline-flex; gap: 3px; margin-left: 2px; }
.away .pips i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 230, 180, 0.25); }
.away .pips i.on { background: #9fe0a0; }
/* 回家后的照顾：角色脚下的一小块（位置由 placeCare 按它站的地方算），三个动作做完就收起来 */
.care { position: fixed; left: 38%; top: 80%; translate: -50% 0; z-index: 5; display: none; text-align: center; background: rgba(20, 13, 8, 0.72); border: 1px solid rgba(240, 200, 120, 0.3); border-radius: 14px; padding: 8px 10px 10px; white-space: nowrap; backdrop-filter: blur(4px); }
.care.show { display: block; }
.care .ctit { font-size: 13px; color: #fff0d0; margin-bottom: 8px; }
.care .ctit small { color: var(--muted); margin-left: 6px; }
.care .cacts { display: flex; gap: 8px; justify-content: center; }
.care button { display: flex; align-items: center; gap: 5px; min-height: 40px; padding: 6px 11px; border-radius: 10px; cursor: pointer; font-size: 14px; font-weight: 700; color: var(--ink, #4a2e16); border: 2px solid var(--dark, #2a1a0c); background: linear-gradient(180deg, #fff6dc, #e6cf9c); box-shadow: inset 0 -2px 0 rgba(140, 90, 30, 0.25), 0 2px 0 var(--dark, #2a1a0c); }
.care button:active { transform: translateY(1px); }
.care button[disabled] { opacity: 0.6; cursor: default; }
.care button i { font-style: normal; font-size: 16px; }
/* 关掉远行小结之后跳一下，告诉玩家它在这儿等你 */
.care.nudge { animation: careNudge 0.9s ease 0.15s 2; }
@keyframes careNudge { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(-8px); border-color: rgba(255, 220, 140, 0.85); } }
/* 它想问你的问题：钉在聊天窗口最下面（输入框上面），金边一闪一闪，答完就收起 */
.feedask:empty { display: none; }
.feedask { pointer-events: auto; }
.feedask .ask.inchat { margin: 0; padding: 10px 12px; border-color: rgba(255, 214, 120, 0.7); background: linear-gradient(180deg, rgba(60, 40, 18, 0.92), rgba(36, 24, 12, 0.92)); animation: askGlow 1.6s ease-in-out infinite; }
.feedask .ask.inchat .askwho { color: #ffd77a; }
.feedask .ask.inchat .askq { font-size: 14px; }
.feedask .ask.inchat .askopts { gap: 6px; margin-top: 8px; }
.feedask .ask.inchat .askopts button { min-height: 34px; padding: 4px 10px; font-size: 13px; }
.feedask.nudge .ask { animation: careNudge 0.9s ease 0.15s 2, askGlow 1.6s ease-in-out infinite; }
@keyframes askGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 210, 110, 0); } 50% { box-shadow: 0 0 0 3px rgba(255, 210, 110, 0.35), 0 0 22px rgba(255, 200, 90, 0.35); } }
.feed.asking .fbar input { border-color: rgba(255, 214, 120, 0.6); }


.dock { position: fixed; left: 28px; bottom: 24px; z-index: 6; display: flex; flex-direction: row; gap: 10px; }
.dock button { width: 58px; height: 58px; border-radius: 12px; background: var(--wood); border: 1px solid var(--edge); color: var(--text); cursor: pointer; font-size: 14px; letter-spacing: 2px; backdrop-filter: blur(4px); transition: transform .15s, border-color .15s; }
.dock button:hover { transform: translateY(-3px); border-color: rgba(240, 200, 120, 0.5); color: #ffe0a0; }

.qchat { position: fixed; left: calc(40vw - 40px); top: calc(100vh - 282px); z-index: 7; width: 440px; height: 260px; min-width: 280px; min-height: 160px; max-width: calc(100vw - 20px); max-height: calc(100vh - 70px); display: flex; flex-direction: column; background: var(--wood); border: 1px solid var(--edge); border-radius: 12px; backdrop-filter: blur(6px); box-shadow: 0 8px 30px rgba(0,0,0,0.4); resize: both; overflow: hidden; }
.qchat.min { height: 40px !important; min-height: 0; resize: none; }
.qchat.max { resize: none; }
.qhead { display: flex; justify-content: space-between; align-items: center; padding: 6px 8px 6px 12px; border-bottom: 1px solid var(--edge); font-size: 13px; cursor: move; user-select: none; touch-action: none; flex: none; }
.qbtns { display: flex; gap: 4px; }
.qbtn { width: 24px; height: 24px; padding: 0; border-radius: 6px; background: transparent; border: 1px solid transparent; color: var(--muted); cursor: pointer; font-size: 13px; line-height: 1; }
.qbtn:hover { border-color: var(--edge); color: var(--text); background: rgba(255,255,255,0.05); }
.qhead b { color: #f6dca0; font-weight: 600; letter-spacing: 1px; }
.qmsgs { flex: 1; overflow-y: auto; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.qmsg { display: flex; gap: 8px; max-width: 88%; font-size: 13px; }
.qmsg .avatar { width: 22px; height: 22px; font-size: 11px; }
.qmsg .txt { background: rgba(80, 56, 36, 0.8); padding: 5px 11px; border-radius: 4px 12px 12px 12px; line-height: 1.55; }
.qmsg.me { align-self: flex-end; flex-direction: row-reverse; }
.qmsg.me .txt { background: rgba(70, 90, 130, 0.85); border-radius: 12px 4px 12px 12px; }
.qmsg .note { font-size: 11px; color: #f0c860; margin-top: 2px; }
.typing { color: var(--muted); font-size: 12px; }
.qbar { display: flex; gap: 6px; padding: 8px; border-top: 1px solid var(--edge); }
.qbar input { flex: 1; background: rgba(0,0,0,0.3); border: 1px solid var(--edge); border-radius: 8px; padding: 6px 10px; color: var(--text); }

.stash { position: fixed; top: 64px; right: 22px; bottom: 22px; z-index: 6; width: 372px; display: flex; flex-direction: column; gap: 10px; background: linear-gradient(180deg, rgba(36, 24, 15, 0.9), rgba(24, 16, 10, 0.92)); border: 1px solid var(--edge); border-radius: 14px; padding: 14px; backdrop-filter: blur(8px); box-shadow: 0 10px 40px rgba(0,0,0,0.5); overflow-y: auto; }
.sh { display: flex; justify-content: space-between; align-items: baseline; }
.sh h3 { margin: 0; font-size: 15px; color: #f6dca0; letter-spacing: 2px; font-weight: 600; }
.grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; }
.cell { position: relative; aspect-ratio: 1; border-radius: 9px; background: radial-gradient(circle at 50% 35%, rgba(255,255,255,0.08), rgba(0,0,0,0.25)); border: 1px solid rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; transition: transform .1s; }
.cell:hover { transform: translateY(-2px); }
.cell.blank { cursor: default; background: rgba(0,0,0,0.2); border-style: dashed; border-color: rgba(255,255,255,0.05); }
.cell.empty { opacity: 0.35; }
.cell .cnt { position: absolute; right: 4px; bottom: 2px; font-size: 12px; font-weight: 700; color: #fff; text-shadow: 0 1px 2px #000; }
.cell .uses, .slot .uses { position: absolute; left: 4px; top: 2px; font-size: 10px; color: #ffe0a0; text-shadow: 0 1px 2px #000; }
.cell .new { position: absolute; right: -4px; top: -5px; font-size: 10px; background: #e05a3a; color: #fff; border-radius: 6px; padding: 0 4px; }
.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); }
.rar { font-size: 11px; padding: 0 6px; border-radius: 4px; border: 1px solid; }
.rar.r-common { color: #c8c8d0; } .rar.r-uncommon { color: #7ac0f4; } .rar.r-rare { color: #f0c860; }
.detail { min-height: 76px; background: rgba(0,0,0,0.25); border-radius: 10px; padding: 10px; font-size: 13px; }
.detail .dt { display: flex; gap: 10px; }
.dicon { flex: none; width: 54px; height: 54px; border-radius: 10px; border: 1px solid; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.05); }
.detail .eff { color: #ffe0a0; margin: 3px 0; }
.slots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; }
.slot { position: relative; aspect-ratio: 1; border-radius: 50%; border: 2px solid rgba(240, 200, 120, 0.35); background: radial-gradient(circle, rgba(80, 56, 36, 0.8), rgba(30, 20, 12, 0.9)); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.slot.open { border-style: dashed; cursor: default; opacity: 0.55; }
.slot:not(.open):hover { filter: brightness(1.2); }
.coins { display: flex; align-items: center; gap: 10px; }
.coin { display: inline-flex; align-items: center; gap: 4px; color: #f6dca0; }
.coin b { font-size: 15px; }
.stash { bottom: auto; max-height: calc(100vh - 400px); }
.pack { display: flex; flex-direction: column; gap: 8px; background: rgba(0,0,0,0.2); border: 1px solid var(--edge); border-radius: 10px; padding: 10px; }
.pack .slots { gap: 9px; padding: 0 4px; }
.primary.big { display: block; width: 100%; padding: 12px; font-size: 16px; letter-spacing: 4px; border-radius: 10px; text-align: center; margin-top: 2px; box-shadow: 0 4px 20px rgba(224, 138, 58, 0.35); }
.primary.big:disabled { opacity: 0.6; cursor: wait; }

.modal { position: fixed; inset: 0; z-index: 20; background: rgba(5, 3, 2, 0.6); display: none; align-items: center; justify-content: center; backdrop-filter: blur(3px); }
.modal.show { display: flex; }
.mbox { background: #24180f; border: 1px solid var(--edge); border-radius: 14px; padding: 18px 22px; width: 520px; max-height: 86vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,0.6); }
.mbox.wide { width: min(860px, 92vw); }
.mbox h3 { margin: 0 0 6px; color: #f6dca0; letter-spacing: 1px; }
.mbox h4 { margin: 14px 0 6px; font-size: 13px; color: var(--muted); font-weight: 500; }
.mhead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.mact { display: flex; justify-content: flex-end; gap: 8px; margin: 12px 0; }
.pname { width: 100%; background: rgba(0,0,0,0.3); border: 1px solid var(--edge); border-radius: 8px; padding: 8px 12px; font-size: 16px; margin: 8px 0; color: var(--text); }
.field { margin: 10px 0; }
.field label { display: block; font-size: 13px; margin-bottom: 4px; }
.field textarea { width: 100%; background: rgba(0,0,0,0.3); border: 1px solid var(--edge); border-radius: 8px; padding: 7px 10px; color: var(--text); resize: vertical; }
.field textarea:disabled { opacity: 0.6; }
.nature-box { background: rgba(60, 50, 90, 0.25); border: 1px solid rgba(160, 140, 220, 0.25); border-radius: 10px; padding: 4px 14px 10px; }
.nature-box h4 { color: #c9b8f0; }
.nf { font-size: 13px; margin: 4px 0; white-space: pre-wrap; }
.nf b { color: var(--muted); font-weight: 500; margin-right: 8px; }
details.nature-box { margin-top: 14px; padding: 8px 14px; }
details.nature-box summary { cursor: pointer; color: #c9b8f0; font-size: 13px; }
/* 出门嘱咐：一句话 + 常用句 */
.words .wcard textarea { width: 100%; box-sizing: border-box; padding: 10px 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; line-height: 1.6; resize: none; }
.words .wchips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.words .wold { margin-top: 10px; padding: 8px 10px; border-radius: 8px; border: 1px dashed rgba(240, 200, 120, 0.3); }
.words .wold button { margin-left: 8px; }
.lifegrid { display: grid; grid-template-columns: 280px 1fr; gap: 18px; }
.lifegrid ul { margin: 0; padding-left: 16px; font-size: 13px; }
.self { background: rgba(0,0,0,0.25); border-radius: 8px; padding: 10px; font-size: 13px; line-height: 1.6; margin-bottom: 8px; }
.self small { color: var(--muted); display: block; margin-bottom: 4px; }
#radar { display: block; margin: 0 auto; }
.rel { font-size: 13px; margin-bottom: 4px; }
.life .rec-item { border-left: 3px solid rgba(240, 200, 120, 0.25); padding: 4px 0 10px 12px; position: relative; font-size: 13px; }
.life .rec-item::before { content: ''; position: absolute; left: -7px; top: 8px; width: 11px; height: 11px; border-radius: 50%; background: #6a5a46; }
.life .rec-item.win::before { background: #f0c860; }
.life .rec-item b { color: #f0c860; }
.life small { color: var(--muted); }
.mem { display: flex; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid rgba(240, 200, 120, 0.1); font-size: 13px; }
.mem .k { font-size: 11px; color: var(--muted); width: 48px; flex: none; }
.mem.big .k { color: #f0c860; }
.memDay { margin: 12px 0 2px; font-size: 12px; color: var(--muted); font-weight: normal; }
.memDay:first-child { margin-top: 0; }
.mem .s { cursor: help; width: 50px; height: 4px; background: rgba(0,0,0,0.3); border-radius: 2px; flex: none; overflow: hidden; }
.mem .s b { display: block; height: 100%; background: #f0c860; }
.lootHead { font-size: 16px; margin-bottom: 6px; }
.lootHead b { color: #f0c860; font-size: 20px; }
.lootRow { display: flex; flex-wrap: wrap; gap: 8px; }
.lootItem { display: flex; align-items: center; gap: 4px; padding: 3px 10px 3px 4px; border: 1px solid; border-radius: 18px; font-size: 13px; background: rgba(0,0,0,0.25); }
.toast { position: fixed; left: 50%; top: 70px; transform: translateX(-50%); z-index: 30; background: rgba(30, 20, 12, 0.95); border: 1px solid rgba(240, 200, 120, 0.4); padding: 8px 18px; border-radius: 20px; font-size: 13px; opacity: 0; transition: opacity .3s; pointer-events: none; }
.toast.show { opacity: 1; }
.itip { display: none; }
@media (max-width: 1100px) { .stash { width: 310px; } .away { left: 40%; } }

/* letter-spacing / text-indent 归零：放在字距很大的木牌标题里时，? 不会被挤偏 */
.qtip { flex: none; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; width: 15px; height: 15px; padding: 0; margin-left: 4px; border-radius: 50%; border: 1px solid var(--edge); color: var(--muted); font-size: 10px; font-weight: 700; line-height: 1; letter-spacing: 0; text-indent: 0; text-shadow: none; cursor: help; vertical-align: 1px; }
.qtip:hover, .qtip:focus { color: #f6dca0; border-color: rgba(240, 200, 120, 0.5); outline: none; }

.asec h4 { margin: 0; }

.hage { font-weight: 700; }
.htitle { display: inline-block; margin-left: 10px; vertical-align: middle; letter-spacing: 0; font-weight: 600; line-height: 1.5; padding: 0 9px; border-radius: 10px; font-size: 12px; color: #ffe0a0; background: rgba(240, 200, 96, 0.14); border: 1px solid rgba(240, 200, 96, 0.3); cursor: default; }

.hname .lv { margin-left: 10px; font-size: 13px; font-weight: 600; color: #f0c860; letter-spacing: 0; vertical-align: middle; }
.hmood { color: #ffd8a8; }
.hrow { margin: 14px 0 0 16px; display: flex; align-items: center; gap: 16px; pointer-events: auto; }
.hrow .hskills { margin: 0; }
.htogether b { color: #f6dca0; font-size: 15px; }
.hskills .skill, .hattr { position: relative; }
.hattrs { margin: 12px 0 0 16px; width: 104px; display: flex; flex-direction: column; gap: 4px; pointer-events: auto; text-shadow: none; }
.hattr { display: flex; align-items: center; gap: 4px; height: 26px; padding: 0 6px 0 9px; border-radius: 8px; background: linear-gradient(90deg, rgba(36, 25, 15, 0.78), rgba(24, 16, 10, 0.5)); border: 1px solid rgba(240, 200, 120, 0.18); border-left: 3px solid rgba(240, 200, 96, 0.55); cursor: help; backdrop-filter: blur(3px); }
.hattr .an { color: var(--muted); font-size: 11px; flex: 1; letter-spacing: 1px; }
.hattr .av { color: #f6dca0; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.hattr.up .av { color: #9ff0b0; }
.aplus { width: 16px; height: 16px; padding: 0; border-radius: 50%; border: 1px solid #f0c860; background: rgba(240, 200, 96, 0.2); color: #ffe0a0; cursor: pointer; line-height: 1; font-size: 11px; flex: none; }
.hpts { font-size: 11px; line-height: 1.4; color: #ffe0a0; text-shadow: 0 1px 4px rgba(0,0,0,0.8); }
.hpts b { color: #f0c860; }
.qchat.bubble { width: 56px !important; height: 56px !important; min-width: 0; min-height: 0; border-radius: 50%; resize: none; cursor: grab; padding: 0; align-items: center; justify-content: center; background: radial-gradient(circle at 35% 30%, rgba(90, 64, 40, 0.95), rgba(28, 19, 12, 0.95)); border: 2px solid var(--c, #f0c860); }
.qchat.bubble > :not(.qbub) { display: none !important; }
.qbub { display: none; position: relative; width: 100%; height: 100%; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; color: #fff3dc; user-select: none; touch-action: none; }
.qchat.bubble .qbub { display: flex; }
.qbub .unread { position: absolute; right: 2px; top: 2px; min-width: 16px; height: 16px; border-radius: 8px; background: #e05a3a; color: #fff; font-size: 10px; line-height: 16px; text-align: center; padding: 0 3px; }
.qbub .peek { position: absolute; bottom: 62px; left: 50%; transform: translateX(-50%); white-space: nowrap; max-width: 240px; overflow: hidden; text-overflow: ellipsis; font-size: 12px; font-weight: 400; background: rgba(36, 24, 15, 0.95); border: 1px solid var(--edge); border-radius: 10px; padding: 4px 10px; pointer-events: none; }
.mem.vague span:last-child { color: #c8b8a0; font-style: italic; }
.mem.faded span:last-child { color: #8a7a66; font-style: italic; }
.mem .c { font-size: 10px; color: var(--muted); width: 40px; flex: none; }
.miles { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.mile { font-size: 13px; display: flex; gap: 8px; }
.mile small { color: var(--muted); width: 74px; flex: none; }

/* 世界频道式的聊天：右下角，透明，旧消息往上走慢慢淡出 */
/* 聊天记录平时不挡鼠标（下面是桌子、灯，可以点着换款式）；移到输入框上 / 聚焦后才展开、能滚动看历史 */
.feed { position: fixed; right: 22px; bottom: 18px; z-index: 7; width: 400px; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.feed .fbar, .feed.peek, .feed.peek .fmsgs { pointer-events: auto; }
.fmsgs { height: 300px; overflow-y: hidden; display: flex; flex-direction: column; gap: 10px; padding: 8px 8px 8px 10px; border-radius: 10px; background: rgba(10, 6, 3, 0); opacity: 0.7; transition: opacity .25s, background .25s; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 30%); mask-image: linear-gradient(to bottom, transparent 0, #000 30%); }
.fmsgs > :first-child { margin-top: auto; }
.feed.peek .fmsgs { overflow-y: auto; opacity: 0.88; background: rgba(10, 6, 3, 0.3); }
.fmsg { font-size: 14px; line-height: 1.6; color: #f6ecdc; text-shadow: 0 1px 2px #000, 0 0 6px rgba(0,0,0,0.85); transition: opacity 4s ease; word-break: break-word; animation: fin .35s ease; }
.fmsg b { font-weight: 600; }
.fmsg.me { color: #dbe6ff; }
.fmsg.old { opacity: 0.45; }
.feed.peek .fmsg.old { opacity: 1; transition: opacity .2s; }
.fmsg.typing { color: var(--muted); font-size: 12px; }
.fmsg.sys { font-size: 11px; color: rgba(214, 200, 180, 0.5); text-shadow: none; }
.hname .aibadge { font-size: 11px; padding: 3px 5px; margin-left: 10px; vertical-align: middle; letter-spacing: 1px; }
.aibadge { display: inline-block; font-size: 9px; font-weight: 700; letter-spacing: 1px; line-height: 1; padding: 2px 4px; margin-left: 4px; border-radius: 4px; color: #1a1205; background: #b8d8ff; vertical-align: 2px; text-shadow: none; cursor: help; }
.fnote { font-size: 11px; color: #f0c860; }
@keyframes fin { from { opacity: 0; transform: translateY(6px); } }
.fbar input { width: 100%; box-sizing: border-box; background: rgba(0, 0, 0, 0.28); border: 1px solid rgba(240, 200, 120, 0.18); border-radius: 18px; padding: 7px 14px; color: var(--text); font-size: 13px; outline: none; transition: background .2s, border-color .2s; }
.fbar input:focus { background: rgba(0, 0, 0, 0.5); border-color: rgba(240, 200, 120, 0.5); }
/* 挑战场入口：每个竞技场一张卡，配色和插画按竞技场来 */
.portals { position: fixed; top: 64px; right: 410px; z-index: 6; width: 220px; display: flex; flex-direction: column; gap: 10px; }
.portal { position: relative; overflow: hidden; height: 72px; padding: 0 16px; border-radius: 14px; border: 1px solid; display: flex; align-items: center; text-align: left; color: #fff; cursor: pointer; isolation: isolate; transition: transform .15s, filter .15s, box-shadow .2s; }
.portal .art { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.portal .ptxt { display: flex; flex-direction: column; gap: 1px; text-shadow: 0 1px 4px rgba(0,0,0,0.55); }
.portal small { font-size: 10px; letter-spacing: 3px; opacity: .8; }
.portal b { font-size: 21px; letter-spacing: 5px; line-height: 1.15; }
.portal em { font-style: normal; font-size: 11px; opacity: .9; display: inline-flex; align-items: center; gap: 4px; }
.portal::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.28) 45%, transparent 60%); transform: translateX(-120%); }
.portal:not([disabled]):hover { transform: translateY(-2px); filter: brightness(1.08); }
.portal:not([disabled]):hover::after { animation: sheen 1.1s ease; }
@keyframes sheen { to { transform: translateX(120%); } }
.ar-island { background: linear-gradient(160deg, #0b3550 0%, #11708c 55%, #34b8b2 100%); border-color: rgba(127, 227, 255, 0.65); box-shadow: 0 6px 26px rgba(40, 180, 220, 0.45), inset 0 0 18px rgba(127, 227, 255, 0.2); animation: tide 3.2s ease-in-out infinite; }
.ar-island .waves { animation: waves 6s linear infinite; }
@keyframes waves { to { transform: translateX(60px); } }
@keyframes tide { 50% { box-shadow: 0 6px 34px rgba(40, 180, 220, 0.7), inset 0 0 22px rgba(127, 227, 255, 0.35); } }
.ar-island.live { border-color: #7ef0a0; }
.ar-trial { background: linear-gradient(160deg, #10261a 0%, #2c6a3e 55%, #8fbf6a 100%); border-color: rgba(255, 211, 74, 0.6); box-shadow: 0 6px 24px rgba(120, 200, 110, 0.35), inset 0 0 16px rgba(255, 211, 74, 0.18); animation: tide 3.2s ease-in-out infinite; }
.ar-trial.live { border-color: #7ef0a0; }
.ar-snowpeak { background: linear-gradient(160deg, #1d2840 0%, #4f6587 55%, #bcd6ee 100%); border-color: rgba(220, 240, 255, 0.55); box-shadow: 0 6px 22px rgba(160, 200, 240, 0.25); }
.ar-snowpeak .snow { animation: snow 5s linear infinite; }
@keyframes snow { from { transform: translateY(-12px); } to { transform: translateY(14px); } }
.portal.locked { cursor: not-allowed; filter: saturate(0.55) brightness(0.8); }
.portal.locked em { color: #dfe9f5; }
@media (max-width: 1100px) { .portals { right: 346px; } .feed { width: 330px; } }

/* 身上穿戴：三个槽位（头 / 身上 / 手里），空槽位写着位置 */
.wear .slots { grid-template-columns: repeat(3, 1fr); max-width: 60%; }
.wear .slot.open { opacity: 0.7; }
.wear .slot .wl { position: absolute; bottom: -15px; left: 0; right: 0; text-align: center; font-size: 10px; color: #d8c8a8; }
.wear { padding-bottom: 14px; }

/* 远行回来的小结 */
.trip h4 { margin: 16px 0 8px; font-size: 13px; color: #f6dca0; font-weight: 700; letter-spacing: 1px; }
.tripHead { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; }
.tripHead b { font-size: 22px; color: #e8d6b4; }
.tripHead.good b { color: #f0c860; }
.tripHead span { color: var(--muted); font-size: 13px; }
.tripLine { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: #e8d6b4; }
.tripLine li { display: flex; align-items: baseline; gap: 10px; }
.tripLine li::before { content: '●'; font-size: 9px; color: #f0c860; }
.tripLine small { min-width: 38px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tripLine li.miss { color: var(--muted); }
.tripLine li.miss::before { content: '○'; color: var(--muted); }
.tripTop { display: grid; grid-template-columns: 270px 1fr; gap: 24px; align-items: start; }
.tripTop.nophoto { grid-template-columns: 1fr; }
.tripMain { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.tripPics { display: flex; flex-direction: column; gap: 8px; }
.tripPhotos.pcards { margin: 4px 0 0; gap: 10px; }
.tripPhotos .pc:first-child { width: 270px; padding: 7px 7px 0; }
.tripPhotos .pc:first-child .ph { width: 256px; height: 171px; }
.tripPhotos .pc:not(:first-child) { width: 130px; padding: 5px 5px 0; }
.tripPhotos .pc:not(:first-child) .ph { width: 120px; height: 80px; }
.tripPhotos .pc:not(:first-child) .tx { font-size: 11px; padding: 4px 2px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tripPhotos .pc:not(:first-child) .pmark { width: 22px; height: 28px; top: -4px; right: 6px; }
.tripHint { font-size: 12px; color: var(--muted); text-align: center; }
.tripMain h4 { margin: 0 0 6px; }
.tripNote { margin: 6px 0 0; font-size: 12px; line-height: 1.6; color: var(--muted); }
/* 首屏放不下就让右边一栏自己滚（照片、「这一路」和欢迎回家留在原地），不缩字 */
.mbox:has(> .pbody > .trip) { max-height: 94vh; }
.tripMain, .tripPics { max-height: calc(94vh - 215px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.tripMain { padding-right: 4px; }
.tripPics { overflow-x: hidden; padding: 4px 6px 6px; margin: -4px -6px 0; }
.tshare { flex: none; width: 28px; height: 28px; margin: -4px auto -4px -4px; padding: 5px; border: 0; border-radius: 50%; background: none; color: #c8b090; cursor: pointer; }
.tshare svg { display: block; width: 100%; height: 100%; }
.tshare:hover { color: #ffe0a0; background: rgba(240, 200, 120, 0.12); }
.tshare:disabled { opacity: .5; cursor: default; }
.tripLearn p, .tripMet .tmrow { margin: 4px 0 0; font-size: 13px; line-height: 1.7; color: #e8dcc4; }
.tripLearn .tlq { color: #fff3dc; }
.tripLearn .tlq::before { content: '“'; color: #f0c860; margin-right: 2px; }
.tripLearn .tlq::after { content: '”'; color: #f0c860; margin-left: 2px; }
.tripLearn .tlself { color: var(--muted); font-size: 12px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; cursor: pointer; }
.tripLearn .tlself.open { display: block; }
.tripLearn .tlattr { font-size: 12px; color: #f6dca0; }
.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; }
.tripMet .tmrow em.down { background: rgba(240, 170, 100, 0.18); color: #ffd0a0; }
.tripMet .tmq::before { content: '“'; color: #f0c860; }
.tripMet .tmq::after { content: '”'; color: #f0c860; }
.tripMore { margin-top: 14px; border-top: 1px solid rgba(240, 200, 120, 0.14); padding-top: 10px; }
.tripMore > summary { cursor: pointer; font-size: 13px; color: #f0c860; padding: 4px 0; list-style: none; }
.tripMore > summary::-webkit-details-marker { display: none; }
.tripMore > summary::before { content: '▸'; display: inline-block; margin-right: 6px; transition: transform .15s; }
.tripMore[open] > summary::before { transform: rotate(90deg); }
.tripMems p { margin: 4px 0 0; font-size: 13px; color: #d8c8a8; line-height: 1.7; }
.tripAct { position: sticky; bottom: -18px; z-index: 2; display: flex; justify-content: center; margin: 6px -22px -18px; padding: 22px 22px 16px; background: linear-gradient(180deg, rgba(36, 24, 15, 0), #24180f 40%); }
.tripAct .primary.big { width: 240px; }
.tripAct .primary.big:focus-visible { outline: 2px solid #ffe8a8; outline-offset: 2px; }
.tripFeel { padding: 14px 16px; 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: 15px; line-height: 1.8; 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; }
.causes { display: flex; flex-direction: column; gap: 6px; }
.cause { display: flex; align-items: flex-start; gap: 8px; padding: 8px 12px; border-radius: 10px; font-size: 14px; 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; margin-top: 1px; }
.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 4px; font-size: 12px; color: var(--muted); align-items: center; }
.cause .cdot { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: rgba(140, 210, 140, 0.25); }
.cause.miss .cdot { background: rgba(240, 170, 100, 0.3); }
.cmore > summary { cursor: pointer; font-size: 12px; color: var(--gold1, #f0c860); padding: 2px 4px; }
.cmore > .cause { margin-top: 6px; }
.tripCols { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; }
.tripCols > div:only-child { grid-column: 1 / -1; }
.tripStory, .tripEvents { 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: 10px; font-size: 13px; line-height: 1.7; color: #e8dcc4; }
.tripStory small, .tripEvents small { display: block; font-size: 11px; color: var(--muted); }
.tripEvents li.world { color: #b8c4d8; }
.tripEvents li.moment { color: #f6dca0; font-weight: 600; }
@media (max-width: 760px) { .tripCols, .tripTop { grid-template-columns: 1fr; } .tripPics { align-items: center; } .tripMain, .tripPics { max-height: none; } }

/* 相册：一张张拍立得，挂在墙上的那几张别着一颗金色图钉 */
.album .ahead { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.album .ahead b { color: #f0c860; }
.album .agrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 18px 16px; padding: 6px 4px 4px; }
.album .apc { position: relative; padding: 8px 8px 6px; background: #fbf6ea; border-radius: 3px; box-shadow: 0 6px 16px rgba(0,0,0,.45); transform: rotate(var(--r)); transition: transform .15s; }
.album .apc:hover { transform: rotate(0) translateY(-2px); }
.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,.5); }
.album .aimg { display: block; width: 100%; aspect-ratio: 3 / 2; padding: 0; border: none; background: #2a2018 center / cover; cursor: zoom-in; }
.album .atx { padding: 6px 2px 4px; color: #4a3a2a; font-size: 12.5px; line-height: 1.4; text-align: center; }
.album .atx small { display: block; color: #9a8a74; font-size: 11px; }
.album .aacts { display: flex; justify-content: space-between; gap: 6px; }
.album .aacts button { display: inline-flex; align-items: center; gap: 3px; padding: 3px 8px; border-radius: 8px; border: 1px solid #d8c8a8; background: #f2e8d4; color: #6a5236; font: inherit; font-size: 11.5px; cursor: pointer; }
.album .aacts .apin.on { background: linear-gradient(180deg, #ffd977, #e89a3a); border-color: #b8762a; color: #3a2108; }
.album .aacts button:disabled { opacity: .5; cursor: default; }
.album .aacts .adel:hover { color: #b8442e; border-color: #c88a7a; }
.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: 11.5px; letter-spacing: 2px; margin: 0 0 6px; }
.catalog .cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 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: 12px; 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: 11px; }
.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); }
.catalog .ccell.got:hover { transform: translateY(-2px); }
.tripPhotos .pc:not(:first-child) .pnew { width: 26px; height: 26px; top: 28px; right: 6px; font-size: 12px; }
.tripPhotos .pc:not(:first-child) .pmeta { font-size: 10px; }
.tripBecause .tbsaid { margin: 0 0 4px; font-size: 12px; line-height: 1.6; color: var(--muted); }
