/* Portraits crop; medallions and decorative artwork never stretch to fill text. */
.command-art{aspect-ratio:1;flex-grow:0;flex-shrink:0}
.slot-army .army-utility{margin-top:8px;min-height:68px;padding:8px 10px;border:1px solid #8b7448;border-radius:2px;background:linear-gradient(115deg,#273a36,#102126);gap:10px}
.slot-army .army-utility>.command-art{flex:0 0 44px;width:44px;height:44px;display:inline-block}
.army-utility>.army-utility-copy{gap:3px}
.army-utility b{font-size:17px;line-height:1.3;word-break:keep-all}
.army-utility>.ui-icon{width:18px;height:18px}
.slot-army .slot-class-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
.slot-army .class-thumbnail{height:auto;aspect-ratio:1.65;overflow:hidden}
.slot-army .slot-class-grid b{font-size:13px;padding:5px 0 2px}
.slot-army .slot-class-grid button{position:relative;padding:4px;border-color:#716346}
.slot-army .slot-class-grid button.selected::after{content:'✓';position:absolute;right:7px;top:7px;width:23px;height:23px;border-radius:50%;background:#e2c47f;color:#102328;display:grid;place-items:center;font-weight:800}
.slot-army .army-tabs button{background:linear-gradient(#253a38,#172a2e);border:1px solid #6b654b;box-shadow:inset 0 0 0 3px #12262a;border-radius:2px}
.slot-army .army-tabs button[aria-pressed=true]{background:linear-gradient(#435246,#243932);border-color:#dec080;box-shadow:inset 0 -3px #d6b570}
.slot-army .painted-loadout-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:23px}
.loadout-card{display:flex;align-items:center;gap:12px;position:relative;min-width:0;min-height:94px;padding:14px;text-align:left;border:1px solid #8d7951;border-radius:3px;background:linear-gradient(120deg,#2c4140,#12262c);box-shadow:inset 0 0 0 3px #10242a,0 3px 9px #0003}
.loadout-card:hover:not(:disabled){background:linear-gradient(120deg,#3e5146,#213a3c);border-color:#edcf8e;transform:translateY(-1px)}
.loadout-card>.command-art{width:44px;height:44px}
.loadout-copy{display:grid;gap:6px;min-width:0;flex:1}
.loadout-copy small{font-size:12px;letter-spacing:1px;color:#bdac80}
.loadout-copy b{font:700 18px Batang,serif;color:#f3dfab;line-height:1.3;word-break:keep-all}
.loadout-copy>span{font-size:12px;color:#b8ccca;line-height:1.4}
.loadout-edit{font-size:22px;font-weight:300;color:#dfc590;flex:none}
.slot-army .army-info-heading{margin-bottom:12px}
.slot-army .army-info-heading>.help-info{background:transparent;border:0;color:#c9b785}
.slot-army .slot-items>div:not(.army-info-heading)>button{min-height:76px}
.slot-army .slot-items .item-thumbnail{grid-row:auto;aspect-ratio:1;align-self:center;flex:none}
.slot-army .army-shortcuts button{min-height:44px}
.slot-primary,.slot-subcategories button,.slot-techniques>div{background-size:100% auto}
.jackpot-stamp{background-size:auto,contain}
.skill-picker-open{overflow:hidden}
dialog.skill-picker{width:1000px;max-width:calc(100vw - 32px);height:auto;max-height:calc(100dvh - 32px);padding:0;border:1px solid #bb9859;border-radius:5px;background:linear-gradient(130deg,#1c3031,#101e25);color:#e8e4d3;box-shadow:0 20px 100px #000c,inset 0 0 0 4px #806c3922;overflow:hidden}
dialog.skill-picker[open]{display:flex;flex-direction:column}
.skill-picker::backdrop{background:#050d13d9;backdrop-filter:blur(5px)}
.skill-picker button:focus-visible{outline:2px solid #ffe5a5;outline-offset:-4px}
.picker-heading{padding:18px 22px;border-bottom:1px solid #8c754d;background:linear-gradient(95deg,#304039,#14272c);flex:none}
.picker-heading small{color:#bca77c;font-size:12px;letter-spacing:1px}
.picker-heading h2{margin:5px 0 0;font:700 23px Batang,serif;color:#f1dca6}
.picker-heading>button{font-size:28px;line-height:1;width:44px;height:44px;padding:0;background:transparent;border:1px solid #7c7155;border-radius:50%}
.picker-body{display:grid;grid-template-columns:255px minmax(0,1fr);gap:22px;overflow:auto;overscroll-behavior:contain;padding:20px 22px;min-height:0}
.picker-library{border-right:1px solid #7b6a4444;padding-right:20px}
.picker-library>p{font-size:13px;line-height:1.5;color:#c1b591;margin-bottom:15px;word-break:keep-all}
.picker-options{display:grid;gap:10px}
.picker-options button{display:flex;align-items:center;gap:10px;min-width:0;padding:12px 10px;min-height:86px;text-align:left;border:1px solid #6a694f;border-radius:3px;background:linear-gradient(110deg,#243938,#15272b);position:relative}
.picker-options button[aria-pressed=true]{border-color:#f0d48c;box-shadow:inset 3px 0 #e1c47d,0 0 20px #e5c67b0c;background:linear-gradient(100deg,#435448,#263c36)}
.picker-options .command-art{width:36px;height:36px}
.picker-options button>span:not(.command-art){display:grid;gap:5px;min-width:0;flex:1}
.picker-options small{font-size:12px;color:#c1ab77}
.picker-options b{font:700 16px Batang,serif;line-height:1.35;color:#efe0ba;word-break:keep-all}
.picker-options button>span>span{font-size:12px;color:#bbceca;line-height:1.4}
.picker-options i{position:absolute;right:7px;top:6px;color:#eed394;font-style:normal;font-size:12px}
.picker-inspect{min-width:0}
.picker-stage{position:relative;width:100%;aspect-ratio:1.9;overflow:hidden;border:1px solid #a18451;background:#0b1a1f}
.picker-stage>.class-thumbnail{position:absolute;inset:0;height:100%;opacity:.35;filter:blur(2px)}
.picker-stage canvas{position:absolute;inset:0;width:100%;height:100%;opacity:0}
.picker-stage[data-state=playing] canvas,.picker-stage[data-state=done] canvas{opacity:1}
.picker-stage-label{position:absolute;top:10px;left:10px;padding:5px 8px;font-size:12px;letter-spacing:1px;color:#e4c67f;background:#102027dd;border:1px solid #a98b4d80}
.picker-status{position:absolute;left:12px;bottom:10px;font-size:12px;color:#f1dfb1;text-shadow:0 1px 4px #000;background:#0c1c22c9;padding:5px 8px;max-width:calc(100% - 135px)}
.picker-stage>button{position:absolute;bottom:8px;right:8px;display:flex;align-items:center;gap:5px;padding:6px 10px;min-height:44px;font-size:12px;border-color:#b59b63;background:#13282de8}
.picker-stage>button>.ui-icon{width:15px;height:15px}
.picker-stage[data-state=loading] .picker-status,.picker-stage[data-state=error] .picker-status{top:45%;bottom:auto;left:10%;right:10%;max-width:none;text-align:center}
.picker-caption{font-size:12px;color:#b8b7a1;line-height:1.5;margin:8px 0 18px}
.picker-skill-title{display:flex;align-items:center;gap:12px;margin-bottom:14px}
.picker-skill-title .command-art{width:48px;height:48px}
.picker-skill-title small{font-size:12px;color:#bbccbf}
.picker-skill-title h3{font:700 25px Batang,serif;margin:5px 0 0;color:#f2dca6}
.picker-description>p{font-size:14px;line-height:1.65;color:#c5d0c8;margin-bottom:10px;word-break:keep-all}
.picker-description>.picker-effect{font-weight:600;color:#ecdcb2;padding:10px 13px;border-left:2px solid #c4a15b;background:#9a874311}
.picker-footer{flex:none;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:14px 22px;border-top:1px solid #837047;background:#102126}
.picker-change-note{font-size:12px;color:#bdc7b9;margin:0;line-height:1.6;max-width:460px;word-break:keep-all}
.picker-footer>div{display:flex;gap:9px;flex:none}
.picker-footer button{border-radius:3px;min-height:48px;padding:10px 20px;font-size:14px}
.picker-footer .picker-equip{min-width:165px;font-weight:700;background:linear-gradient(#eed9a0,#b99854);color:#182728;border-color:#e5c781;box-shadow:inset 0 0 0 3px #b0966155}
.picker-equip:hover:not(:disabled){filter:brightness(1.12)}
@media(max-width:700px){
 .slot-army .slot-class-grid{gap:6px}.slot-army .slot-class-grid b{font-size:12px}
 .slot-army .army-utility{min-height:62px;margin-top:6px}
 .slot-army .painted-loadout-grid{grid-template-columns:1fr;gap:8px;margin-bottom:18px}
 .loadout-card{min-height:83px;padding:11px 14px}.loadout-copy b{font-size:17px}
 dialog.skill-picker{max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);border-radius:4px}
 .picker-heading{padding:12px}.picker-heading h2{font-size:19px}
 .picker-body{display:block;padding:12px;overflow-y:auto}
 .picker-library{padding:0;border:0;margin-bottom:14px}.picker-library>p{font-size:12px;margin-bottom:9px}
 .picker-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
 .picker-options button{padding:10px 7px;gap:6px;min-height:86px}.picker-options .command-art{width:26px;height:26px}.picker-options b{font-size:14px}
 .picker-options button>span>span{font-size:12px}.picker-options small{font-size:12px}
 .picker-stage{aspect-ratio:1.55}.picker-stage-label{font-size:11px;top:7px;left:7px}
 .picker-caption{margin-bottom:12px}.picker-skill-title h3{font-size:22px}.picker-skill-title{gap:9px;margin-bottom:9px}
 .picker-description>p{font-size:13px;margin-bottom:8px}
 .picker-footer{display:block;padding:10px 12px max(10px,env(safe-area-inset-bottom))}.picker-change-note{font-size:12px;margin-bottom:8px}
 .picker-footer>div{display:grid;grid-template-columns:1fr 2fr}.picker-footer button{min-width:0!important}
}
@media(min-width:701px) and (max-height:500px){.picker-heading{padding:9px 18px}.picker-body{padding:12px 18px}.picker-footer{padding:9px 18px}.picker-heading h2{font-size:19px}}
@media(prefers-reduced-motion:reduce){.loadout-card:hover{transform:none}}

/* Fixed hero kit, large roster gallery, and explicit touch-friendly reordering. */
.slot-army .army-tabs{grid-template-columns:repeat(4,minmax(0,1fr))}
.army-roster-tools{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:12px 0 8px}
.army-roster-tools>span{color:#c0cbbf;font-size:13px;line-height:1.5;min-width:0}
.army-roster-tools button{font-size:13px;flex:none;background:#1b302f;border-color:#a68d59}
.moving-roster .slot-roster-card{outline:1px dashed #c7af70;outline-offset:2px}
.moving-roster .move-origin{outline:2px solid #ffe0a1;filter:brightness(1.2)}
.army-gallery-open{width:100%;margin-top:9px;background:#213731;border-color:#8e7a50;font-size:14px}
.hero-fixed-kit{margin-top:13px}
.hero-fixed-kit>p{display:flex;justify-content:space-between;gap:8px;font-size:12px;color:#d4bf89;margin-bottom:6px}
.hero-fixed-kit>p small{font-size:11px;color:#abb9ac}
.hero-fixed-kit .army-utility{gap:9px;min-height:75px;margin-top:6px}
.hero-fixed-kit .army-utility b{font-size:17px;line-height:1.4}
.hero-fixed-kit .army-utility-copy>span{font-size:11px;color:#b6c3b8;line-height:1.45}
.hero-fixed-kit .army-utility.hero-fixed-hero-ultimate{border-color:#d0ac61;background:linear-gradient(110deg,#4b4032,#202a26)}
.army-fixed-note{font-size:13px;line-height:1.5;color:#c4bf9c;margin-bottom:14px}
.hero-gallery-heading{display:flex;justify-content:space-between;gap:12px;align-items:start;margin-bottom:16px}
.hero-gallery-heading h3{font-size:22px;margin:0 0 7px}.hero-gallery-heading p{font-size:13px;line-height:1.5;color:#b8c8c1;margin:0}
.hero-gallery-heading>span{padding:7px 9px;border:1px solid #8a744e;color:#e0c58c;font-size:12px;flex:none}
.hero-gallery{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.hero-gallery>button{position:relative;isolation:isolate;padding:0;min-width:0;min-height:215px;overflow:hidden;border:1px solid #968053;border-radius:3px;background:radial-gradient(ellipse at 50% 20%,#425449,#11262b 80%);box-shadow:inset 0 0 0 4px #091e2477;text-align:center}
.hero-gallery>button:hover{border-color:#ffe2a0;background:#314b43;box-shadow:0 0 16px #bca35c33}
.hero-gallery .slot-portrait{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 12%;transition:transform .3s;z-index:-1}
.hero-gallery>button:hover .slot-portrait{transform:scale(1.035)}
.hero-gallery-copy{position:absolute;bottom:0;left:0;width:100%;padding:42px 7px 14px;background:linear-gradient(transparent,#102025ee 48%);display:grid;gap:5px}
.hero-gallery-copy small{font-size:11px;color:#b9c6b6;line-height:1.4}
.hero-gallery-copy b{font:700 17px Batang,serif;color:#f3dfb1;line-height:1.4}
.hero-gallery-badge{position:absolute;top:7px;right:7px;background:#10282be8;border:1px solid #b29763;color:#efd99f;font-size:11px;line-height:1.4;padding:4px 6px}
.hero-gallery-badge .ui-icon{width:18px;height:18px}
.hero-gallery .already-rostered{border-color:#697d70}.already-rostered .hero-gallery-badge{background:#354e43;border-color:#c9bd7e}
dialog.hero-picker{width:1020px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:0;overflow:hidden;border:1px solid #b99a5c;border-radius:5px;background:#142629;box-shadow:0 20px 100px #000c}
dialog.hero-picker[open]{display:flex;flex-direction:column}.hero-picker::backdrop{background:#050d13de;backdrop-filter:blur(5px)}
.hero-picker-body{overflow:auto;overscroll-behavior:contain;min-height:0;display:grid;grid-template-columns:minmax(0,1.25fr) minmax(290px,1fr)}
.hero-cutscene{position:relative;isolation:isolate;overflow:hidden;width:100%;min-width:0;min-height:430px;background:#172b31}
.hero-cutscene>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:65% 35%;animation:hero-reveal 6s ease-out both;z-index:-1}
.hero-cutscene>div{position:absolute;bottom:0;width:100%;padding:70px 22px 24px;background:linear-gradient(transparent,#0c1d25eb)}
.hero-cutscene small{font-size:13px;color:#ebd397}.hero-cutscene h3{font:700 38px Batang,serif;color:#ffe6ad;margin:10px 0}.hero-cutscene p{font-size:14px;margin:0;color:#d6ded0}
.hero-picker-kit{padding:20px;border-left:1px solid #7a694342}.hero-picker-kit>h3{font:700 20px Batang,serif;color:#e4cc94;margin-bottom:8px}
.hero-picker-kit>p{font-size:12px;color:#b9c9c0;line-height:1.6}
.hero-picker-kit article{display:flex;align-items:start;gap:12px;padding:13px 0;border-top:1px solid #a0874b44}
.hero-picker-kit .command-art{width:43px;height:43px}.hero-picker-kit article>div{min-width:0}
.hero-picker-kit small{font-size:12px;color:#bcac81}.hero-picker-kit h4{font:700 20px Batang,serif;color:#efdaad;margin:5px 0 7px}
.hero-picker-kit article p{font-size:12px;color:#c2cbbd;margin:5px 0;line-height:1.55}
.hero-picker .picker-footer>p{font-size:13px;margin:0;color:#e4cf9e}
@keyframes hero-reveal{from{transform:scale(1.07);filter:brightness(.6)}to{transform:scale(1);filter:brightness(1)}}
.hero-picker.reduced .hero-cutscene>img{animation:none}
/* Hero command: exactly two choices; each starts its own reel immediately. */
.hero-choice-heading{display:flex;align-items:center;gap:9px;margin-bottom:10px}
.hero-choice-heading>div{min-width:0;flex:1}.hero-choice-heading h2{font-size:16px;margin:0 0 5px;color:#ebd49f}
.hero-choice-heading span{font-size:12px;color:#c3cdbb;line-height:1.4}
.hero-choice-heading>button{width:44px;height:44px;padding:9px;flex:none}
.hero-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.hero-choice-grid>button{min-width:0;min-height:83px;display:flex;align-items:center;gap:12px;text-align:left;padding:13px 16px;border:1px solid #aa8d52;border-radius:3px;background:linear-gradient(110deg,#304238,#132a2e);box-shadow:inset 0 0 0 3px #102326}
.hero-choice-grid .command-art{width:46px;height:46px}.hero-choice-grid>button>span:not(.command-art){flex:1;min-width:0}
.hero-choice-grid b{font:700 22px Batang,serif;line-height:1.3;color:#f3dba2;margin-bottom:6px}
.hero-choice-grid small{font-size:13px;line-height:1.4;color:#c4d1c4}.hero-choice-grid>.ui-icon{width:18px;height:18px}
.hero-choice-hint{font-size:12px;color:#bfbea3;margin:9px 0 0;line-height:1.5}
/* Text may wrap inside its own card. Do not clip names to hide overflow. */
.slot-app button,.slot-app h1,.slot-app h2,.slot-app h3,dialog button,dialog h2,dialog h3,dialog h4{white-space:normal;overflow-wrap:anywhere;word-break:keep-all}
.slot-app button b,.slot-app button small,.slot-app button>span,dialog button b,dialog button small{min-width:0;max-width:100%;overflow-wrap:anywhere}
.slot-techniques .skill-info{padding:10px 29px 10px 20px;height:auto;min-height:48px}
.slot-techniques .skill-info b{line-height:1.4;min-width:0;max-width:100%;overflow-wrap:anywhere}
.slot-subcategories button{padding-left:22px;padding-right:28px}.slot-subcategories b{line-height:1.4}
.slot-command-title h2,.command-note>b{overflow-wrap:anywhere;min-width:0}
.slot-execute>.slot-primary{font-size:16px;letter-spacing:0;white-space:normal;padding-inline:22px}
.manual-reel .reel-current-name{height:auto;min-height:36px;font-size:12px;line-height:1.2;overflow:visible}
.slot-reel>b{max-width:100%;overflow-wrap:anywhere;line-height:1.3}
.slot-pick-grid button>span,.slot-result-team article,.slot-opponents article,.slot-header>div{min-width:0;overflow-wrap:anywhere}
@media(max-width:1100px){.hero-gallery{grid-template-columns:repeat(3,minmax(0,1fr))}.hero-gallery>button{min-height:205px}.slot-army .army-tabs .command-art{width:26px;height:26px}}
@media(max-width:700px){
 .army-roster-tools{gap:8px;margin-top:6px}.army-roster-tools>span{font-size:12px}.army-roster-tools button{padding:8px;font-size:12px}
 .slot-army .army-tabs{gap:4px}.slot-army .army-tabs button{flex-direction:column;gap:5px;padding:8px 3px;min-height:67px}.slot-army .army-tabs b{font-size:13px}
 .hero-fixed-kit .army-utility{min-height:70px}.hero-fixed-kit .army-utility-copy>span{font-size:12px}
 .hero-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.hero-gallery>button{min-height:220px}.hero-gallery-copy b{font-size:17px}
 .hero-gallery-heading{display:block}.hero-gallery-heading>span{display:inline-block;margin-top:10px}
 .hero-picker-body{display:block}.hero-cutscene{min-height:260px;aspect-ratio:1.4}.hero-cutscene h3{font-size:30px}
 .hero-picker-kit{padding:14px}.hero-picker-kit article{padding:10px 0}.hero-picker-kit article p{font-size:12px}
 .hero-picker .picker-footer>p{margin-bottom:8px}.hero-picker .picker-footer button{padding:9px}
 .hero-choice-heading .help-discover{display:none}.hero-choice-heading h2{font-size:14px}
 .hero-choice-grid{gap:7px}.hero-choice-grid>button{padding:10px 8px;gap:6px;min-height:82px}.hero-choice-grid .command-art{width:32px;height:32px}.hero-choice-grid b{font-size:18px}.hero-choice-grid small{font-size:12px}.hero-choice-grid>button>.ui-icon{display:none}
 .slot-techniques .skill-info{padding:9px 24px 9px 14px}.slot-subcategories button{padding-left:12px;padding-right:23px}
 .slot-execute>.slot-primary{font-size:14px}.slot-army .army-portrait>.army-no-hero{padding:20px}
}
@media(prefers-reduced-motion:reduce){.hero-cutscene>img{animation:none}.hero-gallery>button:hover .slot-portrait{transform:none}}

/* The fifth command uses the same gold palette and a crisp exchange emblem. */
.slot-category.with-switch{grid-template-columns:repeat(5,minmax(0,1fr))}
.slot-category>button{justify-content:flex-start;border:1px solid transparent;border-bottom-color:#77603e}
.slot-category>button>.command-art{margin-top:5px}
.slot-category>button>b{line-height:1.35}
.command-art.art-switch{display:inline-grid;place-items:center;position:relative;background:radial-gradient(circle,#304d45 40%,#132b28 48%,#d9b867 50%,#705026 54%,#f0d791 57%,#725331 60%,transparent 62%);color:#f7d98c;filter:drop-shadow(0 2px 3px #0009)}
.art-switch::before{content:'';position:absolute;inset:13%;border:1px dotted #f4d791;border-radius:50%;box-shadow:0 0 3px #e7b454}
.slot-category .art-switch .ui-icon{width:50%;height:50%;stroke-width:2;filter:drop-shadow(0 1px 1px #000)}
.switch-heading{display:flex;align-items:center;gap:9px;margin-bottom:9px}
.switch-heading>button{width:44px;height:44px;flex:none;padding:10px}.switch-heading>div{min-width:0}
.switch-heading h2{margin:0 0 5px!important;color:#ead297}.switch-heading p{font-size:12px;line-height:1.45;color:#c5c7ac;margin:0;overflow-wrap:anywhere}
.switch-candidates{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.switch-candidates>button{display:grid;grid-template-columns:48px minmax(0,1fr);gap:7px 10px;align-items:center;min-width:0;padding:10px;text-align:left;background:linear-gradient(120deg,#304438,#11272d);border:1px solid #af945b;border-radius:3px;box-shadow:inset 0 0 0 3px #102326}
.switch-candidates>button:hover:not(:disabled){border-color:#ffe5a6;background-color:#3a5144;box-shadow:0 0 10px #cfad492b,inset 0 0 0 2px #bda46955}
.switch-candidates .slot-portrait{width:48px;height:61px;object-fit:cover;object-position:50% 12%;border:1px solid #907c52;border-radius:2px;grid-row:1}
.switch-name{display:grid;gap:5px}.switch-name b{color:#f1dba6;font:700 18px Batang,serif;line-height:1.35}.switch-name small{font-size:12px;color:#c5cebc}
.switch-health{grid-column:1/-1;display:grid;gap:4px}.switch-health>span{display:grid;grid-template-columns:28px minmax(0,1fr) 28px;gap:5px;align-items:center}
.switch-health small,.switch-health b{font-size:12px;line-height:1.4}.switch-health b{text-align:right;color:#e6daba}.switch-health meter{width:100%;min-width:0;height:8px;accent-color:#b5c7a1}
.switch-state{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;font-size:12px;color:#d0bc8c;border-top:1px solid #9d885c50;padding-top:5px}.switch-state .ui-icon{width:18px;height:18px}
.switch-candidates>button:disabled .slot-portrait{filter:grayscale(.9)}
@media(max-width:700px){
 .slot-category.with-switch{gap:3px}.slot-category.with-switch button{min-height:101px;padding:5px 2px}.slot-category.with-switch .command-art{width:37px;height:37px}.slot-category.with-switch b{font-size:15px;letter-spacing:0;line-height:1.35}.slot-category.with-switch small{font-size:12px}
 .switch-candidates{gap:6px}.switch-candidates>button{grid-template-columns:38px minmax(0,1fr);gap:6px;padding:8px}.switch-candidates .slot-portrait{width:38px;height:53px}.switch-name b{font-size:15px}.switch-name{gap:4px}.switch-heading p{font-size:12px}
}
/* Command faces carry only an emblem and a name; detail stays in the tooltip. */
#slot-commands{container-type:inline-size}
.slot-command-head{grid-template-columns:44px minmax(0,1fr);gap:8px}
.slot-command-title{margin:0}.slot-command-title h2{display:none}
.slot-command-title>button{width:44px;height:44px;padding:9px;flex:none}
.slot-subcategories{gap:8px}
.slot-subcategories>button{min-height:48px;min-width:0;padding:8px 10px;border:1px solid #8f7a50;border-radius:4px;background:linear-gradient(135deg,#293d39,#12282c);box-shadow:inset 0 0 0 3px #102225;display:flex;align-items:center;justify-content:center}
.slot-subcategories>button.selected{background:linear-gradient(135deg,#4d5137,#243a30);border-color:#edcf88;box-shadow:inset 0 0 0 2px #b6a06640;filter:none}
.slot-subcategories>button>b{font-size:16px;line-height:1.35;white-space:nowrap}
.slot-subcategories>button{gap:6px}.slot-subcategories>button>.ui-icon{width:20px;height:20px;flex:none;color:#e0c790}
.slot-subcategories .help-mark{display:none}
.hero-choice-heading{margin-bottom:8px}.hero-choice-heading>h2{font-size:16px;margin:0!important}
.hero-choice-grid>button{justify-content:center;padding:12px;min-height:76px;gap:10px}
.hero-choice-grid>button>b{font-size:20px;line-height:1.3;margin:0;white-space:nowrap;flex:none}
.hero-choice-grid .command-art{width:42px;height:42px}
.slot-techniques,.slot-techniques.slot-buff-techniques{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.slot-techniques .skill-info{min-height:48px;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:8px;padding:8px 10px;border:1px solid #8b7852;border-radius:4px;background:linear-gradient(135deg,#263c36,#14282d);box-shadow:inset 0 0 0 2px #101f22}
.slot-techniques .skill-info>.command-art{width:28px;height:28px;flex:none}
.slot-techniques .skill-info>b{font-size:14px;line-height:1.35;text-align:left;word-break:keep-all;overflow-wrap:normal}
.slot-techniques .skill-info>.help-mark{display:none}
.slot-execute>.slot-primary{background:linear-gradient(135deg,#d8be7d,#9c8047);color:#132726;border:1px solid #edcf8e;border-radius:4px;box-shadow:inset 0 0 0 3px #b2995f;text-shadow:none;min-height:48px;padding:8px 16px;white-space:nowrap}
.slot-execute>.command-note{min-height:48px}.slot-execute>.command-note>b{font-size:13px}
.slot-machine #slot-outcome:empty{display:none}
.combat-help-target{font-size:13px!important;margin:0 0 8px!important;color:#c6d2c5}
.matchup-badge{display:flex;align-items:center;gap:9px;padding:10px;border:1px solid #8a9574;border-radius:5px;background:#233932;color:#e2e6d2}
.matchup-symbol{font:bold 22px Georgia,serif;flex:none;min-width:28px;text-align:center}
.matchup-label{flex:1;font-size:14px;line-height:1.4}.matchup-value{font-size:19px;white-space:nowrap}
.matchup-badge.veryStrong{color:#e8eeb2;border-color:#d3ce74;background:#41482d}.matchup-badge.strong{color:#c6e6b5;border-color:#8eaf78;background:#2b4836}
.matchup-badge.weak{color:#e0bbb0;border-color:#aa8176;background:#4a3430}.matchup-badge.immune{color:#cbc5d3;border-color:#8f849e;background:#36313f}
.combat-help-damage{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:12px 1px}.combat-help-damage span{font-size:13px;color:#c9cfbb}.combat-help-damage b{font-size:23px;color:#f0d99f}
.slot-help .combat-help-type{margin:0 0 5px;font-size:12px;color:#b5c2b6}
@container(max-width:620px){.slot-techniques,.slot-techniques.slot-buff-techniques{grid-template-columns:repeat(2,minmax(0,1fr))}.slot-execute>.slot-primary{min-width:130px;flex:0 0 auto}.slot-execute>.command-note{flex:1;min-width:0}}
@container(max-width:390px){.slot-subcategories>button>b{font-size:14px}.hero-choice-grid>button{padding:10px 8px;gap:8px}.hero-choice-grid>button>b{font-size:18px}.hero-choice-grid .command-art{width:36px;height:36px}.slot-techniques .skill-info{gap:6px;padding:8px}.slot-techniques .skill-info>b{font-size:13px}.slot-techniques .skill-info>.command-art{width:24px;height:24px}}
