@font-face{font-family:GeistPixelSquare;src:url('assets/fonts/geist-pixel-square.woff2') format('woff2');font-display:swap;font-weight:100 900}
:root{color-scheme:light;--bg:#acbaeb;--panel:#fffefb;--ink:#3550bb;--muted:#6275b7;--line:#d2daf6;--accent:#3550bb;--blue:#3550bb;--pale:#e8edff;--pixel:GeistPixelSquare,'Courier New',monospace;font-family:var(--pixel);font-size:16px;font-synthesis:none}
*{box-sizing:border-box}body{margin:0;background:var(--bg) url('assets/memelord-background.webp') center top/cover fixed no-repeat;color:var(--ink);min-width:320px}button,select{font:inherit}button{cursor:pointer;color:inherit}button:disabled{cursor:wait;opacity:.5}button:focus-visible,select:focus-visible,a:focus-visible,canvas:focus-visible{outline:3px solid #3550bb;outline-offset:4px}a{color:inherit}button,select{-webkit-tap-highlight-color:transparent}button svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8}[hidden],.screen[hidden]{display:none!important}
.shell{max-width:1480px;margin:auto;padding:12px 18px 20px}.brandbar{position:relative;height:65px;display:flex;align-items:center;justify-content:space-between;padding:8px 17px;background:#fffefb;border:0;border-radius:20px;gap:18px}.brand-home{display:block;height:48px;width:44px}.brand-home img{height:48px;width:44px;object-fit:contain;image-rendering:pixelated}.wordmark{position:absolute;left:50%;transform:translateX(-50%);text-decoration:none;font:500 25px var(--pixel);letter-spacing:-.8px;color:var(--ink);white-space:nowrap}.top-right{display:flex;gap:9px;align-items:center}.edition{color:var(--muted);font-size:12px;margin-right:7px}.icon-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:var(--pale);border:0;border-radius:999px;width:40px;height:36px;font-size:16px}.icon-btn:hover{background:#d9e2ff}
.masthead{display:flex;justify-content:space-between;align-items:flex-end;padding:26px 20px 22px;gap:24px}.eyebrow{color:var(--ink);font-size:12px;letter-spacing:1px;font-weight:500;margin-bottom:9px}.masthead h1{font:500 clamp(34px,3.65vw,53px)/1.1 var(--pixel);letter-spacing:-1.6px;color:#fffefb;-webkit-text-stroke:1px #3550bb;text-shadow:2px 0 #3550bb,-2px 0 #3550bb,0 2px #3550bb,0 -2px #3550bb,3px 4px #3550bb;margin:0}.masthead h1 span{color:#fffefb}.chapter{display:flex;gap:10px;align-items:center;color:#3550bb;font-size:12px;line-height:1.6}.chapter b{font-size:23px;font-weight:500}.selection{display:grid;grid-template-columns:minmax(240px,.78fr) minmax(0,2fr);gap:12px;min-height:422px}.specimen{position:relative;overflow:hidden;background:#fffefb;border:0;border-radius:20px;padding:22px 25px;display:flex;flex-direction:column;justify-content:flex-end;min-height:422px}.specimen-number{position:absolute;top:20px;left:23px;font-size:12px;color:var(--muted)}.specimen-type{position:absolute;top:20px;right:23px;font-size:12px;color:var(--muted)}.specimen-art{position:absolute;inset:53px 15px 115px;display:grid;place-items:center;background:linear-gradient(180deg,#e8edff00,#e8edff88);border-radius:50%}.specimen-art:after{content:'';position:absolute;bottom:3px;left:25%;right:25%;height:7px;background:#3550bb15;border-radius:50%;z-index:0}.fighter-image{position:relative;z-index:1;width:100%;height:100%;object-fit:contain;image-rendering:pixelated;transform-origin:50% 90%;animation:idle 2.5s steps(4,end) infinite}.specimen-name{position:relative;z-index:3;font:500 30px/1.05 var(--pixel);letter-spacing:-.8px;margin:11px 0 9px;max-width:100%;text-wrap:balance}.specimen-tag{z-index:3;font-size:11px;line-height:1.6;letter-spacing:.2px;color:var(--muted)}.roster-panel{background:#fffefb;border-radius:20px;padding:23px 24px 20px;display:flex;flex-direction:column;justify-content:space-between;gap:18px}.section-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.section-title h2{font-size:15px;letter-spacing:.3px;font-weight:500;margin:0}.section-title span{font-size:12px;color:var(--muted)}.roster{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px}.fighter-card{position:relative;min-width:0;border:2px solid transparent;border-radius:12px;background:#eef1ff;padding:0;text-align:center;transition:background .15s,border-color .15s,transform .15s;overflow:hidden}.fighter-card:hover{transform:translateY(-3px);background:#e0e7ff;border-color:#a8b8f0}.fighter-card[aria-pressed=true]{background:#dce4ff;border:2px solid #3550bb;box-shadow:0 3px 0 #3550bb}.portrait{display:block;height:102px;overflow:hidden;position:relative}.portrait canvas{width:100%;height:100%;object-fit:contain;image-rendering:pixelated}.card-name{display:block;font:500 12px/1.3 var(--pixel);padding:8px 3px;background:#e6ebff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.fighter-card[aria-pressed=true] .card-name{background:#3550bb;color:#fff}.player-flag{position:absolute;top:5px;left:5px;font-size:10px;background:#3550bb;color:#fff;padding:3px 5px;border-radius:4px;z-index:2;font-weight:500}.move-info{border-top:1px solid #e1e6f8;padding-top:16px;display:flex;align-items:center;gap:13px;min-height:62px}.move-icon{background:var(--pale);border:0;border-radius:50%;width:40px;height:40px;display:grid;place-items:center;color:var(--ink);font-weight:500;font-size:23px;flex-shrink:0}.move-label{font-size:11px;color:var(--muted);letter-spacing:.5px;margin-bottom:5px}.move-name{font-size:15px;color:var(--ink);font-weight:500}.move-description{font-size:12px;line-height:1.6;color:var(--muted);max-width:270px;margin-left:auto}.setup-bottom{display:grid;grid-template-columns:minmax(0,2fr) minmax(270px,.9fr);gap:12px;padding-top:12px}.setup-bottom>div{background:#fffefb;border-radius:20px;padding:19px 23px 20px}.stage-list{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}.stage-card{height:96px;position:relative;overflow:hidden;background:#c3d4f4;border:2px solid transparent;border-radius:12px;text-align:left;padding:0;isolation:isolate}.stage-bg{position:absolute;inset:0;background-size:cover;background-position:center;z-index:-2;image-rendering:pixelated;transition:transform .3s}.stage-card:after{content:'';position:absolute;inset:0;background:linear-gradient(transparent 20%,#101626dc 100%);z-index:-1}.stage-card:hover .stage-bg{transform:scale(1.06)}.stage-card[aria-pressed=true]{border:2px solid #3550bb;box-shadow:0 3px 0 #3550bb}.stage-name{position:absolute;bottom:9px;left:8px;right:3px;font:500 12px/1.2 var(--pixel);color:#fffefb;text-shadow:0 1px 2px #000}.stage-no{position:absolute;top:7px;left:8px;font-size:10px;color:#233fa8;background:#fffefbde;padding:2px 4px;border-radius:3px}.stage-check{position:absolute;top:4px;right:6px;color:#3550bb;font-size:17px;background:#fffefb;border-radius:50%;width:22px;height:22px;text-align:center}.launch-panel{display:flex;flex-direction:column;justify-content:space-between;gap:15px}.difficulty{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:var(--muted);gap:10px}.difficulty select{font:500 12px var(--pixel);background:#e8edff;border:0;border-radius:999px;color:var(--ink);padding:11px 28px 11px 13px;max-width:100%}.fight-button{width:100%;display:flex;align-items:center;justify-content:space-between;gap:15px;border:0;border-radius:999px;padding:17px 23px;background:#3550bb;color:#fffefb;box-shadow:none;font:500 20px/1.2 var(--pixel);letter-spacing:-.5px;transition:background .15s,transform .15s}.fight-button:hover{background:#2844aa;transform:translateY(-1px)}.fight-button:active{transform:translateY(1px)}.fight-button span{font:500 11px var(--pixel);letter-spacing:0;white-space:nowrap}.controls-strip{display:flex;justify-content:space-between;gap:15px;align-items:center;background:#fffefbea;border:0;border-radius:20px;margin-top:12px;padding:15px 20px;color:var(--muted);font-size:12px}.keys{display:flex;flex-wrap:wrap;gap:12px}.keys span{display:flex;align-items:center;gap:5px}kbd{font:500 12px var(--pixel);background:#e8edff;border:1px solid #ced8fc;border-bottom-width:2px;padding:3px 5px;color:#3550bb;border-radius:5px}.footer-joke{font-size:10px;color:var(--muted);max-width:210px;line-height:1.5;text-align:right}
.battle-heading{display:flex;align-items:center;justify-content:space-between;padding:13px 20px;margin:12px 0;background:#fffefb;border-radius:18px;gap:12px}.battle-heading span{font-size:12px;letter-spacing:.3px;color:var(--muted);text-align:center}.text-btn{border:0;background:#e8edff;border-radius:999px;color:var(--ink);font:500 12px var(--pixel);padding:10px 16px;white-space:nowrap}.arena-wrap{position:relative;background:#adbeed;border:5px solid #fffefb;border-radius:20px;aspect-ratio:16/9;overflow:hidden}.arena-wrap canvas#arena{width:100%;height:100%;display:block;image-rendering:pixelated;outline-offset:-4px}.battle-hud{position:absolute;inset:18px 22px auto;display:grid;grid-template-columns:1fr 88px 1fr;gap:16px;pointer-events:none}.health-name{display:flex;align-items:center;gap:9px;margin-bottom:8px;font:500 20px var(--pixel);color:#fff;text-shadow:2px 2px #3550bb,-1px -1px #3550bb}.health-name .badge{background:#fffefb;color:#3550bb;padding:4px 6px;border-radius:5px;font:500 10px var(--pixel);text-shadow:none}.enemy-hud .health-name{justify-content:flex-end}.enemy-hud .badge{background:#3550bb;color:#fff}.health-track{height:22px;background:#e8edffa8;border:2px solid #fffefb;box-shadow:0 2px 0 #3550bb77;border-radius:7px;overflow:hidden}.health-fill{height:100%;background:#3550bb;transition:width .09s}.enemy-hud .health-fill{background:#8498e1;margin-left:auto}.special-track{margin-top:8px;height:7px;background:#e8edff8c;border:1px solid #fffefb;border-radius:99px;width:65%;overflow:hidden}.special-fill{height:100%;background:#3550bb}.special-label{font-size:10px;color:#fff;margin-top:6px;text-shadow:1px 1px #3550bb,-1px -1px #3550bb}.enemy-hud .special-track{margin-left:auto}.enemy-hud .special-label{text-align:right}.round-pips{display:flex;gap:7px;margin-top:8px}.round-pips i{width:10px;height:10px;display:block;border:1px solid #fffefb;border-radius:2px;background:#e8edff66}.round-pips i.won{background:#3550bb}.enemy-hud .round-pips{justify-content:flex-end}.timer{text-align:center;font:500 49px/1 var(--pixel);color:#fff;text-shadow:2px 2px #3550bb,-2px -2px #3550bb}.timer small{display:block;font:500 10px var(--pixel);letter-spacing:.5px;margin-top:10px;color:#fff}.overlay{position:absolute;inset:0;display:grid;place-items:center;background:#6e88cd70;backdrop-filter:blur(4px);padding:20px}.overlay-card{width:min(470px,100%);background:#fffefb;border:0;border-radius:24px;box-shadow:0 8px 32px #3550bb25;padding:31px;text-align:center}.overlay-card h2{font:500 37px/1.15 var(--pixel);letter-spacing:-1px;margin:14px 0 20px;text-transform:uppercase}.overlay-card p{color:var(--muted);font-size:14px;line-height:1.7}.overlay-card button{margin-top:15px}.overlay-card .secondary-button{background:var(--pale);border:0;border-radius:999px;width:100%;padding:13px;font:500 14px var(--pixel)}.overlay-card .fight-button{font-size:17px;justify-content:center}.battle-bottom{display:flex;justify-content:space-between;gap:20px;padding:15px 20px;background:#fffefb;border-radius:20px;margin-top:12px}.battle-tip{font-size:12px;color:var(--muted);max-width:320px;line-height:1.5}.touch-controls{display:none;justify-content:space-between;gap:16px;padding:14px 10px 0;touch-action:none;user-select:none}.touch-move,.touch-attacks{display:grid;grid-template-columns:repeat(3,48px);gap:6px}.touch-controls button{border:2px solid #fffefb;background:#e8edff;height:46px;border-radius:12px;font-size:15px;touch-action:none}.touch-controls button:active,.touch-controls button.active{background:#bacafa}.touch-attacks button{background:#3550bb;border-color:#fffefb;color:#fff;font-size:11px}.touch-attacks{grid-template-columns:repeat(3,56px)}.touch-jump{grid-column:2}.touch-left{grid-column:1}.touch-block{grid-column:2}.howto{border:0;border-radius:24px;background:#fffefb;color:var(--ink);width:min(660px,calc(100% - 30px));padding:30px}.howto::backdrop{background:#3550bb70;backdrop-filter:blur(5px)}.howto h2{font:500 28px/1.3 var(--pixel);margin:0 0 15px}.howto p,.howto li{font-size:14px;color:var(--muted);line-height:1.8}.howto li{margin-bottom:8px}.howto .close{float:right}.sound-notice{font-size:11px;color:var(--muted)}
@keyframes idle{0%,100%{transform:translateY(0)}50%{transform:translateY(-4px)}}
@media(min-width:1500px){.specimen{min-height:475px}.portrait{height:125px}}
@media(max-width:1100px){.shell{padding:12px}.selection{grid-template-columns:245px 1fr}.roster-panel{padding:22px 16px}.portrait{height:94px}.specimen{padding:22px 20px;min-height:410px}.specimen-name{font-size:27px}.move-description{display:none}.setup-bottom{grid-template-columns:minmax(0,1.8fr) minmax(240px,1fr)}.setup-bottom>div{padding:17px}.difficulty{flex-wrap:wrap;gap:8px}.difficulty select{width:100%;font-size:12px}.fight-button{font-size:17px;padding:16px}.fight-button span{font-size:10px}.footer-joke{display:none}.edition{display:none}.battle-hud{inset:14px 16px auto;gap:12px;grid-template-columns:1fr 65px 1fr}.health-name{font-size:17px}.timer{font-size:39px}.special-label{font-size:9px}.masthead{padding-left:12px;padding-right:12px}.chapter{font-size:11px}}
@media(max-width:760px){.shell{padding:8px 10px 16px}.brandbar{height:59px;padding:8px 12px;border-radius:18px}.brand-home,.brand-home img{height:42px;width:37px}.wordmark{font-size:21px}.icon-btn{width:33px;height:33px}.top-right{gap:6px}.masthead{padding:22px 9px 21px}.masthead h1{font-size:34px;letter-spacing:-1px;max-width:100%}.eyebrow{font-size:10px;letter-spacing:.3px}.chapter{display:none}.selection{grid-template-columns:1fr}.specimen{min-height:187px;padding:46px 20px 22px}.specimen-art{inset:28px 13px 3px 56%;border-radius:20px}.specimen-name{font-size:27px;max-width:57%;margin-top:12px}.specimen-tag{font-size:10px;max-width:57%}.specimen-type{top:17px;right:20px;font-size:11px}.specimen-number{top:17px;left:20px;font-size:11px}.roster-panel{padding:18px 13px;gap:17px}.portrait{height:90px}.card-name{font-size:10px;padding:8px 1px;letter-spacing:-.3px}.roster{gap:7px}.move-info{gap:12px;padding-top:13px}.move-name{font-size:14px}.section-title h2{font-size:14px}.section-title span{font-size:11px}.setup-bottom{grid-template-columns:1fr;gap:12px}.setup-bottom>div{padding:18px 16px}.stage-card{height:105px}.stage-name{font-size:12px;left:8px}.controls-strip{align-items:flex-start;margin-top:12px;padding:15px}.keys{gap:9px;font-size:11px}.launch-panel{gap:13px}.difficulty{flex-wrap:nowrap;font-size:11px}.difficulty select{width:auto;max-width:70%;font-size:11px}.fight-button{font-size:20px;padding:17px}.fight-button span{font-size:11px}.battle-hud{inset:9px 9px auto;grid-template-columns:1fr 45px 1fr;gap:7px}.health-name{font-size:12px;gap:5px;margin-bottom:5px}.health-name .badge{font-size:8px;padding:3px 4px}.health-track{height:13px;border-radius:4px}.timer{font-size:27px}.timer small{font-size:8px;margin-top:5px;letter-spacing:0}.special-track{height:5px;margin-top:5px}.special-label{display:none}.round-pips{gap:5px;margin-top:5px}.round-pips i{width:6px;height:6px}.touch-controls{display:flex}.battle-bottom{flex-wrap:wrap;padding:13px}.battle-tip{font-size:11px}.overlay-card{padding:16px;max-width:340px;border-radius:17px}.overlay-card h2{font-size:26px;margin:7px 0 12px}.overlay-card p{font-size:11px;margin:5px}.overlay-card .eyebrow{font-size:9px}.overlay-card button{margin-top:8px}.overlay-card .fight-button{padding:12px;font-size:14px}.overlay-card .secondary-button{padding:10px;font-size:12px}.battle-heading{padding:10px;gap:7px;border-radius:14px}.battle-heading span{font-size:9px}.text-btn{font-size:10px;padding:9px}.arena-wrap{border-width:3px;min-height:220px;border-radius:14px}.sound-notice{display:none}}
@media(max-width:390px){.masthead h1{font-size:29px}.wordmark{font-size:19px}.portrait{height:78px}.card-name{font-size:9px}.roster{gap:5px}.stage-name{font-size:11px}.fight-button{font-size:18px}.fight-button span{font-size:10px}.specimen-name{font-size:25px}.health-name{font-size:10px}}
@media(pointer:coarse){.touch-controls{display:flex}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}

.arena-caption{display:flex;flex-direction:column;gap:8px;font-size:10px;line-height:1.5;color:var(--muted)}.arena-caption strong{font-weight:500;font-size:20px;line-height:1.2;color:var(--ink)}.arena-caption .move-label{margin:0}.launch-panel .difficulty{flex-wrap:wrap}.launch-panel .difficulty select{width:100%}.stage-card{min-height:96px}.fighter-card .portrait{background:radial-gradient(ellipse at center,var(--fighter-color),#eef1ff 85%)}
@media(max-width:1100px) and (min-width:761px){.stage-name{font-size:10px}.stage-card{height:103px}.launch-panel .fight-button{flex-wrap:wrap;gap:7px}}
@media(max-width:760px){.stage-list{grid-template-columns:repeat(6,minmax(0,1fr));gap:7px}.stage-card{height:92px;min-height:92px}.stage-name{font-size:10px;left:5px;bottom:7px}.arena-caption{display:none}.launch-panel .difficulty{flex-wrap:nowrap}.launch-panel .difficulty select{width:auto}}
@media(max-width:480px){.stage-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.stage-card{height:86px;min-height:86px}.stage-name{font-size:12px}.stage-bg{background-position:center 55%}}

.selection-switch{display:flex;gap:6px;margin-bottom:10px;flex-wrap:wrap}.selection-switch button{border:1px solid var(--line);background:var(--pale);border-radius:99px;padding:9px 12px;font-size:12px}.selection-switch button[aria-pressed=true]{color:white;background:var(--ink);border-color:var(--ink)}.selection-switch #pick-cpu[aria-pressed=true]{background:#ba515e;border-color:#ba515e}.selection-switch #random-cpu{margin-left:auto;font-size:11px}.matchup-strip{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 3px 14px;font-size:12px;line-height:1.5}.matchup-strip b{background:var(--ink);color:#fff;border-radius:4px;padding:3px 4px;margin-right:4px;font-size:10px;font-weight:500}.matchup-strip strong{font-size:13px;font-weight:500;color:var(--muted)}.matchup-strip .cpu-choice{text-align:right}.matchup-strip .cpu-choice b{background:#ba515e}.cpu-flag{position:absolute;top:5px;right:5px;font-size:10px;color:#fff;background:#ba515e;padding:3px 4px;z-index:2;border-radius:4px}.fighter-card.picking-cpu[aria-pressed=true]{border-color:#ba515e;box-shadow:0 3px 0 #ba515e}.fighter-card.picking-cpu[aria-pressed=true] .card-name{background:#ba515e}.random-specimen{position:absolute;inset:65px 0 110px;display:grid;place-items:center;font-size:180px;color:#b4c2ee}.roster-panel{gap:14px}.selection .specimen{min-height:480px}
@media(max-width:760px){.selection .specimen{min-height:187px}.selection-switch button{font-size:11px;padding:8px 9px}.selection-switch #random-cpu{font-size:10px;padding:8px}.matchup-strip{font-size:11px;padding-bottom:10px}.random-specimen{inset:40px 0 10px 55%;font-size:105px}.player-flag,.cpu-flag{font-size:8px;padding:3px;top:3px}.player-flag{left:2px}.cpu-flag{right:2px}}

@media(max-width:1100px) and (min-width:761px){.roster{grid-template-columns:repeat(4,minmax(0,1fr))}.stage-list{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:760px){.roster{grid-template-columns:repeat(4,minmax(0,1fr))}.stage-list{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:390px){.roster{grid-template-columns:repeat(3,minmax(0,1fr))}.stage-list{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Sequential arcade setup: future steps are labels, never competing controls. */
.selection-steps{display:flex;gap:8px;list-style:none;margin:0 0 12px;padding:0}.selection-steps li{flex:1;border:1px solid #ffffff88;background:#ffffff40;border-radius:12px;padding:12px 16px;font-size:12px;color:#4c609f;display:flex;align-items:center;gap:10px}.selection-steps b{font-weight:500;opacity:.6}.selection-steps li[aria-current]{color:#fff;background:#3550bb;border-color:#3550bb}.selection-steps li.done{background:#fffefb;color:#3550bb}.selection-steps li.done b:after{content:' ✓'}.selection-steps #step-cpu[aria-current]{background:#ba515e;border-color:#ba515e}
.matchup-strip{background:#fffefb;border-radius:16px;padding:10px 20px;margin-bottom:12px}.matchup-slot{display:flex;align-items:center;gap:12px;min-width:0;flex:1}.matchup-slot canvas{width:62px;height:62px;object-fit:contain;image-rendering:pixelated;background:#e8edff;border-radius:10px;flex-shrink:0}.matchup-slot>div{display:flex;flex-direction:column;gap:5px}.matchup-label{font-size:10px;color:#6275b7;letter-spacing:.5px}.matchup-strip .matchup-slot strong{font-size:19px;color:#3550bb}.matchup-strip .cpu-choice{justify-content:flex-end}.matchup-strip .cpu-choice .matchup-label,.matchup-strip .cpu-choice strong{color:#ba515e}.matchup-vs{font-size:27px;font-style:italic;padding:0 30px;opacity:.6}.matchup-unknown{display:grid;place-items:center;width:62px;height:62px;border-radius:10px;background:#eef1ff;font-size:36px;color:#a2b1e1}
.selection-actions{display:flex;flex-wrap:wrap;gap:9px;align-items:center}.selection-actions .fight-button{flex:1 0 100%;font-size:18px}.selection-actions #random-cpu{margin-left:auto}.selection-actions #random-cpu[aria-pressed=true]{background:#ba515e;color:#fff}.selection-help{margin:0;color:var(--muted);font-size:11px;line-height:1.5}.selection-actions button:disabled{cursor:default}.selection .specimen{min-height:440px}[data-step=cpu] #confirm-selection{background:#ba515e}[data-step=cpu] .specimen{box-shadow:inset 0 0 0 2px #ba515e44}
#arena-selection{padding-top:0}#arena-selection .stage-card{height:128px}#arena-selection .stage-list{grid-template-columns:repeat(4,minmax(0,1fr))}#arena-selection .arena-caption{display:flex}#arena-back{align-self:flex-start}.arena-music{border-top:1px solid var(--line);padding-top:13px;margin-top:4px;display:flex;flex-direction:column;gap:6px}.arena-music>span{font-size:13px;color:var(--ink)}.arena-music small{font-size:11px;line-height:1.5}.selection-steps li[aria-current],.roster-panel,.specimen{animation:select-arrive .2s ease-out}@keyframes select-arrive{from{opacity:.75;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:1100px){.selection .specimen{min-height:480px}.selection-actions .fight-button{font-size:15px}.matchup-strip .matchup-slot strong{font-size:16px}#arena-selection .stage-list{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:760px){.selection-steps{gap:5px}.selection-steps li{font-size:9px;padding:10px 7px;gap:5px;border-radius:9px}.matchup-strip{padding:8px 10px;gap:5px}.matchup-slot{gap:7px}.matchup-slot canvas,.matchup-unknown{width:42px;height:48px}.matchup-slot>div{gap:3px}.matchup-label{font-size:8px}.matchup-strip .matchup-slot strong{font-size:13px}.matchup-vs{font-size:18px;padding:0 5px}.selection .specimen{min-height:187px}.selection-actions .fight-button{font-size:16px}.selection-help{font-size:10px}#arena-selection .stage-card{height:103px}.arena-music{margin-top:0;padding-top:10px}.arena-caption strong{font-size:18px}#arena-selection .launch-panel{gap:12px}}
@media(max-width:390px){.selection-steps li{font-size:8px}.matchup-strip .matchup-slot strong{font-size:11px}.matchup-slot canvas,.matchup-unknown{width:32px;height:42px}#arena-selection .stage-list{grid-template-columns:repeat(2,minmax(0,1fr))}.selection-actions .fight-button{font-size:14px}}

@media(max-width:760px) and (min-width:391px){#arena-selection .stage-list{grid-template-columns:repeat(3,minmax(0,1fr))}}

.roster{grid-template-columns:repeat(8,minmax(0,1fr))}
@media(max-width:1100px){.roster{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:760px){.roster{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:390px){.roster{grid-template-columns:repeat(4,minmax(0,1fr))}.portrait{height:76px}}

/* Held controls must stay game input, including Safari's long-press gestures. */
.touch-controls,.touch-controls *{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.touch-jump{grid-column:2;grid-row:1}.touch-block{grid-column:3;grid-row:1}.touch-left{grid-column:1;grid-row:2}.touch-crouch{grid-column:2;grid-row:2}.touch-move [data-key="ArrowRight"]{grid-column:3;grid-row:2}.touch-attacks [data-key="KeyL"]{font-size:10px;line-height:1.35}

/* Full-body face-off: player and CPU stay visible through all three setup steps. */
.masthead{padding:18px 12px 16px}.masthead h1{font-size:36px}.masthead .eyebrow{font-size:11px;margin-bottom:5px}
.selection-steps{margin-bottom:10px}.selection-steps li{padding:10px 16px}
.vs-board{position:relative;display:grid;grid-template-columns:1fr 1fr;border:3px solid #fffefb;border-radius:20px;overflow:hidden;isolation:isolate;margin-bottom:12px;background:#fffefb;min-height:310px}
.vs-side{position:relative;min-width:0;min-height:310px;overflow:hidden;background:linear-gradient(115deg,#eef2ff 8%,#c9d6ff 85%)}
.vs-cpu{background:linear-gradient(245deg,#fff1f0 8%,#e6bdc5 85%)}
.vs-side:before{content:'';position:absolute;inset:0;background:repeating-linear-gradient(115deg,transparent 0 52px,#ffffff36 53px 55px,transparent 56px 109px);pointer-events:none}
.vs-side:after{content:'';position:absolute;inset:0;box-shadow:inset 0 -65px 65px -65px #3550bb50;pointer-events:none}
.vs-cpu:after{box-shadow:inset 0 -65px 65px -65px #a3435650}
.vs-side-label{position:absolute;z-index:3;top:19px;left:22px;right:22px;display:flex;justify-content:space-between;gap:10px;font-size:12px;color:#3550bb}
.vs-cpu .vs-side-label{flex-direction:row-reverse;color:#94364b}.vs-side-label>span:first-child{font-size:16px}.is-locked .vs-side-label>span:last-child{font-weight:700}
.vs-figure{position:absolute;right:-8%;bottom:0;width:82%;height:95%;display:grid;place-items:center}
.vs-cpu .vs-figure{left:-8%;right:auto}
.vs-fighter{width:100%;height:100%;object-fit:contain;image-rendering:pixelated;animation:vs-idle 2.4s ease-in-out infinite;transform-origin:50% 92%}
.vs-cpu .vs-fighter{animation-delay:-1.2s}.vs-identity{position:absolute;z-index:3;left:22px;bottom:25px;max-width:43%;pointer-events:none}
.vs-cpu .vs-identity{left:auto;right:22px;text-align:right;color:#94364b}
.vs-identity h2{font-size:clamp(23px,2.6vw,37px);line-height:1.04;font-weight:500;text-transform:uppercase;margin:0 0 9px;text-wrap:balance;letter-spacing:-.8px;text-shadow:1px 1px #fff}
.vs-identity p{font-size:11px;line-height:1.4;margin:0;color:#526aaa}.vs-cpu .vs-identity p{color:#99465c}
.vs-unknown{font-size:195px;line-height:1;color:#a9678159}
.is-empty .vs-identity{max-width:65%}.vs-divider{position:absolute;z-index:4;left:50%;top:0;bottom:0;width:74px;transform:translateX(-50%);display:grid;place-items:center;background:linear-gradient(105deg,transparent 42%,#fffefb 43% 49%,#3550bb 50% 53%,transparent 54%);pointer-events:none}
.vs-divider span{font:italic 700 60px/1 var(--pixel);color:#fffefb;letter-spacing:-4px;text-shadow:3px 4px #3550bb,-2px -2px #3550bb,2px -2px #3550bb,-2px 2px #3550bb;transform:rotate(-8deg)}
#fighter-selection{display:block;min-height:0}.roster-panel{padding:18px 22px;gap:13px}.roster{grid-template-columns:repeat(8,minmax(0,1fr));gap:8px}.portrait{height:86px}.card-name{font-size:12px;padding:6px 3px}.section-title{margin-bottom:11px}
.move-info{padding-top:12px;min-height:47px}.move-description{display:block;max-width:42%}.selection-actions{display:grid;grid-template-columns:auto auto 1fr;align-items:center}.selection-actions .fight-button{grid-column:3;max-width:510px;justify-self:end;font-size:17px;padding:14px 20px}.selection-actions #random-cpu{margin:0}.selection-help{font-size:12px}
[data-step=player] .selection-actions .fight-button{grid-column:1/-1;justify-self:center;width:min(510px,100%)}
[data-step=arena] .vs-board{min-height:250px}[data-step=arena] .vs-side{min-height:250px}[data-step=arena] .vs-identity h2{font-size:29px}
@keyframes vs-idle{0%,100%{transform:translateY(0)}50%{transform:translateY(-3px)}}
@media(max-width:1000px){.vs-board,.vs-side{min-height:290px}.vs-figure{width:85%;right:-16%}.vs-cpu .vs-figure{left:-16%}.vs-identity{max-width:45%;left:16px}.vs-cpu .vs-identity{right:16px}.vs-identity h2{font-size:26px}.vs-side-label{left:16px;right:16px;font-size:10px}.portrait{height:74px}.card-name{font-size:11px}.vs-divider span{font-size:52px}.move-description{max-width:38%}.selection-actions .fight-button{font-size:15px}}
@media(max-width:760px){.masthead h1{font-size:29px}.masthead{padding:16px 7px}.vs-board,.vs-side{min-height:250px}.vs-side-label{left:12px;right:12px;top:12px;font-size:9px;gap:4px}.vs-side-label>span:first-child{font-size:12px}.vs-figure{width:115%;right:-17%;bottom:48px;height:77%}.vs-cpu .vs-figure{left:-17%;right:auto}.vs-identity,.vs-cpu .vs-identity{left:12px;right:12px;bottom:12px;max-width:none;text-align:left}.vs-cpu .vs-identity{text-align:right}.vs-identity h2{font-size:20px;line-height:1.05;margin-bottom:5px}.vs-identity p{font-size:9px}.vs-unknown{font-size:135px}.vs-divider span{font-size:43px}.vs-divider{width:40px}.roster-panel{padding:15px 12px}.roster{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.portrait{height:72px}.card-name{font-size:11px}.move-description{display:none}.section-title span{display:none}.selection-actions{grid-template-columns:1fr 1fr;gap:8px}.selection-actions .fight-button{grid-column:1/-1;max-width:none;font-size:16px}.selection-actions #random-cpu{justify-self:end}.selection-help{font-size:11px}.selection-actions .text-btn{font-size:11px;padding:10px}.vs-identity h2,[data-step=arena] .vs-identity h2{font-size:20px}[data-step=arena] .vs-board,[data-step=arena] .vs-side{min-height:220px}.touch-move{grid-template-columns:repeat(3,42px)}.touch-attacks{grid-template-columns:repeat(3,48px)}.touch-controls{gap:10px;padding-left:0;padding-right:0}}
@media(max-width:390px){.vs-side-label{font-size:8px;left:9px;right:9px}.vs-identity h2,[data-step=arena] .vs-identity h2{font-size:17px}.vs-identity,.vs-cpu .vs-identity{left:9px;right:9px}.vs-identity p{font-size:8px}.card-name{font-size:10px}.portrait{height:67px}.selection-steps li{font-size:8px}.touch-move{grid-template-columns:repeat(3,39px)}.touch-attacks{grid-template-columns:repeat(3,43px)}}

@media(min-width:761px){.vs-player .vs-side-label>span:last-child{margin-right:18px}.vs-cpu .vs-side-label>span:last-child{margin-left:18px}}

/* Nyan floats in a horizontal frame; the cat and rainbow stay inside its VS side. */
.vs-figure-wide{display:block;right:6%;bottom:15%;width:60%;height:70%}
.vs-cpu .vs-figure-wide{left:6%;right:auto}
.vs-figure-wide .vs-fighter{min-width:0;min-height:0;transform-origin:50% 50%}
@media(max-width:760px){.vs-figure-wide{right:8%;bottom:60px;width:84%;height:65%}.vs-cpu .vs-figure-wide{left:8%;right:auto}}

/* The arcade title uses the existing Memelord background, pixel font and character atlas. */
.title-screen{padding-top:8px;min-height:calc(100svh - 105px);display:flex;flex-direction:column;align-items:center;overflow:hidden}
.title-art{position:relative;isolation:isolate;width:100%;height:clamp(430px,63svh,660px);max-width:1300px;flex-shrink:0}
.title-halo{position:absolute;inset:5% 6% -2%;background:radial-gradient(ellipse at 50% 69%,#fffefbe3 0%,#eff2ff65 36%,#d5e0ff00 67%);z-index:-1}
.title-heading{position:relative;z-index:4;text-align:center;padding-top:22px;pointer-events:none}
.title-heading p{font-size:13px;letter-spacing:3px;margin:0 0 8px;color:#2448a4}
#game-title{font-family:var(--pixel);font-weight:500;line-height:.93;letter-spacing:-3px;margin:0;color:#fffefb;text-shadow:3px 0 #3550bb,-3px 0 #3550bb,0 3px #3550bb,0 -3px #3550bb,6px 7px #3550bb,9px 11px #233b8f44;transform:rotate(-3deg)}
#game-title span{display:block;font-size:clamp(48px,5.3vw,76px);letter-spacing:8px;margin-bottom:7px}
#game-title strong{display:block;font-size:clamp(68px,10.7vw,156px);font-weight:500;letter-spacing:-4px}
.title-cast{position:absolute;inset:41% 0 0;isolation:isolate}
.title-character{position:absolute;bottom:0;width:23%;height:100%;transform-origin:50% 100%;filter:drop-shadow(3px 3px 0 #3550bb30)}
.title-character canvas,.title-nyan canvas{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;image-rendering:pixelated}
.title-jester{left:38.5%;z-index:7;height:104%}.title-pepe{left:25%;z-index:5;height:91%;bottom:0;transform:rotate(-4deg)}.title-harold{right:24%;z-index:5;height:91%;bottom:0;transform:scaleX(-1) rotate(-4deg)}
.title-jason{left:13%;height:92%;z-index:3;bottom:7%}.title-chase{right:12%;height:92%;z-index:3;bottom:7%;transform:scaleX(-1)}.title-chad{left:2%;height:87%;bottom:10%;z-index:1}.title-doge{right:1%;height:84%;bottom:9%;z-index:1;transform:scaleX(-1)}
.title-nyan{position:absolute;left:4%;top:18%;width:16%;height:20%;transform:rotate(-10deg);animation:title-float 3.4s ease-in-out infinite;z-index:2}
.title-menu{position:relative;z-index:8;width:min(450px,90%);background:#fffefb;border:3px solid #fffefb;border-radius:24px;padding:9px 10px 12px;margin-top:-5px;box-shadow:0 5px 0 #3550bb35}
.title-start{display:flex;align-items:center;justify-content:space-between;width:100%;border:0;border-radius:16px;background:#3550bb;color:#fffefb;font:500 26px var(--pixel);padding:18px 24px;transition:background .15s,transform .15s}
.title-start:hover{background:#2440a2;transform:translateY(-2px)}.title-start:active{transform:translateY(1px)}.title-start span{font-size:29px}
.title-options{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 8px 0;font-size:11px;color:#6b7cbb}.title-howto{border:0;background:none;padding:4px 0;font:500 12px var(--pixel);color:#3550bb;text-decoration:underline;text-underline-offset:4px}.title-foot{display:flex;align-items:center;gap:15px;margin:20px 0;font-size:12px;color:#294398}.title-foot i{font-style:normal;font-size:16px}
.title-return{display:block;background:none;border:0;padding:0;margin:0 0 8px;color:#3550bb;font:500 11px var(--pixel)}.title-return:hover{text-decoration:underline}
@keyframes title-float{0%,100%{transform:translateY(0) rotate(-10deg)}50%{transform:translateY(-8px) rotate(-7deg)}}
@media(max-width:900px){.title-art{height:clamp(400px,58svh,570px)}.title-cast{inset:38% -4% 0}.title-heading{padding-top:20px}.title-heading p{font-size:11px;letter-spacing:2px}#game-title strong{font-size:12vw}.title-nyan{left:1%;top:27%;width:18%}.title-character{width:26%}.title-jester{left:37%}.title-pepe{left:22%}.title-harold{right:21%}.title-jason{left:9%}.title-chase{right:8%}.title-chad{left:-4%}.title-doge{right:-4%}}
@media(max-width:520px){.title-screen{padding-top:3px;min-height:calc(100svh - 89px)}.title-art{height:clamp(350px,54svh,440px)}.title-heading{padding-top:24px}.title-heading p{font-size:10px;letter-spacing:2px;margin-bottom:12px}#game-title span{font-size:45px;letter-spacing:6px;margin-bottom:9px}#game-title strong{font-size:15.8vw;letter-spacing:-2px}#game-title{text-shadow:2px 0 #3550bb,-2px 0 #3550bb,0 2px #3550bb,0 -2px #3550bb,4px 5px #3550bb,6px 8px #233b8f44}
.title-cast{inset:39% -13% 0}.title-character{width:40%}.title-jester{left:30%;height:92%}.title-pepe{left:7%;height:78%;bottom:2%;z-index:5}.title-harold{right:5%;height:78%;bottom:2%;z-index:5}.title-jason{left:0;height:79%;bottom:13%;z-index:3}.title-chase{right:-1%;height:79%;bottom:13%;z-index:3}.title-chad,.title-doge{display:none}.title-nyan{left:0;top:36%;width:23%;height:17%;z-index:4}
.title-menu{width:min(390px,96%);padding:7px 8px 10px;border-radius:21px;margin-top:0}.title-start{padding:17px 20px;font-size:24px}.title-options{font-size:9px;padding-top:11px;gap:8px}.title-howto{font-size:11px}.title-foot{font-size:10px;gap:10px;margin:18px 0}.title-foot i{font-size:13px}}
@media(max-height:650px) and (min-width:761px){.title-art{height:360px}.title-cast{inset:37% 6% 0}.title-heading{padding-top:7px}.title-heading p{font-size:10px;margin-bottom:4px}#game-title span{font-size:40px}#game-title strong{font-size:88px}.title-menu{width:360px}.title-start{font-size:20px;padding:12px 20px}.title-foot{margin:14px 0}}

/* Lock-in is the primary action beside the matchup, and stays within reach while browsing. */
.selection-actions{position:sticky;top:10px;z-index:10;margin:0 0 12px;padding:13px 17px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;align-items:center;border-radius:20px;background:#fffefb;box-shadow:0 5px 18px #3550bb17}
.selection-actions .fight-button{grid-column:auto;width:100%;max-width:none;justify-self:stretch;border-radius:14px;font-size:clamp(21px,2.1vw,29px);padding:19px 25px;margin-bottom:5px;min-height:69px;box-shadow:0 5px 0 #203681}
.selection-actions .fight-button span{font-size:13px}.selection-actions .fight-button:hover{transform:translateY(-2px);box-shadow:0 7px 0 #203681}.selection-actions .fight-button:active{transform:translateY(3px);box-shadow:0 2px 0 #203681}
.selection-tools{display:flex;flex-direction:column;gap:8px}.selection-tools .text-btn{padding:10px 14px}.selection-actions #random-cpu{justify-self:auto}
[data-step=player] .selection-actions{grid-template-columns:1fr}[data-step=player] .selection-actions .fight-button{grid-column:auto;width:100%;max-width:none;justify-self:stretch}[data-step=player] .selection-tools{display:none}
[data-step=cpu] .selection-actions .fight-button{box-shadow:0 5px 0 #782f42}[data-step=cpu] .selection-actions .fight-button:hover{box-shadow:0 7px 0 #782f42}[data-step=cpu] .selection-actions .fight-button:active{box-shadow:0 2px 0 #782f42}
.selection-actions button:disabled{transform:none!important;opacity:.6;cursor:default}
.arena-edit{display:grid;grid-template-columns:1fr 1fr;gap:8px;border-bottom:1px solid var(--line);padding-bottom:14px}.arena-edit>span{grid-column:1/-1;font-size:11px;letter-spacing:.5px;color:var(--muted);margin-bottom:3px}.arena-edit .text-btn{padding:12px 10px;font-size:12px;text-align:center;white-space:normal;align-self:stretch}
@media(max-width:760px){.selection-actions{top:6px;padding:10px;gap:10px;grid-template-columns:1fr;border-radius:17px;margin-bottom:10px}.selection-actions .fight-button{grid-column:auto;font-size:19px;min-height:62px;padding:15px 16px}.selection-actions .fight-button span{font-size:10px}.selection-tools{flex-direction:row;justify-content:space-between;gap:8px}.selection-tools .text-btn{font-size:10px;padding:8px 10px}.arena-edit .text-btn{font-size:12px;padding:12px}.arena-edit>span{font-size:11px}}

/* Full names remain readable on the roster, matchup and battle HUD. */
.card-name{white-space:normal;text-overflow:clip;min-height:41px;display:flex;align-items:center;justify-content:center;line-height:1.2;text-wrap:balance}
.vs-long-name .vs-identity h2{font-size:clamp(23px,2.4vw,35px);line-height:1.05;text-wrap:balance}
.health-name{min-height:42px}.health-name>span:not(.badge){min-width:0;text-wrap:balance;line-height:1.1}.health-name .badge{flex-shrink:0}
@media(max-width:760px){.vs-long-name .vs-identity h2{font-size:18px}.health-name{min-height:30px;gap:4px}.health-name>span:not(.badge){font-size:13px}}
@media(max-width:390px){.vs-long-name .vs-identity h2{font-size:16px}.health-name>span:not(.badge){font-size:10px}.card-name{min-height:37px}}

/* Memelord's primary action: solid blue, white pixel type, a clean pill silhouette. */
#confirm-selection{border:0;border-radius:999px;background:#3550bb;color:#fff;font-weight:600;font-size:clamp(18px,1.75vw,25px);letter-spacing:0;min-height:64px;padding:18px 28px;margin-bottom:0;box-shadow:none}
#confirm-selection:hover:not(:disabled){background:#2844aa;box-shadow:none;transform:translateY(-1px)}
#confirm-selection:active:not(:disabled){box-shadow:none;transform:translateY(1px)}
[data-step=cpu] #confirm-selection{background:#3550bb;box-shadow:none}
[data-step=cpu] #confirm-selection:hover:not(:disabled){background:#2844aa;box-shadow:none}
[data-step=cpu] #confirm-selection:active:not(:disabled){box-shadow:none}
.title-options{justify-content:center}
@media(max-width:760px){#confirm-selection{font-size:17px;line-height:1.2;min-height:62px;padding:16px 22px;gap:12px}#confirm-selection span{font-size:10px}.move-name{overflow-wrap:anywhere}}

/* Compact primary CTA, with selection details outside the button. */
.selection-actions,[data-step=player] .selection-actions{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:20px;padding:18px 22px;min-height:108px;border:1px solid #dce2fa}
.selection-actions #confirm-selection,[data-step=player] .selection-actions #confirm-selection{grid-column:2;grid-row:1;justify-self:center;justify-content:center;gap:24px;width:246px;max-width:100%;min-height:68px;font-size:25px;padding:18px 28px;box-shadow:0 4px 14px #3550bb20}
#confirm-selection span{font-size:25px;line-height:1}
.selection-tools{grid-column:3;grid-row:1;justify-self:end}
.lock-context{grid-column:1;grid-row:1;min-width:0;color:#3550bb;line-height:1.35}.lock-context strong{display:block;font-size:17px;text-wrap:balance}.lock-context small{display:block;margin-top:6px;font-size:11px;color:var(--muted)}
/* First to three: purple wins, dark empty eggplants. */
.eggplant,.round-pips i{display:inline-block;width:auto;height:auto;border:0;border-radius:0;background:none;font:normal 25px/1.2 'Apple Color Emoji','Segoe UI Emoji',sans-serif;filter:grayscale(1) brightness(.43);opacity:.85;vertical-align:middle;text-shadow:none}
.eggplant.won,.round-pips i.won{background:none;filter:none;opacity:1}
.round-pips{gap:8px;min-height:30px;margin-top:7px}.round-progress{display:flex;justify-content:center;gap:0}.timer .round-progress{margin-top:10px}.round-progress .eggplant{font-size:16px}
.special-label.is-ready{color:#e4eaff;text-shadow:0 0 7px #7798ff,1px 1px #3550bb}
.score-separator{display:inline-block;margin:0 12px;vertical-align:middle}
@media(max-width:760px){.selection-actions,[data-step=player] .selection-actions{grid-template-columns:1fr;gap:12px;padding:15px;min-height:0}.lock-context{grid-column:1;grid-row:1;text-align:center}.lock-context strong{font-size:15px}.lock-context small{margin-top:3px}.selection-actions #confirm-selection,[data-step=player] .selection-actions #confirm-selection{grid-column:1;grid-row:2;width:236px;min-height:61px;font-size:23px;padding:15px 26px}.selection-tools{grid-column:1;grid-row:3;justify-self:stretch;justify-content:center}.round-pips{gap:4px;min-height:19px;margin-top:4px}.round-pips i{font-size:17px;width:auto;height:auto}.timer .round-progress{margin-top:7px;flex-wrap:wrap}.round-progress .eggplant{font-size:11px}.special-label{display:block;font-size:7px;line-height:1.2}.special-track{width:85%}}

.vs-figure-heavy{transform:scale(1.12);transform-origin:50% 100%}

/* Power sits between health and round wins; its violet palette stays distinct. */
.special-gauge{width:68%;margin-top:9px;--power-dark:#38205e;--power-light:#e3c5ff}
.enemy-hud .special-gauge{margin-left:auto}
.special-gauge .special-track{position:relative;width:100%;height:13px;margin:0;border:2px solid #e9dfff;border-radius:6px;background:#30224ee6;box-shadow:0 2px 0 #24163899,0 0 0 1px #755eaa66;overflow:hidden}
.special-gauge .special-track:after{content:'';position:absolute;inset:0;pointer-events:none;background:repeating-linear-gradient(90deg,transparent 0 calc(10% - 1px),#30204e99 calc(10% - 1px) 10%)}
.special-gauge .special-fill{position:relative;height:100%;background:linear-gradient(90deg,#7952cf,#b390f3 55%,#c3efff);box-shadow:inset 0 2px 0 #f4e4ff99;transition:width .08s linear;overflow:hidden}
.enemy-hud .special-fill{margin-left:auto;background:linear-gradient(270deg,#7952cf,#b390f3 55%,#c3efff)}
.special-gauge .special-fill:after{content:'';position:absolute;inset:0;background:linear-gradient(110deg,transparent 25%,#fff9 47%,transparent 65%);transform:translateX(-120%)}
.special-gauge .special-label{margin-top:5px;color:#e7d6ff;text-shadow:1px 1px 0 #30204e,-1px -1px 0 #30204e;font-size:10px;line-height:1.25;letter-spacing:.15px}
.special-gauge.is-charging .special-fill:after{animation:power-sweep .85s linear infinite}
.special-gauge.is-ready .special-track{border-color:#faf2ff;box-shadow:0 0 0 1px #a183e6,0 0 12px #a17ef3b3;animation:power-ready 1.6s ease-in-out infinite}
.special-gauge.is-ready .special-fill{background:linear-gradient(90deg,#9867ed,#d0a6ff 55%,#b5eeff)}
.enemy-hud .special-gauge.is-ready .special-fill{background:linear-gradient(270deg,#9867ed,#d0a6ff 55%,#b5eeff)}
.special-gauge.is-ready .special-fill:after{animation:power-sweep 1.6s ease-in-out infinite}
.special-gauge.is-ready .special-label{color:#fff0ff;text-shadow:0 0 8px #b18aff,1px 1px 0 #30204e,-1px -1px 0 #30204e}
.is-paused .special-gauge *, .is-paused .special-gauge :after{animation-play-state:paused!important}
@keyframes power-sweep{0%,15%{transform:translateX(-120%)}85%,100%{transform:translateX(120%)}}
@keyframes power-ready{50%{box-shadow:0 0 0 1px #c6a7ff,0 0 19px #a17ef3df}}
@media(max-width:760px){.special-gauge{width:78%;margin-top:6px}.special-gauge .special-track{height:9px;border-width:1px;border-radius:4px}.special-gauge .special-label{font-size:7px;letter-spacing:0;margin-top:4px}.special-gauge+.round-pips{margin-top:5px}}

/* Bound the portrait to its panel; intrinsic canvas height must not crop the face. */
.vs-figure{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr)}
.vs-fighter{min-width:0;min-height:0;width:100%;height:100%}

/* Future fighters complete the grid without becoming selectable CPU opponents. */
.secret-fighter{position:relative;min-height:127px;display:grid;place-items:center;background:linear-gradient(145deg,#f6f5ff,#e2e8ff);border:1px dashed #929edb;cursor:default;overflow:visible}
.secret-fighter .secret-question{font-size:62px;color:#8a97cd;line-height:1;text-shadow:2px 2px #fff;transition:color .15s,transform .15s}
.secret-tooltip{position:absolute;z-index:5;left:50%;bottom:calc(100% + 7px);transform:translate(-50%,5px);opacity:0;pointer-events:none;white-space:nowrap;background:#3c50bc;color:white;font-size:12px;line-height:1;padding:10px 13px;border:2px solid white;border-radius:9px;box-shadow:0 3px 0 #243984;transition:opacity .15s,transform .15s}
.secret-tooltip:after{content:'';position:absolute;left:calc(50% - 5px);top:100%;border:5px solid transparent;border-top-color:#3c50bc}
.secret-fighter:hover .secret-tooltip,.secret-fighter:focus-visible .secret-tooltip{opacity:1;transform:translate(-50%,0)}
.secret-fighter:hover .secret-question,.secret-fighter:focus-visible .secret-question{color:#4057c6;transform:scale(1.06)}
.secret-fighter:focus-visible{outline:3px solid #4057c6;outline-offset:3px}
@media(max-width:760px){.secret-fighter{min-height:113px}.secret-fighter .secret-question{font-size:50px}.secret-tooltip{font-size:10px;padding:8px}}
@media(prefers-reduced-motion:reduce){.secret-question,.secret-tooltip{transition:none!important}}
.secret-fighter:focus .secret-tooltip{opacity:1;transform:translate(-50%,0)}
.secret-fighter:focus .secret-question{color:#4057c6}
