:root {
  --bg: #0b0c10; --panel: #14151a; --panel2: #1b1c22; --line: #2e2c2a; --line-hi: #5a523f;
  --paper: #dcd2bb; --dim: #958b76; --mute: #5e584c; --ink: #0b0c10;
  --accent: #e8a33c; --ours: #4f7fc0; --ours-hi: #7fa6dc; --theirs: #b8382e; --theirs-hi: #e0745a; --neu: #b39a4a;
  --good: #8fb35a; --bad: #e0745a;
  --cn: "Fusion Pixel 12px Proportional SC", "Microsoft YaHei", "PingFang SC", sans-serif;
  --px: "Press Start 2P", monospace;
  --lat: "Silkscreen", "Fusion Pixel 12px Proportional SC", monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #040405; overflow: hidden; touch-action: manipulation; }
body { font-family: var(--cn); color: var(--paper); user-select: none; -webkit-font-smoothing: none; font-smooth: never; }
#stage { position: absolute; left: 50%; top: 50%; width: 1280px; height: 720px; margin: -360px 0 0 -640px; transform-origin: center; background: var(--bg); overflow: hidden; }
.screen { position: absolute; inset: 0; display: none; overflow: hidden; background: var(--bg); }
.screen.on { display: block; }
canvas { image-rendering: pixelated; image-rendering: crisp-edges; display: block; }
.bgcv { position: absolute; inset: 0; width: 1280px; height: 720px; }
.hidden { display: none !important; }
.scan { position: absolute; inset: 0; pointer-events: none; z-index: 50;
  background: repeating-linear-gradient(to bottom, rgba(0,0,0,0) 0, rgba(0,0,0,0) 2px, rgba(0,0,0,.16) 3px, rgba(0,0,0,0) 4px);
  box-shadow: inset 0 0 160px rgba(0,0,0,.55); }
body.nocrt .scan { background: none; box-shadow: inset 0 0 120px rgba(0,0,0,.35); }
.g { color: var(--good); } .b { color: var(--bad); } .n { color: var(--dim); } .w { color: var(--accent); }

/* ---------- 标题 ---------- */
.title-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,5,8,.78) 0, rgba(5,5,8,.35) 34%, rgba(5,5,8,0) 55%); pointer-events: none; }
.logo { position: absolute; left: 56px; top: 44px; }
.logo .year { font-family: var(--px); font-size: 92px; line-height: 1; color: var(--paper); letter-spacing: 4px;
  text-shadow: 4px 4px 0 #6a1f1a, 8px 8px 0 #2a0d0b; }
.logo .cn { font-size: 40px; margin-top: 22px; color: var(--accent); letter-spacing: 10px; text-shadow: 3px 3px 0 #000; }
.logo .ru { font-family: var(--lat); font-size: 16px; margin-top: 10px; color: var(--dim); letter-spacing: 3px; }
.menu { position: absolute; left: 56px; top: 400px; }
.menu div { font-size: 26px; line-height: 44px; padding-left: 30px; position: relative; cursor: pointer; color: var(--paper); text-shadow: 2px 2px 0 #000; }
.menu div.sel::before { content: '▸'; position: absolute; left: 0; color: var(--accent); }
.menu div.sel { color: #fff; }
.menu div.off { color: #4f4a40; cursor: default; }
.topbtns { position: absolute; right: 24px; top: 22px; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.tbtn { font-size: 15px; padding: 6px 10px; border: 2px solid var(--line-hi); background: rgba(10,10,14,.75); cursor: pointer; }
.tbtn:hover { border-color: var(--accent); }
.title-foot { position: absolute; right: 26px; bottom: 22px; text-align: right; font-size: 15px; color: var(--dim); line-height: 24px; }
.title-foot .hint { color: var(--mute); }

/* ---------- 序章影片 ---------- */
#s-film { background: #000; }
#s-film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.film-gate { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: radial-gradient(ellipse at center, rgba(4,4,6,.8) 0, rgba(4,4,6,.92) 70%); }
.fg-k { font-family: var(--lat); font-size: 16px; color: var(--accent); letter-spacing: 3px; }
.fg-t { margin-top: 16px; font-size: 44px; letter-spacing: 8px; text-shadow: 3px 3px 0 #000; }
.fg-btns { margin-top: 30px; display: flex; gap: 18px; }
.fg-btns .btn { margin-top: 0; }
.fg-btns .btn.sel, .fg-btns .btn:hover { border-color: var(--accent); color: #fff; }
.fg-hint { margin-top: 18px; font-size: 15px; color: var(--mute); }
.film-skip { position: absolute; right: 16px; bottom: 8px; z-index: 2; font-size: 16px; padding: 7px 12px; border: 2px solid var(--line-hi); background: rgba(10,10,14,.6); cursor: pointer; opacity: .75; }
.film-skip small { margin-left: 8px; font-size: 12px; color: var(--dim); }
.film-skip:hover { opacity: 1; border-color: var(--accent); }

/* ---------- 开场 ---------- */
.intro-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(4,4,6,.92) 0, rgba(4,4,6,.55) 30%, rgba(4,4,6,0) 55%); }
.intro-place { position: absolute; left: 56px; top: 40px; font-family: var(--lat); font-size: 16px; color: var(--accent); letter-spacing: 3px; }
.intro-text { position: absolute; left: 56px; bottom: 96px; width: 900px; font-size: 30px; line-height: 46px; text-shadow: 2px 2px 0 #000; min-height: 92px; }
.intro-hint { position: absolute; right: 30px; bottom: 24px; font-size: 15px; color: var(--mute); }

/* ---------- 事件 ---------- */
.ev-left { position: absolute; left: 0; top: 0; width: 640px; height: 720px; }
.ev-left canvas { width: 640px; height: 720px; }
.ev-left::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5,5,8,.85) 0, rgba(5,5,8,0) 26%), linear-gradient(270deg, rgba(11,12,16,1) 0, rgba(11,12,16,0) 40px); pointer-events: none; }
.ev-place { position: absolute; left: 28px; bottom: 24px; z-index: 2; text-shadow: 2px 2px 0 #000; }
.ev-place b { display: block; font-size: 24px; font-weight: normal; letter-spacing: 2px; }
.ev-place span { font-size: 16px; color: var(--dim); }
.ev-right { position: absolute; left: 640px; top: 0; width: 640px; height: 720px; padding: 24px 40px 24px 36px; overflow: hidden; }
.ev-top { display: flex; justify-content: space-between; align-items: center; height: 28px; }
.phase { font-size: 14px; padding: 3px 8px; background: var(--accent); color: var(--ink); }
.mini { font-size: 14px; color: var(--dim); }
.mini b { color: var(--paper); font-weight: normal; margin: 0 10px 0 4px; }
.ev-date { margin-top: 26px; font-family: var(--lat); font-size: 15px; color: var(--dim); letter-spacing: 2px; }
.ev-title { margin-top: 10px; font-size: 44px; line-height: 52px; color: var(--paper); text-shadow: 3px 3px 0 #3a1512; letter-spacing: 2px; }
.ev-sub { margin-top: 6px; font-size: 19px; color: var(--accent); }
.ev-text { margin-top: 16px; font-size: 19px; line-height: 31px; color: #cfc6b0; }
.ev-text p { margin: 0 0 8px; }
.ev-pre { margin-top: 4px; font-size: 15px; }
.ev-pre:empty { display: none; }
.ev-pre .lbl { color: var(--mute); margin-right: 8px; }
.ev-choices { margin-top: 16px; }
.choice { position: relative; display: flex; gap: 14px; padding: 12px 14px; margin-bottom: 10px; background: var(--panel); border: 2px solid var(--line); cursor: pointer; }
.choice:hover, .choice.sel { border-color: var(--accent); background: #1d1a14; }
.choice .num { flex: 0 0 26px; height: 26px; background: var(--line-hi); color: var(--paper); text-align: center; line-height: 26px; font-family: var(--lat); font-size: 15px; }
.choice:hover .num { background: var(--accent); color: var(--ink); }
.choice .tx { font-size: 19px; line-height: 26px; }
.chips { font-size: 15px; line-height: 22px; margin-top: 3px; }
.chips span { margin-right: 10px; white-space: nowrap; }
.chips .pct { color: var(--accent); }
.ev-result { margin-top: 18px; display: none; }
.ev-result.on { display: block; }
.ev-result .rt { font-size: 19px; line-height: 31px; padding: 14px 16px; background: var(--panel); border-left: 4px solid var(--accent); }
.ev-result .rt.fail { border-left-color: var(--theirs); }
.ev-result .chips { margin: 10px 0 0 4px; }
.ev-result .note { margin-top: 14px; font-size: 15px; line-height: 24px; color: var(--dim); padding: 10px 12px; border: 2px dashed var(--line); }
.ev-result .note b { color: var(--accent); font-weight: normal; margin-right: 6px; }
.btn { display: inline-block; margin-top: 16px; padding: 10px 18px; background: var(--panel2); border: 2px solid var(--line-hi); cursor: pointer; font-size: 19px; }
.btn:hover { border-color: var(--accent); color: #fff; }
.btn.primary { border-color: var(--accent); color: var(--accent); }

/* ---------- 地图界面 ---------- */
.topbar { position: absolute; left: 12px; top: 10px; right: 12px; height: 56px; display: flex; gap: 8px; }
.datebox { width: 200px; background: var(--panel); border: 2px solid var(--line); padding: 5px 10px; }
.datebox .d { font-size: 22px; line-height: 26px; }
.datebox .w { font-size: 14px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.datebox .d { white-space: nowrap; }
.datebox .d .dif { float: right; font-size: 13px; line-height: 18px; margin-top: 4px; padding: 0 5px; color: var(--dim); border: 1px solid var(--line-hi); }
.stats { flex: 1; display: flex; gap: 8px; }
.stat { flex: 1; background: var(--panel); border: 2px solid var(--line); padding: 5px 10px; position: relative; }
.stat .k { font-size: 14px; color: var(--dim); }
.stat .v { font-size: 22px; line-height: 24px; margin-top: 1px; }
.stat .dl { font-size: 14px; margin-left: 6px; }
.stat.warn { border-color: #6a2a22; }
.stat.warn .v { color: var(--theirs-hi); }
.timeline { position: absolute; left: 12px; right: 12px; top: 72px; height: 24px; display: flex; gap: 3px; align-items: stretch; }
.timeline .lab { font-size: 13px; color: var(--mute); width: 52px; line-height: 24px; }
.timeline .c { flex: 1; font-family: var(--lat); font-size: 11px; line-height: 20px; text-align: center; background: var(--panel); border: 2px solid var(--line); color: var(--mute); }
.timeline .c.past { opacity: .45; }
.timeline .c.now { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.timeline .c.night { background: #10131c; }
.timeline .c.now.night { background: var(--accent); }
.timeline .c.risk { border-color: var(--theirs); color: var(--theirs-hi); }
.timeline .c.dayb { margin-left: 6px; }

.mapwrap { position: absolute; left: 12px; top: 104px; width: 840px; height: 520px; border: 2px solid var(--line); background: #101216; overflow: hidden; }
.mapwrap canvas { position: absolute; left: -2px; top: -2px; width: 840px; height: 520px; }
#map-pts { position: absolute; left: -2px; top: -2px; width: 840px; height: 520px; }
.legend { position: absolute; right: 10px; top: 10px; font-size: 13px; color: var(--dim); background: rgba(10,11,14,.8); border: 2px solid var(--line); padding: 6px 9px; line-height: 20px; }
.sq { display: inline-block; width: 10px; height: 10px; margin-right: 6px; vertical-align: -1px; border: 1px solid #000; }
.sq.ours { background: var(--ours); } .sq.theirs { background: var(--theirs); } .sq.neu { background: var(--neu); }

.pt { position: absolute; width: 0; height: 0; }
.pt .mk { position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; border: 2px solid #000; box-shadow: 0 0 0 2px rgba(0,0,0,.4); cursor: pointer; }
.pt .mk::after { content: ''; position: absolute; left: 3px; top: 3px; width: 8px; height: 8px; background: rgba(255,255,255,.28); }
.pt.ours .mk { background: var(--ours); } .pt.theirs .mk { background: var(--theirs); } .pt.neu .mk { background: var(--neu); }
.pt.hq .mk { width: 22px; height: 22px; left: -11px; top: -11px; }
.pt.sel .mk { outline: 2px solid var(--accent); outline-offset: 3px; animation: pulse 1s steps(2) infinite; }
@keyframes pulse { 50% { outline-color: transparent; } }
.pt .lb { position: absolute; width: 112px; padding: 3px 6px 5px; background: rgba(12,13,17,.88); border: 2px solid var(--line); cursor: pointer; white-space: nowrap; }
.pt:hover .lb, .pt.sel .lb { border-color: var(--line-hi); }
.pt.sel .lb { border-color: var(--accent); }
.pt .lb .nm { font-size: 15px; line-height: 18px; }
.pt .lb .ru { font-family: var(--lat); font-size: 9px; color: var(--mute); line-height: 10px; overflow: hidden; }
.pt .lb .bar { margin-top: 3px; height: 4px; background: #2a1614; position: relative; }
.pt .lb .bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--ours); }
.pt .lb .bar u { position: absolute; left: 50%; top: -1px; bottom: -1px; width: 1px; background: #000; }
.pt.l .lb { right: 16px; top: -16px; } .pt.r .lb { left: 16px; top: -16px; }
.pt.b .lb { left: -64px; top: 16px; } .pt.t .lb { left: -64px; bottom: 16px; }
.pt .act-dot { position: absolute; right: -4px; top: -4px; width: 6px; height: 6px; background: var(--accent); }

.inset { position: absolute; width: 274px; padding: 8px 10px; background: rgba(12,13,17,.92); border: 2px solid var(--line); cursor: pointer; display: flex; gap: 10px; align-items: center; }
.inset:hover { border-color: var(--line-hi); } .inset.sel { border-color: var(--accent); }
.inset .mk { position: static; flex: 0 0 16px; height: 16px; border: 2px solid #000; }
.inset.ours .mk { background: var(--ours); } .inset.theirs .mk { background: var(--theirs); } .inset.neu .mk { background: var(--neu); }
.inset.iso .mk { background: #555; }
.inset .nm { font-size: 16px; } .inset .ru { font-family: var(--lat); font-size: 9px; color: var(--mute); }
.inset .st { font-size: 13px; color: var(--dim); }
.inset .bx { flex: 1; }
.inset .bar { margin-top: 3px; height: 4px; background: #2a1614; position: relative; } .inset .bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--ours); }
.inset .bar u { position: absolute; left: 50%; top: -1px; bottom: -1px; width: 1px; background: #000; }

.side { position: absolute; left: 864px; top: 104px; width: 404px; height: 520px; display: flex; flex-direction: column; gap: 8px; }
.box { background: var(--panel); border: 2px solid var(--line); padding: 7px 12px; }
.box h4 { margin: 0 0 6px; font-weight: normal; font-size: 14px; color: var(--dim); letter-spacing: 1px; display: flex; justify-content: space-between; }
.meter { display: flex; align-items: center; gap: 8px; height: 22px; }
.meter .k { width: 86px; font-size: 15px; }
.meter .segs { flex: 1; display: flex; gap: 2px; height: 12px; }
.meter .segs i { flex: 1; background: #24252b; }
.meter .v { width: 30px; text-align: right; font-size: 15px; }
.meter.army .segs i.on { background: var(--ours); }
.meter.res .segs i.on { background: var(--theirs); }
.meter.storm .segs i.on { background: var(--accent); }
.meter.storm.hot .segs i.on { background: var(--theirs-hi); }
.intel { font-size: 14px; line-height: 20px; }
.intel .vs { display: flex; gap: 14px; align-items: baseline; }
.intel .vs b { font-weight: normal; font-size: 20px; }
.intel .verdict { margin-top: 2px; }
.card { flex: 1; overflow: hidden; display: flex; flex-direction: column; }
.card .hd { display: flex; gap: 12px; }
.card .hd canvas { width: 60px; height: 60px; border: 2px solid var(--line-hi); flex: 0 0 60px; background: #0d0e12; }
.card .hd .t1 { font-size: 22px; line-height: 26px; }
.card .hd .t1 small { font-family: var(--lat); font-size: 10px; color: var(--mute); margin-left: 8px; }
.card .hd .t2 { font-size: 15px; color: var(--dim); margin-top: 2px; }
.card .hd .t3 { font-size: 15px; margin-top: 4px; }
.card .lbar { height: 6px; background: #3a1a16; margin: 8px 0 2px; position: relative; }
.card .lbar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--ours); }
.card .lbar u { position: absolute; left: 50%; top: -2px; bottom: -2px; width: 2px; background: #000; }
.card .lbl2 { display: flex; justify-content: space-between; font-size: 12px; color: var(--mute); }
.card .desc { font-size: 14px; line-height: 20px; color: #b9b09a; margin: 6px 0 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.acts { flex: 1; overflow-y: auto; padding-right: 2px; }
.acts::-webkit-scrollbar { width: 6px; } .acts::-webkit-scrollbar-thumb { background: var(--line-hi); }
.act { display: flex; gap: 10px; padding: 6px 9px; margin-bottom: 5px; background: var(--panel2); border: 2px solid var(--line); cursor: pointer; }
.act:hover { border-color: var(--accent); }
.act .num { flex: 0 0 20px; height: 20px; background: var(--line-hi); color: var(--paper); text-align: center; line-height: 20px; font-family: var(--lat); font-size: 12px; }
.act:hover .num { background: var(--accent); color: var(--ink); }
.act .nm { font-size: 16px; line-height: 20px; }
.act .nm small { font-size: 13px; color: var(--dim); margin-left: 6px; }
.act .ad { font-size: 13px; line-height: 18px; color: var(--dim); margin-top: 1px; }
.act .chips { font-size: 13px; line-height: 18px; margin-top: 2px; }
.act.off { cursor: default; opacity: .5; }
.act.off:hover { border-color: var(--line); }
.act.off .num { background: #2a2a2a; color: var(--mute); }
.act .why { font-size: 13px; color: var(--theirs-hi); margin-top: 1px; }
.act.done .why { color: var(--good); }

.bottombar { position: absolute; left: 12px; right: 12px; top: 634px; height: 76px; display: flex; gap: 8px; }
.log { flex: 1; background: var(--panel); border: 2px solid var(--line); padding: 7px 12px; font-size: 15px; line-height: 21px; overflow: hidden; cursor: pointer; }
.log div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--dim); }
.log div:last-child { color: var(--paper); }
.log .bad { color: var(--theirs-hi) !important; } .log .good { color: var(--good) !important; }
.log .tm { color: var(--mute); margin-right: 8px; font-family: var(--lat); font-size: 11px; }
.bbtn { width: 128px; background: var(--panel); border: 2px solid var(--line); text-align: center; font-size: 19px; padding-top: 12px; cursor: pointer; position: relative; }
.bbtn small { display: block; font-size: 13px; color: var(--mute); margin-top: 4px; }
.bbtn:hover { border-color: var(--line-hi); }
.bbtn.has { border-color: #6a5a2a; } .bbtn.has small { color: var(--accent); }
.bbtn.end { width: 190px; background: #2a1512; border-color: #6a2a22; }
.bbtn.end:hover { border-color: var(--theirs-hi); }
.bbtn.end small { color: var(--paper); }
.bbtn.end.confirm { border-color: var(--accent); animation: pulse2 .6s steps(2) infinite; }
@keyframes pulse2 { 50% { background: #3a1d14; } }

.toast { position: absolute; left: 432px; top: 128px; transform: translateX(-50%); width: 620px; padding: 14px 18px; background: #11151d; border: 2px solid #34405a; box-shadow: 4px 4px 0 #000; z-index: 20; cursor: pointer; }
.toast .tt { font-size: 14px; color: var(--accent); margin-bottom: 4px; }
.toast .tx { font-size: 18px; line-height: 28px; }
.toast.fail { border-color: #6a2a22; background: #1a1112; }

/* ---------- 弹窗 ---------- */
.modal { position: absolute; inset: 0; background: rgba(3,3,5,.72); z-index: 30; display: flex; align-items: center; justify-content: center; }
.mbox { width: 760px; max-height: 640px; background: var(--panel); border: 2px solid var(--line-hi); box-shadow: 6px 6px 0 #000; padding: 22px 26px; display: flex; flex-direction: column; }
.mbox h2 { margin: 0; font-weight: normal; font-size: 30px; color: var(--paper); }
.mbox .msub { color: var(--dim); font-size: 15px; margin-top: 4px; }
.mbox .mbody { margin-top: 14px; overflow-y: auto; flex: 1; padding-right: 6px; }
.mbox .mbody::-webkit-scrollbar { width: 6px; } .mbox .mbody::-webkit-scrollbar-thumb { background: var(--line-hi); }
.mbox .mfoot { margin-top: 10px; display: flex; gap: 10px; justify-content: flex-end; }
.mbox .mfoot .btn { margin-top: 0; }
.rep { padding: 8px 0; border-bottom: 2px solid #1e1f25; font-size: 17px; line-height: 26px; }
.rep.bad .t { color: var(--theirs-hi); } .rep.good .t { color: var(--good); }
.rep .chips { font-size: 14px; }
.deltas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.deltas div { background: var(--panel2); border: 2px solid var(--line); padding: 5px 10px; font-size: 15px; }
.dec { display: flex; gap: 14px; padding: 12px; margin-bottom: 8px; background: var(--panel2); border: 2px solid var(--line); }
.dec .seal { flex: 0 0 54px; height: 54px; border: 2px solid var(--line-hi); display: flex; align-items: center; justify-content: center; font-family: var(--lat); font-size: 11px; color: var(--dim); text-align: center; line-height: 14px; }
.dec.signed .seal { border-color: var(--good); color: var(--good); }
.dec .bx { flex: 1; }
.dec .n1 { font-size: 19px; } .dec .n1 small { font-size: 14px; color: var(--accent); margin-left: 8px; }
.dec .dd { font-size: 15px; line-height: 22px; color: #b9b09a; margin-top: 3px; }
.dec .why { font-size: 14px; color: var(--theirs-hi); margin-top: 3px; }
.dec .btn { margin-top: 0; align-self: center; font-size: 16px; padding: 8px 12px; }
.dec.signed .why { color: var(--good); }
.chr { padding: 10px 0; border-bottom: 2px solid #1e1f25; }
.chr .ct { font-size: 18px; color: var(--accent); } .chr .ct small { color: var(--mute); font-size: 13px; margin-left: 8px; }
.chr .cn { font-size: 15px; line-height: 24px; color: #c6bca5; margin-top: 3px; }
.chr.lock .ct { color: var(--mute); } .chr.lock .cn { color: #4a463e; }
.about p { font-size: 16px; line-height: 27px; color: #c6bca5; margin: 0 0 10px; }
.mmenu div { font-size: 22px; padding: 10px 14px; border: 2px solid var(--line); margin-bottom: 8px; cursor: pointer; background: var(--panel2); }
.mmenu div:hover { border-color: var(--accent); }

/* ---------- 结局 ---------- */
.end-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,5,8,.94) 0, rgba(5,5,8,.85) 46%, rgba(5,5,8,.2) 72%, rgba(5,5,8,0) 100%); }
.end-panel { position: absolute; left: 56px; top: 44px; width: 660px; bottom: 30px; }
.end-kind { display: inline-block; font-size: 14px; padding: 3px 8px; background: var(--accent); color: var(--ink); }
.end-kind.lose { background: var(--theirs); color: var(--paper); }
.end-title { font-size: 58px; line-height: 70px; margin-top: 14px; text-shadow: 4px 4px 0 #3a1512; letter-spacing: 3px; }
.end-sub { font-size: 21px; color: var(--accent); margin-top: 2px; }
.end-text { margin-top: 16px; font-size: 18px; line-height: 30px; color: #cfc6b0; }
.end-text p { margin: 0 0 9px; }
.end-stats { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.end-stats div { background: rgba(20,21,26,.9); border: 2px solid var(--line); padding: 5px 10px; font-size: 14px; color: var(--dim); }
.end-stats b { display: block; font-weight: normal; font-size: 20px; color: var(--paper); }
.end-tags { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.end-tags div { font-size: 14px; padding: 4px 9px; border: 2px solid #6a5a2a; color: var(--accent); background: rgba(20,18,12,.9); }
.end-btns { margin-top: 8px; display: flex; gap: 10px; }

/* ---------- 阵营选择 ---------- */
.mbody.sides { display: flex; gap: 14px; overflow: visible; }
.side-card { flex: 1; padding: 18px 18px 14px; border: 2px solid var(--line-hi); background: var(--panel2); cursor: pointer; position: relative; }
.side-card:hover { border-color: var(--accent); background: #1d1a14; }
.side-card .sc-k { font-size: 30px; }
.side-card.wh .sc-k { color: var(--ours-hi); } .side-card.gk .sc-k { color: var(--theirs-hi); }
.side-card .sc-n { font-size: 16px; color: var(--dim); margin-top: 2px; }
.side-card .sc-d { font-size: 16px; line-height: 26px; color: #c6bca5; margin-top: 12px; min-height: 80px; }
.side-card .sc-h { font-size: 13px; color: var(--mute); margin-top: 8px; }
.side-card.off { opacity: .45; cursor: default; } .side-card.off:hover { border-color: var(--line-hi); background: var(--panel2); }

/* ---------- 难度 ---------- */
.diffs { display: flex; align-items: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.diffs .dl { font-size: 16px; color: var(--dim); margin-right: 4px; }
.diffs .dbtn { font-size: 18px; padding: 6px 16px; border: 2px solid var(--line-hi); background: var(--panel2); cursor: pointer; }
.diffs .dbtn:hover { border-color: var(--accent); }
.diffs .dbtn.on { border-color: var(--accent); color: var(--ink); background: var(--accent); }
.diffs .dd { font-size: 15px; color: var(--dim); margin-left: 8px; flex: 1; min-width: 200px; }

/* ---------- 移动端 ---------- */
html, body { height: 100%; height: 100dvh; overscroll-behavior: none; }
body { -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; -webkit-text-size-adjust: 100%; }
.acts, .mbox .mbody, .log { -webkit-overflow-scrolling: touch; overscroll-behavior: contain; touch-action: pan-x pan-y; }

/* ---------- 隐藏势力与提示 ---------- */
.legend { right: auto; top: auto; left: 300px; bottom: 8px; }
.bbtn.hint { width: 96px; border-color: #4a5a3a; }
.bbtn.hint small { color: var(--good); }
.card .xmeter { margin-top: 6px; }
.mbody.hints .hint-row { font-size: 16px; line-height: 25px; padding: 7px 10px 7px 12px; margin-bottom: 6px; border-left: 4px solid var(--line-hi); background: rgba(255,255,255,.03); color: var(--paper); }
.mbody.hints .hint-row.b { border-left-color: var(--theirs-hi); }
.mbody.hints .hint-row.w { border-left-color: var(--accent); }
.mbody.hints .hint-row.g { border-left-color: var(--good); }
.mbody.hints .hint-row.n { border-left-color: var(--line); color: var(--dim); }
.hint-rules { margin-top: 12px; padding-top: 8px; border-top: 2px solid var(--line); }
.hint-rules .lbl { font-size: 13px; color: var(--mute); margin-bottom: 4px; }
.hint-rules p { font-size: 14px; line-height: 22px; color: var(--dim); margin: 0 0 6px; }
.hint-on { margin-top: 10px; font-size: 14px; color: var(--good); }
.end-kind.hidden-end { background: #6a5a2a; color: var(--paper); }
.end-kind.epi-end { background: #2e4a5a; color: var(--paper); }
.end-epi { margin-top: 12px; font-size: 16px; color: var(--accent); border-left: 3px solid var(--accent); padding: 2px 0 2px 10px; }
