body.game-mode .command-area .move-element,body.game-mode .command-area .move-category{font-style:normal}

/* Touch battle utilities retain full targets on phones and tablets. */
@media (pointer:coarse){
 body.game-mode[data-screen=battle][data-battle-format=singles] .battle-party,
 body.game-mode[data-screen=battle][data-battle-format=singles] .battle-bottom .shortcut-hint{display:none}
 body.game-mode[data-screen=battle][data-battle-format=singles] .battle-bottom{justify-content:flex-end}
 body.game-mode[data-screen=battle][data-battle-format=singles] .battle-heading>div:first-child{max-width:105px;min-height:44px;padding:0;gap:0;border:0;background:transparent;box-shadow:none}
 body.game-mode[data-screen=battle][data-battle-format=singles] .battle-heading>div:first-child>span{display:none}
 body.game-mode[data-screen=battle][data-battle-format=singles] .battle-heading>div:first-child:has([data-action=run-scout])>[data-action=battle-home]{display:none}
 body.game-mode[data-screen=battle][data-battle-format=singles] .battle-heading .run-info-button,
 body.game-mode[data-screen=battle][data-battle-format=singles] .battle-heading [data-action=battle-home]{min-height:44px;max-width:105px;display:flex;align-items:center;justify-content:center;padding:6px 9px;margin:0;background:#183c3fea;border:1px solid #a8b999;box-shadow:0 3px 0 #153033;font-size:11px;line-height:1.25;white-space:normal}
 body.game-mode[data-screen=battle][data-battle-format=singles] .battle-heading [data-action=battle-home]{font-size:9px;opacity:1}
 body.game-mode[data-screen=battle][data-battle-format=singles] .battle-heading [data-action=battle-home] .icon{display:none}
 body.game-mode[data-screen=battle][data-battle-format=singles] .battle-heading>div:last-child{position:fixed;min-height:44px;height:44px;margin:0;padding:0;gap:4px;background:transparent;border:0;box-shadow:none}
 body.game-mode[data-screen=battle][data-battle-format=singles] .battle-heading .turn-chip{display:flex;align-items:center;justify-content:center;min-width:34px;min-height:44px;font-size:8px;background:#193e40ee;border:1px solid #a8b999}
 body.game-mode[data-screen=battle][data-battle-format=singles] .battle-heading .icon-button{height:44px;width:44px;min-height:44px;min-width:44px;border:1px solid #a8b999;background:#193e40ee;font-size:13px}
 body.game-mode[data-screen=battle][data-battle-format=singles] .battle-heading .icon-button .icon{width:17px;height:17px}
 body.game-mode[data-screen=battle][data-battle-format=singles] .battle-field-strip{min-height:44px;width:142px;max-width:142px;padding:0;gap:0}
 body.game-mode[data-screen=battle][data-battle-format=singles] .battle-field-strip>span{display:none}
 body.game-mode[data-screen=battle][data-battle-format=singles] .battle-field-strip button{display:flex;align-items:center;justify-content:center;width:100%;min-height:44px;padding:5px;font-size:9px;line-height:1.2;white-space:normal}
 body.game-mode[data-screen=battle][data-battle-format=singles] .command-area .move-button,
 body.game-mode[data-screen=battle][data-battle-format=singles] .command-area .action-menu button{min-height:44px}
 body.game-mode[data-screen=battle][data-battle-format=singles] .controls-heading .text-button{min-height:44px;min-width:66px;justify-content:center;padding:5px;white-space:normal;line-height:1.25}
 body.game-mode[data-screen=battle][data-battle-format=singles] .capture-advice .text-button{min-height:44px}
}
@media (pointer:coarse) and (max-width:700px){
 body.game-mode[data-screen=battle][data-battle-format=singles] .battle-heading>div:last-child{left:13px;top:60px}
 body.game-mode[data-screen=battle][data-battle-format=singles] .battle-field-strip{left:auto;right:13px;top:60px;bottom:auto;max-width:calc(100% - 160px)}
 body.game-mode[data-screen=battle][data-battle-format=singles] .wild-label{top:110px;right:13px}
}
@media (pointer:coarse) and (min-width:701px){
 body.game-mode[data-screen=battle][data-battle-format=singles] .battle-heading>div:last-child{left:126px;top:10px}
 body.game-mode[data-screen=battle][data-battle-format=singles] .battle-field-strip{left:270px;right:auto;top:10px;bottom:auto}
}

/* Short portrait singles keep the health readouts above the decision dock. */
@media (max-width:700px) and (min-height:501px) and (max-height:700px){
 body.game-mode[data-screen=battle][data-battle-format=singles]{--game-dock-height:214px;--game-dock-bottom:10px;--game-gutter:10px;--compact-message-height:56px;--arena-compact-portrait:1}
 body.game-mode[data-screen=battle][data-battle-format=singles] .game-quickbar{display:none}
 body.game-mode[data-screen=battle][data-battle-format=singles] .battle-party,
 body.game-mode[data-screen=battle][data-battle-format=singles] .battle-bottom .shortcut-hint{display:none}
 body.game-mode[data-screen=battle][data-battle-format=singles] .battle-bottom{display:flex;left:auto;right:10px;top:132px;bottom:auto;width:auto;margin:0;padding:0}
 body.game-mode[data-screen=battle][data-battle-format=singles] .battle-bottom>p{max-width:114px;font-size:7px;line-height:1.15;gap:3px;flex-wrap:nowrap;white-space:nowrap;padding:3px 4px}
 body.game-mode[data-screen=battle][data-battle-format=singles] .battle-bottom>p .icon{width:8px;height:8px}
 body.game-mode[data-screen=battle][data-battle-format=singles] .game-hud{left:10px;right:10px;top:max(10px,env(safe-area-inset-top))}
 body.game-mode[data-screen=battle][data-battle-format=singles] .battle-heading{top:10px;left:10px;right:10px}
 body.game-mode[data-screen=battle][data-battle-format=singles] .battle-heading>div:first-child{max-width:105px;min-height:44px;padding:0;gap:0;border:0;background:transparent;box-shadow:none}
 body.game-mode[data-screen=battle][data-battle-format=singles] .battle-heading>div:first-child>span{display:none}
 body.game-mode[data-screen=battle][data-battle-format=singles] .battle-heading>div:first-child:has([data-action=run-scout])>[data-action=battle-home]{display:none}
 body.game-mode[data-screen=battle][data-battle-format=singles] .battle-heading .run-info-button,
 body.game-mode[data-screen=battle][data-battle-format=singles] .battle-heading [data-action=battle-home]{min-height:44px;max-width:105px;display:flex;align-items:center;justify-content:center;padding:6px 9px;margin:0;background:#183c3fea;border:1px solid #a8b999;box-shadow:0 3px 0 #153033;font-size:11px;line-height:1.25;white-space:normal}
 body.game-mode[data-screen=battle][data-battle-format=singles] .battle-heading [data-action=battle-home]{font-size:9px;opacity:1}
 body.game-mode[data-screen=battle][data-battle-format=singles] .battle-heading [data-action=battle-home] .icon{display:none}
 body.game-mode[data-screen=battle][data-battle-format=singles] .battle-heading>div:last-child{position:fixed;left:10px;top:60px;min-height:44px;height:44px;margin:0;padding:0;gap:4px;background:transparent;border:0;box-shadow:none}
 body.game-mode[data-screen=battle][data-battle-format=singles] .battle-heading .turn-chip{display:flex;align-items:center;justify-content:center;min-width:34px;min-height:44px;font-size:8px;background:#193e40ee;border:1px solid #a8b999}
 body.game-mode[data-screen=battle][data-battle-format=singles] .battle-heading .icon-button{height:44px;width:44px;min-height:44px;min-width:44px;border:1px solid #a8b999;background:#193e40ee;font-size:13px}
 body.game-mode[data-screen=battle][data-battle-format=singles] .battle-heading .icon-button .icon{width:17px;height:17px}
 body.game-mode[data-screen=battle][data-battle-format=singles] .battle-field-strip{left:auto;right:10px;top:60px;bottom:auto;min-height:44px;width:142px;max-width:calc(100% - 160px);padding:0;gap:0}
 body.game-mode[data-screen=battle][data-battle-format=singles] .battle-field-strip>span{display:none}
 body.game-mode[data-screen=battle][data-battle-format=singles] .battle-field-strip button{display:flex;align-items:center;justify-content:center;width:100%;min-height:44px;padding:5px;font-size:9px;line-height:1.2;white-space:normal}
 body.game-mode[data-screen=battle][data-battle-format=singles] .battle-arena #arena-canvas{top:76px;bottom:0;height:calc(100% - 76px)}
 body.game-mode[data-screen=battle][data-battle-format=singles] .health-plate{width:55%;padding:6px 8px;border-width:2px;border-radius:2px 9px 2px 9px}
 body.game-mode[data-screen=battle][data-battle-format=singles] .health-plate.enemy{top:110px;left:10px;bottom:auto}
 body.game-mode[data-screen=battle][data-battle-format=singles] .health-plate.player{top:auto;right:10px;bottom:calc(var(--game-dock-height) + var(--game-dock-bottom) + var(--compact-message-height) + 20px)}
 body.game-mode[data-screen=battle][data-battle-format=singles] .plate-top{gap:5px;margin-bottom:4px;align-items:flex-start}
 body.game-mode[data-screen=battle][data-battle-format=singles] .plate-top>div{min-width:0}
 body.game-mode[data-screen=battle][data-battle-format=singles] .plate-top strong{font-size:20px;line-height:1;display:block;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 body.game-mode[data-screen=battle][data-battle-format=singles] .plate-top .level{font-size:8px;padding-top:1px;flex:none}
 body.game-mode[data-screen=battle][data-battle-format=singles] .plate-top .level b{font-size:11px}
 body.game-mode[data-screen=battle][data-battle-format=singles] .plate-types{margin-top:3px;gap:3px}
 body.game-mode[data-screen=battle][data-battle-format=singles] .plate-types .type-tag{font-size:6px;line-height:1;padding:2px 3px;margin:0}
 body.game-mode[data-screen=battle][data-battle-format=singles] .health-row{gap:4px}
 body.game-mode[data-screen=battle][data-battle-format=singles] .health-row>span{font-size:8px}
 body.game-mode[data-screen=battle][data-battle-format=singles] .health-row .health-track{height:6px;border-width:1px}
 body.game-mode[data-screen=battle][data-battle-format=singles] .health-row small{font-size:9px;min-width:42px}
 body.game-mode[data-screen=battle][data-battle-format=singles] .health-plate .xp-track{margin:4px 0 0 14px;height:3px}
 body.game-mode[data-screen=battle][data-battle-format=singles] .health-plate .status-tag{font-size:8px;padding:3px 5px;top:-8px}
 body.game-mode[data-screen=battle][data-battle-format=singles] .wild-label{top:110px;right:10px;max-width:52%;font-size:6px;padding:3px 5px}
 body.game-mode[data-screen=battle][data-battle-format=singles] .enemy-party{top:155px;left:auto;right:14px;gap:3px}
 body.game-mode[data-screen=battle][data-battle-format=singles] .enemy-party .icon{width:11px;height:11px}
 body.game-mode[data-screen=battle][data-battle-format=singles] .battle-message{left:10px;right:10px;bottom:calc(var(--game-dock-height) + var(--game-dock-bottom) + 12px);height:var(--compact-message-height);padding:6px 11px;gap:7px}
 body.game-mode[data-screen=battle][data-battle-format=singles] .battle-message p{font-size:18px;line-height:1.05;max-height:100%;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;padding-right:4px}
 body.game-mode[data-screen=battle][data-battle-format=singles] .message-diamond{font-size:11px;margin-top:3px}
 body.game-mode[data-screen=battle][data-battle-format=singles] .message-next{font-size:11px;right:7px;bottom:3px}
 body.game-mode[data-screen=battle][data-battle-format=singles] .action-area,
 body.game-mode[data-screen=battle][data-battle-format=singles] .outcome-area{left:10px;right:10px;bottom:var(--game-dock-bottom);width:auto;height:var(--game-dock-height);max-height:var(--game-dock-height);padding:9px}
 body.game-mode[data-screen=battle][data-battle-format=singles] .command-area{display:grid;grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) 44px 8px;gap:6px;padding:8px 9px 6px;overflow:hidden}
 body.game-mode[data-screen=battle][data-battle-format=singles] .command-area .move-grid{grid-template-columns:1fr 1fr;grid-auto-rows:minmax(44px,1fr);gap:6px}
 body.game-mode[data-screen=battle][data-battle-format=singles] .command-area .move-button{min-height:44px;padding:4px 5px;gap:4px;border-left-width:3px}
 body.game-mode[data-screen=battle][data-battle-format=singles] .command-area .move-info strong{font-size:18px;line-height:.95;white-space:normal;display:block}
 body.game-mode[data-screen=battle][data-battle-format=singles] .command-area .move-info small{margin-top:3px;font-size:7px;gap:3px;line-height:1.1;display:flex;flex-wrap:wrap}
 body.game-mode[data-screen=battle][data-battle-format=singles] .command-area .move-info small>span{font-size:6px;letter-spacing:0;line-height:1.1}
 body.game-mode[data-screen=battle][data-battle-format=singles] .command-area .move-info small>b{font-size:8px;line-height:1.1}
 body.game-mode[data-screen=battle][data-battle-format=singles] .command-area .move-hint{font-size:7px;line-height:1.1;margin-top:2px}
 body.game-mode[data-screen=battle][data-battle-format=singles] .command-area .move-pp{font-size:17px;flex-basis:22px}
 body.game-mode[data-screen=battle][data-battle-format=singles] .command-area .move-pp small{font-size:6px;line-height:1.1;margin-top:3px}
 body.game-mode[data-screen=battle][data-battle-format=singles] .command-area .action-menu{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;padding:0;border:0}
 body.game-mode[data-screen=battle][data-battle-format=singles] .command-area .action-menu button{min-height:44px;min-width:0;padding:4px 2px;font-size:13px;line-height:1;gap:3px;flex-direction:row;flex-wrap:wrap;align-content:center}
 body.game-mode[data-screen=battle][data-battle-format=singles] .command-area .action-menu .icon{width:12px;height:12px}
 body.game-mode[data-screen=battle][data-battle-format=singles] .command-area .action-menu b{font-size:7px}
 body.game-mode[data-screen=battle][data-battle-format=singles] .forecast-note{font-size:6px;line-height:1.15;max-height:8px;overflow:hidden}
 body.game-mode[data-screen=battle][data-battle-format=singles] .capture-area,
 body.game-mode[data-screen=battle][data-battle-format=singles] .tactical-switch,
 body.game-mode[data-screen=battle][data-battle-format=singles] .action-area:has(.controls-heading){display:flex;flex-direction:column;height:var(--game-dock-height);min-height:0;max-height:var(--game-dock-height);overflow:auto;overscroll-behavior:contain;gap:8px;padding:9px}
 body.game-mode[data-screen=battle][data-battle-format=singles] .controls-heading{position:sticky;top:-9px;z-index:2;min-height:44px;flex:none;align-items:center;background:#f3efd6;padding:0 0 5px;border-bottom:1px solid #c3cdad}
 body.game-mode[data-screen=battle][data-battle-format=singles] .controls-heading strong{font-size:21px;line-height:1}
 body.game-mode[data-screen=battle][data-battle-format=singles] .controls-heading>div>span{font-size:8px;line-height:1.4}
 body.game-mode[data-screen=battle][data-battle-format=singles] .controls-heading .text-button{min-height:44px;min-width:66px;flex:none;justify-content:center;padding:5px;font-size:9px;white-space:normal;line-height:1.25}
 body.game-mode[data-screen=battle][data-battle-format=singles] .capture-readiness{flex:none;padding:6px;gap:5px}
 body.game-mode[data-screen=battle][data-battle-format=singles] .capture-readiness>div>span{font-size:6px;line-height:1.3}
 body.game-mode[data-screen=battle][data-battle-format=singles] .capture-readiness strong{font-size:17px}
 body.game-mode[data-screen=battle][data-battle-format=singles] .capture-advice{flex:none;padding:7px;font-size:9px;line-height:1.4}
 body.game-mode[data-screen=battle][data-battle-format=singles] .capture-advice .text-button{min-height:44px;font-size:10px}
 body.game-mode[data-screen=battle][data-battle-format=singles] .capture-options{display:grid;grid-template-columns:1fr;flex:none;gap:7px}
 body.game-mode[data-screen=battle][data-battle-format=singles] .capture-card{min-height:58px;padding:7px;gap:7px}
 body.game-mode[data-screen=battle][data-battle-format=singles] .capture-card strong{font-size:20px;line-height:1.1}
 body.game-mode[data-screen=battle][data-battle-format=singles] .capture-card small{font-size:9px;line-height:1.3}
 body.game-mode[data-screen=battle][data-battle-format=singles] .capture-card>b{font-size:23px}
 body.game-mode[data-screen=battle][data-battle-format=singles] .capture-card>b small{font-size:7px}
 body.game-mode[data-screen=battle][data-battle-format=singles] .switch-grid{display:grid;grid-template-columns:1fr;gap:7px;flex:none}
 body.game-mode[data-screen=battle][data-battle-format=singles] .switch-card{min-height:77px;padding:8px}
 body.game-mode[data-screen=battle][data-battle-format=singles] .switch-card strong{font-size:21px}
 body.game-mode[data-screen=battle][data-battle-format=singles] .switch-card small{font-size:9px;line-height:1.4}
 body.game-mode[data-screen=battle][data-battle-format=singles] .switch-note{font-size:9px;line-height:1.4;flex:none}
 body.game-mode[data-screen=battle][data-battle-format=singles] .waiting{font-size:20px;min-height:0}
 body.game-mode[data-screen=battle][data-battle-format=singles] .activity-objective-banner{left:10px;right:10px;top:106px;bottom:auto;width:auto;max-width:none;z-index:12}
}

@media (max-width:700px) and (min-height:501px) and (max-height:550px){
 body.game-mode[data-screen=battle][data-battle-format=singles]{--game-dock-height:182px;--compact-message-height:50px}
 body.game-mode[data-screen=battle][data-battle-format=singles] .battle-arena #arena-canvas{top:70px;height:calc(100% - 70px)}
 body.game-mode[data-screen=battle][data-battle-format=singles] .health-plate{padding:5px 7px}
 body.game-mode[data-screen=battle][data-battle-format=singles] .plate-top strong{font-size:18px}
 body.game-mode[data-screen=battle][data-battle-format=singles] .plate-types .type-tag{font-size:5px;padding:2px 3px}
 body.game-mode[data-screen=battle][data-battle-format=singles] .health-row small{font-size:8px}
 body.game-mode[data-screen=battle][data-battle-format=singles] .battle-message{padding-top:5px;padding-bottom:5px}
 body.game-mode[data-screen=battle][data-battle-format=singles] .battle-message p{font-size:17px}
 body.game-mode[data-screen=battle][data-battle-format=singles] .command-area .move-button{padding:2px 4px}
 body.game-mode[data-screen=battle][data-battle-format=singles] .command-area .move-info strong{font-size:16px}
 body.game-mode[data-screen=battle][data-battle-format=singles] .command-area .move-info small{margin-top:2px}
 body.game-mode[data-screen=battle][data-battle-format=singles] .command-area .move-hint{display:none}
}

/* Decision text uses a full card row, with PP alongside the move name. */
@media (pointer:coarse){
 body.game-mode[data-screen=battle][data-battle-format=singles] .command-area{grid-template-rows:minmax(0,1fr)}
 body.game-mode[data-screen=battle][data-battle-format=singles] .command-area .forecast-note{display:none}
 body.game-mode[data-screen=battle][data-battle-format=singles] .command-area .move-button{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto auto;align-content:center;align-items:center;gap:2px 4px;min-height:44px;padding:4px 5px}
 body.game-mode[data-screen=battle][data-battle-format=singles] .command-area .move-key{display:none}
 body.game-mode[data-screen=battle][data-battle-format=singles] .command-area .move-info{display:contents}
 body.game-mode[data-screen=battle][data-battle-format=singles] .command-area .move-info strong{grid-column:1;grid-row:1;min-width:0;font-size:18px;line-height:.95;white-space:normal;overflow-wrap:anywhere}
 body.game-mode[data-screen=battle][data-battle-format=singles] .command-area .move-info>small{grid-column:1/-1;grid-row:2;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:2px 4px;margin:0;font-size:9px;line-height:1.1}
 body.game-mode[data-screen=battle][data-battle-format=singles] .command-area .move-info>small>span{font-size:9px;line-height:1.1;letter-spacing:0}
 body.game-mode[data-screen=battle][data-battle-format=singles] .command-area .move-category{display:none}
 body.game-mode[data-screen=battle][data-battle-format=singles] .command-area .move-info>small>b{font-size:10px;line-height:1.1}
 body.game-mode[data-screen=battle][data-battle-format=singles] .command-area .move-hint{grid-column:1/-1;grid-row:3;display:block;font-size:10px;line-height:1.05;margin:0}
 body.game-mode[data-screen=battle][data-battle-format=singles] .command-area .move-pp{grid-column:2;grid-row:1;display:flex;align-items:baseline;justify-content:flex-end;flex-wrap:nowrap;gap:2px;font-size:17px;line-height:1;flex-basis:auto;white-space:nowrap}
 body.game-mode[data-screen=battle][data-battle-format=singles] .command-area .move-pp small{display:inline;font-size:9px;line-height:1.1;margin:0}
}
@media (pointer:coarse) and (max-width:700px) and (min-height:501px){
 body.game-mode[data-screen=battle][data-battle-format=singles] .command-area{grid-template-rows:minmax(0,1fr) 48px}
}
@media (pointer:coarse) and (max-width:700px) and (min-height:501px) and (max-height:700px){
 body.game-mode[data-screen=battle][data-battle-format=singles] .command-area{grid-template-rows:minmax(0,1fr) 44px;gap:6px;padding:6px 9px}
}
@media (pointer:coarse) and (min-width:701px) and (max-height:500px){
 body.game-mode[data-screen=battle][data-battle-format=singles]{--arena-side-inset:244px}
 body.game-mode[data-screen=battle][data-battle-format=singles] .command-area{height:160px;max-height:160px}
 body.game-mode[data-screen=battle][data-battle-format=singles] .command-area .move-button{padding:3px 4px}
 body.game-mode[data-screen=battle][data-battle-format=singles] .command-area .move-info strong{font-size:17px}
 body.game-mode[data-screen=battle][data-battle-format=singles] .battle-bottom{bottom:calc(160px + var(--game-dock-bottom) + 2px)}
}
@media (pointer:coarse) and (max-width:360px) and (min-height:501px) and (max-height:700px){
 body.game-mode[data-screen=battle][data-battle-format=singles] .command-area .move-hint{letter-spacing:-.2px;word-spacing:-.8px}
}
@media (pointer:coarse) and (max-width:700px) and (min-height:501px) and (max-height:550px){
 body.game-mode[data-screen=battle][data-battle-format=singles] .command-area .move-button{gap:1px 3px;padding:1px 4px}
 body.game-mode[data-screen=battle][data-battle-format=singles] .command-area .move-info strong{grid-column:1/-1;grid-row:1;font-size:16px;line-height:.9;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 body.game-mode[data-screen=battle][data-battle-format=singles] .command-area .move-info>small{grid-column:1;grid-row:2;gap:1px 3px}
 body.game-mode[data-screen=battle][data-battle-format=singles] .command-area .move-pp{grid-column:2;grid-row:2;font-size:15px}
}
