@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700;800;900&family=Barlow:wght@400;500;600;700&display=swap');
:root{--acid:#d9ff43;--ink:#0b0b0d;--muted:#86888c;--line:#292a2d}*{box-sizing:border-box}body{margin:0;background:var(--ink);color:#f6f6ed;font-family:Barlow,Arial,sans-serif;overscroll-behavior:none}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;color:inherit;background:none;border:0}button:focus-visible,a:focus-visible{outline:2px solid var(--acid);outline-offset:4px}[hidden]{display:none!important}#app{max-width:1900px;margin:auto}header{height:85px;padding:0 4%;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{color:var(--acid);font:900 italic 45px/1 'Barlow Condensed',Impact,sans-serif;text-decoration:none;display:flex;align-items:center;gap:19px}.brand span{font:600 9px/1.5 Barlow,Arial,sans-serif;letter-spacing:1.6px;max-width:95px;color:#e4e5de}.edition{font-size:10px;letter-spacing:1.8px;color:#9b9d97;display:flex;gap:9px;align-items:center}.edition i{width:5px;height:5px;background:var(--acid);border-radius:50%}nav{display:flex;align-items:center;gap:25px}nav button,footer button{font-size:10px;letter-spacing:1px;color:#bbb}#full{font-size:25px}#stage{position:relative;width:100%;height:calc(100svh - 139px);min-height:480px;max-height:950px;overflow:hidden;background:#111318}canvas{width:100%;height:100%;display:block}.screen{position:absolute;inset:0}.intro{position:absolute;left:6%;top:14%;width:52%;pointer-events:none}.eyebrow{font-size:10px;color:var(--acid);letter-spacing:3px;margin-bottom:21px}h1{font:900 clamp(60px,7.7vw,140px)/.86 'Barlow Condensed',Impact,sans-serif;letter-spacing:-1px;margin:0}h1 em{color:var(--acid);font-style:italic}p{color:#a6a9ae;font-size:15px;line-height:1.7}.intro p{margin:25px 0}.actions{display:flex;gap:13px;pointer-events:auto}.primary{background:var(--acid);color:#0b0d08;padding:19px 25px;font-weight:800;font-size:12px;letter-spacing:1px;display:inline-flex;justify-content:space-between;gap:35px;align-items:center;min-height:48px}.primary:hover{background:#e8ff91}.primary:disabled{opacity:.4}.secondary{border:1px solid #4b4c49;padding:17px 22px;font-size:11px;font-weight:600;letter-spacing:1px;background:#14171b99}.secondary:hover{border-color:var(--acid)}.prototype{font-size:8px;letter-spacing:1.5px;color:#73787e;margin-top:20px}.prototype span{color:var(--acid);padding:0 9px}.hero-label{position:absolute;right:5%;bottom:15%;text-align:right;display:flex;flex-direction:column;transform:skew(-5deg);text-shadow:0 3px 20px #000}.hero-label small{font-size:9px;color:var(--acid);letter-spacing:3px}.hero-label strong{font:900 65px/.95 'Barlow Condensed',Impact,sans-serif}.hero-label span{font-size:9px;letter-spacing:2px;color:#a5a7aa;margin-top:8px}.bottomline{position:absolute;left:6%;right:5%;bottom:5%;display:flex;justify-content:space-between;font-size:9px;letter-spacing:2px;color:#858b8e}.bottomline span{color:#d0d4d4}.arena-tag{position:absolute;bottom:21px;left:23px;display:none;flex-direction:column;gap:5px;pointer-events:none}.arena-tag span{font-size:9px;letter-spacing:2px;color:#a5a9aa}.arena-tag small{font-size:7px;letter-spacing:1px;color:#62676c}body.playing .arena-tag{display:flex}#hud{position:absolute;top:24px;left:4%;right:4%;display:flex;gap:20px;align-items:flex-start;pointer-events:none}.player{flex:1;padding-top:6px}.name{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px}.name b{font:700 25px 'Barlow Condensed',Impact,sans-serif;letter-spacing:1px}.name small{font-size:8px;letter-spacing:1.5px;color:#85898e}.health{height:15px;background:#642f3c;transform:skew(-13deg);border:1px solid #ffffff33;overflow:hidden}.health i{display:block;height:100%;background:linear-gradient(90deg,#8da727,var(--acid));width:100%;transition:width .12s}.right .health{transform:skew(13deg)}.right .health i{margin-left:auto;background:linear-gradient(90deg,#ff957f,#e56864)}.rounds{font-size:18px;color:var(--acid);letter-spacing:6px;margin-top:6px}.right .rounds{text-align:right;color:#f38b77}.clock{text-align:center;min-width:64px}.clock strong{font:800 52px/.95 'Barlow Condensed',Impact,sans-serif}.clock small{font-size:8px;display:block;letter-spacing:2px;margin-top:7px;color:#a9acaf}#callout{position:absolute;left:0;right:0;top:36%;text-align:center;font:900 italic clamp(38px,7vw,105px) 'Barlow Condensed',Impact,sans-serif;text-shadow:0 5px 30px #000;color:var(--acid);pointer-events:none}#combo{position:absolute;left:6%;top:29%;font:800 italic 27px 'Barlow Condensed',Impact,sans-serif;color:var(--acid);white-space:pre-line;pointer-events:none}footer{height:54px;display:flex;align-items:center;justify-content:space-between;padding:0 4%;font-size:9px;letter-spacing:1px;color:#777c80}footer b{color:#e4e5de}footer i{color:var(--acid);font-style:normal;margin:0 9px}.modal{position:absolute;z-index:6;inset:0;background:#07090ce8;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;backdrop-filter:blur(7px)}.modal small,dialog>small{color:var(--acid);font-size:10px;letter-spacing:3px}.modal h2{font:900 italic 100px/.95 'Barlow Condensed',Impact,sans-serif;margin:0}.modal p{margin:0 0 10px}.modal button{min-width:240px}dialog{background:#14161b;color:#f1f3ed;border:1px solid #454942;padding:38px;max-width:590px;width:90%;box-shadow:0 20px 100px #000}dialog::backdrop{background:#000c}dialog h2{font:800 40px 'Barlow Condensed',Impact,sans-serif;margin:15px 0 25px}.close{position:absolute;right:15px;top:8px;font-size:30px}.controlgrid{display:grid;grid-template-columns:1fr 1.5fr;gap:15px;font-size:12px}.controlgrid span{color:var(--acid)}dialog p{font-size:12px}.note{font-size:10px!important;letter-spacing:0!important;color:#8b908a!important}#loading{position:absolute;inset:0;z-index:10;background:#101216;display:flex;flex-direction:column;align-items:center;justify-content:center;font:800 35px 'Barlow Condensed',Impact,sans-serif;color:var(--acid);gap:15px}#loading span{font:12px Barlow,Arial,sans-serif;color:#8a8e92}#touch{position:absolute;inset:auto 3% 17px;display:flex;justify-content:space-between;align-items:flex-end;pointer-events:none;z-index:3}#touch button{pointer-events:auto;touch-action:none;user-select:none;-webkit-user-select:none;background:#13171cba;border:1px solid #aaa5;border-radius:9px;height:52px;width:52px;font-size:10px;font-weight:800}#touch button:active,#touch button.held{background:#d9ff4366;border-color:var(--acid)}.dpad{display:flex;align-items:center;gap:5px}.dpad>div{display:flex;flex-direction:column;gap:5px}.fightpad{display:grid;grid-template-columns:repeat(3,52px);gap:7px}.fightpad .guard{grid-row:span 2;height:111px!important;color:var(--acid)}.fightpad .upper{color:#ffa884}.fightpad button{border-radius:50%!important}body.playing #stage{touch-action:none}
@media(max-width:750px){header{height:62px;padding:0 4%}.brand{font-size:34px;gap:10px}.brand span{font-size:7px;max-width:70px}.edition{display:none}nav{gap:16px}nav button{font-size:8px}#stage{height:calc(100svh - 101px);min-height:420px}.intro{top:11%;left:6%;width:90%}h1{font-size:clamp(66px,12vw,95px)}.intro p{font-size:12px;margin:18px 0}.eyebrow{font-size:8px;margin-bottom:16px}.primary{padding:16px 18px;font-size:10px;gap:20px}.secondary{font-size:9px;padding:14px}.hero-label{bottom:13%;right:6%}.hero-label strong{font-size:45px}.hero-label span{font-size:7px}.bottomline{font-size:7px;letter-spacing:1px}.bottomline span{display:none}footer{height:39px;font-size:7px}#hint{display:none}.prototype{font-size:7px;letter-spacing:1px}#hud{top:15px;gap:11px}.name b{font-size:21px}.name small{font-size:6px;letter-spacing:.5px}.clock strong{font-size:43px}.clock{min-width:43px}.health{height:12px}.clock small{font-size:6px}.arena-tag{bottom:145px;left:14px}.modal h2{font-size:75px}#combo{top:23%;font-size:22px}#callout{top:31%}}
@media(max-height:500px) and (orientation:landscape){header{height:43px}.brand{font-size:30px}.brand span{font-size:6px}#stage{height:calc(100svh - 72px);min-height:230px}footer{height:29px}.intro{top:8%;width:60%}h1{font-size:58px}.eyebrow{margin-bottom:9px;font-size:7px}.intro p{margin:10px 0;font-size:11px}.primary,.secondary{padding:12px 17px;min-height:36px}.prototype{margin-top:9px;font-size:6px}.hero-label{bottom:18%}.hero-label strong{font-size:40px}.bottomline{bottom:4%;font-size:6px}#hud{top:9px}.name b{font-size:18px}.name{margin-bottom:4px}.clock strong{font-size:35px}.clock small{font-size:6px}.health{height:10px}.rounds{font-size:13px;margin-top:2px}#touch{bottom:10px}#touch button{width:42px;height:42px;font-size:8px}.fightpad{grid-template-columns:repeat(3,42px);gap:5px}.fightpad .guard{height:89px!important}.arena-tag{bottom:14px;left:47%}.arena-tag small{display:none}.modal{gap:9px}.modal h2{font-size:60px}.modal p{font-size:12px}.modal button{min-height:30px;padding:10px}}
#motionToggle{color:var(--acid)}#motionPanel{position:absolute;left:3%;bottom:22px;z-index:4;max-width:260px;pointer-events:none}#motionPanel small{display:block;font-size:10px;line-height:1.5;color:var(--acid);text-shadow:0 1px 5px #000}#motionPanel>div{display:none;gap:8px;margin-top:8px}#motionPanel button{pointer-events:auto;min-height:36px;border:1px solid #a7ac8799;background:#111b;padding:7px 9px;font-size:9px;touch-action:manipulation}.motion-active #motionPanel>div{display:flex}.motion-active #touch .dpad,.motion-active #touch .guard,.motion-active #touch .upper{display:none}.motion-active #touch{justify-content:flex-end}.motion-active #touch .fightpad{grid-template-columns:repeat(2,56px)}.motion-active #touch button{width:56px;height:56px}.motion-active .arena-tag{bottom:100px}@media(max-width:750px){nav{gap:10px}#motionToggle{max-width:68px;font-size:8px}#motionPanel{bottom:145px;max-width:190px}.motion-active #motionPanel{bottom:18px;max-width:calc(100% - 155px)}.motion-active .arena-tag{display:none}}
.motion-help-actions{display:flex;flex-wrap:wrap;gap:10px}.motion-help-actions a{text-decoration:none}.motion-help-actions button{min-height:44px}#motionHelp{max-height:85svh;overflow:auto}#motionHelp h2{margin-top:0}
.difficulty{display:flex;align-items:center;gap:14px;width:max-content;margin:18px 0 12px;color:#a2a5a2;font:700 11px/1 'Barlow Condensed',Arial,sans-serif;letter-spacing:2px}.difficulty select{background:#15191c;color:#ecf5dc;border:1px solid #646e60;border-radius:3px;padding:9px 28px 9px 12px;font:700 13px 'Barlow Condensed',Arial,sans-serif;letter-spacing:1px}.difficulty select:focus-visible{outline:2px solid var(--acid);outline-offset:2px}
/* Approved MFC identity: silver M/C, red F, black arena. */
:root{--acid:#e72838;--ink:#09090b;--line:#442329}
.brand{display:flex;align-items:center;width:74px;height:74px;flex:none}
.brand img{width:100%;height:100%;object-fit:contain;clip-path:circle(48%)}
.footer-brand img{display:block;width:38px;height:38px;object-fit:contain;clip-path:circle(48%)}
.primary{color:#fff}
.primary:hover{background:#ff4353}
.eyebrow,.hero-label small,.edition i{color:#f94a59}
#motionToggle{color:#ff6472}
.result-mark{width:min(130px,50vw);aspect-ratio:1;object-fit:contain;clip-path:circle(48%)}
@media(max-width:750px){.brand{width:50px;height:50px}.footer-brand img{width:28px;height:28px}.result-mark{width:115px}}
@media(max-height:500px){.brand{width:43px;height:43px}}
.player[data-damage-stage="0"] .health i{background:linear-gradient(90deg,#23bc4f,#67ec66)}
.player[data-damage-stage="1"] .health i{background:linear-gradient(90deg,#e9bb26,#ffe65a)}
.player[data-damage-stage="2"] .health i{background:linear-gradient(90deg,#dc701e,#ffab3b)}
.player[data-damage-stage="3"] .health i{background:linear-gradient(90deg,#b41425,#ef3d46)}
.player{display:flex;align-items:flex-start;gap:10px;min-width:0}.fighter-hud{flex:1;min-width:0}.portrait{position:relative;flex:none;width:70px;height:70px;overflow:hidden;border:2px solid #c92635;background:#17191f;box-shadow:0 3px 14px #0009}.portrait img{position:absolute;width:200%;height:200%;left:-23%;top:-25%;max-width:none}.right .portrait{border-color:#d9d6d1}
@media(max-width:750px){.player{gap:5px}.portrait{width:42px;height:42px;border-width:1px}.name small{font-size:6px}}
@media(max-width:390px){.portrait{width:34px;height:34px}.name b{font-size:15px}}
body.match-ended #hud{z-index:7}
body.match-ended #end{background:#07090cbf}
.portrait .out-shutter{position:absolute;inset:0;z-index:2;transform:translateY(-105%);visibility:hidden}
.portrait .out-shutter img{position:static;width:100%;height:100%;object-fit:cover;max-width:100%}
.portrait.out-drop>img:first-child{animation:out-gray .2s forwards}
.portrait.out-drop .out-shutter{visibility:visible;animation:shutter-drop .62s .2s cubic-bezier(.22,.8,.36,1) both}
@keyframes out-gray{to{filter:grayscale(1) brightness(.72)}}
@keyframes shutter-drop{0%{transform:translateY(-105%)}78%{transform:translateY(3%)}100%{transform:translateY(0)}}

.smack-title{font-size:clamp(48px,6vw,108px)}
@media(max-width:650px){.smack-title{font-size:clamp(42px,8vw,64px)}}

/* Equal name-row height keeps both health bars aligned at every width. */
.name{height:29px;min-width:0;white-space:nowrap;gap:4px}
.name b,.name small{white-space:nowrap;line-height:1;min-width:0}
@media(max-width:750px){
 #hud{gap:8px;left:3%;right:3%}
 .name{height:32px;display:grid;grid-template-rows:18px 9px;row-gap:2px;margin-bottom:5px}
 .name b{grid-row:1;font-size:clamp(13px,3.9vw,19px);letter-spacing:.4px}
 .name small{grid-row:2;font-size:5px;letter-spacing:.25px}
 .right .name{justify-items:end}
 .clock{min-width:36px}
 .clock small{letter-spacing:.7px}
}



.fightpad .knee{color:var(--acid);border-color:#d9ff4388!important}
@media(max-width:430px) and (orientation:portrait){#touch button{width:46px;height:46px}.fightpad{grid-template-columns:repeat(3,46px);gap:5px}.fightpad .guard{height:97px!important}.motion-active #touch .fightpad{grid-template-columns:repeat(2,46px)}.motion-active #touch button{width:46px;height:46px}}

/* Keep both character and difficulty selection legible in the lobby. */
.intro .difficulty{display:inline-flex;align-items:center;gap:8px;margin-right:14px;margin-bottom:12px}.intro .difficulty select{max-width:145px}

/* Character select: the existing fighter canvas is the full-size preview. */
#home{overflow:auto;scrollbar-width:none}#home::-webkit-scrollbar{display:none}
#home .intro{z-index:2;max-width:550px;pointer-events:none}
.selection-panel{width:min(100%,530px);margin-top:24px;padding:18px;background:linear-gradient(125deg,#11151de8,#090d13ed);border:1px solid #c1c4c647;box-shadow:0 18px 60px #000a;backdrop-filter:blur(10px);pointer-events:auto}
.selection-panel[hidden]{display:none!important}.selection-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:1px solid #ffffff29;padding-bottom:11px;font:800 11px 'Barlow Condensed',Impact,sans-serif;letter-spacing:1.7px;color:#f44a56}.selection-heading small{color:#c7c9c5;font-size:9px;letter-spacing:1.3px}
.fighter-carousel{display:flex;align-items:center;gap:10px;margin:13px 0 5px;touch-action:pan-y}.carousel-arrow{width:44px;min-width:44px;height:90px;border:1px solid #ffffff55;background:#22293299;font:400 46px/1 'Barlow Condensed',Impact,sans-serif;pointer-events:auto}.carousel-arrow:hover,.carousel-arrow:focus-visible{border-color:#f44a56;color:#f44a56}.fighter-card{display:flex;align-items:center;gap:16px;min-width:0;flex:1}.fighter-card img{width:100px;height:100px;object-fit:cover;object-position:center 30%;background:#262c2e;border:2px solid #f44a56;box-shadow:0 0 25px #ed314032}.fighter-card div{display:flex;flex-direction:column;min-width:0}.fighter-card small{font-size:9px;letter-spacing:2px;color:#f44a56}.fighter-card strong{font:900 43px/.95 'Barlow Condensed',Impact,sans-serif;white-space:nowrap}.fighter-card span{font-size:9px;letter-spacing:1.2px;color:#b8bdc0;white-space:nowrap}
.fighter-dots{display:flex;justify-content:center;gap:10px;margin:8px 0 15px}.fighter-dots button{width:24px;height:8px;border:1px solid #fff7;background:#ffffff36}.fighter-dots button[aria-current="true"]{background:#f43443;border-color:#f43443}.choose-fighter{width:100%;background:#ee3243;color:#fff}.choose-fighter:hover{background:#ff4b5b}
.doge-punch-directions{display:flex;gap:6px;margin:4px 0 9px}.doge-punch-directions[hidden],.doge-punch-hint[hidden]{display:none}.doge-punch-directions button{flex:1;min-height:35px;padding:7px 3px;border:1px solid #777b84;background:#11151bbd;color:#f4f4f4;font:800 13px 'Barlow Condensed',Impact,sans-serif;letter-spacing:1px;touch-action:manipulation}.doge-punch-directions button[aria-pressed="true"],.doge-punch-directions button:hover{border-color:#f34a56;background:#a91a2a}.doge-punch-hint{display:block;margin-top:7px;color:#c5c7ca;font:600 10px/1.4 system-ui,sans-serif}
.doge-punch-directions button{flex:0 0 35%}.doge-punch-directions span{align-self:center;color:#bfc2c6;font:600 11px system-ui,sans-serif}
.mode-title{font:900 italic clamp(26px,3vw,38px)/.93 'Barlow Condensed',Impact,sans-serif;margin:15px 0 17px}.mode-cards{display:grid;grid-template-columns:1fr 1fr;gap:10px}.mode-card{text-align:left;display:flex;flex-direction:column;gap:7px;min-height:142px;padding:16px;border:1px solid #ffffff46;background:#171b21c9}.mode-card:hover,.mode-card:focus-visible{border-color:#f44a56;background:#2a1921}.mode-card small{font-size:9px;color:#f44a56;letter-spacing:1px}.mode-card strong{font:900 24px 'Barlow Condensed',Impact,sans-serif}.mode-card span{font-size:11px;color:#bac0c2;line-height:1.3}.mode-card em{font-style:normal;font-size:10px;color:#f4f3ed;letter-spacing:1px;margin-top:auto}.selection-back{padding:6px 0;color:#c7c9c9;font-size:10px;letter-spacing:1px}.selection-back:hover{color:#fff}.selection-panel .difficulty{display:flex;width:max-content;margin:9px 0 7px}.selection-panel .difficulty select{font-size:11px;padding:6px 22px 6px 8px}
@media(max-width:750px){#home .intro{position:relative;left:auto;top:auto;width:auto;max-width:none;margin:38px 5% 65px}#home .smack-title{font-size:clamp(43px,9vw,65px)}#home .eyebrow{margin-bottom:12px}.selection-panel{margin-top:19px;padding:14px}.hero-label{display:none}.bottomline{display:none}.prototype{display:none}.fighter-card img{width:74px;height:74px}.fighter-card strong{font-size:34px}.carousel-arrow{height:74px;width:38px;min-width:38px;font-size:38px}.fighter-carousel{gap:8px}.fighter-card{gap:10px}}
@media(max-width:420px){#home .intro{margin-top:24px}.fighter-card img{width:62px;height:68px}.fighter-card strong{font-size:29px}.fighter-card span{font-size:7px}.carousel-arrow{width:32px;min-width:32px;height:68px}.selection-heading{font-size:10px}.selection-heading small{font-size:7px}.mode-title{font-size:29px}.mode-card{min-height:103px;padding:12px}.mode-card strong{font-size:22px}.mode-card span{font-size:10px}}
@media(max-height:500px) and (orientation:landscape){#home .intro{position:relative;left:auto;top:auto;width:54%;margin:12px 4% 25px}#home .smack-title{font-size:43px}.selection-panel{margin-top:10px;padding:10px}.fighter-card img{width:55px;height:55px}.fighter-card strong{font-size:28px}.carousel-arrow{height:55px}.fighter-dots{margin:4px 0 7px}.choose-fighter{min-height:35px;padding:8px 14px}.mode-title{margin:8px 0;font-size:25px}.mode-card{min-height:90px;padding:9px}.mode-card span{display:none}.mode-card strong{font-size:19px}.prototype,.bottomline,.hero-label{display:none}}
/* Fighter select: the arena and the transparent animation are separate layers. */
#home{isolation:isolate;background:linear-gradient(90deg,#07080b42 0%,transparent 44%,#06080dd9 77%,#06080df5 100%)}
#home .fighter-stage{position:absolute;inset:0 auto 0 18%;width:44%;display:flex;align-items:flex-end;justify-content:center;pointer-events:none;z-index:1}
#home .fighter-stage img{height:96%;width:100%;object-fit:contain;object-position:center bottom;filter:drop-shadow(0 15px 16px #000a)}
#home .fighter-stage img[data-fighter="kadava"]{transform:scale(.969);transform-origin:center bottom}
#home .fighter-stage img[data-fighter="pepe"]{transform:translateY(-5px) scale(.903);transform-origin:center bottom}
#home .fighter-stage img[data-fighter="doge"]{transform:translate(-48px,calc(6% - 15px)) scale(1.134);transform-origin:center bottom}
#home .fighter-stage img[data-fighter="don"]{height:90%;width:auto;max-width:none;transform:translateX(14%)}
#home .fighter-stage canvas{height:96%;width:auto;max-width:100%;transform:translate(-48px,calc(6% - 15px)) scale(1.134);transform-origin:center bottom}
#home .fighter-stage canvas#rosterMotion[data-fighter="kadava"]{transform:scale(.969)}
#home .fighter-stage canvas#rosterMotion[data-fighter="pepe"]{height:84%;width:auto;max-width:none;transform:translate(-75px,0)}
#home .fighter-stage canvas#rosterMotion[data-fighter="kadava"]{height:90%;width:auto;max-width:none;transform:none}
#home .fighter-stage canvas#rosterMotion[data-fighter="don"]{height:90%;width:auto;max-width:none;transform:translateX(14%)}
@media(min-width:751px) and (min-height:501px){#home .fighter-stage canvas#rosterMotion[data-fighter="kadava"]{transform:translateY(6px)}#home .fighter-stage canvas#rosterMotion[data-fighter="pepe"]{transform:translate(-75px,-8px)}}
#home .fighter-stage canvas#dogePunchMotion{max-width:none}
#home .fighter-stage canvas[hidden],#home .fighter-stage img[hidden]{display:none}
#home .fighter-stage.fighter-reveal::before{content:'';position:absolute;inset:0;z-index:2;pointer-events:none;background:radial-gradient(ellipse 36% 44% at 50% 60%,#fff9 0%,#fa435c77 38%,transparent 100%);animation:fighter-light .36s ease-out both}
#home .fighter-stage.fighter-reveal > img:not([hidden]),#home .fighter-stage.fighter-reveal > canvas:not([hidden]){animation:fighter-appear .28s ease-out both}
@keyframes fighter-light{0%{opacity:0}28%{opacity:1}100%{opacity:0}}
@keyframes fighter-appear{0%{opacity:.16}45%{opacity:.72}100%{opacity:1}}
@media(prefers-reduced-motion:reduce){#home .fighter-stage.fighter-reveal::before,#home .fighter-stage.fighter-reveal > img:not([hidden]),#home .fighter-stage.fighter-reveal > canvas:not([hidden]){animation:none}}
#home .fighter-roster{position:absolute;z-index:3;top:12%;left:3%;width:min(90px,8%);display:flex;flex-direction:column;gap:8px}
.roster-kicker,.roster-foot{font:800 10px 'Barlow Condensed',Impact,sans-serif;letter-spacing:2px;color:#c9cbd0;text-align:center}
.roster-foot{font-size:8px;line-height:1.3;color:#858990}
.roster-tile{display:block;position:relative;width:100%;aspect-ratio:1;border:1px solid #8c969c7a;background:#080a0dbb;padding:0;overflow:hidden}
.roster-tile[aria-current="true"]{border:2px solid #ee2638;box-shadow:0 0 22px #e2283f88}
.roster-tile img{width:100%;height:100%;object-fit:cover;object-position:center 23%;filter:saturate(.7)}
.roster-tile[aria-current="true"] img{filter:none}
.roster-tile span{position:absolute;bottom:0;left:0;right:0;padding:3px 0;background:#090a0bd9;font:800 10px 'Barlow Condensed',Impact,sans-serif;letter-spacing:1px}
#home .intro{position:absolute;left:auto;right:4%;top:15%;width:34%;max-width:510px;z-index:3;pointer-events:auto}
#home .smack-title,#home .eyebrow,#home .prototype,#home .hero-label,#home .bottomline{display:none}
#home .selection-panel{width:100%;margin:0;padding:0;border:0;box-shadow:none;backdrop-filter:none;background:none}
#home .selection-heading{font-size:13px;color:#d5d8dc;border-bottom:0;padding:0}
#home .selection-heading small{color:#a7aab1}
.fighter-intel h2{font:900 clamp(64px,8vw,140px)/.92 'Barlow Condensed',Impact,sans-serif;letter-spacing:-2px;margin:17px 0 0;text-shadow:0 4px 25px #000}
.fighter-intel p{font:700 12px 'Barlow Condensed',Impact,sans-serif;letter-spacing:2px;color:#bcc0c5;margin:5px 0 16px;line-height:1.3}
.intel-rule{height:2px;width:100%;background:linear-gradient(90deg,#e12234 0 17%,#ffffff5b 17% 100%);margin:14px 0 18px}
.fighter-stat{display:grid;grid-template-columns:82px 1fr;align-items:center;gap:12px;margin:13px 0;font:700 13px 'Barlow Condensed',Impact,sans-serif;letter-spacing:1px}
.fighter-stat i{height:10px;background:linear-gradient(90deg,#d7dce1 var(--fill),#25272c var(--fill));border:1px solid #494b51;transform:skew(-8deg)}
#home .fighter-carousel,#home .fighter-dots{display:none}
#home .choose-fighter{width:100%;margin-top:22px;font:800 16px 'Barlow Condensed',Impact,sans-serif;letter-spacing:1px;padding:16px 19px}
#home #modeStep{padding:22px;background:#090c12df;border:1px solid #777a8066;backdrop-filter:blur(10px)}
#arenaPreview{display:block;width:min(100%,240px);height:auto;aspect-ratio:1983/793;object-fit:contain;margin:6px 0;border:1px solid #80604a}
#arenaPreview[hidden]{display:none}
@media(max-height:500px) and (orientation:landscape){#arenaPreview{float:right;width:135px;margin:4px 0 0 6px}}
#home:has(#modeStep:not([hidden])) .fighter-roster{opacity:.45;pointer-events:none}
@media(max-width:750px){#home{overflow:auto;background:linear-gradient(180deg,#07090b18,#080a0cef 55%,#080a0c)}#home .fighter-stage{top:0;bottom:auto;left:0;width:100%;height:52%;justify-content:center}#home .fighter-stage img,#home .fighter-stage canvas{height:100%}#home .fighter-roster{top:7%;left:4%;width:60px;gap:5px}#home .intro{position:relative;top:auto;left:auto;right:auto;width:auto;max-width:none;margin:0;padding:51svh 5% 36px}#home .fighter-intel h2{font-size:clamp(52px,17vw,90px);margin-top:8px}#home .fighter-intel p{font-size:10px;margin:3px 0 8px}#home .intel-rule{margin:10px 0}#home .fighter-stat{margin:7px 0}#home .choose-fighter{margin-top:14px}#home #modeStep{margin-top:-32svh}#home:has(#modeStep:not([hidden])) .fighter-stage{opacity:.4}}
@media(max-height:500px) and (orientation:landscape){#home .fighter-roster{top:5%;width:55px}#home .intro{position:absolute;top:7%;right:3%;left:auto;width:38%;margin:0;padding:0}#home .fighter-intel h2{font-size:clamp(44px,7vw,68px)}#home .fighter-stat{margin:5px 0}#home .choose-fighter{padding:9px;margin-top:8px}#home .fighter-stage{inset:0 auto 0 18%;width:42%;height:100%}}
/* The roster scrolls inside the selection screen; the page itself stays still. */
#home .fighter-roster{height:min(68%,650px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#e32b3c #20242b;padding-right:4px;padding-bottom:55vh;touch-action:pan-y}
.roster-tile{flex:none;min-height:70px}
.roster-tile.mystery{display:flex;align-items:center;justify-content:center;background:linear-gradient(155deg,#20242c,#0c0e13);color:#9ca1aa}
.roster-tile .mystery-mark{position:static;background:none;font:900 42px 'Barlow Condensed',Impact,sans-serif;color:#5f6570;text-shadow:0 0 17px #e0223040}
.roster-tile.mystery[aria-current="true"] .mystery-mark{color:#e3e5e9}
.roster-tile.mystery>span:last-child{font-size:8px;letter-spacing:.2px}
#home.mystery-active .fighter-stage::after{content:'?';align-self:center;font:900 clamp(180px,32vw,430px)/1 'Barlow Condensed',Impact,sans-serif;color:#838a9655;text-shadow:0 0 70px #d4273733,0 20px 80px #000}
#home.mystery-active .fighter-intel h2{font-size:clamp(42px,5.5vw,83px)}
#home.mystery-active .fighter-stat i{opacity:.4}
#home .choose-fighter:disabled{background:#393c43;color:#a6a8ac;cursor:not-allowed}
@media(max-width:750px) and (orientation:portrait){
 body:has(#home:not([hidden])) header{height:56px;padding-inline:4%}
 body:has(#home:not([hidden])) footer{display:none}
 body:has(#home:not([hidden])) #stage{height:calc(100svh - 56px);min-height:0;max-height:none}
 #home{overflow:hidden;background:linear-gradient(180deg,#07090b18,#080a0c95 54%,#080a0cf2 100%)}
 #home .fighter-stage{top:4%;bottom:auto;height:52%;left:7%;width:88%}
 #home .fighter-stage img{height:100%}
 #home .fighter-stage canvas#rosterMotion[data-fighter="pepe"]{height:88%;transform:translate(-20px,0)}
 #home .fighter-roster{top:7%;left:3%;width:54px;height:33%;padding-right:2px;padding-bottom:calc(33svh - 60px);gap:5px}
 #home .roster-kicker{font-size:8px;letter-spacing:1px}
 #home .roster-foot{font-size:7px}
 #home .roster-tile{min-height:54px}
 #home .roster-tile span:last-child{font-size:7px}
 #home .roster-tile .mystery-mark{font-size:31px}
 #home .intro{position:absolute;top:54%;left:5%;right:5%;width:auto;max-width:none;margin:0;padding:0}
 #home .selection-heading{font-size:10px}
 #home .fighter-intel h2{font-size:clamp(48px,14vw,74px);margin:5px 0 0}
 #home.mystery-active .fighter-intel h2{font-size:clamp(42px,11vw,60px)}
 #home .fighter-intel p{font-size:9px;margin:2px 0 6px}
 #home .intel-rule{margin:7px 0 8px}
 #home .fighter-stat{grid-template-columns:70px 1fr;margin:5px 0;font-size:11px}
 #home .fighter-stat i{height:7px}
 #home .choose-fighter{min-height:40px;padding:8px 12px;margin-top:10px;font-size:14px}
 #home:has(#modeStep:not([hidden])) .intro{top:4%}
 #home:has(#modeStep:not([hidden])) .fighter-stage{opacity:.25}
 #home:has(#modeStep:not([hidden])) .fighter-roster{opacity:.25}
 #home #modeStep{margin:0;padding:14px}
 #home.mystery-active .fighter-stage::after{font-size:clamp(140px,42vw,240px)}
}

.doge-special-actions{display:flex;gap:6px;margin:0 0 8px}.doge-special-actions[hidden]{display:none}.doge-special-actions button{flex:1;min-height:36px;border:1px solid #777b84;background:#11151bbd;color:#f4f4f4;font:800 13px 'Barlow Condensed',Impact,sans-serif;letter-spacing:.6px;touch-action:manipulation}.doge-special-actions button:hover{border-color:#f34a56;background:#a91a2a}
@media(max-width:750px) and (orientation:portrait){#home .fighter-stage img[data-fighter="doge"],#home .fighter-stage canvas#dogeMotion{transform:translate(-24px,calc(6% - 15px)) scale(1.134)}}

#home .fighter-stage canvas#dogePunchMotion{transform:translate(41px,calc(6% - 15px)) scale(1.08)}
/* The selection roster and composition scale independently for phone orientations. */
#home .fighter-roster{width:min(108px,9.6%);gap:10px;overflow-x:hidden}
#home .roster-kicker{font-size:12px}
#home .roster-foot{font-size:10px}
#home .roster-tile{min-height:84px}
#home .roster-tile span:last-child{font-size:12px;padding-block:4px}
#home .roster-tile .mystery-mark{font-size:50px}
@media(max-width:750px){#home .fighter-roster{width:72px;gap:6px}}
@media(max-width:750px) and (orientation:portrait){
 #home .fighter-roster{width:65px;gap:6px;padding-bottom:calc(33svh - 65px)}
 #home .roster-kicker{font-size:10px}
 #home .roster-foot{font-size:8px}
 #home .roster-tile{min-height:65px}
 #home .roster-tile span:last-child{font-size:8px}
 #home .roster-tile .mystery-mark{font-size:37px}
 #home .fighter-stage img[data-fighter="doge"],#home .fighter-stage canvas#dogeMotion{transform:translate(-24px,calc(6% + 5px)) scale(1.029)}
}
@media(max-height:500px) and (orientation:landscape){
 body:has(#home:not([hidden])) #app{position:relative}
 body:has(#home:not([hidden])) header{position:absolute;inset:0 0 auto;height:32px;padding-inline:2.5%;z-index:6;background:linear-gradient(#07080bb8,#07080b00);border:0}
 body:has(#home:not([hidden])) header .brand{width:74px;height:30px}
 body:has(#home:not([hidden])) header nav{gap:12px}
 body:has(#home:not([hidden])) header nav button{font-size:8px}
 body:has(#home:not([hidden])) header #full{font-size:19px}
 body:has(#home:not([hidden])) #stage{height:100svh;min-height:0;max-height:none}
 body:has(#home:not([hidden])) footer{display:none}
 #home{background:linear-gradient(90deg,#07080b30 0%,#07080b16 50%,#06080da6 100%)}
 #home .fighter-roster{top:36px;width:66px;gap:6px}
 #home .intro{top:calc(7% + 24px)}
 #home .fighter-stage{top:auto;bottom:7svh;left:16%;width:48%;height:calc(100svh - 34px)}
 #home .fighter-stage img[data-fighter="pepe"]{transform:translateY(3px) scale(.903)}
 #home .fighter-stage canvas#rosterMotion[data-fighter="pepe"]{height:84%;transform:translate(-65px,0)}
 #home .fighter-stage img[data-fighter="doge"],#home .fighter-stage canvas#dogeMotion{transform:translate(-48px,calc(6% + 3px)) scale(1.134)}
}
/* MFC title, cage and versus entrance */
#titleScreen{z-index:8;overflow:hidden;background:#09090d}
#titleScreen .title-art{display:block;width:100%;height:100%;object-fit:cover}
#titleScreen .title-mobile-brand{display:none}
#enterCage{position:absolute;left:29%;top:65%;width:42%;height:16%;opacity:0;z-index:2;font-size:0}
#enterCage:focus-visible{opacity:1;outline:3px solid white;outline-offset:-8px}
#titleScreen .title-prompt{display:none}
#versus{z-index:9;overflow:hidden;background:#07080b;isolation:isolate}
.vs-half{position:absolute;inset:0;overflow:hidden}
.vs-player{clip-path:polygon(0 0,100% 0,0 100%);background:radial-gradient(circle at 25% 45%,#6b1c25 0,#1a1117 47%,#06070a 75%)}
.vs-opponent{clip-path:polygon(100% 0,100% 100%,0 100%);background:radial-gradient(circle at 78% 62%,#26313a 0,#0e141b 47%,#07080b 80%)}
.vs-half img{position:absolute;width:53%;height:100%;object-fit:cover;filter:contrast(1.12) saturate(.82);mix-blend-mode:screen;opacity:.9;transition:transform .85s cubic-bezier(.16,1,.3,1)}
.vs-player img{left:0;top:0;object-position:center 22%;transform:translateX(-8%) scale(1.16)}
.vs-opponent img{right:0;bottom:0;object-position:center 26%;transform:translateX(8%) scale(1.16)}
.vs-ready .vs-player img,.vs-ready .vs-opponent img{transform:translateX(0) scale(1.05)}
.vs-half:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#08080c99,transparent 45%,#08080cbb)}
.vs-slash{position:absolute;left:49.9%;top:-23%;height:146%;width:5px;background:#ed2633;box-shadow:0 0 12px #f1253b,0 0 35px #d31d34;transform:rotate(43deg);z-index:2}
.vs-mark{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%) skew(-9deg);font:900 italic clamp(78px,12vw,205px)/1 'Barlow Condensed',Impact,sans-serif;letter-spacing:-.09em;color:#f5ede5;text-shadow:6px 7px #ae121e,0 12px 40px #000;z-index:3}
.vs-label,.vs-half strong{position:absolute;z-index:3;display:block;text-shadow:0 3px 18px #000}
.vs-label{font:700 clamp(10px,1.1vw,18px) 'Barlow Condensed',Impact,sans-serif;letter-spacing:.2em;color:#f04c51}
.vs-half strong{font:900 clamp(37px,6vw,105px)/.9 'Barlow Condensed',Impact,sans-serif;letter-spacing:.02em}
.vs-player .vs-label{top:9%;left:4%}.vs-player strong{top:13%;left:4%}
.vs-opponent .vs-label{bottom:18%;right:4%}.vs-opponent strong{bottom:7%;right:4%}
.vs-status{position:absolute;z-index:4;bottom:4%;left:50%;transform:translateX(-50%);font:700 11px 'Barlow Condensed',Impact,sans-serif;letter-spacing:.26em;color:#e2e0dc;background:#07080bcc;padding:7px 12px;white-space:nowrap}
@media(max-width:750px){#titleScreen{background:#09090d url('assets/mfc-cage-arena.webp') center/cover no-repeat}#titleScreen .title-art{display:none}#titleScreen .title-mobile-brand{display:block;position:absolute;top:15%;left:7%;width:86%;max-height:30%;object-fit:contain;filter:drop-shadow(0 12px 30px #000)}#enterCage{opacity:1;top:59%;left:9%;width:82%;height:70px;background:linear-gradient(#f82d39,#ab0914);border:2px solid #ff7a7e;box-shadow:0 8px 0 #490911,0 15px 45px #e41b3366;font:900 italic clamp(27px,7vw,42px) 'Barlow Condensed',Impact,sans-serif;letter-spacing:.02em;color:white;display:flex;align-items:center;justify-content:space-around;transform:skew(-4deg)}#titleScreen .title-prompt{display:block;position:absolute;top:calc(59% + 93px);width:100%;text-align:center;font:600 12px 'Barlow Condensed',Impact,sans-serif;letter-spacing:.36em;color:#ddd}.vs-player{clip-path:polygon(0 0,100% 0,0 52%)}.vs-opponent{clip-path:polygon(100% 0,100% 100%,0 100%,0 52%)}.vs-half img{width:100%;height:56%;object-fit:cover}.vs-player img{top:0;left:0;object-position:center 28%}.vs-opponent img{bottom:0;right:0;object-position:center 32%}.vs-slash{transform:rotate(27deg);height:115%;top:-8%}.vs-mark{font-size:88px}.vs-player .vs-label{top:7%;left:5%}.vs-player strong{top:11%;left:5%}.vs-opponent .vs-label{bottom:19%;right:5%}.vs-opponent strong{bottom:12%;right:5%}.vs-half strong{font-size:clamp(42px,12vw,72px)}}
@media(prefers-reduced-motion:reduce){.vs-half img{transition:none}}
/* Opening choreography: the cage, controls, logo and invitation arrive in sequence. */
body:has(#titleScreen:not([hidden])) header{position:relative;z-index:9;animation:opening-header .55s .48s both;transform-origin:center top;background:#07080b}
body:has(#titleScreen:not([hidden])) header .brand{animation:opening-menu .42s 1.05s both}
body:has(#titleScreen:not([hidden])) header .edition{animation:opening-menu .42s 1.20s both}
body:has(#titleScreen:not([hidden])) header nav button:nth-child(1){animation:opening-menu .4s 1.30s both}
body:has(#titleScreen:not([hidden])) header nav button:nth-child(2){animation:opening-menu .4s 1.43s both}
body:has(#titleScreen:not([hidden])) header nav button:nth-child(3){animation:opening-menu .4s 1.56s both}
body:has(#titleScreen:not([hidden])) header nav button:nth-child(4){animation:opening-menu .4s 1.69s both}
#titleScreen{background:#020304}
#titleScreen .title-arena{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;animation:opening-arena 1.45s both}
#titleScreen:before{content:'';position:absolute;inset:0;z-index:1;background:linear-gradient(180deg,#01020433,#01020410 55%,#0102045e);pointer-events:none}
#titleScreen .title-smoke{position:absolute;z-index:1;bottom:-22%;left:-40%;width:90%;height:64%;border-radius:50%;background:radial-gradient(ellipse,#d3d8dc36 0%,#aeb8c216 33%,transparent 68%);filter:blur(35px);pointer-events:none;animation:opening-smoke 10s 1.1s ease-in-out infinite alternate}
#titleScreen .title-flash{position:absolute;z-index:3;inset:0;background:linear-gradient(112deg,transparent 38%,#fff0 44%,#fff8 49%,#fff0 53%,transparent 60%);pointer-events:none;opacity:0;animation:opening-flash .46s 1.77s both}
#titleScreen .title-logo{position:absolute;z-index:2;top:8%;left:50%;width:min(54vw,700px);aspect-ratio:361/226;transform:translateX(-50%);filter:drop-shadow(0 22px 35px #000c)}
#titleScreen .title-logo img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
#enterCage{opacity:1;left:50%;top:66%;width:min(43%,610px);height:clamp(66px,12%,112px);transform:translateX(-50%) skew(-5deg);background:linear-gradient(160deg,#f72d36,#a80913);border:2px solid #f15b61;box-shadow:0 7px 0 #47070d,0 16px 40px #bd162957;color:#fff;display:flex;align-items:center;justify-content:center;gap:1.2em;font:900 italic clamp(29px,4.1vw,69px)/1 'Barlow Condensed',Impact,sans-serif;letter-spacing:.015em;text-shadow:0 3px 8px #59080c;white-space:nowrap;animation:opening-button .55s .9s both}
#enterCage span{font-size:.6em}
#enterCage:hover{filter:brightness(1.16)}
#enterCage:focus-visible{opacity:1;outline:3px solid #fff;outline-offset:5px}
@keyframes opening-arena{0%{opacity:0;filter:blur(24px) brightness(.22);transform:scale(1.09)}70%{opacity:1;filter:blur(5px) brightness(.8)}100%{opacity:1;filter:blur(0) brightness(1);transform:scale(1)}}
@keyframes opening-header{from{opacity:0;transform:translateY(-105%);filter:blur(9px)}to{opacity:1;transform:translateY(0);filter:blur(0)}}
@keyframes opening-menu{from{opacity:0;transform:translateX(35px);filter:blur(8px)}to{opacity:1;transform:translateX(0);filter:blur(0)}}
@keyframes opening-flash{0%,100%{opacity:0;transform:translateX(-85%)}45%{opacity:.95}75%{opacity:.5;transform:translateX(88%)}}
@keyframes opening-button{from{opacity:0;transform:translate(-50%,28px) skew(-5deg) scale(.9);filter:blur(12px)}to{opacity:1;transform:translateX(-50%) skew(-5deg);filter:blur(0)}}
@keyframes opening-smoke{from{transform:translateX(-20%);opacity:.28}to{transform:translateX(170%);opacity:.6}}
@media(max-width:750px){#titleScreen{background:#020304}#titleScreen .title-arena{display:block}#titleScreen .title-logo{top:19%;width:min(88vw,500px)}#enterCage{top:64%;left:50%;width:84%;height:clamp(62px,10svh,83px);font-size:clamp(27px,7vw,43px);justify-content:center}#titleScreen .title-prompt{display:none}}
@media(max-height:500px) and (orientation:landscape){#titleScreen .title-logo{top:0%;width:min(36vw,400px)}#enterCage{top:68%;height:21%;font-size:clamp(24px,3vw,43px)}}
@media(prefers-reduced-motion:reduce){body:has(#titleScreen:not([hidden])) header,body:has(#titleScreen:not([hidden])) header * ,#titleScreen .title-arena,#titleScreen .title-smoke,#titleScreen .title-flash,#titleScreen .title-logo img,#enterCage{animation:none!important;opacity:1;filter:none}#titleScreen .title-flash{display:none}}
/* The logo stays absent until the soundtrack clock reaches each bass hit. */
/* A blocked autoplay gets one branded unlock action; successful autoplay has
   no intervening menu or cage artwork before the reveal. */
#titleScreen{background:radial-gradient(ellipse at 50% 45%,#231016 0%,#09090d 49%,#030305 85%)}
#titleScreen .title-arena{display:none}
#titleScreen .title-logo{top:26%;width:min(55vw,620px)}
#titleScreen .intro-unlock{position:absolute;left:0;top:32%;width:100%;text-align:center;color:#c7c7c7;font:900 italic clamp(38px,7vw,78px)/1 'Barlow Condensed',Impact,sans-serif;letter-spacing:.08em;text-shadow:0 0 24px #b2183155;opacity:0;visibility:hidden}
#titleScreen .intro-unlock small{display:block;font:600 clamp(11px,1.6vw,17px)/2 'Barlow Condensed',Impact,sans-serif;letter-spacing:.38em}
#titleScreen #enterCage{top:57%;width:min(35%,440px);height:clamp(58px,10%,80px);font-size:clamp(26px,3.3vw,48px);animation:none;opacity:0;visibility:hidden;pointer-events:none}
#titleScreen.awaiting-audio .intro-unlock{opacity:1;visibility:visible}
#titleScreen.awaiting-audio #enterCage{opacity:1;visibility:visible;pointer-events:auto;animation:opening-button .35s both}
body:has(#titleScreen:not([hidden])) footer{visibility:hidden}
@media(max-width:750px){#titleScreen .title-logo{top:30%;width:88vw}#titleScreen #enterCage{top:58%;width:80%}}
@media(max-height:500px) and (orientation:landscape){#titleScreen .title-logo{top:5%;width:min(35vw,390px)}#titleScreen .intro-unlock{top:13%}#titleScreen #enterCage{top:62%;width:38%;height:22%}}
body:has(#titleScreen:not([hidden])) header,body:has(#titleScreen:not([hidden])) header *{animation:none;opacity:0}
body:has(#titleScreen.beat-complete:not([hidden])) header{animation:opening-header .42s both}
body:has(#titleScreen.beat-complete:not([hidden])) header *{opacity:1}
#titleScreen.starting #enterCage{animation:none;opacity:0;pointer-events:none}
#titleScreen.menu-exit{animation:beat-menu-exit .34s ease-in both}
@keyframes beat-menu-exit{to{opacity:0;filter:blur(5px)}}
@media(prefers-reduced-motion:reduce){body:has(#titleScreen:not([hidden])) header,body:has(#titleScreen:not([hidden])) header *{opacity:0!important}#titleScreen #enterCage{opacity:0!important}#titleScreen.awaiting-audio #enterCage{opacity:1!important}#titleScreen.starting #enterCage{opacity:0!important}}
/* Each pixel-aligned reveal layer is a transparent extraction of the approved logo. */
#titleScreen{--reveal-size:min(46vw,45svh,410px)}
#titleScreen .title-logo{top:50%;width:var(--reveal-size);aspect-ratio:1;overflow:hidden;border-radius:50%;transform:translate(-50%,-50%)}
#titleScreen .title-logo img{object-fit:contain;animation:none!important;transform:none!important;filter:none!important;mix-blend-mode:normal!important;clip-path:none!important;opacity:0}
#titleScreen.starting .logo-background{opacity:1}
#titleScreen.beat-m .logo-m,#titleScreen.beat-f .logo-f,#titleScreen.beat-c .logo-c,#titleScreen.beat-complete .logo-circle{opacity:1}
#titleScreen.beat-complete .title-logo{animation:none;filter:drop-shadow(0 22px 35px #000c)}
#titleScreen .title-flash{animation:none!important;opacity:0!important}
#titleScreen .intro-unlock{top:25%}
#titleScreen .intro-unlock img{display:block;width:min(25vw,160px);aspect-ratio:1;object-fit:contain;clip-path:circle(48%);margin:auto}
@media(max-width:750px){#titleScreen{--reveal-size:min(78vw,43svh)}#titleScreen .intro-unlock img{width:min(32vw,150px)}}
@media(max-height:500px) and (orientation:landscape){#titleScreen{--reveal-size:min(30vw,51svh)}#titleScreen .intro-unlock img{width:min(20vw,32svh)}}
@media(prefers-reduced-motion:reduce){#titleScreen .title-logo img{opacity:0!important}#titleScreen.starting .logo-background,#titleScreen.beat-m .logo-m,#titleScreen.beat-f .logo-f,#titleScreen.beat-c .logo-c,#titleScreen.beat-complete .logo-circle{opacity:1!important}}
/* Black remains over both scenes while the selection state is initialized. */
#introCurtain{z-index:12;background:#000;pointer-events:none;opacity:0}
#introCurtain.cover{animation:intro-to-black .68s ease-in-out both}
#introCurtain.uncover{animation:intro-from-black .7s ease-in-out both}
body:has(#titleScreen:not([hidden])) header{opacity:0!important;animation:none!important}
body.intro-transition header,body.intro-transition footer{visibility:hidden}
@keyframes intro-to-black{from{opacity:0}to{opacity:1}}
@keyframes intro-from-black{from{opacity:1}to{opacity:0}}
@media(prefers-reduced-motion:reduce){#introCurtain.cover,#introCurtain.uncover{animation-duration:.12s}}
/* The initial picker has no moving media or implied fighter choice. */
#home .fighter-placeholder{position:absolute;left:14%;right:14%;top:46%;text-align:center;color:#b9bec6;font:800 clamp(21px,2.5vw,36px) 'Barlow Condensed',Impact,sans-serif;letter-spacing:.18em;text-shadow:0 0 30px #e0223040;transform:translateY(-50%);pointer-events:none}
#home.no-fighter .fighter-intel h2{font-size:clamp(33px,4.3vw,67px);letter-spacing:.02em}
#home.no-fighter .fighter-intel p{color:#a4abb3}
@media(max-width:750px){#home .fighter-placeholder{left:21%;right:5%;top:45%;font-size:clamp(17px,5vw,26px)}}
@media(max-height:500px) and (orientation:landscape){#home .fighter-placeholder{left:0;right:0;top:50%;font-size:22px}#home.no-fighter .fighter-intel h2{font-size:34px}}
/* VS scene: one shared corner-to-corner diagonal, with media moving inside fixed masks. */
#versus{background:#080a0e url('assets/mfc-cage-arena.webp') center/cover no-repeat}
#versus:before{content:'';position:absolute;inset:0;background:#050609d9}
.vs-half{background:none;clip-path:polygon(0 0,100% 0,0 100%);isolation:isolate;overflow:hidden}
.vs-opponent{clip-path:polygon(100% 0,100% 100%,0 100%)}
.vs-half:after{display:none}
.vs-media{position:absolute;inset:0;will-change:transform,opacity}
.vs-player .vs-media{background:radial-gradient(circle at 27% 42%,#69202a 0%,#191017 48%,#07080c 78%)}
.vs-opponent .vs-media{background:radial-gradient(circle at 73% 57%,#28313a 0%,#111820 46%,#080a0e 80%)}
.vs-media:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#08090d44,transparent 48%,#08090d55);pointer-events:none}
.vs-half .vs-media img,.vs-half .vs-media canvas{position:absolute;display:block;width:57%;height:92%;max-width:none;object-fit:contain;filter:contrast(1.12) saturate(.9) drop-shadow(0 15px 28px #000b);mix-blend-mode:normal;opacity:1;transform:none;transition:none;pointer-events:none}
.vs-half .vs-media [hidden]{display:none}
.vs-player .vs-media img{left:0;top:2%;object-position:left center}
.vs-opponent .vs-media img,.vs-opponent .vs-media canvas{right:0;bottom:0;object-position:right center}
#versus .vs-opponent #vsAlonIdle{height:60%;bottom:17%}
#versus .vs-media #vsPlayerPepe,#versus .vs-media #vsOpponentPepe,#versus .vs-media #vsPlayerKadava,#versus .vs-media #vsOpponentKadava{width:auto;height:94%;aspect-ratio:672/448}
#versus .vs-player #vsPlayerPepe,#versus .vs-player #vsPlayerKadava{left:-6%;top:3%}
#versus .vs-opponent #vsOpponentPepe,#versus .vs-opponent #vsOpponentKadava{right:-6%;bottom:2%}
#versus.vs-pepe-alon .vs-opponent #vsAlonIdle{height:66%;bottom:11%;width:auto;aspect-ratio:192/288}
.vs-divider{position:absolute;inset:0;width:100%;height:100%;z-index:2;overflow:visible;pointer-events:none;filter:drop-shadow(0 0 8px #e72138)}
.vs-divider line{fill:none;stroke:#ec2535;stroke-width:5;vector-effect:non-scaling-stroke;stroke-dasharray:1;stroke-dashoffset:1}
.vs-mark{opacity:0;z-index:4}
.vs-label,.vs-half strong{opacity:0;z-index:3}
.vs-status{opacity:0}
.vs-error .vs-status{opacity:1;cursor:pointer}
.vs-enter .vs-player .vs-media{animation:vs-player-enter .65s .06s cubic-bezier(.18,.85,.2,1) both}
.vs-enter .vs-opponent .vs-media{animation:vs-opponent-enter .65s .56s cubic-bezier(.18,.85,.2,1) both}
.vs-enter .vs-divider line{animation:vs-draw .42s 1.25s ease-out forwards}
.vs-enter .vs-mark{animation:vs-impact .42s 1.67s cubic-bezier(.18,.8,.2,1) both}
.vs-enter .vs-label,.vs-enter .vs-half strong{animation:vs-name .34s 2.02s ease-out both}
.vs-enter .vs-status{animation:vs-name .25s 2.18s ease-out both}
.vs-exit{animation:vs-exit .45s ease-in both}
@keyframes vs-player-enter{from{opacity:0;transform:translate(-82%,-60%) scale(1.08);filter:blur(9px)}to{opacity:1;transform:translate(0,0) scale(1);filter:blur(0)}}
@keyframes vs-opponent-enter{from{opacity:0;transform:translate(82%,60%) scale(1.08);filter:blur(9px)}to{opacity:1;transform:translate(0,0) scale(1);filter:blur(0)}}
@keyframes vs-draw{to{stroke-dashoffset:0}}
@keyframes vs-impact{0%{opacity:0;transform:translate(-50%,-50%) skew(-9deg) scale(2.1);filter:blur(13px) brightness(3)}42%{opacity:1;filter:blur(0) brightness(2.2)}70%{transform:translate(-50%,-50%) skew(-9deg) scale(.94)}100%{opacity:1;transform:translate(-50%,-50%) skew(-9deg) scale(1);filter:brightness(1)}}
@keyframes vs-name{from{opacity:0;filter:blur(7px);translate:0 10px}to{opacity:1;filter:blur(0);translate:0 0}}
@keyframes vs-exit{to{opacity:0;filter:blur(4px)}}
@media(max-width:750px){.vs-player{clip-path:polygon(0 0,100% 0,0 100%)}.vs-opponent{clip-path:polygon(100% 0,100% 100%,0 100%)}.vs-half .vs-media img,.vs-half .vs-media canvas{width:87%;height:68%}.vs-player .vs-media img{top:3%;left:-7%;object-position:left top}.vs-opponent .vs-media img,.vs-opponent .vs-media canvas{bottom:3%;right:-7%;object-position:right bottom}.vs-player .vs-label{top:7%;left:5%}.vs-player strong{top:11%;left:5%}.vs-opponent .vs-label{bottom:19%;right:5%}.vs-opponent strong{bottom:12%;right:5%}.vs-half strong{font-size:clamp(42px,12vw,72px)}}
@media(max-width:750px){#versus .vs-opponent #vsAlonIdle{height:40%;bottom:18%}}
@media(max-width:750px){#versus .vs-player .vs-media img{left:-14%}#versus .vs-opponent .vs-media img,#versus .vs-opponent .vs-media canvas{right:2%}}
@media(max-width:750px){#versus .vs-media #vsPlayerPepe,#versus .vs-media #vsOpponentPepe,#versus .vs-media #vsPlayerKadava,#versus .vs-media #vsOpponentKadava{height:58%;width:auto}#versus .vs-player #vsPlayerPepe,#versus .vs-player #vsPlayerKadava{left:-21%;top:11%}#versus .vs-opponent #vsOpponentPepe,#versus .vs-opponent #vsOpponentKadava{right:-21%;bottom:8%}#versus.vs-pepe-alon .vs-opponent #vsAlonIdle{height:48%;width:auto;right:7%;bottom:14%}}
@media(max-height:500px) and (orientation:landscape){.vs-half .vs-media img,.vs-half .vs-media canvas{height:96%;width:55%}.vs-half strong{font-size:clamp(35px,6vw,70px)}}
@media(max-height:500px) and (orientation:landscape){#versus .vs-media #vsPlayerPepe,#versus .vs-media #vsOpponentPepe,#versus .vs-media #vsPlayerKadava,#versus .vs-media #vsOpponentKadava{height:108%;width:auto}#versus .vs-player #vsPlayerPepe,#versus .vs-player #vsPlayerKadava{left:3%;top:-4%}#versus .vs-opponent #vsOpponentPepe,#versus .vs-opponent #vsOpponentKadava{right:3%;bottom:-4%}#versus.vs-pepe-alon .vs-opponent #vsAlonIdle{height:76%;width:auto;right:16%;bottom:9%}}
@media(max-height:500px) and (orientation:landscape){html,body{height:100%;overflow:hidden}}
/* Compact the combat HUD into the top edge of a phone in landscape. */
@media(max-height:500px) and (orientation:landscape){
 #hud{top:5px;gap:9px}
 #hud .player{padding-top:0;gap:7px}
 #hud .portrait{width:46px;height:46px}
 #hud .name{height:21px;margin-bottom:3px}
 #hud .name b{font-size:17px}
 #hud .name small{font-size:6px}
 #hud .health{height:8px}
 #hud .rounds{font-size:11px;line-height:1;margin-top:3px}
 #hud .clock{min-width:42px}
 #hud .clock strong{font-size:29px;line-height:1}
 #hud .clock small{font-size:6px;margin-top:2px;letter-spacing:.4px}
}
@media(max-width:750px) and (max-height:500px) and (orientation:landscape){
 #hud .name{height:23px;grid-template-rows:14px 7px;row-gap:1px}
 #hud .name b{font-size:14px}
 #hud .portrait{width:42px;height:42px}
}
@media(prefers-reduced-motion:reduce){.vs-enter .vs-media,.vs-enter .vs-divider line,.vs-enter .vs-mark,.vs-enter .vs-label,.vs-enter .vs-half strong,.vs-enter .vs-status,.vs-exit{animation-duration:.01ms!important;animation-delay:0ms!important}}
/* Optional global match clock selection in the existing mode panel. */
.duration-picker{border:0;padding:0;margin:8px 0;color:#c2c4c6;min-width:0}.duration-picker legend{padding:0 0 5px;font:700 11px 'Barlow Condensed',Arial,sans-serif;letter-spacing:2px}.duration-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.duration-options label{cursor:pointer;min-width:0}.duration-options input{position:absolute;opacity:0;width:1px;height:1px}.duration-options span{display:flex;justify-content:center;align-items:center;gap:5px;min-height:33px;padding:4px 6px;border:1px solid #686c72;background:#14181e;color:#ececec;font:700 11px 'Barlow Condensed',Arial,sans-serif;letter-spacing:.5px;white-space:nowrap}.duration-options b{color:#aaa;font-weight:700}.duration-options input:checked+span{border-color:#f44a56;background:#6a2029;color:#fff;box-shadow:inset 0 0 0 1px #f44a56}.duration-options input:checked+span b{color:#fff}.duration-options input:focus-visible+span{outline:2px solid #fff;outline-offset:2px}
@media(max-width:440px){.duration-options span{font-size:10px;gap:3px;padding:3px}.duration-options b{font-size:9px}}
@media(max-height:500px) and (orientation:landscape){#home #modeStep{max-height:calc(100svh - 83px);overflow-y:auto;padding:8px;scrollbar-width:thin;scrollbar-color:#8f303c transparent}.mode-title{font-size:26px;margin:6px 0}.mode-card{min-height:72px;padding:8px;gap:3px}.selection-panel .difficulty{margin:4px 0}.duration-picker{margin:3px 0}.duration-picker legend{padding-bottom:2px}.duration-options span{min-height:24px;font-size:10px}}

/* The official mark is the one start control; the reveal layers above remain unchanged. */
#titleScreen #enterCage{position:absolute;z-index:4;left:50%;top:50%;width:var(--reveal-size);height:var(--reveal-size);min-height:0;padding:0;display:block;transform:translate(-50%,-50%);background:none;border:0;border-radius:50%;box-shadow:none;filter:none;opacity:1;visibility:visible;pointer-events:auto;white-space:normal;text-shadow:none;letter-spacing:normal;animation:none;transition:opacity .15s ease}
#titleScreen #enterCage .matte-logo{position:relative;display:block;width:100%;height:100%;overflow:hidden;border-radius:50%;animation:matte-logo-breathe 2.8s ease-in-out infinite;filter:drop-shadow(0 14px 25px #000b);transition:filter .12s ease}
#titleScreen #enterCage .matte-base{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain;filter:grayscale(1) brightness(.52) contrast(.7)}
#titleScreen #enterCage .matte-logo i{position:absolute;inset:0;display:block;background:#828386;pointer-events:none;-webkit-mask-image:var(--matte-mask);mask-image:var(--matte-mask);-webkit-mask-position:center;mask-position:center;-webkit-mask-size:contain;mask-size:contain;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}
#titleScreen #enterCage .matte-m{--matte-mask:url('assets/mfc-reveal-m.png')}
#titleScreen #enterCage .matte-f{--matte-mask:url('assets/mfc-reveal-f.png')}
#titleScreen #enterCage .matte-c{--matte-mask:url('assets/mfc-reveal-c.png?v=repair1')}
#titleScreen #enterCage .matte-circle{--matte-mask:url('assets/mfc-reveal-circle.png')}
#titleScreen #enterCage > span{position:absolute;top:calc(100% + 16px);left:50%;transform:translateX(-50%);font:700 clamp(13px,1.45vw,18px)/1.2 'Barlow Condensed',Impact,sans-serif;letter-spacing:.23em;color:#e7e4e4;text-shadow:0 2px 13px #000;white-space:nowrap}
#titleScreen #enterCage:hover .matte-logo{filter:brightness(1.12) drop-shadow(0 0 13px #aeb1b6)}
#titleScreen #enterCage:active .matte-logo,#titleScreen.start-pressed #enterCage .matte-logo{filter:brightness(1.25) drop-shadow(0 0 18px #d5d7da)}
#titleScreen #enterCage:focus-visible{outline:2px solid #f23543;outline-offset:12px;border-radius:50%;opacity:1}
#titleScreen.starting #enterCage{opacity:0;visibility:hidden;pointer-events:none;animation:none}
@keyframes matte-logo-breathe{0%,100%{opacity:.1}42%,58%{opacity:1}}
@media(max-width:750px){#titleScreen #enterCage > span{font-size:15px}}
@media(max-height:500px) and (orientation:landscape){#titleScreen #enterCage > span{font-size:12px;top:calc(100% + 9px)}}
@media(prefers-reduced-motion:reduce){#titleScreen #enterCage .matte-logo{animation:none;opacity:1;transition:none}}
#titleScreen.awaiting-audio #enterCage{animation:none;transform:translate(-50%,-50%);background:none;border:0;box-shadow:none;filter:none;opacity:1;visibility:visible;pointer-events:auto}

/* The beta offers one fixed arena in the existing match setup. */
.beta-arena{display:flex;align-items:center;gap:8px;margin:9px 0 7px;color:#a2a5a2;font:700 11px/1 'Barlow Condensed',Arial,sans-serif;letter-spacing:2px}.beta-arena strong{color:#ecf5dc;border:1px solid #646e60;border-radius:3px;background:#15191c;padding:7px 8px;font-size:11px;letter-spacing:1px}

#versus .vs-media #vsPlayerKadava,#versus .vs-media #vsOpponentKadava{aspect-ratio:480/336}
#versus .vs-opponent #vsOpponentKadava{transform:scaleX(-1)}
#versus .vs-opponent #vsOpponentPepe,#versus .vs-opponent #vsOpponentImage{transform:scaleX(-1)}
#versus .vs-media #vsPlayerDon,#versus .vs-media #vsOpponentDon{width:auto;height:94%;aspect-ratio:700/512}
#versus .vs-player #vsPlayerDon{left:4%;top:3%}
#versus .vs-opponent #vsOpponentDon{right:-8%;bottom:2%;transform:scaleX(-1)}
@media(max-width:750px){#versus .vs-media #vsPlayerDon,#versus .vs-media #vsOpponentDon{height:58%;width:auto}#versus .vs-player #vsPlayerDon{left:-2%;top:11%}#versus .vs-opponent #vsOpponentDon{right:-24%;bottom:8%}}

#titleScreen .title-beta {
 position:absolute;
 z-index:4;
 top:calc(50% - var(--reveal-size) / 2 - clamp(32px, 6vmin, 57px));
 left:50%;
 transform:translateX(-50%);
 margin:0;
 color:#fff;
 font:800 clamp(17px, 3.6vmin, 29px)/1.2 'Barlow Condensed', Impact, sans-serif;
 letter-spacing:.15em;
 white-space:nowrap;
}
