@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700;800;900&family=IBM+Plex+Mono:wght@400;500&display=swap');
:root{--bg:#091522;--ink:#edf4fa;--muted:#8195ab;--blue:#17b8f5;--coral:#ff8176;--lime:#d7ff58;--line:#2d465c;color-scheme:dark}*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:var(--bg);color:var(--ink);font:12px 'IBM Plex Mono',monospace}body{overflow:hidden}button,a,select{-webkit-tap-highlight-color:transparent}button{font:700 15px 'Barlow Condensed',sans-serif;letter-spacing:1px;color:var(--ink);background:#142637;border:1px solid var(--line);border-radius:7px;padding:12px 18px;cursor:pointer;transition:background .15s,border-color .15s,transform .15s}button:hover{background:#20394c;border-color:#7696af}button:active{transform:translateY(1px)}button:focus-visible,a:focus-visible,select:focus-visible{outline:2px solid var(--lime);outline-offset:4px}.primary{display:block;background:var(--lime);color:#152119;border:0;font:800 21px 'Barlow Condensed',sans-serif;padding:16px 24px;box-shadow:0 4px 0 #789526,0 7px 25px #d7ff5812;min-width:220px}.primary:hover{background:#e7ff9b}.primary span{float:right}.text-button{border:0;background:transparent;font-size:12px;color:#9bacba;letter-spacing:2px;padding:12px 0}.text-button:hover{background:none;color:var(--ink)}.hidden{display:none!important}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.blue{color:var(--blue)}.coral{color:var(--coral)}
.game-header{height:105px;position:relative;z-index:15;padding:23px 2.6%;display:flex;justify-content:space-between;align-items:flex-start;background:linear-gradient(#0b1927,#09152200)}.brand{font:800 italic 28px/.95 'Barlow Condensed',Impact,sans-serif;letter-spacing:-.4px;color:#f2f7fc;text-decoration:none;padding-top:4px}.brand span{color:var(--blue)}.scoreboard{position:absolute;top:14px;left:50%;transform:translateX(-50%);width:min(550px,48vw);display:grid;grid-template-columns:1fr 150px 1fr;grid-template-rows:48px 24px;align-items:center;padding:7px 18px 8px;border:1px solid #344c61;border-radius:14px;background:linear-gradient(145deg,#101f2eed,#091420f2);box-shadow:0 8px 30px #0003,inset 0 1px #89b9dc0a}.team{font:700 19px 'Barlow Condensed',sans-serif;text-align:center;white-space:nowrap}.team-blue{color:var(--blue)}.team-coral{color:var(--coral)}.match-points{display:flex;align-items:center;justify-content:center;gap:12px;font:800 43px/1 'Barlow Condensed',Impact,sans-serif;font-variant-numeric:tabular-nums}.match-points span{font-size:26px;color:#7c94a9}.set-dots{display:flex;gap:6px;justify-content:center;margin-top:5px}.set-dots i{width:8px;height:8px;border:1px solid currentColor;border-radius:50%;opacity:.65}.set-dots i.won{background:currentColor;opacity:1;box-shadow:0 0 8px currentColor}.match-totals{grid-column:1/-1;display:flex;justify-content:center;gap:22px;font:600 12px 'Barlow Condensed',sans-serif;letter-spacing:1.5px;color:#91a7bc}.match-totals b{color:#e1ebf4;font-weight:600}.score-caption{position:absolute;bottom:-10px;left:50%;transform:translateX(-50%);padding:2px 12px;white-space:nowrap;font:500 9px 'Barlow Condensed',sans-serif;letter-spacing:1.5px;background:#091522;color:#7e96ad}.score-caption.golden{color:var(--lime)}.quick-actions{display:flex;gap:10px}.icon-button{width:39px;height:39px;padding:9px;background:#0e1e2b}.icon-button svg{width:100%;height:100%;fill:none;stroke:#becfdf;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.muted-slash{display:none}.icon-button.is-muted .sound-waves{display:none}.icon-button.is-muted .muted-slash{display:block;stroke:var(--coral)}
main{height:calc(100dvh - 105px);min-height:300px}.arena{position:relative;width:100%;height:100%;overflow:hidden}canvas{display:block;width:100%;height:100%;outline:none}#confetti{position:absolute;inset:0;pointer-events:none;z-index:35}#toast{position:absolute;top:3px;left:15%;width:70%;text-align:center;pointer-events:none;font:600 13px 'Barlow Condensed',sans-serif;letter-spacing:1.6px;color:#d7e3ee;text-shadow:0 2px 5px #000;z-index:5}.rally{position:absolute;right:2.4%;top:0;z-index:6;text-align:center;color:var(--lime);pointer-events:none;transform-origin:center;text-shadow:0 3px #071321}.rally b{display:block;font:800 italic 42px/.9 'Barlow Condensed',Impact,sans-serif}.rally small{font:600 11px 'Barlow Condensed',sans-serif;letter-spacing:1.5px}.rally.hot{filter:drop-shadow(0 0 8px #d7ff5860)}.gamehud{position:absolute;left:3%;bottom:27px;display:flex;align-items:center;gap:11px;pointer-events:none}.gamehud>svg{width:19px;height:24px;fill:var(--blue)}.gamehud>span{font:700 18px 'Barlow Condensed',sans-serif}.energy{width:140px;height:13px;padding:2px;background:#071321;border:1px solid #3b5d78;border-radius:10px}.energy i{display:block;height:100%;width:100%;border-radius:7px;background:linear-gradient(90deg,#0089c7,#42d5ff);box-shadow:0 0 9px #17b8f533}.control-strip{position:absolute;bottom:31px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:15px;white-space:nowrap;color:#7690a7;font:600 11px 'Barlow Condensed',sans-serif;letter-spacing:1px}.control-strip i{font-style:normal;color:#4d657a}
.overlay{position:absolute;inset:0;z-index:10;display:flex;align-items:center;padding:5% 8%;background:linear-gradient(90deg,#07131ef2,#07131e70 55%,#07131e10)}.intro-content{max-width:700px}.eyebrow{font:600 12px 'Barlow Condensed',sans-serif;letter-spacing:3px;color:#96b0c6}h1{font:800 clamp(42px,6.2vw,88px)/.95 'Barlow Condensed',Impact,sans-serif;text-transform:uppercase;letter-spacing:-1px;margin:22px 0}h1 span{color:var(--lime)}.intro-content p{color:#a7bbc9;font-size:11px;margin-bottom:30px}.intro-content .primary{width:260px}.introhint{font-size:9px;color:#9baebd;margin-top:22px;line-height:1.8}.intro-content .text-button{margin-top:12px}.menu-overlay{z-index:40;justify-content:center;padding:20px;background:#04101ad4;backdrop-filter:blur(7px)}.menu-card{width:min(430px,100%);max-height:100%;overflow:auto;padding:30px;border:1px solid #3a536a;border-radius:18px;background:linear-gradient(145deg,#172c3e,#0b1928);box-shadow:0 25px 100px #0008}.menu-card h1{font-size:48px;margin:12px 0 25px}.menu-card .primary{width:100%;margin-bottom:22px}.menu-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.menu-hint{font-size:9px;color:#8ba1b4;text-align:center;margin:24px 0 0;line-height:1.7}#matchresult:empty{display:none}#language{color:var(--lime)}
.point-overlay{position:absolute;inset:0;z-index:20;display:grid;place-items:center;background:radial-gradient(ellipse at center,#06142222,#06142299);padding:20px}.point-card{position:relative;width:min(390px,100%);padding:23px 30px 26px;border:1px solid #4a6379;border-radius:16px;text-align:center;background:linear-gradient(150deg,#172e42f7,#091725f7);box-shadow:0 24px 90px #0008;overflow:hidden}.point-card:before{content:'';position:absolute;top:0;left:18%;right:18%;height:2px;background:var(--blue);box-shadow:0 0 24px var(--blue)}.result-emblem{color:var(--blue);height:74px;margin:-8px auto 0}.result-emblem svg{height:100%;width:82px}#point-kind{font:700 12px 'Barlow Condensed',sans-serif;letter-spacing:3px;color:var(--lime);margin-top:7px}#point-winner{font:800 32px 'Barlow Condensed',sans-serif;margin:6px 0}#point-reason{color:#b3c9d9;font:600 14px 'Barlow Condensed',sans-serif;letter-spacing:1px}#point-score{font:800 66px/1.1 'Barlow Condensed',Impact,sans-serif;margin:8px 0 0}.result-teams{display:flex;justify-content:space-between;font:500 10px 'Barlow Condensed',sans-serif;letter-spacing:1px;color:#7e9bb1;padding-bottom:13px;border-bottom:1px solid #284459}#point-matchscore{font:600 12px 'Barlow Condensed',sans-serif;color:#b9ccdb;margin:12px 0 8px;letter-spacing:1px}#point-detail{font-size:9px;color:#7c97ac;line-height:1.6;margin-bottom:18px}.point-card .primary{width:100%;min-width:0;padding:12px}.point-card.rivals:before{background:var(--coral);box-shadow:0 0 24px var(--coral)}.point-card.rivals .result-emblem{color:var(--coral)}.celebrate-point .point-card{animation:point-pop .4s cubic-bezier(.2,1.5,.5,1)}.celebrate-big .point-card,.celebrate-set .point-card{animation:big-pop .8s cubic-bezier(.2,1.4,.4,1);border-color:var(--lime);box-shadow:0 0 80px #d7ff5826}.celebrate-set #point-kind{font-size:22px}.celebrate-set .result-emblem{height:90px}@keyframes point-pop{from{opacity:0;transform:translateY(18px) scale(.94)}to{opacity:1;transform:none}}@keyframes big-pop{0%{opacity:0;transform:scale(.65) rotate(-4deg)}55%{transform:scale(1.05) rotate(1deg)}100%{opacity:1;transform:none}}@media(prefers-reduced-motion:reduce){.point-card{animation:none!important}}
dialog{width:min(600px,calc(100vw - 32px));max-height:85dvh;overflow:auto;padding:28px 32px;background:#102334;color:#e6eff5;border:1px solid #3f5c73;border-radius:15px;box-shadow:0 24px 100px #000a}dialog::backdrop{background:#040d17c9}dialog h2{font:700 34px 'Barlow Condensed',sans-serif;margin:0 0 18px}dialog p{font-size:11px;line-height:1.9;color:#a5bbcd}dialog button{width:100%;margin-top:15px}#ai-dialog label{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:22px 0}select{font:12px 'IBM Plex Mono',monospace;background:#192f43;border:1px solid #46637b;border-radius:6px;padding:10px;color:#e2edf5}.smallnote{font-size:10px}.touch{display:none}
@media(max-width:1050px){.brand{font-size:24px}.scoreboard{width:49vw;grid-template-columns:1fr 110px 1fr;padding:7px 12px}.team{font-size:16px}.match-points{font-size:38px;gap:8px}.control-strip{left:auto;right:3%;transform:none;font-size:10px;gap:10px}.energy{width:100px}}
@media(max-width:650px){.game-header{height:133px;padding:15px 5%}.brand{font-size:24px}.quick-actions{gap:7px}.icon-button{width:34px;height:34px;padding:7px}.scoreboard{top:60px;width:90%;grid-template-columns:1fr 115px 1fr;grid-template-rows:35px 20px;border-radius:10px;padding:4px 12px}.team{font-size:16px}.set-dots{margin-top:2px}.set-dots i{width:6px;height:6px}.match-points{font-size:34px}.match-totals{font-size:10px}.score-caption{font-size:8px}main{height:calc(100dvh - 133px)}.rally{right:5%;top:6px}.rally b{font-size:32px}.rally small{font-size:9px}#toast{font-size:10px;top:10px;left:5%;width:75%;letter-spacing:.8px}.gamehud{bottom:54px;left:5%}.gamehud>span{font-size:16px}.control-strip{left:5%;right:5%;bottom:24px;justify-content:center;gap:8px;font-size:9px;letter-spacing:.4px}.overlay{padding:6%}.intro-content h1{font-size:clamp(40px,10vw,65px)}.intro-content p{font-size:10px}.intro-content .primary{width:230px}.introhint{max-width:250px}.point-card{padding:16px 22px}.result-emblem{height:55px}#point-score{font-size:52px}.menu-card{padding:22px}.menu-card h1{font-size:40px}dialog{padding:22px}.match-totals{gap:16px}}
@media(pointer:coarse){.touch{position:absolute;bottom:20px;left:5%;right:5%;display:flex;justify-content:space-between;align-items:center;z-index:8;pointer-events:none}.touch>div{pointer-events:auto}.touch button{width:52px;height:52px;border-radius:50%;background:#13344cdd;border-color:#3b6887;font-size:12px;margin-left:5px;touch-action:none;padding:0}.control-strip{display:none}.gamehud{bottom:122px}.energy{width:75px}#stick{width:90px;height:90px;border-radius:50%;background:#163b553d;border:1px solid #4c7f9f6b;touch-action:none;position:relative}#stick i{position:absolute;width:34px;height:34px;border-radius:50%;background:#8fcde177;left:27px;top:27px}}
@media(max-height:650px) and (min-width:651px){.game-header{height:82px;padding-top:15px}.scoreboard{top:7px;grid-template-rows:37px 18px}.match-points{font-size:34px}.team{font-size:16px}.match-totals{font-size:10px}main{height:calc(100dvh - 82px)}.gamehud{bottom:16px}.control-strip{bottom:20px}.point-card{padding:12px 24px}.result-emblem{display:none}#point-score{font-size:48px}#point-winner{font-size:26px}#point-detail{margin-bottom:12px}.menu-card{padding:20px}.menu-card h1{font-size:36px;margin-bottom:18px}.menu-hint{margin-top:14px}.intro-content h1{font-size:52px}.intro-content p{margin-bottom:18px}.introhint{margin-top:14px}}
#game.aim-cursor{cursor:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2232%22%20height%3D%2232%22%20viewBox%3D%220%200%2032%2032%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%23102332%22%20stroke-width%3D%223.5%22%3E%3Ccircle%20cx%3D%2216%22%20cy%3D%2216%22%20r%3D%228%22%2F%3E%3Cpath%20d%3D%22M16%202v8m0%2012v8M2%2016h8m12%200h8%22%2F%3E%3C%2Fg%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%23edf8ff%22%20stroke-width%3D%221.5%22%3E%3Ccircle%20cx%3D%2216%22%20cy%3D%2216%22%20r%3D%228%22%2F%3E%3Cpath%20d%3D%22M16%202v8m0%2012v8M2%2016h8m12%200h8%22%2F%3E%3C%2Fg%3E%3Ccircle%20cx%3D%2216%22%20cy%3D%2216%22%20r%3D%221.5%22%20fill%3D%22%23e6f59a%22%2F%3E%3C%2Fsvg%3E") 16 16,crosshair}

/* Online rooms reuse the game's compact sporting menu language. */
.online-button{display:block;margin-top:20px;min-width:260px;border-color:#51c8ef;color:#bdeeff;font:700 20px 'Barlow Condensed',sans-serif;letter-spacing:1px}.online-button span{margin-left:24px;color:#d7ff58}#multiplayer{width:min(580px,94vw);max-height:92dvh;padding:28px;border:1px solid #3c637b;border-radius:16px;background:#0b1d2c;color:#eaf6ff}#multiplayer h2{font-size:36px;margin:10px 0}#multiplayer p{line-height:1.5;color:#a5bccb}#multiplayer label{display:flex;flex-direction:column;gap:8px;margin:22px 0 16px;font-size:12px;letter-spacing:1px}#multiplayer input{min-width:0;background:#081421;color:#e5f5ff;border:1px solid #36566d;border-radius:6px;padding:12px;font:inherit}#multiplayer .primary{width:100%;margin:8px 0}.join-row,.invite-row{display:flex;gap:8px;margin:16px 0}.join-row input{width:45%;letter-spacing:4px;text-transform:uppercase}.join-row button{flex:1}.invite-row input{flex:1;font-size:12px}.room-code-line{display:flex;align-items:center;justify-content:space-between;margin:18px 0;font-size:12px}.room-code-line strong{font-size:32px;letter-spacing:5px;color:#d7ff58}#room-slots{display:grid;grid-template-columns:1fr 1fr;gap:10px}.room-slot{display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:14px!important;text-align:left;min-width:0}.room-slot b{font-size:22px;overflow:hidden;text-overflow:ellipsis;max-width:100%}.room-slot small,.room-slot span{font:10px 'IBM Plex Mono',monospace}.room-slot.blue{border-left:3px solid #25b9f2}.room-slot.coral{border-left:3px solid #ff8176}.room-slot.mine{background:#193a4d;box-shadow:inset 0 0 0 1px #d7ff58}.room-slot:disabled{opacity:1;cursor:default}.room-footer{display:flex;justify-content:space-between;margin-top:16px}#room-error{color:#ff9a8c!important;min-height:20px}#net-status{position:absolute;z-index:18;left:26px;top:4px;font:10px 'IBM Plex Mono',monospace;color:#bce3f3;background:#071522c9;padding:7px 10px;border-radius:4px;pointer-events:none}button:disabled{opacity:.5;cursor:default}@media(max-width:650px){#multiplayer{padding:18px}#multiplayer h2{font-size:29px}.invite-row{flex-wrap:wrap}.invite-row input{width:100%}.room-slot{padding:10px!important}.room-slot b{font-size:18px}#net-status{left:10px;top:3px;font-size:8px}.online-button{margin-top:12px}}
/* Broadcast scoring and arcade-scale feedback. */
.game-header{height:148px}.scoreboard{width:min(600px,54vw);grid-template-columns:minmax(140px,1fr) repeat(3,76px);grid-template-rows:22px 43px 43px;gap:0 6px;padding:9px 18px;border-radius:6px}.score-head{font:700 15px 'Barlow Condensed',sans-serif;color:#a5bdcf;text-align:center;letter-spacing:1px}.score-head:first-child{text-align:left}.scoreboard .team{text-align:left;font-size:22px;overflow:hidden;text-overflow:ellipsis}.score-cell{text-align:center;font:800 34px/1 'Barlow Condensed',Impact,sans-serif;background:#ffffff08;align-self:stretch;padding:4px;border-bottom:1px solid #ffffff15}.score-cell.current{color:var(--lime);background:#d7ff5810}.score-caption{font-size:12px}main{height:calc(100dvh - 148px)}.rally b{font-size:76px;line-height:.85}.rally small{font-size:16px}.rally{top:8px;right:3%}#toast{font:800 27px 'Barlow Condensed',Impact,sans-serif;letter-spacing:1px;text-shadow:0 3px 10px #00101f}.point-card{width:min(620px,94vw);border-radius:8px;padding:24px 36px}.result-emblem{height:54px}#point-kind{font-size:23px}#point-winner{font-size:40px}#point-reason{font:800 clamp(28px,4vw,48px)/1.05 'Barlow Condensed',Impact,sans-serif;color:var(--lime);margin:12px 0;text-shadow:0 3px 0 #273c12}#point-score{font-size:76px}#point-matchscore{font-size:24px}#point-detail,.result-teams{font-size:14px}#point-countdown{font:800 27px 'Barlow Condensed',sans-serif;color:#d9edff;border-top:1px solid #365368;padding:16px 0 0;letter-spacing:2px}.menu-grid button{font-size:19px}.menu-hint,.introhint,.control-strip{font-size:14px}.eyebrow{font-size:14px}#game.aim-cursor{cursor:none}.smallnote{font-size:14px!important}dialog p{font-size:15px}#rules{width:min(1050px,94vw);max-height:92dvh;overflow:auto;padding:30px}#rules h2{font:800 clamp(32px,5vw,54px)/1 'Barlow Condensed',sans-serif;margin:12px 0 24px}.playbook{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.playbook article{position:relative;padding:18px;background:#102d42;border:1px solid #35596d;border-radius:8px}.step{font:800 34px 'Barlow Condensed',sans-serif;color:var(--lime)}.playbook h3{font:800 24px 'Barlow Condensed',sans-serif;margin:6px 0}.playbook svg{width:100%;height:130px}.playbook p,.playbook-tips p{font:400 16px/1.55 'IBM Plex Mono',monospace;color:#d0e2ee}.power-guide{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:22px 0}.power-guide>div{border-top:5px solid var(--tier);padding:12px;background:#112638}.power-guide b{display:block;font:800 21px 'Barlow Condensed',sans-serif;color:var(--tier)}.power-guide span{display:block;font-size:14px;line-height:1.5;margin-top:8px}.playbook-tips{display:grid;grid-template-columns:1fr 1fr;gap:0 24px}.playbook-tips b{font:800 24px 'Barlow Condensed',sans-serif;color:white}#rules .primary{margin-top:16px}
@media(max-width:800px){.brand{font-size:24px}.scoreboard{width:52vw;grid-template-columns:minmax(100px,1fr) repeat(3,46px);padding:8px}.scoreboard .team{font-size:17px}.score-head{font-size:12px}.score-cell{font-size:30px}.playbook{grid-template-columns:1fr}.playbook svg{height:110px}.power-guide,.playbook-tips{grid-template-columns:1fr 1fr}}
@media(max-width:650px){.game-header{height:196px}.scoreboard{top:61px;width:94%;grid-template-columns:1fr repeat(3,60px)}main{height:calc(100dvh - 196px)}.rally b{font-size:54px}.rally small{font-size:12px}#toast{font-size:20px;width:70%}.point-card{padding:16px}.result-emblem{display:none}#point-winner{font-size:28px}#point-score{font-size:56px}#point-matchscore{font-size:20px}#point-detail{font-size:12px}.control-strip{font-size:10px}.playbook-tips{grid-template-columns:1fr}#rules{padding:20px}.power-guide b{font-size:18px}}
@media(max-height:700px) and (min-width:651px){.game-header{height:128px}.scoreboard{top:6px;grid-template-rows:18px 37px 37px}.score-cell{font-size:30px}.scoreboard .team{font-size:19px}main{height:calc(100dvh - 128px)}.point-card{padding:12px 24px}.result-emblem{display:none}#point-winner{font-size:28px}#point-reason{font-size:32px;margin:8px 0}#point-score{font-size:52px}#point-kind{font-size:19px}#point-matchscore{font-size:21px;margin:6px}#point-detail{margin-bottom:8px}#point-countdown{padding-top:8px}}

.speed-option{display:block;margin-top:20px;text-align:left}.speed-option>span{display:flex;justify-content:space-between;font:700 22px 'Barlow Condensed',sans-serif}.speed-option output{color:var(--lime)}.speed-option input{width:100%;accent-color:var(--lime);margin:14px 0}.speed-option small{display:block;font-size:12px;line-height:1.5;color:#b4c8d8}.menu-card{max-height:90dvh;overflow:auto}

.point-overlay{transition:opacity .25s ease}.point-overlay.follow-through{opacity:0;pointer-events:none}
/* Character selection: sporting arcade roster, with original side-profile athletes. */
body.selecting .game-header{height:70px}body.selecting .scoreboard,body.selecting .quick-actions{display:none}body.selecting main{height:calc(100dvh - 70px)}
#intro.character-select{padding:0;background:radial-gradient(ellipse at 85% 30%,#17475b 0,#0b2031 42%,#07131f 85%);overflow:auto;align-items:flex-start}.selection-shell{width:min(1280px,96%);margin:auto;padding:22px 20px}.selection-heading{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #345064;padding-bottom:14px}.selection-heading h1{font-size:clamp(30px,3.6vw,54px);margin:8px 0 0}.selection-heading .eyebrow{color:#d7ff58;font-size:13px}.selection-body{display:grid;grid-template-columns:1.4fr 1fr;gap:28px}.selection-left>p{font:14px/1.5 'IBM Plex Mono',monospace;color:#99b4c8;margin:16px 0}#roster-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}.fighter{position:relative;min-width:0;padding:0 0 8px;border:1px solid #325166;border-radius:3px;background:linear-gradient(145deg,#1a3548,#0a1b2c);overflow:hidden;text-align:left;transition:background .16s,transform .16s}.fighter svg{width:100%;height:103px;display:block;transform:scale(1.38);transform-origin:50% 15%;margin-bottom:8px}.fighter strong{display:block;position:relative;padding:4px 8px 0;background:#0b1d2ce8;font:700 17px/1.05 'Barlow Condensed',sans-serif;min-height:38px}.fighter small{display:block;padding:3px 8px 0;color:#9eb7c7;font-size:10px}.fighter-rank{position:absolute;z-index:1;top:6px;left:8px;font:800 18px 'Barlow Condensed',sans-serif;color:var(--kit)}.fighter.focused{border-color:#d7ff58;box-shadow:0 0 0 2px #d7ff58;background:linear-gradient(145deg,#3d5260,#203442)}.fighter:hover{background:#25485e;transform:translateY(-2px)}#fighter-preview{position:relative;display:flex;align-items:center;flex-direction:column;border-left:1px solid #345064;background:radial-gradient(ellipse at 50% 45%,#43819c40,transparent 65%);padding:0 22px}.preview-rank{position:absolute;right:15px;top:10px;font:900 100px/1 'Barlow Condensed',sans-serif;color:#ffffff08}.fighter-stage{height:280px;width:100%;border-bottom:1px solid #4b677a}.fighter-stage svg{height:100%;width:100%;filter:drop-shadow(0 12px 15px #0004)}.fighter-bio{width:100%;position:relative}.fighter-bio>small{display:block;letter-spacing:2px;font:600 13px 'Barlow Condensed',sans-serif;color:#d7ff58;margin-top:12px}.fighter-bio h2{font:800 38px/1 'Barlow Condensed',sans-serif;text-transform:uppercase;margin:6px 80px 14px 0}.rating{position:absolute;right:0;top:8px;text-align:right}.rating b{font:800 45px/1 'Barlow Condensed',sans-serif;color:#d7ff58}.rating span{display:block;font-size:8px;color:#9bb1c4}.stat-line{display:flex;align-items:center;gap:12px;margin:8px 0}.stat-line span{width:85px;font:600 14px 'Barlow Condensed',sans-serif}.stat-line i{height:5px;background:linear-gradient(to right,#93c5d4 var(--value),#284253 var(--value));flex:1}.fighter-bio .primary{width:100%;font-size:18px;margin-top:12px;padding:10px}.selection-footer{margin-top:22px;border-top:1px solid #355267;padding-top:12px}.lineup-heading{display:flex;justify-content:space-between;font:700 13px 'Barlow Condensed',sans-serif;letter-spacing:2px;color:#93adbf;margin-bottom:10px}.lineup-heading b{color:#d7ff58}#match-lineup{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.lineup-slot{text-align:left;padding:10px 15px;background:#0c2132;border:1px solid #385065;border-left:3px solid #fa8179;border-radius:2px}.lineup-slot:first-child{border-left-color:#40b8ef}.lineup-slot.active{outline:1px solid #d7ff58;background:#193749}.lineup-slot small{font:600 12px 'Barlow Condensed',sans-serif;letter-spacing:1px;color:#a9c1d2}.lineup-slot strong{display:block;font:700 23px 'Barlow Condensed',sans-serif;margin:3px 0}.lineup-slot span{font-size:9px;color:#9ab3c4}.selection-actions{display:flex;align-items:center;gap:12px;margin-top:16px}.selection-actions button{font:700 18px 'Barlow Condensed',sans-serif}.selection-actions .primary{flex:1}.selection-actions .text-button{margin-left:auto}.athlete-figure{animation:athlete-ready 3s ease-in-out infinite;transform-origin:50% 90%}.fighter .athlete-figure{animation:none}@keyframes athlete-ready{50%{transform:translateY(2px) rotate(.5deg)}}@media(prefers-reduced-motion:reduce){.athlete-figure{animation:none}}@media(max-width:800px){.selection-shell{padding:14px 8px}.selection-body{gap:12px;grid-template-columns:1.1fr 1fr}#roster-grid{grid-template-columns:repeat(3,1fr)}.fighter svg{height:75px}.fighter-stage{height:230px}#fighter-preview{padding:0 10px}.fighter-bio h2{font-size:30px}.selection-actions{flex-wrap:wrap}.selection-actions .text-button{margin-left:0}}@media(max-width:500px){.selection-body{grid-template-columns:1fr}.selection-left>p{font-size:12px}#roster-grid{grid-template-columns:repeat(4,1fr)}.fighter strong{font-size:15px}.fighter svg{height:72px}#fighter-preview{display:grid;grid-template-columns:1fr 1fr;border-left:0;padding:0;gap:12px}.fighter-stage{height:230px}.preview-rank{display:none}.fighter-bio h2{font-size:26px;margin-right:0}.rating{position:static;text-align:left;display:flex;gap:10px;align-items:center}.rating b{font-size:28px}.stat-line span{width:65px}.fighter-bio .primary{font-size:14px}#match-lineup{gap:6px}.lineup-slot{padding:8px}.lineup-slot strong{font-size:18px}.lineup-slot span{font-size:8px}.selection-actions button{font-size:16px}.selection-heading .text-button{font-size:12px}}
@media(min-width:801px){.fighter svg{height:80px}.fighter strong{min-height:32px;font-size:16px}.selection-shell{padding-top:14px}.selection-heading{padding-bottom:10px}.selection-footer{margin-top:14px}.fighter-stage{height:250px}.fighter-bio h2{font-size:34px}}
/* A quiet title screen, followed by focused setup steps. */
#home-screen{position:relative;min-height:100%;width:100%;display:flex;align-items:center;isolation:isolate;overflow:hidden;padding:6% 8%;background:radial-gradient(ellipse at 75% 45%,#20495c 0,transparent 55%)}.home-copy{position:relative;z-index:2;width:54%}.home-copy h1{font-size:clamp(42px,5.7vw,80px);line-height:1;margin:20px 0 36px}.home-copy .eyebrow{color:#9ec6d4}.home-buttons{display:flex;flex-direction:column;gap:14px;max-width:330px}.home-buttons button{font:800 26px 'Barlow Condensed',sans-serif;text-align:left;padding:18px 24px;border-radius:4px}.home-buttons button:not(.primary){background:#143044;border:1px solid #436277}.home-links{display:flex;gap:18px;flex-wrap:wrap;margin-top:26px}.home-links button{background:none;border:0;padding:8px 0;font:600 15px 'Barlow Condensed',sans-serif;letter-spacing:1px;color:#b2c7d5}.home-links button:hover{color:#d7ff58}#home-athletes{position:absolute;right:1%;bottom:9%;width:49%;height:80%;display:flex;align-items:flex-end;z-index:1;pointer-events:none}#home-athletes svg{width:65%;height:100%;filter:drop-shadow(0 15px 20px #0004)}#home-athletes svg+svg{margin-left:-25%;transform:scale(.82);opacity:.85}.home-court{position:absolute;right:-5%;bottom:-32%;width:65%;height:65%;border:3px solid #88b4c433;transform:rotate(-20deg);background:linear-gradient(90deg,transparent 49.7%,#88b4c433 50%,transparent 50.3%);z-index:-1}#difficulty-screen{width:min(980px,92%);margin:auto;padding:36px 20px;text-align:center}#difficulty-back{display:block;margin-bottom:35px}#difficulty-tag{color:#d7ff58}#difficulty-title{font-size:clamp(36px,5vw,64px);margin:16px 0}#difficulty-hint,#room-flow-note{color:#a9c2d2;font:15px/1.6 'IBM Plex Mono',monospace}#difficulty-options{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:32px 0}.difficulty-card{min-height:200px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:24px 18px;border:1px solid #3a5a70;border-radius:5px;background:#102a3d}.difficulty-card>span{font:900 44px 'Barlow Condensed',sans-serif;color:#729aaf}.difficulty-card b{font:800 28px 'Barlow Condensed',sans-serif}.difficulty-card small{font:14px/1.5 'IBM Plex Mono',monospace;color:#adc1cf}.difficulty-card.active{border-color:#d7ff58;box-shadow:inset 0 0 0 1px #d7ff58;background:#233d42}.difficulty-card.active>span{color:#d7ff58}#setup-summary{display:grid;grid-template-columns:repeat(4,1fr);border-top:1px solid #3a5265;padding-top:20px}#setup-summary small{display:block;color:#91adbf;font:600 13px 'Barlow Condensed',sans-serif;letter-spacing:1px}#setup-summary b{display:block;font:800 24px 'Barlow Condensed',sans-serif;margin-top:6px}#launch-match{width:min(440px,100%);font-size:24px;margin-top:14px}#match-lineup{grid-template-columns:repeat(4,1fr)}.lineup-slot:nth-child(2){border-left-color:#40b8ef}.selection-heading{gap:20px}.selection-heading>div{flex:1}.selection-heading h1{font-size:38px}#selection-back{font-size:14px}#intro{display:flex;flex-direction:column}#home-screen{flex:1}.selection-shell{flex:none}#lineup-you{display:none}button:focus-visible{outline:3px solid #d7ff58;outline-offset:4px}.fighter-stage svg{filter:drop-shadow(0 12px 15px #0005)}@media(max-width:650px){#home-screen{padding:32px 6%;align-items:flex-start}.home-copy{width:100%}.home-copy h1{font-size:48px}.home-buttons{max-width:260px}#home-athletes{height:55%;width:55%;right:-12%;bottom:1%;opacity:.35;z-index:0}.home-links{gap:14px}.home-copy h1{margin-bottom:24px}#difficulty-options{grid-template-columns:1fr;margin:20px 0;gap:10px}.difficulty-card{min-height:90px;display:grid;grid-template-columns:42px 1fr;text-align:left;padding:12px 18px;gap:4px 16px}.difficulty-card>span{grid-row:span 2;font-size:32px}.difficulty-card b{font-size:23px}.difficulty-card small{font-size:12px}#difficulty-screen{padding:24px 8px}#difficulty-back{margin-bottom:22px}#match-lineup{grid-template-columns:1fr 1fr}.selection-heading{gap:8px;flex-wrap:wrap}.selection-heading>div{order:2;flex-basis:100%}.selection-heading h1{font-size:32px}.selection-heading>button:last-child{margin-left:auto}#setup-summary b{font-size:20px}}
body.selecting #paused #restart,body.selecting #paused #main-menu,body.selecting #paused #ai-settings{display:none}
/* Rally heat sits in the broadcast header, immediately beside the score. */
.game-header #combo{position:absolute;left:calc(50% + min(300px,27vw) + 16px);right:auto;top:15px;width:132px;display:block;text-align:left;transform-origin:center;--heat-color:#ffdb38;color:var(--heat-color)}.rally-top{display:flex;align-items:baseline;gap:8px}.game-header .rally b{font-size:53px;line-height:1;color:var(--heat-color)}#rally-speed{font:700 16px 'Barlow Condensed',sans-serif;color:#e6edf3}.game-header .rally small{display:block;font-size:15px;letter-spacing:1px;white-space:nowrap;color:var(--heat-color)}#rally-heat{height:9px;background:#ffffff12;border:1px solid #ffffff20;overflow:hidden;border-radius:2px;margin-top:7px}#rally-fill{position:relative;display:block;height:100%;width:0;background:var(--heat-color);box-shadow:0 0 14px var(--heat-color);transition:width .2s,background .25s}#rally-fill:after{content:'';position:absolute;inset:0;background:linear-gradient(110deg,transparent 30%,#fff8 50%,transparent 70%);animation:heat-sweep 1.8s linear infinite}.heat-goal{display:block;margin-top:5px;font:600 11px 'Barlow Condensed',sans-serif;letter-spacing:1px;color:#a7bac9}.game-header .rally.hot{filter:drop-shadow(0 0 8px #ff502988)}body.selecting #combo{display:none}@keyframes heat-sweep{from{transform:translateX(-100%)}to{transform:translateX(100%)}}@media(min-width:1001px){.quick-actions{align-self:flex-end;margin-bottom:8px}}@media(max-width:1000px) and (min-width:651px){.game-header #combo{width:100px;left:calc(50% + 26vw + 8px);top:21px}.game-header .rally b{font-size:40px}.game-header .rally small{font-size:12px}.quick-actions{position:absolute;left:28px;top:73px}}@media(max-width:650px){.game-header{height:250px}main{height:calc(100dvh - 250px)}.game-header #combo{top:197px;left:4%;width:92%;display:flex;align-items:center;gap:12px}.game-header .rally b{font-size:33px}.game-header .rally small{font-size:13px}#rally-heat{flex:1;margin:0}.heat-goal{display:none}.rally-top{gap:5px}#rally-speed{font-size:13px}body.selecting .game-header{height:70px}body.selecting main{height:calc(100dvh - 70px)}}@media(prefers-reduced-motion:reduce){#rally-fill:after{animation:none}}
/* Court-first home and spatial team setup. */
#home-athletes,#home-screen .home-court{display:none}#intro:has(#home-screen:not(.hidden)){background:linear-gradient(90deg,#05121ff5 0%,#05121fdc 36%,#05121f30 100%)}#home-screen{background:none}#home-screen .home-copy{width:65%}.court-builder{display:grid;grid-template-columns:1.15fr 1fr;gap:28px;align-items:start}.court-panel{min-width:0}.setup-court{position:relative;aspect-ratio:2/1;min-height:310px;background:repeating-linear-gradient(90deg,#167bb0 0 80px,#1775a8 80px 160px);border:6px solid #6795ad;box-shadow:inset 0 0 0 3px #d5edf2,0 18px 40px #0004;border-radius:5px}.setup-court:before{content:'';position:absolute;inset:0 20%;border-left:2px solid #d5edf2;border-right:2px solid #d5edf2;pointer-events:none}.setup-court:after{content:'';position:absolute;top:50%;left:0;right:0;border-top:2px solid #d5edf2;pointer-events:none}.setup-net{position:absolute;z-index:1;top:0;bottom:0;left:50%;border-left:5px solid #ecf2ee;box-shadow:6px 0 0 #07253680}.court-position{position:absolute;width:38%;height:44%;z-index:2;display:flex;flex-direction:column;align-items:center;justify-content:center}.position-0{left:5%;bottom:3%}.position-1{left:5%;top:3%}.position-2{right:5%;top:3%}.position-3{right:5%;bottom:3%}.place-player{border:0;background:none;padding:3px;display:flex;flex-direction:column;align-items:center;color:white;min-width:100px}.court-token{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:var(--kit);color:#102637;border:3px solid #e2eef3;box-shadow:0 5px 0 #09253666;font:900 24px 'Barlow Condensed',sans-serif}.place-player strong{font:800 22px 'Barlow Condensed',sans-serif;text-shadow:0 2px 4px #001b2d}.place-player small{font:700 10px 'Barlow Condensed',sans-serif}.control-here{padding:5px 8px;border:1px solid #c6dce770;border-radius:3px;background:#06263ed9;color:#d2e6f3;font:700 11px 'Barlow Condensed',sans-serif}.controlled .court-token{border-color:#dcff58;box-shadow:0 0 15px #dcff58aa}.controlled .control-here{color:#132631;background:#dcff58}.drop-ready{outline:3px dashed #dcff58;background:#dcff5820}.name-entry{display:flex;align-items:center;gap:16px;margin-top:22px;padding:14px 18px;background:#142b3b;border:1px solid #38586e}.name-entry span{font:700 18px 'Barlow Condensed',sans-serif;white-space:nowrap}.name-entry input{width:100%;min-width:0;background:#081a28;border:1px solid #507086;padding:11px;color:#eef5f7;font:18px 'Barlow Condensed',sans-serif}.roster-panel #roster-grid{grid-template-columns:repeat(4,1fr)}.roster-panel .fighter{padding:8px;cursor:grab}.roster-panel .fighter strong{min-height:0;padding:6px 0;background:none;font-size:20px}.roster-panel .fighter small{padding:0;font-size:11px}.kit-icon{display:grid;place-items:center;margin:7px auto;width:40px;height:45px;clip-path:polygon(20% 0,35% 0,50% 12%,65% 0,80% 0,100% 20%,85% 45%,77% 35%,77% 100%,23% 100%,23% 35%,15% 45%,0 20%);font:800 21px 'Barlow Condensed',sans-serif;color:#152e3f}.fighter-rank{font-size:13px;top:5px;left:5px}#roster-tip,#selection-instructions{font:14px/1.5 'IBM Plex Mono',monospace;color:#a9bfcd}#character-screen{margin:auto}.selection-actions{margin-top:24px}@media(max-width:800px){.court-builder{grid-template-columns:1fr}.setup-court{min-height:280px}.roster-panel #roster-grid{grid-template-columns:repeat(5,1fr)}#home-screen .home-copy{width:100%}}@media(max-width:450px){.roster-panel #roster-grid{grid-template-columns:repeat(4,1fr)}.setup-court{min-height:260px}.roster-panel .fighter strong{font-size:18px}.control-here{font-size:10px}.name-entry{padding:10px;gap:10px}}
.roster-avatar{display:block;width:70px;height:66px;margin:0 auto}.roster-avatar svg{width:100%;height:100%;margin:0;transform:none}.court-token{width:48px;height:48px;border-width:2px;background:#092b4655}.court-token svg{width:55px;height:55px;max-width:none}.place-player strong{font-size:20px}.roster-panel .fighter{padding:5px 8px}.roster-panel .fighter strong{padding-top:0}

/* Cutout head portraits: no circular court badges. */
.roster-avatar{width:78px;height:74px}.head-portrait{filter:drop-shadow(0 3px 2px #00111b55)}
.court-token,.controlled .court-token{width:64px;height:62px;border:0;border-radius:0;background:none;box-shadow:none}
.court-token svg{width:68px;height:65px;max-width:none}.court-token .head-portrait{filter:drop-shadow(0 3px 2px #00213666)}
.place-player:hover .head-portrait{transform:translateY(-2px)}
.roster-panel .fighter{background:linear-gradient(145deg,#1c3748,#0b1e2d)}
.roster-panel .fighter.focused{background:linear-gradient(145deg,#304b56,#132c3a)}
/* Character club. The roster, portrait and attributes remain readable at every size. */
#gallery-screen{width:min(1480px,100%);margin:auto;padding:16px 4% 22px;--character-kit:#40b8ef}
.gallery-heading{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #355062;padding-bottom:8px;gap:20px}.gallery-heading .text-button{font-size:14px}.gallery-heading .eyebrow{color:var(--lime)}
.gallery-title-row{display:flex;align-items:baseline;justify-content:space-between;gap:20px;margin:18px 0 22px}.gallery-title-row h1{font-size:clamp(32px,3.8vw,52px);margin:0;letter-spacing:-.4px}.gallery-title-row p{font-size:11px;color:#8fa9bb;margin:0}
.gallery-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:26px;align-items:start}.gallery-roster{display:grid;grid-template-columns:1fr 1fr;gap:7px}.gallery-card{display:flex;align-items:center;gap:6px;padding:6px 8px 6px 4px;border-radius:4px;min-width:0;min-height:61px;text-align:left;background:linear-gradient(135deg,#1c3446,#102437);border-color:#28465b;letter-spacing:0;position:relative}.gallery-card:after{content:'';position:absolute;bottom:0;left:0;right:0;height:2px;background:var(--card-kit);opacity:.35}.gallery-card.active{border-color:var(--lime);background:#29424a;box-shadow:inset 0 0 0 1px #d7ff5833}.gallery-card.active:after{background:var(--lime);opacity:1}.gallery-card:hover{background:#2a4758}.gallery-head{flex:0 0 42px;height:49px;display:block}.gallery-head svg{width:100%;height:100%;filter:drop-shadow(0 2px 2px #0004)}.gallery-card-copy{min-width:0}.gallery-card strong{font:700 18px/1.1 'Barlow Condensed',sans-serif;display:block}.gallery-card small{font:500 9px 'IBM Plex Mono',monospace;color:#8eacbf;display:block;margin-top:5px;white-space:nowrap}.gallery-card small b{color:#e0eef8}
.gallery-detail{display:grid;grid-template-columns:minmax(230px,1.1fr) minmax(245px,1fr);gap:28px;min-width:0}.gallery-stage{position:relative;min-height:490px;display:flex;align-items:center;justify-content:center;overflow:hidden;background:radial-gradient(ellipse at 45% 42%,#24526970,transparent 68%);border:1px solid #345367;border-radius:5px}.gallery-stage:after{content:'';position:absolute;inset:auto 8% 42px;height:1px;background:linear-gradient(90deg,transparent,#7db7cf66,transparent)}.gallery-watermark{position:absolute;right:5%;top:2%;font:900 145px/1 'Barlow Condensed',sans-serif;color:var(--character-kit);opacity:.08;font-style:italic}.gallery-portrait{position:relative;width:100%;padding:16px 3% 34px}.gallery-portrait svg{width:100%;height:440px;max-height:55vh;display:block;filter:drop-shadow(0 14px 14px #0002)}.gallery-stage-label{position:absolute;bottom:17px;left:18px;right:18px;display:flex;justify-content:space-between;gap:12px;font:600 10px 'Barlow Condensed',sans-serif;letter-spacing:1.5px;color:#7799ad}.gallery-stage-label span:first-child{color:var(--character-kit)}
.gallery-info{padding:8px 0;min-width:0}.gallery-role{font:700 12px 'Barlow Condensed',sans-serif;letter-spacing:2px;color:var(--character-kit)}.gallery-name-row{display:flex;justify-content:space-between;align-items:center;gap:16px;border-bottom:1px solid #345166;padding:7px 0 14px;margin-bottom:18px}.gallery-name-row h2{font:800 clamp(32px,3.5vw,48px)/1 'Barlow Condensed',sans-serif;text-transform:uppercase;margin:0}.gallery-rating{text-align:right}.gallery-rating b{font:800 46px/.9 'Barlow Condensed',sans-serif;color:var(--lime);display:block}.gallery-rating span{display:block;font:600 9px 'Barlow Condensed',sans-serif;letter-spacing:1px;color:#9db5c6;margin-top:6px}
.gallery-stats{display:grid;grid-template-columns:1fr 1fr;gap:17px 24px}.gallery-stat>div:first-child{display:flex;justify-content:space-between;align-items:baseline;gap:6px}.gallery-stat span{font:700 17px 'Barlow Condensed',sans-serif;color:#d9e7f0}.gallery-stat b{font:700 20px 'Barlow Condensed',sans-serif;color:#f4f8fa;white-space:nowrap}.gallery-meter{height:5px;background:#294556;margin:6px 0}.gallery-meter i{display:block;height:100%;background:linear-gradient(90deg,var(--character-kit),#ddf7ff);border-radius:1px}.gallery-stat small{font:400 9px/1.5 'IBM Plex Mono',monospace;color:#8eacbd;display:block}.gallery-stats-note{font:400 9px/1.7 'IBM Plex Mono',monospace;color:#8fa8b9;margin:16px 0 18px}.gallery-court-preview{border:1px solid #355b6d;background:#0f2939;border-radius:4px;overflow:hidden}.gallery-court-caption{display:flex;justify-content:space-between;align-items:center;padding:8px 10px;gap:12px}.gallery-court-caption>span{font:700 12px 'Barlow Condensed',sans-serif;letter-spacing:1.5px;color:#d6ebf6}.gallery-court-caption small{font-size:8px;color:#8eacbd}.gallery-court-preview canvas{height:auto;width:100%;aspect-ratio:540/170}.gallery-motion{display:flex;gap:0;border-top:1px solid #355b6d}.gallery-motion button{border:0;border-radius:0;flex:1;padding:7px 2px;font:600 12px 'Barlow Condensed',sans-serif;background:#0e293a;color:#96b8cc}.gallery-motion button[aria-pressed=true]{background:#29474e;color:var(--lime);box-shadow:inset 0 -2px var(--lime)}#gallery-play{width:100%;min-width:0;font-size:18px;padding:12px;margin-top:18px}.gallery-footer{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-top:18px;padding-top:12px;border-top:1px solid #345166;font:600 12px 'Barlow Condensed',sans-serif;letter-spacing:1.5px;color:#8eacbf}.gallery-footer>div{display:flex;align-items:center;gap:18px}.gallery-footer button{font-size:20px;padding:5px 16px;border-radius:3px}.home-buttons #home-characters{border-color:#6499ae;color:#d8effa;background:linear-gradient(115deg,#16364a,#102637)}
@media(min-width:1400px){.gallery-layout{grid-template-columns:300px 1fr}.gallery-card strong{font-size:20px}.gallery-card{min-height:66px}.gallery-head{flex-basis:48px;height:52px}.gallery-stage{min-height:548px}.gallery-portrait svg{height:495px;max-height:60vh}}
@media(max-width:1120px){.gallery-layout{grid-template-columns:200px 1fr;gap:18px}.gallery-detail{gap:18px;grid-template-columns:minmax(200px,1fr) minmax(225px,1fr)}.gallery-head{flex-basis:34px;height:44px}.gallery-card{padding:5px 3px;gap:3px;min-height:59px}.gallery-card strong{font-size:17px}.gallery-card small{font-size:8px}.gallery-stats{gap:14px}.gallery-stat span{font-size:15px}.gallery-stat b{font-size:18px}.gallery-stage{min-height:480px}}
@media(max-width:850px){#gallery-screen{padding:12px 4% 22px}.gallery-layout{display:flex;flex-direction:column;gap:20px}.gallery-roster{order:2;width:100%;grid-template-columns:repeat(4,1fr)}.gallery-detail{width:100%;grid-template-columns:minmax(190px,1fr) minmax(225px,1fr)}.gallery-card{min-height:62px;padding:5px 8px;gap:8px}.gallery-head{flex-basis:40px;height:48px}.gallery-title-row p{display:none}.gallery-stage{min-height:470px}.gallery-portrait svg{max-height:none;height:410px}.gallery-card small{font-size:9px}.gallery-title-row{margin-bottom:18px}.gallery-footer>span{font-size:10px}}
@media(max-width:520px){.gallery-heading{gap:8px}.gallery-heading .eyebrow{font-size:10px;letter-spacing:1px}.gallery-heading .text-button{font-size:12px;letter-spacing:1px}.gallery-detail{display:flex;flex-direction:column;gap:12px}.gallery-stage{min-height:330px}.gallery-portrait{padding:4px 4% 32px}.gallery-portrait svg{height:310px}.gallery-watermark{font-size:120px}.gallery-stage-label{font-size:9px;bottom:12px}.gallery-name-row h2{font-size:42px}.gallery-info{padding:4px}.gallery-name-row{margin-bottom:16px}.gallery-stats{gap:16px 24px}.gallery-stat span{font-size:17px}.gallery-stat b{font-size:22px}.gallery-roster{grid-template-columns:repeat(3,1fr);gap:6px}.gallery-card{padding:5px 4px;gap:3px}.gallery-head{flex-basis:32px}.gallery-card strong{font-size:17px}.gallery-card small{font-size:8px}.gallery-court-preview canvas{max-height:130px}.gallery-title-row h1{font-size:32px}.gallery-footer{gap:8px}.gallery-footer>div{gap:12px}.gallery-footer button{padding:6px 14px}.gallery-stats-note{font-size:10px}.gallery-court-caption small{font-size:9px}}
/* Painted assets use their native tall composition; no stretching or clipping. */
.gallery-portrait .illustrated-portrait{height:510px;max-height:64vh;filter:drop-shadow(0 18px 15px #0004)}
.gallery-stage{background:radial-gradient(ellipse at 45% 42%,#24526980,transparent 72%)}
.gallery-stage:before{content:'';position:absolute;width:65%;height:16px;bottom:41px;border-radius:50%;background:#010c1960;filter:blur(4px)}
.gallery-head .illustrated-head{overflow:hidden;filter:drop-shadow(0 2px 2px #0005)}
@media(min-width:1400px){.gallery-portrait .illustrated-portrait{height:560px;max-height:66vh}}
@media(max-width:850px){.gallery-portrait .illustrated-portrait{height:440px;max-height:none}}
@media(max-width:520px){.gallery-portrait .illustrated-portrait{height:410px;max-height:none}.gallery-stage{min-height:445px}}
/* Match lobby: one 16:9 game composition, scaled as a whole, never a scrolling page. */
body:has(#intro:not(.hidden) #character-screen:not(.hidden)) .game-header{visibility:hidden}
#intro:has(#character-screen:not(.hidden)){position:fixed;inset:0;padding:0;overflow:hidden;background:#030b12;display:grid;place-items:center}
#intro #character-screen{container-type:inline-size;width:min(100vw,177.77778dvh);height:auto;aspect-ratio:16/9;max-width:none;margin:0;padding:0;position:relative;overflow:hidden;background:radial-gradient(ellipse at 20% 40%,#20465b 0%,#0e283a 48%,#071724 100%);border:0;display:block}
#character-screen:before{content:'';position:absolute;inset:0;pointer-events:none;opacity:.12;background:repeating-linear-gradient(120deg,transparent 0 100px,#70b8d420 101px 102px)}
#character-screen .selection-heading{position:absolute;top:3cqw;left:3.5cqw;right:3.5cqw;height:5.6cqw;margin:0;padding:0;border:0;display:flex;align-items:center;justify-content:space-between}
#character-screen .selection-heading h1{font:900 italic 3.5cqw/.95 'Barlow Condensed',sans-serif;margin:.7cqw 0 0;letter-spacing:-.05cqw}
#character-screen .eyebrow{font:700 .88cqw 'Barlow Condensed',sans-serif;letter-spacing:.16cqw;color:#b1c4d0}
#character-screen #intro-settings{font:700 1.15cqw 'Barlow Condensed',sans-serif;letter-spacing:.12cqw;padding:.8cqw 1.2cqw;border:1px solid #496275;background:#102b3c;border-radius:0;min-width:0}
#character-screen #selection-instructions{position:absolute;top:9.8cqw;left:3.5cqw;margin:0;font:500 1.1cqw 'Barlow Condensed',sans-serif;color:#b6ccd8;letter-spacing:.04cqw}
#character-screen .court-builder{position:absolute;inset:13cqw 3.5cqw 8.4cqw;display:grid;grid-template-columns:1.22fr 1fr;gap:2.6cqw;align-items:stretch}
#character-screen .court-panel{display:flex;flex-direction:column;justify-content:center;gap:1.4cqw;min-height:0}
#character-screen .setup-court{flex:none;width:100%;aspect-ratio:1.8;min-height:0;border:.35cqw solid #7da7bb;border-radius:.2cqw;box-shadow:inset 0 0 0 .15cqw #e0f3fa,0 1.5cqw 3cqw #0005;transform:none}
#character-screen .setup-net{border-left-width:.25cqw;box-shadow:.4cqw 0 0 #07253680}
#character-screen .court-position{height:45%;width:40%;justify-content:center;gap:0}
#character-screen .place-player{padding:0;min-width:0;width:100%;border:0;background:transparent}
#character-screen .court-token,#character-screen .court-token svg{width:5.4cqw;height:5.2cqw;max-width:none;border:0;background:none;box-shadow:none;margin:0}
#character-screen .place-player strong{font:800 1.55cqw/1 'Barlow Condensed',sans-serif;margin:.1cqw 0 .35cqw;text-shadow:0 .15cqw .3cqw #002037}
#character-screen .place-player small{display:none}
#character-screen .control-here{font:800 .82cqw/1 'Barlow Condensed',sans-serif;letter-spacing:.08cqw;padding:.45cqw .95cqw;border:0;border-radius:0;background:#072c4888;color:#d6eaf5;box-shadow:none;min-width:6.5cqw}
#character-screen .controlled .control-here{background:var(--lime);color:#112b32;box-shadow:0 0 1.8cqw #d7ff5830}
#character-screen .controlled:after{content:'';position:absolute;bottom:.3cqw;width:4cqw;height:.16cqw;background:var(--lime);pointer-events:none}
#character-screen .name-entry{margin:0;padding:.8cqw 1cqw;gap:1cqw;background:#081c2a80;border:0;border-left:.2cqw solid var(--lime)}
#character-screen .name-entry span{font:700 .95cqw 'Barlow Condensed',sans-serif;color:#adc3cf;letter-spacing:.06cqw}
#character-screen .name-entry input{font:600 1.35cqw 'Barlow Condensed',sans-serif;padding:.4cqw .7cqw;border:0;border-bottom:1px solid #46677c;background:transparent;border-radius:0}
#character-screen .roster-panel{min-height:0;display:flex;flex-direction:column;gap:.65cqw}
#character-screen #roster-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(4,minmax(0,1fr));gap:.65cqw;flex:1;min-height:0}
#character-screen .fighter{min-width:0;min-height:0;position:relative;padding:.2cqw .6cqw;overflow:hidden;border:1px solid #4b6a7c77;border-radius:.1cqw;background:linear-gradient(145deg,#2c4a5b88,#0d2639);box-shadow:none;display:flex;flex-direction:column;justify-content:flex-end;transition:border-color .15s,background .15s}
#character-screen .fighter:after{content:'';position:absolute;bottom:0;left:0;right:0;height:.16cqw;background:var(--kit);opacity:.65}
#character-screen .fighter.focused{border-color:var(--lime);background:linear-gradient(145deg,#56693d66,#1e3b44);box-shadow:inset 0 0 0 .1cqw var(--lime)}
#character-screen .fighter:hover{background:#33576c;border-color:#d1ebfa}
#character-screen .fighter-rank{position:absolute;top:.4cqw;left:.45cqw;font:700 .8cqw 'Barlow Condensed',sans-serif}
#character-screen .roster-avatar{display:block;position:absolute;width:6cqw;height:5.4cqw;right:.2cqw;top:.05cqw;margin:0;pointer-events:none}
#character-screen .roster-avatar svg{width:100%;height:100%;margin:0;transform:none}
#character-screen .fighter strong{position:relative;margin:0;padding:0;background:none;font:800 1.4cqw/1.05 'Barlow Condensed',sans-serif;text-shadow:0 .1cqw .3cqw #071824;z-index:1}
#character-screen .fighter small{position:relative;font:600 .7cqw/1.4 'Barlow Condensed',sans-serif;padding:.25cqw 0;color:#adc5d4;z-index:1}
#character-screen #roster-tip{margin:0;font:600 .8cqw 'Barlow Condensed',sans-serif;letter-spacing:.045cqw;color:#9bb6c7;white-space:nowrap}
#character-screen .selection-actions{position:absolute;bottom:2cqw;left:3.5cqw;right:3.5cqw;height:4.6cqw;display:flex;align-items:stretch;gap:1cqw;padding:0;margin:0;border:0}
#character-screen .selection-actions button{font:800 1.35cqw 'Barlow Condensed',sans-serif;letter-spacing:.07cqw;padding:0 1.8cqw;min-width:0;border:0;border-radius:.15cqw;box-shadow:none;background:#203b4e}
#character-screen .selection-actions #selection-back{background:transparent;color:#b4c9d5;padding-left:0;min-width:7cqw;text-align:left}
#character-screen .selection-actions #intro-help{background:transparent;color:#b4c9d5;font-size:1cqw;order:2}
#character-screen .selection-actions #start{margin-left:auto;order:3;width:26cqw;font-size:1.8cqw;font-style:italic;background:var(--lime);color:#112a27;clip-path:polygon(4% 0,100% 0,100% 100%,0 100%);box-shadow:inset 0 -.3cqw #91ad35}
#character-screen .selection-actions #start:hover{background:#e8ff9b}
#character-screen .drop-ready{outline:.2cqw dashed var(--lime);outline-offset:-.3cqw;background:#d7ff5825}
#character-screen .selection-actions #start{flex:0 0 26cqw}
#character-screen .roster-avatar{width:5.4cqw;height:4.8cqw;top:.15cqw}
#character-screen .fighter:focus-visible,#character-screen .control-here:focus-visible{outline-offset:-.2cqw;outline-width:.2cqw}
#character-screen .fighter{touch-action:none;user-select:none;-webkit-user-select:none}
.lineup-drag-ghost{position:fixed;z-index:10000;pointer-events:none;width:100px;height:100px;transform:translate(-50%,-75%) rotate(-5deg);padding:6px;background:#173f54ee;border:2px solid #d7ff58;box-shadow:0 12px 30px #0008;border-radius:3px}
.lineup-drag-ghost .fighter-rank,.lineup-drag-ghost small{display:none}.lineup-drag-ghost .roster-avatar{width:70px;height:65px}.lineup-drag-ghost strong{display:block;text-align:center;font:800 18px 'Barlow Condensed',sans-serif}
#character-screen .selection-actions button{flex:0 0 auto}
#character-screen .selection-actions #start{flex:0 0 26cqw}
/* Shared game UI: slate surfaces, condensed type, forward-cut actions. */
:root{--ui-panel:linear-gradient(145deg,#203f52f5,#091e30fa);--ui-border:#486a7f;--ui-cut:polygon(10px 0,100% 0,100% calc(100% - 7px),calc(100% - 7px) 100%,0 100%,0 10px)}
button:not(.fighter):not(.gallery-card):not(.place-player):not(.control-here):not(.icon-button){border-radius:0;clip-path:var(--ui-cut);font-weight:800;text-transform:uppercase;letter-spacing:.7px;transition:background .15s,filter .15s,translate .15s}
button.primary,#home-coop,#home-characters{clip-path:polygon(5% 0,100% 0,100% 100%,0 100%);padding-left:7%;font-style:italic;box-shadow:inset 0 -4px #0002}
button.primary:hover{translate:3px 0;filter:brightness(1.08)}
button:focus-visible{outline:3px solid var(--lime);outline-offset:-4px}
.menu-card,.point-card,dialog,#multiplayer,.gallery-stage,.gallery-card,.gallery-court-preview,.scoreboard{border-radius:2px;border-color:var(--ui-border);background:var(--ui-panel)}
.menu-card,.point-card,dialog,#multiplayer{border-top:3px solid var(--lime);box-shadow:0 24px 75px #0008}
.menu-card h1,dialog h2,.gallery-title-row h1,#difficulty-title,#point-kind{font-style:italic;text-transform:uppercase;letter-spacing:-.4px}
.menu-grid button,.gallery-footer button,#difficulty-options button{background:linear-gradient(135deg,#29495c,#142e42);border:1px solid #4b6b7f}
.menu-grid button:hover,#difficulty-options button:hover{background:#33576c;border-color:#d5ecfa}
#difficulty-options button.selected,#difficulty-options button[aria-pressed=true]{border-color:var(--lime);box-shadow:inset 0 -3px var(--lime)}
.icon-button{border-radius:2px;background:#143247;border-color:#4b6a80}
#point-reason{color:var(--lime);font-style:italic}.point-card #point-countdown{border-radius:0;border-top:1px solid #466478;color:#d7ff58}
.scoreboard{box-shadow:0 8px 30px #0004;border-top:2px solid #7ca4b9}.combo{border-radius:0}
#intro:has(#home-screen:not(.hidden)),#intro:has(#difficulty-screen:not(.hidden)){position:fixed;inset:0;display:grid;place-items:center;overflow:hidden;padding:0;background:#030b12}
body:has(#intro:not(.hidden) #home-screen:not(.hidden)) .game-header,body:has(#intro:not(.hidden) #difficulty-screen:not(.hidden)) .game-header{visibility:hidden}
#intro #home-screen,#intro #difficulty-screen{container-type:inline-size;position:relative;width:min(100vw,177.77778dvh);height:auto;aspect-ratio:16/9;min-height:0;max-width:none;overflow:hidden;margin:0;padding:0;background:radial-gradient(ellipse at 22% 40%,#20465bd9,#0e283acc 48%,#071724dd)}
#intro #home-screen .home-copy{width:58%;margin:6cqw 7cqw}.home-copy .eyebrow{font-size:1cqw}#home-screen .home-copy h1{font-size:5.3cqw;margin:1.5cqw 0 2.5cqw}#home-screen .home-buttons{gap:.8cqw}#home-screen .home-buttons button{font-size:1.9cqw;width:29cqw;min-width:0;padding:1.15cqw 2cqw}#home-screen .home-links{margin-top:1.5cqw;gap:1.4cqw}#home-screen .home-links button{font-size:1.1cqw;padding:.5cqw}
#intro #difficulty-screen{padding:4cqw 7cqw}#difficulty-screen #difficulty-back{font-size:1.1cqw;padding:0;margin:0 0 1.3cqw}#difficulty-screen .eyebrow{font-size:.95cqw}#difficulty-screen h1{font-size:4.5cqw;margin:1cqw 0}#difficulty-screen>p{font-size:1.1cqw;margin:1cqw 0}#difficulty-screen #difficulty-options{display:grid;grid-template-columns:repeat(3,1fr);gap:1.2cqw;margin:2cqw 0}#difficulty-screen #difficulty-options button{padding:1.8cqw;min-height:12cqw;font-size:1.5cqw}#difficulty-screen #difficulty-options strong{font-size:2.2cqw}#difficulty-screen #difficulty-options small{font-size:1cqw}#difficulty-screen #setup-summary{margin:1.5cqw 0;gap:1cqw}#difficulty-screen #setup-summary>div{padding:1cqw;border-radius:0}#difficulty-screen #setup-summary strong{font-size:1.6cqw}#difficulty-screen #setup-summary span{font-size:.9cqw}#difficulty-screen #launch-match{position:absolute;right:7cqw;bottom:3cqw;width:30cqw;font-size:2cqw;padding:1.2cqw;min-width:0}#difficulty-screen #room-flow-note{position:absolute;bottom:3.4cqw;left:7cqw;font-size:1cqw;max-width:45cqw}
@media(prefers-reduced-motion:reduce){button.primary:hover{translate:none}}
#intro:has(#home-screen:not(.hidden)){background:transparent}

/* One navigation contract: back immediately before the forward action. */
.menu-navigation{display:flex;align-items:stretch;justify-content:flex-end;gap:12px}
.menu-navigation>button{min-height:56px;margin:0;flex:1;font-size:22px;font-style:italic}
.menu-navigation>.nav-back{background:linear-gradient(135deg,#34566b,#183548);border:1px solid #7796a8;color:#eaf4fa;box-shadow:inset 0 -3px #0a2030;clip-path:polygon(0 0,96% 0,100% 100%,0 100%);text-align:center;padding:12px 22px}
.menu-navigation>.nav-back:hover{background:#40667d;translate:-3px 0}
#character-screen .selection-actions .menu-navigation,#difficulty-screen .setup-navigation{margin-left:auto;width:46cqw;height:4.6cqw;gap:1cqw}
#character-screen .selection-actions #selection-back,#difficulty-screen #difficulty-back{font:800 italic 1.8cqw 'Barlow Condensed',sans-serif;padding:0 1.5cqw;margin:0;min-height:0;min-width:0;width:19cqw;flex:0 0 19cqw;background:linear-gradient(135deg,#34566b,#183548);border:1px solid #7796a8;color:#eaf4fa;text-align:center;box-shadow:inset 0 -.3cqw #0a2030}
#character-screen .selection-actions #start,#difficulty-screen #launch-match{position:static;order:0;margin:0;min-height:0;width:26cqw;flex:1;font:800 italic 1.8cqw 'Barlow Condensed',sans-serif;padding:0 1.5cqw}
#character-screen .selection-actions #intro-help{order:0}
#difficulty-screen .setup-navigation{position:absolute;bottom:2cqw;right:3.5cqw}
#difficulty-screen .setup-navigation .menu-navigation{height:100%;gap:1cqw}
#intro #difficulty-screen{padding:3.5cqw;text-align:left}
#difficulty-screen h1{font-size:3.4cqw;margin:.7cqw 0 1.2cqw}
#difficulty-screen #difficulty-options{margin-top:2.2cqw}
#difficulty-screen #room-flow-note{left:3.5cqw;bottom:3cqw;max-width:41cqw}
.gallery-navigation{margin-top:18px}.gallery-navigation #gallery-play{width:auto;margin:0;font-size:18px;flex:1.8}.gallery-navigation #gallery-back{font-size:20px;min-width:100px}
.room-footer.menu-navigation{width:100%;gap:12px}.room-footer.menu-navigation button{margin:0;min-width:0;font-size:20px}
#ai-close,#close{min-height:56px;font-size:22px;padding:12px 28px}

/* Short matches show games and points; keep legacy snapshot fields hidden. */
.scoreboard .score-head:nth-child(2),#sets0,#sets1{display:none}
.scoreboard{grid-template-columns:minmax(130px,1fr) 90px 90px}
body:not(.selecting) .game-header{visibility:visible}
@media(max-width:650px){.scoreboard{grid-template-columns:1fr 66px 66px}}

.menu-card{width:min(620px,94vw)}
.control-settings{display:grid;grid-template-columns:1fr 1fr;gap:22px}
.control-settings .speed-option>span{font-size:19px;gap:10px}
.control-settings .speed-option small{font-size:11px}
@media(max-height:750px){.menu-card{padding:18px 24px}.menu-card h1{font-size:34px;margin:8px 0 14px}.menu-card .primary{margin-bottom:12px;padding:10px}.menu-grid{gap:7px}.menu-grid button{padding:9px;font-size:17px}.speed-option{margin-top:12px}.speed-option input{margin:8px 0}.menu-hint{margin-top:12px}}

.game-header .rally small{font:900 italic 23px/1 'Barlow Condensed',sans-serif;white-space:normal;letter-spacing:0}
.game-header .rally.hot small{font-size:29px;color:#ff6247;text-shadow:0 2px 0 #6a180d}
#rally-speed{font:800 23px 'Barlow Condensed',sans-serif}.heat-goal{font-size:14px;color:#ffc59d}#rally-heat{height:15px}
@media(max-width:1000px) and (min-width:651px){.game-header .rally small{font-size:18px}.game-header .rally.hot small{font-size:21px}#rally-speed{font-size:18px}}
@media(max-width:650px){.game-header .rally small,.game-header .rally.hot small{font-size:19px}#rally-speed{font-size:18px}}

@media(min-width:1001px){.game-header #combo{width:160px}.game-header .rally small{white-space:nowrap}}

#rally-heat{height:27px}#rally-fill{background:linear-gradient(90deg,#ff973e,#ff342e);box-shadow:0 0 14px #ff493488}.rally.hot .heat-goal{display:none}

/* A progress fill is not the old slanted decorative rally icon. */
#rally-fill{inset:auto;transform:none;opacity:1;overflow:hidden}#rally-fill:after{display:none}

/* Top Down Padel: outlined vector wordmark, shared across menu and match header. */
.brand{display:block;padding-top:0;line-height:0}.brand img{display:block;width:170px;height:auto}#home-screen .home-copy #home-title{margin:1.8cqw 0 2.6cqw;line-height:0}#home-screen .home-logo{display:block;width:42cqw;max-width:100%;height:auto;filter:drop-shadow(0 5px 0 #04121b55)}
@media(max-width:1050px){.brand img{width:140px}}
@media(max-width:650px){.brand img{width:125px}}

/* Four-player match presentation, shared by the club and challenge step. */
#difficulty-options{display:block;margin:14px 0}#setup-summary:empty{display:none}
.match-four{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;min-height:0}
.match-player{min-width:0;border:1px solid #3a5b6c;background:linear-gradient(160deg,#1b3c4e,#091a29);padding:12px 16px 16px;position:relative;overflow:hidden;box-shadow:inset 0 3px var(--kit)}
.match-player.is-human{border-color:#d7ff58;box-shadow:inset 0 3px #d7ff58}
.match-role{font:800 15px 'Barlow Condensed',sans-serif;letter-spacing:2px;color:#a5c8da}.is-human .match-role{color:#d7ff58}
.match-portrait{height:clamp(140px,27vh,300px);display:flex;justify-content:center;background:radial-gradient(ellipse at 50% 85%,#3a809340,transparent 65%)}
.match-portrait svg{height:100%;width:100%;filter:drop-shadow(0 9px 9px #0005)}
.match-player h2{font:900 clamp(24px,2.6vw,38px)/1 'Barlow Condensed',sans-serif;text-transform:uppercase;margin:4px 0 15px;color:#f1f7fa}
.step-stat{display:grid;grid-template-columns:1fr 1fr 14px;gap:8px;align-items:center;margin:9px 0;font:800 clamp(12px,1.1vw,17px) 'Barlow Condensed',sans-serif}
.step-stat>b{color:#c9dce5;text-align:right}.stat-segments{display:grid;grid-template-columns:repeat(5,1fr);gap:3px;height:10px}.stat-segments i{background:#355263;transform:skew(-12deg)}.stat-segments i.filled{background:var(--kit,#d7ff58)}
.individual-level{display:grid;gap:6px;margin-top:16px;font:800 13px 'Barlow Condensed',sans-serif;letter-spacing:1px;color:#a3c1d2}
.individual-level select{width:100%;padding:9px 10px;border:1px solid #7092a6;border-radius:0;background:#0c2332;color:#fff;font:800 18px 'Barlow Condensed',sans-serif;cursor:pointer}
.human-control{margin-top:16px;min-height:67px;display:flex;align-items:center;color:#d7ff58;font:800 18px 'Barlow Condensed',sans-serif}
.club-bottom{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-top:20px}.club-bottom>p{max-width:48%;color:#a5c1cf;font:500 15px/1.4 'Barlow Condensed',sans-serif}.club-bottom .menu-navigation{min-width:42%}
#gallery-screen{display:flex;flex-direction:column;justify-content:center}#gallery-screen.hidden{display:none}
#difficulty-screen{max-width:1320px;width:100%}#difficulty-title{margin:8px 0}#difficulty-hint{font-size:16px;margin:8px 0}#difficulty-screen .setup-navigation{margin-top:10px}
@media(max-height:760px){.match-portrait{height:24vh}.match-player{padding:10px 12px}.match-player h2{margin-bottom:8px}.step-stat{margin:7px 0}.individual-level{margin-top:10px}.club-bottom{margin-top:10px}}
#toast{font-size:clamp(21px,2.2vw,32px);font-weight:900;text-shadow:0 3px 8px #00101f}
/* Replace the former three-choice grid inside the fixed 16:9 challenge stage. */
#difficulty-screen #difficulty-options{display:block;width:100%;margin:1.2cqw 0}
#difficulty-screen .match-four{gap:1.2cqw}
#difficulty-screen .match-player{padding:.8cqw 1cqw}
#difficulty-screen .match-portrait{height:15cqw}
#difficulty-screen .match-role{font-size:1cqw;letter-spacing:.12cqw}
#difficulty-screen .match-player h2{font-size:2.3cqw;margin:.2cqw 0 .7cqw}
#difficulty-screen .step-stat{font-size:1cqw;margin:.45cqw 0;gap:.5cqw;grid-template-columns:1fr 1fr 1cqw}
#difficulty-screen .stat-segments{height:.75cqw;gap:.2cqw}
#difficulty-screen .individual-level{font-size:.9cqw;margin-top:.8cqw;gap:.4cqw}
#difficulty-screen .individual-level select{font-size:1.3cqw;padding:.6cqw}
#difficulty-screen .human-control{font-size:1.3cqw;margin-top:.8cqw;min-height:4.2cqw}
#difficulty-screen .step-stat{font-size:1.2cqw}
/* Approved single-line typographic identity. */
.brand img{width:190px}#home-screen .home-logo{width:47cqw;filter:none}#home-screen .home-copy #home-title{margin:2.5cqw 0 3.5cqw}
@media(max-width:1050px){.brand img{width:155px}}
@media(max-width:650px){.brand img{width:145px}}
/* Compact point result: scorer, cause and one animated score. */
.point-card{width:min(570px,90vw);padding:30px 34px 24px}
.point-card .result-emblem,#point-kind,#point-detail,#point-matchscore{display:none!important}
#point-winner{font:900 italic clamp(22px,3.2vw,36px)/1.1 'Barlow Condensed',sans-serif;margin:0 0 14px;text-transform:uppercase}
#point-reason{font:800 italic clamp(23px,3vw,34px)/1.1 'Barlow Condensed',sans-serif;color:#e8f3fa;text-shadow:none;margin:0 0 14px}
#point-score{display:grid;grid-template-columns:1fr 40px 1fr;align-items:center;font:900 italic clamp(64px,8vw,108px)/1 'Barlow Condensed',sans-serif;margin:0}
.score-roll{position:relative;display:block;height:1.2em;overflow:hidden;padding-top:.1em}
.score-old,.score-new{display:block;width:100%}.score-old{position:absolute;opacity:0;inset:.1em 0 auto}.score-roll.scored{color:var(--score-color)}
.score-roll.scored .score-old{animation:score-out .5s .95s both}.score-roll.scored .score-new{animation:score-in .5s .95s both}
.score-separator{font-size:.55em;color:#7994a5}.result-teams{display:grid;grid-template-columns:1fr 1fr;gap:40px;font:700 clamp(14px,1.7vw,19px)/1.15 'Barlow Condensed',sans-serif;padding:0 0 16px;border:0;letter-spacing:0;text-align:center}
.point-card #point-countdown{font-size:20px;border:0;padding-top:12px;letter-spacing:1px}.point-card.change-ends #point-countdown{font-size:26px}
@keyframes score-out{0%{opacity:1;transform:translateY(0)}100%{opacity:0;transform:translateY(-110%)}}
@keyframes score-in{0%{opacity:0;transform:translateY(110%)}100%{opacity:1;transform:translateY(0)}}
.danger-leave{color:#ff8a87!important;border-color:#9b4d56!important;background:#572d3638!important}.menu-grid .danger-leave{grid-column:2}.duration-option{display:grid;grid-template-columns:1fr 1fr;gap:8px 16px;margin:16px 0;font:700 19px 'Barlow Condensed',sans-serif;align-items:center}.duration-option select{min-height:44px;background:#0c2638;color:#e9f4ff;border:1px solid #4c7084;padding:8px;font:700 18px 'Barlow Condensed',sans-serif}.duration-option small{grid-column:1/-1;font:400 13px 'Barlow Condensed',sans-serif;color:#b2cad8}.menu-card .menu-grid{gap:10px}.menu-card .menu-hint{display:none}#leave-confirm{width:min(520px,90vw)}#leave-confirm .menu-navigation{display:flex;gap:12px}#leave-confirm button{flex:1;min-height:48px}
@media(max-height:600px){.point-card{padding:16px 26px;width:min(480px,80vw)}#point-winner{font-size:25px;margin-bottom:9px}#point-reason{font-size:26px;margin-bottom:6px}#point-score{font-size:66px}.result-teams{font-size:15px;padding-bottom:6px}.point-card #point-countdown{font-size:18px;padding-top:6px}.menu-card{padding:16px 24px;max-height:94dvh}.menu-card h1{font-size:32px;margin:8px 0 12px}.menu-card .menu-grid{gap:7px;margin:10px 0}.menu-card button{min-height:40px;padding:8px 14px}.duration-option{margin:10px 0;gap:4px 10px;font-size:16px}.duration-option select{min-height:40px;font-size:16px}.control-settings{gap:12px}.speed-option small{font-size:11px}.menu-card .eyebrow{display:none}}
@media(prefers-reduced-motion:reduce){.score-roll.scored .score-new{animation:none}.score-roll.scored .score-old{display:none}}
/* Training centre: a single landscape screen, with thumb-sized actions. */
.training-modes{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;height:100%;align-items:stretch}.training-mode{position:relative;text-align:left;padding:28px;background:linear-gradient(145deg,#20475c,#0a2030);border:1px solid #5b879a;display:flex;flex-direction:column;justify-content:center;gap:18px;min-height:230px}.training-mode>span{color:#d7ff50;font-size:36px}.training-mode>strong{font-size:clamp(28px,3.3vw,50px);line-height:1}.training-mode p{font:18px/1.5 'Barlow Condensed',sans-serif;color:#c3d7e2;text-transform:none;margin:0}.training-mode>b{position:absolute;bottom:18px;right:22px;font-size:34px}.training-mode:hover{transform:translateX(5px);border-color:#d7ff50}
.practice-screen{position:fixed;inset:0;z-index:80;background:radial-gradient(ellipse at 75% 20%,#245469,#081a28 75%);display:grid;place-items:center;padding:3vh 4vw}.practice-shell{width:min(1200px,100%);height:min(690px,94vh);display:flex;flex-direction:column;gap:16px}.practice-shell header{display:flex;align-items:center;justify-content:space-between;color:#d7ff50;letter-spacing:2px;font:700 17px 'Barlow Condensed',sans-serif}.practice-shell h1{font-size:clamp(32px,4.5vw,62px);margin:0;font-style:italic}.practice-shell h2{font-size:25px;margin:0 0 12px}.practice-shell footer{display:flex;gap:16px;margin-top:auto}.practice-shell footer button{min-height:52px;min-width:140px;font-size:23px}.practice-shell footer .primary{flex:1}.practice-options{display:grid;grid-template-columns:1fr 1fr;gap:40px;margin:auto 0}.practice-options p{font:19px/1.4 'Barlow Condensed',sans-serif;color:#b5cbd7}.practice-options label{display:block;font:700 19px 'Barlow Condensed',sans-serif;margin-bottom:15px}.practice-options select{display:block;width:100%;height:50px;margin-top:7px;background:#123347;color:#fff;border:1px solid #7294a7;padding:8px;font:700 20px 'Barlow Condensed',sans-serif}.practice-mini-court{display:flex;position:relative;background:#147ca4;border:4px solid #a2d4e6;height:190px;padding:10px;gap:16px}.practice-mini-court:before{content:'';position:absolute;top:50%;left:0;right:0;border-top:2px solid #95cad6;pointer-events:none}.practice-mini-court i{border:2px solid white}.practice-mini-court button{flex:1;z-index:1;align-self:center;font-size:20px;padding:15px 4px}.practice-mini-court button[aria-pressed=true]{background:#d7ff50;color:#132a39}.lesson-instruction{font:600 clamp(22px,2.5vw,34px)/1.25 'Barlow Condensed',sans-serif;text-align:center;margin:10px auto;max-width:850px}.practice-controls,.practice-tip{text-align:center;font:600 17px/1.4 'Barlow Condensed',sans-serif;color:#c6dfe9}.practice-tip{color:#d7ff50;letter-spacing:1px}.lesson-demo{height:150px;position:relative;max-width:500px;width:100%;margin:0 auto;background:#123c50;border:1px solid #386276;overflow:hidden}.lesson-demo svg{width:100%;height:85px;position:absolute;bottom:25px;stroke:#6bdca5;stroke-width:8;fill:none;stroke-linecap:round}.lesson-demo path{stroke-dasharray:260;animation:practiceSwipe 2.5s infinite}.lesson-demo span{position:absolute;bottom:6px;left:0;right:0;text-align:center;font:700 16px 'Barlow Condensed'}.demo-ball{position:absolute;width:17px;height:17px;border-radius:100%;background:#e6ef55;top:22px;left:70%;animation:practiceBall 2.5s infinite}.demo-racket{position:absolute;left:30%;top:10px;width:20px;height:35px;border-radius:50%;border:3px solid #d9f3ff;transform:rotate(25deg)}@keyframes practiceSwipe{0%,20%{stroke-dashoffset:260}65%,100%{stroke-dashoffset:0}}@keyframes practiceBall{0%,15%{left:80%}65%,75%{left:33%}100%{left:80%}}.training-complete{text-align:center;color:#d7ff50;font-size:110px}
.practice-active .scoreboard,.practice-active .rally-combo,.practice-active #combo,.practice-active .control-strip,.practice-active #toast{visibility:hidden}.practice-active .topbar{visibility:hidden}#practice-hud{position:fixed;z-index:25;top:12px;left:4%;right:4%;display:flex;gap:16px;align-items:center;padding:12px 18px;background:#0a2335ef;border-left:4px solid #d7ff50;pointer-events:none}#practice-hud>div{flex:1}#practice-hud b{display:block;font:800 clamp(20px,2.4vw,30px) 'Barlow Condensed';color:#d7ff50}#practice-hud span{display:block;font:500 18px/1.2 'Barlow Condensed';color:#d5e8ef}#practice-feedback{font:800 22px 'Barlow Condensed';max-width:36%}#practice-hud button{pointer-events:auto;min-height:48px;font-size:22px}
@media(max-height:600px){.practice-screen{padding:14px 4vw}.practice-shell{height:94vh;gap:8px}.practice-shell h1{font-size:34px}.practice-options{gap:24px}.practice-mini-court{height:130px}.practice-shell footer button{min-height:44px;font-size:20px}.practice-options select{height:42px}.practice-options label{margin-bottom:8px}.practice-options p{font-size:17px;margin:5px 0}.lesson-demo{height:105px}.lesson-instruction{font-size:24px;margin:3px auto}.practice-controls,.practice-tip{font-size:15px}.training-mode{min-height:170px;padding:16px;gap:10px}.training-mode strong{font-size:30px}.training-mode>span{font-size:24px}#practice-hud{top:5px;padding:6px 12px}#practice-hud b{font-size:20px}#practice-hud span{font-size:16px}#practice-feedback{font-size:18px}}
@media(prefers-reduced-motion:reduce){.lesson-demo *{animation:none!important}}
.practice-active .game-header{visibility:hidden}
.practice-sensitivity{display:flex;align-items:center;gap:15px;font:700 18px 'Barlow Condensed';color:#c8e1ed}.practice-sensitivity input{width:min(260px,40vw);accent-color:#d7ff50}.practice-sensitivity output{color:#d7ff50;min-width:45px}
.practice-active .game-header,.practice-active .game-header *{visibility:hidden!important}

/* Club identity and readable match format, inside the existing scoreboard. */
#club-hud{position:absolute;left:2.6%;top:47px;display:flex;align-items:center;gap:7px;max-width:22%;pointer-events:none}
#club-hud[hidden]{display:none}#club-hud img{width:74px;height:74px;object-fit:contain}#club-hud span{font:800 italic 20px/1 'Barlow Condensed',sans-serif;text-transform:uppercase;color:#e6f4ff}
.scoreboard .score-caption{position:static;transform:none;grid-column:1/-1;grid-row:4;text-align:center;font:800 20px/1.2 'Barlow Condensed',sans-serif;letter-spacing:1px;color:#e6f4ff;background:transparent;padding:6px 0 0;white-space:normal}
.scoreboard .score-caption.golden{color:var(--lime)}
.game-header{height:176px}main{height:calc(100dvh - 176px)}
@media(max-height:700px) and (min-width:651px){.game-header{height:156px}main{height:calc(100dvh - 156px)}#club-hud img{width:64px;height:64px}#club-hud span{font-size:17px}}
@media(max-width:1000px) and (min-width:651px){#club-hud span{display:none}}
@media(max-width:650px){.game-header{height:224px}main{height:calc(100dvh - 224px)}.club-match .game-header .brand{visibility:hidden}#club-hud{top:3px;left:3%;max-width:45%}#club-hud img{width:52px;height:52px}#club-hud span{font-size:17px}.scoreboard .score-caption{font-size:19px}}
@media(max-width:1000px) and (min-width:651px){.club-match .quick-actions{left:2.6%;top:112px}#club-hud{top:42px}.game-header #combo{left:calc(50% + 27vw + 8px);width:90px}.heat-goal{font-size:10px}}
@media(max-width:650px){.game-header{height:278px}main{height:calc(100dvh - 278px)}.game-header #combo{top:235px}.scoreboard{grid-template-columns:minmax(0,1fr) 66px 66px}}
