.mode-choice{grid-column:1/-1}
.mode-switch{display:flex;gap:6px;background:#10191f;border:1px solid #34424b;padding:5px;border-radius:8px}
.mode-switch button{flex:1;background:transparent;border:1px solid transparent;color:#99a7af;border-radius:5px;padding:9px 12px;font:inherit;font-size:13px;font-weight:800;cursor:pointer;text-align:left}
.mode-switch button small{display:block;font-size:10px;font-weight:500;margin-top:4px;color:#9eaeb6}
.mode-switch button.selected{background:#283a42;border-color:#658179;color:#e6f1d2}
.mode-choice p{font-size:11px;color:#9eabb1;margin:8px 2px 0}
.difficulty-choice{display:flex;align-items:center;flex-wrap:wrap;gap:9px;font-size:11px;margin-top:10px;color:#afbdc1}
.difficulty-choice>div{display:flex;gap:4px}
.difficulty-choice button{font:inherit;font-size:11px;color:#a9bac0;background:#152028;border:1px solid #3b4d56;border-radius:4px;padding:6px 13px;cursor:pointer}
.difficulty-choice button.selected{color:#e2edc9;background:#354d3d;border-color:#759065}
.difficulty-choice small{font-size:10px;color:#96a7ae}
.difficulty-choice button:focus-visible{outline:2px solid #d9e2a3;outline-offset:3px}
.pause-overlay .text-button{margin-top:12px;color:#c0d0ce}
.pause-links{display:flex;gap:22px;align-items:center;justify-content:center}
.fighter-status{height:16px;line-height:16px;margin-top:4px;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#e3d5a7}
.fighter-status[data-kind="slow"]{border-left:2px solid #ded6a9;padding-left:5px;background:#1b2723}
.fighter-status[data-kind="hit"]{color:#c2d4d6}
html.high-contrast .fighter-status{color:#faf3cf}
.game-shell{container-type:inline-size}
@container(max-width:760px){
  .skill{flex-direction:column;align-items:flex-start;gap:4px;padding:7px 5px;min-height:74px}
  .skill-icon{width:27px;height:27px}
  .skill-copy strong{font-size:9px}
  .skill-copy small{font-size:8px}
}
.combo-tag{position:absolute;right:4%;top:42%;display:flex;align-items:baseline;gap:5px;color:#edf3bd;text-shadow:2px 2px #17272a;pointer-events:none}
.combo-tag strong{font-size:25px;font-weight:900;font-variant-numeric:tabular-nums}
.combo-tag span{font-size:8px;letter-spacing:1px;font-weight:800}
body.is-playing .heading{display:none}
body[data-touch-controls="always"] .touch-controls:not([hidden]){display:flex}
/* Held game buttons must not select text or open the browser's long-press menu. */
.touch-controls,.touch-controls *,.skill,.skill *{
  -webkit-touch-callout:none;
  -webkit-user-select:none;
  user-select:none;
  touch-action:none;
}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,canvas:focus-visible{outline:2px solid #e3edb8;outline-offset:3px}
.stage canvas:focus-visible{outline:2px solid #e3edb8!important;outline-offset:-3px}
.skill .cooldown-shade{z-index:0}
#settings-dialog{width:min(520px,calc(100% - 28px));max-height:calc(100svh - 32px);overflow:auto}
.settings-close{position:absolute;right:15px;top:15px}
.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px 18px;margin:24px 0}
.setting-range,.setting-select{display:flex;flex-direction:column;gap:10px;font-size:12px;color:#e0e8df}
.setting-range>span{display:flex;justify-content:space-between;gap:10px}
.setting-range output{color:#c5e69f;font-variant-numeric:tabular-nums}
.setting-range input{width:100%;accent-color:#b9d89e;min-height:28px;cursor:pointer}
.setting-select select{font:inherit;color:#e0e8df;background:#182730;border:1px solid #667980;border-radius:5px;padding:10px 7px;width:100%}
.setting-select small,.setting-check small{font-size:10px;line-height:1.6;color:#a4b6bd}
.setting-check{display:flex;align-items:flex-start;gap:10px;font-size:12px;color:#e0e8df;cursor:pointer}
.setting-check input{width:18px;height:18px;margin:0;accent-color:#bddaa1}
.setting-check small{display:block;margin-top:6px}
.settings-actions{display:flex;align-items:center;justify-content:space-between;gap:18px;border-top:1px solid #405058;padding-top:17px}
.settings-actions .primary-button{flex:1;max-width:200px;margin:0}
.save-panel{border-top:1px solid #405058;padding-top:15px;margin-top:16px;font-size:12px}
.save-panel p{font-size:11px;line-height:1.7;margin:10px 0}
.save-panel p:empty{display:none}
.backup-actions,.save-resolution{display:flex;flex-wrap:wrap;gap:7px;margin:9px 0 13px}
.backup-actions button,.save-resolution button{padding:9px 10px;font-size:11px}
.save-status{font:inherit;font-size:9px;color:#b9d5b0;border:1px solid #44614e;background:#1b2c26;border-radius:4px;padding:6px 9px;cursor:pointer}
.save-status[data-warning="true"]{color:#ffda91;border-color:#9b7643;background:#392e22}
html[data-motion="reduced"] .damage-number{animation:none;transform:translateX(-50%);opacity:1}
html[data-motion="reduced"] .combat-notice,html[data-motion="reduced"] .stress-fill,html[data-motion="reduced"] .rage-track i,html[data-motion="reduced"] .skill,html[data-motion="reduced"] .primary-button{transition:none;animation:none}
html.high-contrast .loadout-top #loadout-note,html.high-contrast .control-strip,html.high-contrast .mode-choice p,html.high-contrast .difficulty-choice small,html.high-contrast .setting-select small,html.high-contrast .setting-check small,html.high-contrast .practice-stats{color:#d5e1e4}
html.high-contrast .skill.disabled{opacity:1;filter:none;background:#131e25;border-color:#71878e}
html.high-contrast .skill small,html.high-contrast .stress-label,html.high-contrast .rage small{color:#d4dedf}
html.high-contrast .skill,html.high-contrast .small-button,html.high-contrast .mode-switch,html.high-contrast .team-card{border-color:#82969a}
html.high-contrast .damage-number.miss{color:#edf5e3;text-shadow:1px 1px #07131a,-1px -1px #07131a}
html.high-contrast .fighter-name span,html.high-contrast .live-dot,html.high-contrast dialog p,html.high-contrast .control-strip .objective,html.high-contrast footer{color:#d0dce0}
.practice-tools{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between;margin-top:10px;padding-top:9px;border-top:1px solid #334149}
.practice-stats{display:flex;gap:13px;font-size:11px;color:#a4b5ba;font-variant-numeric:tabular-nums}
.practice-stats b{color:#dfedcf;margin-left:3px}
.practice-actions{display:flex;flex-wrap:wrap;gap:5px}
.practice-actions .small-button{font-size:10px;padding:7px 9px}
.practice-loadout{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin-top:10px;padding-top:10px;border-top:1px solid #40535b}
.practice-loadout>label{display:flex;align-items:center;gap:10px;color:#c5d2ce;font-size:11px;white-space:nowrap}
.practice-loadout select{font:inherit;font-weight:700;color:#d9edc5;background:#20332e;border:1px solid #77937c;padding:8px;border-radius:5px;min-width:130px}
.practice-loadout-note{font-size:10px;color:#9fb0b5}
.vent-practice-guide{display:flex;align-items:center;gap:10px;font-size:11px;color:#b6ecd5}
.vent-practice-guide>span{max-width:270px;line-height:1.6}
.vent-practice-guide .small-button{padding:8px 10px;color:#e3f3cf;border-color:#7b9b7d;white-space:nowrap}
html.high-contrast .practice-loadout-note,html.high-contrast .practice-loadout>label{color:#e3edeb}
@media(min-width:761px) and (min-height:600px){
  .game-shell.is-practice.has-practice-loadout{max-width:min(100%,calc(218svh - 900px))}
  body.is-playing[data-touch-controls="always"] .game-shell.is-practice.has-practice-loadout{max-width:min(100%,calc(218svh - 1020px))}
}
.small-button:disabled{opacity:.4;cursor:default}
.collection-entry{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:15px;border:1px solid #4c6355;border-radius:6px;padding:12px 14px;background:#1a2b26}
.collection-entry>span{font-size:11px;color:#d2dfcc}.collection-entry b{font-size:18px;color:#d7f8ad;margin-left:7px}.collection-entry small{display:block;color:#9fb4ad;font-size:10px;margin-top:3px}
.collection-entry .small-button{padding:10px 13px;color:#e4f1ce;white-space:nowrap}
#collection-dialog{width:min(620px,calc(100% - 28px));max-height:calc(100svh - 30px);overflow:auto;padding:30px}
#collection-dialog>.icon-button{position:absolute;right:15px;top:15px}
.collection-summary{display:flex;justify-content:space-between;align-items:center;margin:19px 0 10px;color:#bcd0c6;font-size:12px}
.collection-summary b{font-size:23px;color:#daf5ae;margin-left:7px}
#collection-warning,#collection-message{font-size:11px;line-height:1.8;color:#c3d4cb;margin:10px 0}
#collection-message:empty{display:none}
.new-skill-card{display:grid;grid-template-columns:58px 1fr;gap:13px;border:1px solid #658574;background:#1b312c;border-radius:7px;padding:17px;margin:18px 0}
.new-skill-card canvas{width:54px;height:54px;image-rendering:pixelated;background:#14251f;border:1px solid #546e5d;border-radius:4px}
.new-skill-card h3{font-size:19px;margin:5px 0 8px;color:#b4f1d2}
.new-skill-card p{font-size:11px;line-height:1.8;margin:0;color:#b8cbc3}
#vent-ownership,#chair-ownership,#ember-ownership,#homegym-ownership,#decoy-ownership,#vacuum-ownership{font-size:10px;color:#d6e6a7}
.new-skill-card h3 small{display:block;margin-top:5px;font-size:10px;font-weight:500;color:#bfd1c8}
.chair-skill-card{border-color:#a77d4e;background:#30291e}
.chair-skill-card h3{color:#f1cc8a}
.chair-practice-guide{display:flex;flex-wrap:wrap;gap:4px 12px;font-size:10px;color:#efd095}
.chair-practice-guide small{font-size:9px;color:#b7c5c5}
.new-skill-actions{grid-column:1/-1;display:flex;gap:9px;align-items:stretch;margin-top:4px}
.new-skill-actions button{flex:1;padding:11px 8px;font-size:11px;margin:0;min-height:40px}
.new-skill-actions .primary-button:disabled{background:#33443b;border:1px solid #5a6c5e;color:#bdcdc1;box-shadow:none}
.collection-loadout{border-top:1px solid #42564e;padding-top:17px}
.collection-loadout>label{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px;color:#d5e2d8}
.collection-loadout select{font:inherit;background:#182b28;border:1px solid #6b8979;border-radius:5px;color:#deedda;padding:9px;min-height:38px;max-width:230px}
.collection-slots{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:13px}
.collection-slot{display:flex;flex-direction:column;gap:8px;border:1px solid #41594f;border-radius:5px;padding:11px;background:#15231f}
.collection-slot>span{font-size:10px;color:#a6bcb1}.collection-slot strong{font-size:12px;min-height:38px;display:flex;align-items:center}.collection-slot select{width:100%;font-size:12px;padding:7px;max-width:100%}
.collection-loadout>p{font-size:10px;line-height:1.8;color:#a8bcb2;margin:10px 0}
.collection-recovery{font-size:10px;display:flex;align-items:center;justify-content:space-between;gap:10px;color:#edcf8c}
.collection-done{margin-top:16px;width:100%;font-size:12px;padding:12px}
#collection-quick-done{width:100%;justify-content:center;margin:12px 0 20px;padding:11px;font-size:11px;color:#e2f5d0;border-color:#6b8b68}
.collection-filters{display:flex;flex-wrap:wrap;gap:12px;align-items:center;border-top:1px solid #42564e;padding-top:16px}
.collection-filters>div{display:flex;flex-wrap:wrap;gap:6px}.collection-filters button{padding:9px 10px;font-size:10px}
.collection-filters button[aria-pressed="true"]{background:#34513e;color:#e0f8c8;border-color:#a6c28c}
.collection-filters>label{display:flex;align-items:center;gap:5px;color:#d1e1d6;font-size:11px;min-height:34px;cursor:pointer}
#collection-count{font-size:10px;color:#b2c8bb;margin:12px 0}
#collection-empty{padding:20px 12px;border:1px dashed #79917d;border-radius:6px;text-align:center;color:#c9dccd;font-size:12px}
#collection-empty button{margin:12px auto 0;padding:10px 18px}
.loadout-preset{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 10px;border:1px solid #59715d;background:#203028;border-radius:6px;padding:12px;margin:12px 0}
.loadout-preset>label{display:flex;flex-direction:column;gap:6px;font-size:11px;color:#d8e9cb;min-width:0}
.loadout-preset select{width:100%;max-width:none!important;font-size:12px;min-width:0}
.loadout-preset>button{align-self:end;min-height:38px;white-space:nowrap;font-size:11px}
#preset-current{font-size:10px;color:#c6d9b8;grid-column:1/-1}
#preset-note{grid-column:1/-1;margin:0;font-size:10px;line-height:1.7;color:#c6d5ca}
#preset-discover{grid-column:1/-1;justify-content:center}
.reward-panel{display:flex;justify-content:space-between;align-items:center;gap:10px;border:1px solid #607e5a;border-radius:5px;background:#203129;padding:12px;margin-top:12px}
.reward-panel p{font-size:11px;line-height:1.7;color:#eed9a2;margin:0;max-width:390px}.reward-panel p[data-saved="true"]{color:#d5f3a8}
.reward-panel button{padding:10px;white-space:nowrap;font-size:11px}
html.high-contrast .collection-entry small,html.high-contrast .collection-slot>span,html.high-contrast .collection-loadout>p{color:#d4e4dd}
.mode-switch button:focus-visible,.practice-tools button:focus-visible{outline:2px solid #d9e2a3;outline-offset:3px}
@media(min-width:761px) and (min-height:600px){.game-shell.is-practice{max-width:min(100%,calc(218svh - 740px))}}
@media(min-width:761px) and (min-height:600px){body.is-playing[data-touch-controls="always"] .game-shell{max-width:min(100%,calc(218svh - 930px))}}
@media(max-width:760px){
  .fighter-status{height:14px;line-height:14px;font-size:8px;margin-top:3px}
  #collection-dialog{padding:24px 18px}
  #collection-dialog h2{font-size:23px}
  .collection-entry{padding:9px;gap:6px}.collection-entry>span{font-size:10px}.collection-entry small{font-size:8px}.collection-entry .small-button{padding:10px 8px;font-size:10px}
  .collection-summary{font-size:11px}.collection-loadout>label{font-size:11px}.collection-loadout select{max-width:175px;font-size:11px}
  .new-skill-card{padding:13px;gap:10px;grid-template-columns:47px 1fr}.new-skill-card canvas{width:44px;height:44px}.new-skill-card p{font-size:10px}.new-skill-card h3{font-size:17px}
  .new-skill-actions{gap:6px}.new-skill-actions button{font-size:10px}
  .collection-slot{padding:9px}.collection-slot select{font-size:11px}.reward-panel{display:block;padding:10px}.reward-panel button{margin-top:8px;width:100%}
  .mode-switch button{padding:8px;font-size:12px}
  .mode-switch button small{font-size:9px}
  #settings-dialog{padding:24px 20px}
  .settings-grid{gap:19px 14px}
  .setting-select,.setting-range,.setting-check{font-size:11px}
  .setting-select select{font-size:11px}
  .setting-select select,.setting-range input{min-height:40px}
  .settings-actions .text-button{min-height:40px}
  .combo-tag strong{font-size:15px}.combo-tag span{font-size:6px;letter-spacing:0}
  .difficulty-choice{gap:7px}
  .difficulty-choice small{flex-basis:100%}
  .practice-tools{gap:7px;margin-top:7px;padding-top:7px}
  .practice-stats{font-size:10px;width:100%;justify-content:space-between}
  .practice-actions{display:grid;grid-template-columns:1fr 1.1fr 1fr .65fr;width:100%}
  .practice-actions .small-button{padding:8px 3px;font-size:10px}
  .practice-actions kbd{display:none}
  .practice-loadout{display:block;margin-top:8px;padding-top:8px}
  .practice-loadout>label{justify-content:space-between;font-size:10px}
  .practice-loadout select{flex:1;max-width:190px;min-height:36px;font-size:11px}
  .practice-loadout-note{display:block;font-size:9px;margin-top:5px}
  .vent-practice-guide{justify-content:space-between;margin-top:7px;font-size:10px;gap:5px}
  .vent-practice-guide>span{max-width:190px}
  .vent-practice-guide .small-button{font-size:10px;padding:8px 6px}
  .is-practice .control-strip{padding-block:7px}
  .is-practice .control-strip .objective{display:none}
}

@container(max-width:760px){
 .practice-loadout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);gap:6px 10px}
 .practice-loadout>label{flex-direction:column;align-items:stretch;gap:4px;font-size:10px;min-width:0}
 .practice-loadout select{min-width:0;max-width:none;width:100%;padding:7px 5px;min-height:34px}
 .practice-loadout-note,.chair-practice-guide,.vent-practice-guide,.ember-practice-guide,.homegym-practice-guide,.decoy-practice-guide,.vacuum-practice-guide,.ball-practice-guide,.ash-practice-guide{grid-column:1/-1}
}

.ember-skill-card{border-color:#a88b60;background:#2e2b21}.ember-skill-card h3{color:#f1d591}
.ember-practice-guide{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#ecd4a1;font-size:10px}.ember-practice-guide .small-button{white-space:nowrap;padding:7px 9px;font-size:10px}

.learn-button{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center;gap:10px;min-height:42px;border-color:#6b8469;color:#dbeccf;padding:10px 14px}.learn-button span{font-size:10px;color:#aec1b0}
.practice-goal{min-height:16px;line-height:16px;font-size:11px;color:#e6edbb;font-weight:700}.high-contrast .practice-goal{color:#fff3c7}

.fighter-status[data-kind="action"]{color:#f5d095;border-left:2px solid #da9b50;padding-left:5px;background:#2b271f}
.homegym-skill-card{border-color:#b1845d;background:#33271f}.homegym-skill-card h3{color:#ffd293}
.homegym-practice-guide{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#f0cf9b;font-size:10px}.homegym-practice-guide .small-button{white-space:nowrap;padding:7px 9px;font-size:10px}

.challenge-button{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center;gap:10px;min-height:42px;border:1px solid #a17f4e;border-radius:6px;background:#2d2b21;color:#f0d99b;padding:10px 14px;font-weight:700}.challenge-button span{font-size:10px;color:#c7c7a9;font-weight:400}.challenge-button:disabled{opacity:.5}

.game-shell{position:relative}.result-overlay{padding:12px}.result-card{max-width:100%;max-height:calc(100% - 24px);overflow:auto}
.battle-recap{padding:9px 11px;border:1px solid #58707855;border-radius:8px;background:#18282b;color:#d3e3e4;font-size:11px;line-height:1.6;overflow-wrap:anywhere}
.ball-practice-guide{display:flex;flex-wrap:wrap;align-items:center;gap:5px 10px;font-size:10px;color:#f3d8a0}
.ball-practice-guide .small-button{padding:6px 9px;font-size:9px}
.ball-skill-card{border-color:#b49a58;background:#302b20}.ball-skill-card h3{color:#ffe2a0}
#ball-ownership{font-size:10px;color:#d6e6a7}
#objective-text.goal-done{color:#d7f7a3;font-weight:700}
.result-card>.result-goal{padding:7px 9px;border:1px solid #9cbb7150;background:#253425;border-radius:6px;color:#dbeac8;font-size:10px;line-height:1.7}

.decoy-skill-card{border-color:#639c92;background:#203a36}.decoy-skill-card h3{color:#a8e6d4}
.decoy-practice-guide{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 12px;color:#a8dfd0;font-size:10px}.decoy-practice-guide small{font-size:9px;color:#b9ceca}
.fighter-status[data-kind="decoy"]{color:#b9eadc;border-left:2px dashed #91c9b8;padding-left:5px}

.is-challenge .loadout-top>div{flex:1;min-width:0;flex-wrap:wrap;row-gap:5px}.is-challenge #pause{flex:0 0 auto;white-space:nowrap}.is-challenge #loadout-note{display:block;flex-basis:100%;font-size:10px;line-height:1.5;color:#b8d5ca}
@media(max-width:760px){.is-challenge #loadout-note{font-size:9px;line-height:1.5}}

.vacuum-skill-card{border-color:#bba16a;background:#332e22}.vacuum-skill-card h3{color:#efd49b}
.vacuum-practice-guide{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 12px;color:#ecd8a2;font-size:10px}.vacuum-practice-guide small{font-size:9px;color:#cfc4aa}
.fighter-status[data-kind="vacuum"]{color:#efd49b;border-left:2px solid #c6a257;padding-left:5px}

.ash-practice-guide{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:5px 10px;font-size:10px;color:#d4e4ce}.ash-practice-guide .small-button{padding:6px 9px;font-size:9px}
.ash-skill-card{border-color:#a5b69b;background:#283229}.ash-skill-card h3{color:#e4eecf}#ash-ownership{font-size:10px;color:#d6e6a7}
.career-record{font-size:11px;line-height:1.55;color:var(--muted);margin:8px 0;overflow-wrap:anywhere}
.collection-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}
#codex-dialog{width:min(860px,calc(100vw - 28px));max-height:calc(100dvh - 28px);padding:24px;border:1px solid #4b6259;border-radius:12px;background:#17242b;color:var(--text)}
#codex-dialog::backdrop{background:#071017d9;backdrop-filter:blur(5px)}
.codex-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.codex-heading h2{margin:6px 0;font-size:25px}.codex-heading p{color:#a4b9b1;font-size:12px;margin:0 0 16px}
.codex-teams{display:flex;gap:8px;margin-bottom:15px}.codex-teams button{min-height:44px;flex:1}.codex-teams [aria-pressed=true]{border-color:var(--green);color:var(--green);background:#273d31}
.codex-layout{display:grid;grid-template-columns:1fr 1fr;gap:18px;align-items:start}.codex-list{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.codex-skill{display:flex;align-items:center;text-align:left;gap:7px;min-height:68px;padding:8px;background:#111d24;border:1px solid #374a4f;border-radius:6px;min-width:0}.codex-skill[aria-pressed=true]{background:#2c3d30;border-color:#b1ed91}.codex-skill canvas{width:32px;height:32px;flex:none;image-rendering:pixelated}.codex-skill strong{display:block;font-size:11px;line-height:1.45;overflow-wrap:anywhere}.codex-skill small{display:block;color:#afc0b6;font-size:9px;margin-top:3px}
.codex-detail{border:1px solid #435c52;background:#1c2c2d;border-radius:8px;padding:17px}.codex-detail>small{display:block;color:#bdd6c2;font-size:10px;line-height:1.5}.codex-detail h3{font-size:22px;margin:7px 0}.codex-detail>p{font-size:12px;line-height:1.65;color:#bfcec8}.codex-detail dl{font-size:11px;margin:16px 0}.codex-detail dl>div{padding:8px 0;border-top:1px solid #385047}.codex-detail dt{color:#99b3a5;margin-bottom:4px}.codex-detail dd{margin:0;color:#e4efdf;line-height:1.6}.codex-tip b{display:block;color:#d5eec7;font-size:10px;margin-bottom:3px}.codex-tip span{display:block}.codex-detail .primary-button{margin-top:12px;min-height:46px;width:100%;display:flex;justify-content:space-between}
@media(max-width:640px){.collection-actions{flex-direction:column;flex-shrink:0}#codex-dialog{padding:16px}.codex-layout{grid-template-columns:1fr;gap:12px}.codex-skill{min-height:52px;padding:6px}.codex-skill canvas{width:27px;height:27px}.codex-detail{padding:13px}.codex-heading h2{font-size:22px}.codex-detail h3{font-size:20px}}
.codex-detail dl{display:block}.codex-detail dl>div{display:grid;grid-template-columns:74px minmax(0,1fr);gap:8px}.codex-detail dt{line-height:1.6;margin:0}
.challenge-choice{grid-column:1/-1;border:1px solid #64563c;border-radius:7px;padding:10px;background:#27291f}.challenge-choice>label{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#d5c994;font-size:11px;font-weight:700}.challenge-choice select{font:inherit;font-size:12px;min-height:40px;max-width:65%;background:#18221f;color:#f0e7c5;border:1px solid #6c7255;border-radius:5px;padding:7px 10px}.challenge-choice>p{color:#bfc3ac;font-size:10px;line-height:1.6;margin:8px 0}.challenge-choice .challenge-button{width:100%}
.result-view-button{width:100%;min-height:44px;margin-bottom:9px;display:flex;align-items:center;justify-content:space-between;border-color:#5b7967;color:#d4ebc9}
.result-review-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 18px;background:#20332b;border-top:1px solid #5d7965;color:#d0e5c7;font-size:11px}.result-review-bar .small-button{min-height:44px;flex-shrink:0}.is-reviewing .loadout{display:none}
@media(max-width:640px){.result-review-bar{padding:9px;gap:7px;font-size:10px}.result-review-bar .small-button{padding:9px 8px;font-size:10px}.result-review-bar kbd{display:none}}
.is-reviewing .control-strip{display:none}
#codex-dodge{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:44px;margin-top:8px;border-color:#668773;color:#d4edc5}
.defense-tools{margin:10px 0;padding:12px;border:1px solid #627b60;border-radius:7px;background:#213126}.defense-choice{display:flex;align-items:flex-end;gap:9px}.defense-choice label{flex:1;min-width:0;font-size:10px;color:#c3dac0}.defense-choice select{display:block;width:100%;min-height:40px;margin-top:5px;background:#15231d;border:1px solid #617d60;border-radius:5px;padding:7px 9px;color:#e2f1d9;font:inherit;font-size:12px}.defense-choice button{min-height:40px;flex:none}.defense-stats{display:flex;gap:22px;font-size:11px;color:#adc0ae;margin:10px 0 6px}.defense-stats b{color:#dcf3cb;font-size:16px;margin-left:4px}.defense-tools>small{font-size:9px;color:#b1c7b3;line-height:1.5;display:block}.is-defense #practice-loadout,.is-defense #practice-stats{display:none!important}
@media(max-width:640px){.defense-tools{padding:9px;margin:7px 0}.defense-stats{margin:7px 0 4px}.defense-choice select{font-size:11px}.defense-choice button{padding:8px}}
.washer-practice-guide{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:5px 10px;font-size:10px;color:#f0dbac;grid-column:1/-1}.washer-practice-guide .small-button{padding:6px 9px;font-size:9px}
.fighter-mark{font-size:8px;line-height:1.4;color:#d6eeb5;margin-top:3px;white-space:nowrap;letter-spacing:-.2px}.high-contrast .fighter-mark{color:#f5ffd9}.damage-number.scent-bonus{font-size:14px;white-space:nowrap;color:#ddf6b8}
.laundry-practice-guide{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:5px 10px;font-size:10px;color:#d9ebbc;grid-column:1/-1}.laundry-practice-guide .small-button{padding:6px 9px;font-size:9px}
@media(max-width:640px){.damage-number.scent-bonus{font-size:11px}}

/* One fact-based next-round tip remains inside the existing scrollable result. */
.result-counter{padding:8px 10px;margin:8px 0;border:1px solid #789f7655;border-radius:7px;background:#23342a;color:#d8e7d1;text-align:left;min-width:0;overflow-wrap:anywhere;font-size:11px;line-height:1.6}.result-counter>strong{display:block;margin-bottom:3px;color:#e5efbf;font-size:10px;line-height:1.45}.result-counter>span{display:block}
html.high-contrast .result-counter{border-color:#b9dcc2;background:#14261c;color:#f5fff4}html.high-contrast .result-counter>strong{color:#e9ffc3}
@media(max-width:640px){.result-counter{padding:7px 8px;font-size:10px}.result-counter>strong{font-size:10px}}

/* Optional record goals stay collapsed below loadout controls and quick close. */
.collection-milestones{margin:0 0 16px;border:1px solid #526e6055;border-radius:7px;background:#192a24;min-width:0;color:#d8e8ce}.collection-milestones>summary{padding:10px 12px;min-height:40px;font-size:11px;font-weight:700;cursor:pointer;overflow-wrap:anywhere}.collection-milestones>summary::marker{color:#b5d698}.collection-milestones[open]>summary{border-bottom:1px solid #526e6055}.collection-milestones>p{margin:8px 12px;font-size:10px;line-height:1.6;color:#b2c8bb;overflow-wrap:anywhere}.milestone-list{list-style:none;margin:0;padding:0 12px 12px;display:grid;gap:7px}.milestone-list>li{min-width:0;padding:9px;border:1px solid #466152;border-radius:5px;background:#15231f;overflow-wrap:anywhere}.milestone-heading{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:4px 8px}.milestone-heading>strong{font-size:11px;line-height:1.5}.milestone-state{font-size:10px;line-height:1.5;color:#b8cbbd}.milestone-list>li>p{margin:4px 0 0;font-size:10px;line-height:1.6;color:#b4c7bc}.milestone-list progress{display:block;width:100%;height:8px;margin-top:8px;accent-color:#a4d67a}.milestone-list>li[data-complete=true]{border-color:#819f62}.milestone-list>li[data-complete=true] .milestone-state{color:#def5b6}
html.high-contrast .collection-milestones{border-color:#a5c9aa;background:#14261b;color:#f1ffe4}html.high-contrast .collection-milestones>p,html.high-contrast .milestone-state,html.high-contrast .milestone-list>li>p{color:#e1efde}html.high-contrast .milestone-list>li{border-color:#a0b7a1;background:#102119}html.high-contrast .milestone-list>li[data-complete=true] .milestone-state{color:#efffb6}.collection-milestones>summary:focus-visible{outline:2px solid #d9e2a3;outline-offset:2px}
@media(max-width:640px){.collection-milestones>summary{font-size:10px;padding:9px 10px}.milestone-list{padding:0 9px 9px}.milestone-list>li{padding:8px}.milestone-heading>strong{font-size:10px}}

/* Player-driven plain-text codes; native input selection/copy stays available. */
.collection-codes{margin:0 0 16px;border:1px solid #526e6055;border-radius:7px;background:#192a24;min-width:0;color:#d8e8ce}.collection-codes>summary{padding:10px 12px;min-height:40px;font-size:11px;font-weight:700;cursor:pointer}.collection-codes>summary::marker{color:#b5d698}.collection-codes[open]>summary{border-bottom:1px solid #526e6055}.loadout-code-body{padding:12px;min-width:0}.loadout-code-body>label{display:block;font-size:10px;font-weight:700;color:#d6e6ca;margin-bottom:6px}.loadout-code-body input{display:block;width:100%;min-width:0;min-height:40px;padding:8px;border:1px solid #668371;border-radius:5px;background:#10211a;color:#e6f0de;font:11px/1.5 ui-monospace,Consolas,monospace;user-select:text;-webkit-user-select:text}.loadout-code-body input[readonly]{color:#cadcc8}.loadout-code-export{display:flex;align-items:stretch;gap:7px}.loadout-code-export>input{flex:1}.loadout-code-export>button{flex:none;min-height:40px;padding:8px 10px;font-size:10px}.loadout-code-body>p{font-size:10px;line-height:1.7;overflow-wrap:anywhere;color:#b2c8bb;margin:7px 0 13px}.loadout-code-body>.loadout-code-preview{margin:8px 0;min-height:18px;color:#d1e3c7}.loadout-code-body>#loadout-code-apply{min-height:40px;width:100%;justify-content:center;font-size:11px}.collection-codes>summary:focus-visible,.loadout-code-body input:focus-visible{outline:2px solid #d9e2a3;outline-offset:2px}
html.high-contrast .collection-codes{border-color:#a5c9aa;background:#14261b;color:#f1ffe4}html.high-contrast .loadout-code-body>label,html.high-contrast .loadout-code-body>p{color:#e1efde}html.high-contrast .loadout-code-body input{border-color:#b1c9a9;color:#f3ffe7;background:#102119}
@media(max-width:640px){.collection-codes>summary{font-size:10px;padding:9px 10px}.loadout-code-body{padding:9px}.loadout-code-export{flex-wrap:wrap}.loadout-code-export>input{flex-basis:100%}.loadout-code-export>button{width:100%;justify-content:center}.loadout-code-body input{font-size:10px}}

/* This menu action shares start(); playing continues to hide the whole message. */
.stage-message{pointer-events:auto;width:min(320px,calc(100% - 32px));padding:12px 14px 10px}.stage-message>.tiny-tag{font-size:9px;line-height:1.4}.stage-message>#stage-choice{font-size:11px;line-height:1.45;letter-spacing:0;margin:6px 0 0;font-weight:600;overflow-wrap:anywhere}#stage-start{width:100%;min-height:44px;margin:8px 0 0;padding:10px 12px;justify-content:center;gap:0;font-size:12px;line-height:1.4;white-space:normal;overflow-wrap:anywhere}.stage-message>#stage-start-note{display:block;margin-top:6px;color:#becdc4;font-size:9px;line-height:1.4}#stage-start:focus-visible{outline:2px solid #f0f7c8;outline-offset:3px}#stage-start:disabled{opacity:.6;cursor:default}
html.high-contrast .stage-message{background:#101e20f5;border-color:#c2d9b8}html.high-contrast .stage-message>#stage-choice,html.high-contrast .stage-message>#stage-start-note{color:#eff9e5}
@media(max-width:640px){.stage-message{width:min(240px,calc(100% - 24px));padding:10px}.stage-message>#stage-choice{font-size:10px}#stage-start{font-size:11px;margin-top:6px;padding:9px 8px}.stage-message>#stage-start-note{font-size:8px;margin-top:5px}}

/* Finished matches can reuse the existing free-practice navigation. */
#result-practice{width:100%;min-height:44px;justify-content:center;padding:9px 10px;margin:8px 0;color:#ddedcb;border-color:#6d8f71;background:#23392d;white-space:normal;overflow-wrap:anywhere;font-size:11px;line-height:1.5}#result-practice:disabled{opacity:.6;cursor:default}#result-practice:focus-visible{outline:2px solid #e5f1b6;outline-offset:3px}html.high-contrast #result-practice{color:#f2ffe0;border-color:#c0dda9;background:#172d20}
@media(max-width:640px){#result-practice{font-size:10px;padding:8px}}

/* Per-pulse runtime practice goal; no live announcements or celebration. */
.defense-streak{margin:5px 0 7px;color:#c9dbbe;font-size:10px;line-height:1.6;overflow-wrap:anywhere}.defense-streak.goal-done{color:#e0f8ab;font-weight:700}html.high-contrast .defense-streak{color:#e6f4d9}html.high-contrast .defense-streak.goal-done{color:#f1ffc2}
@media(max-width:640px){.defense-streak{font-size:10px;margin:4px 0 6px}}

/* One quiet timing strip stays inside the existing drum button, without a flash. */
.skill[data-drum-stage]{padding-bottom:15px}.skill[data-drum-stage] .skill-copy small{overflow-wrap:anywhere;line-height:1.4}.drum-window{position:absolute;left:7px;right:7px;bottom:5px;height:3px;background:#40534d;z-index:3;pointer-events:none}.drum-window-zone{position:absolute;left:var(--drum-window-start);right:0;top:0;bottom:0;background:#a1a981}.drum-window-cursor{position:absolute;left:var(--drum-progress);top:-2px;width:2px;height:7px;background:#f1e5b7}.skill[data-drum-stage=ready]:not(:disabled){border-color:#e4db9e;background:#3b422f}.skill[data-drum-stage=ready]:not(:disabled) .skill-copy small{color:#fff0b2}.skill[data-drum-stage=ready]:not(:disabled) .drum-window-zone{background:#ecdf9c}.skill[data-drum-stage=accented] .skill-copy small{color:#c9e7a9}.skill[data-drum-stage=closed] .drum-window-zone{background:#69756a}html.high-contrast .drum-window{background:#5d6c67}html.high-contrast .drum-window-zone{background:#e5efc4}html.high-contrast .drum-window-cursor{background:#fff}html.high-contrast .skill[data-drum-stage=ready]:not(:disabled){border-color:#fff1bd;background:#33462b}

/* Optional single-duel opponent selection stays folded above the independent course. */
.duel-opponent-tools{grid-column:1/-1;min-width:0;border:1px solid #536c60;border-radius:7px;background:#192c26;color:#cfdfce}.duel-opponent-tools>summary{padding:10px 12px;min-height:42px;font-size:11px;font-weight:700;cursor:pointer;overflow-wrap:anywhere}.duel-opponent-tools>summary::marker{color:#bddba1}.duel-opponent-tools>summary>span{font-size:10px;font-weight:400;color:#bad0bd;margin-left:8px}.duel-opponent-tools[open]>summary{border-bottom:1px solid #536c60}.duel-opponent-body{padding:11px 12px;min-width:0}.duel-opponent-body>label{display:block;color:#c5d8bd;font-size:10px;font-weight:700}.duel-opponent-body select{display:block;width:100%;min-width:0;min-height:42px;margin-top:6px;padding:8px 10px;border:1px solid #66806e;border-radius:5px;background:#11221b;color:#edf2dc;font:inherit;font-size:12px}.duel-opponent-body strong{display:block;margin-top:12px;font-size:12px;color:#e1ecc6}.duel-opponent-body p{font-size:11px;line-height:1.7;overflow-wrap:anywhere;margin:6px 0;color:#b9cec0}.duel-opponent-body ol{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 20px;padding-left:23px;margin:10px 0;font-size:10px;line-height:1.7}.duel-opponent-body li{overflow-wrap:anywhere;min-width:0}.duel-opponent-body>small{display:block;color:#9fb7a8;font-size:9px;line-height:1.6;overflow-wrap:anywhere}.duel-opponent-body #duel-opponent-error{color:#f0d3a3}.duel-opponent-tools summary:focus-visible{outline:2px solid #e7efb3;outline-offset:2px}html.high-contrast .duel-opponent-tools{background:#13251d;border-color:#a9d7b7;color:#f2ffe7}html.high-contrast .duel-opponent-body p,html.high-contrast .duel-opponent-body>small{color:#e2f1e0}html.high-contrast .duel-opponent-body select{border-color:#c6e8bc;color:#fff}
@media(max-width:640px){.duel-opponent-body{padding:10px}.duel-opponent-body ol{font-size:10px;gap:5px 16px}.duel-opponent-tools>summary{padding:10px}.duel-opponent-body p{font-size:10px}}

/* Alternate ultimate guidance uses the existing wrapped practice tools. */
.ashtray-practice-guide{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;grid-column:1/-1;font-size:10px;line-height:1.6;color:#d2e8ce;min-width:0;overflow-wrap:anywhere}.ashtray-practice-guide small{font-size:9px;color:#afc7ba}html.high-contrast .ashtray-practice-guide,html.high-contrast .ashtray-practice-guide small{color:#edffe7}

/* Focus uses the same complete stage box; overlays remain in its coordinates. */
.loadout-top>.loadout-actions{display:flex;align-items:center;gap:6px;flex-shrink:0}.loadout-actions>.small-button{min-height:44px;white-space:nowrap}
body.is-battle-focus{overflow:hidden}body.is-battle-focus .site-header,body.is-battle-focus .heading,body.is-battle-focus footer{display:none}body.is-battle-focus .site-wrap{max-width:none;padding:0;margin:0}
body.is-battle-focus main{position:fixed;left:var(--battle-viewport-left,0px);top:var(--battle-viewport-top,0px);width:var(--battle-viewport-width,100vw);height:var(--battle-viewport-height,100dvh);padding:max(8px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));display:flex;flex-direction:column;align-items:center;gap:6px;overflow:hidden;background:#101b23;z-index:20}
body.is-battle-focus .game-shell{width:100%;max-width:none!important;flex:none;display:flex;flex-direction:column;align-items:center;gap:6px;border-radius:6px;box-shadow:none;margin:0}
body.is-battle-focus .match-hud{width:100%;flex:none;padding-block:8px}body.is-battle-focus #stage{width:var(--battle-stage-width,100%);height:var(--battle-stage-height,auto);aspect-ratio:480/220;flex:none;align-self:center}body.is-battle-focus #stage canvas{width:100%;height:100%}
body.is-battle-focus .loadout{width:100%;flex:none;max-height:calc(var(--battle-viewport-height,100dvh) * .42);overflow-y:auto;overscroll-behavior:contain;padding:8px 10px;scrollbar-gutter:stable}body.is-battle-focus .loadout-top{position:sticky;top:0;z-index:4;background:#1a252d;padding-bottom:6px;margin-bottom:8px;gap:8px}body.is-battle-focus .loadout-top>div:first-child{min-width:0;flex-wrap:wrap}body.is-battle-focus .loadout-top #loadout-note{display:none}body.is-battle-focus .control-strip{display:none}
body.is-battle-focus .touch-controls{width:100%;flex:none;padding:0;margin:0}body.is-battle-focus #pause-overlay{overflow-y:auto;justify-content:flex-start;justify-content:safe center;padding:10px}body.is-battle-focus #pause-overlay>*{flex-shrink:0}body.is-battle-focus #battle-focus[aria-pressed=true]{border-color:#c9dba3;color:#e6f3c6;background:#33422d}
@media(max-width:640px){.loadout-actions>.small-button{font-size:9px;padding:6px}.loadout-top>.loadout-actions{gap:4px}body.is-battle-focus .loadout-top{gap:5px}body.is-battle-focus .loadout-top h2{font-size:10px}body.is-battle-focus .loadout{padding:7px}}

/* A quiet 15px line sits between the upper floor and the lower home label. */
.duel-dodge-badge{position:absolute;left:4%;top:47.7%;transform:translateY(-50%);max-width:calc(50% - 12px);height:15px;padding:1px 4px;border:1px solid #7c9d7170;border-radius:3px;background:#14271ed9;color:#d7edbd;font-size:9px;line-height:11px;white-space:nowrap;pointer-events:none;z-index:2;font-variant-numeric:tabular-nums}.result-card>.result-dodge{margin:8px 0;padding:6px 8px;border:1px solid #789d6c55;border-radius:5px;background:#203126;color:#d7e7c6;font-size:10px;line-height:1.5;text-align:left;overflow-wrap:anywhere}html.high-contrast .duel-dodge-badge{border-color:#d8efb4;background:#10241b;color:#f1ffdc}html.high-contrast .result-card>.result-dodge{border-color:#c1dba1;background:#10241b;color:#efffdc}



/* Dash keeps the existing hold/cancel surfaces and adds one separate action. */
.touch-controls{gap:10px}.touch-controls>.touch-movement{flex:none;gap:6px}.touch-controls>.touch-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;flex:1;min-width:0}.touch-controls #touch-attack,.touch-controls #touch-dash{width:100%;min-width:0;min-height:44px;padding:4px;font-size:11px;gap:5px}.touch-controls #touch-dash{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;background:#2d3636;border-color:#697b70;color:#e0e7ce}.touch-controls #touch-dash small{font-size:9px;line-height:1.1;font-variant-numeric:tabular-nums}.touch-controls #touch-dash[aria-disabled=true]{color:#adb8b1;border-color:#4c5e58}.touch-controls #touch-dash.is-ready{border-color:#cadb9e;color:#e6f3c8;background:#33442e}html.high-contrast .touch-controls #touch-dash{border-color:#d5e7b8;color:#f2ffe0}
@media(min-width:761px){body.is-battle-focus .loadout-top h2::after{content:' · Shift 달리기';font-size:9px;font-weight:400;color:#c4d5b6}}

.veil-practice-guide{grid-column:1/-1;display:flex;flex-direction:column;gap:4px;padding:8px;border-left:2px solid #91cfbc;background:#24413e;color:#c5eadb;font-size:10px;line-height:1.55}.veil-practice-guide small{font-size:9px;color:#bdd1cb}

.veil-trial{min-height:44px;border-color:#578c81;color:#c5f2df;background:#1e3533}.veil-trial span{color:#a4c9bf}

/* The guided course uses the same two rooms and controls, with a compact route. */
.practice-goal{flex:0 0 100%;height:auto;min-width:0;white-space:normal;overflow-wrap:anywhere}
.practice-step-list{flex:0 0 100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;list-style:none;margin:0;padding:0;font-size:10px;color:#a8b8b6}
.practice-step-list li{display:flex;align-items:center;gap:5px;min-width:0;padding:5px 6px;border:1px solid #344744;border-radius:3px;background:#182926}
.practice-step-list b{display:grid;place-items:center;flex:0 0 15px;height:15px;border-radius:2px;background:#30443f;font-size:9px;font-weight:600}
.practice-step-list li.is-done{color:#cef6c0;background:#233b29;border-color:#53774b}
.practice-step-list li.is-done b{background:#92cd79;color:#14251b}
.practice-step-list li[aria-current="step"]{border-color:#e0bb77;color:#fff1c2;background:#383529}
.practice-step-list li[aria-current="step"] b{background:#e0bb77;color:#30271b}
.high-contrast .practice-step-list li[aria-current="step"]{outline:1px solid #fff3c7}

.robot-practice-guide{grid-column:1/-1;display:flex;flex-direction:column;gap:4px;padding:8px;border-left:2px solid #d7b176;background:#373128;color:#eedbbe;font-size:10px;line-height:1.55}.robot-practice-guide small{font-size:9px;color:#d1c8b9}.robot-trial{min-height:44px;border-color:#9b815b;color:#f0dfb9;background:#352f25}.robot-trial span{color:#d2bd96}

/* Rules belong to this course only; original courses keep their layout. */
.course-stages{list-style:none;margin:8px 0 12px;padding:0;display:grid;gap:6px;text-align:left}
.course-stages li{display:grid;gap:3px;padding:9px 11px;border:1px solid #405750;background:#162622;border-radius:5px;font-size:11px;line-height:1.5}
.course-stages strong{color:#b7ed93;font-size:12px}.course-stages span{color:#c6d4ce}
.stage-rule{display:block;max-width:220px;margin-top:4px;color:#b7ed93;font-size:10px;line-height:1.4;letter-spacing:0}
.result-stage-rule{padding:10px;border:1px solid #4f7056;border-radius:5px;background:#162622;color:#c6edaa;font-size:12px;line-height:1.6}
.high-contrast .course-stages li,.high-contrast .result-stage-rule{border-color:#c6edaa}
@media(max-width:600px){.stage-rule{max-width:130px;font-size:9px}.course-stages li{padding:7px 9px}}
@media(min-width:640px) and (max-width:1100px) and (min-height:360px) and (max-height:500px){.stage-rule{max-width:175px;font-size:9px;margin-top:2px}}

.tactical-choice{margin:12px 0;padding:12px;border:1px solid #597358;border-radius:6px;background:#15231c;text-align:left}
.tactical-choice>strong{font-size:14px;color:#cef2a9}.tactical-choice>p{margin:6px 0;font-size:11px;line-height:1.5}
.tactical-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:10px 0}
.tactical-card{min-height:64px;border:1px solid #435b4b;border-radius:4px;background:#1f3027;color:#e2ecd9;padding:9px 6px;display:grid;gap:5px;text-align:left;cursor:pointer;font:inherit}
.tactical-card strong{font-size:12px}.tactical-card span{font-size:10px;line-height:1.5}.tactical-card[aria-pressed=true]{border-color:#b7ef8c;background:#30482c;box-shadow:inset 0 0 0 1px #b7ef8c}
.tactical-card:focus-visible,.tactical-clear:focus-visible{outline:2px solid #dcffac;outline-offset:2px}.tactical-clear{min-height:44px;border:1px solid #587158;border-radius:4px;background:transparent;color:#cedcc5;padding:7px 10px;font:inherit;font-size:11px;cursor:pointer}.tactical-clear[aria-pressed=true]{border-color:#b7ef8c}
.boost-active{display:block;max-width:150px;margin-top:3px;color:#f5d18b;font-size:9px;line-height:1.4;letter-spacing:0}
@media(max-width:600px){.tactical-options{grid-template-columns:1fr}.tactical-card{min-height:52px;grid-template-columns:90px 1fr;align-items:center}.boost-active{max-width:110px}}
@media(min-width:640px) and (max-width:1100px) and (min-height:360px) and (max-height:500px){.boost-active{max-width:75px;font-size:8px;margin-top:2px}}

.enemy-dash-status{margin-top:3px;color:#e8d491;font-size:9px;line-height:1.4;letter-spacing:0}.fighter-smoke .enemy-dash-status{text-align:right}
@media(max-width:600px){.enemy-dash-status{font-size:8px}}
@media(min-width:640px) and (max-width:1100px) and (min-height:360px) and (max-height:500px){.enemy-dash-status{font-size:8px;line-height:1.2;margin-top:2px}}

.shuffle-tools{display:grid;gap:6px;margin:9px 0}.shuffle-tools button{min-height:44px}.shuffle-tools small{font-size:10px;line-height:1.6;color:#b9cbbb}.course-stages li small{font-size:10px;line-height:1.5;color:#dec9a4}

#basic-attack-label{font:inherit;color:inherit}#touch-attack.dash-strike-ready{background:#5a4222;border-color:#ffd789;box-shadow:inset 0 0 0 1px #ffd789;color:#ffe9b9}.damage-number.dash-strike-bonus{color:#ffe1a0;text-shadow:0 2px #1c1510,0 0 5px #694b20}.high-contrast #touch-attack.dash-strike-ready{background:#38250b;color:#fff3cb;border-color:#fff3cb}

.tactical-trial{min-height:44px;border-color:#81995e;background:#293322;color:#e0efb8}.tactical-trial span{color:#bbd393}.practice-tactical{margin:12px 0 0}.practice-tactical>small{display:block;margin-top:7px;color:#b8c7b3;font-size:10px;line-height:1.6}.practice-tactical [role=status]{padding:9px;border-left:3px solid #82966c;background:#1c2f24;line-height:1.6}.practice-tactical .goal-done{border-color:#c4f58b;color:#d6ffaa}.practice-tactical button:disabled{opacity:.5;cursor:default}.high-contrast .practice-tactical>small{color:#f1f8de}@media(max-width:600px){.practice-tactical{padding:10px}.practice-tactical .tactical-card{grid-template-columns:100px minmax(0,1fr);min-height:52px}.practice-tactical .tactical-card strong{font-size:11px}}

.practice-tactical details{margin-top:7px}.practice-tactical summary{min-height:44px;display:list-item;align-content:center;padding:9px 7px;cursor:pointer;color:#dfedc4;font-size:12px;background:#243727;border-radius:4px}.practice-tactical details small{display:block;margin-top:6px;font-size:10px;line-height:1.6;color:#b8c7b3}.practice-tactical summary:focus-visible{outline:2px solid #d9e2a3;outline-offset:2px}.practice-tactical>p{margin-bottom:0}

.rival-status{display:grid;gap:4px;padding:10px 12px;margin:7px 0 10px;border:1px solid #8a7859;border-left:3px solid #dfba77;border-radius:5px;background:#302c24}.rival-status strong{font-size:12px;color:#f2d298}.rival-status span{font-size:11px;line-height:1.5;color:#dfd3b8}.rival-status.rival-awake{border-color:#d29473;background:#382a23}.rival-status.rival-awake strong{color:#ffd0a7}.rival-target .stress-track{position:relative}.rival-target .stress-track:after{content:"";position:absolute;left:50%;top:-2px;bottom:-2px;border-left:2px solid #fff1bf;pointer-events:none}.high-contrast .rival-status{border-color:#ffdf9b}.high-contrast .rival-status span{color:#fff0d9}@media(max-width:600px){.rival-status{padding:7px 9px}.rival-status strong{font-size:11px}.rival-status span{font-size:10px}}@media(min-width:640px) and (max-width:1100px) and (min-height:360px) and (max-height:500px){.rival-status{padding:6px;margin:4px 0}.rival-status strong,.rival-status span{font-size:9px}}

.skill.decoy-swap-ready{border-color:#ade8cf;box-shadow:inset 0 0 0 1px #ade8cf}.skill.decoy-swap-ready small{color:#c9f8de}.high-contrast .skill.decoy-swap-ready{outline:2px solid #e8fff0;outline-offset:-3px}

.touch-actions:has(#touch-guard){grid-template-columns:repeat(3,minmax(0,1fr))}#touch-guard{min-width:44px;min-height:44px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:6px;font-size:11px}#touch-guard small{font-size:9px;color:#c2d5cc}#touch-guard.is-ready{border-color:#b0d7aa}#touch-guard.is-guarding{border-color:#efffbc;background:#324936}.high-contrast #touch-guard.is-guarding{outline:2px solid #fff3bd;outline-offset:-3px}

.practice-step-list:has([data-coach-step="guard"]:not([hidden])){grid-template-columns:repeat(4,minmax(0,1fr))}

.hazard-status{display:grid;gap:3px;margin:6px 0;padding:8px 10px;background:#302b21;border:1px solid #9a835b;border-left:3px solid #e9c476;border-radius:4px}.hazard-status strong{font-size:12px;color:#ffe1a1}.hazard-status span{font-size:10px;line-height:1.45;color:#ead7ae}.high-contrast .hazard-status{border-color:#fff1c1}.high-contrast .hazard-status span{color:#fff1d3}@media(max-width:600px){.hazard-status{padding:6px 8px}.hazard-status strong{font-size:11px}}@media(min-width:640px) and (max-width:1100px) and (min-height:360px) and (max-height:500px){.hazard-status{padding:5px;margin:3px 0}.hazard-status strong{font-size:10px}.hazard-status span{font-size:9px}}

.wind-status{display:grid;gap:3px;margin:6px 0;padding:8px 10px;background:#1b3038;border:1px solid #739eaa;border-left:3px solid #b1dcd8;border-radius:4px}.wind-status strong{font-size:12px;color:#c6f5ee}.wind-status span{font-size:10px;line-height:1.45;color:#c5dce5}.high-contrast .wind-status{border-color:#e3fff5}@media(max-width:600px){.wind-status{padding:6px 8px}.wind-status strong{font-size:11px}}@media(min-width:640px) and (max-width:1100px) and (min-height:360px) and (max-height:500px){.wind-status{padding:5px;margin:3px 0}.wind-status strong{font-size:9px}.wind-status span{font-size:9px}}

.skill-mission-goal{flex:0 0 100%;padding:10px;border:1px solid #84b9ad;border-left:3px solid #a9e4cb;border-radius:4px;background:#233b36;color:#d7f6e6;font-size:12px;line-height:1.5}.skill-mission-goal.goal-done{border-color:#c3e9a2;background:#2d442d}#codex-mission{margin-top:8px;width:100%;border-color:#8cbeac}@media(max-width:600px){.skill-mission-goal{font-size:11px;padding:8px}}

.environment-status{display:contents}.environment-status:has(>#wind-status:not([hidden])):has(>#hazard-status:not([hidden])){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:6px 0}.environment-status:has(>#wind-status:not([hidden])):has(>#hazard-status:not([hidden]))>aside{margin:0;padding:5px;min-width:0}.environment-status:has(>#wind-status:not([hidden])):has(>#hazard-status:not([hidden])) strong{font-size:10px;line-height:1.3}.environment-status:has(>#wind-status:not([hidden])):has(>#hazard-status:not([hidden])) span{font-size:9px;line-height:1.35}

.wall-status{display:grid;gap:3px;padding:7px 9px;margin:6px 0;border:1px solid #b39869;border-radius:4px;background:#332c24}.wall-status strong{font-size:12px;color:#ffdaa0}.wall-status span{font-size:10px;color:#d9c7a8;line-height:1.4}.wall-tools{margin:6px 0;padding:7px 9px;border:1px solid #81765c;border-radius:5px;background:#292e28;font-size:11px}.wall-tools summary{cursor:pointer;color:#e4d4b4}.wall-tools label{display:flex;gap:7px;align-items:center;margin:7px 0}.wall-tools select{font:inherit;min-height:36px;max-width:100%;background:#182721;color:#e9ead7;border:1px solid #839275;border-radius:4px}.wall-tools small{display:block;font-size:9px;line-height:1.4;margin-top:5px;color:#bbcab7}.high-contrast .wall-status{border-color:#fff4c8}@media(min-width:640px) and (max-width:1100px) and (max-height:500px){.wall-status{padding:4px;margin:3px 0}.wall-status strong{font-size:10px}.wall-status span,.wall-tools{font-size:9px}.wall-tools{padding:5px}.wall-tools select{min-height:34px}}

.stage-start-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:6px;margin-top:8px}.stage-start-actions>#stage-start,.stage-start-actions>#stage-playground{width:100%;min-height:44px;margin:0;padding:6px 7px;justify-content:center;font-size:11px;line-height:1.4;white-space:normal;overflow-wrap:anywhere}#stage-playground:focus-visible{outline:2px solid #f0f7c8;outline-offset:3px}#stage-playground:disabled{opacity:.6;cursor:default}

#stage-message{top:50%}

/* Short jumps add one actual action, keeping every touch target at least44px. */
.touch-actions:has(#touch-jump){grid-template-columns:repeat(4,minmax(44px,1fr))}
#touch-jump{width:100%;min-width:44px;min-height:44px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:4px;font-size:11px;background:#2b3841;border-color:#759aa2;color:#dbf5ed}
#touch-jump small{font-size:9px;font-variant-numeric:tabular-nums}#touch-jump.is-ready{border-color:#b0d7aa}#touch-jump.is-airborne{border-color:#e8f2b3;background:#38514e}
html.high-contrast #touch-jump.is-airborne{outline:2px solid #fff3bd;outline-offset:-3px}
@media(max-width:760px){.touch-controls>.touch-movement button{width:44px;min-width:44px}}
@media(max-width:340px){.touch-actions:has(#touch-jump){grid-template-columns:repeat(2,minmax(44px,1fr))}}

.touch-actions #touch-guard{width:100%}

/* Existing four slots reveal a currently legal combat interaction without extra panels. */
.skill.combat-action-ready:not(:disabled){border-color:#edcc91;box-shadow:inset 0 0 0 1px #edcc91}.skill.combat-action-ready:not(:disabled) small{color:#ffe6b9}.skill[data-combat-action=jam]:not(:disabled){border-color:#a2e3ce;box-shadow:inset 0 0 0 1px #a2e3ce}.skill[data-combat-action=jam]:not(:disabled) small{color:#c3ffe6}html.high-contrast .skill.combat-action-ready:not(:disabled){outline:2px solid #fff3bd;outline-offset:-3px}

.incoming-threats{display:flex;align-items:center;gap:10px;min-height:32px;margin-bottom:8px;padding:6px 9px;background:#122027;border:1px solid #45545a;border-radius:4px;font-size:10px;line-height:1.5;color:#e9d4a3}
.incoming-threats small{flex:none;color:#9fadb0;font-size:9px}
.incoming-threats span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html.high-contrast .incoming-threats{color:#fff7cf;border-color:#e8d28f}

/* Keep transient feedback outside the two rooms, with a stable two-line slot. */
.loadout .combat-notice{position:static;left:auto;top:auto;transform:none;box-sizing:border-box;width:100%;height:2.8em;min-height:2.8em;flex:none;margin:2px 0 6px;padding:0 4px;border:0;background:none;color:#cde5b2;font-size:12px;font-weight:600;line-height:1.4;text-align:left;letter-spacing:0;text-shadow:none;white-space:normal;overflow:hidden;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;pointer-events:none}
body:not(.is-playing) .combat-notice:not(.show){display:none}
@media(orientation:landscape) and (max-height:500px){.loadout .combat-notice{font-size:10px;margin:0 0 3px}}

#touch-dash.roll-kick-ready{outline:2px solid #f8dca0;outline-offset:1px}#touch-dash.roll-kick-ready small{color:#ffe4ac}

/* P028: one consumable slot remains separate from the four attacks. */
.battle-item-slot{display:grid;grid-template-columns:minmax(0,1fr) minmax(160px,.6fr);gap:12px;margin:10px 0}
.battle-item-use{display:flex;align-items:center;gap:12px;min-height:56px;padding:8px 12px;text-align:left;border:1px solid #79b7aa;border-radius:8px;background:#172b31;color:#e5f7ed;touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.battle-item-use:disabled{opacity:.68}.battle-item-use:focus-visible{outline:2px solid #d9ffab;outline-offset:3px}
.battle-item-use canvas{width:32px;height:32px;image-rendering:pixelated;flex:none}
.battle-item-use span{min-width:0;flex:1}.battle-item-use strong,.battle-item-use small{display:block}.battle-item-use small{margin-top:4px;font-size:11px;line-height:1.5;overflow-wrap:anywhere}
.battle-item-effects{display:flex;flex-direction:column;justify-content:center;gap:5px;font-size:12px;color:#bce3ce}.battle-item-effects small{color:#9eb9bf}
.battle-supply-status{display:flex;flex-wrap:wrap;gap:5px 14px;margin:8px 0;padding:9px 12px;border-left:3px solid #85d8bd;background:#17272b;font-size:12px}.battle-supply-status span{color:#b9ccd0;line-height:1.6}
.item-practice-tools{display:flex;flex-wrap:wrap;align-items:end;gap:10px;padding:12px;border:1px solid #628f88;border-radius:6px;background:#192f34}
.item-practice-tools label{display:grid;gap:5px;font-size:12px}.item-practice-tools select{min-height:44px;max-width:100%;background:#11242b;color:#e0f7ed;border:1px solid #739b95;border-radius:5px;padding:6px}
.item-practice-tools button{min-height:44px}.item-practice-tools p{flex-basis:100%;font-size:12px;line-height:1.7;margin:0;color:#c1dad3}
.damage-number.item-heal{color:#a5f3bb;text-shadow:0 1px 3px #071b17}.damage-number.item-defense{color:#ffe3a1}
@media(max-width:620px){.battle-item-slot{grid-template-columns:minmax(0,1fr);gap:5px}.battle-item-effects{flex-direction:row;justify-content:space-between;flex-wrap:wrap}.battle-item-use{min-height:58px}.item-practice-tools label{flex:1;min-width:0}.item-practice-tools button{flex:1;min-width:120px}}
