:root { --bg: #111318; --panel: #181b22; --panel2: #1f232c; --line: #2a2f3a; --text: #e2e5ec; --muted: #8b92a3; --gold: #f0c860; --red: #f07a7a; --green: #78d89a; --blue: #7ab4f0; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.55 -apple-system, "PingFang SC", "Helvetica Neue", sans-serif; }
button, select, input, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
.ghost { background: transparent; border: 1px solid var(--line); border-radius: 6px; padding: 3px 10px; cursor: pointer; }
.ghost:hover { border-color: #4a5266; }
.primary { background: linear-gradient(135deg, #f0c860, #e08a3a); color: #1a1205; font-weight: 600; border: 0; border-radius: 6px; padding: 5px 12px; cursor: pointer; }
.pill { font-size: 12px; color: var(--muted); }
.empty { color: var(--muted); padding: 30px 10px; text-align: center; }

.top { display: grid; grid-template-columns: auto 1fr auto auto; gap: 18px; align-items: center; padding: 10px 16px; background: var(--panel); border-bottom: 1px solid var(--line); }
.brand b { font-size: 16px; letter-spacing: 2px; margin-right: 8px; }
.brand span { color: var(--muted); font-size: 13px; }
.actions { display: flex; gap: 6px; align-items: center; }
.weather { font-size: 13px; color: var(--muted); white-space: nowrap; }
.weather b { color: var(--text); }
.timeline { display: flex; gap: 4px; align-items: center; min-width: 260px; }
.day { flex: 1; position: relative; height: 22px; border-radius: 5px; background: var(--panel2); overflow: hidden; }
.day .fill { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #3a5a8a, #5a8ad0); }
.day .night { position: absolute; top: 0; bottom: 0; right: 0; width: 33%; background: rgba(10,14,40,0.55); }
.day span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 6px; font-size: 11px; }
.day .tag { color: #ffd9a0; }

.layout { display: grid; grid-template-columns: 790px 1fr; gap: 14px; padding: 14px; height: calc(100vh - 56px); }
.stage { display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.mapbox { position: relative; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); width: 770px; }
#map { display: block; width: 768px; height: 512px; }
.tip { position: absolute; pointer-events: none; background: rgba(15,17,22,0.95); border: 1px solid var(--line); padding: 6px 8px; border-radius: 6px; font-size: 12px; white-space: pre-wrap; display: none; max-width: 260px; }
.banner { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); background: rgba(15,17,22,0.85); border: 1px solid #4a5266; padding: 6px 14px; border-radius: 20px; font-size: 13px; opacity: 0; transition: opacity .4s; pointer-events: none; max-width: 90%; text-align: center; }
.banner.show { opacity: 1; }
.replay { display: flex; gap: 8px; align-items: center; width: 770px; }
.replay input { flex: 1; }
.replay span { font-size: 12px; color: var(--muted); min-width: 90px; }

.players { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; width: 770px; }
.pc { background: var(--panel); border-radius: 8px; padding: 8px 10px; border: 1px solid var(--line); cursor: pointer; transition: border-color .2s; }
.pc.focus { border-color: var(--c); box-shadow: 0 0 0 1px var(--c) inset; }
.pc.out { opacity: 0.45; }
.pc .head { display: flex; gap: 8px; align-items: center; }
.avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--c); color: #111; font-weight: 700; display: flex; align-items: center; justify-content: center; flex: none; font-size: 13px; }
.pc .name { font-weight: 600; }
.pc .sub { font-size: 11px; color: var(--muted); }
.meters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 6px 0 4px; }
.meter { height: 5px; background: var(--panel2); border-radius: 3px; overflow: hidden; }
.meter b { display: block; height: 100%; }
.inv { display: flex; flex-wrap: wrap; gap: 3px; font-size: 11px; }
.inv i { font-style: normal; background: var(--panel2); padding: 0 5px; border-radius: 4px; }

.side { display: flex; flex-direction: column; min-height: 0; background: var(--panel); border-radius: 8px; border: 1px solid var(--line); }
.tabs { display: flex; border-bottom: 1px solid var(--line); }
.tabs button { background: none; border: 0; padding: 10px 14px; cursor: pointer; color: var(--muted); border-bottom: 2px solid transparent; }
.tabs button.on { color: var(--text); border-bottom-color: var(--gold); }
.pane { display: none; flex: 1; overflow-y: auto; padding: 10px 12px; min-height: 0; }
.pane.on { display: block; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; }
.filters.small { margin-top: -2px; }
.chip { background: var(--panel2); border: 1px solid var(--line); border-radius: 14px; padding: 2px 10px; cursor: pointer; font-size: 12px; }
.chip.on { background: #33394a; border-color: #5a647e; }
.chip .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c); margin-right: 4px; }
.toggle { font-size: 12px; color: var(--muted); margin-left: auto; }

.story { display: flex; flex-direction: column; gap: 6px; }
.divider { font-size: 11px; color: var(--muted); margin: 10px 0 2px; display: flex; align-items: center; gap: 8px; }
.divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.item { border-radius: 8px; padding: 7px 10px; background: var(--panel2); cursor: pointer; font-size: 13px; }
.item:hover { filter: brightness(1.08); }
.item .n { font-weight: 600; color: var(--c); }
.item.announce { background: #1d2738; color: #b8d0f4; text-align: center; }
.item.conflict { background: #3a2226; border-left: 3px solid var(--red); }
.item.gift { background: #1f3328; border-left: 3px solid var(--green); }
.item.build { background: #2a2a1f; border-left: 3px solid var(--gold); }
.item.warn { background: #33281c; border-left: 3px solid #e0a050; }
.item.out { background: #3a1e22; border: 1px solid #7a3a40; text-align: center; font-weight: 600; }
.item.night { background: #1b1d33; border-left: 3px solid #8a8af0; }
.item.act { background: var(--panel2); font-size: 12px; color: var(--muted); cursor: pointer; }
.item.act .fail { color: var(--red); }
.item.act i { font-style: normal; font-size: 10px; background: #33394a; border-radius: 4px; padding: 0 4px; color: #c8d0e0; }
.item.mind { background: #261f2e; color: #d6bfe6; font-style: italic; }
.item.acts { background: transparent; padding: 2px 4px; font-size: 12px; color: var(--muted); }
.item.acts i { font-style: normal; background: var(--panel2); border-radius: 4px; padding: 0 5px; margin-right: 3px; }
.chat { background: var(--panel2); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; cursor: pointer; }
.chat .ctitle { font-size: 11px; color: var(--muted); }
.bubble { display: flex; gap: 8px; align-items: flex-start; }
.bubble .avatar { width: 22px; height: 22px; font-size: 11px; }
.bubble .txt { background: #2c3240; border-radius: 4px 12px 12px 12px; padding: 5px 10px; max-width: 88%; }
.bubble .gift { display: inline-block; margin-top: 3px; font-size: 11px; color: var(--green); }
.think { font-size: 12px; color: #c9a8e0; font-style: italic; margin: 2px 0 0 30px; }

.report-hero { text-align: center; padding: 6px 0 14px; }
.podium { display: flex; justify-content: center; align-items: flex-end; gap: 10px; margin: 10px 0; }
.podium div { background: var(--panel2); border-radius: 8px 8px 0 0; width: 92px; padding: 8px 4px; text-align: center; border-top: 3px solid var(--c); }
.podium .p1 { height: 120px; } .podium .p2 { height: 96px; } .podium .p3 { height: 80px; } .podium .p4 { height: 64px; }
.cta { display: flex; gap: 10px; justify-content: center; margin: 8px 0 14px; }
.rcard { background: var(--panel2); border-radius: 10px; padding: 12px; margin-bottom: 12px; border-top: 3px solid var(--c); }
.rcard h3 { margin: 0; display: flex; gap: 8px; align-items: center; }
.rcard .headline { color: var(--gold); margin: 6px 0; font-size: 15px; }
.rcard .near { color: var(--red); font-size: 12px; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0; }
.badge { background: #3a3220; color: #f4d890; border: 1px solid #6a5a30; border-radius: 12px; padding: 1px 9px; font-size: 12px; }
.rsec { margin-top: 10px; }
.rsec h4 { margin: 0 0 4px; font-size: 12px; color: var(--muted); font-weight: 500; }
.tp { border-left: 2px solid var(--line); padding: 2px 0 6px 10px; font-size: 13px; }
.tp b { color: var(--muted); font-weight: 400; font-size: 11px; display: block; }
.verdict { font-size: 11px; padding: 0 6px; border-radius: 4px; margin-right: 6px; }
.v-ok { background: #1f3a28; color: var(--green); } .v-half { background: #3a3220; color: var(--gold); } .v-no { background: #3a2226; color: var(--red); } .v-none { background: #2a2f3a; color: var(--muted); }
.sugg { background: #1c2330; border-radius: 8px; padding: 8px 10px; margin-bottom: 6px; }
.sugg .sec { font-size: 11px; color: var(--blue); }
.sugg .text { margin: 3px 0; }
.sugg .why { font-size: 12px; color: var(--muted); }
.sugg button { margin-top: 4px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; margin-bottom: 12px; }
.kpi { background: var(--panel2); padding: 8px 10px; border-radius: 6px; font-size: 12px; color: var(--muted); }
.kpi b { display: block; color: var(--text); font-size: 18px; }
table { border-collapse: collapse; width: 100%; font-size: 12px; }
td, th { border-bottom: 1px solid var(--line); padding: 4px 6px; text-align: left; }
pre { white-space: pre-wrap; word-break: break-word; background: var(--panel2); padding: 8px; border-radius: 6px; font-size: 12px; }

/* ---- map-first arena ---- */
body.arena { overflow: hidden; background: #0b0d11; }
.stage { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; }
.stage #map { display: block; width: auto; height: auto; box-shadow: 0 0 60px rgba(0,0,0,0.6); }
.hud { position: absolute; z-index: 5; display: flex; gap: 8px; align-items: center; background: rgba(14,16,22,0.72); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,0.07); border-radius: 12px; padding: 6px 10px; }
.hud.tl { top: 14px; left: 14px; padding: 6px 14px 6px 8px; }
.hud.tr { top: 14px; right: 14px; }
.hud.bottom { left: 50%; bottom: 14px; transform: translateX(-50%); flex-direction: column; align-items: stretch; gap: 6px; padding: 8px 12px; min-width: 560px; }
.clock { font-size: 18px; font-weight: 700; letter-spacing: 1px; }
.cond { font-size: 12px; color: var(--muted); }
.chips { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.pchip { display: flex; align-items: center; gap: 6px; padding: 2px 10px 2px 3px; border-radius: 16px; background: rgba(255,255,255,0.05); border: 1px solid transparent; cursor: pointer; font-size: 12px; }
.pchip.on { border-color: var(--c); background: rgba(255,255,255,0.1); }
.pchip.out { opacity: 0.4; text-decoration: line-through; }
.pchip .avatar { width: 20px; height: 20px; font-size: 11px; }
.pchip .bar3 { display: flex; gap: 2px; }
.pchip .bar3 i { display: block; width: 14px; height: 4px; border-radius: 2px; background: #2a2f3a; overflow: hidden; }
.pchip .bar3 i b { display: block; height: 100%; }
.replay { display: flex; align-items: center; gap: 8px; }
.replay .timeline { display: flex; gap: 3px; width: 150px; min-width: 150px; }
.replay .day { height: 14px; }
.replay .day span { font-size: 9px; padding: 0 3px; }
.replay input { flex: 1; }
.replay span { font-size: 11px; color: var(--muted); min-width: 64px; }
.ghost.small { padding: 1px 8px; font-size: 12px; }
.stage .banner { top: 70px; z-index: 6; }
.stage .tip { z-index: 8; position: fixed; }
.tip .tname { font-weight: 700; color: var(--c); font-size: 13px; }
.tip .tb { display: grid; grid-template-columns: auto 60px auto; gap: 2px 6px; align-items: center; margin: 4px 0; }
.tip .tb i { display: block; height: 5px; background: #2a2f3a; border-radius: 3px; overflow: hidden; }
.tip .tb i b { display: block; height: 100%; }
.drawer { position: absolute; top: 0; right: 0; bottom: 0; width: 400px; z-index: 7; background: rgba(16,18,24,0.96); border-left: 1px solid var(--line); transform: translateX(105%); transition: transform .25s ease; display: flex; flex-direction: column; }
.drawer.open { transform: none; }
.dhead { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.dhead .who { display: flex; gap: 10px; align-items: center; }
.dbody { flex: 1; overflow-y: auto; padding: 10px 12px; }
.dstat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 10px; font-size: 11px; color: var(--muted); }
.dstat i { display: block; height: 5px; background: #2a2f3a; border-radius: 3px; overflow: hidden; margin-top: 2px; }
.dstat i b { display: block; height: 100%; }
.result { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); z-index: 6; display: none; background: rgba(16,18,24,0.94); border: 1px solid #5a4a20; border-radius: 12px; padding: 12px 18px; text-align: center; min-width: 320px; }
.result.show { display: block; }
.result .rk { display: flex; gap: 12px; justify-content: center; margin: 8px 0; font-size: 13px; }
.result .rk div { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.result .rk small { color: var(--muted); font-size: 11px; }

/* 角色推给玩家的通知（notify.js） */
.notices { position: fixed; right: 18px; top: 64px; z-index: 60; display: flex; flex-direction: column; gap: 8px; width: 300px; pointer-events: none; }
.notice { pointer-events: auto; position: relative; cursor: pointer; background: rgba(32, 22, 14, 0.96); border: 1px solid rgba(240, 200, 120, 0.45); border-left: 4px solid #f0b75a; border-radius: 10px; padding: 10px 28px 10px 12px; font-size: 13px; line-height: 1.5; color: #f3e6cc; box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35); opacity: 0; transform: translateX(20px); transition: opacity .3s, transform .3s; }
.notice.show { opacity: 1; transform: none; }
.notice b { display: block; color: #ffd98a; margin-bottom: 2px; }
.notice.k-out, .notice.k-escaped { border-left-color: #8fb4ff; }
.notice.k-match_end { border-left-color: #6fd08c; }
.notice .nlink { font-size: 12px; color: #c9a86a; }
.notice .nx { position: absolute; right: 6px; top: 4px; background: none; border: 0; color: #c9b08a; font-size: 16px; cursor: pointer; padding: 2px 4px; }

/* 开发者悬浮框（devbox.js） */
.devbox { position: fixed; z-index: 70; width: 300px; max-height: calc(100vh - 20px); display: none; flex-direction: column; background: rgba(12, 14, 18, 0.92); border: 1px solid rgba(126, 240, 160, 0.4); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.45); color: #e6f2ea; font-size: 13px; backdrop-filter: blur(6px); }
.devbox.show { display: flex; }
.devbox.drag { opacity: 0.85; }
.devbox .dbh { display: flex; align-items: center; justify-content: space-between; padding: 7px 8px 7px 12px; cursor: move; user-select: none; border-bottom: 1px solid rgba(126, 240, 160, 0.18); }
.devbox .dbh b { color: #b6f5c8; letter-spacing: 1px; }
.devbox .dbicons { display: flex; gap: 2px; }
.devbox .dbicons a, .devbox .dbicons button { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 24px; border-radius: 6px; color: #b6f5c8; background: none; border: 0; cursor: pointer; padding: 0; }
.devbox .dbicons a:hover, .devbox .dbicons button:hover { background: rgba(126, 240, 160, 0.16); }
.devbox .dbb { overflow-y: auto; padding: 8px 12px 10px; display: flex; flex-direction: column; gap: 10px; }
.devbox.folded .dbb { display: none; }
.devbox .dbrow { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.devbox select { background: rgba(255,255,255,0.06); color: inherit; border: 1px solid rgba(255,255,255,0.15); border-radius: 6px; padding: 3px 6px; }
.devbox .dbinfo { font-size: 11px; color: #8fa89a; margin-top: 4px; }
.devbox .dbt { font-size: 12px; color: #8fa89a; border-top: 1px solid rgba(255,255,255,0.08); padding-top: 6px; margin-bottom: 6px; }
.devbox input[type=range] { flex: 1; accent-color: #7ef0a0; }

/* 背景音乐开关（小屋、小镇、观战页共用，music.js attachMusic） */
.musicbtn { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 26px; margin-right: 6px; border-radius: 13px; border: 1px solid rgba(240, 200, 120, 0.25); background: rgba(20, 13, 8, 0.55); color: #c9b08a; cursor: pointer; padding: 0; }
.musicbtn.on { color: #ffd98a; border-color: rgba(240, 200, 120, 0.55); }
.musicbtn:hover { filter: brightness(1.2); }
.musicbtn.wait { color: #ffd98a; border-color: rgba(240, 200, 120, 0.55); animation: musicWait 1.4s ease-in-out infinite; }
@keyframes musicWait { 50% { box-shadow: 0 0 0 4px rgba(240, 200, 120, 0.25); } }
/* 3D 画面：拖动视角时不选中文字（名牌是叠在画布上的 DOM）；按下画布到松开期间整页禁止选择，见 island/util.js guardSelection */
canvas.gl, .labels, .tlabels { user-select: none; -webkit-user-select: none; }
body.dragging3d, body.dragging3d * { user-select: none !important; -webkit-user-select: none !important; }

/* 悬停在角色身上的卡片 */
.tip.acard { width: 260px; max-width: none; padding: 10px 12px 9px; white-space: normal; line-height: 1.5; }
.acard .ach { display: flex; gap: 9px; align-items: center; margin-bottom: 8px; }
.acard .ach .avatar { width: 30px; height: 30px; font-size: 14px; flex: none; }
.acard .acn { min-width: 0; }
.acard .tname { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 14px; }
.acard .tname em { font-style: normal; font-weight: 500; font-size: 10px; padding: 0 5px; border-radius: 4px; }
.acard .ame { background: var(--c); color: #111; }
.acard .ask { background: rgba(255,255,255,0.08); color: #d8dce6; }
.acard .asub { font-size: 11px; color: var(--muted); }
.acard .avit { display: grid; grid-template-columns: auto 1fr 48px; gap: 4px 8px; align-items: center; font-size: 11px; color: var(--muted); padding: 7px 0; border-top: 1px solid rgba(255,255,255,0.07); border-bottom: 1px solid rgba(255,255,255,0.07); }
.acard .avit i { display: block; height: 6px; background: #2a2f3a; border-radius: 3px; overflow: hidden; }
.acard .avit i b { display: block; height: 100%; border-radius: 3px; }
.acard .avit em { font-style: normal; color: #e6e8ee; }
.acard .avit em.low { color: #ff8a8a; font-weight: 600; }
.acard .arow { display: flex; gap: 8px; margin-top: 7px; font-size: 12px; }
.acard .arow > b { flex: none; font-weight: 500; font-size: 11px; color: var(--muted); padding-top: 1px; }
.acard .athink { margin-top: 6px; padding: 5px 8px; border-radius: 6px; background: rgba(201, 168, 224, 0.1); color: #d6bfe6; font-style: italic; font-size: 12px; }
.acard .abag { display: flex; flex-wrap: wrap; gap: 4px; }
.acard .abag span { padding: 0 6px; border-radius: 4px; background: rgba(255,255,255,0.07); font-size: 11px; }
.acard .abag .g { background: rgba(240, 200, 96, 0.16); color: #ffe0a0; }
.acard .abag .m { background: rgba(120, 180, 240, 0.14); color: #c8dcf4; }
.acard .abag i { color: var(--muted); font-style: normal; font-size: 11px; }
.acard .aout { margin-top: 2px; padding: 6px 8px; border-radius: 6px; background: rgba(255, 90, 90, 0.12); color: #ff9a9a; font-size: 12px; }
.acard .aout.ok { background: rgba(126, 240, 160, 0.12); color: #9ff0b0; }
.acard .afoot { margin-top: 8px; font-size: 10px; color: var(--muted); text-align: right; }

/* 故事线：主线卡 + 分章 */
.filters .flabel { font-size: 11px; color: var(--muted); margin-right: 2px; }
.mainline { margin-bottom: 14px; padding: 12px 14px; border-radius: 12px; background: linear-gradient(160deg, color-mix(in srgb, var(--c) 18%, #1a1d26), #161922); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); }
.mainline .mlh { display: flex; gap: 10px; align-items: center; }
.mainline .mlh .avatar { width: 32px; height: 32px; font-size: 15px; }
.mainline .mlh b { display: block; font-size: 15px; }
.mainline .mlh small { color: var(--muted); font-size: 11px; }
.mainline .goals { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: #c8cdd8; }
.mainline .goals li.ok { color: #9ff0b0; }
.mainline .mlnow { margin-top: 9px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,0.08); font-size: 12px; color: #e6e8ee; }
.chapter { position: relative; margin: 0 0 16px; padding-left: 14px; border-left: 2px solid rgba(255,255,255,0.08); }
.chapter .chh { position: relative; margin: 0 0 8px; font-size: 13px; font-weight: 700; color: #f0d890; letter-spacing: 1px; }
.chapter .chh::before { content: ''; position: absolute; left: -20px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: #f0d890; box-shadow: 0 0 0 3px #12141a; }
.diary { margin: 0 0 8px; padding: 8px 12px; border-left: 3px solid var(--c); border-radius: 0 8px 8px 0; background: rgba(255,255,255,0.04); color: #e8e2d4; font-size: 13px; line-height: 1.7; }
.diary details { margin-top: 6px; font-size: 12px; color: var(--muted); }
.diary details p { margin: 6px 0 0; color: #c8c2b4; }
.beats { display: flex; flex-direction: column; gap: 5px; margin-bottom: 6px; }
.beat { display: flex; gap: 8px; align-items: flex-start; }
.beat .bt { flex: none; width: 36px; padding-top: 7px; font-size: 10px; color: var(--muted); font-variant-numeric: tabular-nums; }
.beat > .item, .beat > .chat { flex: 1; min-width: 0; }
.item.big { text-align: center; font-weight: 600; }
.chapter summary { cursor: pointer; font-size: 12px; color: var(--muted); list-style: none; }
.chapter summary::-webkit-details-marker { display: none; }
.talk { margin: 0 0 5px; border-radius: 8px; background: var(--panel2); }
.talk > summary { display: flex; gap: 8px; align-items: center; padding: 6px 10px; }
.talk > summary .bt { padding: 0; width: 36px; }
.talk > summary span:not(.bt) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #d8dce6; }
.talk > summary em { font-style: normal; font-size: 10px; padding: 0 6px; border-radius: 8px; background: rgba(255,255,255,0.08); }
.talk[open] > summary { border-bottom: 1px solid rgba(255,255,255,0.06); }
.talk > .chat { background: transparent; }
.side { margin-top: 4px; }
.side > summary { padding: 4px 0; }
.side > summary::before { content: '▸ '; }
.side[open] > summary::before { content: '▾ '; }
.side .beat { opacity: 0.8; margin-top: 4px; }
.talk > summary span:not(.bt) i { margin-left: 6px; font-style: normal; color: var(--muted); }
.talk > .beat { padding: 4px 8px 0; }
.talk > .beat:last-child { padding-bottom: 6px; }
.talk .beat .chat { background: rgba(255,255,255,0.03); }
.cinema .tip.acard { background: rgba(10, 12, 16, 0.95); }

/* 游戏弹框右上角的关闭：一颗圆圆的金色按钮，里面一个叉（public/tower.js、相册等 JS 生成的面板也用 .xclose） */
.xclose { flex: none; width: 38px; height: 38px; padding: 0; margin-left: 10px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: #4a2508; background: radial-gradient(circle at 35% 30%, #ffeab0, #f0b456 55%, #d98a2e); border: 2px solid #1a0f07; box-shadow: inset 0 2px 0 rgba(255,255,255,0.45), inset 0 -3px 0 rgba(140,70,10,0.45), 0 3px 0 #1a0f07, 0 5px 12px rgba(0,0,0,0.35); transition: transform .12s, filter .12s; }
.xclose svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 3.4; stroke-linecap: round; }
.xclose:hover { filter: brightness(1.08); transform: scale(1.08) rotate(90deg); }
.xclose:active { transform: translateY(2px); box-shadow: inset 0 -2px 0 rgba(140,70,10,0.45), 0 1px 0 #1a0f07; }

/* 跟你学（public/ask.js）：它回家后问的那个问题，点一个回答或者自己说一句 */
.ask { margin: 12px 0 4px; padding: 12px 14px; border-radius: 12px; text-align: left; white-space: normal; background: linear-gradient(180deg, rgba(150, 200, 255, 0.12), rgba(150, 200, 255, 0.04)); border: 1px solid rgba(150, 200, 255, 0.3); }
.care .ask { margin: 0 0 10px; max-width: 460px; }
.ask .askq { font-size: 15px; line-height: 1.6; color: #fff3dc; }
.ask .askwho { display: block; font-size: 11px; letter-spacing: 1px; color: #9cc4ff; margin-bottom: 2px; }
.ask .askopts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ask .askopts button { min-height: 40px; padding: 6px 12px; border-radius: 10px; cursor: pointer; font-size: 14px; font-weight: 700; color: #4a2e16; border: 2px solid #2a1a0c; background: linear-gradient(180deg, #fff6dc, #e6cf9c); box-shadow: inset 0 -2px 0 rgba(140, 90, 30, 0.25), 0 2px 0 #2a1a0c; }
.ask .askopts button:hover { filter: brightness(1.06); }
.ask .askopts button:active { transform: translateY(1px); }
.ask .askown { display: flex; gap: 6px; margin-top: 8px; }
.ask .askown input { flex: 1; min-width: 0; min-height: 36px; padding: 4px 10px; border-radius: 8px; border: 1px solid rgba(240, 200, 120, 0.3); background: rgba(0, 0, 0, 0.25); color: #fff3dc; font-size: 14px; }
.ask .askown button { min-height: 36px; padding: 4px 14px; border-radius: 8px; cursor: pointer; font-weight: 700; color: #3a2108; border: 2px solid #2a1a0c; background: linear-gradient(180deg, #ffe6a6, #e8b65a); }
.ask button[disabled], .ask input[disabled] { opacity: 0.6; cursor: default; }
.ask .askhint { margin-top: 6px; font-size: 11px; color: rgba(255, 240, 210, 0.5); cursor: default; }
.ask .askdone { font-size: 14px; color: #fff3dc; }
.ask .askdone p { margin: 6px 0 0; color: #ffe0a0; }
