
#setup .setup-intro{position:relative;isolation:isolate;padding:30px;margin-bottom:22px;background:#e3f1ec;border:1px solid #abc8cd;border-top:3px solid #c6a66a;border-radius:5px;overflow:hidden}#setup .setup-intro:before{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#f6fbf0f0,#e0f1ebd9 55%,#e6f3ecd9),url('https://pub-455b942732344b108b7f822583865d5e.r2.dev/season3-media/b721b30018661a21af73983a.webp') center 40%/cover;opacity:.86}#setup .setup-intro h1{color:#24596c;font-size:clamp(36px,4.2vw,57px)}#setup .setup-intro h1 em{color:#33857f}#setup .eyebrow{color:#8b733d}#setup .setup-intro>div>p:last-child{color:#507580}#setup .intro-notes{border-color:#afcbc5;padding-left:30px}#setup .intro-notes strong{color:#326570;font-size:22px}#setup .intro-notes p{color:#50757e}#setup .intro-notes>span{color:#8a7138}
#setup button{background:#f8fcf5;border-color:#9ebec1;color:#365f6d;border-radius:4px}#setup button:hover:not(:disabled){background:#e1efea;border-color:#4b9198}#setup .setup-toolbar{border-color:#b4cdcc;padding-top:20px}#setup .setup-toolbar h2{color:#2a6171}#setup .setup-toolbar h2 span{color:#3f8477}#setup .roster-hint{color:#557b83}#setup .development-settings{border-color:#bbd1cd}#setup .development-settings>summary{color:#587c84;min-height:44px;padding:10px 0}#setup .profile-source>p{color:#5b7b83}
#setup :is(input[type=text],select){background:#fffdf4;color:#294f60;border-color:#a6c2c7;border-radius:3px}#setup .fixture-settings{border-color:#bdd1cc}#setup .fixture-settings legend,#setup .fixture-settings>label{color:#416d79}#setup .fixture-settings legend span,#setup .fixture-settings>p{color:#5c7d84}
#setup .roster-choice{background:#fffdf3;border:1px solid #b6cbc4;border-radius:4px;box-shadow:0 3px 8px #587a6e0a}#setup .roster-choice:has(input:checked){background:linear-gradient(110deg,#edf7e9,#dcefea);border-color:#75a68f;box-shadow:inset 3px 0 #6c9e88}#setup .roster-choice img{border-radius:3px;border:1px solid #b9bea1}#setup .roster-choice strong{color:#2b5e6c}#setup .roster-choice .owned{color:#54777f}#setup .roster-choice input{accent-color:#348b78}#setup .roster-placeholder{background:#e2ece2;color:#688383}#setup .bonus-note{background:#e2f0e4;border-color:#b1cbbd;color:#477b70}
#setup .battle-brief{background:#f9fcf3;border:1px solid #b1cac4;border-top:2px solid #8eafa0;border-radius:4px;color:#2c5e6c}#setup .battle-brief>summary{color:#2e6571}#setup .battle-brief>summary small,#setup .guide-step p,#setup .brief-footer p{color:#557b83}#setup .guide-step{border-color:#bad1c766}#setup .brief-footer{border-color:#bad1c7}
#setup .launch-bar{background:#f4faf2f5;border-color:#adc9c3;border-top:2px solid #8aaea3;padding-inline:15px;border-radius:3px;box-shadow:0 -7px 20px #507a770d}#setup .launch-bar p{color:#507681}#setup #launch{background:linear-gradient(110deg,#3d9390,#327b8d);border-color:#31798a;border-top-color:#9fc6b5;color:#fffdf0;box-shadow:0 4px 12px #4f8a9122}#setup #launch:hover:not(:disabled){background:#2e808b}
/* Keep dark stage variables on body. Only the surrounding panels receive light tokens. */
body:has(#game:not([hidden])){background:#eaf2ee;color:#193e51}
#game :is(.battle-top,.battle-controls,.reserve-column,.command-dock){--ink:#193e51;--paper:#fffdf3;--line:#b8cfd2;--muted:#506f7a;--orange:#a7742b;--teal:#348b72;color:#193e51}
#game .battle-top{border-color:#b4cdca}#game .game-title h1{color:#2b5e6c}#game .game-title .eyebrow{color:#67848a}#game .phase{background:#e0efdf;color:#46796a;border:1px solid #b4cdb8}#game .hud>div{border-color:#bbd1cd}#game .hud span{color:#567981}#game .hud strong,#game .hud #wave>span{color:#326c79}#game #coins{color:#96713a}#game .hud small{color:#5b7c83}#game .hud .critical strong{color:#aa3926}#game .hud progress{background:#ccdfd6}#game .wave-clock{color:#7f6d3d}#game .wave-display progress{background:#d2e3da}
#game :is(.battle-controls,.reserve-column,.command-dock) button{background:#f9fcf4;color:#365f6d;border-color:#a6c1c3}#game :is(.battle-controls,.reserve-column,.command-dock) button:hover:not(:disabled){background:#deeee6;border-color:#619d9a}#game .battle-options summary{background:#f8fcf4;border-color:#a6c1c3;color:#365f6d}#game .battle-metrics{color:#5a7c84}#game .battle-metrics strong{color:#356d77}
#game .options-content{background:#fffdf3;border-color:#99b9bc;box-shadow:0 12px 35px #426b7740;color:#365f6d}#game .options-content .bonus-note,#game .options-content .local-disclaimer{color:#557881}#game .command-gates b{color:#8b6e38}#game .options-content #guide-open-battle{background:#e8f3e8;border-color:#92b7a1;color:#3f7a6e}#game .effects-option,#game .effects-settings,#game .battle-audio-control{color:#567981}
#game .bench-panel{background:#f9fcf3;border-color:#abc6c3;border-top-color:#c2a369;border-radius:5px}#game .bench-heading .eyebrow{color:#91783e}#game .bench-heading h2{color:#2c6170}#game #bench-count{color:#5e7e83}#game .bench-actions,#game .bench-help{color:#5b7d84}#game .bench-grid{background:#e8f1e8;border-color:#b0c9bd;scrollbar-color:#a6c3b6 #e5f0e6}#game .bench-card{background:#fffdf4;border-color:#a8c5bb}#game .bench-card>span{color:#2e616e}#game .bench-card em{color:#5a7d85}#game .bench-card small{color:#8f703a}#game .bench-card .stack-count{color:#745d2f;background:#fff2cfef;border-color:#c5ae75}#game .bench-card[aria-pressed=true]{background:#fff5d9;border-color:#b58f43;box-shadow:0 0 0 1px #d3ba7a}#game .bench-card[data-merge-ready=true]{border-color:#bb9a53;box-shadow:inset 0 -2px #c7a75d}#game .bench-empty{color:#5a7c81}#game .auto-merge-info{color:#8a703b;border-color:#bdcdbb}
#game .inspector{background:#fffdf3;border-color:#9dbdbd;color:#355f6b}#game .inspector h2{color:#2a5f6e}#game .inspector-heading .eyebrow{color:#68838a}#game .inspector-heading>b{color:#8c7038}#game .inspector .merge-hint{color:#43816e}#game .reserve-column{scrollbar-color:#9dbdb2 #e7f0e6}
#game .command-dock{background:#f9fcf3;border-color:#aac5bf;border-top-color:#c2a369;box-shadow:0 4px 16px #527b701a;border-radius:5px}#game .dock-state strong{color:#2e6572}#game .dock-state span{color:#567c84}#game #inspect-card{background:transparent;border:0}#game #inspect-card strong:after{color:#699b90}#game .main-commands #summon{background:linear-gradient(110deg,#3d9390,#327b8d);border-color:#31798a;border-top-color:#9fc6b5;color:#fffdf0;box-shadow:inset 0 1px #c2dbbc66,0 3px #477e7d22}#game .main-commands #merge{background:#f8edcb;border-color:#bda36b;color:#756035;box-shadow:inset 0 1px #fffdf0,0 3px #a78d561a}#game .main-commands #summon:hover:not(:disabled){background:#2e808b}#game .main-commands #merge:hover:not(:disabled){background:#f0dfac;border-color:#aa8a47}#game .unit-commands .sell{color:#9d5c40}
/* Dark map, placement highlights, battle announcements and VFX intentionally unchanged. */
#game .bench-card[aria-pressed=true]:hover:not(:disabled){background:#fff5d9;border-color:#b58f43;box-shadow:0 0 0 1px #d3ba7a}
#quit-dialog,#battle-guide{color-scheme:light;--ink:#193e51;--paper:#fffdf3;--line:#b8cfd2;--muted:#506f7a;--orange:#a7742b;--teal:#348b72;background:#fffdf3;color:#193e51;border:1px solid #9bbbc0;border-top:3px solid #c2a160;border-radius:5px;box-shadow:0 25px 80px #14384566}#quit-dialog::backdrop,#battle-guide::backdrop{background:#173e55a8;backdrop-filter:blur(5px)}#quit-dialog h2{color:#24596c}#quit-dialog .eyebrow{color:#8b733d}#quit-dialog button{background:#f5fbf5;border-color:#a2bfc0;color:#365f6d}#quit-dialog button.primary{background:#327e85;border-color:#2f717d;color:#fffdf0}
#battle-guide .guide-heading{border-color:#bfd3cd}#battle-guide .guide-heading .eyebrow{color:#8b733d}#battle-guide .guide-heading h2{color:#24596c}#battle-guide .guide-heading>p:last-child{color:#557780}#battle-guide .guide-step{border-color:#bed3cb}#battle-guide .guide-step h3{color:#326b77}#battle-guide .guide-step p{color:#557b83}#battle-guide .guide-art:after{color:#64838a}#battle-guide .guide-notes{background:#e6f2e8;border-color:#8faf96;color:#4b7a72}#battle-guide .guide-notes p:last-child{color:#8a703b}#battle-guide .guide-footer{background:#fffdf3f5;border-color:#bcd1ca}#battle-guide .guide-footer p{color:#5a7c83}#battle-guide .guide-footer button{background:#327e85;border-color:#2f717d;color:#fffdf0}
@media(max-width:600px){#setup .setup-intro{padding:24px 19px;gap:20px;margin-bottom:18px}#setup .setup-intro h1{font-size:36px}#setup .intro-notes{padding:17px 0 0;border-left:0;border-top:1px solid #b7cfca}#setup .intro-notes strong{font-size:17px}#setup .setup-intro>div>p:last-child{font-size:13px}#setup .launch-bar{padding-inline:10px}#setup .launch-bar button{min-width:136px}#setup .launch-bar p{font-size:10px}}

/* Player buffs (2026-10-30): small mark on the roster card and battle chip; details on hover (src/ui/buff-tip.js). */
#setup .roster-choice .buff-mark{margin-left:6px;vertical-align:middle}
#setup .roster-choice[data-buffed=true]{cursor:help}
.lineup-chip[data-buffed=true]{color:#7a4a12;font-weight:700;cursor:help}.lineup-chip[data-buffed=true] img{box-shadow:0 0 0 2px #e0b552}
.lineup-chip .buff-mark{padding:0 5px;font-size:9px}
