:root{--ink:#f5f7fa;--muted:#a8b2bf;--lime:#c5f345;--glass:#101923db;--line:#ffffff19;--pad-opacity:.75;--pad-scale:1}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible{outline:2px solid var(--lime);outline-offset:4px}button{font-family:var(--sans)}
body:not(.is-playing)>.topbar{display:none}.hub.start{position:fixed;inset:0;z-index:25;display:flex;flex-direction:column;justify-content:stretch;align-items:stretch;max-width:none;margin:0;padding:0;gap:0;background:linear-gradient(115deg,#090f19f5 0%,#0c1622e6 55%,#162c3299 100%);overflow:auto;border:0;border-radius:0}.hub-nav{display:flex;align-items:center;gap:42px;padding:20px 4vw;border-bottom:1px solid var(--line);min-height:80px}.hub-brand{color:#fff;text-decoration:none;font-size:18px;font-weight:800;letter-spacing:-.05em;white-space:nowrap}.hub-brand span{color:var(--lime)}.hub-brand small{font-size:11px;border:1px solid #6c7d82;padding:3px 5px;margin-left:5px}.hub-nav [role=tablist]{display:flex;gap:26px}.hub-nav [role=tab]{border:0;background:none;color:#9ba8b5;padding:12px 0;font-size:13px;font-weight:800;position:relative;white-space:nowrap}.hub-nav [aria-selected=true]{color:#fff}.hub-nav [aria-selected=true]:after{content:'';position:absolute;left:0;right:0;bottom:-21px;height:3px;background:var(--lime)}.input-status{margin-left:auto;font-size:10px;color:#94a4b1}.input-status:before{content:'●';color:var(--lime);margin-right:7px}.hub-heading{padding:28px 4vw 16px}.hub .eyebrow{font-size:10px;letter-spacing:.2em;color:var(--lime);margin:0 0 8px}.hub h1{font:800 clamp(30px,4vw,52px)/1.1 var(--sans);letter-spacing:-.055em;margin:0}.hub-content{padding:0 4vw 24px;flex:1;min-height:0;overflow:auto}.match-panel,.plan-panel,.training-panel,.settings-panel{display:grid;grid-template-columns:1.1fr 1fr;gap:24px;max-width:1250px;margin:0 auto}.fixture-card{padding:25px;background:linear-gradient(130deg,#1d303cbf,#0f1b27b3);border:1px solid #7b92a333;position:relative;overflow:hidden;min-height:340px;display:flex;flex-direction:column}.fixture-card:after{content:'';position:absolute;width:300px;height:600px;right:-80px;top:-130px;transform:rotate(28deg);border-left:55px solid #c5f3450a;border-right:55px solid #c5f3450a;pointer-events:none}.fixture-top,.fixture-bottom{display:flex;justify-content:space-between;font-size:10px;font-weight:700;letter-spacing:.12em;color:#b3c0cb}.fixture-top span:last-child{color:var(--lime)}.fixture-teams{display:flex;align-items:center;justify-content:space-evenly;gap:20px;flex:1;padding:20px 0}.fixture-teams>div{display:flex;flex-direction:column;align-items:center;gap:9px}.fixture-teams strong{font-size:12px;letter-spacing:.1em}.fixture-teams small{font-size:11px;color:#a5b2be}.fixture-teams em{font:italic 800 24px var(--sans);color:#6c8192}.club-crest{width:72px;height:84px;display:grid;place-items:center;font:800 38px var(--sans);clip-path:polygon(0 0,100% 0,94% 70%,50% 100%,6% 70%);border-top:4px solid #ffffff70}.home-crest{background:linear-gradient(150deg,#b82844,#4a1425)}.away-crest{background:linear-gradient(150deg,#e5e9e5,#a7bbb7);color:#1c2b32}.fixture-card>p{font:500 clamp(20px,2.5vw,34px)/1.2 var(--sans);letter-spacing:-.035em;margin:24px 0 0;color:#8d9fab}.fixture-card>p strong{color:white;font-weight:800}.setup-panel{padding:22px;background:#111c28d9;border:1px solid var(--line);display:flex;flex-direction:column;gap:14px;min-width:0}.hub h2{font:800 16px var(--sans);margin:0 0 6px;letter-spacing:-.02em}.hub .field{display:flex;flex-direction:column;gap:6px}.hub .field>span{font-size:10px;font-weight:700;color:#9caab8;text-transform:uppercase;letter-spacing:.08em}.hub .seg{display:flex;gap:5px}.hub .seg button{flex:1;font-size:11px;min-height:33px;padding:7px 5px;border:1px solid #ffffff1c;border-radius:3px;background:#182634;color:#c6d0d7}.hub .seg button[aria-pressed=true]{border-color:var(--lime);color:var(--lime);background:#b2d84c12;box-shadow:inset 0 -2px var(--lime)}.hub-footer{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:16px 4vw;background:#0b131ef0;border-top:1px solid var(--line);flex-shrink:0}.hub-footer p{margin:0;display:flex;flex-direction:column;gap:6px;font-size:10px;color:#80929f}.hub-footer p b{color:#d1d9df;font-size:10px;letter-spacing:.1em}.hub-footer a{color:inherit}.primary{border-radius:3px!important;font-weight:800;box-shadow:none!important}.hub-footer .primary{width:250px;display:flex;align-items:center;justify-content:space-between;padding:15px 22px;background:var(--lime);color:#10170b;min-height:48px;border:0}.primary span{font-size:20px}.option{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:8px 0;border-bottom:1px solid #ffffff0d;min-width:0}.option>span{font-size:12px;color:#b6c0ca}.option select{max-width:61%;min-width:140px;padding:9px 7px;background:#1a2a39;color:#f1f5f7;border:1px solid #50616e;border-radius:3px;font-size:11px}.option input{width:45%;accent-color:var(--lime)}.muted{color:#91a2b1;font-size:12px;line-height:1.6}.tactical-note{margin-top:16px;border-left:2px solid var(--lime);padding:5px 15px;color:#afbdc8;font-size:12px;line-height:1.7}.tactical-note b{color:#fff}.pitch-wrap{padding:24px;background:#112722c9;border:1px solid #496c5c66}.pitch-heading{display:flex;justify-content:space-between;color:var(--lime)}#formation-pitch{height:310px;max-width:340px;margin:20px auto 0;border:1px solid #a6c7ae66;position:relative;background:repeating-linear-gradient(0deg,#59865b12 0 30px,#59865b24 30px 60px)}#formation-pitch:before{content:'';position:absolute;left:0;right:0;top:50%;border-top:1px solid #a6c7ae55}#formation-pitch:after{content:'';width:66px;height:66px;border:1px solid #a6c7ae55;border-radius:50%;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%)}#formation-pitch>i{position:absolute;z-index:1;width:28px;height:28px;border-radius:50%;background:#c5f345;color:#172018;transform:translate(-50%,50%);display:grid;place-items:center;font:800 10px var(--sans);box-shadow:0 4px 12px #0007}.training-lead{padding:30px;background:linear-gradient(130deg,#23343b,#10202b);border:1px solid var(--line)}.section-kicker{font-size:10px;letter-spacing:.16em;color:var(--lime)}.training-lead h2{font-size:44px;line-height:1.1;letter-spacing:-.05em;margin:24px 0 16px}.training-lead p{font-size:13px;color:#aebfca;line-height:1.8;max-width:350px}.training-lead button{display:block;width:100%;margin-top:12px;padding:12px;border:0}.secondary{background:#243747;color:#fff;font-weight:700;border-radius:3px}.lesson-list{list-style:none;margin:0;padding:0;display:grid;gap:9px}.lesson-list li{display:flex;align-items:center;gap:20px;padding:14px 20px;background:#12202ed9;border:1px solid var(--line)}.lesson-list li>b{color:var(--lime);font:800 22px var(--sans)}.lesson-list li>span{font-size:13px;font-weight:800}.lesson-list small{display:block;font-size:11px;font-weight:400;margin-top:4px;color:#93a6b5}
/* Broadcast HUD */
body.is-playing .back{width:34px;height:34px;padding:8px;border-radius:3px}.back span{display:none}.scorebug{left:66px;top:14px;border-radius:2px;padding:0 10px;height:36px;background:#0b1725ed;border:0;border-bottom:2px solid var(--lime);gap:10px;font-size:11px}.scorebug b{border-radius:0;background:#e8eef1;padding:8px 10px;font-size:16px}.scorebug i{width:4px;border-radius:0}.scorebug em{padding-left:5px;font-size:12px}.top-actions button,.top-actions .menu,.top-actions #btn-camera{border-radius:3px;background:#0b1725d9}.phase{display:none!important}#radar{left:50%;transform:translateX(-50%);bottom:20px;width:130px;height:85px;border-radius:1px}#player-info,#opponent-info{position:fixed;display:none;bottom:26px;left:24px;min-width:195px;padding:10px 14px;background:linear-gradient(90deg,#0d1a2cf2,#0d1a2c9c);border-left:3px solid var(--lime);font-size:11px;color:white;text-transform:uppercase;letter-spacing:.03em;z-index:10}#player-info:after{content:'';display:block;margin-top:6px;width:var(--energy,100%);height:3px;background:var(--lime)}#opponent-info{left:auto;right:24px;text-align:right;border-left:0;border-right:3px solid #eeeeee;min-width:170px}body.is-playing #opponent-info{display:block}.keys-hint{bottom:3px;font-size:9px;padding:2px 8px;background:none;max-width:90vw;overflow:hidden;text-overflow:ellipsis}#technique{bottom:82px;right:24px;border-radius:3px;font-size:9px;min-height:28px;padding:6px 10px}#mentality-bar{display:none;position:fixed;z-index:12;left:24px;bottom:85px;gap:4px;align-items:center;background:#0c1a2cbb;padding:4px;font-size:10px}body.is-playing #mentality-bar{display:flex}#mentality-bar button{background:#ffffff0c;border:1px solid #ffffff22;width:25px;height:25px;color:#c9d8e1}#mentality-bar button[aria-pressed=true]{color:var(--lime);border-color:var(--lime)}#mentality-bar span{width:65px;text-align:center}body[data-trainer=off] .keys-hint{display:none}.result-card{background:#101c29f5!important;border:1px solid #66798c55!important;border-radius:4px!important;min-width:min(440px,90vw)}.match-stats{margin:18px 0}.match-stats>div{display:grid;grid-template-columns:60px 1fr 60px;gap:16px;padding:9px 0;border-bottom:1px solid #ffffff10;text-align:center;font-size:12px}.match-stats span{color:#9fb1bf}.match-stats b{color:#f0f4f7}.pause-tools{display:flex;gap:8px;margin:15px 0}.pause-tools button,.result-actions button{background:#233748;border:1px solid #ffffff22;color:#fff;padding:10px;border-radius:3px}.result-actions .primary{background:var(--lime);color:#15200e}
/* Five contextual touch controls; held pointers never leak between buttons. */
.controls{opacity:0;padding:0 22px 20px}.pad{width:270px;height:182px;transform:scale(var(--pad-scale));transform-origin:bottom right;opacity:var(--pad-opacity)}.act{width:70px;height:70px;border:1.5px solid #ffffff90;box-shadow:inset 0 0 15px #ffffff0a,0 3px 12px #0002;background:#132b3b55;backdrop-filter:none;border-radius:50%}.act b{position:static;font-size:10px;letter-spacing:0;align-self:center;line-height:1.15;padding:0 4px}.act span{position:absolute;bottom:9px;font-size:9px;margin:0;opacity:.65}.act .power{left:17px;right:17px;bottom:8px;height:3px}.act:has(.power) span{display:none}#btn-a{right:0;bottom:0}#btn-b{right:0;bottom:94px;width:80px;height:80px;background:#4e672d55}#btn-through{right:92px;bottom:48px;width:66px;height:66px}#btn-lob{right:184px;bottom:0;width:64px;height:64px}#btn-c{right:180px;bottom:100px;width:70px;height:70px}.stick{width:130px;height:130px;background:#ffffff06;border:1px solid #ffffff55;backdrop-filter:none;opacity:var(--pad-opacity)}.stick i{width:48px;height:48px;background:#e0e9ee70;box-shadow:none;border:1px solid #ffffff99}.act.is-down{background:#c5f34565;transform:scale(.96)}
#coach{position:fixed;top:68px;left:50%;transform:translateX(-50%);z-index:19;background:#0b1929ef;border-left:3px solid var(--lime);padding:14px 18px;width:min(580px,90vw);display:flex;align-items:center;gap:20px;box-shadow:0 8px 30px #0004}#coach-count{font-size:9px;color:var(--lime);letter-spacing:.14em}#coach h2{font-size:17px;margin:5px 0}#coach p{font-size:11px;line-height:1.5;color:#b8c6d3;margin:0}.coach-track{height:3px;background:#ffffff20;margin-top:10px}.coach-track i{height:100%;display:block;background:var(--lime);width:0;transition:width .12s}.coach-actions{display:grid;gap:6px;flex-shrink:0}.coach-actions button{background:#243747;border:1px solid #ffffff30;color:#fff;font-size:10px;padding:7px}.is-training #mentality-bar{display:none}#options-dialog{position:fixed;inset:0;z-index:45;display:grid;place-items:center;padding:20px;background:#050a12c9;backdrop-filter:blur(12px);overflow:auto;touch-action:pan-y}.options-card{width:min(920px,100%);max-height:90dvh;overflow:auto;background:#111e2c;border:1px solid #536a7d;padding:28px}.options-card>header{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #ffffff20;padding-bottom:20px;margin-bottom:20px}.options-card small{font-size:10px;color:var(--lime);letter-spacing:.1em}.options-card h2{font-size:26px;letter-spacing:-.04em;margin:6px 0 0}.options-card header button{font-size:30px;border:0;background:none;color:white;width:40px;height:40px}.options-grid{display:grid;grid-template-columns:1fr 1fr;gap:35px}.options-grid h3{font-size:14px}.command-list p{font-size:11px;line-height:1.7;color:#a9bdcd}.command-list dl{display:grid;grid-template-columns:1fr 1.1fr;font-size:11px;gap:10px}.command-list dt{color:#a9bdcd}.command-list dd{margin:0}.options-card,.hub{scrollbar-width:thin;scrollbar-color:#465e70 #111d2a}
body[data-match-state="goal"] :is(#opponent-info,#mentality-bar,#coach),body[data-match-state="walkout"] :is(#opponent-info,#mentality-bar){opacity:0;pointer-events:none}
@media(pointer:coarse){#player-info{bottom:164px;left:22px;min-width:145px;font-size:9px;padding:7px 10px}#opponent-info{display:none!important}#radar{bottom:14px;width:100px;height:65px}#technique{right:118px;bottom:22px;font-size:8px;min-height:26px;padding:5px 6px}#mentality-bar{bottom:14px;left:50%;transform:translateX(-50%);display:none!important}.keys-hint{display:none}.controls{display:flex}body.is-playing .controls{opacity:1}}
@media(max-width:900px){.hub-nav{padding:14px 20px;gap:24px;min-height:60px}.hub-nav [role=tablist]{gap:18px}.hub-nav [role=tab]{font-size:11px;padding:8px 0}.hub-nav [aria-selected=true]:after{bottom:-15px}.input-status{display:none}.hub-heading{padding:18px 20px 12px}.hub-content{padding:0 20px 16px}.match-panel,.plan-panel,.settings-panel,.training-panel{gap:14px}.setup-panel{padding:15px;gap:10px}.fixture-card{min-height:280px;padding:18px}.fixture-teams{gap:10px}.hub .seg button{font-size:10px}.hub-footer{padding:12px 20px}.hub-footer .primary{min-height:42px;padding:11px 18px;width:210px}.scorebug{left:54px;right:auto;top:10px;height:32px;font-size:9px;gap:6px}.scorebug>span{max-width:75px}.scorebug b{font-size:14px;padding:7px}.scorebug em{font-size:10px}.top-actions #btn-camera{min-width:62px}.topbar{padding:10px 12px}}
@media(max-width:600px) and (orientation:portrait){.hub-nav{flex-wrap:wrap;gap:12px;padding:15px 18px 10px}.hub-brand{width:100%;font-size:16px}.hub-nav [role=tablist]{width:100%;justify-content:space-between}.hub-nav [aria-selected=true]:after{bottom:-11px}.hub-heading{padding:20px 18px 14px}.hub h1{font-size:34px}.hub-content{padding:0 18px 18px}.match-panel,.plan-panel,.settings-panel,.training-panel{grid-template-columns:1fr}.fixture-card{min-height:185px;padding:14px}.fixture-teams{padding:15px 0}.club-crest{width:45px;height:53px;font-size:25px}.fixture-card>p{display:none}.fixture-teams strong{font-size:10px}.fixture-teams small{font-size:10px}.fixture-top,.fixture-bottom{font-size:8px}.hub-footer{padding:12px 18px}.hub-footer p b{font-size:8px}.hub-footer p span{font-size:8px;max-width:140px}.hub-footer .primary{width:145px}.setup-panel{gap:12px}.hub .seg button{min-height:36px}.scorebug{top:57px;left:12px;right:12px;justify-content:center}.top-actions{margin-left:auto}.scorebug>span{max-width:100px}.controls{padding:0 12px 20px}.stick{width:92px;height:92px}.stick i{width:38px;height:38px}.pad{width:228px;height:176px;transform:scale(calc(var(--pad-scale)*.9));transform-origin:bottom right}#btn-c{right:158px;bottom:94px;width:62px;height:62px}#btn-lob{right:158px;bottom:0;width:58px;height:58px}#btn-through{right:82px;bottom:50px;width:60px;height:60px}#btn-a{width:64px;height:64px}#btn-b{width:70px;height:70px}#technique{bottom:25px;right:84px;font-size:7px;min-width:50px}#player-info{bottom:212px;left:12px}#radar{bottom:213px;left:auto;right:12px;transform:none;width:84px;height:55px}#coach{top:102px;padding:10px 12px;width:calc(100% - 24px);gap:8px}#coach h2{font-size:14px}#coach p{font-size:10px}.coach-actions{max-width:65px}.options-grid{grid-template-columns:1fr}.options-card{padding:18px}.options-card h2{font-size:22px}.result-card{padding:20px!important}.training-lead h2{font-size:36px}}
@media(max-height:550px) and (orientation:landscape){.hub-nav{min-height:45px;padding:8px 22px;gap:30px}.hub-nav [aria-selected=true]:after{bottom:-9px}.hub-heading{padding:12px 22px 9px}.hub h1{font-size:27px}.hub .eyebrow{font-size:8px;margin-bottom:4px}.hub-content{padding:0 22px 12px}.hub-footer{padding:8px 22px}.hub-footer .primary{min-height:36px;padding:8px 16px}.hub-footer p{gap:2px}.fixture-card{min-height:190px;padding:14px}.fixture-card>p{display:none}.club-crest{width:48px;height:58px;font-size:27px}.fixture-teams{padding:12px 0}.setup-panel{padding:12px;gap:8px}.setup-panel h2{font-size:13px}.hub .field{gap:4px}.hub .field>span{font-size:8px}.hub .seg button{min-height:27px;font-size:9px;padding:4px}.match-panel{grid-template-columns:.9fr 1.1fr}.setup-panel .option{padding:5px 0}.option>span{font-size:10px}.option select{font-size:10px;padding:6px}.training-lead{padding:18px}.training-lead h2{font-size:28px;margin:10px 0}.lesson-list{gap:5px}.lesson-list li{padding:9px 14px}.lesson-list li>b{font-size:16px}.lesson-list small{font-size:9px}#formation-pitch{height:230px}.pad{transform:scale(calc(var(--pad-scale)*.76));transform-origin:bottom right}.controls{padding:0 16px 13px}.stick{width:100px;height:100px}.stick i{width:40px;height:40px}#player-info{bottom:125px;left:16px;padding:5px 8px;font-size:8px}#technique{right:88px;bottom:16px;min-height:24px;font-size:7px;padding:4px 5px}#radar{width:94px;height:61px;bottom:13px}#coach{top:52px;width:480px;padding:9px 12px}#coach h2{font-size:14px;margin:3px 0}#coach p{font-size:10px}.result-card{padding:15px!important}.match-stats{margin:8px 0}.match-stats>div{padding:5px 0}.result-card h2{font-size:22px}.pause-tools{margin:8px 0}.options-card{max-height:94dvh;padding:18px}}
@media(max-height:350px) and (orientation:landscape){.hub-heading{padding-top:7px;padding-bottom:7px}.hub h1{font-size:23px}.hub-heading .eyebrow{display:none}.hub-nav{min-height:40px}.hub-footer p span{display:none}.scorebug>span{max-width:48px}.scorebug{gap:4px;padding:0 5px}.top-actions #btn-camera{min-width:56px;font-size:8px}.top-actions button{width:28px;height:28px}.top-actions .menu{padding:0 7px;font-size:10px}.topbar{gap:5px}.pad{transform:scale(calc(var(--pad-scale)*.68))}.stick{width:86px;height:86px}#player-info{bottom:106px}#technique{right:80px}.keys-hint{display:none}}
/* The hub is immediately opaque once ready; the canvas may keep moving behind it. */
.hub.start{transition:none}
@media(pointer:coarse){.act span{display:none}}

.act.is-active{background:#a8d93b55;border-color:var(--lime)}

#action-meter{position:fixed;z-index:15;left:24px;bottom:126px;width:160px;background:#102033ed;padding:8px 10px;border-left:2px solid var(--lime)}#action-meter span{font-size:8px;font-weight:800;letter-spacing:.1em}#action-meter>i{display:block;background:#ffffff20;height:5px;margin-top:5px}#action-meter-fill{display:block;width:0;height:100%;background:linear-gradient(90deg,#c5f345 0%,#c5f345 70%,#ffc64a 85%,#ff634a 100%)}
@media(pointer:coarse){#action-meter{left:22px;bottom:205px;width:130px}}@media(max-height:550px) and (orientation:landscape){#action-meter{left:16px;bottom:161px}}@media(max-width:600px) and (orientation:portrait){#action-meter{left:12px;bottom:253px}}
