*{box-sizing:border-box} body{margin:0;font-family:-apple-system,PingFang SC,Microsoft YaHei,sans-serif;background:#0f172a;color:#e2e8f0}
a{color:#7dd3fc}
.wrap{max-width:760px;margin:0 auto;padding:16px 14px 40px}
header{text-align:center;padding:10px 0 4px}
h1{margin:6px 0;font-size:26px} .sub{color:#94a3b8;font-size:14px;line-height:1.6}
.card{background:#1e293b;border:1px solid #334155;border-radius:16px;padding:16px;margin:12px 0}
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.stat{background:#0f172a;border-radius:12px;padding:10px 8px;text-align:center}
.stat b{display:block;font-size:19px;color:#fbbf24}.stat span{font-size:12px;color:#94a3b8}
.bar-row{margin:9px 0;font-size:13px}.bar-row label{display:flex;justify-content:space-between;color:#cbd5e1}
.bar{height:9px;background:#334155;border-radius:99px;overflow:hidden;margin-top:4px}.bar i{display:block;height:100%;background:linear-gradient(90deg,#38bdf8,#fbbf24);border-radius:99px}
button{border:0;border-radius:12px;padding:12px 14px;font-size:15px;cursor:pointer;background:#2563eb;color:#fff;width:100%;margin-top:10px}
button.secondary{background:#334155} button.ghost{background:transparent;border:1px solid #475569;color:#cbd5e1}
button:disabled{opacity:.45}
.opt{background:#0f172a;border:1px solid #475569;color:#e2e8f0;text-align:left}
.opt:hover{border-color:#38bdf8}
.opt small{display:block;color:#94a3b8;margin-top:5px;line-height:1.5}
.choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.choice{border:2px solid #334155;border-radius:14px;padding:13px;cursor:pointer;background:#0f172a}
.choice.sel{border-color:#fbbf24;background:#292524}
.choice b{display:block;margin-bottom:4px}.choice span{font-size:12px;color:#94a3b8;line-height:1.5;display:block}
.alloc{display:flex;align-items:center;justify-content:space-between;padding:10px 0;border-bottom:1px solid #1e293b}
.alloc b{font-size:13px}.alloc span{font-size:12px;color:#94a3b8}
.num button{width:36px;height:36px;padding:0;margin:0 4px;background:#334155}
.num strong{min-width:22px;display:inline-block;text-align:center}
.log{font-size:13px;line-height:1.8;color:#cbd5e1;white-space:pre-wrap}
.tag{display:inline-block;background:#334155;border-radius:99px;padding:3px 9px;font-size:12px;margin:2px}
.banner{background:linear-gradient(90deg,#f59e0b,#ef4444);color:#fff;border-radius:14px;padding:14px;text-align:center;font-weight:bold;margin:12px 0}
input,select{width:100%;padding:11px;border-radius:10px;border:1px solid #475569;background:#0f172a;color:#fff;font-size:15px;margin-top:8px}
label{font-size:13px;color:#94a3b8}
.hidden{display:none}
/* 小插曲：更轻、更冷，和主事件区分开 */
#screen-event.minor-mode{border-color:#2dd4bf55;background:#172033}
#screen-event.minor-mode #evKicker{color:#5eead4}
#screen-event.minor-mode h2{font-size:19px}
#screen-event.minor-mode #evStory{font-size:14px;color:#cbd5e1}
@media(max-width:520px){.stats{grid-template-columns:repeat(2,1fr)}.choice-grid{grid-template-columns:1fr}}
