.mobile-only{display:none}
.mobile .mobile-only{display:block}
.mobile [data-opponent="pvp"],.mobile .desktop-only,.mobile .key-table{display:none!important}
.mobile .site-header,.mobile .lobby-main{padding-left:max(18px,env(safe-area-inset-left));padding-right:max(18px,env(safe-area-inset-right))}
.mobile .site-header{padding-top:env(safe-area-inset-top)}
.mobile .segmented,.mobile select{min-height:48px}
.mobile .quiet-button{min-height:44px}
.mobile .hero-card:hover{transform:none}
.mobile footer{padding-bottom:max(20px,env(safe-area-inset-bottom))}
.mobile.in-battle,.mobile .in-battle{overflow:hidden;overscroll-behavior:none}
.mobile #game-screen{position:fixed;inset:0;height:100dvh;min-height:0;padding-top:env(safe-area-inset-top);touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.mobile .game-topbar{height:40px;padding:0 max(16px,env(safe-area-inset-right)) 0 max(16px,env(safe-area-inset-left));position:relative;z-index:2;background:#101218ed}
.mobile .game-topbar>div{gap:14px}
.mobile .game-brand{font-size:22px}.mobile .game-brand b{font-size:15px;margin-right:12px}
.mobile .game-brand>span{font-size:9px}
.mobile .game-topbar .quiet-button{font-size:12px;min-width:44px;min-height:38px;margin:0}
.mobile .game-topbar kbd,.mobile .game-controls,.mobile .game-watermark{display:none}
.mobile #arena-wrap{position:absolute;top:calc(40px + env(safe-area-inset-top));left:50%;transform:translateX(-50%);height:auto;width:min(calc(100vw - env(safe-area-inset-left) - env(safe-area-inset-right)),calc((100dvh - 40px - env(safe-area-inset-top) - env(safe-area-inset-bottom))*16/9));aspect-ratio:16/9;margin:0}
.mobile #arena{position:absolute;height:100%;width:100%;left:0}
.mobile .hud{top:8px;left:3%;width:94%;gap:22px}
.mobile .hud-name{font-size:12px;margin-bottom:4px;letter-spacing:1px}
.mobile .hud-name small{font-size:8px}
.mobile .health-track{height:12px}
.mobile .health-numbers{font-size:8px;margin-top:3px}
.mobile .hud-energy{margin-top:4px;height:4px}
.mobile .energy-label{font-size:7px}
.mobile .mini-roster{margin-top:5px;gap:4px}
.mobile .mini-fighter{font-size:8px;padding:2px 5px}
.mobile .timer-block{min-width:54px}.mobile .timer-block>strong{font-size:32px}.mobile .timer-block>span{font-size:7px}
.mobile .announcement{top:29%}.mobile .announcement>strong{font-size:56px}.mobile .announcement>span{font-size:9px;letter-spacing:3px}.mobile .announcement>p{font-size:10px;letter-spacing:1px}
.mobile .skill-callout{top:29%;font-size:18px;padding:9px 30px 9px 20px}
.mobile #touch-controls{display:block;position:absolute;inset:0;pointer-events:none;z-index:3;touch-action:none;user-select:none;-webkit-user-select:none}
.touch-left{position:absolute;left:max(18px,env(safe-area-inset-left));bottom:max(16px,env(safe-area-inset-bottom));width:186px;height:150px}
#move-stick{width:118px;height:118px;border-radius:50%;position:absolute;left:0;bottom:12px;background:radial-gradient(circle,#1c253955,#11172077);border:1px solid #d9e7ff55;box-shadow:inset 0 0 0 13px #dce8ff06;pointer-events:auto;touch-action:none}
.stick-arrows{position:absolute;inset:0;display:flex;align-items:center;justify-content:space-around;color:#e6eeff8c;font-size:26px}.stick-arrows i{width:42px}
.stick-knob{position:absolute;left:34px;top:34px;width:48px;height:48px;border:1px solid #c1d3ef99;border-radius:50%;background:radial-gradient(circle at 35% 25%,#8293abbb,#334157bb);box-shadow:0 3px 15px #0006;transform:translate(var(--stick-x,0px),var(--stick-y,0px));pointer-events:none}
#move-stick.pressed{border-color:#ffb389}.stick-hint{position:absolute;bottom:-3px;left:35px;font-size:9px;letter-spacing:2px;color:#b0b7c5}
#touch-controls button{position:absolute;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;pointer-events:auto;touch-action:none;width:54px;height:54px;border-radius:50%;border:1px solid #e3d1c177;background:#1b2235ae;color:#fff0e5;text-shadow:0 1px 3px #000;font-size:12px;font-weight:600;padding:0;box-shadow:inset 0 0 15px #dce8ff08,0 3px 12px #0004;-webkit-tap-highlight-color:transparent}
#touch-controls button small{font-size:8px;font-weight:400;color:#ded7ce}
#touch-controls .touch-guard{right:0;bottom:30px;width:52px;height:52px;border-color:#9dbddb88}
.touch-actions{position:absolute;right:max(18px,env(safe-area-inset-right));bottom:max(16px,env(safe-area-inset-bottom));width:252px;height:148px}
#touch-controls .touch-light{left:66px;bottom:0;width:72px;height:72px;font-size:17px;background:#883e28ce;border-color:#ffad77;box-shadow:0 0 25px #ff743124,inset 0 0 20px #ffb57a22}
#touch-controls .touch-heavy{left:147px;bottom:20px;width:62px;height:62px;font-size:14px}
#touch-controls .touch-skill{left:122px;top:0;width:58px;height:58px;border-color:#f7bd70;background:#604328bd}
#touch-controls .touch-ultimate{right:0;top:0;width:60px;height:60px;border-color:#b8a0ff;background:#564079bd}
#touch-controls .touch-jump{left:0;bottom:4px}
#touch-controls .touch-dash{left:43px;top:8px;width:52px;height:52px}
#touch-controls button.unready{border-color:#77758066;background:#262733aa;color:#acaab5}
#touch-controls button.unready small{color:#a09baa}
#touch-controls .touch-ultimate.ready{box-shadow:0 0 20px #b084ff66,inset 0 0 15px #c8acff25}
#touch-controls button.pressed{background:#c17141ed;border-color:#fff0cb;transform:scale(.95);box-shadow:0 0 16px #ffba6577}
.touch-guide{border:1px solid #49404b;background:#ffffff03;border-radius:6px;padding:10px 16px;margin:14px 0}.touch-guide b{color:#fbb58f;margin-right:8px}
#orientation-dialog{text-align:center;padding:32px 25px;max-width:390px}
#orientation-dialog::backdrop{background:#0c0f16f5;backdrop-filter:blur(14px)}
#orientation-dialog .eyebrow{justify-content:center;color:#ffac79;font-size:9px}
#orientation-dialog h2{font-size:27px;margin-top:14px}
#orientation-dialog p{font-size:12px;line-height:2}
#orientation-dialog .primary-button{width:100%;margin-top:24px;justify-content:center;gap:20px}
#portrait-lobby-button{margin-top:12px;color:#c0b7bf;min-height:44px}
.rotate-phone{color:#ffad77;font-size:42px;height:90px;display:flex;align-items:center;justify-content:center;gap:14px}.rotate-phone span{display:inline-block;transform:rotate(90deg);font-size:78px;line-height:1}
@media(orientation:landscape){
 .mobile .site-header{height:58px}.mobile .hero-banner{height:215px}.mobile .hero-copy{padding:18px 25px}.mobile .hero-copy h1{font-size:29px;margin:10px 0}.mobile .hero-copy p{font-size:10px}.mobile .hero-copy .text-link{margin-top:9px}
 .mobile .settings-grid{grid-template-columns:1.1fr 1fr 1fr 1fr;gap:10px}.mobile .settings-grid .segmented{height:48px}.mobile .segmented .mode-icon{display:none}
 .mobile .draft-layout{grid-template-columns:1fr}.mobile .hero-detail{display:none}.mobile .hero-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:9px}.mobile .hero-card{height:150px}.mobile .hero-card canvas{height:123px}.mobile .hero-card .hero-card-name{font-size:13px}
 .mobile .teams{grid-template-columns:1fr 1fr;gap:22px}.mobile .versus{display:none}.mobile .team-heading small{font-size:8px}.mobile .team-slot{gap:4px}.mobile .team-slot canvas{width:28px}
 .mobile .launch-bar{position:sticky;bottom:0;z-index:4;background:#101114f5;padding:12px 0 max(12px,env(safe-area-inset-bottom));margin-top:20px}.mobile .launch-bar .primary-button{min-height:48px}.mobile dialog{max-height:90dvh;padding:22px}.mobile #pause-dialog,.mobile #result-dialog{padding:22px 32px}.mobile #pause-dialog h2{margin:8px 0}.mobile #pause-dialog p{margin:5px 0}.mobile #pause-dialog button{padding:11px;margin-top:8px}
}
@media(max-height:370px) and (orientation:landscape){
 .touch-left{width:158px;height:122px;left:max(12px,env(safe-area-inset-left));bottom:max(10px,env(safe-area-inset-bottom))}#move-stick{width:100px;height:100px}.stick-knob{left:29px;top:29px;width:40px;height:40px}.stick-hint{left:25px}
 .touch-actions{transform:scale(.88);transform-origin:bottom right;right:max(12px,env(safe-area-inset-right));bottom:max(10px,env(safe-area-inset-bottom))}
 .mobile .mini-roster,.mobile .energy-label{display:none}.mobile .game-topbar{height:36px}.mobile #arena-wrap{top:calc(36px + env(safe-area-inset-top));width:min(calc(100vw - env(safe-area-inset-left) - env(safe-area-inset-right)),calc((100dvh - 36px - env(safe-area-inset-top) - env(safe-area-inset-bottom))*16/9))}
}
