#rotate-device{position:fixed;inset:0;z-index:500;background:#111b32f9;display:grid;place-items:center;padding:24px;text-align:center}#rotate-device.hidden{display:none}#rotate-device>div{max-width:390px}#rotate-device h2{font-size:30px;line-height:1.1;color:#fff5df}#rotate-device p{color:#b9c7db;line-height:1.6}#rotate-device button{display:block;width:100%;margin-top:14px}.rotate-icon{display:block;font-size:76px;color:#dcff50}

/* One viewport-driven layout for phones, tablets and unfolded screens. */
body.touch-device{--edge-left:max(8px,env(safe-area-inset-left));--edge-right:max(8px,env(safe-area-inset-right));--edge-bottom:max(8px,env(safe-area-inset-bottom))}
.touch-device.playing{overflow:hidden;overscroll-behavior:none;touch-action:none}
.touch-device.playing #pitch{width:var(--game-width);height:var(--game-height);left:var(--game-left);top:var(--game-top)}
.touch-device.playing .topbar{position:fixed;inset:auto;top:var(--game-top);left:var(--game-left);width:var(--game-width);height:40px;min-height:0;max-width:none;margin:0;padding:3px var(--edge-right) 3px var(--edge-left);border:0;justify-content:flex-end;align-items:center;pointer-events:none}
.touch-device.playing .topbar .brand,.touch-device.playing #connection,.touch-device.playing #open-history,.touch-device.playing #open-account{display:none}
.touch-device.playing .top-right{gap:5px;pointer-events:auto}.touch-device.playing .top-right button{height:28px;min-height:28px;padding:4px;font-size:8px;letter-spacing:0}
#game-fullscreen{display:none}.touch-device.playing #game-fullscreen{display:block;width:28px;font-size:0}.touch-device.playing #game-fullscreen::after{content:'⛶';font-size:19px}.touch-device.playing #game-fullscreen[hidden]{display:none}
.touch-device.playing #sound{width:30px;font-size:0}.touch-device.playing #sound::after{content:'♪';font-size:18px}.touch-device.playing #sound[aria-pressed=false]{opacity:.5}
.touch-device.playing #exit{width:38px;font-size:0}.touch-device.playing #exit::after{content:'EXIT';font-size:8px}
.touch-device.playing .scoreboard{position:fixed;top:calc(var(--game-top) + 3px);left:calc(var(--game-left) + var(--game-width)/2);transform:translateX(-50%);height:34px;max-width:calc(var(--game-width) - 210px);padding:3px 7px;gap:7px;border-radius:10px}
.touch-device.playing .scoreboard .team-name{font-size:7px;white-space:nowrap}.touch-device.playing .scoreboard>strong{font-size:18px}.touch-device.playing .scoreboard>div{padding:0 6px}.touch-device.playing #clock{font-size:13px}.touch-device.playing #match-label{font-size:6px;white-space:nowrap}
.touch-device.playing .network{position:fixed;top:calc(var(--game-top) + 9px);left:calc(var(--game-left) + var(--edge-left));font-size:8px;max-width:90px}.touch-device.playing #my-team{display:none}
.touch-device.playing #joystick{position:fixed;width:var(--joy);height:var(--joy);left:calc(var(--game-left) + var(--edge-left));bottom:auto;top:calc(var(--game-top) + var(--game-height) - var(--edge-bottom) - var(--joy));margin:0;background:#101e22c4}
.touch-device.playing #joystick i{width:38%;height:38%}.touch-device.playing #joystick span{bottom:5px;font-size:8px}
.touch-device.playing .touch-actions{position:fixed;left:auto;right:calc(100vw - var(--game-left) - var(--game-width) + var(--edge-right));top:calc(var(--game-top) + var(--game-height) - var(--edge-bottom) - var(--action-height));bottom:auto;display:grid;grid-template-columns:var(--action) var(--shot);grid-template-rows:var(--action) var(--shot);gap:5px;transform:none;align-items:center}
.touch-device.playing .touch-actions button{position:static;right:auto;bottom:auto;min-height:0;margin:0;width:var(--action);height:var(--action);font-size:7px;background:#15272de8;grid-column:auto;grid-row:auto}
.touch-device.playing .touch-actions #touch-tackle{grid-column:1;grid-row:1}.touch-device.playing .touch-actions #touch-pass{grid-column:1;grid-row:2}
.touch-device.playing .touch-actions #touch-sprint{position:static;right:auto;bottom:auto;grid-column:2;grid-row:1;width:var(--action);height:var(--action);font-size:7px}
.touch-device.playing .touch-actions #touch-shoot{grid-column:2;grid-row:2;width:var(--shot);height:var(--shot);font-size:10px;background:#d4f86bdd}
.touch-device.playing .power-bar{position:fixed;left:auto;right:calc(100vw - var(--game-left) - var(--game-width) + var(--edge-right));top:calc(var(--game-top) + var(--game-height) - var(--edge-bottom) - var(--dock-height));bottom:auto;transform:none;width:var(--power-width);max-width:none;gap:6px;display:flex}
.touch-device.playing .power-slot{flex:1 1 0;width:0;max-width:none;min-width:0;min-height:0;height:var(--power-height);padding:4px 3px;gap:2px;flex-direction:column;justify-content:center;border-radius:9px;text-align:center;background:#152534ed;overflow:hidden}
.touch-device.playing .power-slot img{width:18px;height:18px;flex:none}.touch-device.playing .power-slot kbd,.touch-device.playing .power-slot small{display:none}
.touch-device.playing .power-slot>div{width:100%;min-width:0;overflow:hidden}.touch-device.playing .power-slot strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:9px;line-height:10px;letter-spacing:0;overflow:hidden;overflow-wrap:anywhere;max-height:20px}
.touch-device.playing .power-slot i{height:3px}
.touch-device.playing .player-hud{position:fixed;left:calc(var(--game-left) + var(--edge-left));right:auto;top:calc(var(--game-top) + var(--game-height) - var(--edge-bottom) - var(--joy) - 15px);bottom:auto;width:var(--joy)}
.touch-device.playing .player-hud>span,.touch-device.playing .player-hud small,.touch-device.playing .keyboard-hints{display:none}.touch-device.playing .stamina-track{margin:0;height:4px}.touch-device.playing .charge-track{height:3px;margin-top:4px}
.touch-device.playing .toast{top:calc(var(--game-top) + 42px);bottom:auto;left:calc(var(--game-left) + var(--game-width)/2);transform:translateX(-50%);max-width:48vw;padding:7px 12px;font-size:11px;pointer-events:none}
.touch-device.playing .training{top:calc(var(--game-top) + 42px);left:calc(var(--game-left) + var(--game-width)/2);transform:translateX(-50%);width:min(380px,55vw);max-height:110px;overflow:auto;padding:8px 12px}.touch-device.playing .training p{font-size:10px;margin:5px 0}.touch-device.playing .training strong{font-size:10px}.touch-device.playing .training button{font-size:10px;padding:5px 8px}
.touch-device.playing .presence{top:42px;left:50%;max-width:50vw;font-size:9px;padding:6px}.touch-device.playing .game-banner{top:40%;pointer-events:none}.touch-device.playing .game-banner strong{font-size:42px}
.touch-device .modal{max-height:calc(var(--game-height,100dvh) - 24px);overflow:auto}
.touch-device.compact-game .scoreboard .team-name{display:none}
