@font-face{font-family:Stadium;src:url('../assets/fonts/stadium-display.woff') format('woff');font-weight:700;font-display:swap}
:root{--navy:#082b51;--blue:#0869a5;--yellow:#fff23f;--gold:#efbe10;--cyan:#76e8fa;--ink:#143346;--display:Stadium,'Arial Narrow',Impact,sans-serif;--line:#a9d8f24d;color-scheme:dark}
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden}body{font-family:Arial,Helvetica,sans-serif;font-size:16px;color:#fff;background:#084866;-webkit-tap-highlight-color:transparent}button,input,a{font:inherit}button{border:0;cursor:pointer;color:inherit}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #fff;outline-offset:5px}button:disabled{cursor:not-allowed;opacity:.4}button svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}button:active{transform:translateY(2px)}h1,h2,h3,p{margin:0}[hidden]{display:none!important}.game{position:relative;width:100%;height:100%;height:100dvh;isolation:isolate;overflow:hidden;touch-action:manipulation}#pitch,.scene-shade{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.scene-shade{background:linear-gradient(180deg,#004f9273 0%,#034b7b28 44%,#043e2a20 70%,#002c2570 100%)}.game[data-screen=match] .scene-shade{background:linear-gradient(180deg,#0032481a,transparent 26%,transparent 72%,#123a245c)}.screen{position:absolute;inset:0}.topbar{position:absolute;z-index:12;top:0;left:0;right:0;display:flex;justify-content:space-between;align-items:center;padding:22px 28px;pointer-events:none}.topbar button{pointer-events:auto}.brand{display:flex;gap:10px;align-items:center;background:none;font-size:11px;letter-spacing:1.5px;text-align:left;text-shadow:0 2px 4px #002a42;font-weight:900;padding:0}.brand strong{display:block;font-size:18px;letter-spacing:.5px}.brand-ball{font-size:35px;filter:drop-shadow(0 3px 2px #00294780)}.top-actions{display:flex;gap:10px}.icon-button{width:45px;height:45px;background:linear-gradient(#2487c4,#07568c);border:2px solid #94c8ec99;border-radius:13px;display:grid;place-items:center;box-shadow:0 4px 0 #033961,0 5px 12px #00283647}.icon-button:hover{background:#2795d8}.icon-button svg{width:24px;height:24px}.game[data-screen=home] .brand{opacity:.8}.game[data-screen=match] .topbar{height:80px}.game[data-screen=match] .brand,.game[data-screen=match] #help,.game[data-screen=match] #fullscreen{display:none}.game[data-screen=match] #pause{position:absolute;left:24px;top:18px}.game[data-screen=match] #sound{position:absolute;right:24px;top:18px}.button{display:inline-flex;justify-content:center;align-items:center;gap:12px;min-height:48px;padding:12px 23px;border-radius:24px;font-family:var(--display);font-size:20px;letter-spacing:.5px;font-weight:700;text-shadow:none;transition:filter .15s,transform .12s;user-select:none;-webkit-user-select:none;white-space:nowrap}.button:hover{filter:brightness(1.08)}.button.primary{background:linear-gradient(#fff96c,#fff224 56%,#edd11b);color:#264318;border:2px solid #fffc91;box-shadow:0 5px 0 #ad8108,0 8px 15px #052b3280,inset 0 2px #ffffd2}.button.secondary{background:linear-gradient(#90f1ff,#35c4e1);color:#134563;border:2px solid #b0faff;box-shadow:0 4px 0 #0a7eae,0 7px 12px #00374950}.text-button{background:none;color:#e7f7ff;font-size:14px;padding:8px;white-space:nowrap}.text-button:hover{color:var(--yellow)}.eyebrow{font:700 17px var(--display);letter-spacing:1px;color:var(--yellow)}
/* A game title screen, with a bouncing ball and a single clear way into the cup. */
.home-screen{pointer-events:none}.home-splash{position:absolute;left:50%;top:49%;transform:translate(-50%,-50%);width:min(580px,92%);display:flex;flex-direction:column;align-items:center;text-align:center;pointer-events:auto}.hero-ball{width:140px;height:150px;position:relative;margin-bottom:12px}.hero-ball img{width:140px;height:140px;object-fit:contain;position:relative;animation:ball-float 2.8s ease-in-out infinite;filter:drop-shadow(0 9px 7px #072d5566)}.hero-ball>span{position:absolute;left:25px;bottom:0;width:90px;height:15px;border-radius:50%;background:#002b5480;filter:blur(5px);animation:ball-shadow 2.8s ease-in-out infinite}.title-lockup{position:relative;filter:drop-shadow(0 8px 0 #063867);transform:rotate(-3deg);margin-bottom:28px}.title-kicker{display:block;font:700 14px var(--display);letter-spacing:3px;margin-bottom:11px;text-shadow:0 2px 3px #003258}.title-lockup h1{font:700 clamp(88px,7.7vw,115px)/.82 var(--display);letter-spacing:-1px;transform:skew(-4deg);color:#fff;-webkit-text-stroke:2px #06365b;paint-order:stroke fill;text-shadow:3px 3px 0 #06365b,-2px 2px 0 #06365b}.title-lockup h1 strong{display:block;font:inherit;color:var(--yellow);margin-top:5px}.cup-ribbon{display:inline-block;background:linear-gradient(#fff56a,#e5bd0c);color:#0d527a;border:2px solid #fff89d;border-radius:4px;margin-top:16px;padding:5px 34px;font:700 20px var(--display);letter-spacing:5px;box-shadow:0 3px 0 #8c6f04}.home-buttons{display:flex;flex-direction:column;align-items:center;gap:13px;width:100%}.play-main{min-height:68px;min-width:245px;border-radius:36px;font-size:37px;letter-spacing:2px;gap:19px}.play-main svg{width:31px;height:31px;fill:#ebaa12;stroke:#b07b02;stroke-width:1.4;filter:drop-shadow(0 2px 0 #fff36c)}.quick-button{min-width:206px;min-height:43px;font-size:20px}.resume-button{background:#0c5277df;border:1px solid #9fd7ea;padding:8px 22px;min-height:37px;font-size:17px;box-shadow:0 3px 0 #043c56}.home-challenge{font:700 14px var(--display);letter-spacing:1.5px;margin-top:24px;text-shadow:0 2px 3px #123c22}.home-record{position:absolute;right:7%;bottom:17%;text-align:center;transform:rotate(5deg);background:#073d679c;border:2px solid #d3e87877;border-radius:16px;padding:14px 23px;box-shadow:0 5px 0 #00394b73}.home-record span,.home-record small{display:block;font:700 13px var(--display);letter-spacing:1px}.home-record strong{display:block;color:var(--yellow);font:700 45px/1.1 var(--display);text-shadow:0 3px #10432d}.home-record small{font-size:12px}.home-footer{position:absolute;bottom:24px;left:28px;right:28px;display:flex;justify-content:space-between;gap:12px;pointer-events:auto}.home-footer button{background:#063d61b5;border:1px solid #b5e8ed66;border-radius:18px;padding:9px 15px;display:flex;align-items:center;gap:8px;font:700 14px var(--display);letter-spacing:.5px;box-shadow:0 3px 0 #052e3e5c}.audio-bars{height:15px;display:flex;gap:3px;align-items:center}.audio-bars i{display:block;width:3px;height:7px;background:var(--yellow);border-radius:2px}.audio-bars i:nth-child(2){height:14px}.audio-bars i:nth-child(3){height:10px}.audio-playing .audio-bars i{animation:equalizer .6s infinite alternate}.audio-playing .audio-bars i:nth-child(2){animation-delay:-.2s}.audio-playing .audio-bars i:nth-child(3){animation-delay:-.4s}.audio-muted .audio-bars i{background:#a3c9d3;animation:none}@keyframes equalizer{to{height:3px}}@keyframes ball-float{0%,100%{transform:translateY(0) rotate(-7deg)}50%{transform:translateY(-13px) rotate(5deg)}}@keyframes ball-shadow{50%{transform:scale(.7);opacity:.45}}
/* Stadium menus. */
.panel-screen{padding:90px 20px 25px;display:flex;align-items:center;justify-content:center;background:#03456a3d;backdrop-filter:blur(3px)}.panel{width:min(940px,100%);max-height:100%;overflow:auto;background:linear-gradient(160deg,#075e91f5,#052e59f2);border:2px solid #5aabd6bd;box-shadow:0 9px 0 #023153b5,0 20px 50px #00283c55;border-radius:22px;padding:28px 32px}.panel-topline{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:16px}.panel h2{font:700 42px/1.05 var(--display);color:#fff;text-shadow:0 3px 0 #00345e}.panel h2>span{color:var(--yellow)}.selection-panel{display:flex;flex-direction:column}.selection-title{text-align:center;margin:0 0 24px}.selection-title>span{display:block;margin-top:3px;font-size:47px}.team-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;overflow:auto;min-height:0;padding:3px;scrollbar-width:thin;scrollbar-color:#68b9d8 #073e6a;max-height:420px}.team-card{display:flex;align-items:center;gap:10px;padding:10px 13px;min-height:49px;background:linear-gradient(#0d416dcc,#062d53e6);border:2px solid #457b9c80;border-radius:18px;box-shadow:0 3px #01274666;text-align:left;position:relative}.team-card img{width:28px;height:22px;object-fit:contain;flex-shrink:0}.team-card span{font:700 17px/1.05 var(--display);white-space:normal}.team-card:hover{background:#176e9b}.team-card.selected{border-color:var(--yellow);background:linear-gradient(#7eae6173,#3a6b677d);box-shadow:0 0 0 1px #dded3b,0 3px #07374d}.team-card.selected:after{content:'✓';position:absolute;right:7px;top:4px;color:var(--yellow);font-size:11px}.selection-bottom{margin-top:20px;display:flex;align-items:center;justify-content:space-between;gap:20px;border-top:1px solid #70b5d74a;padding-top:20px}.difficulty-row{display:flex;align-items:center;gap:14px}.difficulty-row>span{font:700 14px var(--display);letter-spacing:.8px;color:#d1e8f5}.segmented{display:flex;background:#052d50;border:1px solid #407da1;border-radius:16px;padding:3px}.segmented button{padding:8px 12px;font:700 16px var(--display);background:transparent;color:#bfdeee;border-radius:12px}.segmented button.active{background:var(--yellow);color:#174e66;box-shadow:0 2px #a38b05}.selection-actions{display:flex;align-items:center;gap:12px}.selection-actions .button{font-size:18px;padding:10px 20px}.cup-panel{width:760px}.cup-top,.cup-heading,.cup-action{display:flex;justify-content:space-between;align-items:center;gap:15px}.cup-heading{display:block}.cup-heading .eyebrow{margin-bottom:9px}.cup-panel h2>span{margin-left:8px}.stage-badge{display:inline-flex;background:#fff039;color:#1c4665;padding:6px 12px;border-radius:15px;font:700 16px var(--display);margin-top:15px}.fixture{margin:23px 0;padding:20px;background:#04375ba1;border:1px solid #69aed368;border-radius:16px}.fixture-caption{text-align:center;font:700 14px var(--display);letter-spacing:2px;color:#92dcf0;margin-bottom:13px}.fixture-teams{display:grid;grid-template-columns:1fr 50px 1fr;align-items:center;gap:15px}.fixture-team{display:flex;align-items:center;justify-content:center;gap:12px;font:700 24px var(--display)}.fixture-team img{width:46px;height:34px;object-fit:contain}.fixture-vs{font:700 34px var(--display);text-align:center;color:var(--yellow)}.group-caption{font:700 16px var(--display);letter-spacing:.7px;color:var(--yellow);margin:15px 0 9px}.standings{border-collapse:collapse;width:100%;font-size:15px}.standings th{text-align:right;font:700 14px var(--display);color:#8ed5ed;padding:8px 10px}.standings th:first-child,.standings th:nth-child(2){text-align:left}.standings td{text-align:right;padding:11px 10px;border-bottom:1px solid #63a1bf40}.standings td:first-child{text-align:left;color:#94cbe6}.standings td:nth-child(2){text-align:left}.standings .your-team{background:#c2e74a1f;color:var(--yellow)}.table-team{display:flex;align-items:center;gap:10px}.table-team img{width:25px;height:20px;object-fit:contain}.cup-note{font-size:13px;line-height:1.6;color:#b2d8e8;margin-top:13px}.cup-action{margin-top:23px}.cup-action .primary{flex:1}.cup-progress{display:flex;justify-content:space-between;gap:5px;border-top:1px solid #6cafcc50;padding-top:16px;margin-top:24px}.cup-progress span{font:700 12px var(--display);color:#8fbcd2;padding:5px 2px;border-bottom:3px solid #47768a}.cup-progress .done{color:#adf5ca;border-color:#75db82}.cup-progress .current{color:var(--yellow);border-color:var(--yellow)}.bracket-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.bracket-match{padding:12px;background:#043452;border:1px solid #2d779e;border-radius:10px}.bracket-side{display:flex;align-items:center;gap:9px;padding:4px 0;font:700 17px var(--display)}.bracket-side img{width:24px;height:18px;object-fit:contain}.bracket-side strong{margin-left:auto}.bracket-side.winner{color:var(--yellow)}.result-cup{text-align:center;margin:20px 0}.trophy-icon{font-size:64px;filter:drop-shadow(0 6px 0 #00375b)}.result-cup h2{font-size:55px;color:var(--yellow);margin:15px 0}.result-cup p{font-size:15px;line-height:1.7;color:#cde9f5;max-width:520px;margin:auto}
/* The match is the whole screen. Scores sit in a small corner panel. */
.match-screen{touch-action:none;user-select:none;-webkit-user-select:none}.match-stage{position:absolute;left:50%;top:25px;transform:translateX(-50%);font:700 15px var(--display);letter-spacing:1px;text-shadow:0 2px 3px #15482d;text-align:center;max-width:60%}.points-panel{position:absolute;left:28px;bottom:29px;display:flex;align-items:baseline;gap:8px;text-shadow:0 2px 3px #103b20;pointer-events:none}.points-panel>span:first-child{font:700 18px var(--display)}.points-panel>strong{font:700 30px var(--display);color:#fff}.points-panel #points-gain{position:absolute;top:-34px;left:50%;font:700 26px var(--display);color:var(--yellow)}.points-panel #points-gain:empty{display:none}.points-panel #points-gain:not(:empty){animation:points-up 1.2s both}@keyframes points-up{0%{transform:translateY(8px);opacity:0}20%{opacity:1}100%{transform:translateY(-25px);opacity:0}}.match-hud{position:absolute;right:28px;bottom:25px;width:230px;pointer-events:none;font-family:var(--display);text-shadow:0 2px 2px #143d22}.hud-caption{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:8px}.hud-caption #phase-tag{font-size:18px;color:#ffe947;letter-spacing:.8px}.hud-caption #round-label{font-size:13px;color:#edf9e9}.hud-team+.hud-team{margin-top:7px}.score-row{display:flex;align-items:center;gap:8px;height:29px;background:linear-gradient(90deg,#1747218c,#3e782b80);border-radius:5px;padding:2px 7px;border-bottom:1px solid #dbedb742}.score-row img{width:23px;height:18px;object-fit:contain}.score-row>span{font-size:21px;letter-spacing:.5px;flex:1}.score-row small{font-size:11px;color:#d7edc0}.score-row strong{min-width:27px;text-align:center;font-size:24px;color:#fff;background:#b9d85a6b;border-radius:3px;line-height:25px}.kick-dots{display:flex;gap:4px;height:7px;align-items:center;margin:0 0 4px 2px}.kick-dot{display:block;width:16px;height:5px;background:#edf7c755;border-radius:2px;box-shadow:0 1px #244b2b}.kick-dot.goal{background:#77ed41;box-shadow:0 1px #164a1f,0 0 7px #68ff3d3d}.kick-dot.miss{background:#ed503b}.kick-dot.next{background:#fff7b4;animation:blink-dot 1s infinite alternate}@keyframes blink-dot{to{opacity:.25}}.match-controls{position:absolute;inset:0;pointer-events:none}.phase-heading{position:absolute;top:47%;left:50%;transform:translateX(-50%);max-width:90%;text-align:center;white-space:nowrap}.phase-heading h2{display:none}.phase-heading p{display:inline-block;border:1px solid #d5eeaa75;background:#16432c98;padding:7px 15px;border-radius:20px;font:700 15px var(--display);letter-spacing:.2px;text-shadow:0 1px #123c22}.action-area{position:absolute;left:50%;bottom:49px;transform:translateX(-50%);width:235px;text-align:center;pointer-events:auto}.action-area .button{width:100%;min-height:48px}.shoot-button{touch-action:none}.shoot-button.charging{background:linear-gradient(#fffca0,#ffdc2c);box-shadow:0 2px 0 #ad8108,0 0 24px #ffff8c8c;transform:translateY(3px)}.power-meter{display:none}.keyboard-tip{position:absolute;bottom:19px;left:50%;transform:translateX(-50%);font:700 12px var(--display);color:#e8f3c7;text-shadow:0 1px #173f20;white-space:nowrap}.keyboard-tip kbd{font:inherit;padding:2px 5px;border:1px solid #d0dfb994;border-radius:4px;background:#254d2a80;margin-right:4px}.defend-instruction{min-height:48px;display:flex;align-items:center;justify-content:center;gap:10px;color:#fff;background:#153d2cbd;border:1px solid #d5eeaa75;border-radius:24px;font:700 17px var(--display);padding:8px 14px}.target-mini{width:21px;height:21px;border:5px solid #ffed21;background:#ec3021;border-radius:50%;box-shadow:0 0 0 2px #67380b;flex-shrink:0}.game[data-phase=runup] .phase-heading,.game[data-phase=flight] .phase-heading,.game[data-phase=result] .phase-heading{opacity:0}.game[data-phase=runup] .action-area,.game[data-phase=flight] .action-area{opacity:0;pointer-events:none}.save-target{position:absolute;z-index:3;width:56px;height:56px;transform:translate(-50%,-50%);background:transparent;border-radius:50%;padding:0;touch-action:none}.save-target:focus-visible{outline:3px solid #fff;outline-offset:6px}.result-overlay{position:absolute;left:0;right:0;top:44%;text-align:center;pointer-events:none;z-index:4;transform:translateY(-50%)}.result-callout{font:700 clamp(85px,10vw,150px)/.95 var(--display);color:var(--yellow);letter-spacing:1px;-webkit-text-stroke:3px #254015;paint-order:stroke fill;text-shadow:0 5px 0 #18360d,3px 4px 0 #18360d;transform-origin:50% 60%}.result-callout:not(:empty){animation:result-drop 2.35s both}.result-callout.bad{color:#ffed38}.result-overlay p{display:inline-block;margin-top:16px;background:#103b288c;border:1px solid #e1eea759;border-radius:18px;padding:6px 16px;color:#fff;font:700 17px var(--display);text-shadow:0 1px #133b21;animation:result-caption 2.35s both}.result-overlay p:empty{display:none}@keyframes result-drop{0%{transform:translateY(-80px) scale(.45);opacity:0}14%{transform:translateY(12px) scale(1.14);opacity:1}25%{transform:translateY(-8px) scale(.96)}34%,73%{transform:translateY(0) scale(1);opacity:1}100%{transform:translateY(12px) scale(1.04);opacity:0}}@keyframes result-caption{0%,20%{opacity:0}30%,77%{opacity:1}100%{opacity:0}}
/* Pause, guide and sound settings. */
.modal-backdrop{position:absolute;inset:0;z-index:30;display:flex;align-items:center;justify-content:center;background:#022b4dc9;backdrop-filter:blur(7px);padding:24px}.modal{width:470px;max-width:100%;max-height:100%;overflow:auto;border:2px solid #78b8d9;border-radius:23px;padding:28px 30px;background:linear-gradient(155deg,#0d6a9a,#063363);box-shadow:0 7px 0 #03294d,0 22px 70px #002c3c80}.modal>.eyebrow{margin-bottom:13px}.modal h2{font:700 42px/1.05 var(--display);color:#fff;text-shadow:0 3px #04375d}.modal>p{font-size:15px;line-height:1.7;color:#c9e8f4;margin:16px 0}.modal-buttons{display:flex;flex-direction:column;gap:14px;margin-top:23px}.modal-buttons .button{width:100%}.guide-step{display:flex;gap:14px;margin-top:22px}.guide-symbol{flex-shrink:0;display:grid;place-items:center;width:38px;height:38px;background:#073453;border:1px solid #69b3d3;border-radius:12px;color:var(--yellow);font-size:23px}.guide-step h3{font:700 22px var(--display);color:var(--yellow);margin-bottom:7px}.guide-step p{font-size:14px;line-height:1.6;color:#d1eaf5}.match-finish-score{font:700 82px var(--display);color:var(--yellow);text-align:center;letter-spacing:7px;text-shadow:0 4px #14472d;margin:14px 0}.match-finish-score span{font-size:53px;color:#d8eafa}.match-stats{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:19px 0}.match-stats>div{padding:14px 10px;background:#043459;border:1px solid #4789b1;border-radius:12px;text-align:center}.match-stats strong{display:block;color:var(--yellow);font:700 32px var(--display)}.match-stats span{display:block;font:700 13px var(--display);margin-top:5px;color:#bedfee}.sound-master{margin-top:22px;display:flex;justify-content:space-between;align-items:center;padding:15px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.sound-master>span{font-size:15px;font-weight:700}.switch{position:relative;width:50px;height:29px;background:#234b6d;border:1px solid #82a5ba;border-radius:20px}.switch:after{content:'';position:absolute;top:4px;left:4px;width:19px;height:19px;border-radius:50%;background:#dce9f1;transition:transform .15s}.switch[aria-checked=true]{background:var(--yellow);border-color:#fff888}.switch[aria-checked=true]:after{transform:translateX(21px);background:#21596b}.volume-row{margin-top:22px}.volume-label{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:10px}.volume-label label{font-size:15px;font-weight:700}.volume-label output{font:700 18px var(--display);color:var(--yellow)}.volume-row input{width:100%;accent-color:var(--yellow);height:20px;margin:0;cursor:pointer}.volume-row small{font-size:12px;color:#add7eb;display:block;margin-top:7px;line-height:1.4}.sound-preview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:18px}.sound-preview button{background:#093b61;border:1px solid #6aacca;border-radius:12px;padding:10px 7px;font:700 17px var(--display)}.sound-preview button:hover{border-color:var(--yellow)}.modal .sound-loading{font-size:12px;color:#b8dded;line-height:1.5;margin:16px 0 0;min-height:18px}.sound-credits{font-size:13px;background:transparent;text-align:center;color:#bbdfef;padding:6px}.credits-body p{font-size:13px;line-height:1.7;color:#cce6f0;margin-top:18px;overflow-wrap:anywhere}.credits-body strong{color:var(--yellow)}.toast{position:absolute;left:50%;bottom:22px;transform:translateX(-50%);background:#06496c;border:1px solid #94cfdf;padding:12px 20px;border-radius:17px;max-width:90%;font-size:14px;z-index:50;box-shadow:0 4px #02344e}.asset-loading{position:absolute;inset:0;background:radial-gradient(ellipse at 50% 30%,#1687ba,#06406b);z-index:40;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:22px}.loading-ball{font-size:62px;animation:loading-bounce .6s infinite alternate;filter:drop-shadow(0 8px 4px #02345777)}.asset-loading h2{font:700 30px var(--display);text-shadow:0 3px #054270}.loading-track{width:210px;height:9px;border:2px solid #8fcee6;background:#063d65;border-radius:10px;overflow:hidden}.loading-track>span{display:block;height:100%;width:7%;background:var(--yellow);transition:width .2s}.asset-loading p{font-size:14px;color:#bcdfe9}.no-script{position:absolute;inset:0;z-index:45;display:grid;place-items:center;background:#07365c;padding:30px}@keyframes loading-bounce{to{transform:translateY(-15px) rotate(18deg)}}
@media(max-width:720px) and (orientation:portrait){
 .topbar{padding:calc(15px + env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) 10px max(16px,env(safe-area-inset-left))}.brand{font-size:9px;gap:7px}.brand strong{font-size:15px}.brand-ball{font-size:28px}.top-actions{gap:8px}.icon-button{width:39px;height:39px;border-radius:12px}.icon-button svg{width:21px;height:21px}.fullscreen-button{display:none}.home-splash{top:47%;width:92%}.hero-ball{width:100px;height:107px;margin-bottom:12px}.hero-ball img{width:100px;height:100px}.hero-ball>span{left:18px;width:64px;height:11px}.title-lockup{margin-bottom:22px;filter:drop-shadow(0 5px 0 #063867)}.title-lockup h1{font-size:clamp(64px,19vw,83px);-webkit-text-stroke:1.5px #06365b}.title-kicker{font-size:12px;letter-spacing:1.4px;margin-bottom:10px}.cup-ribbon{font-size:16px;letter-spacing:4px;padding:4px 24px;margin-top:13px}.home-buttons{gap:12px}.play-main{min-width:208px;min-height:59px;font-size:32px}.play-main svg{width:27px;height:27px}.quick-button{min-width:185px;min-height:40px;font-size:18px;padding:8px 21px}.resume-button{min-height:33px;font-size:16px;padding:7px 19px}.home-challenge{font-size:13px;margin-top:20px;letter-spacing:1px}.home-record{bottom:77px;left:50%;right:auto;transform:translateX(-50%);display:flex;align-items:baseline;gap:8px;white-space:nowrap;padding:5px 12px;border-radius:20px;border-width:1px}.home-record span,.home-record small{font-size:11px}.home-record strong{font-size:22px}.home-footer{left:16px;right:16px;bottom:max(20px,env(safe-area-inset-bottom));gap:10px}.home-footer button{font-size:12px;padding:8px 11px;border-radius:15px;white-space:nowrap}.panel-screen{padding:calc(74px + env(safe-area-inset-top)) 12px max(14px,env(safe-area-inset-bottom));align-items:stretch}.panel{padding:20px 15px;border-radius:20px}.panel-topline{margin-bottom:12px}.eyebrow{font-size:15px}.text-button{font-size:13px}.selection-title{font-size:27px!important;margin-bottom:19px}.selection-title>span{font-size:35px}.team-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;flex:1;max-height:none}.team-card{min-height:46px;padding:8px 10px;gap:8px;border-radius:14px}.team-card img{width:24px;height:19px}.team-card span{font-size:16px}.selection-bottom{margin-top:16px;padding-top:15px;flex-direction:column;align-items:stretch;gap:17px}.difficulty-row{justify-content:space-between;gap:10px}.difficulty-row>span{font-size:13px}.segmented button{font-size:15px;padding:7px 11px}.selection-actions{gap:10px}.selection-actions .button{flex:1;font-size:17px;padding:10px 13px;min-height:45px}.cup-panel h2{font-size:33px}.cup-heading .eyebrow{font-size:13px}.cup-top{gap:7px}.stage-badge{font-size:14px}.fixture{padding:16px 10px;margin:19px 0}.fixture-caption{font-size:12px}.fixture-teams{grid-template-columns:1fr 28px 1fr;gap:8px}.fixture-team{font-size:20px;gap:7px}.fixture-team img{width:30px;height:24px}.fixture-vs{font-size:27px}.group-caption{font-size:14px}.standings{font-size:13px}.standings th{font-size:12px;padding:8px 5px}.standings td{padding:10px 5px}.table-team{gap:7px}.table-team img{width:21px;height:16px}.cup-note{font-size:12px}.cup-action{gap:10px;margin-top:18px}.cup-action .button{font-size:19px;padding:12px 15px}.cup-action .text-button{font-size:13px;padding:8px 0}.cup-progress{gap:3px;margin-top:22px;padding-top:13px}.cup-progress span{font-size:10px;padding:4px 1px}.bracket-grid{gap:8px}.bracket-match{padding:9px 7px}.bracket-side{font-size:15px;gap:6px}.bracket-side img{width:20px;height:16px}.result-cup h2{font-size:43px}.result-cup p{font-size:14px}.game[data-screen=match] #pause{left:16px;top:calc(15px + env(safe-area-inset-top))}.game[data-screen=match] #sound{right:16px;top:calc(15px + env(safe-area-inset-top))}.match-stage{top:calc(26px + env(safe-area-inset-top));font-size:13px;max-width:65%;letter-spacing:.5px}.match-hud{bottom:max(16px,env(safe-area-inset-bottom));right:16px;width:166px}.hud-caption{margin-bottom:5px}.hud-caption #phase-tag{font-size:14px;letter-spacing:.3px}.hud-caption #round-label{font-size:11px}.hud-team+.hud-team{margin-top:4px}.score-row{height:23px;padding:1px 4px;gap:5px}.score-row img{width:19px;height:15px}.score-row>span{font-size:17px}.score-row small{font-size:10px}.score-row strong{font-size:19px;line-height:21px;min-width:23px}.kick-dots{height:5px;margin-bottom:3px;gap:3px}.kick-dot{width:12px;height:4px}.points-panel{left:18px;bottom:max(24px,env(safe-area-inset-bottom));gap:6px}.points-panel>span:first-child{font-size:14px}.points-panel>strong{font-size:25px}.points-panel #points-gain{font-size:23px;top:-29px}.phase-heading{top:47%;width:90%;max-width:90%}.phase-heading p{font-size:14px;padding:6px 11px;white-space:normal;line-height:1.2}.action-area{bottom:118px;width:205px}.action-area .button{min-height:49px;font-size:20px}.defend-instruction{font-size:16px;min-height:46px}.keyboard-tip{display:none}.result-overlay{top:45%}.result-callout{font-size:clamp(86px,26vw,114px);-webkit-text-stroke:2px #254015;text-shadow:0 4px 0 #18360d}.result-overlay p{font-size:16px;margin-top:11px;padding:5px 14px}.modal-backdrop{padding:18px}.modal{padding:24px 20px;border-radius:21px}.modal h2{font-size:36px}.modal>p{font-size:14px}.guide-step{gap:11px;margin-top:19px}.guide-step p{font-size:13px}.guide-step h3{font-size:21px}.guide-symbol{width:32px;height:35px;font-size:19px}.modal-buttons{gap:12px;margin-top:21px}.modal-buttons .button{font-size:20px}.match-finish-score{font-size:70px}.volume-row{margin-top:19px}.sound-master{margin-top:18px}.sound-preview button{font-size:16px}.modal .panel-topline .eyebrow{font-size:14px}
}
@media(max-height:680px) and (orientation:portrait){
 .home-splash{top:47%}.hero-ball{width:70px;height:76px;margin-bottom:7px}.hero-ball img{width:70px;height:70px}.hero-ball>span{left:12px;width:46px;height:8px}.title-lockup{margin-bottom:17px}.title-lockup h1{font-size:clamp(59px,18vw,70px)}.title-kicker{font-size:10px;margin-bottom:7px}.cup-ribbon{font-size:14px;margin-top:11px;padding:3px 23px}.play-main{min-height:49px;min-width:190px;font-size:29px}.home-buttons{gap:9px}.quick-button{min-height:34px;font-size:16px;padding:6px 20px}.resume-button{min-height:30px;font-size:15px;padding:5px 18px}.home-challenge{font-size:11px;margin-top:14px}.home-record{bottom:62px;padding:3px 11px}.home-record strong{font-size:19px}.home-record span,.home-record small{font-size:10px}.home-footer{bottom:16px;left:14px;right:14px}.home-footer button{font-size:11px;padding:7px 9px}.panel-screen{padding-top:66px}.selection-title{font-size:24px!important;margin-bottom:13px}.selection-title>span{font-size:29px}.selection-panel{padding:16px 13px}.panel-topline{margin-bottom:9px}.team-card{min-height:42px;padding:7px 8px}.team-card span{font-size:15px}.selection-bottom{gap:12px;padding-top:12px;margin-top:12px}.selection-actions .button{min-height:41px;font-size:16px}.segmented button{padding:6px 9px;font-size:14px}.match-stage{font-size:12px}.action-area{bottom:92px;width:188px}.action-area .button{min-height:43px;font-size:18px;padding:8px 17px}.defend-instruction{font-size:15px;min-height:42px}.match-hud{bottom:12px;right:13px;width:154px}.hud-caption{margin-bottom:3px}.hud-caption #phase-tag{font-size:13px}.hud-caption #round-label{font-size:10px}.hud-team+.hud-team{margin-top:3px}.score-row{height:21px}.score-row>span{font-size:16px}.score-row strong{font-size:17px;line-height:19px}.kick-dots{height:4px;margin-bottom:2px}.points-panel{left:14px;bottom:19px}.points-panel>span:first-child{font-size:13px}.points-panel>strong{font-size:23px}.phase-heading{top:47%}.phase-heading p{font-size:12px;padding:5px 9px}.result-callout{font-size:88px}.result-overlay p{font-size:14px;margin-top:9px}.modal{padding:20px 18px}.modal h2{font-size:32px}.modal>p{font-size:13px}.modal-buttons .button{min-height:43px;font-size:18px}.volume-row{margin-top:16px}.sound-master{padding:12px 0}.volume-label label{font-size:14px}
}
@media(max-height:520px) and (orientation:landscape){
 .topbar{padding:12px 20px}.brand{font-size:9px;gap:6px}.brand strong{font-size:14px}.brand-ball{font-size:28px}.icon-button{width:35px;height:35px;border-radius:10px}.icon-button svg{width:20px;height:20px}.top-actions{gap:8px}.home-splash{left:50%;top:47%;width:440px}.hero-ball{position:absolute;width:90px;height:100px;left:-88px;top:76px;transform:rotate(-15deg)}.hero-ball img{width:90px;height:90px}.hero-ball>span{left:17px;width:57px;height:10px}.title-lockup{margin-bottom:17px;filter:drop-shadow(0 4px 0 #063867)}.title-lockup h1{font-size:67px}.title-kicker{font-size:10px;margin-bottom:7px}.cup-ribbon{font-size:14px;margin-top:10px;padding:3px 25px}.home-buttons{flex-direction:row;justify-content:center;flex-wrap:wrap;gap:10px;max-width:400px}.play-main{min-height:48px;min-width:170px;font-size:28px;padding:7px 20px;order:0}.play-main svg{width:24px;height:24px}.quick-button{min-height:40px;min-width:155px;font-size:18px;order:1}.resume-button{font-size:15px;min-height:29px;padding:5px 20px;order:2}.home-challenge{font-size:11px;margin-top:14px}.home-record{right:5%;bottom:22%;padding:9px 14px;border-radius:13px}.home-record span,.home-record small{font-size:10px}.home-record strong{font-size:32px}.home-footer{bottom:13px;left:20px;right:20px}.home-footer button{font-size:11px;padding:7px 11px}.panel-screen{padding:61px 18px 16px;align-items:stretch}.panel{padding:16px 22px;border-radius:17px}.panel-topline{margin-bottom:9px}.selection-title{font-size:25px!important;margin-bottom:12px}.selection-title>span{display:inline;margin-left:10px;font-size:29px}.team-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;flex:1;max-height:none}.team-card{min-height:37px;padding:6px 9px;gap:8px}.team-card img{width:21px;height:16px}.team-card span{font-size:15px}.selection-bottom{margin-top:11px;padding-top:10px;gap:15px}.selection-actions .button{font-size:16px;min-height:37px;padding:7px 17px}.selection-actions{gap:9px}.difficulty-row{gap:10px}.difficulty-row>span{font-size:12px}.segmented button{font-size:14px;padding:6px 9px}.cup-panel{width:700px}.cup-panel h2{font-size:31px}.cup-heading .eyebrow{font-size:13px;margin-bottom:5px}.stage-badge{margin-top:9px;font-size:13px;padding:4px 10px}.fixture{padding:12px;margin:15px 0}.fixture-caption{font-size:12px;margin-bottom:9px}.fixture-team{font-size:21px}.fixture-team img{width:32px;height:24px}.standings td{padding:7px;font-size:13px}.cup-action{margin-top:17px}.cup-progress{margin-top:17px}.game[data-screen=match] #pause{left:16px;top:12px}.game[data-screen=match] #sound{right:16px;top:12px}.match-stage{top:20px;font-size:13px}.match-hud{right:20px;bottom:15px;width:180px}.hud-caption{margin-bottom:4px}.hud-caption #phase-tag{font-size:15px}.hud-caption #round-label{font-size:11px}.score-row{height:23px;padding:1px 4px}.score-row img{width:19px;height:15px}.score-row>span{font-size:17px}.score-row strong{font-size:20px;line-height:21px;min-width:23px}.score-row small{font-size:10px}.hud-team+.hud-team{margin-top:4px}.kick-dots{height:4px;margin-bottom:3px}.kick-dot{height:4px;width:12px}.points-panel{left:20px;bottom:15px}.points-panel>span:first-child{font-size:14px}.points-panel>strong{font-size:24px}.action-area{left:21px;transform:none;bottom:53px;width:182px}.action-area .button{min-height:41px;font-size:18px;padding:8px 15px}.defend-instruction{font-size:15px;min-height:41px}.phase-heading{top:47%}.phase-heading p{font-size:13px;padding:5px 12px}.keyboard-tip{display:none}.result-overlay{top:44%}.result-callout{font-size:88px}.result-overlay p{font-size:14px;margin-top:8px}.modal{padding:22px;max-width:470px}.modal h2{font-size:33px}.modal>p{font-size:14px}.modal-buttons{margin-top:20px}.modal-buttons .button{min-height:43px;font-size:19px}.sound-master{margin-top:16px;padding:12px 0}.volume-row{margin-top:16px}
}
@media(max-height:620px) and (orientation:portrait){.home-splash{top:45%}.home-challenge{display:none}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}.hero-ball img{transform:none}.result-callout:not(:empty){opacity:1}.result-overlay p{opacity:1}}

/* Compact language control and a readable, touch-friendly language picker. */
.selection-title>[data-i18n="selection.picked"]{display:inline;font:inherit;margin:0}
.title-lockup h1{font-family:Stadium,'Arial Narrow',Impact,sans-serif}
.language-button{display:flex;align-items:center;justify-content:center;gap:6px;width:68px;flex-shrink:0;padding:6px;font:700 14px/1 system-ui,sans-serif;letter-spacing:.2px}
.language-button svg{width:18px;height:18px;flex-shrink:0}
.language-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:22px}
.language-option{position:relative;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:4px;min-width:0;min-height:67px;padding:11px 27px 11px 13px;border:1px solid #74b8d3;border-radius:13px;background:#073c63;text-align:left;font-family:system-ui,-apple-system,'Segoe UI',sans-serif}
.language-option:hover{background:#0d567f;border-color:#ddf4ff}
.language-option[aria-pressed=true],.language-option[aria-checked=true]{background:#164d63;border:2px solid var(--yellow);padding:10px 26px 10px 12px}
.language-option[aria-pressed=true]:after,.language-option[aria-checked=true]:after{content:'✓';position:absolute;right:10px;top:13px;color:var(--yellow);font-size:15px;font-weight:800}
.language-native{display:block;font-size:16px;line-height:1.35;font-weight:700;overflow-wrap:anywhere}
.language-english{display:block;font-size:12px;line-height:1.35;color:#b8ddeb;overflow-wrap:anywhere}
.game[data-screen=match] #language{position:absolute;right:24px;top:18px}
.game[data-screen=match] #sound{right:102px}
.game[data-screen=match] .match-stage{max-width:calc(100% - 340px)}
html:not([lang=en]) .button,html:not([lang=en]) .text-button{white-space:normal;overflow-wrap:anywhere}
html:not([lang=en]) .home-footer button{white-space:normal;min-width:0;max-width:58%;line-height:1.3}
html:not([lang=en]) .modal h2,html:not([lang=en]) .selection-title{overflow-wrap:anywhere}
html:lang(ko),html:lang(ja),html:lang(th),html:lang(hi),html:lang(zh){--display:system-ui,-apple-system,'Segoe UI',sans-serif}
html:lang(ko) .button,html:lang(ja) .button,html:lang(th) .button,html:lang(hi) .button,html:lang(zh) .button{letter-spacing:0;line-height:1.3}
@media(max-width:720px) and (orientation:portrait){
 .language-button{width:60px;font-size:13px;gap:4px}.language-button svg{width:17px;height:17px}
 .game[data-screen=match] #language{right:max(16px,env(safe-area-inset-right));top:calc(15px + env(safe-area-inset-top))}
 .game[data-screen=match] #sound{right:calc(84px + env(safe-area-inset-right));top:calc(15px + env(safe-area-inset-top))}
 .game[data-screen=match] .match-stage{top:calc(68px + env(safe-area-inset-top));max-width:calc(100% - 32px);width:max-content;line-height:1.3}
 .language-grid{gap:8px;margin-top:18px}.language-option{min-height:63px;padding:9px 24px 9px 11px}.language-option[aria-pressed=true],.language-option[aria-checked=true]{padding:8px 23px 8px 10px}
 html:not([lang=en]) .selection-actions .button{font-size:16px;line-height:1.2;min-width:0}.selection-actions{align-items:stretch}
 html:not([lang=en]) .defend-instruction{line-height:1.3;text-align:center;white-space:normal}
 .difficulty-row{flex-wrap:wrap;justify-content:center;row-gap:8px}
 .difficulty-row>span{flex-basis:100%;text-align:center}
 .segmented{max-width:100%;min-width:0}
 .segmented button{min-width:0;white-space:normal;overflow-wrap:anywhere}
}
@media(max-width:350px) and (orientation:portrait){
 .topbar{padding-left:12px;padding-right:12px}.top-actions{gap:6px}.brand-ball{display:none}
 .language-option{min-height:59px;padding:9px 10px}.language-option[aria-pressed=true],.language-option[aria-checked=true]{padding:8px 9px}.language-native{font-size:14px}.language-option[aria-pressed=true]:after,.language-option[aria-checked=true]:after{top:auto;bottom:7px;right:8px;font-size:13px}
}
@media(max-height:520px) and (orientation:landscape){
 .language-button{width:60px;height:35px;font-size:13px;gap:4px}.language-button svg{width:16px;height:16px}
 .game[data-screen=match] #language{right:max(16px,env(safe-area-inset-right));top:12px}.game[data-screen=match] #sound{right:calc(84px + env(safe-area-inset-right));top:12px}
 .game[data-screen=match] .match-stage{top:20px;max-width:calc(100% - 300px)}
 .language-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-top:15px}.language-option{min-height:57px;padding:8px 22px 8px 9px}.language-option[aria-pressed=true],.language-option[aria-checked=true]{padding:7px 21px 7px 8px}.language-native{font-size:14px}.language-english{font-size:11px}
}

/* Thai and Devanagari keep their natural character shaping in translated labels. */
html:lang(th) :is(.title-kicker,.cup-ribbon,.home-challenge,.home-record span,.home-record small,.eyebrow,.fixture-caption,.group-caption,.match-stage,.phase-heading p,.home-footer button),
html:lang(hi) :is(.title-kicker,.cup-ribbon,.home-challenge,.home-record span,.home-record small,.eyebrow,.fixture-caption,.group-caption,.match-stage,.phase-heading p,.home-footer button){letter-spacing:0}
