/* v0.70 visual preview: one shared cream-and-blue game theme. */
@font-face{font-family:Rally;src:url('../assets/fonts/nunito-700.ttf') format('truetype');font-weight:400 800;font-display:swap}
@font-face{font-family:Rally;src:url('../assets/fonts/nunito-900.ttf') format('truetype');font-weight:900;font-display:swap}
:root{--rally-ink:#082349;--rally-cream:#fffbee;--rally-blue:#0877fb;--rally-teal:#00c9b5;--rally-border:#142e48;--rally-line:#bcc6c5;--rally-shadow:inset 0 0 0 2px #fffdf0,0 2px 0 #102b42}
body,button,input,select,summary,dialog{font-family:Rally,Arial,sans-serif!important;color:var(--rally-ink);font-size:14px;font-weight:700;line-height:1.35}
body *:not(canvas):not(svg):not(path):not(.logo){font-family:Rally,Arial,sans-serif!important}
h1,h2,h3,b,strong,.btn,.requirement,.combat-name{font-weight:900!important;letter-spacing:0}
h2{font-size:21px!important;line-height:1.15!important}h3{font-size:15px!important}
.btn,.mode-choice,.header-menu-panel button{border:2px solid var(--rally-border);border-radius:7px;background:linear-gradient(#158dff,#0066e6);color:white;box-shadow:inset 0 0 0 1px #80caff,0 2px 0 #173749;text-shadow:0 1px 0 #003d85;font-size:14px;min-height:38px;padding:7px 10px;line-height:1.25}
.btn:hover,.mode-choice:hover{background:linear-gradient(#37a0ff,#0b75ec)}
.btn.secondary,.small-actions #skipBtn,.mode-choice.battle{background:linear-gradient(#17d9c7,#00aa9c);box-shadow:inset 0 0 0 1px #87f3e5,0 2px 0 #173749;text-shadow:0 1px 0 #00675c;color:#082349}
.btn.secondary:hover{background:#27e1cc}.btn:disabled{opacity:.55}.btn[aria-pressed=true]{outline:2px solid #ffc64b;outline-offset:1px}
input,select{min-width:0;border:1.5px solid #41678a;border-radius:6px;background:#fff;color:#12335b;box-shadow:inset 0 1px 3px #153c5320;font-size:16px!important;padding:8px;line-height:1.2}
input::placeholder{color:#6488ab;font-weight:700}select{min-height:35px}
.app{border-color:#123651;border-radius:8px}
.brand{height:58px;flex:none;border:3px solid #06274c;border-radius:8px;background:linear-gradient(#0769d8,#0051b6);box-shadow:inset 0 0 0 2px #9fddff;padding:7px 10px;gap:8px}
.brand .logo{max-width:47%;flex:0 1 auto}.brand .logo img{height:auto;max-height:42px;width:100%;object-fit:contain}
.header-score{font-size:13px}.single-best-card{border-radius:5px;background:var(--rally-cream);color:var(--rally-ink)}
.header-exit,.header-login{font-size:12px!important;min-height:34px!important;height:34px!important;line-height:1.2}
.brand .account-actions{gap:6px}.header-menu,.menu-toggle{color:white;font:28px/1 Arial,sans-serif!important;border-radius:6px;background:transparent!important;box-shadow:none;border-color:#b7dbef;min-height:34px!important;height:34px!important;width:36px!important}
.header-menu-panel{background:var(--rally-cream);border-radius:8px;border:2px solid var(--rally-border);padding:8px;box-shadow:0 4px 12px #10283f55}.header-menu-panel button{margin:4px 0;font-size:14px}
dialog,.battle-panel,.dialogue-panel,.battle-entry,.combat-card,.battle-roll-box,.route-history,.type-bonus-box,.trainer-label,.last-box,.route-message,.rules-modal-card,.asset-loading-card,.card:not(.mode-screen),.login-about{
 border:3px solid var(--rally-border);border-radius:10px;background:#fffbeeef;box-shadow:var(--rally-shadow);color:var(--rally-ink)
}
dialog{width:min(460px,calc(100vw - 20px));max-height:calc(100dvh - 22px);padding:14px;overflow:auto;scrollbar-width:thin}
dialog::backdrop{background:#0b294540;backdrop-filter:blur(1px)}
.collection-head{margin-bottom:12px;padding:0 0 9px;border-bottom:1px solid #b2bdbf;align-items:center;gap:8px}
.collection-head h2{margin:0;white-space:normal}
.collection-head .btn{font:25px/1 Arial,sans-serif!important;min-height:30px;width:30px;padding:1px;background:transparent!important;box-shadow:none;color:var(--rally-ink);border:0;text-shadow:none}
.collection-panel-body{padding:0;scrollbar-gutter:auto}
#loginScreen{padding:30px 20px 40px;align-items:center}
.login-content{width:min(380px,100%);gap:15px;margin:auto;transform:translateY(-25px)}
.login-logo{width:100%;max-height:none;margin:0 0 10px;filter:none}
.login-panel{width:100%;height:auto;display:block;padding:20px;border-radius:10px}
.login-panel #accountForm{gap:12px;grid-template-columns:repeat(2,minmax(0,1fr))}
.login-panel #accountForm label{font-size:16px;line-height:1.4;font-weight:900}
.login-panel #accountForm input{height:38px;margin-top:5px}
.login-panel #accountForm .btn{font-size:15px!important;min-height:36px}
.login-panel #accountForgot{font-size:11px!important;margin:0;background:transparent;border:none;box-shadow:none;color:#065dde;line-height:1.2;text-decoration:underline}
.login-panel #accountSocialSignIn{gap:8px;border-top:1px solid #bac3c6;padding-top:11px;margin-top:13px}
.login-panel #accountSocialSignIn .btn{font-size:13px!important;gap:5px;min-height:36px}
#googleLogin{background:#fff;color:#102947;text-shadow:none;box-shadow:inset 0 0 0 1px #bfd8ee,0 2px 0 #173749}
#facebookLogin{background:#126be0;color:white;text-shadow:none}.social-logo{width:20px;height:20px}
.login-about{width:100%;padding:8px 14px;font-size:13px;border-radius:8px}
.login-about summary{font-size:14px;font-weight:900;cursor:pointer;list-style-position:inside}
.login-about p{margin:9px 0 0;line-height:1.4;font-size:13px;font-weight:700}
.site-footer{font-size:10px}.site-footer .build-marker,.site-footer nav{border-radius:4px}
.mode-choice-title{font-size:23px!important}.mode-choice{min-height:65px!important;border-radius:9px!important}
.battle-panel h2{margin:7px 0 12px}.battle-copy,.battle-panel p{font-size:14px!important;line-height:1.4}
.battle-choice{font-size:16px!important;min-height:45px}
.battle-teams fieldset,.lobby-card,.battle-person,.multi-player,.lobby-code-box{border:1.5px solid #9bafbf;border-radius:7px;background:#fffdf4}
.battle-person b,.multi-player b{font-size:15px!important}.battle-person small,.multi-player small{font-size:12px!important}
.lobby-achievement{font-size:12px!important}.lobby-title-text{font-size:12px}.lobby-settings label{font-size:13px}
/* Profile: equal selected/choice sprite boxes, compact stats and clear identity. */
#profileDialog .profile-identity{padding:4px 0 10px;border:0;border-bottom:1px solid #b7c1c5;background:transparent;gap:12px;align-items:center}
#profileDialog .profile-identity b{font-size:21px!important;line-height:1.2;display:inline}
#profileDialog p{font-size:12px!important;line-height:1.35!important;margin:5px 0}
#profileDialog #profileEmail{font-size:11px!important;overflow-wrap:anywhere;color:#587082}
#profileChangeName{background:transparent!important;color:#123b70;border:0;box-shadow:none;font-size:22px!important;text-shadow:none}
#profilePicture{width:var(--profile-choice-size,68px);height:var(--profile-choice-size,68px);background:#cef4df;border:2px solid #00a59d;border-radius:7px;padding:4px;flex-shrink:0;box-sizing:content-box}
#profilePicture canvas{width:100%;height:100%}
#profileDialog .profile-level{background:transparent;border:0;padding:10px 0;margin:0;border-bottom:1px solid #b7c1c5}
#profileDialog .profile-level-heading b{font-size:16px!important}.profile-level-heading span{font-size:13px!important}
.profile-xp-track,.unlock-progress,.hp-track{border:1px solid #32618b;border-radius:8px;height:13px;background:#dce3ed;box-shadow:inset 0 1px 2px #63829b44;overflow:hidden}
#profileXPFill,#profileRankFill{border:0;border-radius:7px;background:linear-gradient(#27b7ff,#0085f8);height:100%}
#profileDialog .profile-rank{background:transparent;border:0;padding:10px 0;margin:0;gap:14px;border-bottom:1px solid #b7c1c5}
#profileDialog .profile-rank>img{width:65px;height:65px;image-rendering:pixelated}
#profileRankName{font-size:18px!important}#profileRankPoints{font-size:12px!important}
.profile-match-record{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:9px 0!important}
.profile-match-record>span{padding:7px;border:1px solid #9bafbf;border-radius:7px;min-width:0;background:#fffdf5;font-size:12px!important}
.profile-match-record strong{display:block;font-size:13px}.profile-match-record small{display:block;font-size:10px;color:#536c84}
.profile-title-label{font-size:13px!important;display:block;margin:6px 0}.profile-title-label select{width:100%;margin-top:4px}
#profileTitleHint{display:none}#profileDialog h3{margin:9px 0 6px;font-size:15px!important}
.profile-filters{gap:8px;margin:7px 0;display:grid;grid-template-columns:minmax(0,1fr) 100px}
#profileAvatarGrid{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;max-height:245px}
.profile-avatar{aspect-ratio:1;border:1px solid #899eae;border-radius:7px;background:#fffdf4;padding:5px;grid-template-rows:minmax(0,1fr);box-shadow:none}
.profile-avatar[aria-pressed=true]{background:#cbf6df;border:2px solid #00a98c;outline:0}.profile-avatar canvas{width:100%;height:100%;min-width:0;min-height:0;image-rendering:pixelated}
/* Pokédex: names, sprites and counters occupy separate rows. */
#collectionDialog{width:min(460px,calc(100vw - 20px))}
#collectionDialog .collection-tools{gap:7px;margin:8px 0;font-size:13px}
#collectionDialog .collection-tools .btn{font-size:14px;flex:1}
#shinyDex{background:#ffec99;color:#132e4c;text-shadow:none;box-shadow:inset 0 0 0 1px #fff6bc,0 2px 0 #173749}
#collectionStats{font-size:12px!important;line-height:1.4;font-weight:900}
#collectionGrid{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
#collectionGrid .collection-card{aspect-ratio:auto;width:100%;min-width:0;border:1px solid #899eae;border-radius:7px;background:#fffdf4;padding:6px;display:grid;grid-template-rows:12px 17px minmax(0,1fr) 12px;gap:3px;min-height:120px;opacity:1!important}
.dex-number{font-size:10px!important;font-weight:900;text-align:center;color:#193854}
.dex-name{font-size:11px;font-weight:900;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#collectionGrid .collection-card .dex-sprite{width:100%;height:60px;max-height:60px;aspect-ratio:auto;object-fit:contain;align-self:center;justify-self:center;min-height:0;image-rendering:pixelated}
.unlock-progress{position:relative;height:12px}.unlock-progress>span{border:0;height:100%;border-radius:6px;display:block}
.dex-progress-count{position:absolute;inset:0;text-align:center;font-size:9px;font-weight:900;line-height:10px;color:#0c315a;pointer-events:none}
/* Achievements retain the requested red/orange/red/complete-blue ranges. */
#achievementsCount{font-size:14px;text-align:right;margin:0 0 10px}
.achievement-card{display:grid;grid-template-columns:50px minmax(0,1fr);gap:12px;align-items:center;padding:11px 10px;border:1px solid #a2adb5;border-radius:9px;margin-bottom:10px;background:#fffdf3}
.achievement-icon{width:50px;height:50px;border:3px double #172e47;border-radius:50%;background:radial-gradient(circle at 35% 30%,#fdfcf2,#b5c9d2);padding:5px;display:grid;place-items:center;box-shadow:inset 0 0 0 2px #eef4ee,0 1px 0 #152d41}
.achievement-icon canvas,.achievement-icon svg{width:100%;height:100%;image-rendering:pixelated}
.achievement-heading{display:flex;justify-content:space-between;gap:7px;align-items:center;font-size:14px!important;line-height:1.3;margin-bottom:8px}
.achievement-heading b{font-size:15px!important}.achievement-heading span{font-size:12px;white-space:nowrap}
.achievement-progress{height:13px;margin:0}
/* Leaderboards: rounded rows, medal positions and a single dropdown. */
.leaderboard-options{font-size:13px;display:block}.leaderboard-options select{width:100%;margin:4px 0 6px}
#leaderboardStatus,#leaderboardClock{font-size:11px!important;color:#526b83;margin:4px 0}
#leaderboardResults table{border-collapse:separate;border-spacing:0 5px;width:100%;font-size:14px;table-layout:fixed}
#leaderboardResults caption{font-size:12px;text-align:left;margin:5px 0;font-weight:900}
#leaderboardResults th,#leaderboardResults td{padding:7px 5px;background:none;border:0;text-align:left;vertical-align:middle;overflow-wrap:anywhere}
#leaderboardResults th{font-weight:900}#leaderboardResults th:first-child{width:42px}#leaderboardResults th:last-child{width:100px}
#leaderboardResults tbody td{background:#fffdf4;border-top:1px solid #aab5ba;border-bottom:1px solid #aab5ba}
#leaderboardResults tbody td:first-child{border-left:1px solid #aab5ba;border-radius:7px 0 0 7px;font-weight:900;text-align:center}
#leaderboardResults tbody td:last-child{border-right:1px solid #aab5ba;border-radius:0 7px 7px 0;font-weight:900;text-align:right}
#leaderboardResults .leaderboard-you td{background:#e5f9ec;border-color:#00a79b}
#leaderboardResults td small{font-size:10px;display:block;color:#536c84}
.leaderboard-medal{display:grid;place-items:center;width:27px;height:27px;border:2px solid #a87d19;border-radius:50%;background:#ffdf52;color:#624200;box-shadow:inset 0 0 0 2px #fff5a5;font-size:14px}
.leaderboard-medal[data-place="2"]{background:#d1dce7;border-color:#718298;color:#294057;box-shadow:inset 0 0 0 2px #f9ffff}
.leaderboard-medal[data-place="3"]{background:#e7ae76;border-color:#8a5832;color:#563015;box-shadow:inset 0 0 0 2px #ffdfb7}
.leaderboard-placeholder td{color:#58718b;font-size:12px!important}
/* Standard gameplay keeps the road and sprite area clear. */
.route-stage{border:0;overflow:hidden}.trainer-label,.type-bonus-box{font-size:12px;padding:7px;border-width:2px;border-radius:8px}
.turn-name{font-size:14px!important;margin:1px 0}.trainer-prefix{font-size:9px!important}
.type-bonus-label,.type-bonus-multiplier{font-size:12px!important;font-weight:900}
.type-bonus-box .pokemon-type-icon{transform:scale(.8)}
.last-box{border-width:2px!important;border-radius:8px;max-width:43%!important;padding:7px!important}
.pokemon-reveal{display:flex;flex-direction:column;gap:3px}.sprite-window{width:80px;height:80px}.pokemon-sprite{width:100%;height:100%;object-fit:contain}
.reveal-name{font-size:14px!important;text-align:center}.reveal-kicker{font-size:10px!important;text-align:center}.reveal-meta{font-size:10px!important}.reveal-types{justify-content:center}
.last-empty{font-size:12px!important}.last-empty span{font-size:10px}
.route-history{padding:8px;border-width:2px;border-radius:8px}.route-history h2{font-size:15px!important;margin:0 0 4px}.route-history .history{font-size:12px!important;line-height:1.3}
.history-item{font-size:12px!important;line-height:1.3;padding:3px 0}.route-message{font-size:13px!important;padding:6px 8px}.status{font-size:13px!important;line-height:1.35}
.dialogue-panel{padding:11px;margin:0 5px 5px;border-radius:9px}
#requirement{font-size:17px!important;line-height:1.25;margin:0 0 8px;font-weight:900}
#gameScreen .word-entry{display:grid;grid-template-columns:minmax(0,1fr) 96px;gap:7px}
#gameScreen .word-entry input{height:39px;font-size:16px!important;grid-column:1}
#gameScreen .entry-actions{display:contents}#playBtn{grid-column:2;grid-row:1;min-height:39px!important;height:39px!important;font-size:14px!important}
#gameScreen .small-actions{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:8px}
#gameScreen .small-actions .btn{font-size:14px!important;height:34px!important;min-height:34px!important}
#helpBtn{background:#9ddfff;color:#09324f;text-shadow:none}
/* Responsive battle composition uses the same layout on desktop and mobile. */
#battleGameScreen:not(.hidden){display:flex;flex-direction:column;height:100%;min-height:0;overflow:hidden}
.battle-game-top{background:var(--rally-cream);border:2px solid var(--rally-border);border-radius:7px;margin:4px 5px;padding:5px 9px;font-size:15px;display:flex;gap:8px;align-items:center}
.battle-game-top b{font-size:17px}.battle-game-top span{margin-left:auto;font-size:13px}
#battleGameScreen .battle-arena{position:relative;flex:1;width:100%;height:auto;min-height:0;overflow:hidden;background:#183545}
#battleGameScreen .battle-route-image{background-size:cover;background-position:center}
#battleGameScreen .battle-layout{position:absolute;inset:0;width:auto;height:auto;transform:none;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:minmax(140px,1fr) 92px minmax(140px,1fr) 65px;gap:9px;padding:8px;align-items:start}
#battleGameScreen .combat-card{position:relative;inset:auto;width:100%!important;max-width:none;min-width:0;padding:9px;border:2px solid var(--rally-border);border-radius:9px}
#battleGameScreen .opponent-card{grid-column:2;grid-row:1}.player-card{grid-column:1;grid-row:3}
#battleGameScreen .combat-name{font-size:15px!important;line-height:1.2;margin-bottom:3px;overflow-wrap:anywhere}
#battleGameScreen .combat-type{font-size:11px!important;margin:3px 0;line-height:1.1}
#battleGameScreen .combat-body{display:flex;flex-direction:column;gap:5px;align-items:center}
#battleGameScreen .combat-body>div{width:100%;text-align:center}
#battleGameScreen .combat-body>canvas{width:72px;height:72px;image-rendering:pixelated;background:transparent;border:0}
#battleGameScreen .combat-body b{font-size:12px!important;margin:0 0 3px;display:block}
#battleGameScreen .hp-wrap{display:flex;align-items:center;gap:4px}.hp-wrap>span{font-size:9px}.hp-track{flex:1;min-width:0;height:12px}.hp-fill{border-radius:7px;height:100%;border:0}
#battleGameScreen .hp-number{font-size:11px!important;margin-top:3px}.combat-name .ai-profile{display:none}
#battleGameScreen .battle-route-tag{position:relative;inset:auto;grid-column:1;grid-row:1;font-size:12px;padding:5px;border-radius:7px;line-height:1.3;max-width:130px;height:max-content;background:#fffbeeea;border:2px solid #142e48}
#battleGameScreen .battle-roll-box{position:relative;inset:auto;transform:none;grid-column:1/-1;grid-row:2;align-self:center;width:100%;min-width:0;height:auto;gap:0;padding:6px;border:2px solid #142e48;border-radius:8px}
#battleGameScreen .type-roulette{width:100%;height:62px;object-fit:contain;image-rendering:pixelated}
#battleRouletteLabel{font-size:11px!important}#battleClock{font-size:11px!important}.battle-roll-box:not(:has(#battleRouletteLabel:empty)){padding-bottom:4px}
#battleGameScreen .battle-route-history{position:relative;inset:auto;width:100%;max-width:none;grid-column:1/-1;grid-row:4;margin:0;align-self:end;max-height:65px;padding:5px 8px}
#battleGameScreen .battle-route-history h2{font-size:13px!important;margin:0 0 2px}
#battleGameScreen #battleHistory{max-height:36px;font-size:11px!important}.battle-route-history .history-item{font-size:11px!important;line-height:1.2}
#battleGameScreen .battle-entry{position:relative;inset:auto;flex:none;margin:4px 5px 5px;padding:9px;border-radius:9px;max-height:45%;overflow:auto}
#battleInputLabel{font-size:17px;font-weight:900;display:block}
#battleMessage{font-size:12px!important;margin:2px 0 5px;min-height:0}
.battle-turn-roster{font-size:10px!important;padding:0 0 3px}.battle-input-row{grid-template-columns:minmax(0,1fr) 88px;gap:7px;margin:6px 0}
.battle-input-row input{height:38px;padding:7px}.battle-input-row button{font-size:15px!important;min-height:38px}
.battle-entry details{font-size:11px}.battle-entry details p{font-size:12px;line-height:1.4}
@media(max-width:600px){
 .brand{height:53px;padding:6px;gap:6px}.brand .logo{max-width:45%}.brand .logo img{max-height:35px}
 .brand:has(.header-exit:not([hidden])) .logo{max-width:36%}.header-stats{font-size:11px}
 .header-exit,.header-login{font-size:11px!important;padding:4px 6px!important;min-height:30px!important;height:30px!important}
 .brand .account-actions>.header-menu{height:30px!important;width:30px!important}.pokedex-button{width:29px;height:32px}
 #loginScreen{padding:20px 18px 38px}.login-content{gap:11px;transform:translateY(-20px)}.login-logo{margin-bottom:12px}
 .login-panel{padding:15px}.login-panel #accountForm{gap:9px}
 dialog{padding:12px;width:calc(100vw - 18px);max-height:calc(100dvh - 18px)}
 #profileAvatarGrid{max-height:220px}.achievement-card{grid-template-columns:44px minmax(0,1fr);gap:9px;padding:10px 8px}.achievement-icon{width:44px;height:44px}.achievement-heading b{font-size:14px!important}
 #profileDialog .profile-level-heading b{font-size:15px!important}
 #gameScreen .dialogue-panel{padding:9px}.route-hud{left:7px;right:7px;top:7px}
 #gameScreen .last-box{top:65px!important;right:7px}.route-history{left:7px;right:7px;width:auto!important;max-width:none!important}
 #gameScreen .route-history{bottom:8px!important}.route-message{bottom:84px!important;max-height:60px;overflow:auto}
 #gameScreen .route-history .history{max-height:42px}.pokemon-reveal .sprite-window{width:64px;height:64px}
 #battleGameScreen .battle-layout{gap:7px;padding:7px;grid-template-rows:minmax(140px,1fr) 82px minmax(140px,1fr) 60px}
 #battleGameScreen .battle-route-history{max-height:60px}.battle-roll-box .type-roulette{height:55px}
}
@media(max-height:700px){
 #profileDialog .profile-identity{padding:0 0 5px}.profile-identity #profileEmail,.profile-identity #profileAchievementCount{font-size:10px!important;margin:2px 0!important}
 #profileDialog .profile-level,#profileDialog .profile-rank{padding:6px 0}#profileDialog .profile-rank>img{width:43px;height:43px}
 #profileDialog #profileXPDetail{display:none}#profileAvatarGrid{max-height:132px}
 #profileDialog .profile-match-record{margin:5px 0!important}.profile-match-record>span{padding:4px;font-size:11px!important}
 #profileDialog .profile-title-label{margin:4px 0}#profileDialog .profile-title-label select{min-height:30px;padding:4px}
 #profileDialog h3{margin:5px 0 3px}#profileDialog .profile-filters{margin:4px 0}
 #battleGameScreen .battle-layout{grid-template-rows:minmax(98px,1fr) 58px minmax(98px,1fr) 45px;gap:4px;padding:4px}
 #battleGameScreen .combat-card{padding:5px}.combat-card .combat-type{display:none!important}
 #battleGameScreen .combat-body>canvas{width:40px;height:40px}#battleGameScreen .combat-name{font-size:12px!important}
 #battleGameScreen .combat-body b{font-size:10px!important}#battleGameScreen .combat-body{gap:2px}
 #battleGameScreen .type-roulette{height:37px}#battleGameScreen .battle-roll-box{padding:4px}
 #battleGameScreen .battle-route-history{max-height:45px}#battleGameScreen #battleHistory{max-height:20px}
 #battleGameScreen .battle-entry{padding:6px}#battleMessage{font-size:11px!important}.battle-turn-roster{display:none}
 .login-content{transform:none;gap:8px}.login-logo{max-height:120px;object-fit:contain;margin-bottom:5px}.login-panel{padding:12px}
 .login-panel #accountForm{gap:6px}.login-panel #accountForm input{height:33px}.login-panel #accountForm .btn{min-height:32px!important;height:32px;font-size:13px!important}.login-panel #accountSocialSignIn{margin-top:8px;padding-top:8px}
}
@media(max-width:360px){
 body{font-size:12px}dialog{padding:10px}h2{font-size:19px!important}.collection-head{margin-bottom:8px;padding-bottom:6px}
 #profileDialog .profile-identity b{font-size:18px!important}#profileAvatarGrid{gap:4px}
 #collectionGrid .collection-card{padding:4px;min-height:105px;grid-template-rows:11px 15px minmax(0,1fr) 12px}.dex-name{font-size:10px}
 .achievement-heading{gap:5px}.achievement-heading b{font-size:12px!important}.achievement-heading span{font-size:10px}.achievement-card{gap:7px;grid-template-columns:36px minmax(0,1fr)}.achievement-icon{width:36px;height:36px;padding:3px}
 #requirement,#battleInputLabel{font-size:15px!important}.header-score{font-size:10px}
 #leaderboardResults table{font-size:12px}#leaderboardResults th:last-child{width:85px}
}

/* Keep native type icons small and each arena row clear. */
#battleGameScreen .combat-body .pokemon-type-icon{width:16px;height:16px;border:0;background:none}
#battleGameScreen .combat-body .pokemon-type-icons{justify-content:center;display:inline-flex;margin:0 0 0 4px}
#battleGameScreen .battle-game-top,#battleGameScreen .battle-game-top>b,#battleTurnLabel{color:var(--rally-ink)}
#battleGameScreen .battle-roll-box{max-width:none}
#gameScreen .last-box{left:auto!important;right:8px!important;min-width:110px!important;width:124px!important}
#leaderboardResults th:first-child{width:45px;white-space:nowrap;font-size:12px}
#collectionGrid .collection-card.collected canvas{filter:none;opacity:1}

@media(min-height:701px){
 #battleGameScreen .battle-layout{grid-template-rows:minmax(140px,1fr) 135px minmax(140px,1fr) 60px}
 #battleGameScreen .combat-card{padding:7px}
 #battleGameScreen .combat-body{gap:3px}
 #battleGameScreen .combat-body>canvas{width:60px;height:60px}
 #battleGameScreen .type-roulette{height:90px}
}
@media(max-height:700px) and (max-width:600px){
 #battleGameScreen .combat-card{padding:5px}
 #battleGameScreen .combat-name{padding-right:34px;margin-bottom:1px}
 #battleGameScreen .combat-type{position:absolute;right:5px;top:6px;margin:0;font-size:8px!important;gap:0}
 #battleGameScreen .combat-type .small-icon{display:none}
 #battleGameScreen .combat-body{gap:1px}
 #battleGameScreen .combat-body>canvas{width:28px;height:28px}
 #battleGameScreen .combat-body b{font-size:10px!important;margin:0}
 #battleGameScreen .combat-body .pokemon-type-icon{width:10px;height:10px}
 #battleGameScreen .hp-number{font-size:9px!important;margin-top:1px}
 #battleGameScreen .hp-track{height:9px}
 #battleGameScreen .battle-roll-box{height:58px;padding:3px}
 #battleGameScreen .type-roulette{height:45px}
 #battleRouletteLabel,#battleClock{display:none}
 #battleGameScreen .battle-route-history{overflow:hidden;height:45px;padding:3px 5px}
 #battleGameScreen .battle-route-history h2{font-size:11px!important}
}
#battleInputError:empty{display:none}
@media(min-width:601px) and (min-height:701px){
 #battleGameScreen .combat-body>canvas{width:52px;height:52px}
 #battleGameScreen .combat-body{gap:1px}
 #battleGameScreen .combat-type{margin:1px 0}
 #battleGameScreen .combat-name{margin-bottom:1px}
}
@media(min-width:601px) and (min-height:701px){
 #battleGameScreen .combat-type{position:absolute;right:7px;top:8px;margin:0}
 #battleGameScreen .combat-name{padding-right:75px}
}
