*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#080e1b;color:#edf5f6;font-family:Arial,Helvetica,sans-serif}button,select{font:inherit;color:inherit}button{cursor:pointer;border:1px solid #637185;background:#182438;border-radius:4px;touch-action:manipulation}button:focus-visible,select:focus-visible{outline:3px solid #fff0ad;outline-offset:3px}button:disabled{opacity:.5;cursor:wait}[hidden]{display:none!important}#shell{height:100%;height:100dvh;display:flex;flex-direction:column;position:relative;background:#080e1b;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}#stage{position:relative;flex:1;min-height:0;overflow:hidden}#pitch{width:100%;height:100%;display:block;outline:none}button.primary{background:#f4d37c;color:#161c29;border:0;padding:14px 27px;text-transform:uppercase;font-weight:900;font-size:17px;letter-spacing:.07em;box-shadow:0 4px 0 #a46d38;min-height:48px}.tools{position:absolute;z-index:25;top:max(8px,env(safe-area-inset-top));right:max(10px,env(safe-area-inset-right));display:flex;gap:5px}.tools button,.tools select{height:32px;min-width:32px;background:#101a2bec;border:1px solid #59687b;border-radius:4px}.tools button{font-size:20px}.tools select{font-size:13px}html.immersive #full{position:fixed;left:max(8px,env(safe-area-inset-left));top:max(8px,env(safe-area-inset-top))}html.embedded.immersive #full{display:none}.tools #touchToggle{font-size:16px}.eyebrow{font-size:12px;letter-spacing:.16em;font-weight:800;color:#a5bdcd}.selection{position:absolute;inset:0;background:linear-gradient(120deg,#0b1424f5,#14273bf4);display:flex;flex-direction:column;padding:25px 34px 16px;gap:14px;overflow:auto;--team:#ec376b}.masthead{display:flex;align-items:center;justify-content:space-between;padding-right:175px;flex-shrink:0}.masthead h1{font-size:clamp(28px,4.4vw,56px);font-weight:1000;font-style:italic;letter-spacing:-.07em;margin:6px 0 0;text-shadow:3px 3px #02050a}.masthead em{color:#f4d37c;font-style:inherit}.edition{font-weight:900;letter-spacing:.17em;font-size:12px;line-height:1.4;color:#7591a6}.choose-body{display:grid;grid-template-columns:1.2fr 1fr;gap:24px;flex:1;min-height:200px;max-height:370px}.squad{position:relative;overflow:hidden;min-height:210px;background:linear-gradient(120deg,#0a1018,#1c3142);border-top:3px solid var(--team);display:flex;flex-direction:column;justify-content:space-between}.portrait{background-image:url('assets/portraits.png');background-size:500% 200%;background-repeat:no-repeat}#squadPortrait{position:absolute;right:-10px;top:0;bottom:0;width:48%;opacity:.4;mask-image:linear-gradient(to right,transparent,#000 35%)}.squad-heading{position:relative;padding:18px 22px 0;z-index:1}.squad h2{font-size:clamp(25px,3vw,42px);text-transform:uppercase;margin:7px 0;color:var(--team);font-weight:900;font-style:italic;letter-spacing:-.04em}#lineup{width:100%;height:auto;max-height:205px;object-fit:contain;position:relative;z-index:1}.squad-foot{position:relative;display:flex;justify-content:space-between;gap:8px;padding:9px 18px;background:#0a1227;font-size:12px;color:#a9c1cf}.dossier{padding:10px 0;align-self:center}.dossier h3{font-size:clamp(20px,2.2vw,29px);line-height:1.05;margin:9px 0 12px;color:var(--team);font-style:italic}.dossier p{font-size:15px;line-height:1.4;margin:8px 0;max-width:460px}.power-rules{display:inline-block;background:#ffffff0b;border-left:2px solid var(--team);padding:8px 10px;font-size:12px;font-weight:700;color:#f4d37c}.controls-guide{border-top:1px solid #52617377;margin-top:16px;padding-top:11px}.controls-guide strong{font-size:12px;letter-spacing:.1em}.controls-guide p{font-size:13px;color:#bfd1da;line-height:1.55}.controls-guide small{font-size:12px;color:#8ca9ba;line-height:1.4;display:block}.roster{display:grid;grid-template-columns:repeat(10,1fr);gap:6px;flex-shrink:0}.roster button{position:relative;padding:0;background:#101a2c;border:2px solid #263b50;overflow:hidden;min-width:0;border-radius:0}.roster button .mini{height:clamp(55px,9vh,95px);display:block;background-size:500% 200%;background-image:url('assets/portraits.png')}.roster button strong{display:block;font-size:11px;line-height:1.15;padding:6px 2px;min-height:36px;overflow-wrap:anywhere}.roster button[aria-pressed=true]{border-color:#ffe19a;box-shadow:0 0 18px #e9b55238;transform:translateY(-4px)}.roster button[aria-pressed=true]:after{content:'1P';position:absolute;left:3px;top:3px;background:#f4d37c;color:#151924;font-size:11px;font-weight:900;padding:3px}.selection-footer{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-shrink:0}.selection-footer p{font-size:14px;line-height:1.4;margin:0;max-width:540px;color:#bed0d9}.selection-footer strong{color:#f4d37c}#loading{margin:0;font-size:13px;color:#ffca82;min-height:0}#loading:empty{display:none}
#hud{position:absolute;z-index:2;top:12px;left:50%;transform:translateX(-50%);width:min(670px,75%);text-align:center;pointer-events:none}#round{font-size:11px;color:#b3c8d7;letter-spacing:.15em;margin-bottom:4px;font-weight:800}.scoreboard{display:grid;grid-template-columns:1fr 126px 1fr;background:#0b162ae8;border:2px solid #bcc8d0;transform:skewX(-4deg);box-shadow:0 4px 0 #020913}.scoreboard .team{display:flex;flex-direction:column;justify-content:center;padding:7px 5px;font-weight:900;text-transform:uppercase;font-size:16px;line-height:1.05}.team small{font-size:10px;letter-spacing:.1em;margin-top:4px;opacity:.8}.home{border-bottom:4px solid #69dcf2}.away{border-bottom:4px solid #ed6a7b}#score{white-space:nowrap;display:flex;align-items:center;justify-content:center;font-size:39px;line-height:1.2;background:#020b18;letter-spacing:5px;color:#ffe19a;padding-left:5px}#score i{font-style:normal;color:#607184;font-size:25px}.clock{display:inline-block;background:#e7d69c;color:#071322;font-variant-numeric:tabular-nums;font-weight:900;font-size:24px;letter-spacing:.09em;padding:3px 17px;box-shadow:0 3px 0 #080e1b}.clock.urgent{background:#ff646e;color:white;animation:blink .5s alternate infinite}#powerStatus{display:flex;align-items:center;justify-content:space-between;font-size:10px;font-weight:800;margin-top:4px;color:#e9d69a}#powerStatus span{background:#0b162bcc;padding:4px 8px;border:1px solid #526276}#powerTimer{font-size:17px;color:#fff;background:#281b3edd;padding:4px 9px;min-width:0}#powerTimer:empty{display:none}.cut{position:absolute;inset:0;z-index:10;pointer-events:none;display:flex;align-items:center;justify-content:center;background:linear-gradient(150deg,#060d1966,#030712e8);overflow:hidden}.cut:before{content:'';position:absolute;inset:26% -15%;transform:rotate(-8deg);background:linear-gradient(90deg,var(--cut-color,#d6b363),#132438);border-block:5px solid #ffffff70;animation:slash .22s ease-out}.cut-art{position:absolute;left:9%;top:8%;height:84%;width:33%;filter:drop-shadow(5px 7px 0 #071426);animation:cutIn .25s cubic-bezier(.1,.7,.2,1);mask-image:linear-gradient(to top,transparent,#000 12%,#000 92%,transparent)}.cut-copy{position:relative;margin-left:30%;width:60%;padding:15px;animation:copyIn .28s ease-out;text-shadow:4px 4px #071021}.cut-copy small{color:#ffdf8d;letter-spacing:.2em;font-weight:900;font-size:16px}.cut-copy h2{font-size:clamp(40px,8vw,95px);font-style:italic;line-height:.9;margin:14px 0;letter-spacing:-.07em}.cut-copy p{font-size:clamp(16px,2.2vw,27px);font-weight:800;max-width:500px}.cut.vs .cut-art{left:14%;width:28%}.cut.goal .cut-copy h2{color:#ffe39c;font-size:clamp(60px,12vw,150px)}.result,.pause-panel{position:absolute;z-index:15;inset:0;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:25px;background:#071222ed}.result{animation:resultIn .45s ease-out}.result h2{font-size:clamp(36px,7vw,84px);font-style:italic;margin:14px 0;color:#ffe19a;letter-spacing:-.05em}.result.lost{background:radial-gradient(ellipse at center,#42232ce8,#080e1afc)}.result.lost h2{color:#ff8290}.result small{font-weight:900;font-size:14px;letter-spacing:.2em;color:#9fb8c9}.result>strong{font-size:48px}.result p{max-width:550px;line-height:1.5;font-size:17px}.result #journey{display:flex;gap:7px;margin:15px 0 25px;max-width:100%;flex-wrap:wrap;justify-content:center}.journey-team{width:49px;height:62px;background-size:500% 200%;background-image:url('assets/portraits.png');filter:grayscale(1);opacity:.5;border:2px solid #557084;position:relative}.journey-team.done{filter:none;opacity:1;border-color:#f4d37c}.journey-team.done:after{content:'✓';position:absolute;right:0;bottom:0;background:#f4d37c;color:#13202b;padding:0 3px;font-weight:900}.pause-panel{gap:16px}.pause-panel h2{font-size:44px;margin:0;color:#f4d37c}.pause-panel p{max-width:510px;font-size:15px;line-height:1.5}.pause-panel #quit{padding:10px 18px}.cup-result{background:transparent;justify-content:flex-end;pointer-events:none}.cup-result>*:not(button){display:none}.cup-result button{pointer-events:auto;margin-bottom:10px}#restartHint{position:absolute;bottom:25px;left:50%;transform:translateX(-50%);background:#081422e8;border-left:4px solid #f4d37c;padding:10px 20px;color:#fff;white-space:nowrap;font-weight:800;font-size:15px}#announcement{position:absolute;bottom:18px;left:50%;transform:translateX(-50%);color:#fff2b6;text-shadow:2px 2px #000;font-weight:800;pointer-events:none}
#touch{height:160px;flex-shrink:0;display:none;position:relative;align-items:center;justify-content:space-between;padding:10px 7%;background:linear-gradient(#13263a,#080f1c);border-top:1px solid #40516a;user-select:none;touch-action:none}html.touch #touch{display:flex}html.selecting #touch{display:none}#stick{height:122px;width:122px;border:2px solid #3f5671;border-radius:50%;position:relative;background:radial-gradient(circle,#243b53,#0b182a);touch-action:none;flex-shrink:0}.stick-arrows{position:absolute;inset:0;display:grid;place-items:center;font-size:95px;color:#4c627c88}#knob{position:absolute;width:53px;height:53px;border-radius:50%;left:calc(50% - 26px);top:calc(50% - 26px);background:linear-gradient(#66849e,#2e4560);border:2px solid #9fb8c6;box-shadow:0 5px 12px #0007;pointer-events:none}.action-pad{display:grid;grid-template-columns:repeat(2,80px);gap:9px;transform:rotate(-7deg)}.action-pad button{width:80px;min-height:58px;border-radius:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;box-shadow:0 4px #02050c;background:#16283b;touch-action:none}.action-pad b{font-size:17px}.action-pad span{font-size:10px;text-transform:uppercase;font-weight:800;line-height:1.05}.btn-low{border-color:#77d89f}.btn-low b{color:#77d89f}.btn-high{border-color:#78b5fa}.btn-high b{color:#78b5fa}.btn-shot{border-color:#f18e9c}.btn-shot b{color:#f18e9c}.btn-power{border-color:#f5d77b}.btn-power b{color:#f5d77b}.action-pad button:active{transform:translateY(3px);box-shadow:none;background:#405770}#keeper{position:absolute;left:50%;top:55%;transform:translate(-50%,-50%);font-size:13px;font-weight:900;padding:11px;border:1px solid #647a8e;background:#23394e}
@keyframes cutIn{from{transform:translateX(-100%) rotate(-12deg);opacity:0}to{transform:none;opacity:1}}@keyframes copyIn{from{transform:translateX(80%)}to{transform:none}}@keyframes slash{from{transform:translateX(-100%) rotate(-8deg)}to{transform:rotate(-8deg)}}@keyframes resultIn{from{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0)}}@keyframes blink{to{color:#ffd999;background:#812938}}
@media(max-width:700px){.selection{padding:45px 14px 15px;gap:12px}.masthead{padding-right:0}.masthead h1{font-size:36px}.edition{display:none}.choose-body{grid-template-columns:1fr;gap:10px;max-height:none;min-height:0;flex:none}.squad{min-height:180px}.squad-heading{padding:12px 16px 0}.squad h2{font-size:29px;margin:5px 0}#lineup{max-height:145px}.squad-foot{padding:6px 12px;font-size:10px}.dossier{padding:2px 2px}.dossier h3{font-size:22px;margin:5px 0}.dossier p{font-size:14px;margin:5px 0}.controls-guide{margin-top:9px;padding-top:8px}.controls-guide p{font-size:12px}.power-rules{font-size:11px;padding:5px 8px}.roster{grid-template-columns:repeat(5,1fr);gap:6px}.roster button .mini{height:57px}.roster button strong{font-size:10px;min-height:31px;padding:4px 1px}.selection-footer{flex-direction:column;gap:10px;align-items:stretch}.selection-footer p{font-size:13px}.selection-footer .primary{width:100%}#hud{top:48px;width:94%;max-width:550px}.scoreboard{grid-template-columns:1fr 100px 1fr}.scoreboard .team{font-size:12px}#score{font-size:30px;letter-spacing:3px}.clock{font-size:21px}#round{font-size:10px}.cut-art{left:0;width:42%;top:20%;height:60%}.cut-copy{margin-left:28%;width:70%}.cut-copy h2{font-size:48px}.cut-copy small{font-size:12px}.cut-copy p{font-size:18px}#restartHint{font-size:12px;padding:8px 9px;max-width:98%;white-space:normal;text-align:center}.result p{font-size:15px}.journey-team{width:35px;height:49px}.result #journey{gap:4px}.tools{top:7px}#touch{padding:8px 7%;height:160px}}
@media(orientation:landscape) and (max-height:520px){.selection{padding:12px 20px 10px;gap:8px}.masthead{padding-right:180px}.masthead h1{font-size:28px;margin:2px 0}.masthead .eyebrow{font-size:10px}.choose-body{grid-template-columns:1.1fr 1fr;gap:18px;min-height:160px;max-height:190px}.squad{min-height:140px}.squad-heading{padding:8px 12px 0}.squad h2{font-size:25px;margin:3px 0}#lineup{max-height:105px}.squad-foot{font-size:10px;padding:5px 8px}.dossier h3{font-size:19px;margin:4px 0}.dossier p{font-size:12px;margin:3px 0}.dossier .eyebrow{font-size:10px}.power-rules{font-size:10px;padding:4px 6px}.controls-guide{margin-top:6px;padding-top:5px}.controls-guide strong{font-size:10px}.controls-guide p,.controls-guide small{font-size:10px;line-height:1.2}.roster{grid-template-columns:repeat(10,1fr)}.roster button .mini{height:42px}.roster button strong{font-size:9px;min-height:24px;padding:3px 1px}.selection-footer{flex-direction:row;gap:12px}.selection-footer p{font-size:11px}.selection-footer .primary{font-size:13px;padding:9px 18px;min-height:36px;width:auto;white-space:nowrap}#hud{top:7px;width:60%;max-width:560px}.scoreboard{grid-template-columns:1fr 96px 1fr}.scoreboard .team{font-size:12px;padding:4px}#score{font-size:27px}.clock{font-size:17px;padding:2px 14px}#round{font-size:9px;margin-bottom:2px}#powerStatus{font-size:9px}#powerTimer{font-size:13px}.tools button,.tools select{height:29px;min-width:29px}html.touch #shell{flex-direction:row}html.touch #stage{width:calc(100% - 190px);height:100%}html.touch #touch{height:100%;width:190px;flex-direction:column;justify-content:center;gap:18px;padding:8px;border-top:0;border-left:1px solid #40516a}#stick{width:88px;height:88px}.stick-arrows{font-size:67px}#knob{width:42px;height:42px;left:calc(50% - 21px);top:calc(50% - 21px)}.action-pad{grid-template-columns:repeat(2,67px);gap:8px}.action-pad button{width:67px;min-height:44px}.action-pad b{font-size:14px}.action-pad span{font-size:9px}#keeper{left:87%;top:16%;font-size:10px;padding:7px}html.selecting #stage{width:100%}.result h2{font-size:40px;margin:8px 0}.result>strong{font-size:30px}.result p{font-size:13px;margin:8px 0}.result #journey{margin:8px 0 12px}.journey-team{width:36px;height:45px}.cut-copy h2{font-size:53px}.cut-copy p{font-size:19px}.cut-copy small{font-size:12px}}
@media(prefers-reduced-motion:reduce){.cut:before,.cut-art,.cut-copy,.result,.clock.urgent{animation:none}}

/* A compact broadcast strip keeps the enlarged playing surface unobstructed. */
#hud{width:min(570px,76%);top:8px}.scoreboard{grid-template-columns:minmax(0,1fr) 66px 66px minmax(0,1fr);transform:none;border:1px solid #d4dbb9}.scoreboard .team{font-size:13px;padding:5px;min-height:38px}.team small{display:none}#score{font-size:26px;letter-spacing:2px;padding:0}.clock{font-size:19px;letter-spacing:.01em;padding:0;display:flex;align-items:center;justify-content:center;box-shadow:none;border-left:1px solid #748570}#round{font-size:9px;margin-bottom:2px}#powerStatus{font-size:8px;margin-top:3px}#powerStatus span{padding:2px 5px}#powerTimer{font-size:12px;padding:2px 7px}
@media(max-width:700px) and (orientation:portrait){#hud{top:43px;width:96%}.scoreboard{grid-template-columns:minmax(0,1fr) 52px 55px minmax(0,1fr)}.scoreboard .team{font-size:10px;min-height:34px}#score{font-size:23px}.clock{font-size:18px}}
@media(orientation:landscape) and (max-height:520px){#hud{width:72%;top:5px}.scoreboard .team{font-size:10px;min-height:27px}.scoreboard{grid-template-columns:minmax(0,1fr) 51px 54px minmax(0,1fr)}#score{font-size:23px}.clock{font-size:17px}#round{font-size:8px}#powerStatus{font-size:7px}}

@media(min-width:900px) and (min-height:600px){#hud{width:min(760px,72%)}.scoreboard{grid-template-columns:minmax(0,1fr) 86px 86px minmax(0,1fr)}.scoreboard .team{font-size:17px;min-height:46px}#score{font-size:34px}.clock{font-size:28px}#round{font-size:10px}#powerStatus{font-size:10px}#powerTimer{font-size:16px}}

/* Native low-resolution arcade framebuffer, enlarged with hard pixels. */
#pitch,#lineup,.portrait,.mini,.cut-art,.journey-team{image-rendering:pixelated;image-rendering:crisp-edges}#hud,.masthead,.squad-heading,.dossier h3,.cut-copy,.result h2{font-family:"Courier New",monospace;font-weight:900}.scoreboard{border:2px solid #f6e4a2;box-shadow:3px 3px 0 #071021}.clock{color:#ffed8c;background:#171c28;text-shadow:2px 2px #000}#score{background:#171c28;color:#fff}.scoreboard .team{border-radius:0}.cut-copy h2{text-shadow:4px 4px 0 #111a2a,7px 7px 0 #e99232}.cut-art{filter:none!important}

/* Match scenes are rendered in the native pixel framebuffer. */
.cut,.result,.result.lost{background:transparent;animation:none}.cut:before{display:none}.cut-art,.cut-copy,.result>*:not(button){position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);opacity:0}.result{justify-content:flex-end;padding:12px}.result button{font-family:monospace;border-radius:0;box-shadow:4px 4px 0 #050a15;font-size:14px;padding:9px 20px}.scoreboard{transform:none}.pause-panel{background:#0c182c}.primary,.roster button,.squad,.dossier{border-radius:0}*{scroll-behavior:auto}

/* Arcade input surfaces must not trigger iOS text selection or tap highlights. */
html,body,#shell,button,#touch,#touch *{ -webkit-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent; }
#pitch{touch-action:none}button img{pointer-events:none;-webkit-user-drag:none}
#audioEntry{position:absolute;inset:0;z-index:50;display:grid;place-content:center;gap:22px;text-align:center;background:#0b1323f5;font-family:monospace;padding:24px}
#audioEntry strong{font-size:clamp(28px,5vw,54px);color:#ffe19a}#audioEntry button{font-size:20px;padding:18px 28px;background:#f4d37c;color:#101827;border:0;font-weight:900}
@media(orientation:landscape){
 html.touch:not(.selecting) #shell{display:block;--left-rail:clamp(110px,13vw,170px);--right-rail:clamp(160px,18vw,220px)}
 html.touch:not(.selecting) #stage{width:auto;height:100%;margin-left:var(--left-rail);margin-right:var(--right-rail)}
 html.touch:not(.selecting) #touch{position:absolute;inset:0;display:block;width:100%;height:100%;padding:0;border:0;background:transparent;pointer-events:none}
 html.touch:not(.selecting) #touch:before,html.touch:not(.selecting) #touch:after{content:'';position:absolute;top:0;bottom:0;background:#0c1929;border-inline:1px solid #294054;z-index:-1}
 html.touch:not(.selecting) #touch:before{left:0;width:var(--left-rail)}html.touch:not(.selecting) #touch:after{right:0;width:var(--right-rail)}
 html.touch:not(.selecting) #stick{position:absolute;left:max(10px,env(safe-area-inset-left));bottom:15%;width:clamp(90px,11vw,140px);height:clamp(90px,11vw,140px);pointer-events:auto}
 html.touch:not(.selecting) .action-pad{position:absolute;right:max(10px,env(safe-area-inset-right));bottom:15%;grid-template-columns:repeat(2,clamp(64px,7.8vw,94px));gap:10px;transform:none;pointer-events:auto}
 html.touch:not(.selecting) .action-pad button{width:clamp(64px,7.8vw,94px);min-height:clamp(52px,9vh,76px)}
 html.touch:not(.selecting) .action-pad span{font-size:11px}html.touch:not(.selecting) .action-pad b{font-size:17px}
 html.touch:not(.selecting) #keeper{left:max(24px,env(safe-area-inset-left));top:auto;bottom:4%;transform:none;pointer-events:auto;min-height:40px;font-size:13px}
 html.touch.selecting #shell{display:flex;flex-direction:column}html.touch.selecting #stage{width:100%;margin:0;height:100%}
 html.touch #hud{width:90%;max-width:660px;top:7px}.tools{max-width:calc(100% - 20px)}
}
