*{box-sizing:border-box}html,body{width:100%;height:100%;margin:0;overflow:hidden;font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,sans-serif;background:#07120d;color:#fff}button,input,select{font:inherit}button{cursor:pointer}#game-root,#three-container{position:fixed;inset:0}#three-container canvas{display:block;width:100%;height:100%}.hidden{display:none!important}
.screen{position:fixed;inset:0;z-index:20;display:none;overflow:hidden;background:radial-gradient(circle at 50% 80%,rgba(67,255,149,.24),transparent 32%),linear-gradient(180deg,rgba(2,7,12,.18),rgba(2,7,12,.9)),linear-gradient(120deg,#091823,#102a1f 55%,#0b1724)}.screen.visible{display:grid;place-items:start center;padding-top:3.5vh}.tunnel-glow{position:absolute;inset:0;background:linear-gradient(90deg,rgba(255,255,255,.04) 1px,transparent 1px) 0 0/80px 80px,radial-gradient(circle at 50% 105%,rgba(255,255,255,.28),transparent 30%);opacity:.75}.title-card{position:relative;z-index:3;transform:translateY(-8px);width:min(720px,90vw);text-align:center;padding:30px 38px 24px;border:1px solid rgba(255,255,255,.16);border-radius:24px;background:linear-gradient(180deg,rgba(5,11,18,.72),rgba(5,11,18,.9));box-shadow:0 24px 90px rgba(0,0,0,.48),inset 0 1px 0 rgba(255,255,255,.07);backdrop-filter:blur(10px)}.eyebrow{font-size:11px;letter-spacing:.24em;font-weight:800;opacity:.68}h1{margin:6px 0 0;font-size:clamp(46px,7vw,86px);line-height:.9;letter-spacing:-.06em;font-style:italic}h1 span{opacity:.62}.subtitle{opacity:.72;margin:12px 0 20px}.menu{width:min(500px,100%);display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px 14px;margin:0 auto}.menu button{min-height:52px}.menu button:nth-child(5){grid-column:1;width:100%;justify-self:stretch}button{border:1px solid rgba(255,255,255,.15);border-radius:11px;padding:12px 16px;color:white;background:rgba(255,255,255,.08);font-weight:800;letter-spacing:.04em}button:hover{background:rgba(255,255,255,.14)}button.primary{color:#04140c;background:#dbffe9;border-color:#dbffe9}.hint{margin-top:18px;font-size:12px;opacity:.48}
.hero-players{position:absolute;inset:0;z-index:1;pointer-events:none}.hero-player{position:absolute;bottom:1.5vh;width:130px;height:440px;filter:drop-shadow(0 20px 24px rgba(0,0,0,.45));opacity:.9}.hero-white{left:8vw;transform:rotate(3deg)}.hero-red{right:8vw;transform:rotate(-4deg)}.hero-head{position:absolute;width:70px;height:70px;border-radius:50%;background:#bb8765;left:30px;top:18px}.hero-body{position:absolute;width:108px;height:220px;left:11px;top:80px;border-radius:40px 40px 24px 24px}.hero-white .hero-body{background:linear-gradient(90deg,#f8f8f8,#cfd4d8)}.hero-red .hero-body{background:linear-gradient(90deg,#c92735,#f23b49)}.hero-leg{position:absolute;width:38px;height:175px;top:285px;border-radius:20px}.hero-leg.left{left:20px;transform:rotate(4deg)}.hero-leg.right{right:20px;transform:rotate(-5deg)}.hero-white .hero-leg{background:linear-gradient(#f5f5f5 0 75%,#15191d 75%)}.hero-red .hero-leg{background:linear-gradient(#c92735 0 75%,#303030 75%)}
.panel-backdrop{position:fixed;inset:0;z-index:25;background:rgba(0,0,0,.6);backdrop-filter:blur(6px)}.panel{position:fixed;z-index:30;left:50%;top:50%;transform:translate(-50%,-50%);width:min(700px,92vw);max-height:88vh;overflow:auto;padding:28px;border-radius:20px;background:rgba(6,13,19,.97);border:1px solid rgba(255,255,255,.16);box-shadow:0 30px 100px rgba(0,0,0,.55)}.wide-panel{width:min(860px,94vw)}.controls-panel{width:min(760px,94vw)}.panel h2{margin:0 0 20px;font-size:34px}.close-panel{position:absolute;top:14px;right:14px;border-radius:50%;width:38px;height:38px;padding:0;font-size:22px}.panel-note{opacity:.58;font-size:13px;margin-bottom:0}.kickoff-difficulty-panel{width:min(760px,92vw);text-align:center}.kickoff-difficulty-panel h2{margin-bottom:8px}.difficulty-lead{margin:0 0 20px;opacity:.68}.difficulty-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.difficulty-choice{min-height:150px;display:flex;flex-direction:column;justify-content:center;gap:10px;padding:18px;text-align:left;background:rgba(255,255,255,.055);border:1px solid rgba(255,255,255,.14)}.difficulty-choice strong{font-size:18px;letter-spacing:.08em}.difficulty-choice span{font-size:12px;line-height:1.5;opacity:.62;font-weight:600;letter-spacing:0}.difficulty-choice.selected{outline:2px solid #dbffe9;background:rgba(219,255,233,.12)}.difficulty-choice:hover{background:rgba(255,255,255,.11)}.setting-row{display:grid;grid-template-columns:170px 1fr;gap:20px;align-items:center;margin:16px 0}.setting-row input[type=checkbox]{width:20px;height:20px}.team-select-layout{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:18px}.team-select-card{padding:20px;border-radius:18px;border:1px solid rgba(255,255,255,.12);background:linear-gradient(160deg,rgba(255,255,255,.08),rgba(255,255,255,.025));text-align:center}.side-label{margin-bottom:8px;font-size:10px;letter-spacing:.2em;font-weight:900;opacity:.55}.team-select{width:100%;padding:11px 12px;border-radius:10px;border:1px solid rgba(255,255,255,.16);background:#111a24;color:#fff;font-weight:800}.kit-preview{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:18px 0 10px}.kit-preview>div{display:grid;justify-items:center;gap:6px}.kit-preview small{opacity:.55;font-size:10px}.kit-swatch{display:block;width:44px;height:54px;border-radius:11px 11px 7px 7px;border:2px solid rgba(255,255,255,.65);box-shadow:0 7px 20px rgba(0,0,0,.22)}.kit-swatch.keeper{border-style:dashed}.team-select-card h3{margin:8px 0 0;font-size:18px}.versus{font-weight:900;opacity:.45}
.controls-remap-grid{display:grid;grid-template-columns:1fr auto;gap:9px 16px;align-items:center}.control-row{display:contents}.control-name{padding:8px 0;font-weight:700}.bind-button{min-width:150px;padding:9px 12px;background:rgba(255,255,255,.09)}.bind-button.listening{outline:2px solid #b8ffd0;background:rgba(184,255,208,.12)}.controls-actions{margin-top:18px;display:flex;justify-content:flex-end}.capture-message{margin-top:14px;padding:10px 12px;border-radius:10px;background:rgba(184,255,208,.1);border:1px solid rgba(184,255,208,.25);font-size:13px}.control-note{margin-top:-8px;margin-bottom:18px}
.hud{position:fixed;inset:0;z-index:10;pointer-events:none}.scoreboard{position:absolute;top:18px;left:18px;display:flex;align-items:center;gap:9px;background:rgba(9,10,19,.88);border-radius:7px;padding:7px 9px 7px 7px;box-shadow:0 10px 30px rgba(0,0,0,.22);font-size:14px;font-weight:900}#clock{background:#f1f2f4;color:#101018;border-radius:4px;padding:5px 8px;min-width:55px;text-align:center}.score-team{border-radius:4px;padding:5px 9px}.dash{opacity:.5}.status-banner{position:absolute;top:82px;left:50%;transform:translateX(-50%);padding:8px 18px;border-radius:999px;background:rgba(4,12,18,.72);border:1px solid rgba(255,255,255,.17);font-size:12px;font-weight:900;letter-spacing:.18em}.player-card{position:absolute;bottom:18px;width:250px;padding:11px 13px;border-radius:8px;background:linear-gradient(180deg,rgba(6,14,22,.2),rgba(6,14,22,.88));border-bottom:3px solid rgba(146,255,197,.62);font-size:12px}.left-card{left:18px}.right-card{right:18px;text-align:right}.player-label{display:flex;gap:10px;align-items:center;font-weight:900}#player-number{opacity:.55}.meter-shell{height:5px;margin-top:8px;background:rgba(255,255,255,.14);border-radius:20px;overflow:hidden}.meter-fill{height:100%;width:100%;background:#c7ffd8}.possession-text,.tiny-help{margin-top:7px;font-size:10px;opacity:.68;letter-spacing:.05em}.opponent-label{font-weight:900}.power-wrap{position:absolute;left:50%;bottom:170px;transform:translateX(-50%);width:min(340px,40vw);padding:9px 11px 10px;border-radius:8px;background:rgba(5,12,18,.84);border:1px solid rgba(255,255,255,.13);box-shadow:0 8px 26px rgba(0,0,0,.25)}.power-label{margin-bottom:5px;font-size:9px;letter-spacing:.17em;font-weight:900;text-align:center;opacity:.8}.power-track{height:10px;overflow:hidden;border-radius:999px;background:rgba(255,255,255,.13)}.power-fill{height:100%;width:0;background:linear-gradient(90deg,#e8f7ff,#b8ffd0,#ffe28a);border-radius:inherit;transition:width .025s linear}.power-target{margin-top:5px;text-align:center;font-size:9px;letter-spacing:.08em;opacity:.58}#minimap{position:absolute;left:50%;bottom:16px;transform:translateX(-50%);width:230px;height:138px;opacity:.78;border-radius:8px;background:rgba(7,12,18,.46);border:1px solid rgba(255,255,255,.1)}.pause-button{position:absolute;right:18px;top:18px;width:38px;height:38px;padding:0;pointer-events:auto;border-radius:50%;background:rgba(8,11,18,.72)}.fp-crosshair{position:absolute;left:50%;top:50%;width:24px;height:24px;transform:translate(-50%,-50%);pointer-events:none;filter:drop-shadow(0 1px 2px rgba(0,0,0,.8))}.fp-crosshair:before,.fp-crosshair:after,.fp-crosshair span:before,.fp-crosshair span:after{content:"";position:absolute;background:rgba(255,255,255,.92);border-radius:2px}.fp-crosshair:before{width:7px;height:2px;left:0;top:11px}.fp-crosshair:after{width:7px;height:2px;right:0;top:11px}.fp-crosshair span:before{width:2px;height:7px;left:11px;top:0}.fp-crosshair span:after{width:2px;height:7px;left:11px;bottom:0}
.pause-menu,.fulltime{position:fixed;inset:0;z-index:40;display:grid;place-items:center;background:rgba(0,0,0,.58);backdrop-filter:blur(7px)}.pause-card,.fulltime-card{width:min(420px,88vw);padding:30px;display:grid;gap:10px;border-radius:20px;background:rgba(7,14,20,.96);border:1px solid rgba(255,255,255,.16)}.pause-card h2,.fulltime-card h2{margin:2px 0 18px;font-size:32px}.match-intro{position:fixed;z-index:15;left:50%;top:24%;transform:translateX(-50%);width:min(820px,90vw);text-align:center;padding:24px 34px;border-radius:16px;background:linear-gradient(90deg,rgba(8,12,20,.25),rgba(8,12,20,.9),rgba(8,12,20,.25));text-shadow:0 2px 12px rgba(0,0,0,.5)}.intro-kicker{font-size:10px;letter-spacing:.3em;font-weight:900;opacity:.65}.intro-match{font-size:clamp(24px,4vw,48px);font-weight:1000;letter-spacing:-.04em;margin-top:4px}.intro-match b{opacity:.38;font-weight:600;margin:0 12px}.intro-match>span{opacity:1;font-weight:1000;margin:0}.intro-stadium{margin-top:8px;font-size:12px;letter-spacing:.14em;opacity:.66}
@media(max-width:760px){.difficulty-grid{grid-template-columns:1fr}.difficulty-choice{min-height:auto}.hero-players{opacity:.4}.left-card,.right-card{width:180px}#minimap{width:180px;height:108px}.team-select-layout{grid-template-columns:1fr}.power-wrap{width:62vw;bottom:145px}.setting-row{grid-template-columns:1fr}.controls-remap-grid{grid-template-columns:1fr auto}.bind-button{min-width:120px}}

.card-strip{position:absolute;top:62px;left:18px;display:flex;gap:8px;padding:5px 8px;border-radius:6px;background:rgba(9,10,19,.78);font-size:10px;font-weight:900;letter-spacing:.04em}.card-strip span{white-space:nowrap}



/* Gameplay Upgrade v18 — online lobby + mobile controls */
.online-panel{max-width:980px}.online-setup,.online-room{display:grid;gap:16px}.online-name-row input,.invite-copy-row input,#join-code{min-width:0;width:100%;border:1px solid rgba(255,255,255,.16);border-radius:10px;background:rgba(3,10,16,.72);color:#fff;padding:11px 12px;font:inherit}.online-actions{display:flex;gap:10px;flex-wrap:wrap}.online-actions button{flex:1 1 180px}.online-status-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.online-role-badge{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:6px 10px;background:#d6ff39;color:#0a1015;font-weight:900;font-size:.78rem;letter-spacing:.08em}.invite-box{padding:14px;border:1px solid rgba(255,255,255,.12);border-radius:14px;background:rgba(255,255,255,.04)}.invite-box label{display:block;font-size:.78rem;text-transform:uppercase;letter-spacing:.08em;margin-bottom:8px;color:#b7c7d2}.invite-copy-row{display:grid;grid-template-columns:1fr auto;gap:8px}.invite-box small{display:block;margin-top:8px;color:#9eb0bc}.online-lobby-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(240px,.8fr);gap:18px}.online-lobby-grid h3{margin:0 0 9px}.online-slots{display:grid;gap:8px}.online-slot{display:grid;grid-template-columns:minmax(110px,1fr) 150px;gap:8px;align-items:center;padding:10px 12px;border-radius:12px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.08)}.online-slot-name{display:flex;align-items:center;gap:8px;min-width:0}.online-slot-name strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.online-slot-name small{color:#93a8b5}.online-slot select{width:100%;background:#0b1720;color:#fff;border:1px solid rgba(255,255,255,.15);border-radius:8px;padding:8px}.remote-game-video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#07131b;z-index:3}#three-container.remote-hidden{visibility:hidden}.mobile-controls{position:absolute;inset:auto 0 8px 0;z-index:25;pointer-events:none;display:none;justify-content:space-between;align-items:end;padding:0 10px;gap:14px}.mobile-dpad,.mobile-actions-pad{pointer-events:auto;display:grid;gap:7px}.mobile-dpad{grid-template-columns:repeat(3,58px);grid-template-rows:repeat(2,58px)}.mobile-dpad button:nth-child(1){grid-column:2;grid-row:1}.mobile-dpad button:nth-child(2){grid-column:1;grid-row:2}.mobile-dpad button:nth-child(3){grid-column:2;grid-row:2}.mobile-dpad button:nth-child(4){grid-column:3;grid-row:2}.mobile-actions-pad{grid-template-columns:repeat(2,74px)}.mobile-controls button{touch-action:none;user-select:none;-webkit-user-select:none;border:1px solid rgba(255,255,255,.25);background:rgba(5,14,21,.74);backdrop-filter:blur(5px);color:#fff;border-radius:50%;height:58px;font-size:.68rem;font-weight:900;letter-spacing:.03em;padding:0}.mobile-actions-pad button{border-radius:18px}.mobile-controls button.active,.mobile-controls button:active{background:rgba(214,255,57,.88);color:#071018}.mobile-shoot{border-color:rgba(255,229,76,.65)!important}
@media (pointer:coarse),(max-width:820px){.mobile-controls.match-visible{display:flex}.player-card{transform:scale(.82);transform-origin:bottom left}.right-card{display:none}#minimap{width:170px;height:102px;bottom:145px}.scoreboard{top:8px}.card-strip{top:48px}.pause-button{right:8px;top:8px}.online-lobby-grid{grid-template-columns:1fr}.online-slot{grid-template-columns:1fr 125px}}
@media (max-width:520px){.mobile-dpad{grid-template-columns:repeat(3,50px);grid-template-rows:repeat(2,50px)}.mobile-actions-pad{grid-template-columns:repeat(2,64px)}.mobile-controls button{height:50px}.online-slot{grid-template-columns:1fr}.invite-copy-row{grid-template-columns:1fr}}

/* Gameplay Upgrade v21 — fixed title choreography + cinematic goal replay */
.hero-players{position:absolute;inset:0;z-index:1;pointer-events:none;overflow:hidden;contain:layout paint;transform:translateZ(0)}
.hero-player{position:absolute;bottom:1.5vh;width:130px;height:440px;filter:drop-shadow(0 20px 24px rgba(0,0,0,.45));opacity:.96;will-change:transform}
.hero-argentina{left:9vw;transform:translateZ(0)}
.hero-usa{right:9vw;transform:translateZ(0)}
.hero-argentina .hero-body{background:repeating-linear-gradient(90deg,#f8fbff 0 18px,#79c7f2 18px 36px);border:2px solid rgba(255,255,255,.7);box-shadow:inset 0 -18px 0 rgba(10,38,72,.16)}
.hero-usa .hero-body{background:repeating-linear-gradient(90deg,#ffffff 0 18px,#d62e3d 18px 36px);border:2px solid rgba(255,255,255,.66);box-shadow:inset 0 -18px 0 rgba(11,35,73,.16)}
.hero-number{position:absolute;left:50%;top:69px;transform:translateX(-50%);display:grid;place-items:center;width:58px;height:66px;font-size:45px;line-height:1;font-weight:1000;letter-spacing:-.08em;color:#111a24;text-shadow:0 1px 0 rgba(255,255,255,.5)}
.hero-usa .hero-number{color:#0b2b5b}
.hero-arm{position:absolute;top:105px;width:27px;height:155px;border-radius:18px;background:#bb8765;transform-origin:50% 10px;z-index:-1}
.hero-arm.left{left:3px;transform:rotate(15deg)}.hero-arm.right{right:3px;transform:rotate(-15deg)}
.hero-argentina .hero-leg{background:linear-gradient(#f5f7fb 0 64%,#79c7f2 64% 82%,#f5f7fb 82%)}
.hero-usa .hero-leg{background:linear-gradient(#173f83 0 64%,#ffffff 64% 82%,#d62e3d 82%)}
.hero-ball{position:absolute;left:0;top:0;width:54px;height:54px;border-radius:50%;transform:translate(-50%,-50%);background:radial-gradient(circle at 34% 28%,#fff 0 19%,#e7ebef 20% 58%,#b9c1c9 59% 100%);border:2px solid rgba(15,24,32,.8);box-shadow:0 18px 22px rgba(0,0,0,.35);z-index:2;will-change:transform,left,top}
.hero-ball:before,.hero-ball:after,.hero-ball span:before{content:"";position:absolute;background:#16202a;clip-path:polygon(50% 0,100% 38%,82% 100%,18% 100%,0 38%)}
.hero-ball:before{width:17px;height:17px;left:17px;top:15px}.hero-ball:after{width:11px;height:11px;left:4px;top:6px;transform:rotate(-24deg)}.hero-ball span:before{width:11px;height:11px;right:3px;bottom:7px;transform:rotate(28deg)}
.mobile-joystick{pointer-events:auto;width:154px;height:154px;display:grid;place-items:center;position:relative;touch-action:none;user-select:none;-webkit-user-select:none}
.joystick-ring{position:relative;width:132px;height:132px;border-radius:50%;border:2px solid rgba(255,255,255,.28);background:radial-gradient(circle,rgba(255,255,255,.11),rgba(5,14,21,.70) 68%);box-shadow:inset 0 0 26px rgba(0,0,0,.28),0 9px 25px rgba(0,0,0,.22);backdrop-filter:blur(5px)}
.joystick-ring:before,.joystick-ring:after{content:"";position:absolute;left:50%;top:50%;background:rgba(255,255,255,.12);transform:translate(-50%,-50%)}
.joystick-ring:before{width:76%;height:1px}.joystick-ring:after{height:76%;width:1px}
.joystick-thumb{position:absolute;left:50%;top:50%;width:64px;height:64px;border-radius:50%;transform:translate(-50%,-50%);background:linear-gradient(145deg,rgba(226,255,239,.95),rgba(117,211,157,.88));border:2px solid rgba(255,255,255,.7);box-shadow:0 9px 20px rgba(0,0,0,.35),inset 0 1px 0 #fff;will-change:transform}
.joystick-label{position:absolute;bottom:1px;font-size:.58rem;font-weight:900;letter-spacing:.14em;opacity:.62}
.replay-overlay{position:fixed;inset:0;z-index:24;pointer-events:none;display:flex;align-items:flex-start;justify-content:space-between;padding:86px 18px 18px}
.replay-badge{position:relative;z-index:2;display:flex;align-items:center;gap:7px;padding:8px 12px;border-radius:999px;background:rgba(5,11,18,.78);border:1px solid rgba(255,255,255,.18);font-size:11px;font-weight:1000;letter-spacing:.15em;box-shadow:0 8px 28px rgba(0,0,0,.25);backdrop-filter:blur(6px)}
.replay-dot{width:8px;height:8px;border-radius:50%;background:#ff4f5d;box-shadow:0 0 0 4px rgba(255,79,93,.16);animation:replayPulse 1s ease-in-out infinite}
#skip-replay-btn{position:relative;z-index:2;pointer-events:auto;padding:9px 13px;background:rgba(5,11,18,.82);border-color:rgba(255,255,255,.24);font-size:11px}.replay-transition{position:absolute;inset:0;z-index:1;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:18px;padding:0 7vw;background:rgba(2,7,12,.94);opacity:0;transform:scale(1.015);transition:opacity .16s linear,transform .28s ease;pointer-events:none}.replay-transition.active{opacity:1;transform:scale(1)}.replay-transition-line{height:2px;background:linear-gradient(90deg,transparent,rgba(255,255,255,.8),transparent)}.replay-transition-text{font-size:clamp(26px,6vw,72px);font-weight:1000;letter-spacing:.06em;font-style:italic;text-shadow:0 5px 25px rgba(0,0,0,.5);white-space:nowrap}.replay-overlay.celebration .replay-badge{background:rgba(14,48,27,.84)}.replay-overlay.slowmo .replay-badge{background:rgba(57,36,6,.86);border-color:rgba(255,222,120,.4)}
@keyframes replayPulse{50%{opacity:.35}}

@media(max-width:760px){.screen.visible{padding-top:2vh}.hero-players{opacity:.86}.hero-player{width:104px;height:370px;bottom:1vh}.hero-argentina{left:2vw}.hero-usa{right:2vw}.hero-head{width:58px;height:58px;left:23px}.hero-body{width:90px;height:188px;left:7px;top:70px}.hero-number{top:58px;width:48px;height:55px;font-size:38px}.hero-leg{width:31px;height:145px;top:244px}.hero-arm{top:95px;height:130px}.hero-ball{width:44px;height:44px}.title-card{transform:none;width:min(640px,94vw);padding:24px 20px 20px}.menu{grid-template-columns:repeat(2,minmax(0,1fr));max-width:440px;gap:8px}.menu button{min-height:46px;padding:9px 8px;font-size:12px}.menu button:nth-child(5){grid-column:1;width:100%}.hint{margin-top:11px}.subtitle{margin-bottom:14px} }
@media (pointer:coarse),(max-width:820px){.mobile-controls{align-items:end;padding-bottom:max(2px,env(safe-area-inset-bottom))}.mobile-joystick{width:144px;height:144px}.joystick-ring{width:124px;height:124px}.joystick-thumb{width:60px;height:60px}.replay-overlay{padding-top:70px}}
@media (max-width:520px){h1{font-size:clamp(38px,12vw,58px)}.eyebrow{font-size:9px}.subtitle{font-size:12px}.menu{gap:7px}.menu button{font-size:10px;letter-spacing:.02em}.replay-transition{gap:8px;padding:0 4vw}.mobile-joystick{width:122px;height:122px}.joystick-ring{width:108px;height:108px}.joystick-thumb{width:54px;height:54px}.mobile-controls{padding-left:2px;padding-right:5px;gap:6px}.replay-overlay{padding:62px 8px 8px}.replay-badge,#skip-replay-btn{font-size:9px}}


/* Gameplay Upgrade v22 — full-body juggling, clear how-to panel, smooth replay, ballistic shooting */
.hero-rig{position:absolute;inset:0;transform-origin:50% 78%;will-change:transform}
.hero-head{transform-origin:50% 80%;will-change:transform}
.hero-body{transform-origin:50% 72%;will-change:transform}
.hero-leg{transform-origin:50% 7%;will-change:transform}
.hero-arm{will-change:transform}
.intro-howto{margin:14px auto 0;padding:12px 14px 13px;max-width:620px;text-align:left;border:1px solid rgba(219,255,233,.22);border-radius:13px;background:linear-gradient(180deg,rgba(3,12,17,.62),rgba(3,9,14,.78));box-shadow:inset 0 1px 0 rgba(255,255,255,.04)}
.howto-title{margin-bottom:8px;font-size:11px;font-weight:1000;letter-spacing:.20em;color:#dbffe9;text-align:center}
.howto-grid{display:grid;grid-template-columns:1fr 1fr;gap:11px}
.howto-column{padding:9px 10px;border-radius:9px;background:rgba(255,255,255,.035);font-size:10.5px;line-height:1.55;color:rgba(255,255,255,.76)}
.howto-column>strong{display:block;margin-bottom:5px;font-size:10px;letter-spacing:.13em;color:#fff}
.howto-column>div+div{margin-top:4px}
.intro-howto kbd{display:inline-block;min-width:22px;margin:1px 2px 1px 0;padding:2px 5px;border:1px solid rgba(255,255,255,.2);border-bottom-color:rgba(255,255,255,.36);border-radius:5px;background:rgba(255,255,255,.09);color:#fff;font:800 9px/1.35 Inter,ui-sans-serif,system-ui,sans-serif;text-align:center;box-shadow:0 1px 0 rgba(0,0,0,.35)}
.howto-objective{margin-top:9px;padding-top:9px;border-top:1px solid rgba(255,255,255,.09);font-size:10px;line-height:1.5;color:rgba(255,255,255,.67)}
.howto-objective strong{color:#fff}
.replay-overlay.celebration:after{content:"CELEBRATION";position:absolute;left:50%;bottom:7vh;transform:translateX(-50%);font-size:clamp(20px,4vw,54px);font-weight:1000;letter-spacing:.12em;font-style:italic;color:rgba(255,255,255,.16);text-shadow:0 4px 22px rgba(0,0,0,.5);pointer-events:none}
@media(max-width:760px){
  .intro-howto{margin-top:10px;padding:9px 10px 10px;max-width:560px}
  .howto-grid{grid-template-columns:1fr;gap:7px}
  .howto-column{font-size:9.5px;padding:7px 8px;line-height:1.42}
  .howto-objective{font-size:9px;margin-top:7px;padding-top:7px}
  .title-card{max-height:96vh;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
}
@media(max-width:520px){
  .desktop-howto{display:none}
  .intro-howto{margin-top:8px}
  .howto-title{margin-bottom:6px;font-size:9px}
  .howto-column{font-size:9px}
  .howto-objective{font-size:8.5px}
}


/* Gameplay Upgrade v23 — popup instructions, flag-wave USA kit, foul/tackle fixes, visual keeper dives */
.hero-player::after{content:"";position:absolute;left:13%;right:13%;bottom:-6px;height:24px;border-radius:50%;background:rgba(0,0,0,.34);filter:blur(5px);transform:scaleX(1.16);z-index:-3}
.hero-argentina::before,.hero-usa::before{content:"";position:absolute;left:-52px;right:-52px;top:58px;height:270px;border-radius:50%;filter:blur(28px);opacity:.13;z-index:-4}
.hero-argentina::before{background:#76c8f4}.hero-usa::before{background:#d93545}
.hero-usa .hero-body{position:absolute;overflow:hidden;background:#f8fbff;border:2px solid rgba(255,255,255,.72);box-shadow:inset 0 -18px 0 rgba(11,35,73,.16)}
.hero-usa .hero-body::before{content:"";position:absolute;inset:-34px -24px -20px;background:repeating-radial-gradient(ellipse 108px 47px at 18% 0%,transparent 0 19px,#d62e3d 20px 31px,transparent 32px 47px);transform:rotate(-2deg) scaleX(1.22);transform-origin:center;opacity:.98;z-index:0}
.hero-usa .hero-body::after{content:"";position:absolute;left:8px;top:13px;width:29px;height:42px;border-radius:5px;background:radial-gradient(circle,#fff 0 1.2px,transparent 1.5px) 0 0/7px 7px,#173f83;box-shadow:0 1px 0 rgba(255,255,255,.2);z-index:1;opacity:.95}
.hero-usa .hero-number{z-index:3;text-shadow:0 1px 0 rgba(255,255,255,.85),0 0 8px rgba(255,255,255,.42)}
.howto-launch{width:min(500px,100%);margin:12px auto 0;display:grid;grid-template-columns:38px 1fr 24px;gap:10px;align-items:center;text-align:left;padding:10px 12px;border-color:rgba(219,255,233,.26);background:linear-gradient(135deg,rgba(219,255,233,.10),rgba(255,255,255,.045));box-shadow:inset 0 1px 0 rgba(255,255,255,.05)}
.howto-launch:hover{background:linear-gradient(135deg,rgba(219,255,233,.18),rgba(255,255,255,.07));border-color:rgba(219,255,233,.42)}
.howto-launch-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#dbffe9;color:#07140d;font-size:20px;font-weight:1000}.howto-launch b{display:block;font-size:12px;letter-spacing:.14em}.howto-launch small{display:block;margin-top:2px;font-size:9.5px;line-height:1.25;letter-spacing:.02em;opacity:.55;font-weight:650}.howto-launch-arrow{font-size:25px;opacity:.55;text-align:center}
.howto-panel{width:min(820px,94vw)}.howto-panel h2{margin:5px 0 6px}.howto-lead{margin:0 0 17px;max-width:680px;font-size:13px;line-height:1.5;opacity:.64}.popup-howto-grid{margin-bottom:13px}.howto-panel .howto-column{font-size:11px;line-height:1.55;border:1px solid rgba(255,255,255,.07)}
.howto-panel kbd{display:inline-block;min-width:24px;margin:1px 2px 1px 0;padding:2px 5px;border:1px solid rgba(255,255,255,.22);border-bottom-color:rgba(255,255,255,.42);border-radius:5px;background:rgba(255,255,255,.09);color:#fff;font:800 9px/1.4 Inter,ui-sans-serif,system-ui,sans-serif;text-align:center;box-shadow:0 1px 0 rgba(0,0,0,.35)}
.howto-rules{display:grid;grid-template-columns:1fr 1fr;gap:8px}.howto-rules>div{padding:10px 11px;border-radius:10px;background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.06)}.howto-rules strong{display:block;margin-bottom:3px;color:#dbffe9;font-size:9.5px;letter-spacing:.13em}.howto-rules span{display:block;font-size:10.5px;line-height:1.43;opacity:.68}
@media(max-width:760px){.howto-launch{margin-top:10px}.howto-rules{grid-template-columns:1fr}.popup-howto-grid{grid-template-columns:1fr}.howto-panel{max-height:90vh}.hero-usa .hero-body::after{width:25px;height:36px;left:7px;top:11px}}
@media(max-width:520px){.howto-launch small{font-size:8.5px}.howto-launch{grid-template-columns:34px 1fr 18px;padding:8px 9px}.howto-launch-icon{width:30px;height:30px;font-size:17px}.howto-panel{padding:22px 17px}.howto-panel .howto-column{font-size:10px}.howto-rules span{font-size:9.5px}}

/* Gameplay Upgrade v24 — 2026 USA Stripes kit + realistic intro skills */
.hero-boot{position:absolute;left:-7px;bottom:-5px;width:50px;height:22px;border-radius:13px 20px 8px 8px;background:linear-gradient(180deg,#202a34,#0a0f15 70%);box-shadow:inset 0 2px 0 rgba(255,255,255,.14),0 4px 5px rgba(0,0,0,.24);transform-origin:48% 45%;will-change:transform}
.hero-boot::after{content:"";position:absolute;left:5px;right:3px;bottom:-3px;height:5px;border-radius:50%;background:#d9e2e8;opacity:.85}
.hero-argentina .hero-boot{background:linear-gradient(180deg,#f0f5f8,#8fc9ed 52%,#172231 54%)}
.hero-usa .hero-boot{background:linear-gradient(180deg,#f7f8fa,#d8dde4 46%,#152f61 48%,#091326 100%)}
.hero-leg,.hero-boot{transition:none!important}

/* The 2026 U.S. "Stripes" shirt: sail base, broad curved red bands, navy trim. */
.hero-usa .hero-body{overflow:hidden;background-color:#f3f0e8;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 108 220'%3E%3Crect width='108' height='220' fill='%23f3f0e8'/%3E%3Cg fill='none' stroke='%23d9293f' stroke-width='15'%3E%3Cpath d='M-18 18 C18 4 48 31 126 12'/%3E%3Cpath d='M-18 53 C20 37 57 68 126 45'/%3E%3Cpath d='M-18 89 C20 70 61 105 126 80'/%3E%3Cpath d='M-18 126 C20 104 62 143 126 116'/%3E%3Cpath d='M-18 163 C20 140 63 181 126 153'/%3E%3Cpath d='M-18 201 C20 176 62 218 126 190'/%3E%3C/g%3E%3C/svg%3E");background-size:100% 100%;background-position:center;border-color:rgba(255,255,255,.78);box-shadow:inset 0 -18px 0 rgba(10,34,69,.13)}
.hero-usa .hero-body::before{content:none}
.hero-usa .hero-body::after{content:"";position:absolute;left:50%;top:-2px;width:58px;height:31px;transform:translateX(-50%);background:#152f61;clip-path:polygon(0 0,100% 0,73% 55%,58% 100%,50% 70%,42% 100%,27% 55%);z-index:2;filter:drop-shadow(0 1px 0 rgba(255,255,255,.15))}
.hero-usa .hero-number{top:77px;color:#142f61;font-size:44px;text-shadow:0 1px 0 rgba(255,255,255,.9)}
.hero-usa .hero-arm::before{content:"";position:absolute;left:-3px;right:-3px;top:-2px;height:32px;border-radius:16px 16px 8px 8px;background:linear-gradient(#f3f0e8 0 42%,#d9293f 43% 74%,#152f61 75%);box-shadow:inset 0 -2px 0 rgba(255,255,255,.2)}
.hero-argentina .hero-arm::before{content:"";position:absolute;left:-3px;right:-3px;top:-2px;height:31px;border-radius:16px 16px 8px 8px;background:repeating-linear-gradient(90deg,#f8fbff 0 9px,#79c7f2 9px 18px)}
.hero-head::after{content:"";position:absolute;left:10px;right:10px;bottom:9px;height:4px;border-radius:50%;background:rgba(70,39,28,.38);opacity:.5}
.hero-player{transform-origin:50% 100%}
.hero-rig,.hero-body,.hero-head,.hero-arm,.hero-leg,.hero-boot{backface-visibility:hidden}
@media(max-width:760px){.hero-boot{width:42px;height:19px;left:-6px}.hero-usa .hero-number{top:64px;font-size:37px}.hero-usa .hero-arm::before,.hero-argentina .hero-arm::before{height:27px}}


/* Gameplay Upgrade v25 — corner-flag celebrations + clean USA shirt */
/* The USA intro shirt intentionally has no chest crest or brand mark. */
.hero-usa .hero-body .hero-number{z-index:4}
