.touch-layer{display:none}
.empress-touch{--touch-left:max(12px,env(safe-area-inset-left));--touch-right:max(12px,env(safe-area-inset-right));--touch-bottom:max(10px,env(safe-area-inset-bottom));overscroll-behavior:none}
.empress-touch body{overscroll-behavior:none;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none}
.empress-touch button,.empress-touch a{touch-action:manipulation;min-height:44px}
.empress-touch input,.empress-touch textarea{-webkit-user-select:text;user-select:text;font-size:16px}
.empress-touch #app{padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right)}
.empress-touch .topbar{height:60px;padding:0 18px;gap:15px}
.empress-touch .empress-brand{font-size:22px}
.empress-touch .brand-sub{font-size:7px;letter-spacing:2px}
.empress-touch .profile{gap:9px}
.empress-touch .profile-label,.empress-touch .avatar{display:none}
.empress-touch .controller-status{font-size:8px}
.empress-touch .footer{height:44px;padding:0 18px;letter-spacing:.5px}
.empress-touch .empress-home{min-height:100%;height:auto;grid-template-columns:1fr;padding:18px 6% 24px}
.empress-touch .empress-title{font-size:62px;letter-spacing:-3px}
.empress-touch .empress-subtitle{font-size:9px;margin:0 0 10px;letter-spacing:4px}
.empress-touch .empress-description{font-size:11px;line-height:1.5}
.empress-touch .empress-home .menu-list{margin-top:15px;max-width:480px}
.empress-touch .empress-home .menu-entry{padding:12px 15px}
.empress-touch .menu-observer,.empress-touch .home-controls{display:none}
.empress-touch .page{padding:20px 4%}
.empress-touch .page-heading h1{font-size:34px}
.empress-touch .page-heading p{font-size:11px;line-height:1.5}
.empress-touch .page-heading .pill{display:none}
.empress-touch .back-button{margin-bottom:10px}
.empress-touch .modal-backdrop{padding:max(10px,env(safe-area-inset-top)) var(--touch-right) max(10px,env(safe-area-inset-bottom)) var(--touch-left)}
.empress-touch .modal{max-height:calc(100dvh - 24px);overflow-y:auto;padding:20px;border-radius:9px;overscroll-behavior:contain}
.empress-touch .modal h2{font-size:32px}
.empress-touch .modal p{font-size:12px;margin-top:8px}
.empress-touch .modal-actions{flex-wrap:wrap;margin-top:16px}
.empress-touch .modal-actions button{min-width:115px;padding:12px 14px}
.empress-touch .binding-row{font-size:11px}
.empress-touch .binding-key{min-width:52px;padding:8px 6px}
.empress-touch .battle,.empress-touch .arena-wrap,.empress-touch .touch-layer,.empress-touch .moves-hud,.empress-touch .team-hud{touch-action:none}
.empress-touch .battle-top{height:43px;padding:0 var(--touch-right) 0 var(--touch-left);gap:9px}
.empress-touch .battle-title b{font-size:13px;letter-spacing:1px}
.empress-touch .battle-title span{font-size:7px}
.empress-touch .battle-clock{font-size:22px}
.empress-touch .battle-connection{font-size:7px;letter-spacing:.5px}
.empress-touch .icon-button{width:44px;height:44px}
.empress-touch .arena-wrap{top:calc(50% + 12px);width:min(100vw,calc((100dvh - 46px)*1.57895));height:min(calc(100vw / 1.57895),calc(100dvh - 46px));box-shadow:none}
.empress-touch .fighter-hud,.empress-touch .enemy-hud{top:51px;width:172px;padding:7px 9px;border-radius:5px}
.empress-touch .fighter-hud{left:var(--touch-left)}
.empress-touch .enemy-hud{right:var(--touch-right)}
.empress-touch .hud-trainer{font-size:7px}
.empress-touch .hud-name{font-size:17px;margin-top:3px}
.empress-touch .hud-type,.empress-touch .hud-ability{display:none}
.empress-touch .hud-hp{margin-top:5px;height:6px}
.empress-touch .hud-values{font-size:8px;margin-top:4px}
.empress-touch .status-tag{font-size:6px;padding:1px 3px}
.empress-touch .battle-bottom{inset:0;display:block;pointer-events:none}
.empress-touch .moves-hud{position:absolute;right:var(--touch-right);bottom:var(--touch-bottom);display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;width:clamp(220px,32vw,310px);pointer-events:auto}
.empress-touch .move-card{height:58px;min-height:58px;padding:6px 8px;border-top-width:2px;box-shadow:0 3px 12px #0004}
.empress-touch .move-card .key,.empress-touch .move-card .move-type{display:none}
.empress-touch .move-card .move-name{font-size:16px;margin-top:0;overflow:hidden;text-overflow:ellipsis}
.empress-touch .move-card .move-pp{font-size:8px;margin-top:4px}
.empress-touch .cooldown-number{font-size:17px}
.empress-touch .team-hud{display:flex;position:absolute;top:51px;left:50%;transform:translateX(-50%);gap:5px;pointer-events:auto}
.empress-touch .team-chip{width:45px;height:49px;min-height:49px;background:#152236d9}
.empress-touch .team-chip img{width:35px;height:35px}
.empress-touch .team-chip small{font-size:7px}
.empress-touch .dodge-hud,.empress-touch .battle-hints{display:none}
.empress-touch .touch-layer{display:block;position:absolute;inset:0;z-index:35;pointer-events:none}
.empress-touch .touch-stick{position:absolute;left:var(--touch-left);bottom:var(--touch-bottom);width:126px;height:126px;border-radius:50%;border:1px solid #d6c18c65;background:radial-gradient(circle,#19293a45,#152336a3);box-shadow:inset 0 0 20px #0c172755;pointer-events:auto;touch-action:none}
.empress-touch .touch-stick.held{border-color:#e4d3a4b0;background-color:#263d4a55}
.empress-touch .touch-stick-cross{position:absolute;inset:20px;border:1px solid #c9bb8f20;border-radius:50%}
.empress-touch .touch-stick-cross:before,.empress-touch .touch-stick-cross:after{content:'';position:absolute;left:50%;top:50%;background:#d6c18c40;transform:translate(-50%,-50%);width:1px;height:80%}
.empress-touch .touch-stick-cross:after{width:80%;height:1px}
.empress-touch .touch-stick-knob{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:48px;height:48px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#d7c59a,#a99368);border:2px solid #ecdfbaaa;box-shadow:0 5px 12px #0006}
.empress-touch .touch-stick-label{position:absolute;left:0;right:0;bottom:9px;text-align:center;font-size:7px;font-weight:700;letter-spacing:1px;color:#ecdfbaaa;pointer-events:none}
.empress-touch .touch-dodge{position:absolute;bottom:calc(var(--touch-bottom) + 14px);left:calc(var(--touch-left) + 140px);width:66px;height:66px;padding:7px;border:1px solid #d6c18c88;border-radius:50%;background:#18273ce6;box-shadow:0 4px 15px #0005;pointer-events:auto;touch-action:none}
.empress-touch .touch-dodge>span{display:block;color:#ecd9a2;font-size:24px;line-height:25px}
.empress-touch .touch-dodge>b{font-size:8px;letter-spacing:1px}
.empress-touch .touch-dodge>i{position:absolute;left:14px;right:14px;bottom:10px;height:3px;background:#d6c18c;transform-origin:left;border-radius:3px}
.empress-touch .touch-dodge:disabled{opacity:.5}
.empress-touch .story-header{height:51px;padding:0 var(--touch-right) 0 var(--touch-left);gap:8px}
.empress-touch .story-wordmark{font-size:22px}
.empress-touch .story-badge-count{padding:9px 11px;font-size:8px}
.empress-touch .path-map .story-objective{right:var(--touch-right);top:60px;width:28%;padding:10px}
.empress-touch .path-map .story-objective h2{font-size:18px}
.empress-touch .path-map .story-objective p{font-size:9px;line-height:1.4;margin-top:5px}
.empress-touch .story-stop-card{right:var(--touch-right);top:40%;bottom:var(--touch-bottom);max-height:none;width:28%;padding:10px;overflow-y:auto;overscroll-behavior:contain}
.empress-touch .stop-portrait,.empress-touch .stop-portrait.empress{display:none}
.empress-touch .stop-kicker{font-size:7px;margin-bottom:5px}
.empress-touch .story-stop-card h2{font-size:20px}
.empress-touch .story-stop-card p,.empress-touch .story-stop-card small{display:none}
.empress-touch .story-stop-card .primary-button{font-size:9px;margin-top:8px;min-height:44px;padding:10px 6px}
.empress-touch .stop-navigation{gap:5px;margin-top:7px}
.empress-touch .stop-navigation button{font-size:8px;min-height:44px;padding:8px 4px}
.empress-touch .story-controls{display:none}
.empress-touch .story-dialogue,.empress-touch .path-map .story-dialogue{bottom:var(--touch-bottom);width:calc(100% - var(--touch-left) - var(--touch-right));max-height:calc(100dvh - 75px);overflow-y:auto;padding:16px 18px;z-index:45}
.empress-touch .dialogue-portrait{display:none}
.empress-touch .dialogue-speaker{font-size:22px}
.empress-touch .dialogue-text{font-size:13px;line-height:1.5;min-height:0;margin-top:8px}
.empress-touch .dialogue-footer{margin-top:12px}
.empress-touch .dialogue-actions button{min-height:44px;padding:10px 20px}
.empress-touch .dialogue-actions button span{display:none}
.empress-touch .intro-screen h1{font-size:82px}
.empress-touch .intro-screen button{margin-top:25px;min-height:48px}
.empress-touch .intro-screen p{margin-top:22px}
.empress-touch .intro-screen small{display:none}
.empress-touch #app:has(.team-page) .topbar{height:48px;padding:0 12px;gap:20px}
.empress-touch #app:has(.team-page) .footer{height:32px;padding:0 12px;font-size:8px}
.empress-touch #app:has(.team-page) .footer-settings{min-height:32px;font-size:9px}
.empress-touch #app:has(.team-page) #main{overflow:hidden}
.empress-touch .team-page{padding:6px 12px;overflow:hidden}
.empress-touch .team-page>.back-button{min-height:28px;margin-bottom:2px;font-size:9px}
.empress-touch .team-page>.page-heading{margin-bottom:6px}
.empress-touch .team-page>.page-heading h1{font-size:26px}
.empress-touch .team-page>.page-heading p{display:none}
.empress-touch .team-page .team-layout{grid-template-columns:minmax(174px,25%) minmax(0,1fr);grid-template-rows:minmax(0,1fr);gap:10px}
.empress-touch .team-page .team-roster{display:flex;flex-direction:column;gap:4px;padding:2px 4px 4px 2px;overflow-y:auto;overscroll-behavior:contain}
.empress-touch .team-page .team-roster>*{flex-shrink:0}
.empress-touch .team-page .roster-card{display:grid;grid-template-columns:34px minmax(0,1fr);gap:7px;flex:0 0 46px;height:46px;min-height:46px;padding:4px 21px 4px 6px;border-radius:6px;text-align:left}
.empress-touch .team-page .roster-card img{width:34px;height:34px}
.empress-touch .team-page .roster-card h3{font-size:16px;line-height:17px;margin-bottom:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.empress-touch .team-page .roster-card .type-chip{padding:2px 3px;font-size:6px;letter-spacing:.2px;margin-right:1px;vertical-align:top}
.empress-touch .team-page .slot-label{right:6px;top:5px;font-size:9px}
.empress-touch .team-page .team-note{display:block;font-size:9px;line-height:1.4;padding:4px 2px}
.empress-touch .team-page .selected-detail{display:block;margin-top:2px;padding:10px 8px;border-radius:6px}
.empress-touch .team-page .detail-title{font-size:10px;gap:5px}
.empress-touch .team-page .stats{margin-top:10px;gap:6px}
.empress-touch .team-page .stat-row{grid-template-columns:27px 1fr 22px;gap:5px;font-size:8px}
.empress-touch .team-page .preset-moves{margin-top:10px;gap:2px}
.empress-touch .team-page .preset-move{min-height:44px;gap:5px;font-size:10px;text-align:left}
.empress-touch .team-page .preset-move>span:first-child{width:40px;flex-shrink:0;padding:3px;font-size:6px;letter-spacing:0}
.empress-touch .team-page .preset-move small{font-size:7px;white-space:nowrap}
.empress-touch .team-page .ability-line,.empress-touch .team-page .legal-note{font-size:9px;line-height:1.5}
.empress-touch .team-page .rules-link{font-size:8px;text-align:left}
.empress-touch .team-page .searchbar{gap:6px;margin-bottom:4px}
.empress-touch .team-page .searchbar input,.empress-touch .team-page .searchbar select{height:36px;padding:7px 9px;border-radius:5px}
.empress-touch .team-page .searchbar input{font-size:16px}
.empress-touch .team-page .searchbar select{width:108px;font-size:12px}
.empress-touch .team-page #catalog-results{padding:2px 4px 6px 2px;overscroll-behavior:contain}
.empress-touch .team-page .catalog-count{font-size:8px;line-height:14px;margin-bottom:4px}
.empress-touch .team-page .pokemon-grid{grid-template-columns:repeat(auto-fill,minmax(94px,1fr));grid-auto-rows:minmax(92px,auto);gap:6px}
.empress-touch .team-page .pokemon-card{height:92px;min-height:92px;padding:6px 5px;border-radius:6px}
.empress-touch .team-page .pokemon-card .dex{top:5px;left:5px;font-size:7px}
.empress-touch .team-page .pokemon-card img{height:44px;max-width:64px;margin:0 auto 4px}
.empress-touch .team-page .pokemon-card strong{font-size:15px;line-height:17px}
.empress-touch .team-page .pokemon-card small{font-size:7px;line-height:10px;letter-spacing:0;margin-top:3px}
.empress-touch .team-page .load-more{margin-top:12px;font-size:10px}
@media(max-height:380px){.empress-touch .fighter-hud,.empress-touch .enemy-hud{width:150px}.empress-touch .touch-stick{width:108px;height:108px}.empress-touch .touch-dodge{left:calc(var(--touch-left) + 120px);width:60px;height:60px}.empress-touch .move-card{height:51px;min-height:51px}.empress-touch .move-card .move-name{font-size:14px}.empress-touch .move-card .move-pp{font-size:7px}.empress-touch .path-map .story-objective p{display:none}.empress-touch .story-stop-card{top:34%}}
@media(orientation:portrait){.empress-touch .moves-hud{width:49vw}.empress-touch .touch-stick{width:104px;height:104px}.empress-touch .touch-dodge{left:var(--touch-left);bottom:calc(var(--touch-bottom) + 116px);width:60px;height:60px}.empress-touch .fighter-hud,.empress-touch .enemy-hud{width:44%}.empress-touch .team-hud{top:auto;bottom:calc(var(--touch-bottom) + 134px);left:auto;right:var(--touch-right);transform:none}.empress-touch .path-map .story-objective{width:40%}.empress-touch .story-stop-card{width:40%;top:45%}.empress-touch .arena-wrap{top:47%}.empress-touch .battle-clock{left:56%}.empress-touch .battle-title b{font-size:11px}}
