/* Compact commands keep every learned attack directly reachable. */
.element-guide{overflow-x:auto}.element-guide table{width:100%;border-collapse:collapse}.element-guide th,.element-guide td{text-align:left;padding:8px;border-bottom:1px solid #75664e}
.controls .actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:none;grid-auto-rows:minmax(52px,auto);gap:8px;min-width:0;align-items:stretch}.extra-skills{display:contents}.actions .action{min-width:0;width:auto;height:auto;min-height:52px;padding:7px 9px;gap:7px;grid-column:auto;grid-row:auto;align-self:stretch;justify-self:stretch;border-radius:9px;display:flex;flex-direction:row;text-align:left;position:relative}.actions .action.attack{order:0}.actions .special{order:1}.actions .guard{order:2}.actions .catch{order:3;border:2px solid #a58040!important;background:linear-gradient(#f6e7b4,#ddbd7c)!important;box-shadow:0 3px #6f4f34!important}.actions .action>span{flex-shrink:0;width:27px;height:27px;line-height:23px;font-size:18px;border:2px solid #c2a365;outline:0;box-shadow:none}.actions .action>div{min-width:0}.actions .action strong{font-size:11px;line-height:1.3;display:block;overflow-wrap:anywhere}.actions .action small{font-size:9px;line-height:1.35;display:block}.actions .action kbd{display:none}.actions .catch>span:after{display:none}.actions .catch strong{font:inherit;font-size:11px;font-weight:700}.actions .catch small{margin:0}.actions .action:disabled{opacity:.48;cursor:not-allowed}.player-status{padding-right:36px}.matchup-help{position:absolute;right:8px;bottom:8px;width:26px;height:26px;border:2px solid #aa8249;border-radius:50%;background:#fff0bf;color:#634124;font-weight:900;font-size:16px;line-height:20px;cursor:pointer}.matchup-help:focus-visible{outline:3px solid #78d5ec;outline-offset:2px}.matchup-result{padding:10px 13px;margin:10px 0;border:1px solid #987d57;border-radius:10px}.matchup-result p{margin:5px 0}.matchup-result.favorable{border-color:#6eaa73;background:#6eaa7318}.matchup-result.unfavorable{border-color:#d28065;background:#d2806518}
@media(max-width:600px){.controls{gap:10px;padding:20px 12px}.controls .command{width:68px}.controls .actions{gap:6px;grid-auto-rows:minmax(54px,auto)}.actions .action{padding:6px;gap:5px;min-height:54px}.actions .action>span{width:20px;height:22px;line-height:18px;font-size:13px}.actions .action strong,.actions .catch strong{font-size:9px}.actions .action small{font-size:8px}.matchup-help{width:26px;height:26px;right:5px;bottom:5px}.player-status{padding-right:33px}}

/* Illustrated badges and generous, separate help/capture targets. */
.status:before{display:none}.status.player-status{padding-right:15px}.status .element-medallion{position:absolute;left:-22px;top:4px;width:42px;height:42px;object-fit:contain;pointer-events:none;filter:drop-shadow(0 2px 2px #60452c66)}.enemy-status .element-medallion{left:auto;right:-22px}.battle-toolbar{flex-wrap:wrap;gap:10px}.battle-toolbar .matchup-help{position:static;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-width:44px;min-height:44px;width:auto;height:auto;padding:6px 12px;border-radius:12px;touch-action:manipulation;flex-shrink:0;z-index:3;line-height:1.2}.matchup-help b{font-size:20px}.battle-toolbar .matchup-help span{font-size:11px;pointer-events:none}.battle-toolbar .matchup-help>*{pointer-events:none}.matchup-help:active{transform:translateY(1px);background:#ffd981}.capture-command{order:3;display:flex;gap:9px;align-items:center;justify-content:center;min-width:0;padding:2px}.capture-command>div{min-width:0;color:#6d4b27}.capture-command strong{display:block;font-size:12px}.capture-command small{display:block;font-size:9px;line-height:1.4}.actions .capture-command .catch{width:82px;height:82px;min-width:82px;min-height:82px;flex:0 0 82px;border-radius:50%;padding:0;border:0!important;outline:2px solid #9c7946;outline-offset:-4px;background:radial-gradient(circle,#183d65,#11253d)!important;box-shadow:0 3px 5px #60462d55!important;overflow:hidden;display:grid;place-items:center;touch-action:manipulation}.capture-command .catch img{width:100%;height:100%;object-fit:contain;pointer-events:none;user-select:none}.capture-command .catch:focus-visible{outline:3px solid #fff0a2;outline-offset:3px}.capture-command .catch:not(:disabled):hover{filter:brightness(1.12)}.capture-command .catch:disabled{opacity:.4;filter:grayscale(.35)}
@media(max-width:600px){.status.player-status{padding-right:9px}.status .element-medallion{width:32px;height:32px;left:-15px;top:3px}.enemy-status .element-medallion{left:auto;right:-15px}.battle-toolbar .matchup-help{min-height:44px;padding:6px 8px}.battle-toolbar .matchup-help span{font-size:9px}.capture-command{gap:5px;flex-direction:column;padding:3px}.actions .capture-command .catch{width:66px;height:66px;min-width:66px;min-height:66px;flex-basis:66px}.capture-command>div{text-align:center}.capture-command strong{font-size:10px}.capture-command small{font-size:8px}}

/* All seven commands share the width formerly occupied by the miniature portrait. */
.controls{display:block;min-height:0;padding:20px 24px}.controls .actions{width:100%;grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:minmax(64px,auto);gap:10px;align-items:stretch}.controls .actions .action{min-height:64px;padding:9px 11px}.controls .actions .action strong{font-size:12px}.controls .actions .action small{font-size:10px}.controls .capture-command{flex-direction:row;justify-content:center;gap:10px;min-height:64px}.controls .actions .capture-command .catch{width:58px;height:58px;min-width:58px;min-height:58px;flex:0 0 58px;padding:0}.controls .capture-command>div{text-align:left}.controls .capture-command strong{font-size:12px}.controls .capture-command small{font-size:10px;overflow-wrap:anywhere}
@media(max-width:900px){.controls .actions{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){.controls{padding:14px 12px}.controls .actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;grid-auto-rows:minmax(62px,auto)}.controls .actions .action{padding:7px;min-height:62px;gap:6px}.controls .actions .action strong{font-size:11px;line-height:1.35}.controls .actions .action small{font-size:9px}.controls .capture-command{gap:6px;padding:3px}.controls .actions .capture-command .catch{width:46px;height:46px;min-width:46px;min-height:46px;flex-basis:46px}.controls .capture-command strong{font-size:11px}.controls .capture-command small{font-size:8px}}

/* Warm brown surface and a single, proportional capture command. */
.controls{background:#78583c;background-image:none;border-top:1px solid #d1ae70;color:#fff0cb;box-shadow:inset 0 1px 0 #f7ddb32b}.controls .actions .action.catch.capture-command{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:10px;width:auto;height:auto;min-width:0;min-height:64px;padding:9px 11px;border:2px solid #b28a4e!important;border-radius:9px;background:linear-gradient(#fae8b9,#ddbc78)!important;box-shadow:0 3px #5f412c!important;outline:none;text-align:left;overflow:hidden;touch-action:manipulation}.controls .capture-command>.capture-command-orb{display:block;width:40px;height:40px;flex:0 0 40px;object-fit:contain;pointer-events:none;user-select:none;filter:drop-shadow(0 2px 2px #64452d55)}.controls .capture-command>.capture-copy{min-width:0;flex:1;text-align:left;color:#624326;pointer-events:none}.controls .capture-command strong{color:#624326;font:800 12px/1.3 Nunito,sans-serif}.controls .capture-command small{color:#795a31;font:700 10px/1.4 Nunito,sans-serif;margin-top:3px;overflow-wrap:anywhere}.controls .actions .capture-command:not(:disabled):hover{filter:brightness(1.06)}.controls .actions .capture-command:focus-visible{outline:3px solid #fff1bd;outline-offset:3px}.controls .actions .capture-command:disabled{opacity:.48;filter:grayscale(.2)}
@media(max-width:600px){.controls .actions .action.catch.capture-command{min-height:62px;padding:7px;gap:7px}.controls .capture-command>.capture-command-orb{width:34px;height:34px;flex-basis:34px}.controls .capture-command strong{font-size:11px}.controls .capture-command small{font-size:9px}}
