/* Shared full-screen shell for Flick Kick matches and Free Kick. */
html:has(body.engine-screen),body.engine-screen{margin:0;width:100%;height:100%;overflow:hidden;background:#214b3b}
body.engine-screen .shell{position:relative;width:100%;height:100dvh;max-width:none;margin:0;padding:0}
body.engine-screen .stage{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-height:none!important;min-height:0!important;margin:0!important;border:0!important;border-radius:0!important}
body.engine-screen #pitch{display:block;width:100%!important;height:100%!important;outline:none}
body.engine-screen .screen-nav{position:absolute!important;inset:var(--joga-safe-top,env(safe-area-inset-top,0px)) 0 auto!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:6px!important;height:56px!important;min-height:56px!important;padding:6px 10px!important;margin:0!important;border:0!important;z-index:50!important;pointer-events:none;background:transparent!important;transform:none!important}
body.engine-screen .screen-nav>*{pointer-events:auto}
body.engine-screen .screen-nav button,body.engine-screen .screen-nav .screen-back{display:grid;place-items:center;min-width:44px;min-height:44px;height:44px;padding:6px 10px;border:1px solid #ffffff66;border-radius:8px;background:#153b3077;color:#fff;font:500 11px Inter,system-ui;text-decoration:none;backdrop-filter:blur(6px)}
body.engine-screen .screen-brand{display:flex;align-items:center;justify-content:center;gap:8px;min-width:0;flex:1;color:#fff;text-shadow:0 1px 4px #173d30}
body.engine-screen .screen-brand img{width:55px;height:auto;display:block}
body.engine-screen .screen-brand h1{font:650 12px Inter,system-ui;letter-spacing:0;white-space:nowrap;margin:0;color:#fff}
body.engine-screen .scoreboard,body.engine-screen.immersive .scoreboard{top:calc(64px + var(--joga-safe-top,env(safe-area-inset-top,0px)))!important;left:12px!important;right:auto!important;transform:none!important;width:auto!important;max-width:calc(100% - 24px);padding:6px 10px!important;gap:16px;border-radius:9px;background:#123b3059;color:#fff}
body.engine-screen .scoreboard .stat span{font-size:8px}.scoreboard .stat strong{font-size:20px}
body.engine-screen .scoreboard .team-score small{font-size:9px}body.engine-screen .scoreboard .team-score b{font-size:20px}
body.engine-screen .scoreboard .clock strong{font-size:16px}body.engine-screen .scoreboard .clock span{font-size:8px}
body.engine-screen .challenge-row{top:122px;left:12px;right:12px;padding:0;font-size:9px;gap:8px;pointer-events:none}
body.engine-screen .run-details{display:none}
body.engine-screen .game-tip{position:absolute;left:14px;right:14px;bottom:calc(10px + var(--joga-safe-bottom,env(safe-area-inset-bottom,0px)));z-index:3;margin:0;font-size:10px;line-height:1.4;color:#fff9dd;text-shadow:0 1px 4px #173d30;pointer-events:none}
body.engine-screen .match-state,body.engine-screen.immersive .match-state{top:133px!important;font-size:9px}
body.engine-screen .venue-badge{display:none}
body.engine-screen.immersive .map{top:150px!important;width:62px!important;height:104px!important;opacity:.72}
body.engine-screen #settings{position:fixed!important;inset:auto!important;top:50%!important;left:50%!important;transform:translate(-50%,-50%)!important;width:min(420px,calc(100% - 24px))!important;max-height:calc(100dvh - 32px)!important;overflow:auto!important;z-index:100!important;border:1px solid #c7d6be!important;border-radius:16px!important;background:#f1f3e9!important;color:#173d30!important;padding:20px!important;box-shadow:0 0 0 100vmax #102a2377}
body.engine-screen #settings h2{color:#173d30;font-size:24px}body.engine-screen #settings p,body.engine-screen #settings label,body.engine-screen #settings summary{color:#526c48}
body.engine-screen #settings button,body.engine-screen #settings select,body.engine-screen #settings a{min-height:44px;border:1px solid #bbceb0;background:#fff;color:#214d3b;border-radius:8px;padding:8px 12px}
body.engine-screen #settings .primary{background:#214d3b;color:#fff}
body.engine-screen #settings .shot-controls{position:static;display:flex;flex-wrap:wrap;gap:8px;padding:12px 0;background:transparent;color:#214d3b}
body.engine-screen #settings .shot-controls small{width:100%;color:#526c48}
body.engine-screen .overlay-card,body.engine-screen .overlay .card{max-height:calc(100dvh - 100px);overflow:auto}
body.engine-screen .mast:not(.screen-nav){display:none!important}
@media(max-width:640px){body.engine-screen .screen-brand{gap:6px}body.engine-screen .screen-brand img{width:48px}body.engine-screen .screen-nav{gap:5px!important}body.engine-screen .screen-nav button{padding:6px 8px}body.engine-screen #settings{padding:16px!important}}
@media(max-height:500px){body.engine-screen .scoreboard,body.engine-screen.immersive .scoreboard{top:58px!important}body.engine-screen .challenge-row{top:110px}body.engine-screen .match-state{top:115px!important}body.engine-screen.immersive .map{top:130px!important}}
body.engine-screen .screen-brand h1{display:block!important}
body.engine-screen #settings .pause-menu-heading{background:#f1f3e9!important;border-bottom:1px solid #cbd8c1;padding:8px 0 14px}
body.engine-screen #settings .pause-menu-heading h2{color:#173d30!important}
body.engine-screen #settings .pause-menu-heading .primary{background:#214d3b!important;color:#fff!important;box-shadow:none}
body.engine-screen.engine-match .dock{background:transparent!important;border:0!important;box-shadow:none!important;pointer-events:none}
body.engine-screen.engine-match .dock>*{pointer-events:auto}
/* Movement begins on the pitch; the ring appears at that pointer's origin. */
body.engine-screen.engine-match #joystick{display:none!important;pointer-events:none!important}
body.engine-screen.engine-match #joystick.floating-active{display:block!important;position:fixed!important;width:108px!important;height:108px!important;right:auto!important;bottom:auto!important;margin:0!important;z-index:55;transform:none!important}
body.engine-screen.engine-match .stage{touch-action:none}
body.engine-screen.engine-match .dock .face,body.engine-screen.engine-match .stage{touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
