@font-face{font-family:Staatliches;src:url('../fonts/Staatliches-Regular.ttf') format('truetype');font-display:swap}
/* Everything is scoped to #game: portal ad overlays (Skip ad button) keep the browser defaults. */
:where(#game),:where(#game) *{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#07152d}:where(#game) button{font:inherit;color:inherit;cursor:pointer;touch-action:none}:where(#game) button:focus-visible{outline:4px solid #fffba1;outline-offset:3px}:where(#game) button:disabled{opacity:.55;cursor:default}#game{color:#fff;font-family:Staatliches,Impact,sans-serif;touch-action:none;user-select:none;-webkit-user-select:none;overscroll-behavior:none;position:absolute;width:720px;height:1280px;overflow:hidden;transform-origin:0 0;outline:none;background:#117fdb}#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.jpg') center/cover;cursor:pointer}#start{position:absolute;left:50%;top:43%;transform:translate(-50%,-50%);padding:18px 28px;border:3px solid #92dcff;border-radius:17px;background:linear-gradient(#153974ed,#071749ed);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:30px;left:50%;transform:translateX(-50%);width:200px;height:auto;filter:drop-shadow(0 3px 4px #0009)}
.art-menu{background:url('../images/menu.jpg') center/cover}.menu-buttons{position:absolute;left:134px;top:504px;width:453px;height:309px;display:flex;flex-direction:column;gap:10px}.chunk{position:relative;display:flex;justify-content:center;align-items:center;gap:16px;min-height:60px;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:32px;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:39px;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:39px;height:39px;align-items:center;justify-content:center;flex:none;filter:drop-shadow(0 2px 0 #082d6644)}:where(#game) svg{width:100%;height:100%;fill:currentColor}.menu-buttons .icon{width:48px;height:48px;border-right:2px solid #ffffff70;padding-right:16px;box-sizing:content-box}.menu-hint{position:absolute;bottom:26px;width:100%;text-align:center;font-size:24px;letter-spacing:1px;text-shadow:0 2px 4px #00345b}.small-help{position:absolute;right:20px;bottom:68px;width:49px;height:49px;border:3px solid #6adaff;background:#0c4c96;border-radius:50%;font-size:30px}
h1,h2,p{margin:0}.art-selection{background:url('../images/selection.jpg') center/cover}.stadium-screen{background:linear-gradient(#07295a96,#004d4870);backdrop-filter:blur(3px)}.game-title{display:block;text-align:center;font-size:66px;line-height:.95;letter-spacing:2px;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:#fff}.small-title{padding-top:65px;margin:0 auto 28px;height:160px;width:650px}.ribbon{height:72px;padding:10px 12px;text-align:center;display:flex;align-items:center;justify-content:center;gap:15px;background:linear-gradient(#1189ed,#0055b6);border:4px solid #31cbff;border-radius:12px;box-shadow:0 5px 0 #003e89,0 8px 18px #0005;font-size:34px;text-shadow:0 3px 0 #074479;letter-spacing:1px}.ribbon .icon{color:#ffe332}#selection .ribbon{position:absolute;left:56px;right:56px;top:316px;height:74px;font-size:32px}.selection-summary{position:absolute;left:124px;right:124px;top:388px;height:69px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;background:linear-gradient(#074474,#062b54);border:3px solid #19b9ff;border-radius:0 0 9px 9px;font-size:27px;letter-spacing:1px;text-shadow:0 2px 0 #174b34}#fixture{font-size:21px;color:#d4fbff}#fixture b{color:#ffe129;padding:0 11px}#team-grid{display:grid;grid-template-columns:repeat(6,1fr);grid-template-rows:repeat(3,1fr);gap:7px;padding:6px;background:#023b81;border:4px solid #19baff;border-radius:15px;box-shadow:inset 0 3px 0 #78e1ff88,0 5px 0 #032b55;position:absolute;top:470px;left:22px;right:22px;height:522px}.team-card{position:relative;border:3px solid #46cafa;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:19px;letter-spacing:.2px}.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:50%;transform:translateX(-50%);top:10px;width:65px;height:40px;object-fit:fill;box-shadow:0 2px 0 #002d6b}.team-card .preview{width:91px;height:103px;object-fit:contain;margin:21px 0 12px;filter:drop-shadow(0 3px 2px #083c99)}.team-card .name{position:absolute;bottom:9px;left:1px;right:1px;text-align:center;line-height:1}.team-check{position:absolute;top:5px;right:3px;background:#fff65c;color:#024869;border-radius:50%;width:22px;height:22px;line-height:22px;font-size:18px;z-index:2}.selection-footer{position:absolute;left:22px;right:22px;top:1123px;display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px}.selection-footer .chunk{height:77px;font-size:27px;gap:9px}.selection-footer .icon,.selection-footer svg{width:29px;height:29px;flex:none}
.art-options{background:url('../images/options.jpg') center/cover}.options-panel{position:absolute;top:451px;left:106px;width:508px;height:523px;padding:4px 0}.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:40px;letter-spacing:2px;text-shadow:0 3px 0 #143075;padding:4px 0 8px}.settings{margin:0 7px;padding:7px;background:#dfedff;border:3px solid #fff;border-radius:18px;color:#071b79;display:flex;flex-direction:column;gap:4px}.setting{display:flex;align-items:center;gap:5px;background:#f4f8ff;border-radius:10px;min-height:39px;padding:2px 8px;font-size:20px;line-height:1}.setting-icon{color:#0356e9;width:29px;height:29px;display:flex;align-items:center;justify-content:center;font-size:29px;margin-right:6px;flex:none}.setting label{flex:1;white-space:nowrap}.value{width:93px;text-align:center;font-size:20px}.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:34px;height:31px;font-size:20px;text-shadow:0 2px 0 #0453bd;flex:none}.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:17px;margin:12px 12px}.panel-footer .chunk{flex:1;height:55px;font-size:29px;gap:12px;border-radius:15px}.panel-footer .icon{width:30px;height:30px}#pitch-value{font-size:17px}
#scoreboard{position:absolute;top:68px;left:24px;right:96px;height:72px;display:flex;align-items:stretch;border-radius:9px;filter:drop-shadow(0 5px 0 #0c29434d);font-size:28px}.score-team{display:flex;gap:9px;align-items:center;justify-content:center;flex:1;min-width:0;background:linear-gradient(#057bff,#003bb8);padding:3px 6px;text-shadow:0 2px 0 #09317b;border:2px solid #0097ff;border-radius:6px}.score-team img{width:62px;height:62px;object-fit:contain;background:#67b6f3;border:3px solid #e5faff;border-radius:7px;box-shadow:0 2px 0 #062b7b}.score-team>span{white-space:nowrap;font-size:27px;letter-spacing:.3px;line-height:1.1;text-align:center}.score-team small{display:block;font-size:17px;color:#c7edff;white-space:normal}.score-team.away{background:linear-gradient(#f73546,#b41635);border-color:#ff7d73;text-shadow:0 2px 0 #7e1130}.score-team.away img{background:#ef8068}.score-team.away small{color:#ffdddd}.score-number{width:63px;display:grid;place-items:center;background:linear-gradient(#1398ff,#0064e8);font-size:52px;font-weight:400;border:2px solid #38b8ff;border-radius:6px;text-shadow:0 3px 0 #135ead;flex:none}.away-number{background:linear-gradient(#ff5b54,#e82637);color:#fff;border-color:#ff8577;text-shadow:0 3px 0 #a51427}.score-dash{width:38px;flex:none;background:linear-gradient(#28384b,#172539);border:2px solid #4d677c;border-radius:6px;display:grid;place-items:center;font-size:42px;font-weight:400}.pause-button{position:absolute;right:18px;top:70px;width:63px;height:66px;border-radius:12px;border:2px solid #7aa0c4;background:linear-gradient(#213c5d,#101d32);box-shadow:0 4px 0 #092041;padding:14px}.pause-button svg{width:100%;height:100%}#match-info{position:absolute;top:144px;left:110px;right:110px;display:flex;align-items:center;justify-content:space-between;background:#102d50d9;border:1px solid #8fc6f788;border-radius:8px;padding:5px 16px;min-height:33px;font-size:22px;letter-spacing:1px}#match-info>span:first-child{display:flex;align-items:center;gap:11px}#match-info img{width:29px;height:19px}#match-info b{color:#ffe454;font-weight:400}#timer{font-size:24px;color:#fff}#weather-badge{position:absolute;left:22px;top:189px;background:#102d50b9;border:1px solid #89ceee66;border-radius:7px;padding:5px 9px;font-size:19px;color:#e4f9ff;letter-spacing:1px}#phase{position:absolute;right:22px;top:193px;font-size:18px;color:#e2f7ff;text-shadow:0 2px 2px #073b77;max-width:270px;text-align:right}#serve-hint{position:absolute;top:254px;left:90px;right:90px;padding:8px 12px;border-radius:12px;background:#0b3569d9;border:2px solid #ffe05b;color:#ffe663;font-size:25px;text-align:center;letter-spacing:1px}#serve-hint[hidden]{display:none}.match-banner{position:absolute;top:42%;left:0;width:100%;text-align:center;font-size:62px;letter-spacing:3px;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:72px;text-shadow:0 5px 0 #e98413,0 9px 0 #062e7e,0 0 50px #ffcc38}.match-banner small{display:block;font-size:25px;letter-spacing:2px;margin-top:6px;color:#fff}@keyframes banner-pop{from{transform:scale(.7)}to{transform:scale(1)}}#charge-meter{position:absolute;bottom:360px;left:50%;transform:translateX(-50%);width:310px;background:#102844e8;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:23px;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:21px;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:23px;bottom:155px;width:176px;height:176px;border-radius:50%;background:#bddab029;border:5px solid #e1f8d59a;box-shadow:inset 0 0 18px #16362d70;touch-action:none}#joy-knob{position:absolute;left:47px;top:47px;width:72px;height:72px;border-radius:50%;background:linear-gradient(#f6fff3e9,#b9cbbce9);border:2px solid #fff9;box-shadow:0 4px 0 #344d4799,0 5px 10px #092b3755;pointer-events:none}.joy-arrow{position:absolute;color:#e2f9dbc9;font-size:22px;pointer-events:none}.joy-arrow.up{left:70px;top:8px}.joy-arrow.down{left:70px;bottom:7px}.joy-arrow.left{left:9px;top:68px}.joy-arrow.right{right:9px;top:68px}.action-buttons{position:absolute;bottom:153px;right:21px;display:flex;gap:12px;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:140px;height:140px;background:linear-gradient(#29b4ff,#0075f5);font-size:36px}.shoot{width:155px;height:155px;background:linear-gradient(#42e66c,#12b951);border-color:#9bf594;font-size:39px;text-shadow:0 3px 0 #0c7e3a}.round small{font-size:16px;letter-spacing:1px;margin-top:2px}#keyboard-hint{position:absolute;bottom:102px;left:25px;right:25px;text-align:center;color:#f0ffef;text-shadow:0 2px 3px #173d35;font-size:20px;line-height:1.2;letter-spacing:.5px}
#bracket>.ribbon{margin:12px 45px 0}.cup-progress{text-align:center;font-size:30px;letter-spacing:2px;margin:30px 0;color:#f7ed84;text-shadow:0 3px 0 #103873}#bracket-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;padding:3px 24px}.bracket-column h3{text-align:center;font-size:20px;letter-spacing:.5px;color:#d7faff;margin:0 0 12px}.bracket-column{display:flex;flex-direction:column;justify-content:center;gap:16px;height:560px}.bracket-match{background:linear-gradient(#075799,#06346c);border:2px solid #48c9ff;border-radius:13px;padding:10px 8px;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:5px;font-size:19px;padding:4px 0}.bracket-row img{width:27px;height:18px}.bracket-row span{flex:1;line-height:1}.bracket-row.winner{color:#ffec4b}.bracket-row b{font-weight:400;font-size:24px}.bracket-footer{position:absolute;bottom:155px;left:60px;right:60px;display:flex;flex-direction:column;gap:18px}.bracket-footer .chunk{min-height:70px;font-size:31px}.result-panel{position:absolute;top:258px;left:65px;width:590px;min-height:720px;padding:22px;background:linear-gradient(#138bf0,#063783)}.big-trophy{display:block;text-align:center;font-size:74px;color:#ffe342;line-height:1.05;filter:drop-shadow(0 4px 0 #976914)}.big-trophy svg{height:90px;width:90px}.result-panel h2{font-size:47px;padding:14px 0 7px}.result-panel p{text-align:center;color:#9ae9ff;font-size:24px;letter-spacing:2px}#result-score{display:flex;align-items:center;justify-content:center;gap:20px;margin:30px 0;font-size:60px;color:#fff65a}#result-score .result-team{width:143px;display:flex;flex-direction:column;align-items:center;color:#fff;font-size:25px;gap:6px}#result-score img{width:70px;height:45px}#result-stats{background:#05285180;border:1px solid #81dfff66;border-radius:13px;padding:12px 15px;font-size:25px}.stat-row{display:grid;grid-template-columns:1fr 2fr 1fr;padding:8px 0;text-align:center;border-bottom:1px solid #fff1}.stat-row:last-child{border:0}.stat-row span{color:#b7e1ff;font-size:22px}.result-panel .panel-footer{margin:28px 0 7px;gap:15px;flex-direction:column}.result-panel .chunk{min-height:63px;font-size:30px}
#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:570px;padding:24px;background:linear-gradient(#128ff1,#07418c)}.modal-panel h2{font-size:46px;padding:0 0 15px}#modal-body{font-size:26px;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:14px 0}#modal-body .muted{font-size:22px;color:#a7dfff}.control-row{display:flex;gap:9px;justify-content:center;margin:16px 0}.control-row button{min-height:43px;font-size:24px;padding:3px 17px;border-radius:9px}#modal-actions{display:flex;flex-direction:column;gap:15px;margin-top:24px}#modal-actions .chunk{height:64px;font-size:33px}#toast{position:absolute;bottom:40px;left:50%;transform:translateX(-50%);border:2px solid #a1edff;background:#073370f2;border-radius:12px;padding:12px 24px;font-size:27px;letter-spacing:1px;pointer-events:none;opacity:0;transition:opacity .2s;z-index:30;white-space:nowrap}#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}.score-flash{animation:score-pulse .3s ease-out}@keyframes score-pulse{50%{transform:scale(1.12);filter:brightness(1.5)}}
#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:24px;right:24px;top:240px;display:flex;align-items:center;justify-content:space-between;pointer-events:none}#replay-hud[hidden]{display:none}#replay-hud>span{padding:9px 16px;border:2px solid #fff;border-radius:9px;background:#0b234dc9;color:#fff;font-size:27px;letter-spacing:1px;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:49px;min-height:49px;padding:0 24px;font-size:25px;pointer-events:auto}.replay-mode #joystick,.replay-mode .action-buttons,.replay-mode #keyboard-hint,.replay-mode #serve-hint{opacity:0;pointer-events:none}
@media(prefers-reduced-motion:reduce){.menu-buttons .chunk,#start span{animation:none}.screen.active{animation:none}}
.options-panel{height:565px}#joystick,.action-buttons{display:none;bottom:10px}#game.touch #joystick{display:block}#game.touch .action-buttons{display:flex}#keyboard-hint{bottom:28px}
#charge-meter{top:1045px;bottom:auto}
#serve-hint{top:auto;bottom:253px;left:70px;right:70px;padding:6px 12px}
#weather-badge{top:22px}#phase{top:26px}

#gamepad-hint{position:absolute;bottom:28px;left:25px;right:25px;text-align:center;color:#f0ffef;text-shadow:0 2px 3px #173d35;font-size:20px;line-height:1.2;letter-spacing:.5px}#gamepad-hint[hidden]{display:none}#game.gamepad #keyboard-hint{display:none}#game.touch #gamepad-hint{bottom:190px;font-size:18px}.replay-mode #gamepad-hint{opacity:0;pointer-events:none}
/* Fictional roster, timed serves and an immediate match verdict. */
.team-card .name{bottom:27px;font-size:15px;color:#bde9ff}.team-card .player-name{position:absolute;left:2px;right:2px;bottom:8px;font-size:16px;line-height:1;text-align:center;white-space:nowrap;letter-spacing:0}.team-card .preview{margin-bottom:26px;height:95px}.score-team strong{display:block;max-width:138px;overflow:hidden;text-overflow:ellipsis;font-size:20px;font-weight:400;letter-spacing:0;text-transform:uppercase}.score-team small{font-size:16px}.result-team small{display:block;color:#a7e6ff;font-size:17px}.result-team span{text-align:center;font-size:22px;line-height:1.15;text-transform:uppercase}#fixture{text-transform:uppercase;font-size:19px}.bracket-row span{font-size:17px;text-transform:uppercase}.serve-timing .charge-track i{width:6%;border-left:2px solid #fff;background:#fff5}.serve-timing .charge-label{font-size:21px}.serve-timing.over .charge-label small{display:none}#match-outcome{position:absolute;top:285px;left:75px;right:75px;z-index:3;text-align:center;font-size:72px;letter-spacing:3px;color:#fff267;text-shadow:0 5px #eb8613,0 9px #07326b,0 0 35px #ffdf3d;background:linear-gradient(90deg,#06285300,#062853df 20%,#062853df 80%,#06285300);padding:8px 10px 14px;pointer-events:none;animation:banner-pop .22s ease-out}#match-outcome[hidden]{display:none}#match-outcome small{display:block;margin-top:7px;font-size:24px;letter-spacing:2px;color:white;text-transform:uppercase;text-shadow:0 3px #072658}#match-outcome.cpu-win{color:#ffb6ba;text-shadow:0 5px #a12d45,0 9px #07326b,0 0 35px #ff5864}
/* Consistent option values, three touch strokes and deliberate tournament rhythm. */
.setting .value,#pitch-value{font-size:22px;width:108px;flex:none;white-space:nowrap}.setting .value.compact-value{font-size:19px}.action-buttons{gap:10px;right:18px}.action-buttons .round{width:124px;height:124px;font-size:29px}.action-buttons .pass{width:130px;height:130px}.round.curve{background:linear-gradient(#bd8aff,#7b39e8);border-color:#dfb7ff;text-shadow:0 3px #613492}.celebration-mode #joystick,.celebration-mode .action-buttons,.celebration-mode #keyboard-hint,.celebration-mode #gamepad-hint,.celebration-mode #serve-hint{display:none!important}.celebration-mode #match-outcome{top:225px;font-size:62px}.celebration-mode #scoreboard,.celebration-mode #match-info{opacity:.82}#advance-card{position:absolute;top:333px;left:28px;right:28px;height:72px;border:2px solid #ffe960;border-radius:12px;background:linear-gradient(90deg,#075989,#0a3c74);box-shadow:0 0 18px #ffe14333;display:flex;align-items:center;justify-content:center;padding:8px 16px 8px 128px;overflow:hidden}#advance-card[hidden],#next-fixture[hidden]{display:none}#advance-card>img{position:absolute;left:30px;top:16px;width:56px;height:36px;border:2px solid #fff;border-radius:4px;animation:flag-advance 1.1s cubic-bezier(.2,.8,.3,1) forwards;box-shadow:0 0 14px #fff07a55}#advance-card strong{display:block;color:#fff267;font-size:24px;font-weight:400;text-transform:uppercase}#advance-card span{display:block;font-size:20px;color:#d6f8ff;letter-spacing:1px}#advance-card b{color:#ffe555;margin:0 9px}@keyframes flag-advance{from{transform:translateX(-22px) scale(.85);opacity:.3}to{transform:translateX(38px) scale(1.08);opacity:1}}#next-fixture{position:absolute;top:417px;left:28px;right:28px;height:100px;border:2px solid #66d9ff;border-radius:13px;background:#073b70e8;display:grid;grid-template-columns:1fr 78px 1fr;align-items:center;padding:8px 10px;box-shadow:0 4px #052850}.duel-player{display:flex;align-items:center;gap:7px;min-width:0}.duel-player .duel-model{width:70px;height:77px;object-fit:contain}.duel-player strong{display:block;font-size:22px;font-weight:400;text-transform:uppercase;line-height:1.08}.duel-player small{display:flex;align-items:center;gap:6px;color:#a8e4ff;font-size:18px;margin-top:5px}.duel-player small img{width:27px;height:17px}.duel-vs{font-size:32px;color:#ffe952;text-align:center}.duel-vs small{display:block;font-size:16px;color:#c6f3ff;white-space:nowrap}#bracket-grid{position:absolute;top:541px;left:0;right:0}#bracket-grid .bracket-column{height:386px;gap:13px}.bracket-match.current{animation:next-round-glow 2s ease-in-out infinite}@keyframes next-round-glow{50%{box-shadow:0 0 22px #ffec5566}}
.setting #pitch-value.compact-value{font-size:19px}
#bracket-grid .bracket-match{padding:7px 7px}#bracket-grid .bracket-row{height:25px;padding:2px 0;line-height:1.05}#bracket-grid .bracket-row span{font-size:17px;line-height:1.05}#bracket-grid .bracket-row b{font-size:22px;line-height:1}#bracket-grid .bracket-column h3{line-height:1.1;margin-bottom:10px}
/* Dedicated control setup keeps the court and live inputs separate. */
.options-panel{height:617px}.setting-controls{padding:3px 5px;min-height:43px}.setting-controls-button{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;height:35px;border:2px solid #31b9f5;border-radius:9px;background:linear-gradient(#137efa,#0757d4);box-shadow:inset 0 2px #ffffff60,0 2px #084399;color:#fff;font-size:24px;letter-spacing:1px;text-shadow:0 2px #083d89}.setting-controls-button svg{width:33px;height:24px}.setting-controls-button span:last-child{font-size:19px;margin-left:auto;margin-right:7px}.setting-controls-button span:nth-child(2){flex:1;text-align:center}
.controls-screen{background:linear-gradient(#061e4c99,#052c72b8),url('../images/menu.jpg') center/cover}.controls-panel{position:absolute;top:106px;left:38px;width:644px;height:1114px;padding:14px 17px;background:linear-gradient(#099cff,#065fc8 58%,#034d9e)}.controls-panel h2{font-size:42px;padding:0 0 11px;text-shadow:0 3px #093579}.controls-tabs{display:flex;gap:12px}.controls-tabs .chunk{height:52px;min-height:52px;flex:1;font-size:29px;border-radius:12px;letter-spacing:1px}.controls-tabs .chunk:not(.selected){filter:saturate(.55);opacity:.79}.controls-tabs .chunk.selected{border-color:#fff788;box-shadow:inset 0 3px #fff5,0 4px #05275b,0 0 17px #fff16750}.controls-intro{text-align:center;font-size:21px;letter-spacing:.65px;color:#d2f6ff;padding:16px 0 10px}.control-mappings{padding:8px;background:#dfedff;border:3px solid white;border-radius:16px;display:flex;flex-direction:column;gap:5px;color:#072260}.control-binding-row{display:flex;align-items:center;gap:8px;min-height:47px;padding:3px 7px;border-radius:8px;background:#f4f8ff}.binding-symbol{width:32px;color:#0d68e8;font-size:28px;text-align:center;flex:none}.control-binding-row label{font-size:25px;letter-spacing:.5px;flex:1}.binding-button{width:255px;min-height:39px;border:2px solid #0c66c4;border-radius:8px;background:linear-gradient(#1a98ff,#0964d0);color:#fff;box-shadow:inset 0 2px #8ce3ff,0 2px #254c99;text-shadow:0 2px #064289;font-size:24px;letter-spacing:.4px;white-space:nowrap;padding:3px 8px}.control-binding-row.drive .binding-symbol{color:#0787e5}.control-binding-row.curve .binding-symbol{color:#9852ed}.control-binding-row.lob .binding-symbol{color:#12a641}.binding-button.listening{background:linear-gradient(#ffe85a,#f0b52d);border-color:#fff2a0;box-shadow:0 0 17px #ffd840;color:#143060;text-shadow:none;animation:binding-listen 1s ease-in-out infinite}.binding-button.tested:not(.listening){background:linear-gradient(#7eed65,#19b837);border-color:#b7fb76;text-shadow:0 2px #188332}.controls-note{margin:20px 5px 0;padding:18px 12px;border:2px solid #64d1ff;border-radius:13px;background:#073870b0;display:flex;flex-direction:column;gap:13px;text-align:center;font-size:22px;color:#caefff;line-height:1.2}.controls-note strong{font-weight:400;font-size:27px;color:#fff066;letter-spacing:1px}.controls-note[hidden],#gamepad-control-tools[hidden],#control-custom-axes[hidden]{display:none}.controller-test{margin:13px 0 8px;display:flex;gap:12px;padding:9px 12px;background:#07386acb;border:2px solid #65caff;border-radius:11px;height:105px}.stick-test{position:relative;flex:none;width:79px;height:79px;border:2px solid #91daff;border-radius:50%;background:radial-gradient(circle,#60b8ea44 0 19%,transparent 20%),linear-gradient(transparent 48%,#d7eeff55 49% 51%,transparent 52%),linear-gradient(90deg,transparent 48%,#d7eeff55 49% 51%,transparent 52%)}.stick-test i{position:absolute;inset:26px;border:1px dashed #b2e6ffa0;border-radius:50%}.stick-test b{position:absolute;left:29px;top:29px;width:17px;height:17px;border-radius:50%;background:#fff55c;box-shadow:0 0 10px #ffff7b99}.stick-test b.inside-deadzone{background:#9fd4ff;box-shadow:none}.controller-readout{display:flex;flex-direction:column;justify-content:center;gap:4px;min-width:0;flex:1;font-size:19px;line-height:1.03;letter-spacing:.3px;color:#bcdef5}.controller-readout strong{font-weight:400;font-size:24px;color:#ffc471}.controller-readout strong.connected{color:#aeff8b}.controller-readout #controller-identity{font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:450px}.controller-readout #controller-buttons{color:#fff55e;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.controller-readout #controller-axes{font-size:18px;color:white}.controller-tuning{padding:8px 12px;background:#e4efff;border:3px solid #fff;border-radius:12px;color:#082d77;display:flex;flex-direction:column;gap:6px}.tuning-row{display:flex;align-items:center;gap:12px;min-height:29px;font-size:21px}.tuning-row>span{width:128px;flex:none;letter-spacing:.5px}.tuning-row select{font:inherit;color:#0d3678;border:2px solid #73b9eb;border-radius:7px;height:31px;background:white;padding:2px 10px;min-width:205px}.tuning-row.custom-axes{padding-left:139px;gap:16px}.custom-axes label{display:flex;align-items:center;gap:8px;font-size:19px}.custom-axes select{min-width:62px;width:64px;height:29px;padding:0 7px}.invert-row{min-height:32px}.invert-row label{display:flex;align-items:center;gap:5px;font-size:18px;white-space:nowrap}.invert-row input{appearance:none;margin:0;width:22px;height:22px;border:2px solid #0d66d3;border-radius:5px;background:white;display:inline-grid;place-items:center}.invert-row input:checked{background:#0d77e2}.invert-row input:checked::after{content:'✓';color:white;font-size:21px;line-height:1}.deadzone-row input{flex:1;height:22px;accent-color:#067aed;touch-action:auto}.deadzone-row output{width:46px;color:#0758b3;font-size:23px;text-align:right}.controls-feedback{position:absolute;left:22px;right:22px;bottom:103px;min-height:45px;display:flex;align-items:center;justify-content:center;text-align:center;padding:6px 11px;border:1px solid #72d5ff80;border-radius:10px;background:#07346dad;color:#fff270;font-size:21px;line-height:1.15;letter-spacing:.35px}.controls-footer{position:absolute;bottom:21px;left:19px;right:19px;display:flex;gap:11px}.controls-footer .chunk{flex:1;min-height:62px;height:62px;font-size:26px;gap:6px;border-radius:14px}.controls-footer #controls-save{flex:1.05}.capturing-control .controls-feedback{border-color:#fff77a;box-shadow:0 0 16px #ffe45b44}.controls-screen button:focus-visible,.controls-screen select:focus-visible,.controls-screen input:focus-visible{outline:3px solid #ffe75b;outline-offset:3px}@keyframes binding-listen{50%{filter:brightness(1.14)}}@media(prefers-reduced-motion:reduce){.binding-button.listening{animation:none}}

/* Charged curves and the final World Tour prize presentation. */
#charge-meter.curve-charge:not(.serve-timing) #charge-fill{background:linear-gradient(90deg,#9770ff,#cf91ff,#fff176)}#charge-meter.curve-charge.super{box-shadow:0 0 28px #c477ff,0 3px 0 #02152e}#match.awards-mode #scoreboard,#match.awards-mode #match-info,#match.awards-mode #weather-badge,#match.awards-mode #phase{display:none}#match.awards-mode #match-outcome{top:155px;left:22px;right:22px;font-size:48px;line-height:1.1;padding:14px 12px}#match.awards-mode #match-outcome small{display:flex;align-items:center;justify-content:center;gap:12px;font-size:25px;line-height:1.15;margin-top:14px}#match.awards-mode #match-outcome small img{width:51px;height:32px;object-fit:contain;border:2px solid #fff;border-radius:4px}.award-caption{display:block;margin-top:14px;font-size:25px;color:#fff8c4;letter-spacing:2px;text-shadow:0 3px #163879}#match.awards-mode #match-outcome{animation:banner-pop .4s ease-out}

/* ===== Arcade upgrade: Star meter, speed gun, Special Modes, 16-player World Tour ===== */
.menu-buttons{top:486px;height:400px;gap:9px}.menu-buttons .chunk{font-size:36px}.menu-buttons .chunk:nth-child(4){animation-delay:1.5s}
.score-team{position:relative}.star-bar{position:absolute;left:8px;right:8px;bottom:3px;height:6px;border-radius:4px;background:#00000066;overflow:hidden}.star-bar b{display:block;height:100%;width:0;background:linear-gradient(90deg,#ff9b1c,#ffe23a,#fff8b0);transition:width .25s}.star-bar.full b{animation:star-glow .6s ease-in-out infinite alternate}.star-bar.full{box-shadow:0 0 10px #ffe23a}@keyframes star-glow{to{filter:brightness(1.6)}}
#mode-hud{position:absolute;top:144px;left:70px;right:70px;height:74px;display:grid;grid-template-columns:1fr 1.2fr 1fr;gap:8px}#mode-hud[hidden]{display:none}.mode-cell{display:flex;flex-direction:column;align-items:center;justify-content:center;background:#102d50e0;border:2px solid #8fd2ff99;border-radius:10px;line-height:1;gap:2px}.mode-cell b{font-weight:400;font-size:40px;color:#ffe454;text-shadow:0 3px #7b4a06}.mode-cell small{font-size:15px;letter-spacing:1px;color:#bfe9ff}#mode-mid{flex-direction:row;gap:8px}#mode-mid svg{width:34px;height:34px;color:#ffd84a}#mode-mid .life{font-style:normal;font-size:38px;color:#ff4d6a;text-shadow:0 3px #7a0d22;opacity:.22}#mode-mid .life.on{opacity:1}#mode-right.hurry b{color:#ff6f7f;animation:hurry .5s ease-in-out infinite alternate}@keyframes hurry{to{transform:scale(1.15)}}
.challenge-mode #match-info,.challenge-mode .score-number,.challenge-mode .score-dash{display:none}.challenge-mode .score-team.home{flex:1.2}.cannon-mode .score-team.away{background:linear-gradient(#4e5d73,#283447);border-color:#8aa1bd}.cannon-mode #away-avatar{visibility:hidden}.cannon-mode .star-bar{display:none}
#speed-readout{position:absolute;top:226px;right:22px;display:flex;align-items:baseline;gap:6px;padding:4px 12px;border-radius:10px;background:linear-gradient(#0d2b5ce6,#071a3ae6);border:2px solid #7fd8ff;box-shadow:0 3px #021230;opacity:0;transform:translateX(30px);pointer-events:none}#speed-readout small{font-size:15px;letter-spacing:1px;color:#a9e6ff}#speed-readout b{font-weight:400;font-size:38px;color:#fff;line-height:1}#speed-readout.visible{animation:speed-in 2.2s ease-out forwards}#speed-readout.fast b{color:#ffcf3a;text-shadow:0 0 12px #ff8a1c}@keyframes speed-in{0%{opacity:0;transform:translateX(40px)}10%{opacity:1;transform:translateX(-4px)}16%{transform:translateX(0)}80%{opacity:1}100%{opacity:0}}
.challenge-mode #speed-readout{top:228px}
#pop-layer{position:absolute;inset:0;pointer-events:none;overflow:hidden;z-index:2}.score-pop{position:absolute;transform:translate(-50%,-50%);font-size:44px;letter-spacing:1px;color:#fff;white-space:nowrap;text-shadow:0 4px #0a3577,0 0 16px #46c4ff;animation:pop-up 1.1s ease-out forwards}.score-pop.gold{color:#ffe14a;font-size:54px;text-shadow:0 4px #b25d06,0 0 20px #ffcf3a}.score-pop.item-pop{font-size:32px}.item-pop.turbo{color:#7ff3ff}.item-pop.fire{color:#ffae4a}.item-pop.mega{color:#8dff7a}.item-pop.freeze{color:#d5f2ff}.item-pop.star{color:#ffe14a}@keyframes pop-up{0%{opacity:0;transform:translate(-50%,-30%) scale(.5)}15%{opacity:1;transform:translate(-50%,-60%) scale(1.15)}30%{transform:translate(-50%,-70%) scale(1)}100%{opacity:0;transform:translate(-50%,-190%) scale(.95)}}
#star-meter{position:absolute;top:992px;left:50%;transform:translateX(-50%);width:400px;height:40px;display:flex;align-items:center;gap:8px;padding:4px 10px 4px 6px;background:#0d2546d9;border:2px solid #7fc8f0aa;border-radius:20px;box-shadow:0 3px #021733}#star-meter[hidden]{display:none}.star-icon{font-size:30px;color:#ffd23a;line-height:1;text-shadow:0 2px #8a4b00}.star-track{position:relative;flex:1;height:14px;border-radius:7px;background:#04152c;border:1px solid #3e6b8c;overflow:hidden}#star-fill{height:100%;width:0;background:linear-gradient(90deg,#ff7a1c,#ffd33a,#fffbb8);transition:width .25s}#star-text{position:absolute;left:52px;right:12px;top:-22px;text-align:center;font-size:17px;letter-spacing:1px;color:#d8f3ff;text-shadow:0 2px 2px #04203f;white-space:nowrap}#star-meter.ready{border-color:#ffe760;animation:star-ready .45s ease-in-out infinite alternate}#star-meter.ready #star-text{color:#ffe760}#star-meter.ready .star-icon{animation:spin-star 1.2s linear infinite}@keyframes star-ready{to{box-shadow:0 0 24px #ffd23a,0 3px #021733}}@keyframes spin-star{to{transform:rotate(360deg)}}
#buff-row{position:absolute;top:935px;left:0;right:0;display:flex;justify-content:center;gap:8px;pointer-events:none}.buff{display:inline-flex;align-items:center;gap:4px;font-style:normal;font-size:20px;letter-spacing:1px;padding:3px 10px;border-radius:9px;border:2px solid #fff8;background:#0b2a55e0}.buff svg{width:18px;height:18px}.buff.turbo{color:#7ff3ff;border-color:#7ff3ff}.buff.mega{color:#9dff8a;border-color:#9dff8a}.buff.fire{color:#ffb34d;border-color:#ffb34d;animation:star-glow .4s infinite alternate}.buff.freeze{color:#d8f4ff;border-color:#bfe9ff;background:#2a6fa8e0}
#charge-meter.star-charge{border-color:#ffb13a;box-shadow:0 0 30px #ff7a1c,0 3px 0 #02152e}#charge-meter.star-charge #charge-fill{background:linear-gradient(90deg,#ff3d6e,#ff9a1c,#ffe23a,#fff)}
#match.star-impact::after{content:'';position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse at center,#ffffffcc 0,#ffb34277 35%,#ff3d6e44 70%,#ff3d6e00 100%);animation:goal-light .6s ease-out}
.match-banner .callout{display:inline-block;margin-top:6px;padding:4px 22px;font-size:34px;letter-spacing:3px;color:#ffe14a;background:linear-gradient(90deg,#d0122f00,#d0122fe0 15%,#ff3b2fe0 85%,#d0122f00);transform:skewX(-12deg);text-shadow:0 3px #6b0716;animation:callout-in .3s ease-out}@keyframes callout-in{from{transform:skewX(-12deg) translateX(-120px);opacity:0}to{transform:skewX(-12deg);opacity:1}}
#modes .mode-list{position:absolute;top:345px;left:36px;right:36px;display:flex;flex-direction:column;gap:22px}.mode-card{min-height:178px;justify-content:flex-start;text-align:left;padding:14px 16px;gap:16px}.mode-card .mode-icon{width:78px;height:78px;flex:none;padding:13px;border-radius:18px;background:#ffffff26;box-shadow:inset 0 2px #fff4}.mode-card .mode-icon svg{width:52px;height:52px;color:#ffe449;filter:drop-shadow(0 2px 0 #0004)}.mode-text{flex:1;min-width:0}.mode-text strong{display:block;font-weight:400;font-size:40px;letter-spacing:1px;line-height:1.05}.mode-text small{display:block;font-size:19px;line-height:1.2;letter-spacing:.5px;color:#eef9ff;margin-top:6px;text-shadow:0 2px #0003}.mode-best{width:92px;flex:none;text-align:center;font-weight:400;font-size:21px;line-height:1.15;color:#fff6a8;background:#00000030;border-radius:12px;padding:8px 4px}.medal-dot{display:block;width:18px;height:18px;margin:5px auto 0;border-radius:50%;border:2px solid #fff}.medal-dot.m0,.medal-steps .m0.got{background:#d98b4e}.medal-dot.m1,.medal-steps .m1.got{background:#dfe8f2;color:#22344d}.medal-dot.m2,.medal-steps .m2.got{background:#ffd23a;color:#5a3600}.medal-dot.m-1{display:none}
#bracket-grid.bracket-16{display:grid;grid-template-columns:1.02fr 1fr 1.1fr 1.15fr;gap:7px;padding:3px 12px}#bracket-grid.bracket-16 .bracket-column{height:400px;gap:6px}#bracket-grid.bracket-16 .round-0{gap:4px}#bracket-grid.bracket-16 .bracket-column h3{font-size:17px;margin-bottom:4px}#bracket-grid.bracket-16 .bracket-match{padding:3px 5px;border-radius:9px}#bracket-grid.bracket-16 .bracket-row{height:19px;gap:4px}#bracket-grid.bracket-16 .bracket-row img{width:21px;height:14px}#bracket-grid.bracket-16 .bracket-row span{font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#bracket-grid.bracket-16 .bracket-row b{font-size:17px}#bracket-grid.bracket-16 .bracket-row.you span{color:#7ff3ff}#bracket-grid.bracket-16 .bracket-row.winner span{color:#ffec4b}
.challenge-score{display:flex;flex-direction:column;align-items:center;gap:4px}.challenge-score b{font-weight:400;font-size:104px;line-height:1;color:#ffe85a;text-shadow:0 5px #c26f05,0 9px #082c66}.challenge-score small{font-size:22px;letter-spacing:3px;color:#b9eaff}.medal-steps{display:flex;gap:8px;margin-top:10px}.medal-steps i{font-style:normal;font-size:18px;padding:4px 10px;border-radius:8px;background:#ffffff1c;color:#9fc6e2;border:1px solid #ffffff33}.stat-row.single{grid-template-columns:2fr 1fr}.stat-row.single span{text-align:left}.result-medal{display:inline-block;width:100px;height:100px;padding:12px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#fff9,#0000 60%),#9fd3ff33;border:4px solid currentColor}.result-medal svg{width:70px;height:70px}.result-medal.m0{color:#e4975a}.result-medal.m1{color:#e6eef7}.result-medal.m2{color:#ffd43b}.result-medal.m-1{color:#9fd3ff}
#game.touch #star-meter{top:968px;width:360px}#game.touch #buff-row{top:912px}

/* ===== Menu fix + guided tutorial ===== */
.menu-hint{bottom:146px;text-shadow:0 2px 4px #00345b,0 0 10px #00274f}
.small-tutorial{position:absolute;left:20px;bottom:68px;height:49px;display:flex;align-items:center;gap:8px;padding:0 16px 0 12px;border:3px solid #6adaff;background:#0c4c96;border-radius:25px;font-size:24px;letter-spacing:1px;box-shadow:0 4px 0 #062a57;animation:tut-call 2.4s ease-in-out infinite}.small-tutorial svg{width:30px;height:24px;color:#ffe449}.small-tutorial:hover{filter:brightness(1.15)}@keyframes tut-call{50%{box-shadow:0 4px 0 #062a57,0 0 18px #6adaff}}
#match.tutorial-mode #scoreboard,#match.tutorial-mode #match-info,#match.tutorial-mode #phase,#match.tutorial-mode #weather-badge{display:none}
#tutorial-panel{position:absolute;top:18px;left:18px;right:96px;padding:12px 16px 12px;z-index:3;border-radius:20px}#tutorial-panel[hidden]{display:none}
.tut-head{display:flex;justify-content:space-between;align-items:center;font-size:19px;letter-spacing:1px;color:#bfeaff}.tut-pips{display:flex;gap:5px}.tut-pips i{width:14px;height:14px;border-radius:50%;background:#ffffff30;border:2px solid #ffffff60}.tut-pips i.on{background:#5dff7a;border-color:#c9ffd2}.tut-pips i.now{background:#ffe449;border-color:#fff6b0;animation:star-glow .5s infinite alternate}
#tutorial-panel h2{text-align:left;font-size:44px;color:#ffe449;padding:2px 0 4px;text-shadow:0 3px 0 #143075}#tutorial-panel.done h2{color:#7dff8a}
#tut-text{font-size:22px;line-height:1.3;letter-spacing:.4px;color:#fff;text-shadow:0 2px 0 #0a3577}#tut-text small{display:block;font-size:17px;color:#bfeaff;margin-top:3px}#tut-text kbd{display:inline-block;background:#032e64;border:2px solid #ffe449;border-radius:6px;padding:0 7px;font:inherit;color:#ffe449}#tut-text em{font-style:normal}#tut-text em.g{color:#7dff8a}#tut-text em.y{color:#ffe449}#tut-text em.p{color:#d5b2ff}#tut-text em.o{color:#ffae4a}#tut-text b{font-weight:400;color:#7ff3ff}
.tut-foot{display:flex;justify-content:space-between;align-items:center;margin-top:9px}.tut-goal{display:flex;gap:8px}.tut-goal i{width:36px;height:36px;display:grid;place-items:center;border-radius:10px;font-style:normal;font-size:24px;color:#ffffff40;background:#00000030;border:2px solid #ffffff40}.tut-goal i.on{color:#fff;background:linear-gradient(#3ef07a,#0aa845);border-color:#b8ffcb;box-shadow:0 0 12px #5dff7a}
.tut-skip{min-height:40px;height:40px;padding:0 18px;font-size:22px;border-radius:12px}
#match.tutorial-mode #serve-hint{bottom:253px}
#serve-hint,#match.tutorial-mode #serve-hint{bottom:300px}#game.touch #serve-hint{bottom:326px}
/* Modals never overflow the screen: the body scrolls (mouse wheel, touch, keys), buttons stay visible. */
.modal-panel{max-height:1220px;display:flex;flex-direction:column}#modal-body{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;padding:0 8px 0 4px;scrollbar-width:thin;scrollbar-color:#ffe449 #052a5c}#modal-body::-webkit-scrollbar{width:12px}#modal-body::-webkit-scrollbar-track{background:#052a5c;border-radius:8px}#modal-body::-webkit-scrollbar-thumb{background:linear-gradient(#ffe449,#f0a91c);border-radius:8px;border:2px solid #052a5c}#modal-actions{flex:none}
.help-sec{background:#05285166;border:2px solid #7fd2ff55;border-radius:14px;padding:8px 12px;margin:0 0 10px}.help-sec h3{margin:0 0 2px;font-weight:400;font-size:27px;letter-spacing:2px;color:#ffe449;text-shadow:0 2px #0a3577}.help-sec p{margin:0!important;font-size:23px;line-height:1.35}#modal-body .help-sec .muted{font-size:19px}#modal-body em{font-style:normal}#modal-body em.y{color:#ffe449}#modal-body b{font-weight:400;color:#7ff3ff}
/* ===== Collection: ball skins and Grand Champions ===== */
.small-collection{bottom:128px;animation:none}
#collection .cup-progress{margin:18px 0 14px}
.coll-block{margin:0 26px 14px;padding:10px 12px 12px;background:#06305fd0;border:2px solid #48c9ff;border-radius:16px;box-shadow:0 4px 0 #002447}.coll-block h3{margin:0 0 8px;text-align:center;font-weight:400;font-size:22px;letter-spacing:1.5px;color:#ffe449}
#ball-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:7px}#legend-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}
.ball-chip,.legend-chip{display:flex;flex-direction:column;align-items:center;gap:3px;padding:7px 2px 6px;border:2px solid #46cafa;border-radius:12px;background:linear-gradient(#078bfb,#0357d1);box-shadow:inset 0 2px 0 #fff3,0 3px 0 #002e75;font-size:14px;letter-spacing:.3px;line-height:1.05;text-align:center}
.ball-chip.equipped{border:3px solid #fff660;box-shadow:0 0 14px #ffec4980}.ball-chip.locked,.legend-chip.locked{background:linear-gradient(#35507a,#1d3152);border-color:#5d7ea8;color:#a8bfdc}
.ball-icon{display:block;width:52px;height:52px;border-radius:50%;background:radial-gradient(circle at 34% 30%,#ffffffb0 0 10%,transparent 26%),radial-gradient(circle at 60% 70%,#0004 0,transparent 60%),var(--c);box-shadow:inset 0 0 0 3px #0002,0 3px 5px #0006;position:relative;overflow:hidden}.ball-icon::after{content:'';position:absolute;inset:-30% 18%;border:3px solid var(--s);border-radius:50%;opacity:.9}.ball-icon.rainbow{background:radial-gradient(circle at 34% 30%,#ffffffb0 0 10%,transparent 26%),conic-gradient(#ff4a4a,#ffd23a,#5dff7a,#3fb8ff,#b05cff,#ff4a4a)}.ball-icon.locked{filter:grayscale(1) brightness(.35)}.ball-icon.locked::before{content:'?';position:absolute;inset:0;display:grid;place-items:center;color:#fff;font-size:28px;z-index:1}
.legend-chip img{width:84px;height:92px;object-fit:contain;filter:drop-shadow(0 3px 2px #083c99)}.legend-chip.locked img{filter:brightness(0) drop-shadow(0 0 6px #6fd3ff)}.legend-chip:not(.locked){border-color:#ffd23a;background:linear-gradient(#ffb32a,#d4720a);color:#fff;text-shadow:0 2px #6b3a00}
.coll-info{margin:6px 30px 0;min-height:56px;text-align:center;font-size:21px;line-height:1.3;color:#d7f6ff;text-shadow:0 2px #04203f}.coll-info b{font-weight:400;color:#ffe449}
.team-card.legend{background:linear-gradient(#ffb32a,#d4720a);border-color:#ffe08a}.team-card.legend .name{color:#fff4cf}.team-card.locked{filter:saturate(.3) brightness(.75)}.team-card.locked .preview{filter:brightness(0) drop-shadow(0 0 5px #8fdcff)}.lock-tag{position:absolute;top:52px;left:50%;transform:translateX(-50%);background:#082a5c;border:2px solid #ffe449;color:#ffe449;border-radius:8px;padding:1px 6px;font-size:14px;white-space:nowrap}
#team-grid{grid-template-rows:none;grid-auto-rows:167px;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;scrollbar-width:thin;scrollbar-color:#ffe449 #023b81}#team-grid::-webkit-scrollbar{width:10px}#team-grid::-webkit-scrollbar-thumb{background:#ffe449;border-radius:6px}
.unlock-row{display:flex;align-items:center;gap:16px;margin:8px 10px;padding:8px 14px;background:#05285180;border:2px solid #ffe44988;border-radius:14px;text-align:left}.unlock-row img{width:70px;height:76px;object-fit:contain}.unlock-row .ball-icon{width:60px;height:60px}.unlock-row span{font-size:30px;color:#ffe449}.unlock-row small{display:block;font-size:17px;color:#bfeaff;letter-spacing:1px}
#weather-fx{position:absolute;inset:0;width:720px;height:1280px;pointer-events:none}
/* Readable HUD text on bright snow courts */
#keyboard-hint,#gamepad-hint{text-shadow:0 2px 3px #0b2340,0 0 6px #0b2340cc}#star-text{text-shadow:0 2px 2px #04203f,0 0 6px #04203fcc}.match-banner small{text-shadow:0 2px 0 #07398e,0 0 10px #031a40}
/* Hawk-eye review and rival styles */
.hawk-hud{position:absolute;top:310px;left:50%;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:6px;pointer-events:none;z-index:3}.hawk-hud[hidden]{display:none}.hawk-title{padding:6px 18px;border-radius:10px;background:#0b234de6;border:2px solid #fff;font-size:26px;letter-spacing:2px;color:#fff}
#hawk-verdict{font-weight:400;font-size:96px;line-height:1;letter-spacing:4px;color:#fff;text-align:center;text-shadow:0 6px 0 #062a57,0 0 30px #000a}#hawk-verdict small{display:block;font-size:28px;letter-spacing:2px;margin-top:4px}.hawk-hud.reveal #hawk-verdict{animation:banner-pop .3s ease-out}.hawk-hud.out #hawk-verdict{color:#ff5c6c}.hawk-hud.in #hawk-verdict{color:#6dff8a}
.style-tag{display:inline-block;margin-top:4px;padding:1px 8px;border-radius:7px;font-style:normal;font-size:15px;letter-spacing:1px;color:#ffe449;background:#00000040;border:1px solid #ffe44966}
#serve-hint,#match.tutorial-mode #serve-hint{bottom:322px}
#hawk-verdict:not(:empty){padding:10px 34px 14px;border-radius:18px;background:linear-gradient(#0b2a5cf0,#061a3cf0);border:3px solid currentColor;box-shadow:0 6px 0 #031330,0 0 30px #0008}
