@font-face{font-family:Staatliches;src:url('../fonts/Staatliches-Regular.ttf') format('truetype');font-display:swap}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#07152d;color:#fff}body{display:flex;align-items:center;justify-content:center;font-family:Staatliches,Impact,sans-serif;touch-action:none;user-select:none;-webkit-user-select:none;overscroll-behavior:none}button{font:inherit;color:inherit;cursor:pointer;touch-action:none}button:focus-visible{outline:4px solid #fffba1;outline-offset:3px}button:disabled{opacity:.55;cursor:default}#game{position:relative;width:1280px;height:720px;flex:none;overflow:hidden;transform-origin:center center;outline:none;background:#237739}#scene{width:100%;height:100%;display:block}.screen{position:absolute;inset:0;display:none}.screen.active{display:block}.screen.active:not(#match):not(#splash){animation:screen-in .25s ease-out}@keyframes screen-in{from{opacity:.2;transform:scale(.985)}to{opacity:1;transform:scale(1)}}
#splash{background:url('../images/splash.png') center/100% 100%;cursor:pointer}#start{position:absolute;left:50%;top:53%;transform:translate(-50%,-50%);padding:17px 34px;border:3px solid #92dcff;border-radius:17px;background:linear-gradient(#153974ea,#071749e8);box-shadow:0 6px 0 #041236,0 0 30px #31aaff79;white-space:nowrap;font-size:34px;letter-spacing:2px;text-shadow:0 3px 0 #13293f}#start span{animation:blink 1.2s ease-in-out infinite}@keyframes blink{50%{opacity:.35}}.mapi-logo{position:absolute;bottom:32px;left:50%;transform:translateX(-50%);width:190px;height:auto;filter:drop-shadow(0 3px 4px #0009)}.splash-note{position:absolute;bottom:13px;width:100%;text-align:center;letter-spacing:3px;font-size:17px;text-shadow:0 2px 4px #000}
.art-menu{background:url('../images/menu_bg.png') center/100% 100%}.menu-buttons{position:absolute;left:31.2%;top:40.8%;width:37.5%;height:40.7%;display:flex;flex-direction:column;gap:13px}.chunk{position:relative;display:flex;justify-content:center;align-items:center;gap:21px;min-height:62px;border:3px solid #34c5f5;border-radius:17px;box-shadow:inset 0 4px 0 #ffffff58,inset 0 -6px 0 #00000020,0 5px 0 #05234f,0 8px 13px #001b3a45;background:linear-gradient(#149dff,#005cdf);font-size:35px;letter-spacing:1px;text-shadow:0 3px 0 #073684;transition:filter .14s,transform .14s,box-shadow .14s}.chunk::after{content:'';position:absolute;inset:6px 10px auto;height:21%;border-radius:12px;background:linear-gradient(#fff2,#fff0);pointer-events:none}.chunk:hover{filter:brightness(1.12);transform:translateY(-2px)}.chunk:active{transform:translateY(4px);box-shadow:inset 0 3px 0 #fff3,0 1px 0 #05234f}.chunk.green{background:linear-gradient(#20de67,#00a143);border-color:#44f397;text-shadow:0 3px 0 #006b32}.chunk.purple{background:linear-gradient(#9855ff,#5020ec);border-color:#ac82ff;text-shadow:0 3px 0 #372478}.chunk.slate{background:linear-gradient(#57759f,#23446e);border-color:#76aacc;text-shadow:0 3px 0 #162f50}.menu-buttons .chunk{flex:1;font-size:44px;animation:menu-float 3s ease-in-out infinite}.menu-buttons .chunk:nth-child(2){animation-delay:.5s}.menu-buttons .chunk:nth-child(3){animation-delay:1s}@keyframes menu-float{50%{filter:brightness(1.04)}}.icon{display:inline-flex;width:43px;height:43px;align-items:center;justify-content:center;flex:none;filter:drop-shadow(0 2px 0 #082d6644)}.icon svg,svg{width:100%;height:100%;fill:currentColor}.menu-buttons .icon{width:55px;height:50px;border-right:2px solid #ffffff70;padding-right:17px;box-sizing:content-box}.menu-hint{position:absolute;bottom:8px;width:100%;text-align:center;font-size:19px;letter-spacing:.8px;text-shadow:0 2px 3px #002b1e}.small-help{position:absolute;right:20px;bottom:20px;width:49px;height:49px;border:3px solid #6adaff;background:#0c4c96;border-radius:50%;font-size:30px}
.stadium-screen{background:linear-gradient(#07295a38,#004d483b);backdrop-filter:blur(3px)}h1,h2,p{margin:0}.game-title{display:block;text-align:center;font-family:Staatliches,Impact,sans-serif;font-size:62px;line-height:.93;letter-spacing:3px;color:#ffda25;-webkit-text-stroke:2px #102760;text-shadow:0 4px 0 #f68c03,0 8px 0 #082b73,0 9px 0 #26c5ff,3px 0 0 #26c5ff,-3px 0 0 #26c5ff;filter:drop-shadow(0 4px 0 #061d53)}.game-title span{color:#ffffff}.small-title{height:96px;padding-top:19px;font-size:58px}.game-title b{font-size:49px;-webkit-text-stroke:0;letter-spacing:0}.ribbon{margin:4px auto 0;height:65px;max-width:700px;padding:9px 24px;text-align:center;display:flex;align-items:center;justify-content:center;gap:22px;background:linear-gradient(#1189ed,#0055b6);border:4px solid #31cbff;border-radius:17px;box-shadow:0 5px 0 #003e89,0 8px 18px #0005;font-size:38px;text-shadow:0 3px 0 #074479;letter-spacing:2px}.ribbon .icon{color:#ffe332}.selection-summary{height:55px;padding:10px 122px 0;display:flex;align-items:center;justify-content:space-between;font-size:28px;letter-spacing:1px;text-shadow:0 2px 0 #174b34}#fixture{font-size:25px;color:#ebfdff}#fixture b{color:#ffe129;padding:0 14px}#team-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:12px;padding:15px;background:linear-gradient(#074579f5,#053b65f5);border:5px solid #14b7fb;border-radius:20px;box-shadow:inset 0 3px 0 #78e1ff88,0 5px 0 #032b55;position:absolute;top:222px;left:101px;right:101px;height:367px}.team-card{position:relative;border:2px solid #52c9fc;border-radius:12px;background:linear-gradient(#078bfb,#0357d1);box-shadow:inset 0 2px 0 #fff3,0 3px 0 #002e75;padding:5px 3px 6px;display:flex;align-items:center;justify-content:center;gap:0;flex-direction:column;color:#fff;transition:transform .15s,filter .15s;font-size:22px;letter-spacing:.6px}.team-card:hover{transform:translateY(-2px);filter:brightness(1.13)}.team-card.selected{border:4px solid #fff660;box-shadow:0 0 17px #ffec4980,inset 0 0 20px #ffe74360}.team-card.opponent{border:4px solid #ff7a85}.team-card .flag{position:absolute;left:10px;top:11px;width:51px;height:33px;object-fit:fill;box-shadow:0 2px 0 #002d6b}.team-card .preview{width:78px;height:73px;object-fit:contain;align-self:flex-end;margin:-2px 6px 0 0;filter:drop-shadow(0 3px 2px #083c99)}.team-card .name{position:absolute;bottom:6px;left:2px;right:2px;text-align:center;line-height:1}.team-check{position:absolute;top:7px;right:6px;background:#fff65c;color:#024869;border-radius:50%;width:23px;height:23px;line-height:23px;font-size:19px;z-index:2}.selection-footer{position:absolute;left:102px;right:102px;bottom:34px;display:grid;grid-template-columns:1fr 1.15fr 1fr;gap:22px}.selection-footer .chunk{height:65px;font-size:34px}
.art-options{background:url('../images/options.png') center/100% 100%}.options-panel{position:absolute;top:175px;left:364px;width:552px;height:461px}.panel{background:linear-gradient(#079fff,#005de3);border:5px solid #30cbff;border-radius:26px;box-shadow:inset 0 5px 0 #9fefff77,0 6px 0 #082777,0 12px 24px #00133270}.panel h2{text-align:center;font-size:43px;letter-spacing:2px;text-shadow:0 3px 0 #143075;padding:8px 0 9px}.settings{margin:0 8px;padding:8px;background:#dfedff;border:3px solid #fff;border-radius:18px;color:#071b79;display:flex;flex-direction:column;gap:5px}.setting{display:flex;align-items:center;gap:6px;background:#f4f8ff;border-radius:11px;min-height:41px;padding:2px 9px;font-size:23px;line-height:1}.setting-icon{color:#0356e9;width:31px;height:31px;display:flex;align-items:center;justify-content:center;font-size:32px;margin-right:8px}.setting label{flex:1}.value{width:104px;text-align:center;font-size:23px}.arrow{border:2px solid #0756c3;border-radius:8px;box-shadow:inset 0 2px 0 #65e4ff,0 2px 0 #173d95;background:linear-gradient(#0aaaff,#0361f2);width:37px;height:31px;font-size:20px;text-shadow:0 2px 0 #0453bd}.toggle{border:2px solid #369717;border-radius:10px;box-shadow:inset 0 2px 0 #cff993,0 2px 0 #b1c6d4;background:linear-gradient(#73d819,#23b308);min-width:119px;height:33px;font-size:23px;text-shadow:0 2px 0 #307519}.toggle.off{background:linear-gradient(#9b9ad2,#676a9c);border-color:#7678ac;text-shadow:0 2px 0 #555c8f;box-shadow:inset 0 2px 0 #c9caf6,0 2px 0 #b1c6d4}.panel-footer{display:flex;gap:22px;margin:12px 14px}.panel-footer .chunk{flex:1;height:58px;font-size:30px;gap:12px;border-radius:15px}.panel-footer .icon{width:33px;height:33px}
#scoreboard{position:absolute;top:22px;left:198px;right:198px;height:64px;display:flex;align-items:stretch;border-radius:9px;filter:drop-shadow(0 5px 0 #0c29434d);font-size:28px}.score-team{display:flex;gap:17px;align-items:center;justify-content:space-between;flex:1;min-width:0;background:linear-gradient(#057bff,#003bb8);padding:4px 15px;text-shadow:0 2px 0 #09317b;border:2px solid #0097ff;border-radius:6px}.score-team img{width:57px;height:38px;object-fit:fill;box-shadow:0 2px 0 #062b7b}.score-team span{white-space:nowrap;font-size:27px;letter-spacing:1px}.score-team.away{background:linear-gradient(#13a765,#006537);border-color:#00a352;text-shadow:0 2px 0 #005129}.score-number{width:80px;display:grid;place-items:center;background:linear-gradient(#1398ff,#0064e8);font-size:48px;font-weight:400;border:2px solid #38b8ff;border-radius:6px;text-shadow:0 3px 0 #135ead}.away-number{background:linear-gradient(#ffe739,#efbd08);color:#16344b;border-color:#ffe861;text-shadow:0 2px 0 #ce990f}.clock{width:152px;flex:none;background:linear-gradient(#28384b,#172539);border:2px solid #4d677c;border-radius:6px;display:flex;align-items:center;justify-content:center;flex-direction:column;font-size:36px;letter-spacing:2px;line-height:1.05}.clock small{font-size:12px;letter-spacing:2px;color:#c4dcec}.pause-button{position:absolute;right:18px;top:15px;width:68px;height:68px;border-radius:12px;border:2px solid #7aa0c4;background:linear-gradient(#213c5d,#101d32);box-shadow:0 4px 0 #092041;padding:16px}.pause-button svg{width:100%;height:100%}#weather-badge{position:absolute;left:20px;top:21px;width:156px;background:#102d509e;border:1px solid #89ceee66;border-radius:7px;padding:6px 5px;text-align:center;font-size:18px;color:#e4f9ff;letter-spacing:1px}.match-banner{position:absolute;top:41%;left:0;width:100%;text-align:center;font-size:66px;letter-spacing:4px;color:#fff;pointer-events:none;text-shadow:0 5px 0 #07398e,0 9px 0 #012055,0 0 30px #329fff;animation:banner-pop .25s ease-out}.match-banner.goal{color:#ffef61;font-size:90px;text-shadow:0 5px 0 #e98413,0 9px 0 #062e7e,0 0 50px #ffcc38}.match-banner small{display:block;font-size:25px;letter-spacing:3px;margin-top:6px;color:#fff}@keyframes banner-pop{from{transform:scale(.7)}to{transform:scale(1)}}#charge-meter{position:absolute;bottom:71px;left:50%;transform:translateX(-50%);width:274px;background:#102844dc;border:2px solid #8cdcfd;border-radius:12px;padding:8px 11px;box-shadow:0 3px 0 #02152e}#charge-meter[hidden]{display:none}.charge-label{display:flex;justify-content:space-between;font-size:21px;color:#fff;letter-spacing:1px}.charge-label small{color:#ffe65a;font-size:18px;display:none}.charge-track{position:relative;background:#07182d;border-radius:6px;height:18px;border:2px solid #466b82;overflow:hidden}#charge-fill{height:100%;width:0;background:linear-gradient(90deg,#15e071,#83ff40,#ffef37);border-radius:4px}.charge-track i{position:absolute;left:92%;top:0;bottom:0;border-left:2px solid #fff}#charge-meter.super{box-shadow:0 0 27px #ffe536,0 3px 0 #02152e;border-color:#fff359}#charge-meter.super #charge-fill{background:linear-gradient(90deg,#ffaf19,#ffe52a,#fffba0)}#charge-meter.over .charge-label small{display:block;color:#ff7683}#joystick{position:absolute;left:32px;bottom:38px;width:168px;height:168px;border-radius:50%;background:#bddab021;border:5px solid #e1f8d579;box-shadow:inset 0 0 18px #16362d70;touch-action:none}#joy-knob{position:absolute;left:48px;top:48px;width:62px;height:62px;border-radius:50%;background:linear-gradient(#f6fff3c9,#b9cbbcdd);border:2px solid #fff9;box-shadow:0 4px 0 #344d4799,0 5px 10px #092b3755;pointer-events:none}.joy-arrow{position:absolute;color:#e2f9dba6;font-size:22px;pointer-events:none}.joy-arrow.up{left:66px;top:8px}.joy-arrow.down{left:66px;bottom:7px}.joy-arrow.left{left:9px;top:64px}.joy-arrow.right{right:9px;top:64px}.action-buttons{position:absolute;bottom:38px;right:24px;display:flex;gap:14px;align-items:flex-end}.round{border-radius:50%;display:flex;align-items:center;justify-content:center;flex-direction:column;border:5px solid #69cbff;box-shadow:inset 0 4px 0 #fff3,inset 0 -5px 0 #0050b044,0 5px 0 #044775,0 7px 12px #173c4177;letter-spacing:1px;text-shadow:0 3px 0 #0863bdaa;transition:filter .12s}.round:active,.round.pressed{filter:brightness(1.25);transform:translateY(3px)}.pass{width:128px;height:128px;background:linear-gradient(#29b4ff,#0075f5);font-size:34px}.shoot{width:154px;height:154px;background:linear-gradient(#42e66c,#12b951);border-color:#9bf594;font-size:36px;text-shadow:0 3px 0 #0c7e3a}.round small{font-size:14px;letter-spacing:1px;margin-top:2px}#keyboard-hint{position:absolute;bottom:10px;left:210px;right:335px;text-align:center;color:#f0ffef;text-shadow:0 2px 2px #173d35;font-size:15px;letter-spacing:.5px}
.cup-progress{text-align:center;font-size:28px;letter-spacing:2px;margin:20px 0;color:#f7ed84;text-shadow:0 3px 0 #103873}#bracket-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:28px;padding:3px 110px}.bracket-column h3{text-align:center;font-size:23px;letter-spacing:2px;color:#d7faff;margin:0 0 12px}.bracket-column{display:flex;flex-direction:column;justify-content:center;gap:15px;height:325px}.bracket-match{background:linear-gradient(#075799,#06346c);border:2px solid #48c9ff;border-radius:13px;padding:10px 13px;box-shadow:0 4px 0 #002447}.bracket-match.current{border-color:#fff14d;box-shadow:0 0 20px #ffe83c55}.bracket-row{display:flex;align-items:center;gap:9px;font-size:22px;padding:4px 0}.bracket-row img{width:33px;height:23px}.bracket-row span{flex:1}.bracket-row.winner{color:#ffec4b}.bracket-row b{font-weight:400;font-size:25px}.bracket-footer{position:absolute;bottom:45px;left:246px;right:246px;display:flex;gap:22px}.bracket-footer .chunk{flex:1;font-size:27px}
.result-panel{position:absolute;top:89px;left:328px;width:624px;min-height:541px;padding:8px 22px;background:linear-gradient(#138bf0,#063783)}.big-trophy{display:block;text-align:center;font-size:59px;color:#ffe342;line-height:1.05;filter:drop-shadow(0 4px 0 #976914)}.big-trophy svg{height:69px;width:69px}.result-panel h2{font-size:45px;padding:4px 0}.result-panel p{text-align:center;color:#9ae9ff;font-size:21px;letter-spacing:2px}#result-score{display:flex;align-items:center;justify-content:center;gap:24px;margin:18px 0;font-size:54px;color:#fff65a}#result-score .result-team{width:133px;display:flex;flex-direction:column;align-items:center;color:white;font-size:22px;gap:6px}#result-score img{width:62px;height:41px}#result-stats{background:#05285180;border:1px solid #81dfff66;border-radius:13px;padding:7px 15px;font-size:22px}.stat-row{display:grid;grid-template-columns:1fr 2fr 1fr;padding:4px 0;text-align:center;border-bottom:1px solid #fff1}.stat-row:last-child{border:0}.stat-row span{color:#b7e1ff;font-size:19px}.result-panel .panel-footer{margin:19px 0 7px;gap:15px}.result-panel .chunk{font-size:27px}
#modal{position:absolute;inset:0;background:#06122bbc;backdrop-filter:blur(5px);display:flex;align-items:center;justify-content:center;z-index:20}#modal[hidden]{display:none}.modal-panel{width:543px;padding:16px 24px;background:linear-gradient(#128ff1,#07418c)}.modal-panel h2{font-size:46px;padding:0 0 15px}#modal-body{font-size:25px;line-height:1.38;text-align:center;color:#e0f6ff}#modal-body kbd{display:inline-block;background:#032e64;border:1px solid #80cfff;border-radius:5px;min-width:32px;padding:0 6px;font:inherit;color:#fff}#modal-body p{margin:9px 0}#modal-body .muted{font-size:19px;color:#a7dfff}.control-row{display:flex;gap:9px;justify-content:center;margin:16px 0}.control-row button{min-height:41px;font-size:23px;padding:3px 17px;border-radius:9px}#modal-actions{display:flex;flex-direction:column;gap:12px;margin-top:16px}#modal-actions .chunk{height:58px;font-size:30px}#toast{position:absolute;bottom:27px;left:50%;transform:translateX(-50%);border:2px solid #a1edff;background:#073370f2;border-radius:12px;padding:10px 24px;font-size:25px;letter-spacing:1px;pointer-events:none;opacity:0;transition:opacity .2s;z-index:30}#toast.visible{opacity:1}#load-error{position:absolute;inset:0;z-index:99;background:#0b2456;display:flex;align-items:center;justify-content:center;flex-direction:column;font-size:32px;text-align:center;padding:30px}#load-error[hidden]{display:none}#load-error button{margin:20px;background:#12a843;border:3px solid #79f9a4;border-radius:13px;padding:12px 30px}#game.touch #keyboard-hint{display:none}#game.touch .round small{display:none}#game.touch .pass{width:140px;height:140px}#game.touch .shoot{width:170px;height:170px}.score-flash{animation:score-pulse .3s ease-out}@keyframes score-pulse{50%{transform:scale(1.12);filter:brightness(1.5)}}
@media(prefers-reduced-motion:reduce){.menu-buttons .chunk,#start span{animation:none}.screen.active{animation:none}}
.small-title{width:225px;margin:0 auto;background:url('../images/logo.png') center/contain no-repeat;color:transparent;-webkit-text-stroke:0;text-shadow:none;font-size:0;filter:drop-shadow(0 4px 4px #04286166)}.small-title span,.small-title b{font-size:0;color:transparent}.team-card .preview{width:65px;height:67px;margin:0 7px 20px 0}.selection-footer #confirm-team svg{width:39px;height:39px;flex:none}.setting-icon svg{width:31px;height:31px}
body{position:fixed;inset:0;display:block}#game{position:absolute;transform-origin:0 0}
#match.goal-impact::after,#match.super-impact::after{content:'';position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse at center,#ffffff66 0,#ffec3522 45%,#5bf3ff44 100%);opacity:0;animation:goal-light .48s ease-out}#match.super-impact::after{background:radial-gradient(ellipse at center,#ffffffaa 0,#fff16544 40%,#40d9ff66 100%);animation:goal-light .7s ease-out}@keyframes goal-light{0%{opacity:.8}20%{opacity:.4}100%{opacity:0}}html:fullscreen,html:fullscreen body{width:100%;height:100%;overflow:hidden;background:#07152d}
#replay-hud{position:absolute;left:36px;right:36px;top:99px;display:flex;align-items:center;justify-content:space-between;pointer-events:none}#replay-hud[hidden]{display:none}#replay-hud>span{padding:9px 20px;border:2px solid #fff;border-radius:9px;background:#0b234dc9;color:#fff;font-size:28px;letter-spacing:2px;text-shadow:0 2px #052658}#replay-hud i{display:inline-block;width:12px;height:12px;margin-right:8px;background:#ff314f;border-radius:50%;animation:blink 1s infinite}#replay-hud button{height:48px;padding:0 26px;font-size:25px;pointer-events:auto}.replay-mode #joystick,.replay-mode .action-buttons,.replay-mode #keyboard-hint,.replay-mode #weather-badge{opacity:0;pointer-events:none}
.options-panel{height:490px}.options-panel h2{font-size:38px;line-height:1.1;padding:4px 0 8px}.options-panel .settings{gap:4px}.options-panel .setting{min-height:37px;font-size:21px}.options-panel .value{font-size:21px}.options-panel #pitch-value{font-size:18px}.options-panel .panel-footer{margin-top:11px}.options-panel .panel-footer .chunk{height:55px}
/* MINI SOCCER 3D additions */
#game:focus{outline:none}
.kb-focus,button.kb-focus:focus{outline:5px solid #ffe600!important;outline-offset:3px;box-shadow:0 0 0 3px #3b2a00,0 0 26px #ffe600cc!important;filter:brightness(1.12)}
.action-buttons{gap:12px}
.boost{position:relative;overflow:hidden;width:104px;height:104px;background:linear-gradient(#ffb12e,#f06a00);border-color:#ffd88a;font-size:26px;text-shadow:0 3px 0 #9a3c00;align-self:flex-start;margin-top:-6px}
.boost span,.boost small{position:relative;z-index:1}
#boost-fill{position:absolute;inset:0;background:linear-gradient(#fff3a6aa,#ffe25255);transform-origin:bottom;pointer-events:none;z-index:0}
.boost.empty{filter:grayscale(.7) brightness(.8)}
.round.defend{background:linear-gradient(#ff6a5a,#d6222f);border-color:#ffb3a9;text-shadow:0 3px 0 #7d0f17}
.pass.defend{background:linear-gradient(#ff6a5a,#d6222f);border-color:#ffb3a9;text-shadow:0 3px 0 #7d0f17}
.round.save{background:linear-gradient(#fff36a,#f5b400);border-color:#fffbd0;color:#3a2a00;text-shadow:none;animation:save-pulse .35s ease-in-out infinite alternate}
@keyframes save-pulse{to{filter:brightness(1.25);transform:scale(1.06)}}
#game.touch .boost{width:118px;height:118px}
#match.bullet-time::before{content:'';position:absolute;inset:0;pointer-events:none;z-index:1;background:radial-gradient(ellipse at center,#0000 55%,#06204a66 100%);box-shadow:inset 0 0 90px #00163a88}
.lost-score{font-size:46px;color:#ffe85a;display:flex;align-items:center;justify-content:center;gap:16px}.lost-score img{width:58px;height:38px;box-shadow:0 2px 0 #022}
.help-keys{font-size:22px}
#modal-body{font-size:22px}
#keyboard-hint{left:200px;right:430px;font-size:14px}
.result-panel{top:44px;min-height:0;padding-bottom:4px}#result-score{margin:10px 0}.big-trophy svg{height:58px;width:58px}.result-panel h2{font-size:42px;padding:2px 0}.stat-row{padding:3px 0}
.small-title{width:300px;background-position:center}
/* Main menu: logo-free stadium art, rotating sun rays and an animated logo entrance */
.art-menu{background:url('../images/menu_bg.png') center/100% 100%;overflow:hidden}
.menu-rays{position:absolute;left:650px;top:165px;width:1500px;height:1500px;margin:-750px 0 0 -750px;pointer-events:none;border-radius:50%;
  background:repeating-conic-gradient(from 0deg,#fff8c9 0deg 7deg,#fff8c900 7deg 18deg);
  -webkit-mask:radial-gradient(circle,#000 4%,#000a 22%,#0000 52%);mask:radial-gradient(circle,#000 4%,#000a 22%,#0000 52%);
  mix-blend-mode:screen;opacity:0;animation:rays-in 1.2s .35s ease-out forwards,rays-spin 40s linear infinite}
.menu-rays::after{content:'';position:absolute;inset:0;border-radius:50%;background:radial-gradient(circle,#fffbe0 0,#ffe98a88 9%,#ffe06a33 20%,#0000 38%)}
@keyframes rays-in{to{opacity:.62}}
@keyframes rays-spin{to{transform:rotate(360deg)}}
.menu-logo-wrap{position:absolute;left:375px;top:38px;width:628px;height:250px;pointer-events:none;transform-origin:50% 60%}
.menu-logo{width:100%;height:100%;display:block;filter:drop-shadow(0 8px 10px #0a1d5a88)}
.menu-logo-shine{position:absolute;inset:0;-webkit-mask:url('../images/logo.png') center/100% 100% no-repeat;mask:url('../images/logo.png') center/100% 100% no-repeat;
  background:linear-gradient(105deg,#fff0 35%,#ffffffd0 47%,#fff0 59%) -700px 0/300% 100% no-repeat;animation:logo-shine 3.6s 1.6s ease-in-out infinite}
@keyframes logo-shine{0%{background-position:150% 0}45%,100%{background-position:-50% 0}}
#menu.intro .menu-logo-wrap{animation:logo-drop 1.05s cubic-bezier(.2,.9,.3,1.25) both,logo-float 3.2s 1.1s ease-in-out infinite}
#menu:not(.intro) .menu-logo-wrap{animation:logo-pop .45s ease-out both,logo-float 3.2s .45s ease-in-out infinite}
@keyframes logo-drop{0%{transform:translateY(-330px) scale(.35) rotate(-14deg);opacity:0}45%{opacity:1}62%{transform:translateY(14px) scale(1.12,.9) rotate(3deg)}78%{transform:translateY(-6px) scale(.96,1.05) rotate(-1deg)}100%{transform:none}}
@keyframes logo-pop{0%{transform:scale(.8);opacity:0}100%{transform:none;opacity:1}}
@keyframes logo-float{50%{transform:translateY(-6px) scale(1.025)}}

@keyframes buttons-in{from{opacity:0;transform:translateY(40px)}to{opacity:1;transform:none}}
#menu.intro::after{content:'';position:absolute;inset:0;pointer-events:none;background:#fff;opacity:0;animation:intro-flash .7s .5s ease-out}
@keyframes intro-flash{0%{opacity:.75}100%{opacity:0}}
.small-title{width:300px;background:url('../images/logo.png') center/contain no-repeat}
@media(prefers-reduced-motion:reduce){.menu-rays{animation:rays-in .01s forwards}.menu-logo-wrap,#menu .menu-logo-wrap,.menu-logo-shine,#menu.intro .menu-buttons{animation:none!important}}

.round.switch{background:linear-gradient(#4fc3ff,#1677d6);border-color:#a9e6ff;text-shadow:0 3px 0 #0a4c8f}
.round.switch small{opacity:.9}
/* Penalty shootout */
#match.penalties #joystick,#match.penalties .action-buttons,#match.penalties #keyboard-hint,#match.penalties #weather-badge,#match.penalties #charge-meter{display:none!important}
#penalty-hud{position:absolute;inset:0;pointer-events:none}#penalty-hud[hidden]{display:none}
.pen-board{position:absolute;top:100px;left:50%;transform:translateX(-50%);background:#0b2350e0;border:3px solid #6fd3ff;border-radius:14px;padding:8px 16px;display:flex;flex-direction:column;gap:6px;box-shadow:0 5px 0 #031838}
.pen-row{display:flex;align-items:center;gap:12px}.pen-row img{width:42px;height:28px;box-shadow:0 2px 0 #021}.pen-row b{font-size:30px;font-weight:400;color:#ffe85a;width:30px;text-align:right}
.pen-dots{display:flex;gap:7px}.pen-dots i{width:22px;height:22px;border-radius:50%;border:3px solid #9cc7e6;background:#0c2f63}.pen-dots i.scored{background:#2fe06a;border-color:#c8ffd8}.pen-dots i.missed{background:#ff4058;border-color:#ffc0c9}
#pen-tip{position:absolute;bottom:150px;width:100%;text-align:center;font-size:30px;letter-spacing:1.5px;text-shadow:0 3px 0 #052658,0 0 12px #000a}#pen-tip b{color:#ffe94c;font-weight:400}
#pen-kick{position:absolute;right:40px;bottom:36px;width:170px;height:170px;font-size:42px;pointer-events:auto;animation:save-pulse .5s ease-in-out infinite alternate}#pen-kick[hidden]{display:none}
#pen-dive{position:absolute;bottom:36px;left:50%;transform:translateX(-50%);display:flex;gap:18px;pointer-events:auto}#pen-dive[hidden]{display:none}
#pen-dive button{min-width:210px;height:84px;border-radius:18px;border:4px solid #a9e6ff;background:linear-gradient(#2a9bff,#0b55c9);font-size:34px;letter-spacing:1px;box-shadow:0 6px 0 #04306e;text-shadow:0 3px 0 #06326e}
#pen-dive button.chosen{background:linear-gradient(#fff36a,#f5b400);color:#3a2a00;text-shadow:none;border-color:#fffbd0}
.pen-result{display:block;font-size:20px;color:#bfe9ff;letter-spacing:2px;text-align:center}
.pen-board{top:104px;left:24px;transform:none}
/* Champions celebration */
#celebration{overflow:hidden}
#confetti{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:2}
.champ-rays{position:absolute;left:640px;top:250px;width:1700px;height:1700px;margin:-850px 0 0 -850px;border-radius:50%;pointer-events:none;
  background:repeating-conic-gradient(from 0deg,#fff6bf 0deg 6deg,#fff6bf00 6deg 16deg);-webkit-mask:radial-gradient(circle,#000 3%,#000a 20%,#0000 50%);mask:radial-gradient(circle,#000 3%,#000a 20%,#0000 50%);
  mix-blend-mode:screen;opacity:0;animation:rays-in 1.4s .4s ease-out forwards,rays-spin 30s linear infinite}
.champ-text{position:absolute;left:0;right:0;top:26px;text-align:center;z-index:3;pointer-events:none;animation:logo-drop 1.1s 1.6s cubic-bezier(.2,.9,.3,1.25) both}
.champ-title{margin:0;font-size:96px;letter-spacing:5px;line-height:1;color:#ffe14a;-webkit-text-stroke:3px #6b3a00;text-shadow:0 5px 0 #f08a00,0 10px 0 #5a2c00,0 0 40px #ffd84a;animation:champ-glow 1.2s 2.7s ease-in-out infinite alternate}
@keyframes champ-glow{to{filter:brightness(1.25);transform:scale(1.04)}}
.champ-team{display:inline-flex;align-items:center;gap:14px;margin-top:10px;padding:6px 22px;border-radius:14px;background:#0b2350cc;border:3px solid #ffe14a;font-size:38px;letter-spacing:3px;text-shadow:0 3px 0 #06224f}
.champ-team img{width:60px;height:40px;box-shadow:0 2px 0 #021}
.champ-next{position:absolute;right:40px;bottom:34px;z-index:3;height:70px;padding:0 34px;font-size:34px;opacity:0;animation:buttons-show .5s 3.2s ease-out forwards}
@keyframes buttons-show{to{opacity:1}}
.champ-title{font-size:80px}.champ-team{font-size:32px;margin-top:6px}.champ-text{top:14px}
.champ-rays{top:330px}@keyframes rays-in-champ{to{opacity:.5}}.champ-rays{animation:rays-in-champ 1.4s .4s ease-out forwards,rays-spin 30s linear infinite}

.champ-rays{display:none!important}
.menu-mapi{position:absolute;left:50%;bottom:34px;width:140px;height:auto;transform:translateX(-50%);filter:drop-shadow(0 4px 5px #0009);pointer-events:none;animation:buttons-show .6s 1s ease-out both}
#menu:not(.intro) .menu-mapi{animation:none}
