/* A dedicated party-selection screen. The workbench opens after a selection. */
body.game-mode .roster-console:not(.storage-console){--party-edge:#7de1d0;--party-ink:#102633;background:#10232d}
body.game-mode .game-window:has(.roster-console:not(.storage-console):not(.roster-console--detail)) .game-window__heading{display:none}
body.game-mode .roster-console:not(.storage-console) .roster-console__body{display:flex;flex:1;min-height:0;grid-template-columns:none}
body.game-mode .roster-console:not(.storage-console):not(.roster-console--detail) .team-workbench{display:none}
body.game-mode .roster-console:not(.storage-console):not(.roster-console--detail) .roster-master{display:flex;flex-direction:column;flex:1;width:100%;max-width:1220px;margin:0 auto;border:0;padding:18px 26px;overflow:auto;background-color:#10232d;background-image:linear-gradient(#73c9c914 1px,transparent 1px),linear-gradient(90deg,#73c9c914 1px,transparent 1px);background-size:28px 28px;scrollbar-color:#80cebf #112b36}
body.game-mode .roster-console:not(.storage-console) .roster-section-heading{flex:none;margin-bottom:14px}
body.game-mode .roster-console:not(.storage-console) .roster-section-heading h2{font:600 30px/1.05 "Pixelify",monospace;color:#eaf7e2;letter-spacing:1px}
body.game-mode .roster-console:not(.storage-console) .roster-section-heading>span{font:500 14px/1.3 var(--body);color:#bfdacf}
body.game-mode .roster-console:not(.storage-console) .roster-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 20px;align-content:start;flex:none}
body.game-mode .roster-console:not(.storage-console) .roster-row{--slot-edge:#68d7d1;position:relative;display:flex;min-height:152px;padding:16px 20px 16px 13px;gap:12px;border:4px solid var(--slot-edge);border-radius:0;clip-path:polygon(0 14px,7px 14px,7px 7px,14px 7px,14px 0,calc(100% - 14px) 0,calc(100% - 14px) 7px,calc(100% - 7px) 7px,calc(100% - 7px) 14px,100% 14px,100% calc(100% - 14px),calc(100% - 7px) calc(100% - 14px),calc(100% - 7px) calc(100% - 7px),calc(100% - 14px) calc(100% - 7px),calc(100% - 14px) 100%,14px 100%,14px calc(100% - 7px),7px calc(100% - 7px),7px calc(100% - 14px),0 calc(100% - 14px));background:linear-gradient(135deg,#3586a25c 0 25%,transparent 25% 65%,#244b7059 65%),linear-gradient(#224c70,#16334b);box-shadow:inset 0 0 0 3px #112e45,inset 0 7px #9dece542,inset 0 -5px #081c30;color:#edf5e7;isolation:isolate}
body.game-mode .roster-console:not(.storage-console) .roster-row.selected{--slot-edge:#ffda8b;background:linear-gradient(135deg,#5096a86b 0 25%,transparent 25% 65%,#40718659 65%),linear-gradient(#28617c,#1b4158);box-shadow:inset 0 0 0 3px #493a2c,inset 0 7px #fff2b95c,inset 0 -5px #10283b}
body.game-mode .roster-console:not(.storage-console) .roster-row.fainted{--slot-edge:#d888a0;background:linear-gradient(135deg,#98486c42 0 25%,transparent 25% 65%,#6839516b 65%),linear-gradient(#633048,#402b40)}
body.game-mode .roster-console:not(.storage-console) .roster-row.fainted.selected{--slot-edge:#ffda8b}
body.game-mode .roster-console:not(.storage-console) .roster-row:hover{--slot-edge:#ddfff1;filter:brightness(1.08)}
body.game-mode .roster-console:not(.storage-console) .roster-row:focus-visible{outline:3px solid #fff1bc;outline-offset:-9px;--slot-edge:#ffdf97}
body.game-mode .roster-console:not(.storage-console) .roster-row>.sprite{width:90px;height:96px;flex:0 0 90px;background:radial-gradient(ellipse at 50% 74%,#90d7cc26 0 38%,transparent 40%);filter:drop-shadow(0 5px #061b3099)}
body.game-mode .roster-console:not(.storage-console) .roster-row__slot{align-self:flex-start;min-width:22px;font:600 21px/1 "Pixelify",monospace;color:#9fe6dd;padding-top:5px}
body.game-mode .roster-console:not(.storage-console) .roster-row.selected .roster-row__slot:after{content:'▶';font-size:19px;line-height:1;margin-top:17px;color:#ffdf91}
body.game-mode .roster-console:not(.storage-console) .roster-row__name{margin-bottom:6px;gap:9px}
body.game-mode .roster-console:not(.storage-console) .roster-row strong{font:600 34px/1 "Pixelify",monospace;color:#fff8dc;letter-spacing:.25px;text-shadow:2px 3px #0b243b}
body.game-mode .roster-console:not(.storage-console) .roster-row__species{font-size:0;line-height:1;margin-bottom:9px}
body.game-mode .roster-console:not(.storage-console) .roster-row__species>span{font:700 14px/1.2 var(--body);color:#deeee5}
body.game-mode .roster-console:not(.storage-console) .roster-row__types{display:none}
body.game-mode .roster-console:not(.storage-console) .roster-row__health{gap:9px;flex-wrap:wrap}
body.game-mode .roster-console:not(.storage-console) .roster-row__health:before{content:'HP';font:600 19px/1 "Pixelify",monospace;color:#e4f6d5}
body.game-mode .roster-console:not(.storage-console) .roster-row__health .health-track{height:13px;min-width:40px;flex:1;border:3px solid #e4eee1;background:#0a1d2b;box-shadow:0 3px #071624;border-radius:0}
body.game-mode .roster-console:not(.storage-console) .roster-row__health>span:last-child{font:700 14px/1.3 var(--body);width:100%;text-align:right;color:#f4f8ea}
body.game-mode .roster-console:not(.storage-console) .roster-row__location{font:500 14px/1.3 var(--body);color:#c7e4d9;margin-top:6px}
body.game-mode .roster-console:not(.storage-console) .roster-row.fainted .roster-row__location{font-weight:700;color:#ffe2df}
body.game-mode .roster-console:not(.storage-console) :is(.roster-lead,.roster-shiny){font-size:11px;padding:3px 5px}
body.game-mode .roster-console:not(.storage-console) .roster-row__arrow{display:none}
body.game-mode .roster-console:not(.storage-console) .roster-row--empty{min-height:122px;border-color:#497e90;background:linear-gradient(135deg,#24465c70 0 25%,transparent 25%),#142e40;box-shadow:inset 0 0 0 3px #102535,inset 0 5px #5b949129;opacity:1}
body.game-mode .roster-console:not(.storage-console) .roster-row--empty .roster-open-slot{width:90px;flex-basis:90px;font:600 46px/1 "Pixelify",monospace;color:#6fadaf}
body.game-mode .roster-console:not(.storage-console) .roster-row--empty strong{font-size:27px;color:#b9d8d2;text-shadow:1px 2px #122c3a}
body.game-mode .roster-console:not(.storage-console) .roster-row--empty small{font:400 14px/1.4 var(--body);color:#adcbc9}
body.game-mode .roster-console:not(.storage-console) .roster-storage-link{flex:none;min-height:56px;margin-top:12px;padding:9px 5px;border-top:2px solid #426979;color:#ffe1a1}
body.game-mode .roster-console:not(.storage-console) .roster-storage-link strong{font:600 22px/1.15 "Pixelify",monospace}
body.game-mode .roster-console:not(.storage-console) .roster-storage-link small{font:400 14px/1.4 var(--body);margin-top:3px;color:#bddbd3}
body.game-mode .roster-console:not(.storage-console) .roster-console__summary>p{display:none}
body.game-mode .roster-console:not(.storage-console) .roster-console__summary{position:absolute;right:20px;top:4px;min-height:44px}
body.game-mode .roster-console:not(.storage-console) .roster-console__summary .roster-rest{font-size:14px}
body.game-mode .roster-console:not(.storage-console) .roster-context{margin-right:120px;font-size:13px}
body.game-mode .roster-console:not(.storage-console) .roster-notice--quiet{font-size:13px;line-height:1.4;padding:4px 10px;margin-top:5px}
body.game-mode .roster-console:not(.storage-console) .rpg-party-prompt{flex:none;display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:79px;padding:12px 22px;background:#322d41;border-top:5px double #73cdb6;box-shadow:inset 0 3px #152b36;color:#fff5dc}
body.game-mode .rpg-party-prompt p{font:600 31px/1.05 "Pixelify",monospace;text-shadow:1px 2px #151d2e}
body.game-mode .rpg-party-prompt p>span{display:block;font:400 14px/1.35 var(--body);color:#d5e4d9;margin-top:5px;text-shadow:none}
body.game-mode .rpg-party-prompt .text-button{flex:none;border:3px double #82c6b8;background:#223f50;color:#fff2c4;border-radius:0;padding:9px 16px;font:600 21px/1.1 "Pixelify",monospace;min-height:48px}
/* Summary is a separate screen, with one explicit way back to the party board. */
body.game-mode .roster-console:not(.storage-console).roster-console--detail .roster-master{display:none}
body.game-mode .roster-console:not(.storage-console).roster-console--detail .team-workbench{display:block;flex:1;width:100%;max-width:1100px;margin:0 auto;padding:0 25px 30px;border:0;background:#192d3c}
body.game-mode .roster-console:not(.storage-console).roster-console--detail .roster-console__summary{display:none}
body.game-mode .roster-console:not(.storage-console).roster-console--detail .roster-detail__backbar{background:#192d3cf7;min-height:57px}
body.game-mode .roster-console:not(.storage-console).roster-console--detail .roster-back{font:600 23px/1.1 "Pixelify",monospace}
body.game-mode .roster-console:not(.storage-console).roster-console--detail .roster-detail__backbar>span{font-size:14px}
body.game-mode .roster-console:not(.storage-console).roster-console--detail .roster-identity{border-radius:0;background:linear-gradient(135deg,#35748b3d 0 30%,transparent 30%),#24384a}
body.game-mode .roster-console:not(.storage-console).roster-console--detail .roster-identity>.sprite{width:120px;height:120px;flex-basis:120px}
body.game-mode .roster-console:not(.storage-console).roster-console--detail .roster-identity__name h2{font-size:40px}
body.game-mode .roster-console:not(.storage-console).roster-console--detail .roster-vitals b{font-size:14px}
body.game-mode .roster-console:not(.storage-console).roster-console--detail .roster-detail__tools{grid-template-columns:repeat(4,minmax(0,1fr))}
body.game-mode .roster-console:not(.storage-console).roster-console--detail .roster-detail__tools .button{font-size:14px}
@media(max-width:1000px){
 body.game-mode .roster-console:not(.storage-console):not(.roster-console--detail) .roster-master{padding:14px 16px}
 body.game-mode .roster-console:not(.storage-console) .roster-list{gap:12px}
 body.game-mode .roster-console:not(.storage-console) .roster-row{min-height:144px;padding:12px 11px;gap:8px}
 body.game-mode .roster-console:not(.storage-console) .roster-row>.sprite{width:65px;height:80px;flex-basis:65px}
 body.game-mode .roster-console:not(.storage-console) .roster-row strong{font-size:28px}
 body.game-mode .roster-console:not(.storage-console) .roster-row__slot{font-size:18px;min-width:17px}
 body.game-mode .roster-console:not(.storage-console) .roster-row--empty .roster-open-slot{width:65px;flex-basis:65px}
 body.game-mode .roster-console:not(.storage-console) .roster-row--empty strong{font-size:25px}
 body.game-mode .rpg-party-prompt p{font-size:28px}
}
@media(max-width:700px){
 body.game-mode .roster-console:not(.storage-console):not(.roster-console--detail) .roster-master{padding:11px 10px}
 body.game-mode .roster-console:not(.storage-console) .roster-list{grid-template-columns:1fr;gap:10px}
 body.game-mode .roster-console:not(.storage-console) .roster-section-heading{margin-bottom:7px}
 body.game-mode .roster-console:not(.storage-console) .roster-section-heading h2{font-size:25px}
 body.game-mode .roster-console:not(.storage-console) .roster-section-heading>span{font-size:12px}
 body.game-mode .roster-console:not(.storage-console) .roster-console__header{padding:5px 11px 5px}
 body.game-mode .roster-console:not(.storage-console) .roster-tabs{gap:10px;justify-content:space-between}
 body.game-mode .roster-console:not(.storage-console) .roster-tabs button{font-size:21px;white-space:nowrap;gap:5px;min-height:48px;padding:7px 0}
 body.game-mode .roster-console:not(.storage-console) .roster-tabs button span{font-size:10px;padding:3px}
 body.game-mode .roster-console:not(.storage-console) .roster-console__summary{position:static;display:flex;justify-content:flex-end;min-height:0}
 body.game-mode .roster-console:not(.storage-console) .roster-console__summary .roster-rest{min-height:44px;font-size:14px}
 body.game-mode .roster-console:not(.storage-console) .roster-context{margin-right:0;font-size:12px}
 body.game-mode .roster-console:not(.storage-console) .roster-row{min-height:133px;padding:12px 10px;gap:8px}
 body.game-mode .roster-console:not(.storage-console) .roster-row>.sprite{width:68px;height:83px;flex-basis:68px}
 body.game-mode .roster-console:not(.storage-console) .roster-row strong{font-size:29px}
 body.game-mode .roster-console:not(.storage-console) .roster-row__name{margin-bottom:4px}
 body.game-mode .roster-console:not(.storage-console) .roster-row__species{margin-bottom:6px}
 body.game-mode .roster-console:not(.storage-console) .roster-row__location{margin-top:3px}
 body.game-mode .roster-console:not(.storage-console) .roster-lead{position:absolute;left:39px;bottom:11px;font-size:10px}
 body.game-mode .roster-console:not(.storage-console) .roster-row--empty{min-height:97px}
 body.game-mode .roster-console:not(.storage-console) .roster-row--empty .roster-open-slot{width:68px;flex-basis:68px}
 body.game-mode .roster-console:not(.storage-console) .roster-row--empty strong{font-size:24px}
 body.game-mode .roster-console:not(.storage-console) .roster-notice--quiet{display:none}
 body.game-mode .roster-console:not(.storage-console) .rpg-party-prompt{min-height:69px;padding:9px 12px;gap:9px}
 body.game-mode .rpg-party-prompt p{font-size:25px}
 body.game-mode .rpg-party-prompt p>span{display:none}
 body.game-mode .rpg-party-prompt .text-button{font-size:18px;padding:8px 9px}
 body.game-mode .roster-console:not(.storage-console).roster-console--detail .team-workbench{padding:0 12px 25px}
 body.game-mode .roster-console:not(.storage-console).roster-console--detail .roster-detail__backbar>span{font-size:12px}
 body.game-mode .roster-console:not(.storage-console).roster-console--detail .roster-back{font-size:22px}
 body.game-mode .roster-console:not(.storage-console).roster-console--detail .roster-identity>.sprite{width:73px;height:90px;flex-basis:73px}
 body.game-mode .roster-console:not(.storage-console).roster-console--detail .roster-identity__name h2{font-size:31px}
 body.game-mode .roster-console:not(.storage-console).roster-console--detail .roster-detail__tools{grid-template-columns:repeat(2,minmax(0,1fr))}
 body.game-mode .roster-console:not(.storage-console).roster-console--detail .roster-detail__tools .button{font-size:14px}
}
@media(max-width:360px){
 body.game-mode .roster-console:not(.storage-console) .roster-row{padding:11px 8px;gap:6px}
 body.game-mode .roster-console:not(.storage-console) .roster-row>.sprite{width:52px;height:76px;flex-basis:52px}
 body.game-mode .roster-console:not(.storage-console) .roster-row strong{font-size:26px}
 body.game-mode .roster-console:not(.storage-console) .roster-row__slot{font-size:16px;min-width:15px}
 body.game-mode .roster-console:not(.storage-console) .roster-row--empty .roster-open-slot{width:52px;flex-basis:52px}
 body.game-mode .roster-console:not(.storage-console) .roster-row--empty strong{font-size:22px}
 body.game-mode .roster-console:not(.storage-console) .rpg-party-prompt{padding:9px;gap:7px}
 body.game-mode .rpg-party-prompt p{font-size:23px}
 body.game-mode .rpg-party-prompt p>span{font-size:12px}
 body.game-mode .rpg-party-prompt .text-button{font-size:18px;padding:8px}
}
@media(min-width:701px) and (max-height:550px){
 body.game-mode .roster-console:not(.storage-console) .roster-context{margin-right:0}
 body.game-mode .roster-console:not(.storage-console) .roster-console__summary{display:none}
 body.game-mode .roster-console:not(.storage-console) .roster-list{gap:10px 14px}
 body.game-mode .roster-console:not(.storage-console) .roster-row{min-height:128px;padding-top:10px;padding-bottom:10px}
 body.game-mode .roster-console:not(.storage-console) .roster-row>.sprite{width:64px;height:75px;flex-basis:64px}
 body.game-mode .roster-console:not(.storage-console) .roster-row--empty{min-height:93px}
 body.game-mode .roster-console:not(.storage-console) .roster-row--empty .roster-open-slot{width:64px;flex-basis:64px}
 body.game-mode .roster-console:not(.storage-console) .rpg-party-prompt{min-height:57px;padding:7px 15px}
 body.game-mode .rpg-party-prompt p{font-size:26px}
 body.game-mode .rpg-party-prompt p>span{display:none}
 body.game-mode .rpg-party-prompt .text-button{min-height:44px}
}
/* Compact selectors keep the party in view: two lines of facts beside a sprite. */
@media(max-width:700px),(min-width:701px) and (max-height:550px){
 body.game-mode .roster-console:not(.storage-console) .roster-list{gap:8px 12px}
 body.game-mode .roster-console:not(.storage-console) .roster-row{min-height:76px;padding:8px 9px;gap:7px;border-width:3px}
 body.game-mode .roster-console:not(.storage-console) .roster-row>.sprite{width:44px;height:44px;flex-basis:44px}
 body.game-mode .roster-console:not(.storage-console) .roster-row__slot{font-size:14px;min-width:15px;padding-top:2px}
 body.game-mode .roster-console:not(.storage-console) .roster-row.selected .roster-row__slot:after{font-size:13px;margin-top:13px}
 body.game-mode .roster-console:not(.storage-console) .roster-row__main{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 6px;align-items:center}
 body.game-mode .roster-console:not(.storage-console) .roster-row__name{grid-column:1;grid-row:1;margin:0;gap:0}
 body.game-mode .roster-console:not(.storage-console) .roster-row strong{font-size:25px;line-height:1.05}
 body.game-mode .roster-console:not(.storage-console) .roster-row__species{grid-column:2;grid-row:1;line-height:1;margin:0}
 body.game-mode .roster-console:not(.storage-console) .roster-row__species>span{font-size:14px;line-height:1.2}
 body.game-mode .roster-console:not(.storage-console) .roster-row__health{grid-column:1/-1;grid-row:2;display:flex;flex-wrap:nowrap;gap:5px;min-width:0}
 body.game-mode .roster-console:not(.storage-console) .roster-row__health:before{font-size:17px;flex:none}
 body.game-mode .roster-console:not(.storage-console) .roster-row__health .health-track{height:10px;border-width:2px;min-width:22px;flex:1}
 body.game-mode .roster-console:not(.storage-console) .roster-row__health>span:last-child{font-size:14px;line-height:1.2;width:auto;flex:none}
 body.game-mode .roster-console:not(.storage-console) .roster-row__location{grid-column:1/-1;grid-row:3;font-size:14px;line-height:1.2;margin:0}
 body.game-mode .roster-console:not(.storage-console) .roster-row[data-condition="ready"] .roster-row__location{display:none}
 body.game-mode .roster-console:not(.storage-console) .roster-lead{position:absolute;left:38px;bottom:4px;font-size:9px;line-height:1.1;padding:1px 3px}
 body.game-mode .roster-console:not(.storage-console) .roster-shiny{position:absolute;left:35px;top:4px;font-size:9px;line-height:1.1;padding:1px 3px}
 body.game-mode .roster-console:not(.storage-console) .roster-row--empty{min-height:70px}
 body.game-mode .roster-console:not(.storage-console) .roster-row--empty .roster-open-slot{width:44px;flex-basis:44px;font-size:30px}
 body.game-mode .roster-console:not(.storage-console) .roster-row--empty strong{font-size:23px;line-height:1.1}
 body.game-mode .roster-console:not(.storage-console) .roster-row--empty small{font-size:14px;line-height:1.25;margin-top:3px}
}
@media(max-width:360px){
 body.game-mode .roster-console:not(.storage-console) .roster-row{gap:5px;padding:8px 7px}
 body.game-mode .roster-console:not(.storage-console) .roster-row__main{gap:3px}
 body.game-mode .roster-console:not(.storage-console) .roster-row strong{font-size:22px}
 body.game-mode .roster-console:not(.storage-console) .roster-row__health:before{display:none}
 body.game-mode .roster-console:not(.storage-console) .roster-row--empty strong{font-size:21px}
 body.game-mode .roster-console:not(.storage-console) .roster-row--empty small{font-size:13px}
}
@media(min-width:701px) and (max-height:550px){
 body.game-mode .roster-console:not(.storage-console):not(.roster-console--detail) .roster-master{padding:2px 12px}
 body.game-mode .roster-console:not(.storage-console):not(.roster-console--detail) .roster-master>.roster-section-heading{display:none}
 body.game-mode .roster-console:not(.storage-console) .roster-row{min-height:60px;padding:5px 8px;gap:7px}
 body.game-mode .roster-console:not(.storage-console) .roster-row__main{gap:2px 6px}
 body.game-mode .roster-console:not(.storage-console) .roster-row strong{font-size:24px}
 body.game-mode .roster-console:not(.storage-console) .roster-row--empty{min-height:60px}
 body.game-mode .roster-console:not(.storage-console) .roster-row--empty strong{font-size:23px}
 body.game-mode .roster-console:not(.storage-console) .rpg-party-prompt{min-height:52px;padding:4px 15px}
 body.game-mode .roster-console:not(.storage-console) .roster-list{row-gap:4px}
 body.game-mode .roster-console:not(.storage-console) .roster-row--empty{min-height:44px}
 body.game-mode .roster-console:not(.storage-console) .roster-row--empty small{display:none}
 body.game-mode .roster-console:not(.storage-console) .roster-row--empty .roster-open-slot{font-size:24px}
 body.game-mode .roster-console:not(.storage-console) .rpg-party-prompt .text-button{padding:5px 12px;min-height:44px}
}

/* Compact Party keeps the complete selection board and native return in view. */
body.game-mode .roster-console:not(.storage-console):not(.roster-console--detail) .roster-console__summary{display:none}
body.game-mode .roster-console:not(.storage-console) .roster-rest--board{font:600 16px/1.2 var(--body);min-height:44px}
@media(min-width:701px) and (min-height:551px){
 body.game-mode .roster-console:not(.storage-console) .rpg-party-prompt p{flex:1}
}
@media(max-width:700px),(min-width:701px) and (max-height:550px){
 body.game-mode .game-overlay .game-window:has(.roster-console:not(.storage-console)){inset:8px;width:auto;max-width:none;max-height:none}
 body.game-mode .game-window:has(.roster-console:not(.storage-console)) .game-window__heading{display:none}
 body.game-mode .roster-console:not(.storage-console).roster-console--detail .roster-console__header{display:none}
 body.game-mode .roster-console:not(.storage-console):not(.roster-console--detail) .roster-master{padding:4px 9px}
 body.game-mode .roster-console:not(.storage-console) .roster-console__header{padding-top:0;padding-bottom:0}
 body.game-mode .roster-console:not(.storage-console) .roster-tabs button{min-height:48px}
 body.game-mode .roster-console:not(.storage-console) .roster-section-heading{margin-bottom:2px}
 body.game-mode .roster-console:not(.storage-console) .roster-section-heading h2{font-size:23px}
 body.game-mode .roster-console:not(.storage-console) .roster-section-heading>span{font-size:14px}
 body.game-mode .roster-console:not(.storage-console) .roster-list{gap:3px 12px}
 body.game-mode .roster-console:not(.storage-console) .roster-row{min-height:56px;padding:4px 7px;gap:6px}
 body.game-mode .roster-console:not(.storage-console) .roster-row>.sprite{width:40px;height:40px;flex-basis:40px}
 body.game-mode .roster-console:not(.storage-console) .roster-row__main{gap:2px 5px}
 body.game-mode .roster-console:not(.storage-console) .roster-row strong{font-size:23px;line-height:1}
 body.game-mode .roster-console:not(.storage-console) .roster-row__health:before{display:none}
 body.game-mode .roster-console:not(.storage-console) .roster-row--empty{min-height:44px;padding:4px 7px;gap:6px;clip-path:none;border-width:2px}
 body.game-mode .roster-console:not(.storage-console) .roster-row--empty .roster-open-slot{font-size:24px;width:25px;flex-basis:25px}
 body.game-mode .roster-console:not(.storage-console) .roster-row--empty strong{font-size:21px}
 body.game-mode .roster-console:not(.storage-console) .roster-row--empty small{display:none}
 body.game-mode .roster-console:not(.storage-console) .rpg-party-prompt{min-height:56px;padding:5px 9px;gap:8px;justify-content:space-between}
 body.game-mode .roster-console:not(.storage-console) .rpg-party-prompt p{display:none}
 body.game-mode .roster-console:not(.storage-console) .rpg-party-prompt .text-button{font:600 14px/1.2 var(--body);min-height:44px;padding:7px 9px;flex:1;min-width:0;white-space:normal;overflow-wrap:anywhere}
 body.game-mode .roster-console:not(.storage-console) .roster-storage-link{min-height:52px;margin-top:8px;padding:6px 5px}
}
@media(max-width:360px){
 body.game-mode .roster-console:not(.storage-console) .roster-row strong{font-size:22px}
 body.game-mode .roster-console:not(.storage-console) .roster-row--empty strong{font-size:21px}
}
@media(min-width:480px) and (max-width:700px) and (max-height:500px){
 body.game-mode .roster-console:not(.storage-console):not(.roster-console--detail) .roster-master{padding:4px 8px}
 body.game-mode .roster-console:not(.storage-console) .roster-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
 body.game-mode .roster-console:not(.storage-console) .roster-section-heading{display:none}
 body.game-mode .roster-console:not(.storage-console) .roster-console__header{padding:0 9px}
 body.game-mode .roster-console:not(.storage-console) .roster-tabs{justify-content:flex-start;gap:16px}
 body.game-mode .roster-console:not(.storage-console) .roster-tabs button{font-size:20px;min-height:44px}
 body.game-mode .roster-console:not(.storage-console) .roster-row{min-height:72px;display:grid;grid-template-columns:28px minmax(0,1fr);gap:3px;padding:4px 5px;clip-path:none;border-width:2px}
 body.game-mode .roster-console:not(.storage-console) .roster-row>.sprite{width:28px;height:32px;grid-column:1;grid-row:1;align-self:start}
 body.game-mode .roster-console:not(.storage-console) .roster-row__slot{display:none}
 body.game-mode .roster-console:not(.storage-console) .roster-row__main{grid-template-columns:minmax(0,1fr);gap:2px}
 body.game-mode .roster-console:not(.storage-console) .roster-row__name{grid-column:1;grid-row:1}
 body.game-mode .roster-console:not(.storage-console) .roster-row strong{font-size:21px;white-space:nowrap;letter-spacing:-.5px}
 body.game-mode .roster-console:not(.storage-console) .roster-row__species{display:block;grid-column:1;grid-row:2;font-size:0}
 body.game-mode .roster-console:not(.storage-console) .roster-row__species>span{font-size:14px}
 body.game-mode .roster-console:not(.storage-console) .roster-row__health{grid-column:1;grid-row:3;gap:3px;flex-wrap:nowrap}
 body.game-mode .roster-console:not(.storage-console) .roster-row__health .health-track{display:block;min-width:20px;flex:1;height:8px;border-width:1px}
 body.game-mode .roster-console:not(.storage-console) .roster-row.fainted .roster-row__health{grid-column:1;grid-row:3}
 body.game-mode .roster-console:not(.storage-console) .roster-row .roster-row__location{grid-column:1;grid-row:4;font-size:14px;white-space:normal}
 body.game-mode .roster-console:not(.storage-console) .roster-row .roster-lead{left:4px;bottom:5px;font-size:10px}
 body.game-mode .roster-console:not(.storage-console) .roster-row--empty{min-height:44px;display:flex;justify-content:center}
 body.game-mode .roster-console:not(.storage-console) .roster-row--empty .roster-open-slot{display:none}
 body.game-mode .roster-console:not(.storage-console) .roster-row--empty strong{font-size:20px;letter-spacing:0}
 body.game-mode .roster-console:not(.storage-console) .roster-storage-link{display:none}
 body.game-mode .roster-console:not(.storage-console) .rpg-party-prompt{min-height:52px;padding:3px 9px}
}
