html{color-scheme:light}
.theme-toggle{display:inline-grid;place-items:center;flex:0 0 40px;width:40px;height:40px;padding:0;border:1px solid #496e70;border-radius:7px;background:#fffdf7;color:#173f43;font:700 22px/1 Georgia,serif;cursor:pointer;box-shadow:0 2px 4px #5f50331c}
.theme-toggle:hover{filter:brightness(.96)}
.theme-toggle:focus-visible{outline:3px solid #20a88f;outline-offset:2px}
.site-actions{display:flex;align-items:center;gap:12px}.site-actions>span{white-space:nowrap}
html[data-theme="dark"]{color-scheme:dark;--bg:#0d1518;--panel:#152125;--panel2:#1b2b30;--line:#385056;--text:#edf5f2;--muted:#a7b7b3;--teal:#73d4c5;--mint:#1d3936;--coral:#f08b7a;--gold:#e8bd70;--blue:#73d4c5;--cyan:#73d4c5;--green:#48caae;--green2:#26ad96;--amber:#e8bd70;--red:#f08b7a;--purple:#a9b9d0;--violet:#a9b9d0;--p:#152125}
html[data-theme="dark"] body{background:linear-gradient(135deg,#0b1215 0%,#111d21 58%,#132622 100%);color:var(--text)}
html[data-theme="dark"] .site-header,html[data-theme="dark"] .top,html[data-theme="dark"] .topbar{border-color:#304247}
html[data-theme="dark"] .brand,html[data-theme="dark"] .brand h1,html[data-theme="dark"] .page-name,html[data-theme="dark"] .site-name,html[data-theme="dark"] .title{color:var(--text)}
html[data-theme="dark"] .brand p,html[data-theme="dark"] .subtitle,html[data-theme="dark"] .intro p,html[data-theme="dark"] .site-header span:last-child{color:var(--muted)}
html[data-theme="dark"] .btn,html[data-theme="dark"] .button,html[data-theme="dark"] .iconbtn,html[data-theme="dark"] .theme-toggle{border-color:#49676d;background:#1b2b30;color:var(--text);box-shadow:0 2px 5px #0005}
html[data-theme="dark"] .theme-toggle:hover{background:#24383e;filter:none}
html[data-theme="dark"] .game-card,html[data-theme="dark"] .panel,html[data-theme="dark"] .mode,html[data-theme="dark"] .menuCard,html[data-theme="dark"] .stat,html[data-theme="dark"] .box,html[data-theme="dark"] .hudbox,html[data-theme="dark"] .result,html[data-theme="dark"] .resultGrid>div{border-color:var(--line);background:#152125;color:var(--text);box-shadow:0 7px 18px #0005}
html[data-theme="dark"] .art,html[data-theme="dark"] .game-card.featured .art,html[data-theme="dark"] .auditVisual,html[data-theme="dark"] .reconPulse{background:linear-gradient(145deg,#203337,#1a292d);color:var(--text)}
html[data-theme="dark"] .game-card p,html[data-theme="dark"] .mode p,html[data-theme="dark"] .mode strong,html[data-theme="dark"] .mode b,html[data-theme="dark"] .caseHeading p,html[data-theme="dark"] .queueHeading p{color:var(--muted)}
html[data-theme="dark"] .play,html[data-theme="dark"] .modeArrow,html[data-theme="dark"] .builder-link{color:#73d4c5}
html[data-theme="dark"] footer,html[data-theme="dark"] .site-footer{border-color:#304247;color:var(--muted)}
html[data-theme="dark"] img,html[data-theme="dark"] .asset{filter:brightness(.94) saturate(.9) drop-shadow(0 3px 5px #0006)}
html[data-theme="dark"] .mode:before,html[data-theme="dark"] .shopItem:before,html[data-theme="dark"] .power:before,html[data-theme="dark"] .tool:before,html[data-theme="dark"] .person:before,html[data-theme="dark"] .assign:before,html[data-theme="dark"] .dashboard .row span:before,html[data-theme="dark"] .resultGrid>div:before{filter:brightness(.94) saturate(.9) drop-shadow(0 3px 5px #0006)}
html[data-theme="dark"] .modeNumber{background:#25433f;color:#8de1d2}
html[data-theme="dark"] .mode[data-mode="nightmare"] .modeNumber,html[data-theme="dark"] .mode[data-mode="endless"] .modeNumber{background:#4b2d2c;color:#ffab9f}
html[data-theme="dark"] .auditBrief,html[data-theme="dark"] .reconBrief{border-color:#527078;background:#102d31;box-shadow:0 9px 22px #0006}
html[data-theme="dark"] .auditStamp{border-color:#ef8a7d;color:#ffab9f}
html[data-theme="dark"] .record,html[data-theme="dark"] .case,html[data-theme="dark"] .tool,html[data-theme="dark"] .task,html[data-theme="dark"] .person,html[data-theme="dark"] .power,html[data-theme="dark"] .card,html[data-theme="dark"] .fx{border-color:var(--line);background:#1b2b30;color:var(--text);box-shadow:0 3px 8px #0004}
html[data-theme="dark"] .card.in{background:#17312d}html[data-theme="dark"] .card.out{background:#352421}
html[data-theme="dark"] .record small,html[data-theme="dark"] .meta,html[data-theme="dark"] .hint,html[data-theme="dark"] .help,html[data-theme="dark"] .log,html[data-theme="dark"] .person small,html[data-theme="dark"] .power span,html[data-theme="dark"] .fx span{color:var(--muted)}
html[data-theme="dark"] .nav button{background:#1b2b30;color:var(--text)}html[data-theme="dark"] .nav button.active{background:#26776f;color:#fff}
html[data-theme="dark"] .nav button span,html[data-theme="dark"] .nav button.active span{background:#29433f;color:#d9f3ed}
html[data-theme="dark"] .decision button{border-color:var(--line);background:#24373c;color:var(--text)}
html[data-theme="dark"] .decision button small{color:var(--muted)}
html[data-theme="dark"] .tool:disabled,html[data-theme="dark"] .power:disabled,html[data-theme="dark"] .assign:disabled,html[data-theme="dark"] .level-tab:disabled{border-color:#39484b;background:#263236;color:#83918e}
html[data-theme="dark"] .bar,html[data-theme="dark"] .timerOuter,html[data-theme="dark"] .progress{background:#26383d}
html[data-theme="dark"] #game{background:linear-gradient(145deg,#18363c,#10282e);box-shadow:0 12px 28px #0007}
html[data-theme="dark"] #game .box,html[data-theme="dark"] #game .panel,html[data-theme="dark"] #game .stat{border-color:var(--line);background:#152125;color:var(--text)}
html[data-theme="dark"] #game .box small,html[data-theme="dark"] #game .stat small,html[data-theme="dark"] #game .panelTitle .hint{color:var(--muted)}
html[data-theme="dark"] #game .task,html[data-theme="dark"] #game .person{border-color:var(--line);background:#1b2b30}
html[data-theme="dark"] #game .task p,html[data-theme="dark"] #game .personTop>div>small,html[data-theme="dark"] #game .log{color:var(--muted)}
html[data-theme="dark"] #game .issue{background:#3a3021;color:#f4dfbd}html[data-theme="dark"] #game .issue p{color:#ddc8a6}
html[data-theme="dark"] .stat{background:linear-gradient(145deg,#1b2b30,#203338)}
html[data-theme="dark"] .stat small,html[data-theme="dark"] .stat-caption{color:var(--muted)}
html[data-theme="dark"] #clickButton{background:linear-gradient(165deg,transparent 0 48%,#1b3b37 49% 100%);color:#79d8ca}
html[data-theme="dark"] #clickButton span{color:var(--muted)}
html[data-theme="dark"] .status,html[data-theme="dark"] .shopItem,html[data-theme="dark"] .international-stat,html[data-theme="dark"] .financeUpgrade{border-color:var(--line);background:#19282c;color:var(--text)}
html[data-theme="dark"] .shopItem p,html[data-theme="dark"] .international-card p,html[data-theme="dark"] .international-card small,html[data-theme="dark"] .financeUpgrade p,html[data-theme="dark"] .financeUpgrade small{color:var(--muted)}
html[data-theme="dark"] .shopItem:disabled,html[data-theme="dark"] .financeUpgrade:disabled{background:#232e31;color:#84918e}
html[data-theme="dark"] .shopItem.locked h3{background:#344247;color:#b9c5c2}
html[data-theme="dark"] .international-hero{background:linear-gradient(135deg,#17272b,#1e3834)}html[data-theme="dark"] .international-hero p{color:var(--muted)}
html[data-theme="dark"] .event-card{background:#3b3020;color:var(--text)}html[data-theme="dark"] .event-card p{color:#dfcda9}
html[data-theme="dark"] .fx-status,html[data-theme="dark"] .financeUpgrade.owned{background:#17342f;color:#a8e5d9}
html[data-theme="dark"] .unlock-card{border-color:#548b84;background:#152125;color:var(--text)}
html[data-theme="dark"] #menu .menuCard,html[data-theme="dark"] #menu .rule{border-color:var(--line);background:#152125;color:var(--text);box-shadow:0 5px 12px #0005}
html[data-theme="dark"] #menu .rule{background:#1b2b30}html[data-theme="dark"] #menu .menuIntro,html[data-theme="dark"] #menu .rule span,html[data-theme="dark"] #menu .rule b,html[data-theme="dark"] #menu .rule span strong,html[data-theme="dark"] .best,html[data-theme="dark"] .best b{color:var(--text)}
html[data-theme="dark"] .gameWrap{border-color:#49676d;background:#101c20;box-shadow:0 8px 22px #0007}
html[data-theme="dark"] .fx.hot{border-color:#48caae;background:#17342f}
html[data-theme="dark"] .result .verdict{color:#dce9e6}
html[data-theme="dark"] .resultGrid small{color:var(--muted)}
html[data-theme="dark"] .overlay{background:#071113e8}
@media(max-width:520px){.site-actions{width:100%;justify-content:space-between}.theme-toggle{width:38px;height:38px}}
