body.town { background: #0d0906; }
.town .room::after { background: radial-gradient(ellipse at 50% 55%, transparent 60%, rgba(0,0,0,0.3) 100%); }
.town .cbar { background: linear-gradient(180deg, rgba(10,6,3,0.6), transparent); }
.thint { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 6; background: var(--wood); border: 1px solid var(--edge); border-radius: 20px; padding: 8px 18px; font-size: 13px; color: var(--muted); backdrop-filter: blur(6px); }
.thint b { color: #f6dca0; font-weight: 600; }
.thint a { margin-left: 8px; }

.tlabels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 2; }
.tlabel { position: absolute; left: 0; top: 0; white-space: nowrap; font-size: 12px; padding: 2px 9px; border-radius: 10px; background: rgba(20, 13, 8, 0.72); color: #f0e6d6; transition: opacity .2s; }
.tlabel.bld { pointer-events: auto; cursor: pointer; font-size: 14px; font-weight: 600; letter-spacing: 2px; padding: 4px 12px; color: #fff3c0; border: 1px solid rgba(240, 200, 120, 0.45); }
.tlabel.bld.sky { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 5px 14px; color: #fff4d8; background: rgba(28, 34, 66, 0.78); border-color: rgba(255, 212, 106, 0.7); box-shadow: 0 0 14px rgba(255, 212, 106, 0.35); }
.tlabel.bld.sky small { font-size: 11px; font-weight: 400; letter-spacing: 1px; color: #c8d0f0; }
.tlabel.bld.sky:hover small { color: #3a2108; }
.tlabel.bld.hot, .tlabel.bld:hover { background: linear-gradient(135deg, #f0c860, #e08a3a); color: #1a1205; }
.tlabel.who { font-size: 11px; background: rgba(20, 13, 8, 0.55); }
.tlabel.who.walker { pointer-events: auto; cursor: pointer; border: 1px solid rgba(240, 200, 120, 0.35); }
.tlabel.who.walker:hover { background: linear-gradient(135deg, #f0c860, #e08a3a); color: #1a1205; }

.shop { display: grid; grid-template-columns: 1fr 280px; gap: 18px; }
.stabs { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.stabs button { padding: 6px 20px; border-radius: 16px; background: rgba(0,0,0,0.25); border: 1px solid var(--edge); color: var(--muted); cursor: pointer; }
.stabs button.on { color: #1a1205; background: linear-gradient(135deg, #f0c860, #e08a3a); border-color: transparent; font-weight: 600; }
.sbal { margin-left: auto; }
.sgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.scell { position: relative; aspect-ratio: 1; border-radius: 10px; 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 0 12px; }
.scell.sel { outline: 2px solid #f0c860; outline-offset: 1px; }
.scell .cnt { position: absolute; right: 5px; top: 3px; font-size: 12px; font-weight: 700; color: #fff; text-shadow: 0 1px 2px #000; }
.scell .uses { position: absolute; left: 5px; top: 3px; font-size: 10px; color: #ffe0a0; text-shadow: 0 1px 2px #000; }
.scell .price { position: absolute; left: 0; right: 0; bottom: 3px; text-align: center; font-size: 12px; color: #f6dca0; font-weight: 600; }
.scell .price::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #e0a830; margin-right: 3px; vertical-align: 0; }
.sside { display: flex; flex-direction: column; gap: 8px; background: rgba(0,0,0,0.22); border: 1px solid var(--edge); border-radius: 12px; padding: 14px; font-size: 13px; align-self: start; }
.sside .dt { display: flex; gap: 10px; align-items: center; }
.sside .eff { color: #ffe0a0; }
.sside .primary.big:disabled { opacity: 0.45; cursor: not-allowed; }
@media (max-width: 760px) { .shop { grid-template-columns: 1fr; } }

.town .room canvas.gl { animation: glin .45s ease both; }

.thint .rbtn { margin-left: 12px; padding: 3px 12px; border-radius: 14px; }
.reno { position: fixed; top: 64px; right: 22px; bottom: 22px; z-index: 8; width: 380px; display: none; flex-direction: column; gap: 8px; background: linear-gradient(180deg, rgba(36, 24, 15, 0.92), rgba(24, 16, 10, 0.94)); 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; font-size: 13px; }
.reno.show { display: flex; }
.reno .rhead { display: flex; justify-content: space-between; align-items: center; }
.reno h3 { margin: 0; color: #f6dca0; letter-spacing: 1px; }
.rstore { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 8px 10px; background: rgba(0,0,0,0.22); border: 1px solid var(--edge); border-radius: 10px; }
.mchip { display: inline-flex; align-items: center; gap: 2px; padding: 1px 6px 1px 2px; border-radius: 10px; background: rgba(0,0,0,0.25); font-size: 12px; color: #f0e6d6; }
.mchip.short { color: #ff9a8a; background: rgba(120, 30, 20, 0.35); }
.rtier { padding: 10px 12px; border: 1px solid rgba(255,255,255,0.06); border-radius: 12px; background: rgba(0,0,0,0.16); display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.rtier.next { border-color: rgba(240, 200, 96, 0.4); background: linear-gradient(180deg, rgba(240, 200, 96, 0.1), rgba(0,0,0,0.12)); }
.rt1 { display: flex; align-items: baseline; gap: 8px; }
.rt1 b { color: #f6dca0; font-size: 15px; }
.rt1 .rlv { font-size: 11px; font-weight: 700; color: #3a2108; background: linear-gradient(180deg, #ffd977, #e89a3a); border-radius: 6px; padding: 1px 6px; }
.rtier.now .rlv { color: #f0e0c0; background: rgba(255,255,255,0.14); }
.rt1 .muted { margin-left: auto; }
.rt3 { font-size: 12px; color: #e8dcc4; }
.rt3 b { color: #f0c860; }
.rladder { display: flex; gap: 4px; margin: 4px 0 8px; }
.rladder span { flex: 1; height: 20px; display: grid; place-items: center; font-size: 11px; border-radius: 5px; color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.08); cursor: default; }
.rladder span.on { color: #3a2108; background: linear-gradient(90deg, #f0c860, #e08a3a); }
.rladder span.cur { outline: 2px solid #fff0c0; }
.rpart { padding: 8px 10px; border: 1px solid rgba(255,255,255,0.06); border-radius: 10px; background: rgba(0,0,0,0.16); display: flex; flex-direction: column; gap: 6px; }
.rp1 { display: flex; align-items: center; gap: 8px; }
.rp1 b { color: #f6dca0; width: 36px; }
.rp1 .pips { margin-left: auto; display: flex; gap: 3px; }
.rp1 .pips i { width: 14px; height: 5px; border-radius: 3px; background: rgba(255,255,255,0.12); }
.rp1 .pips i.on { background: linear-gradient(90deg, #f0c860, #e08a3a); }
.rp2 { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rp2 .costs { display: flex; gap: 4px; flex-wrap: wrap; }
.rp2 button { margin-left: auto; }
.rp2 button:disabled { opacity: 0.45; cursor: not-allowed; }

.ltabs { display: flex; flex-wrap: wrap; gap: 4px; }
.ltabs button { padding: 3px 10px; border-radius: 12px; background: rgba(0,0,0,0.25); border: 1px solid var(--edge); color: var(--muted); cursor: pointer; font-size: 12px; }
.ltabs button.on { color: #1a1205; background: linear-gradient(135deg, #f0c860, #e08a3a); border-color: transparent; font-weight: 600; }
.lgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.lcard { display: flex; flex-direction: column; gap: 4px; padding: 7px 8px; border-radius: 10px; background: rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.06); border-left: 3px solid var(--rar); }
.lcard.on { background: rgba(240, 200, 96, 0.12); border-color: rgba(240, 200, 96, 0.5); border-left-color: var(--rar); }
.lc1 { display: flex; align-items: center; gap: 5px; }
.lc1 b { color: var(--text); font-weight: 600; font-size: 13px; }
.lc1 .rar { margin-left: auto; font-size: 10px; }
.lc2 { display: flex; flex-wrap: wrap; gap: 4px; min-height: 4px; }
.lc3 { display: flex; align-items: center; gap: 4px; }
.lc3 button { margin-left: auto; padding: 2px 8px; font-size: 11px; }
.lc3 button:disabled { opacity: 0.45; cursor: not-allowed; }
.lcard .sw { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.4); flex: none; }
.lprice { display: inline-flex; align-items: center; gap: 2px; color: #f6dca0; font-size: 12px; }
.lprice s { color: var(--muted); font-size: 10px; margin-left: 2px; }
.badge { font-size: 10px; padding: 0 6px; border-radius: 8px; }
.badge.hot { background: rgba(240, 90, 60, 0.25); color: #ff9a80; }
.badge.lim { background: rgba(240, 160, 64, 0.2); color: #f0b060; }
.tlabel.who.walker.hot { background: linear-gradient(135deg, #f0c860, #e08a3a); color: #1a1205; }
.thint .street { color: #f6dca0; margin-right: 12px; }
.tlabel.bld.mine { border-color: rgba(120, 216, 154, 0.6); }
.tlabel.say { max-width: 220px; white-space: normal; font-size: 13px; padding: 6px 10px; border-radius: 12px; background: #fff8e6; color: #2a1a0a; box-shadow: 0 3px 10px rgba(0,0,0,0.35); }
.reno.visit { bottom: auto; width: 340px; max-height: calc(100vh - 86px); gap: 10px; }
.visit .rhead { align-items: flex-start; }
.visit #vtitle { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; letter-spacing: 0; }
.visit .vava { width: 38px; height: 38px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 17px; font-weight: 700; color: #1a1205; background: radial-gradient(circle at 35% 30%, #ffe6a6, #d89a40); border: 2px solid rgba(255, 230, 170, 0.6); }
.visit .vname { display: flex; flex-direction: column; min-width: 0; }
.visit .vname b { font-size: 16px; color: #f6dca0; }
.visit .vname small { font-size: 11px; font-weight: 400; color: var(--muted); }
.vpill { margin-left: auto; flex: none; font-size: 11px; font-weight: 500; padding: 2px 9px; border-radius: 10px; }
.vpill.home { background: rgba(120, 216, 154, 0.16); color: #9ff0b0; }
.vpill.out { background: rgba(240, 200, 96, 0.18); color: #ffe0a0; }
.vpill.away { background: rgba(255,255,255,0.08); color: var(--muted); }
.vknew { padding: 7px 10px; border-radius: 10px; background: rgba(120, 180, 240, 0.08); border: 1px solid rgba(120, 180, 240, 0.18); font-size: 12px; color: #c8dcf4; }
.vknew p { margin: 4px 0 0; color: var(--muted); font-style: italic; }
.vchat { display: flex; flex-direction: column; gap: 6px; padding: 12px; min-height: 64px; justify-content: center; background: rgba(0,0,0,0.22); border: 1px solid var(--edge); border-radius: 12px; }
.vsay { align-self: flex-start; max-width: 92%; background: #fff8e6; color: #2a1a0a; padding: 6px 11px; border-radius: 12px 12px 12px 3px; line-height: 1.55; animation: vpop .2s ease both; }
.vsay small { display: block; font-size: 10px; color: #8a6a40; }
.vsay.old { opacity: 0.6; }
.vsay.typing { display: flex; gap: 4px; padding: 9px 12px; }
.vsay.typing i { width: 6px; height: 6px; border-radius: 50%; background: #8a6a40; animation: vdot 1s infinite; }
.vsay.typing i:nth-child(2) { animation-delay: .15s; } .vsay.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes vdot { 0%, 100% { opacity: .25; transform: none; } 50% { opacity: 1; transform: translateY(-2px); } }
@keyframes vpop { from { opacity: 0; transform: translateY(4px); } }
.vempty { text-align: center; color: var(--muted); font-size: 12px; }
.vacts { display: flex; gap: 6px; align-items: center; }
.vacts .primary { flex: 1; }
.vlike { margin-left: auto; color: #ff8a9a; }
.likes { color: #ff8a9a; }
.vlike.on { opacity: 0.7; }
.vtabs { display: flex; gap: 4px; border-bottom: 1px solid var(--edge); }
.vtabs button { padding: 6px 10px; background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted); cursor: pointer; font-size: 12px; margin-bottom: -1px; }
.vtabs button.on { color: #f6dca0; border-bottom-color: #f0c860; }
.vtabs small { opacity: 0.7; }
.vnote, .vgift { display: flex; gap: 6px; align-items: center; }
.vnote input, .vgift select { flex: 1; background: rgba(0,0,0,0.3); border: 1px solid var(--edge); border-radius: 8px; padding: 5px 9px; color: var(--text); }
.vgift select + select { flex: 0 0 56px; }
.vboard { display: flex; flex-direction: column; gap: 4px; max-height: 200px; overflow-y: auto; }
.bline { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; padding: 3px 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
.bline .muted { margin-left: auto; }
.bline svg { vertical-align: -3px; }
.board { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; }
.board section h4 { margin-top: 0; }
.schip { display: inline-block; margin: 0 6px 6px 0; padding: 4px 12px; border-radius: 14px; border: 1px solid var(--edge); color: var(--text); }
.schip.on { background: linear-gradient(135deg, #f0c860, #e08a3a); color: #1a1205; border-color: transparent; }
@media (max-width: 760px) { .board { grid-template-columns: 1fr; } }

/* 码头：渡口面板 */
.pier p { margin: 0 0 10px; line-height: 1.6; }
.pier .prow { margin: 8px 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pier .pmods { margin: 6px 0 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pier .pmod { background: rgba(120, 170, 255, 0.18); border: 1px solid rgba(140, 180, 255, 0.45); color: #cfe0ff; border-radius: 10px; padding: 1px 8px; font-size: 12px; }
.pier .pgear { display: inline-flex; border-radius: 6px; padding: 2px; background: rgba(255, 255, 255, 0.06); }
.pier .pconfirm { margin: 14px 0 8px; padding: 12px 14px; border: 1px solid rgba(240, 200, 120, 0.4); border-radius: 10px; background: rgba(240, 183, 90, 0.08); }
.pier .pconfirm b { display: block; margin-bottom: 4px; color: #ffd98a; }
.pier .pbtns { display: flex; gap: 8px; margin-top: 10px; }
.pier .pstate { margin: 14px 0 8px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* 右上角：当前所在（镇中心 / 第 N 条街）· 日期 · 时间 · 天气 */
.placepill { display: inline-flex; align-items: center; gap: 6px; margin-right: 10px; padding: 3px 12px; border-radius: 14px; background: rgba(20, 13, 8, 0.55); border: 1px solid rgba(240, 200, 120, 0.25); color: #e8dcc6; font-size: 12px; white-space: nowrap; }
.placepill:empty { display: none; }
.placepill b { color: #f6dca0; font-weight: 600; }
.placepill.center { border-color: rgba(240, 200, 96, 0.6); background: rgba(60, 40, 12, 0.7); }
.placepill small { color: var(--muted); font-size: 11px; }
.clockpill { display: inline-flex; align-items: center; gap: 8px; margin-right: 10px; padding: 3px 12px; border-radius: 14px; background: rgba(20, 13, 8, 0.55); border: 1px solid rgba(240, 200, 120, 0.25); color: #e8dcc6; font-size: 12px; }
.clockpill b { font-size: 14px; color: #fff3c0; letter-spacing: 1px; }
.clockpill b.fake { color: #7ef0a0; }
.clockpill .wx { display: inline-flex; align-items: center; gap: 3px; }

.bld.idle { opacity: 0.5; filter: grayscale(0.8); }

/* 当前任务：右侧中间的任务追踪 */
.quests { position: fixed; top: 50%; right: 0; padding-right: 22px; transform: translateY(-50%); z-index: 7; width: 270px; display: flex; flex-direction: column; gap: 6px; transition: transform .35s cubic-bezier(.3, .8, .3, 1); }
.quests.folded { transform: translate(100%, -50%); }
.quests .qtab { position: absolute; left: -38px; top: 50%; transform: translateY(-50%); width: 38px; padding: 12px 0 10px; display: flex; flex-direction: column; align-items: center; gap: 6px; border-radius: 12px 0 0 12px; border: 1px solid rgba(240, 200, 96, 0.5); border-right: none; background: linear-gradient(180deg, rgba(56, 38, 20, 0.92), rgba(30, 20, 12, 0.92)); color: #f6dca0; cursor: pointer; font: inherit; opacity: 0; pointer-events: none; transition: opacity .25s, left .15s; box-shadow: -4px 4px 14px rgba(0,0,0,0.35); }
.quests .qtab b { writing-mode: vertical-rl; font-size: 13px; letter-spacing: 4px; }
.quests .qtab span { min-width: 18px; height: 18px; border-radius: 9px; background: #f0c860; color: #2a1a08; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.quests .qtab:hover { left: -42px; }
.quests.folded .qtab { opacity: 1; pointer-events: auto; }
.quests.folded .qhead, .quests.folded .quest { pointer-events: none; }
body:has(.reno.show) .quests { display: none; }
.quests .qhead { display: flex; align-items: center; justify-content: space-between; padding: 6px 12px; border-radius: 10px; border: 1px solid var(--edge); background: rgba(24, 16, 10, 0.78); backdrop-filter: blur(6px); color: #f6dca0; cursor: pointer; font: inherit; font-size: 13px; letter-spacing: 2px; }
.quests .qhead span { color: var(--muted); font-size: 11px; letter-spacing: 0; }
.quest { display: flex; gap: 10px; align-items: flex-start; padding: 9px 12px; text-align: left; border-radius: 10px; border: 1px solid rgba(240, 200, 120, 0.18); background: linear-gradient(180deg, rgba(40, 27, 16, 0.86), rgba(26, 18, 11, 0.86)); backdrop-filter: blur(6px); color: var(--text); cursor: pointer; font: inherit; transition: border-color .15s, transform .1s; }
.quest:hover { border-color: rgba(240, 200, 120, 0.55); transform: translateX(-2px); }
.quest i { flex: none; width: 10px; height: 10px; margin-top: 4px; transform: rotate(45deg); border: 2px solid #c8a868; border-radius: 2px; }
.quest.main { border-color: rgba(240, 200, 96, 0.5); box-shadow: 0 0 0 1px rgba(240, 200, 96, 0.15), 0 4px 16px rgba(0,0,0,0.35); }
.quest.main i { background: #f0c860; border-color: #f0c860; box-shadow: 0 0 8px rgba(240, 200, 96, 0.7); }
.quest span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.quest b { font-size: 13px; color: #f6dca0; font-weight: 600; }
.quest small { font-size: 11px; color: var(--muted); line-height: 1.5; }
@media (max-width: 760px) { .quests { display: none; } }
