:root{--bg: #0a0e17;--bg2: #101725;--panel: #141d2e;--panel-border: #24334d;--text: #d6dfef;--dim: #7d8aa3;--accent: #e8b34b;--accent2: #4ba3e8;--danger: #e85b4b;--warn: #e8a34b;--good: #6bd58a}*{margin:0;padding:0;box-sizing:border-box}body{background:radial-gradient(ellipse at 20% -10%,#16223a 0%,var(--bg) 55%);color:var(--text);font-family:Segoe UI,system-ui,-apple-system,sans-serif;min-height:100vh}.screen{min-height:100vh}.btn{background:var(--panel);color:var(--text);border:1px solid var(--panel-border);padding:.7rem 1.6rem;font-size:1rem;border-radius:4px;cursor:pointer;font-family:inherit;letter-spacing:.04em;transition:border-color .15s,background .15s}.btn:hover{border-color:var(--accent)}.btn-primary{background:linear-gradient(180deg,#2a3a52,#1c2940);border-color:var(--accent);color:var(--accent)}.btn-primary:hover{background:#263550}.screen-start{display:flex;align-items:center;justify-content:center;padding:2rem}.start-box{max-width:620px;text-align:center;padding:3rem 2.5rem;background:#101725d9;border:1px solid var(--panel-border);border-radius:8px}.start-emblem{font-size:2.4rem;color:var(--accent);margin-bottom:.6rem}.start-box h1{font-size:3rem;letter-spacing:.35em;color:var(--accent);font-weight:300;margin-bottom:.2rem}.subtitle{color:var(--accent2);letter-spacing:.5em;text-transform:uppercase;font-size:.85rem;margin-bottom:1.6rem}.intro{color:var(--dim);line-height:1.65;margin-bottom:2rem}.start-actions{display:flex;gap:1rem;justify-content:center;flex-wrap:wrap}.topbar{display:flex;justify-content:space-between;align-items:center;padding:.45rem 1.2rem;background:var(--bg2);border-bottom:1px solid var(--panel-border);flex-wrap:wrap;gap:.4rem}.status-details{background:#0c111db3;border-bottom:1px solid var(--panel-border)}.status-details summary{cursor:pointer;padding:.28rem 1rem;font-size:.68rem;color:var(--dim);letter-spacing:.06em;display:flex;align-items:center;gap:.35rem;flex-wrap:wrap;list-style:none}.status-details summary:before{content:"▸";color:var(--accent);font-size:.6rem}.status-details[open] summary:before{content:"▾"}.status-details summary::-webkit-details-marker{display:none}.status-strip{display:flex;flex-wrap:wrap;gap:.25rem .35rem;padding:.15rem 1rem .3rem;max-height:6.5rem;overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--panel-border) transparent}.status-archive{display:flex;flex-wrap:wrap;align-items:center;gap:.25rem .35rem;padding:.15rem 1rem .35rem;border-top:1px dashed #1c2842;opacity:.75}.status-chip.status-stale{color:var(--dim);border-color:#263148;text-decoration:line-through;text-decoration-color:#78829680}.status-group{display:inline-flex;align-items:center;gap:.25rem;padding:.06rem .35rem .06rem 0;border-right:1px dashed #263550;margin-right:.35rem}.status-group:last-child{border-right:none;margin-right:0}.status-group-label{font-size:.6rem;text-transform:uppercase;letter-spacing:.12em;color:var(--dim);white-space:nowrap}.status-chip{font-size:.68rem;color:var(--accent);border:1px solid #3a3323;border-radius:999px;padding:.08rem .5rem;white-space:nowrap;line-height:1.4}.status-chip.status-fresh{color:#ffd98a;border-color:var(--accent);text-shadow:0 0 6px rgba(232,179,75,.35)}.situations{margin-top:.7rem}.situations-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(215px,1fr));gap:.4rem .9rem}.station-name{color:var(--accent);letter-spacing:.18em;font-size:.85rem}.commander{color:var(--dim);font-size:.78rem;margin-top:.2rem}.date{color:var(--dim);font-size:.9rem}.situation-block{margin-bottom:.7rem}.situation-block:last-child{margin-bottom:0}.situation-caption{font-size:.7rem;text-transform:uppercase;letter-spacing:.16em;color:var(--accent2);margin-bottom:.3rem}.situation-line{font-size:.76rem;color:var(--text);padding:.1rem 0;line-height:1.4}.situation-line.alert{color:var(--warn)}.thread-line{font-size:.73rem;line-height:1.45;color:var(--dim);padding:.1rem 0}.thread-open{color:var(--warn)}.thread-kept{color:var(--good)}.thread-broken{color:var(--danger);opacity:.85}.amb-name{color:var(--text)}.amb-title{color:var(--dim);font-style:normal;font-size:.75rem}.amb-attitude{color:var(--accent2);font-size:.78rem;white-space:nowrap}.amb-value{color:var(--text);font-weight:600}.chips{display:flex;flex-wrap:wrap;gap:.45rem;margin-bottom:1.3rem}.chip{font-size:.8rem;padding:.25rem .6rem;border-radius:999px;border:1px solid var(--panel-border);background:#0f1626}.chip-pos{color:var(--good);border-color:#2a5a3a}.chip-neg{color:var(--danger);border-color:#5a2f2a}.chip-axis{color:var(--accent2);border-color:#274a63}.chip-flag{color:var(--accent);border-color:#5a4a2a}.chip-adv{color:#c9a3e8;border-color:#4a2f5a}.advisor-comment{border-left:3px solid var(--accent2);padding:.5rem .9rem;margin-bottom:1.2rem;color:var(--dim);font-size:.88rem;line-height:1.55;background:#4ba3e80d}.advisor-comment-name{color:var(--accent2);font-weight:600}.advisor-gone{opacity:.5}.projects{border-top:1px solid var(--panel-border);padding-top:1rem;margin-bottom:1.2rem}.projects h3{font-size:.75rem;text-transform:uppercase;letter-spacing:.2em;color:var(--accent);margin-bottom:.7rem}.project-list{display:flex;flex-direction:column;gap:.5rem}.project{display:flex;flex-direction:column;gap:.2rem;text-align:left;background:#0f1626;border:1px solid var(--panel-border);color:var(--text);padding:.6rem .9rem;border-radius:6px;cursor:pointer;font-family:inherit;font-size:.88rem;transition:border-color .15s}.project:hover:not(:disabled){border-color:var(--accent)}.project-title{color:var(--accent2)}.project-cost{color:var(--dim);font-style:normal;font-size:.78rem}.project-text{color:var(--dim);font-size:.8rem;line-height:1.5}.project-passive{color:var(--good);font-style:normal}.project-active{margin-bottom:.3rem}.end-epilogue{text-align:left;margin-bottom:1.6rem;border-top:1px solid var(--panel-border);padding-top:1.2rem}.end-epilogue h3{font-size:.75rem;text-transform:uppercase;letter-spacing:.2em;color:var(--accent);margin-bottom:.7rem}.epilogue-line{color:var(--dim);font-size:.88rem;line-height:1.6;padding:.12rem 0}.chronicle{max-height:16rem;overflow-y:auto}.chronicle-year{margin-bottom:.7rem}.chronicle-year-label{font-size:.72rem;letter-spacing:.18em;color:var(--accent2);margin-bottom:.25rem}.chronicle-line{color:var(--dim);font-size:.8rem;line-height:1.55;padding:.08rem 0}.chronicle-line em{color:var(--text);font-style:normal}.chronicle-date{color:var(--accent2);font-size:.72rem;margin-right:.3rem}.hud{display:grid;grid-template-columns:repeat(5,1fr);gap:.6rem;padding:.4rem 1rem;background:#10172599;border-bottom:1px solid var(--panel-border)}.res-top{display:flex;gap:.4rem;align-items:baseline;font-size:.78rem;margin-bottom:.22rem}.res-name{color:var(--dim);flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.res-value{font-weight:600}.res.warn .res-value{color:var(--warn)}.res.danger .res-value{color:var(--danger)}.bar{height:5px;background:#0c1220;border-radius:3px;overflow:hidden;border:1px solid #1c2842}.bar-fill{height:100%;background:linear-gradient(90deg,var(--accent2),var(--good));transition:width .3s}.res.warn .bar-fill{background:var(--warn)}.res.danger .bar-fill{background:var(--danger)}.layout{display:grid;grid-template-columns:265px minmax(0,1fr) 265px;gap:.8rem;padding:.7rem 1rem;max-width:1520px;margin:0 auto;width:100%}body:has(.screen-game){overflow:hidden;height:100vh}.screen-game{height:100vh;min-height:0;display:flex;flex-direction:column}.screen-game .topbar,.screen-game .hud{flex:none}.screen-game .layout{flex:1;min-height:0}.layout>.sidebar,.layout>.main{min-height:0;overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--panel-border) transparent}.layout>.main{padding-bottom:.5rem}.panel{background:var(--panel);border:1px solid var(--panel-border);border-radius:6px;padding:.45rem .65rem;margin-bottom:.45rem}.panel h3{font-size:.65rem;text-transform:uppercase;letter-spacing:.18em;color:var(--accent);margin-bottom:.4rem;font-weight:600}.panel-sub{margin-top:.45rem;padding-top:.4rem;border-top:1px dashed #263550}.panel-sub-label{font-size:.6rem;text-transform:uppercase;letter-spacing:.14em;color:var(--dim);margin-bottom:.3rem}.project-done{color:var(--accent2)}.faction{margin-bottom:.35rem}.faction:last-child{margin-bottom:0}.faction-top{display:flex;justify-content:space-between;gap:.4rem;font-size:.74rem;margin-bottom:.14rem;color:var(--dim)}.panel-commander{border-color:#3a4a68}.cmd-name{color:var(--accent);font-size:.88rem;margin-bottom:.18rem}.cmd-noncanon{color:var(--warn);font-style:normal;font-size:.7rem}.cmd-status{color:var(--text);font-size:.74rem;line-height:1.4;margin-bottom:.2rem}.cmd-bio{color:var(--dim);font-size:.71rem;line-height:1.4;font-style:italic}.world-row{display:flex;flex-direction:column;padding:.16rem 0;border-bottom:1px dashed #1c2842}.world-row:last-child{border-bottom:none}.world-name{color:var(--accent2);font-size:.72rem;letter-spacing:.06em}.world-status{color:var(--dim);font-size:.72rem;line-height:1.35}.status-list{display:flex;flex-direction:column}.status-row{font-size:.74rem;color:var(--accent);padding:.16rem 0;line-height:1.35;border-bottom:1px dashed #1c2842}.status-row:last-child{border-bottom:none}.status-fresh{color:#ffd98a;text-shadow:0 0 6px rgba(232,179,75,.35)}.status-more summary{cursor:pointer;color:var(--dim);font-size:.72rem;padding:.25rem 0 .1rem;letter-spacing:.05em}.status-more[open] summary{color:var(--accent2)}.front{padding:.1rem 0 .3rem}.front-title{color:var(--accent2);font-size:.76rem;letter-spacing:.06em;margin-bottom:.25rem}.front-line{font-size:.73rem;line-height:1.45;color:var(--dim)}.front-done{color:var(--good)}.front-warn{color:var(--warn)}.front-lost{color:var(--danger);opacity:.85}.front-verdict{font-size:.73rem;color:var(--text);margin-top:.25rem;font-style:italic}.newsfeed{border-top:1px solid var(--panel-border);padding-top:.9rem;margin-bottom:1.2rem}.newsfeed h3{font-size:.72rem;text-transform:uppercase;letter-spacing:.2em;color:var(--accent2);margin-bottom:.5rem}.news-line{font-size:.83rem;color:var(--dim);line-height:1.55;padding:.18rem 0 .18rem .7rem;border-left:2px solid var(--panel-border);margin-bottom:.3rem}.news-line.alert{color:var(--warn);border-left-color:var(--warn)}.boomerang-badge{display:inline-block;font-size:.72rem;color:var(--warn);border:1px solid #5a4a2a;border-radius:3px;padding:.15rem .5rem;margin-bottom:.6rem}.chip-sched{color:var(--warn);border-color:#5a4a2a}.axis-hint{color:var(--dim);font-size:.7rem;line-height:1.4;margin:-.4rem 0 .7rem}.journal-details{margin-top:.8rem}.journal-details summary{cursor:pointer;color:var(--dim);font-size:.8rem;letter-spacing:.08em;padding:.4rem .6rem;background:var(--panel);border:1px solid var(--panel-border);border-radius:6px}.journal-list{padding:.5rem .8rem;background:var(--panel);border:1px solid var(--panel-border);border-top:none;border-radius:0 0 6px 6px}.axis{margin-bottom:.7rem}.axis-labels{display:flex;justify-content:space-between;font-size:.74rem;color:var(--dim);margin-bottom:.24rem}.axis-track{position:relative;height:8px;border-radius:4px;background:linear-gradient(90deg,#3d1e4e,#1c2842,#1e3d4e);border:1px solid #1c2842}.axis-marker{position:absolute;top:-3px;width:4px;height:14px;background:var(--accent);border-radius:2px;transform:translate(-50%);transition:left .3s}.journal-line{font-size:.75rem;color:var(--dim);padding:.3rem 0;border-bottom:1px dashed #1c2842;line-height:1.4}.journal-line:last-child{border-bottom:none}.dim{opacity:.6}.card{background:var(--panel);border:1px solid var(--panel-border);border-radius:8px;padding:.9rem 1.2rem}.card-head{display:flex;justify-content:space-between;align-items:baseline}.card-category{display:inline-block;font-size:.72rem;text-transform:uppercase;letter-spacing:.22em;color:var(--accent2);border:1px solid #274a63;padding:.2rem .6rem;border-radius:3px;margin-bottom:.9rem}.card-counter{font-size:.78rem;color:var(--dim)}.card-head-right{text-align:right}.council{font-size:.72rem;color:var(--dim);margin-top:.25rem;white-space:nowrap}.council-ok{color:var(--good)}.council-no{color:var(--warn)}.project-burned{color:var(--dim)}.project-burned s{text-decoration-color:var(--warn)}.card h2{font-weight:500;font-size:1.3rem;margin-bottom:.6rem;color:#f0f4fb}.event-text,.outcome{line-height:1.6;color:var(--text);margin-bottom:1rem}.outcome{color:#cfe3c9;font-style:italic}.choices{display:flex;flex-direction:column;gap:.5rem}.choice{display:flex;gap:.8rem;align-items:baseline;text-align:left;background:#0f1626;border:1px solid var(--panel-border);color:var(--text);padding:.5rem .8rem;border-radius:6px;cursor:pointer;font-size:.92rem;font-family:inherit;line-height:1.45;transition:border-color .15s,background .15s}.choice:hover:not(:disabled){border-color:var(--accent);background:#16203a}.choice-num{color:var(--accent);border:1px solid var(--panel-border);border-radius:3px;padding:0 .45rem;font-size:.8rem}.choice-locked{opacity:.45;cursor:not-allowed}.locked-note{color:var(--warn);font-size:.8rem}.choice-body{flex:1}.choice-info{display:flex;flex-wrap:wrap;align-items:center;gap:.35rem .6rem;margin-top:.35rem;min-height:1.35rem;opacity:0;transition:opacity .12s}.choice:hover .choice-info,.choice:focus-visible .choice-info{opacity:1}.choice-info .chip{font-size:.72rem;padding:.05rem .4rem}.info-group{display:inline-flex;flex-wrap:wrap;align-items:center;gap:.3rem}.info-label{color:var(--dim);font-style:normal;font-size:.72rem}.chip-cost{color:var(--warn);border-color:#5a4a2a}.chip-dim{color:var(--dim);border-color:var(--panel-border)}.info-risk{color:var(--warn);font-size:.76rem}.risk-mod{font-size:.72rem;margin-left:.35rem}.risk-mod-on{color:var(--good)}.risk-mod-off{color:var(--dim)}.risk-result{font-size:.85rem;margin-bottom:.6rem}.risk-ok{color:var(--good)}.risk-fail{color:var(--danger)}.res-preview{font-weight:700;font-size:.78rem}.res-preview.pos{color:var(--good)}.res-preview.neg{color:var(--danger)}.res.res-previewing .res-value{color:var(--accent)}.res.res-previewing .bar{border-color:var(--accent)}.card-actions{margin-top:.4rem}.summary-list{margin-bottom:1.4rem}.summary-line{color:var(--dim);line-height:1.7}.screen-end{display:flex;align-items:center;justify-content:center;padding:2rem}.end-box{max-width:680px;padding:3rem 2.5rem;background:#101725e6;border:1px solid var(--panel-border);border-radius:8px;text-align:center}.end-label{color:var(--dim);letter-spacing:.25em;text-transform:uppercase;font-size:.75rem;margin-bottom:1rem}.end-box h1{font-weight:300;font-size:2.4rem;letter-spacing:.1em;margin-bottom:1.2rem}.tone-victory h1{color:var(--good)}.tone-mixed h1{color:var(--accent)}.tone-defeat h1{color:var(--danger)}.end-text{line-height:1.75;color:var(--text);margin-bottom:1.6rem;text-align:left}.end-stats{display:flex;gap:1.2rem;justify-content:center;flex-wrap:wrap;color:var(--dim);font-size:.85rem;margin-bottom:2rem}.screen-game{transition:background 1.2s ease}.screen-game .panel,.screen-game .card{transition:border-color 1.2s ease,background 1.2s ease}.tone-shadow{--panel-border: #33254d;--accent2: #a887d8;background:radial-gradient(ellipse at 20% -10%,#1d1430,#0a081200 60%)}.tone-shadow-deep{--panel-border: #45276a;--accent2: #c08ae0;--panel: #170f24;background:radial-gradient(ellipse at 20% -10%,#241238,#09061000 65%)}.tone-shadow-deep .station-name{color:#c9a3e8}.tone-vorlon{--panel-border: #24484a;--accent2: #5fd0c0;background:radial-gradient(ellipse at 20% -10%,#12302e,#080e1000 60%)}.tone-vorlon-deep{--panel-border: #2c6360;--accent2: #7fe8d4;--panel: #0f1f1e;background:radial-gradient(ellipse at 20% -10%,#16403c,#070f0f00 65%)}.tone-vorlon-deep .station-name{color:#9fe8da}.tone-dawn{--panel-border: #4a3f28;--accent2: #e8c97a;background:radial-gradient(ellipse at 20% -10%,#2e2413,#100c0600 60%)}.tone-dawn .station-name{color:#ffd98a}.station-worn .panel,.station-worn .card{box-shadow:inset 0 0 26px #00000059}.station-worn .topbar{border-bottom-color:#5a4a2a}.station-worn .station-name{animation:b5-flicker 9s infinite}@keyframes b5-flicker{0%,91%,to{opacity:1}92%{opacity:.55}94%{opacity:.9}96%{opacity:.65}97%{opacity:1}}@media(max-width:1150px){.layout{grid-template-columns:230px minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto}.layout>aside:last-child{grid-column:1 / -1;max-height:34vh}}@media(max-width:800px){body:has(.screen-game){overflow:auto;height:auto}.screen-game{height:auto}.layout{grid-template-columns:1fr;grid-template-rows:none}.layout>aside:last-child{grid-template-columns:1fr;max-height:none}.layout>.sidebar,.layout>.main{overflow:visible}.hud{grid-template-columns:repeat(2,1fr)}}
