/* Dedicated public game surface; existing Suite/Arcade tokens are retained. */
html.leaf-phone-playing,html.leaf-phone-playing body{overflow:hidden}
[data-leaf-phone-play="true"]{position:fixed;inset:auto;top:var(--leaf-play-top,0px);left:var(--leaf-play-left,0px);width:var(--leaf-play-width,100vw);height:var(--leaf-play-height,100dvh);z-index:30;margin:0;border:0;border-radius:0;padding:max(6px,var(--touch-safe-top)) max(8px,var(--touch-safe-right)) max(8px,var(--touch-safe-bottom)) max(8px,var(--touch-safe-left));display:flex;flex-direction:column;gap:6px;overflow:hidden;background:var(--arcade-bg)}
[data-leaf-phone-play] .lounge-match-top{flex:0 0 auto;min-height:44px;margin:0;gap:8px;align-items:center}
[data-leaf-phone-play] .lounge-match-top>div:first-child{min-width:0;flex:1}
[data-leaf-phone-play] .lounge-match-top h3{display:none}
[data-leaf-phone-play] .lounge-match-top [data-turn]{font-size:14px!important;line-height:1.35}
[data-leaf-phone-play] .lounge-match-tools{width:auto;flex:0 0 auto;gap:0}
[data-leaf-phone-play] .lounge-match-tools>[data-sound]{display:none}
[data-leaf-phone-play] [data-match-focus]{min-width:68px;min-height:44px;flex:none;padding:8px 10px}
[data-leaf-phone-play]>.lounge-error{flex:0 0 auto;margin:0;font-size:14px;max-height:3.2em;overflow:auto;min-height:0}
[data-leaf-phone-play]>.lounge-error:empty{display:none}
[data-leaf-phone-play]>[data-waiting]:empty{display:none}
[data-leaf-phone-play]>[data-battle]{flex:1;min-height:0;display:grid;grid-template-rows:auto auto minmax(80px,1fr) auto;gap:6px}
[data-leaf-phone-play] .squad-matchbar{margin:0;min-height:44px}
[data-leaf-phone-play] .squad-level{display:none}
[data-leaf-phone-play] .squad-toolstack{display:grid;grid-template-columns:1fr 1fr;gap:8px;align-items:stretch}
[data-leaf-phone-play] .squad-menu>summary{min-height:44px;padding:7px 10px;font-size:14px;max-width:100%;overflow-wrap:anywhere}
[data-leaf-phone-play] .squad-menu-panel{position:fixed;inset:calc(var(--leaf-play-top,0px) + max(6px,var(--touch-safe-top)) + 50px) auto auto calc(var(--leaf-play-left,0px) + max(8px,var(--touch-safe-left)));width:calc(var(--leaf-play-width,100vw) - max(8px,var(--touch-safe-left)) - max(8px,var(--touch-safe-right)));max-height:calc(var(--leaf-play-height,100dvh) - max(6px,var(--touch-safe-top)) - max(8px,var(--touch-safe-bottom)) - 58px);z-index:40;overflow:auto;overscroll-behavior:contain;scroll-padding-top:64px}
[data-leaf-phone-play] .squad-setting-title{position:sticky;top:-12px;z-index:1;padding:8px 0;background:#20372e}
[data-leaf-phone-play] .leaf-phone-stage{min-width:0;min-height:0;display:grid;overflow:hidden;background:#152039;border-radius:8px}
[data-leaf-phone-play] .leaf-phone-stage>.lounge-canvas{width:100%;height:100%;min-height:0;object-fit:contain;aspect-ratio:auto;border-radius:0}
[data-leaf-phone-play] .squad-pilot{min-height:0;height:100%;display:grid;grid-template-rows:minmax(0,1fr) auto;padding:0;border:0;border-radius:0}
[data-leaf-phone-play] .squad-pilot .lounge-canvas{width:100%;height:100%;min-height:0;object-fit:contain;aspect-ratio:auto}
[data-leaf-phone-play] .squad-pilot-hint{display:none}
[data-leaf-phone-play] .squad-pilot>[data-guided-coast]{min-height:48px;margin:6px}
[data-leaf-phone-play] .leaf-phone-dock{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:6px;max-height:52%;overflow:auto;overscroll-behavior:contain;align-content:start;padding:2px}
[data-leaf-phone-play] .squad-camera-tools{grid-column:1/-1;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:6px}
[data-leaf-phone-play] .squad-camera-tools>button{padding:7px;min-height:44px}
[data-leaf-phone-play] .squad-commentary,[data-leaf-phone-play] .squad-heading,[data-leaf-phone-play] [data-squad-hint]{display:none}
[data-leaf-phone-play] .squad-panel,[data-leaf-phone-play] .lounge-aim{display:contents}
[data-leaf-phone-play] .squad-units{grid-column:1/-1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
[data-leaf-phone-play] .squad-unit{min-height:50px;display:grid;grid-template-columns:1fr;text-align:center;gap:1px;padding:5px 3px}
[data-leaf-phone-play] .squad-unit strong{font-size:12px;line-height:1.2;overflow-wrap:anywhere}
[data-leaf-phone-play] .squad-unit>[data-unit-health]{grid-column:1;font-size:12px}
[data-leaf-phone-play] .squad-leaf{display:none}
[data-leaf-phone-play] .squad-walk{grid-column:1;margin:0;display:flex;flex-wrap:nowrap;gap:4px}
[data-leaf-phone-play] .squad-walk>button{min-width:44px;min-height:48px;flex:1;margin:0;padding:5px;font-size:13px}
[data-leaf-phone-play] [data-walk]{font-size:0!important}
[data-leaf-phone-play] [data-walk="left"]::after{content:'←';font-size:23px}
[data-leaf-phone-play] [data-walk="right"]::after{content:'→';font-size:23px}
[data-leaf-phone-play] .lounge-aim>.lounge-row{grid-column:2;grid-row:3;margin:0;display:flex}
[data-leaf-phone-play] [data-fire]{width:100%;min-width:0;min-height:48px;padding:7px;font-size:15px;gap:6px}
[data-leaf-phone-play] .lounge-aim>.lounge-row>span,[data-leaf-phone-play] .lounge-aim>label,[data-leaf-phone-play] .squad-weapon-detail{display:none}
[data-leaf-phone-play] .lounge-field{grid-row:4;min-width:0}
[data-leaf-phone-play] .lounge-field label{font-size:13px;margin:0}
[data-leaf-phone-play] .lounge-field input[type=range]{min-height:44px}
[data-leaf-phone-play] .squad-guided-target{grid-column:1/-1;padding:0}
[data-leaf-phone-play] .squad-guided-target p{display:none}
[data-leaf-phone-play] .leaf-phone-info{display:grid;gap:14px;padding-top:12px;border-top:1px solid var(--arcade-line)}
[data-leaf-phone-play] .leaf-phone-info .lounge-roster{margin:0}
[data-leaf-phone-play] .leaf-phone-info [data-back]{width:100%}
[data-leaf-phone-play] [data-next-battlefield]{flex:0 0 auto;min-height:48px;margin:0}
[data-leaf-phone-play][data-leaf-phone-pilot="true"] .leaf-phone-dock{display:none}
html[data-arcade-controls="large"] [data-leaf-phone-play] :is(.squad-unit,[data-walk],[data-pass],[data-fire]){min-height:60px}
@media(orientation:landscape) and (max-height:520px){
 [data-leaf-phone-play]{display:grid;--leaf-rail:clamp(190px,28vw,250px);grid-template-columns:minmax(0,1fr) var(--leaf-rail);grid-template-rows:auto minmax(0,1fr);gap:6px}
 [data-leaf-phone-play] .lounge-match-top{grid-column:1/-1;grid-row:1}
 [data-leaf-phone-play]>[data-battle]{display:contents}
 [data-leaf-phone-play] .leaf-phone-stage{grid-column:1;grid-row:2}
 [data-leaf-phone-play] .squad-matchbar{grid-column:2;grid-row:2;align-self:start;z-index:3}
 [data-leaf-phone-play] .leaf-phone-dock{grid-column:2;grid-row:2;align-self:stretch;max-height:none;padding-top:54px;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
 [data-leaf-phone-play] .squad-walk{grid-column:1/-1;grid-row:3}
 [data-leaf-phone-play] .lounge-aim>.lounge-row{grid-column:1/-1;grid-row:4}
 [data-leaf-phone-play] .lounge-field{grid-row:5}
 [data-leaf-phone-play]>.lounge-error:not(:empty){grid-column:1;grid-row:1;z-index:4;background:var(--arcade-bg)}
 [data-leaf-phone-play][data-leaf-phone-pilot="true"] .leaf-phone-stage{grid-column:1/-1}
 [data-leaf-phone-play][data-leaf-phone-pilot="true"] .squad-matchbar{display:none}
 [data-leaf-phone-play] [data-next-battlefield]{grid-column:2;grid-row:2;align-self:end;z-index:4}
 html[data-arcade-hand="left"] [data-leaf-phone-play]{grid-template-columns:var(--leaf-rail) minmax(0,1fr)}
 html[data-arcade-hand="left"] [data-leaf-phone-play] .leaf-phone-stage{grid-column:2}
 html[data-arcade-hand="left"] [data-leaf-phone-play] :is(.squad-matchbar,.leaf-phone-dock,[data-next-battlefield]){grid-column:1}
 html[data-arcade-hand="left"] [data-leaf-phone-play][data-leaf-phone-pilot="true"] .leaf-phone-stage{grid-column:1/-1}
}

.leaf-phone-rotate{padding:8px 10px;border:1px solid #c5ff6240;border-radius:8px;color:var(--arcade-lime);background:#c5ff6210;font-size:14px;line-height:1.4;text-align:center}
@media(orientation:landscape){[data-leaf-phone-play] .leaf-phone-rotate{display:none}}
