*{box-sizing:border-box}body{margin:0;overflow:hidden;background:#f2f2f2;font-family:Arial,sans-serif;color:#111}canvas{display:block;width:100vw;height:100dvh;touch-action:none}[hidden]{display:none!important}button,input{font:inherit}button{cursor:pointer;border:1px solid #ccc;background:#eee;color:#111;border-radius:3px;padding:10px 16px}button:is(:hover,:focus-visible,.menu-focused){background:#ddd}button:disabled{opacity:.4;cursor:default}button:focus-visible,input:focus-visible{outline:2px solid #344b36;outline-offset:3px}.overlay{position:fixed;inset:0;background:#000d;color:white;z-index:10;overflow:auto;display:flex;align-items:flex-start;justify-content:center;padding:36px 20px;overscroll-behavior:contain}.overlay main{width:min(580px,100%);margin:auto}.overlay h1{font-size:40px;font-weight:400;margin:0 0 8px}.subtitle{color:#ccc;margin:0 0 24px}.overlay h2{font-size:19px;font-weight:400}.overlay p,.overlay small{line-height:1.6}.overlay input{border:1px solid #666;background:#222;color:white;padding:9px;min-width:0;border-radius:3px}.overlay label{display:flex;gap:10px;align-items:center}.overlay .row{display:flex;gap:10px;margin:14px 0;flex-wrap:wrap}.row input{flex:1}.quiet{background:transparent;color:#ccc}.muted,small{font-size:12px;color:#aaa}#members{display:flex;gap:8px;flex-wrap:wrap}.member{border:1px solid #666;padding:7px;font-size:13px}fieldset{border:1px solid #666;display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:20px 0;padding:16px}fieldset label{font-size:12px;justify-content:space-between}fieldset input{width:70px}fieldset:disabled{opacity:.65}legend{color:#ccc;font-size:13px}#invite{display:flex;align-items:center;gap:16px;margin-top:18px}#invite img{background:white}#invite label{display:block;font-size:12px}#invite input{width:100%;margin:6px 0}#invite>div{min-width:0}details{margin-top:22px;color:#bbb;font-size:12px}summary{cursor:pointer}footer{position:fixed;bottom:0;left:0;right:0;display:flex;align-items:center;gap:10px;padding:8px 16px;background:#f2f2f2ed;font-size:11px;z-index:12;flex-wrap:wrap}footer button{font-size:11px;padding:5px 8px}footer label{display:flex;align-items:center;gap:3px}footer input[type=range]{width:70px}#connection{color:#777;margin-left:auto}header{position:fixed;top:12px;left:16px;right:16px;display:flex;justify-content:space-between;pointer-events:none}#partyHud{display:flex;gap:12px;flex-wrap:wrap;max-width:70%}.health{font-size:11px}.health progress{width:72px;height:5px;display:block;accent-color:#222}.health span{display:block;margin-bottom:4px}#roundHud{text-align:right;font-size:13px;line-height:1.6}#ballot{position:fixed;top:95px;left:50%;transform:translateX(-50%);padding:12px 16px;background:#fffffff2;border:1px solid #ddd;text-align:center;width:min(450px,90vw);z-index:3}#ballot strong,#ballot span,#ballot small{display:block}#ballot small{color:#777;font-size:10px;margin-top:5px}#voteButtons{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;margin-top:8px}#voteButtons button{font-size:12px;padding:7px}#message{position:fixed;left:50%;transform:translateX(-50%);bottom:80px;background:#222e;color:white;padding:8px 14px;z-index:30;font-size:13px;max-width:90vw;text-align:center}#message:empty{display:none}#touchControls{position:fixed;bottom:60px;left:0;right:0;pointer-events:none;display:none}#stick{position:absolute;bottom:0;left:16px;width:120px;height:120px;border-radius:50%;background:#0002;pointer-events:auto;touch-action:none}#knob{position:absolute;left:30px;top:30px;width:60px;height:60px;border-radius:50%;background:#ccc;pointer-events:none}#touchButtons{position:absolute;right:12px;bottom:0;display:grid;grid-template-columns:repeat(3,52px);gap:6px;pointer-events:auto}#touchButtons button{width:52px;height:46px;border:0;border-radius:24px;background:#ddd;padding:0;font-size:11px;touch-action:none}#touchButtons button:nth-child(-n+2){background:red;color:white}#touchButtons button:last-child{grid-column:1/4;width:auto;height:30px}#roundResult{font-size:20px;margin:15px 0}.overlay main{padding-bottom:55px}@media(pointer:coarse){#touchControls{display:block}#connection{display:none}}@media(max-width:520px){.overlay{padding:24px 16px}.overlay h1{font-size:32px}fieldset{grid-template-columns:1fr}#invite{align-items:flex-start}#invite img{width:112px;height:112px}footer{gap:5px;padding:6px}footer label{font-size:10px}header{left:10px;right:10px}#partyHud{gap:8px}.health progress{width:50px}#roundHud{font-size:11px}#ballot{top:105px}}@media(max-height:500px){.overlay{padding-top:15px}#touchControls{bottom:45px}#stick{width:100px;height:100px}#knob{left:20px;top:20px}#ballot{top:60px;padding:7px}#ballot small{display:none}}

/* Thumb-sized controls: a floating movement origin and a spaced action arc. */
#touchControls{bottom:calc(56px + env(safe-area-inset-bottom,0px));height:214px;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
#stick{left:max(10px,env(safe-area-inset-left,0px));width:148px;height:160px;bottom:0;background:none;border-radius:32px;touch-action:none}
#stickBase{position:absolute;left:10px;top:10px;width:128px;height:128px;border:1px solid #0002;background:#00000008;border-radius:50%;pointer-events:none}
#knob{left:37px;top:37px;width:54px;height:54px;background:#3333;border:1px solid #0001;transition:transform 90ms ease-out,background 80ms}
#stick.is-pressed #knob{transition:none;background:#3337}.stick-hint{position:absolute;bottom:1px;left:0;right:0;text-align:center;font-size:9px;letter-spacing:2px;color:#999;pointer-events:none}
#touchButtons{right:max(12px,env(safe-area-inset-right,0px));width:206px;height:210px;display:block;pointer-events:none}
#touchButtons .combat-key{position:absolute;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:0;border:1px solid #00000018;background:#e5e5e5e8;color:#333;border-radius:50%;touch-action:none;pointer-events:auto;-webkit-tap-highlight-color:transparent;box-shadow:0 3px 0 #00000016;transition:transform 65ms,background 65ms,box-shadow 65ms}
#touchButtons .combat-key svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}#touchButtons .combat-key span{font-size:10px;pointer-events:none}
#touchButtons .key-punch{right:0;bottom:16px;width:72px;height:72px;background:#ed2525;color:white;border-color:#d71818}
#touchButtons .key-kick{right:0;bottom:108px;width:64px;height:64px;background:#f05252;color:white;border-color:#df3636}
#touchButtons .key-grab{left:76px;top:0;width:52px;height:52px}
#touchButtons .key-dash{left:4px;top:62px;width:56px;height:56px}
#touchButtons .key-slide{left:0;bottom:21px;width:52px;height:52px}
#touchButtons .key-block{left:62px;bottom:0;width:58px;height:58px;grid-column:auto}
#touchButtons .combat-key.is-pressed{transform:translateY(3px) scale(.94);box-shadow:0 0 0 #0000;background:#bbb}#touchButtons .key-punch.is-pressed,#touchButtons .key-kick.is-pressed{background:#bd1717}
#ballot{top:max(84px,calc(env(safe-area-inset-top,0px) + 76px));right:max(14px,env(safe-area-inset-right,0px));left:auto;transform:none;width:76px;padding:0;background:none;border:0;text-align:center;z-index:4}
#voteClock{position:relative;width:68px;height:68px;padding:0;border:0;border-radius:50%;background:#f2f2f2ee;color:#222;touch-action:manipulation;-webkit-tap-highlight-color:transparent;box-shadow:0 2px 10px #0000000a}
#voteClock svg{position:absolute;inset:0;width:100%;height:100%;transform:rotate(-90deg);fill:none;stroke-width:3}.clock-track{stroke:#ddd}#voteArc{stroke:#e22;stroke-dasharray:100;stroke-dashoffset:0;stroke-linecap:round;transition:stroke-dashoffset 100ms linear}
#ballot #voteClockLabel{position:absolute;top:17px;left:0;right:0;font-size:15px;font-weight:bold}#ballot #voteSecondsLeft{position:absolute;top:36px;left:0;right:0;font-size:10px;color:#777}
#voteClock:disabled{opacity:1;color:#777}#voteClock.voted #voteArc{stroke:#444}.vote-caption{margin-top:4px}#ballot #voteTitle{font-size:10px;font-weight:normal}#ballot #voteCount{font-size:10px;color:#777;margin-top:3px}
#voteButtons{position:absolute;right:0;top:108px;display:flex;flex-direction:column;gap:5px;margin:0}#voteButtons button{min-height:44px;min-width:90px;font-size:11px;background:#f2f2f2f5;padding:7px}
body.touch-play footer{flex-wrap:nowrap;font-size:10px;padding-bottom:max(6px,env(safe-area-inset-bottom,0px))}body.touch-play #connection{display:none}body.touch-play footer label{font-size:0}body.touch-play footer label input{font-size:12px}body.touch-play footer label:has(#haptics){font-size:10px}body.touch-play #message{bottom:290px}
@media(any-pointer:coarse),(max-width:600px){#touchControls{display:block}}
@media(max-width:374px){#stick{width:128px;height:145px;left:6px}#stickBase{width:112px;height:112px;left:8px;top:12px}#knob{left:29px;top:29px}#touchButtons{transform:scale(.9);transform-origin:bottom right;right:6px}}
@media(max-height:500px){#touchControls{bottom:calc(44px + env(safe-area-inset-bottom,0px));height:190px}#touchButtons{transform:scale(.88);transform-origin:bottom right}#stick{height:140px}#ballot{top:64px;right:max(12px,env(safe-area-inset-right,0px))}body.touch-play #message{bottom:240px}}
@media(prefers-reduced-motion:reduce){#touchButtons .combat-key,#voteArc,#knob{transition:none}}
#touchButtons button.key-block{width:58px;height:58px;grid-column:auto;background:#e5e5e5e8;color:#333}
#touchButtons button.key-punch{background:#ed2525}#touchButtons button.key-kick{background:#f05252}
#touchButtons button.key-block.is-pressed{background:#bbb}#touchButtons button.key-punch.is-pressed,#touchButtons button.key-kick.is-pressed{background:#bd1717}
@media(max-width:374px){#stick{width:112px;height:132px}#stickBase{width:96px;height:96px}#knob{left:21px;top:21px}body.touch-play footer label:has(#haptics){font-size:0}}

/* Two rising arcade rows; full-size round caps and readable action names. */
#touchButtons{width:200px;height:176px}
#touchButtons button.combat-key{width:60px;height:60px;right:auto;bottom:auto;gap:0;border:2px solid #00000018;border-radius:50%;background:#e4e4e4;color:#333;box-shadow:0 4px 0 #bcbcbc,inset 0 2px 0 #ffffffa8;grid-column:auto}
#touchButtons button.combat-key span{font-size:11px;font-weight:700;letter-spacing:.3px;text-transform:uppercase}
#touchButtons button.key-punch{left:0;top:34px;background:#ed2525;color:#fff;border-color:#d81e1e;box-shadow:0 4px 0 #a71717,inset 0 2px 0 #ffffff40}
#touchButtons button.key-kick{left:70px;top:17px;background:#ed2525;color:#fff;border-color:#d81e1e;box-shadow:0 4px 0 #a71717,inset 0 2px 0 #ffffff40}
#touchButtons button.key-grab{left:140px;top:0;background:#444;color:#fff;border-color:#333;box-shadow:0 4px 0 #222,inset 0 2px 0 #ffffff30}
#touchButtons button.key-dash{left:0;top:108px}
#touchButtons button.key-slide{left:70px;top:91px}
#touchButtons button.key-block{left:140px;top:74px}
#touchButtons button.combat-key.is-pressed{transform:translateY(4px) scale(.97);box-shadow:inset 0 2px 3px #0002;background:#ccc}
#touchButtons button.key-punch.is-pressed,#touchButtons button.key-kick.is-pressed{background:#c31c1c}#touchButtons button.key-grab.is-pressed{background:#292929}

/* Mobile viewport, safe edges, and comfortable utility targets. */
html,body{overscroll-behavior:none}canvas{width:100%;height:100dvh}button{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
header{top:calc(12px + env(safe-area-inset-top,0px));left:calc(12px + env(safe-area-inset-left,0px));right:calc(12px + env(safe-area-inset-right,0px))}
.overlay{max-height:var(--visible-height,100dvh);padding-top:calc(24px + env(safe-area-inset-top,0px));padding-left:calc(16px + env(safe-area-inset-left,0px));padding-right:calc(16px + env(safe-area-inset-right,0px))}.overlay main{padding-bottom:calc(var(--footer-height,60px) + 20px)}
.overlay input{font-size:16px;min-height:48px}.overlay button,summary{min-height:48px}summary{padding-block:14px}
footer{padding-left:calc(8px + env(safe-area-inset-left,0px));padding-right:calc(8px + env(safe-area-inset-right,0px));padding-bottom:max(6px,env(safe-area-inset-bottom,0px))}
#touchControls{bottom:calc(var(--footer-height,60px) + 14px)}
#stick{left:calc(12px + env(safe-area-inset-left,0px))}#touchButtons{right:calc(12px + env(safe-area-inset-right,0px))}
@media(any-pointer:coarse),(max-width:600px){
 footer,body.touch-play footer{gap:6px;flex-wrap:nowrap;padding-top:4px;font-size:10px}footer button{min-height:48px;min-width:48px;padding:6px;font-size:11px;flex-shrink:0}footer label,body.touch-play footer label{min-height:48px;font-size:0;justify-content:center}footer label:has(#haptics),body.touch-play footer label:has(#haptics){min-width:48px;font-size:0}footer input[type=checkbox]{width:22px;height:22px}footer input[type=range]{width:64px;height:48px;margin:0}#connection{display:none}
 #voteButtons button{min-height:48px}#partyHud{max-width:65%}.health span{max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}
@media(max-width:374px){#stick{left:calc(6px + env(safe-area-inset-left,0px))}#touchButtons{right:calc(6px + env(safe-area-inset-right,0px))}footer,body.touch-play footer{gap:3px}footer input[type=range]{width:52px}}
@media(hover:none){button:is(:hover,:focus-visible,.menu-focused){background:#eee}.quiet:hover{background:transparent}}

@media(any-pointer:coarse),(max-width:600px){footer label:has(#haptics),body.touch-play footer label:has(#haptics){font-size:10px;gap:5px}}

#preferences{position:fixed;z-index:25;top:calc(8px + env(safe-area-inset-top,0px));left:50%;transform:translateX(-50%);width:min(370px,calc(100% - 16px));max-height:48dvh;overflow:auto;background:#fafafaf5;border:1px solid #bbb;box-shadow:0 4px 24px #0002;padding:12px;border-radius:8px;font-size:12px}#preferences h2{margin:0 0 6px;font-size:18px}#preferences p{margin:6px 0}#preferences label{display:flex;align-items:center;gap:8px;min-height:42px}#preferences input{flex:1;min-width:0;height:40px}#preferences select{min-height:40px;flex:1;font-size:16px;min-width:0}#preferences button{min-height:48px}#preferences small{color:#666}.editing-controls #menu,.editing-controls #pausePanel{visibility:hidden}.editing-controls #touchControls{display:block!important;z-index:24}.editing-controls .combat-key,.editing-controls #stick{outline:2px dashed #777;outline-offset:3px}.editing-controls #touchButtons{transform:none!important}
body:has(#touchButtons button[style*="fixed"]) #touchButtons{transform:none!important}

#pauseScores,#resultScores{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:16px 0;font-size:13px}#resultScores{background:#eee;padding:12px;border-radius:3px}.health span{max-width:180px}
/* Keep the mobile ballot in the utility bar, away from combat thumbs. */
@media(any-pointer:coarse),(max-width:600px){
 body:has(#ballot:not([hidden])) footer{padding-right:calc(68px + env(safe-area-inset-right,0px))}body:has(#ballot:not([hidden])) footer label:has(#volume){display:none}
 #ballot{top:auto;bottom:max(6px,env(safe-area-inset-bottom,0px));right:calc(8px + env(safe-area-inset-right,0px));width:48px;z-index:13}#voteClock{width:48px;height:48px}#ballot #voteClockLabel{top:10px;font-size:12px}#ballot #voteSecondsLeft{top:26px;font-size:9px}#ballot .vote-caption{display:none}#voteButtons{top:auto;bottom:58px}#partyHud{gap:6px}.health{font-size:10px}.health span{max-width:165px}
}
@media(any-pointer:coarse),(max-width:600px){#ballot #voteButtons{display:none}#roundHud{max-width:44%}}

.health progress.strength-meter{accent-color:#a16c27;height:4px;margin-top:3px}
#splash{position:fixed;inset:0;z-index:100;background:#f2f2f2;display:grid;place-items:center;overflow:hidden;animation:intro-wipe .55s 2.6s cubic-bezier(.65,0,.35,1) both}.intro-scene{width:min(440px,90vw);text-align:center;animation:intro-reveal .3s ease-out}.intro-scene h1{font-size:42px;font-weight:400;letter-spacing:-2px;margin:0}.intro-scene p{font-size:12px;color:#777}.intro-scene svg{width:100%;height:auto;overflow:visible;fill:#222;stroke:#222;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}.intro-scene path{fill:none}.intro-floor{stroke:#ddd;stroke-width:1}.intro-left{animation:intro-left 2.5s both}.intro-right{fill:#e22;stroke:#e22;animation:intro-right 2.5s both}.intro-punch{transform-origin:0 -32px;animation:intro-punch 2.5s both}.intro-kick{transform-origin:0 -6px;animation:intro-kick 2.5s both}.intro-impact{stroke:#999;animation:intro-impact 2.5s both}#skipIntro{position:absolute;right:calc(20px + env(safe-area-inset-right,0px));bottom:calc(20px + env(safe-area-inset-bottom,0px));min-height:48px;background:transparent;color:#666;border-color:#ddd}
@keyframes intro-left{0%{transform:translate(80px,103px)}30%{transform:translate(162px,103px)}44%{transform:translate(172px,103px) rotate(7deg)}60%{transform:translate(148px,103px) rotate(-10deg)}76%,100%{transform:translate(157px,103px)}}
@keyframes intro-right{0%{transform:translate(320px,103px)}30%{transform:translate(232px,103px)}44%{transform:translate(245px,103px) rotate(12deg)}60%{transform:translate(223px,103px) rotate(8deg)}76%,100%{transform:translate(232px,103px)}}
@keyframes intro-punch{0%,28%,52%,100%{transform:rotate(0)}39%,44%{transform:rotate(-35deg) scaleX(1.5)}}
@keyframes intro-kick{0%,46%,80%,100%{transform:rotate(0)}58%,65%{transform:rotate(85deg) scaleY(1.35)}}
@keyframes intro-impact{0%,36%,48%,100%{opacity:0}39%,44%{opacity:1}}
@keyframes intro-wipe{from{clip-path:inset(0)}to{clip-path:inset(0 0 0 100%)}}
@keyframes intro-reveal{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){#splash{animation:none}.intro-scene{animation:none}.intro-left{animation:none;transform:translate(155px,103px)}.intro-right{animation:none;transform:translate(240px,103px)}.intro-punch,.intro-kick{animation:none}.intro-impact{display:none}}
/* Apply at the surface as well as each button, including gaps and labels. */
#arena,#touchControls,#touchControls *{touch-action:none;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}

#pauseScores button{min-height:48px;text-align:left;background:#ffffff0b;color:#eee;border-color:#666;font-size:13px;padding:8px}#renameForm{margin:16px 0;padding:12px;border:1px solid #666;border-radius:4px}#renameInput{width:100%;min-width:0}

/* Consistent menu targets and controller focus, preserving the sparse style. */
.overlay button,#preferences button{min-height:48px}.home-actions{display:grid!important;grid-template-columns:1fr 1fr}.home-actions button{text-align:left;padding:14px}.pause-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:16px 0}#resume,#start{background:#eee;color:#111;font-weight:bold}#exitPause,#leave{border-color:#666;background:transparent;color:#bbb}button:is(:active,.menu-pressed){filter:brightness(.9)}button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible,body.pad-menu :focus{outline:3px solid #344b36!important;outline-offset:3px}select{font:inherit}#padKeyboard{z-index:60}#padKeyboard main{max-width:480px}#padText{display:block;min-height:48px;border:1px solid #777;padding:12px;margin-bottom:16px;overflow-wrap:anywhere}#padKeys{display:grid;grid-template-columns:repeat(6,1fr);gap:8px}#padKeys button{padding:4px;min-width:44px}#padHint{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(var(--footer-height,58px) + 8px);max-width:95vw;width:max-content;background:#222;color:#ddd;border:1px solid #555;padding:7px 10px;font-size:11px;z-index:70;pointer-events:none}#padKeyboard main{padding-bottom:110px}#preferences label{min-height:48px}#preferences select,#preferences input{min-height:44px}#preferences{scroll-padding:10px}.overlay{scroll-padding-block:24px 110px}
@media(max-width:374px){.home-actions,.pause-actions{grid-template-columns:1fr}#padKeys{gap:5px}#padHint{font-size:10px}}

.health progress.speed-meter{accent-color:#247bc1;height:4px;margin-top:3px}.health small{font:9px monospace;display:block;color:#555}

/* A quiet illustrated title screen, with roomy, tactile menu controls. */
#menu{background:#f8f8f4;color:#29322b;padding:32px max(24px,env(safe-area-inset-right,0px)) calc(var(--footer-height,60px) + 24px);font-family:'Avenir Next','Trebuchet MS',sans-serif}
#menu main{width:min(1000px,100%);display:grid;grid-template-columns:1fr 1fr;gap:8px 68px;padding:24px 0;margin:auto}
.landing-hero{grid-column:1;grid-row:1/5;align-self:center;text-align:center;position:relative}.edition{display:inline-block;font-size:12px;font-weight:800;letter-spacing:3px;color:#9a573f;margin-bottom:16px}
#menu h1,.intro-scene h1{font-size:clamp(46px,5vw,72px);font-weight:900;letter-spacing:-4px;line-height:1;transform:rotate(-3deg);color:#29322b;margin:0;white-space:nowrap}#menu h1 span,.intro-scene h1 span{color:#d34a3e}#menu h1 i,.intro-scene h1 i{font-style:normal;display:inline-block;transform:rotate(8deg);color:#d34a3e}.landing-art{width:100%;max-width:420px;display:block;margin:18px auto 0}.hero-caption{font-size:12px!important;color:#74816e!important;letter-spacing:1px;margin:4px 0}
#home{grid-column:2;align-self:center}#menu .name-field{display:flex;flex-direction:column;align-items:stretch;gap:8px;font-size:10px;font-weight:800;letter-spacing:1.8px;color:#707968;margin-bottom:20px}
#menu input{background:#ffffff;border:1.5px solid #bfc4b4;border-radius:10px;color:#29322b;padding:12px 14px;min-height:48px;letter-spacing:0;box-shadow:0 2px 0 #d9ddcf;font-weight:500}
#menu button{border:1.5px solid #b4bdac;border-radius:12px;background:#ffffff;color:#29322b;min-height:56px;padding:15px 16px;font-weight:700;font-size:14px;line-height:1.25;box-shadow:0 3px 0 #ccd3bf;transition:transform .12s,background .12s,box-shadow .12s}
#menu button:is(:hover,:focus-visible,.menu-focused){background:#eaf0df;transform:translateY(-1px)}#menu button:is(:active,.menu-pressed){transform:translateY(3px);box-shadow:0 0 0 transparent}#menu .home-actions{gap:12px;margin:0 0 18px}#menu #local{grid-column:1/-1;position:relative;background:#d94e40;color:#fffdf5;border-color:#b63c33;box-shadow:0 4px 0 #a33e34;font-size:20px;padding:17px 20px;text-align:left}#menu #local::after{content:'→';position:absolute;right:20px;top:23px;font-size:24px;font-weight:400}#menu #local:is(:hover,:focus-visible,.menu-focused){background:#c74639}.button-note{display:block;font-size:11px;font-weight:500;margin-top:5px;color:#ffe7d4;letter-spacing:.3px}
#menu #customizeHome{grid-column:1/-1;background:transparent;box-shadow:none;border-color:#d5d9ca;min-height:44px;padding:10px 14px;font-size:12px;color:#64725c;text-align:center}#menu .invite-entry{gap:8px;flex-wrap:nowrap;margin:0}#menu .invite-entry input{width:0;flex:1;font-size:14px;min-height:48px}#menu #join{min-height:48px;padding:10px 14px;font-size:12px}#menu #serverHint{font-size:11px;color:#7a8172;line-height:1.6;margin:12px 0 4px}
#menu #instructions{grid-column:2;color:#65715f;font-size:12px;margin:10px 0 0;border-top:1px solid #d9ddcf}#menu summary{padding:12px 4px;min-height:44px;font-weight:700}#menu .control-guide{display:grid;grid-template-columns:1fr 1fr;gap:9px 16px;padding:8px 2px 14px}#menu .control-guide span{display:flex;justify-content:space-between;align-items:center;gap:5px;font-size:11px}#menu kbd{font:10px monospace;background:#e6e9db;border:1px solid #cbd2be;border-radius:4px;padding:3px 5px;white-space:nowrap}.guide-touch{padding:6px 0 16px;line-height:1.8;font-size:12px}
#menu .guide-pad,#menu .guide-touch{display:none}body[data-controls=pad] #menu .guide-pad{display:grid}body[data-controls=pad] #menu .guide-keyboard{display:none}body[data-controls=touch] #menu .guide-touch{display:block}body[data-controls=touch] #menu .guide-keyboard{display:none}.input-hint{grid-column:2;font-size:10px!important;line-height:1.6;color:#87907c;margin:4px 0 0;min-height:16px}
body:has(#menu:not([hidden])) footer{background:#f8f8f4f5;border-top:1px solid #e2e4d7;color:#69715f}body:has(#menu:not([hidden])) footer button{background:#e9edde;border-color:#d1d8c6;color:#4b5945;border-radius:8px}body:has(#menu:not([hidden])) #connection{color:#8a927f}
#menu main:has(#home[hidden]){display:block;width:min(620px,100%)}#menu main:has(#home[hidden]) .landing-hero{display:none}#menu #lobbyTitle{font-weight:800;font-size:30px;letter-spacing:-1px;margin-top:0}#menu .member{border-color:#c6ceba;background:#e6ecdc;border-radius:8px}#menu #managerNote,#menu #localHelp,#menu #inviteNote{color:#77816c;font-size:12px}#menu fieldset{border:1px solid #cbd2be;border-radius:12px;margin:22px 0}#menu legend{color:#77816c}#menu #start{background:#d94e40;color:white;border-color:#b63c33;margin-right:10px}#menu #leave{background:transparent;color:#77816c;box-shadow:none}#menu #roundResult{color:#a24b3c}#menu #resultScores small{display:block;color:#7b846e;padding:4px 0 12px}
body.pad-menu #menu :focus{outline:3px solid #253f30!important;outline-offset:5px;box-shadow:0 0 0 8px #e9bd6840}#padHint{border-radius:9px;background:#29372b;color:#f4f1dc;border-color:#4c5e46}
/* Menu sizing follows the viewport, never the current input device. */
@media(max-width:700px){#menu{padding:22px 22px calc(var(--footer-height,60px) + 20px)}#menu main{display:block;max-width:420px;padding:0}.landing-hero{margin:0 auto 18px}.edition{font-size:10px;margin-bottom:9px;letter-spacing:2.5px}#menu h1,.intro-scene h1{font-size:48px;letter-spacing:-3px}.landing-art{max-width:260px;height:124px;margin:4px auto 0}.hero-caption{display:none}#menu .name-field{margin-bottom:16px;gap:6px}#menu .home-actions{gap:10px;margin-bottom:14px}#menu button{min-height:54px;font-size:13px;padding:13px 12px}#menu #local{font-size:18px;padding:14px 16px;min-height:70px}#menu #local::after{top:20px;right:16px}#menu #customizeHome{min-height:44px}#menu #instructions{margin-top:12px}.input-hint{font-size:10px!important;margin-bottom:4px}#menu #serverHint{font-size:10px;margin-top:11px}#menu .invite-entry input{font-size:16px}}
@media(max-width:374px){#menu{padding-left:16px;padding-right:16px}.landing-art{height:96px}.landing-hero{margin-bottom:12px}#menu h1,.intro-scene h1{font-size:43px}#menu .home-actions{grid-template-columns:1fr 1fr}#menu button{font-size:12px}}
@media(max-height:560px) and (min-width:701px){#menu{padding-top:18px}#menu main{gap:8px 40px;max-width:900px}.landing-art{max-height:160px;margin-top:8px}#menu h1,.intro-scene h1{font-size:50px}.edition{margin-bottom:10px}#menu .name-field{margin-bottom:12px}#menu .home-actions{gap:8px;margin-bottom:12px}#menu button{min-height:48px;padding:12px}#menu #local{padding:12px 16px;font-size:18px}#menu #local::after{top:17px}.hero-caption{display:none}}
@media(prefers-reduced-motion:reduce){#menu button{transition:none}}
@media(max-height:450px) and (min-width:701px){#menu{padding-top:12px;padding-bottom:calc(var(--footer-height,40px) + 12px)}#menu main{padding:0;gap:4px 36px;align-items:start}.landing-hero{grid-row:1;align-self:end}.landing-art{height:112px}#menu h1,.intro-scene h1{font-size:44px}#home{grid-row:1/4}#menu #instructions{grid-column:1;grid-row:2;margin-top:0}#menu .input-hint{grid-column:1;grid-row:3}#menu .name-field{margin-bottom:10px;gap:4px}#menu input{min-height:44px;padding:10px 12px}#menu button{min-height:44px;padding:10px}#menu #local{min-height:48px;padding:12px 16px}#menu #local::after{top:10px}.button-note{display:none}#menu .home-actions{gap:8px;margin-bottom:10px}#menu .invite-entry input,#menu #join{min-height:44px}#menu #serverHint{margin-top:8px;font-size:10px}}

#gamepadSettings{border:1px solid #d6dcd1;border-radius:10px;padding:8px;margin:12px 0;background:#fff}#gamepadSettings summary{font-weight:bold;min-height:44px;padding:12px 4px}#padBindings{display:grid;gap:6px}#padBindings>div{display:flex;align-items:center;justify-content:space-between;gap:12px}#padBindings button{min-width:145px;min-height:44px;border-radius:8px;background:#f0f3ed;color:#29322b;border:1px solid #bcc8b8}#padBindStatus{color:#335d3d;font-weight:bold}

#gamepadSettings{color:#29322b}.pad-capture-message{position:sticky;top:0;z-index:2;background:#fff}.pad-capture-message:has(#cancelPadBind:not([hidden])){padding:8px;border-bottom:1px solid #bcc8b8;margin-bottom:8px}

#runOver{z-index:40;background:#f8f8f4f5;color:#29322b;text-align:center;animation:end-reveal .3s ease-out}#runOver main{width:min(520px,100%);padding:24px 12px}#runOver h1{font:900 clamp(42px,9vw,72px)/1 'Avenir Next',system-ui;letter-spacing:-3px;margin:10px 0 16px;color:#cf4a40;transform:rotate(-2deg)}.end-mark{width:58px;height:58px;line-height:51px;border:3px solid #29322b;border-radius:50%;margin:auto;font-size:53px;font-weight:300;transform:rotate(-8deg)}.end-eyebrow{font-size:10px;letter-spacing:2px;margin:18px 0 0}#runOverSummary{font-size:18px;margin-bottom:26px}#runOverScores{border-top:1px solid #d4dbcf;border-bottom:1px solid #d4dbcf;padding:8px 0}.end-score{display:grid;grid-template-columns:1fr auto;gap:3px 20px;text-align:left;padding:9px 10px;font-size:16px}.end-score small{grid-column:1/-1;color:#728069;font-size:11px}#runOverManager{font-size:12px;color:#66735e;margin:22px 0 12px}.end-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px}#runOver button{border-radius:12px;min-height:54px;font-weight:700;background:white;border:1px solid #b7c1b0;color:#29322b}#runOver #playAgain{background:#d94e40;color:white;border-color:#b63c33}#runOver button:disabled{opacity:.5}@keyframes end-reveal{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}@media(prefers-reduced-motion:reduce){#runOver{animation:none}}@media(max-height:500px){#runOver main{padding-top:8px}.end-mark{display:none}#runOver h1{font-size:40px;margin:8px 0}#runOverSummary{margin:10px 0}.end-score{padding:5px 10px}}

.health-track{position:relative}.health-track progress{display:block}.health-knock-mark{position:absolute;left:30%;height:9px;top:0;width:2px;background:#be812d;pointer-events:none}.endurance-hint{color:#856432!important;font-size:9px!important}#upgradePanel{z-index:39;background:#f8f8f4f5;color:#29322b;text-align:center}#upgradePanel main{width:min(570px,100%);padding:20px 10px}#upgradePanel h2{font-size:28px;margin:12px 0}#upgradePanel p{color:#65745c;font-size:13px}#upgradeChoices{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:22px 0}#upgradeChoices button{display:flex;flex-direction:column;align-items:flex-start;gap:5px;min-height:100px;padding:14px;text-align:left;border-radius:12px;background:#fff;color:#29322b;border:1px solid #bdc9b6;box-shadow:0 3px 0 #d6decf}#upgradeChoices button:last-child{grid-column:1/-1}#upgradeChoices button strong{font-size:18px}#upgradeChoices button span{font-size:12px}#upgradeChoices button small{font-size:10px;color:#718267}#upgradeChoices button:disabled{opacity:.45}#upgradeCountdown{color:#8a6541}@media(max-height:500px){#upgradeChoices{grid-template-columns:repeat(3,1fr);margin:12px 0}#upgradeChoices button{min-height:80px;padding:10px}#upgradeChoices button:last-child{grid-column:auto}#upgradePanel h2{margin:6px 0}}

/* Ink, paper and small fighter illustrations, shared with the landing menu. */
#upgradePanel{background:#f8f8f4fa;background-image:radial-gradient(#52604612 .7px,transparent .7px);background-size:9px 9px}#upgradePanel main{width:min(680px,100%);padding:12px 8px 24px}#upgradePanel h1{font-size:clamp(32px,5vw,52px);font-weight:900;letter-spacing:-2px;transform:rotate(-2deg);margin:2px 0 12px}#upgradePanel h2{font-size:18px;font-weight:700;margin:10px 0 4px}#upgradePanel .end-eyebrow{letter-spacing:4px;font-weight:800;font-size:11px;color:#be513c}#upgradePanel .wave-art{width:190px;height:80px;color:#29322b;fill:none;stroke:currentColor;stroke-width:4;stroke-linecap:round;stroke-linejoin:round}#upgradePanel .wave-rays{stroke:#be513c}#openUpgrades{margin:20px 0 26px;background:#d6503a;color:white;border:2px solid #29322b;border-radius:8px 14px 7px 12px;box-shadow:4px 4px 0 #29322b;padding:17px 25px;font-weight:800;transform:rotate(-1deg)}#upgradeCountdown{display:block;color:#65745c;font-size:12px}#upgradeChoices{gap:12px;margin:18px 0 24px}#upgradeChoices button{position:relative;min-height:118px;padding:15px 14px 14px 78px;border:2px solid #344032;border-radius:9px 15px 8px 13px;box-shadow:3px 4px 0 #344032;background:#fffffc;transition:transform 100ms,box-shadow 100ms}#upgradeChoices button:is(:hover,:focus-visible,.menu-focused){background:#eef1e8;transform:translateY(-2px) rotate(-1deg)}#upgradeChoices button:is(:active,.menu-pressed){transform:translate(2px,3px);box-shadow:1px 1px 0 #344032}#upgradeChoices button strong{font-weight:900}#upgradeChoices button small{letter-spacing:1px;text-transform:uppercase}.upgrade-icon{position:absolute;left:14px;top:22px;width:50px;height:50px;fill:none;stroke:currentColor;stroke-width:3.5;stroke-linecap:round;stroke-linejoin:round;color:#526f50}#upgradeChoices [data-stat=strength] .upgrade-icon{color:#bc523e}#upgradeChoices [data-stat=speed] .upgrade-icon{color:#47768a}#upgradeChoices [data-stat=resilience] .upgrade-icon{color:#92713d}#upgradeChoices button:last-child{grid-column:1/-1}.wave-hero{transform-origin:120px 80px;animation:wave-breathe 2.4s ease-in-out infinite}@keyframes wave-breathe{50%{transform:rotate(3deg) translateY(-2px)}}@media(max-width:520px){#upgradePanel{padding:18px 16px}#upgradeChoices button{padding:62px 12px 12px;min-height:146px}#upgradeChoices .upgrade-icon{top:10px;left:12px;width:43px;height:43px}#upgradeChoices button:last-child{min-height:100px;padding:16px 12px 12px 72px}#upgradePanel .wave-art{height:60px}#upgradePanel h1{font-size:34px}#upgradeChoices button strong{font-size:17px}}@media(max-height:500px){#upgradePanel .wave-art{display:none}#upgradePanel main{padding:0}#upgradePanel h1{font-size:30px;margin:0}#upgradePanel h2,#upgradePanel p{margin:4px}#upgradeChoices{grid-template-columns:repeat(5,1fr);gap:8px;margin:12px 0}#upgradeChoices button,#upgradeChoices button:last-child{grid-column:auto;min-height:142px;padding:52px 9px 8px}#upgradeChoices .upgrade-icon{width:36px;height:36px;top:8px;left:9px}#upgradeChoices button strong{font-size:15px}#upgradeChoices button span{font-size:11px}#upgradeCountdown{font-size:10px}}@media(prefers-reduced-motion:reduce){.wave-hero{animation:none}#upgradeChoices button{transition:none}}
/* Run currency and a brief, confirmed purchase reaction. */
#upgradeWallet{display:flex;justify-content:center;align-items:center;gap:10px;flex-wrap:wrap;margin:10px 0}#upgradeBalance{font-size:19px;font-weight:900;color:#745829;font-variant-numeric:tabular-nums}#enhanceUpgrade{border:2px solid #344032;border-radius:8px 12px 7px 10px;background:#fffdf5;color:#344032;font-size:12px;font-weight:800;padding:10px 14px;min-height:44px;box-shadow:2px 3px 0 #344032}#enhanceUpgrade[aria-pressed=true]{background:#344032;color:#fffdf5}#upgradeWallet small{flex-basis:100%;color:#64705e;font-size:11px}#upgradeReceipt{position:relative;margin:28px auto;min-height:190px;max-width:400px;padding:24px;background:#fffdf5;border:3px solid #344032;border-radius:12px 22px 10px 18px;box-shadow:6px 7px 0 #344032;display:flex;align-items:center;flex-direction:column;gap:9px;overflow:hidden}#upgradeReceipt .upgrade-icon{position:static;width:64px;height:64px}#upgradeReceipt strong{font-size:28px;font-weight:900;letter-spacing:-1px;color:#bc523e}#upgradeReceipt span{font-weight:700}#upgradeReceipt small{color:#65745c}#upgradeReceipt:before,#upgradeReceipt:after{content:'✦';position:absolute;font-size:48px;color:#c99b45;top:16px;left:18px}#upgradeReceipt:after{left:auto;right:18px;top:70px;font-size:30px}.purchase-burst{animation:upgrade-stamp .45s cubic-bezier(.2,.8,.3,1)}.purchase-burst:before,.purchase-burst:after{animation:upgrade-spark .7s ease-out}@keyframes upgrade-stamp{0%{transform:scale(.86) rotate(-4deg)}55%{transform:scale(1.04) rotate(1deg)}100%{transform:scale(1)}}@keyframes upgrade-spark{0%{transform:scale(0) rotate(-90deg);opacity:0}60%{transform:scale(1.4);opacity:1}100%{transform:scale(1)}}
/* Eight readable fighter badges, two compact rows on smaller screens. */
header#hud{display:block}#partyHud{display:grid;grid-template-columns:repeat(var(--fighters,1),minmax(0,1fr));gap:8px;max-width:100%;width:100%}.fighter-badge{position:relative;min-width:0;padding:8px 9px;background:#fffffcf2;border:1.5px solid #344032;border-radius:8px 12px 7px 10px;box-shadow:2px 3px 0 #34403225;border-top:3px solid var(--fighter-color)}.fighter-badge .fighter-portrait{position:absolute;left:7px;top:5px;width:25px;height:25px;stroke:var(--fighter-color);color:var(--fighter-color)}.badge-info{min-width:0}.fighter-badge .badge-name{display:block;padding-left:27px;height:23px;line-height:21px;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#29322b}.fighter-badge .badge-metrics{font:700 10px Arial,sans-serif;color:#53604b;white-space:nowrap;margin:2px 0 6px}.fighter-badge .health-track{width:100%;height:6px;background:#ddd;border-radius:3px;overflow:hidden}.fighter-badge progress{width:100%;height:6px;accent-color:var(--fighter-color)}.fighter-badge .health-knock-mark{height:6px;top:0;background:#f5c781}.fighter-badge .badge-state{font:9px Arial,sans-serif;color:#63705e;margin-top:5px;white-space:nowrap}.fighter-badge.is-out{opacity:.55}.fighter-badge.is-down{background:#fff2dc;border-color:#b77536}#roundHud{font-size:10px;font-weight:700;margin-top:7px;color:#58624e;text-shadow:0 1px #fff}#upgradePanel:has(#upgradeChoices:not([hidden])) .wave-art{height:45px}#upgradePanel:has(#upgradeChoices:not([hidden])) h1{font-size:34px;margin:0}#upgradePanel:has(#upgradeChoices:not([hidden])) #upgradeChoices{margin:12px 0}#upgradePanel:has(#upgradeChoices:not([hidden])) #upgradeChoices button{min-height:100px}
@media(max-width:900px){#partyHud{grid-template-columns:repeat(var(--badge-cols,4),minmax(0,1fr));gap:5px}.fighter-badge{padding:5px 6px}.fighter-badge .badge-name{font-size:10px;padding-left:20px;height:20px;line-height:18px}.fighter-badge .fighter-portrait{width:20px;height:20px;left:4px;top:4px}.fighter-badge .badge-metrics{font-size:8px;margin-bottom:4px}.fighter-badge .badge-state{font-size:8px;margin-top:4px}#roundHud{font-size:9px}}
@media(max-width:520px){#upgradePanel:has(#upgradeChoices:not([hidden])) .wave-art{display:none}#upgradePanel:has(#upgradeChoices:not([hidden])) #upgradeChoices button{min-height:132px}#upgradePanel:has(#upgradeChoices:not([hidden])) #upgradeChoices button:last-child{min-height:90px}#upgradeWallet{margin:5px 0}#upgradeWallet small{font-size:10px}}
@media(max-height:500px){#upgradeWallet{margin:3px 0;gap:6px}#upgradeWallet small{flex-basis:auto}#enhanceUpgrade{min-height:36px;padding:6px 10px}#upgradePanel:has(#upgradeChoices:not([hidden])) #upgradeChoices button{min-height:134px}#upgradeReceipt{min-height:100px;margin:10px auto;padding:12px}#upgradeReceipt .upgrade-icon{width:35px;height:35px}}
@media(prefers-reduced-motion:reduce){.purchase-burst,.purchase-burst:before,.purchase-burst:after{animation:none}}
#roundHud{text-align:left}

/* Fixed quarter-width slots for small parties; legible, high-contrast health. */
.fighter-badge .health-track{height:12px;border:1px solid #29372a;border-radius:4px;background:#e4e8df}.fighter-badge progress{appearance:none;-webkit-appearance:none;display:block;width:100%;height:10px;border:0;border-radius:0;background:#e4e8df;color:#345c3d;accent-color:#345c3d}.fighter-badge progress::-webkit-progress-bar{background:#e4e8df}.fighter-badge progress::-webkit-progress-value{background:#345c3d}.fighter-badge progress::-moz-progress-bar{background:#345c3d}.fighter-badge.is-critical progress::-webkit-progress-value,.fighter-badge.is-down progress::-webkit-progress-value{background:#b54532}.fighter-badge.is-critical progress::-moz-progress-bar,.fighter-badge.is-down progress::-moz-progress-bar{background:#b54532}.fighter-badge .health-knock-mark{height:10px;width:2px;background:#fff;box-shadow:0 0 0 1px #29372a66}.fighter-badge .badge-state{font:800 12px/1.2 Arial,sans-serif;color:#263629;margin-top:5px;font-variant-numeric:tabular-nums;white-space:normal}.fighter-badge.is-down .badge-state,.fighter-badge.is-critical .badge-state{color:#a23223}@media(max-width:900px){.fighter-badge .badge-state{font-size:11px}.fighter-badge .health-track{height:11px}.fighter-badge progress,.fighter-badge .health-knock-mark{height:9px}}

/* The same hover lift, icon response and pressed state for pointer and controller. */
#upgradeChoices button:is(:hover,:focus-visible,.menu-focused):not(:disabled) .upgrade-icon{animation:menu-icon-pop .3s ease-out}#upgradeChoices button:disabled{transform:none}button.menu-focused{outline:3px solid #344032;outline-offset:4px}@keyframes menu-icon-pop{0%{transform:rotate(-8deg) scale(.92)}65%{transform:rotate(5deg) scale(1.1)}100%{transform:none}}
#pausePanel{background:#f8f8f4f7;color:#29372b;background-image:radial-gradient(#52604614 .7px,transparent .7px);background-size:9px 9px;padding:24px 22px 82px}#pausePanel main{width:min(590px,100%);padding:0}.pause-heading{text-align:center}.pause-art{width:145px;height:85px;fill:none;stroke:currentColor;stroke-width:3.5;stroke-linecap:round;stroke-linejoin:round}.pause-rays{stroke:#c2503d}#pausePanel .end-eyebrow{color:#a64a38;font-weight:800;letter-spacing:3px;margin:4px 0 10px}#pausePanel h1{font-size:clamp(34px,6vw,48px);font-weight:900;letter-spacing:-2px;transform:rotate(-2deg);margin:0}#pauseNote{font-size:12px;color:#62705b;margin:12px auto 20px;max-width:420px}.pause-roster-label{display:flex;justify-content:space-between;gap:12px;font-size:10px!important;letter-spacing:1px;font-weight:800;border-bottom:2px solid #344032;padding-bottom:8px;margin:10px 0}.pause-roster-label span{font-weight:400;letter-spacing:0;color:#64705e}#pauseScores{gap:8px;margin:12px 0 20px}#pauseScores>*{min-width:0;padding:12px!important;background:#fffffc!important;color:#29372b!important;border:1.5px solid #344032!important;border-left:5px solid var(--fighter-color)!important;border-radius:8px 12px 7px 10px;box-shadow:2px 3px 0 #34403222;font-size:12px!important;line-height:1.5;font-weight:800;overflow-wrap:anywhere}#pauseScores small{display:block;font-size:10px;font-weight:400;color:#59664f;margin-top:5px;line-height:1.5}#pausePanel button{transition:transform .12s,background .12s,box-shadow .12s}#pausePanel button:is(:hover,:focus-visible,.menu-focused){background:#edf1e6!important;transform:translateY(-2px) rotate(-.5deg)}#pausePanel .pause-actions{gap:12px;margin:18px 0}.pause-actions button{min-height:54px;border:2px solid #344032;border-radius:8px 13px 7px 11px;background:#fffffc;color:#29372b;font-size:13px;font-weight:800;box-shadow:3px 4px 0 #344032}.pause-actions #resume{background:#ce533e;color:#fff;border-color:#843d31;box-shadow:3px 4px 0 #843d31}#pausePanel #resume:is(:hover,:focus-visible,.menu-focused){background:#b84434!important}.pause-actions #exitPause{border-color:#84917b;color:#55614e;background:transparent;box-shadow:3px 4px 0 #84917b55}#pausePanel button:is(:active,.menu-pressed){transform:translate(2px,3px);box-shadow:none}.pause-actions button:before{content:'';display:inline-block;width:20px;height:20px;margin-right:9px;vertical-align:middle;background:currentColor;mask:var(--pause-icon) center/contain no-repeat;-webkit-mask:var(--pause-icon) center/contain no-repeat}#resume{--pause-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 4L20 12L7 20Z' fill='none' stroke='black' stroke-width='2.5' stroke-linejoin='round'/%3E%3C/svg%3E")}#customizePause{--pause-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 5H20M4 12H20M4 19H20M8 2V8M16 9V15M10 16V22' stroke='black' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E")}#sharePause{--pause-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 14V20H20V14M12 16V3M6 9L12 3L18 9' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}#exitPause{--pause-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 3H3V21H10M8 12H21M16 7L21 12L16 17' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}#pausePanel #renameForm{border:2px solid #344032;background:#edf1e6;border-radius:10px}#pausePanel input{background:#fff;color:#29372b;border:1px solid #89977f;border-radius:6px}#pausePanel #renameForm button{background:#fff;color:#29372b;border:1px solid #344032}#pausePanel .muted,#pausePanel #shareFallback{color:#62705b;font-size:12px}#pausePanel #shareFallback{display:flex;flex-direction:column;align-items:stretch;gap:8px}
@media(max-width:520px){#pausePanel{padding:18px 16px 90px}.pause-art{height:64px;width:118px}#pauseScores>*{padding:9px!important;font-size:11px!important}.pause-actions button{font-size:12px;padding:10px 8px}.pause-actions button:before{width:17px;height:17px;margin-right:6px}}
@media(max-height:500px){#pausePanel{padding-top:12px}.pause-art{display:none}#pausePanel h1{font-size:30px}#pauseNote{margin:6px auto 10px}#pauseScores{margin:8px 0}.pause-actions button{min-height:46px}#pausePanel .pause-actions{margin:12px 0}}
@media(prefers-reduced-motion:reduce){#pausePanel button{transition:none}#upgradeChoices button:is(:hover,:focus-visible,.menu-focused) .upgrade-icon{animation:none}}

#badgeParticles{position:fixed;inset:0;pointer-events:none;z-index:15;overflow:hidden}.badge-spark{position:absolute;left:0;top:0;width:9px;height:9px;clip-path:polygon(50% 0,65% 35%,100% 50%,65% 65%,50% 100%,35% 65%,0 50%,35% 35%);box-shadow:0 0 8px #e3c986;will-change:transform,opacity}.fighter-badge.badge-hurt{animation:badge-rattle .36s ease-out}@keyframes badge-rattle{0%,100%{transform:none}12%{transform:translateX(-4px) rotate(-1deg);box-shadow:0 0 0 2px #cf7257,2px 3px 0 #34403225}28%{transform:translateX(4px) rotate(1deg)}46%{transform:translateX(-3px)}65%{transform:translateX(2px)}82%{transform:translateX(-1px)}}@media(prefers-reduced-motion:reduce){.fighter-badge.badge-hurt{animation:none}#badgeParticles{display:none}}

/* Six equal cards: explicit rows for reliable D-pad navigation. */
#upgradeChoices{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:1fr}#upgradeChoices button,#upgradeChoices button:last-child{grid-column:auto;min-height:110px;padding:14px 12px 12px 72px}#upgradeChoices [data-stat=guard] .upgrade-icon{color:#657a95}#upgradePanel:has(#upgradeChoices:not([hidden])) #upgradeChoices button:last-child{min-height:110px}@media(max-width:520px){#upgradeChoices button,#upgradeChoices button:last-child{padding:50px 12px 10px}#upgradeChoices .upgrade-icon{width:34px;height:34px;top:9px;left:12px}#upgradePanel:has(#upgradeChoices:not([hidden])) #upgradeChoices button,#upgradePanel:has(#upgradeChoices:not([hidden])) #upgradeChoices button:last-child{min-height:120px}#upgradePanel:has(#upgradeChoices:not([hidden])) h1{font-size:28px}#upgradePanel:has(#upgradeChoices:not([hidden])) h2{font-size:16px;margin:6px 0}#upgradePanel:has(#upgradeChoices:not([hidden])) .end-eyebrow{margin:0}#upgradeChoices button strong{font-size:16px}}
@media(max-height:500px){#upgradeChoices{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}#upgradeChoices button,#upgradeChoices button:last-child{padding:8px 8px 8px 48px}#upgradeChoices .upgrade-icon{width:30px;height:30px;left:9px;top:14px}#upgradePanel:has(#upgradeChoices:not([hidden])) #upgradeChoices button,#upgradePanel:has(#upgradeChoices:not([hidden])) #upgradeChoices button:last-child{min-height:82px}#upgradePanel:has(#upgradeChoices:not([hidden])) h1{display:none}#upgradePanel:has(#upgradeChoices:not([hidden])) h2{margin:4px 0}#upgradePanel:has(#upgradeChoices:not([hidden])) .end-eyebrow{margin:0}}

/* Let the last knockout finish before the paper menu gently arrives. */
#waveClearBanner{position:fixed;top:38%;left:50%;transform:translate(-50%,-50%);z-index:14;pointer-events:none;color:#29372b;background:#fffff8ed;padding:14px 27px;border:2px solid #344032;border-radius:8px 15px 7px 12px;box-shadow:4px 5px 0 #34403233;font:900 clamp(20px,4vw,32px)/1.2 Arial,sans-serif;letter-spacing:3px;white-space:nowrap;animation:wave-clear-beat 1.25s ease both}#upgradePanel:not([hidden]){animation:wave-menu-arrive .55s ease-out both}#upgradePanel:not([hidden]) main{animation:wave-paper-arrive .55s ease-out both}@keyframes wave-clear-beat{0%{opacity:0;transform:translate(-50%,-42%) scale(.94)}22%,72%{opacity:1;transform:translate(-50%,-50%) scale(1)}100%{opacity:0;transform:translate(-50%,-58%) scale(1)}}@keyframes wave-menu-arrive{from{opacity:0}to{opacity:1}}@keyframes wave-paper-arrive{from{transform:translateY(12px)}to{transform:translateY(0)}}@media(prefers-reduced-motion:reduce){#waveClearBanner{animation:none}#upgradePanel:not([hidden]),#upgradePanel:not([hidden]) main{animation:none}}

/* Illustrated settings sheet, with the arena available for touch placement. */
#preferences{width:min(440px,calc(100% - 24px));background:#f8f8f4fa;background-image:radial-gradient(#52604612 .7px,transparent .7px);background-size:9px 9px;border:2px solid #344032;border-radius:12px 20px 10px 16px;box-shadow:5px 6px 0 #34403240;padding:18px;color:#29372b;scrollbar-color:#7d8b72 #edf0e6;scrollbar-width:thin;scroll-padding:16px 90px}.preferences-heading{display:flex;align-items:center;gap:15px;margin-bottom:12px}.preferences-heading svg{flex-shrink:0;width:48px;height:42px;fill:#f8f8f4;stroke:#b9523e;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}#preferences .preferences-heading small{font-size:9px;letter-spacing:2px;color:#a54c39;font-weight:800}#preferences h2{font-size:23px;font-weight:900;letter-spacing:-.6px;margin:4px 0;line-height:1.1}#preferences p,#preferences>small{color:#62705b;font-size:11px;line-height:1.5}#preferences>p{margin-bottom:14px}#preferences label{min-height:52px;font-size:12px;font-weight:700;gap:12px;border-bottom:1px solid #d7dece;padding:5px 0}#preferences select{border:1.5px solid #74836a;border-radius:6px 9px 5px 8px;background:#fffffc;color:#29372b;font-size:14px;padding:7px;max-width:70%}#preferences input{accent-color:#b9523e}#preferences output{font-size:12px;min-width:34px;text-align:right;color:#a54835;font-weight:800;font-variant-numeric:tabular-nums}#preferences button{background:#fffffc;color:#29372b;border:1.5px solid #344032;border-radius:7px 11px 6px 9px;box-shadow:2px 3px 0 #344032;font-size:12px;font-weight:800;padding:10px 12px;transition:transform .12s,background .12s,box-shadow .12s}#preferences button:is(:hover,:focus-visible,.menu-focused){background:#eaf0df;transform:translateY(-2px) rotate(-.5deg)}#preferences button:is(:active,.menu-pressed){transform:translate(2px,2px);box-shadow:none}#preferences>.row{position:sticky;bottom:-18px;background:#f8f8f4f5;display:grid;grid-template-columns:1fr auto;gap:12px;padding:12px 0 16px;margin:12px 0 0;z-index:3;border-top:2px solid #344032}#preferences #closePreferences{background:#c8513d;color:#fff;border-color:#853c2d;box-shadow:2px 3px 0 #853c2d;min-width:90px}#preferences #closePreferences:is(:hover,:focus-visible,.menu-focused){background:#b24433}#preferences #gamepadSettings{background:#fffffc;border:1.5px solid #344032;border-radius:8px 13px 7px 10px;margin:14px 0;padding:9px 12px;box-shadow:2px 3px 0 #34403222}#preferences summary{color:#29372b;font-weight:800;font-size:13px}#preferences #padBindings>div{padding:5px 0;border-bottom:1px solid #e0e4d9;font-weight:700;font-size:12px}#preferences #padBindings button{background:#edf1e6;border-color:#52664b;min-width:130px}#preferences #padBindings button:is(:hover,:focus-visible,.menu-focused){background:#dce8cd}#preferences .pad-capture-message{background:#fffffc;color:#29372b}#preferences #padBindStatus{color:#a64835}#preferences #resetPadBindings{margin-top:12px;width:100%}#preferences>small{display:block;margin-top:10px;padding-bottom:4px}@media(max-width:520px){#preferences{padding:14px;max-height:48dvh}.preferences-heading{gap:10px}.preferences-heading svg{width:38px;height:34px}#preferences h2{font-size:21px}#preferences>.row{bottom:-14px}#preferences select{font-size:16px}#preferences label{gap:8px}#preferences #padBindings button{min-width:112px}}@media(prefers-reduced-motion:reduce){#preferences button{transition:none}}
/* Permanent, browser-owned badge decorations. No changes to combat power. */
.swag-ember{--swag-accent:#bd5039;--swag-paper:#fff1e7;--swag-mark:'✹'}.swag-jade{--swag-accent:#497858;--swag-paper:#edf5e8;--swag-mark:'❧'}.swag-comet{--swag-accent:#467d9c;--swag-paper:#edf5fc;--swag-mark:'✦'}.swag-crown{--swag-accent:#ad8538;--swag-paper:#fff8e3;--swag-mark:'♛'}.swag-prism{--swag-accent:#8b699d;--swag-paper:#f5edf8;--swag-mark:'◇'}.fighter-badge:not(.swag-plain){border-color:var(--swag-accent,#344032);background:var(--swag-paper,#fffffc);box-shadow:2px 3px 0 var(--swag-accent,#344032)}.fighter-badge:not(.swag-plain):after{content:var(--swag-mark,'');position:absolute;right:5px;top:3px;color:var(--swag-accent);font-size:14px;pointer-events:none}.fighter-badge:not(.swag-plain) .badge-name{padding-right:13px}.fighter-badge.swag-prism{background:linear-gradient(115deg,#faeee9,#eff5e8,#edf4ff,#f7eefa);border-style:double}.fighter-badge.swag-crown{border-width:2px}.fighter-badge.swag-ember{border-radius:5px 14px 5px 13px}.fighter-badge.swag-jade{border-radius:14px 7px 14px 7px}#swagShop{margin-top:18px;border-top:2px solid #344032;padding-top:14px}#swagShop p,#swagShop>small{color:#5b684f;font-size:11px;line-height:1.5}#swagShop .swag-wallet{display:flex;align-items:center;justify-content:center;gap:7px;font-weight:900;color:#9a742c;font-size:22px}.swag-wallet>span{font-size:12px;color:#64705d}#swagCoins{display:inline-flex;min-height:1.2em;align-items:center;font-variant-numeric:tabular-nums}.swag-preview{position:relative;margin:14px auto;padding:18px;background:var(--swag-paper,#fff);border:2px solid var(--swag-accent,#344032);box-shadow:3px 4px 0 var(--swag-accent,#344032);border-radius:8px 16px 7px 12px;font-size:19px;font-weight:900;color:#29372b;text-align:center;overflow:hidden}#swagItems{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}#pausePanel #swagItems button{display:flex;flex-direction:column;gap:5px;align-items:center;min-height:104px;padding:10px 7px;background:var(--swag-paper,#fff);border:2px solid var(--swag-accent,#344032);box-shadow:2px 3px 0 var(--swag-accent,#344032);font-size:12px;color:#29372b}#swagItems .swag-mark{font-size:25px;color:var(--swag-accent,#344032)}#swagItems small{font-size:10px;color:#66745d}#pausePanel #swagItems button[aria-pressed=true]{outline:2px solid #344032;outline-offset:3px}#swagPurchaseNote{min-height:18px;font-weight:800;color:#a16c27!important;text-align:center}.swag-unlock{animation:swag-stamp .55s ease-out}.swag-unlock:after{content:'✦  ✧  ✦';position:absolute;inset:0;display:grid;place-items:center;color:#d6ae53;font-size:38px;pointer-events:none;animation:swag-stars .85s ease-out forwards}@keyframes swag-stamp{0%{transform:scale(.9) rotate(-3deg)}55%{transform:scale(1.05) rotate(1deg)}100%{transform:none}}@keyframes swag-stars{0%{transform:scale(.4);opacity:0}35%{opacity:.9}100%{transform:scale(1.8);opacity:0}}.coin-reel{display:inline-block;height:1.2em;line-height:1.2em;overflow:hidden;min-width:.66em;text-align:center;border-bottom:2px solid #c59c46;background:#fff9df;border-radius:3px;margin:0 1px}.coin-strip{display:block;line-height:1.2em}.coin-strip>span{display:block;height:1.2em;line-height:1.2em}.purchase-reels{display:flex;font-size:27px;font-weight:900;color:#936d28}.hud-coin-count{display:inline-block;color:#936d28;font-variant-numeric:tabular-nums}.slot-tick{animation:coin-tick .13s ease-out}@keyframes coin-tick{from{transform:translateY(-4px);color:#d79c28}to{transform:none}}@media(max-width:520px){#swagItems{grid-template-columns:repeat(2,minmax(0,1fr))}.swag-preview{font-size:17px}#pausePanel #renameForm{padding:10px}}@media(prefers-reduced-motion:reduce){.swag-unlock,.swag-unlock:after,.slot-tick{animation:none}.swag-unlock:after{display:none}}
.fighter-badge.is-flow{outline:2px solid #4d9aa4;outline-offset:2px;box-shadow:0 0 0 5px #6abac322,2px 3px 0 #347d8a}

/* Badge editing is its own viewport-sized page, not a section of the pause scroll. */
#pausePanel:has(#renameForm:not([hidden])){padding:12px;padding-top:max(12px,env(safe-area-inset-top));padding-bottom:max(12px,env(safe-area-inset-bottom));overflow:hidden;align-items:center}
#pausePanel:has(#renameForm:not([hidden])) main{height:100%;max-height:760px;width:min(700px,100%);min-height:0}
#pausePanel:has(#renameForm:not([hidden])) main>:not(#renameForm){display:none!important}
#pausePanel #renameForm:not([hidden]){box-sizing:border-box;display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:10px;height:100%;margin:0;padding:16px;overflow:hidden}
#renameForm>label{display:flex;align-items:center;gap:12px;font-size:13px;font-weight:800}
#renameForm>label input{flex:1;min-height:44px;width:0}
#renameForm>.row{margin:0;display:grid;grid-template-columns:1fr 1fr;gap:10px}
#renameForm>.row button,#swagPager button{min-height:44px}
#renameForm #swagShop{min-height:0;margin:0;padding-top:8px;display:grid;grid-template-rows:auto auto minmax(0,1fr) auto auto auto;gap:8px}
#swagShop>p:not(#swagPurchaseNote){display:none}
#swagShop .swag-preview{margin:0;padding:10px;font-size:17px}
#swagShop #swagItems{min-height:0;grid-auto-rows:minmax(0,1fr);padding:5px;gap:12px}
#pausePanel #swagItems button{min-height:0;justify-content:center;padding:6px}
#swagPager{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;font-weight:800}
#swagPurchaseNote{margin:0;min-height:16px;font-size:11px}
#swagShop>small{text-align:center;font-size:10px}
body:has(#pausePanel:not([hidden]) #renameForm:not([hidden])) footer{display:none}
@media(max-width:599px){#swagItems{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-height:539px){#pausePanel #renameForm:not([hidden]){padding:8px;gap:5px}#renameForm #swagShop{gap:4px;grid-template-rows:auto minmax(0,1fr) auto auto}#swagShop .swag-preview,#swagShop>small{display:none}#swagItems{grid-template-columns:repeat(2,minmax(0,1fr))}#swagShop .swag-wallet{font-size:17px}#swagItems .swag-mark{font-size:20px}#swagPurchaseNote{font-size:10px}}

#upgradeChoices.fund-choices{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.fund-card{min-width:0}.fund-card .fund-description{font-size:12px}.fund-allocation{display:flex;width:100%;height:9px;border-radius:4px;overflow:hidden;margin:7px 0}.fund-bonuses{display:flex;flex-direction:column;gap:5px;text-align:left;font-size:11px;line-height:1.35;width:100%}.fund-card>small{font-size:10px!important}.fund-card .upgrade-icon{width:48px;height:48px}@media(max-width:520px){#upgradeChoices.fund-choices{gap:9px}#upgradeChoices .fund-card{padding:10px 7px}#upgradeChoices .fund-card>strong{font-size:16px}.fund-bonuses{font-size:10px}.fund-card .fund-description{font-size:11px}.fund-card .upgrade-icon{width:38px;height:38px}}@media(max-height:500px){.fund-card .upgrade-icon,.fund-description{display:none!important}.fund-bonuses{display:grid;grid-template-columns:1fr 1fr;font-size:10px;gap:3px}#upgradeChoices.fund-choices{gap:10px}}

#upgradePanel.split-funds{padding:10px 12px 55px}#upgradePanel.split-funds main{width:min(1250px,100%)}.split-funds .wave-art,.split-funds h1,.split-funds #upgradeNote,.split-funds .end-eyebrow{display:none}.split-funds #upgradeFighter{margin:0 0 8px;font-size:20px}#localFunds{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.fighter-funds{border:2px solid var(--fighter-color);border-radius:12px;padding:10px;background:#fffef8;min-width:0}.fighter-funds h3{margin:0 0 3px;color:var(--fighter-color);font-size:16px}.fighter-funds>small{color:#6c775d}.fund-enhance{float:right;font-size:11px;padding:7px;min-height:36px}.local-fund-pair{display:grid;grid-template-columns:1fr 1fr;gap:8px;clear:both;padding-top:8px}.local-fund-pair .fund-card{display:flex;flex-direction:column;align-items:center;gap:4px;background:#f5f7ed;color:#29372b;border:1px solid #60715b;padding:8px;text-align:center}.local-fund-pair .fund-card>strong{font-size:14px}.local-fund-pair .upgrade-icon{width:28px;height:28px}.local-fund-pair .fund-description{font-size:10px}.local-fund-pair .fund-bonuses{font-size:10px;gap:3px}.local-fund-pair .fund-card>small{font-size:9px!important}.fund-ready{display:grid;place-items:center;min-height:160px;color:#587b4f}.fund-focused{outline:2px solid currentColor!important;outline-offset:-6px;animation:pad-focus-breathe 1.8s ease-in-out infinite}@media(max-width:600px){#localFunds{gap:6px}.fighter-funds{padding:6px}.fighter-funds h3{font-size:13px}.local-fund-pair{grid-template-columns:1fr}.local-fund-pair .upgrade-icon,.local-fund-pair .fund-description{display:none}.local-fund-pair .fund-bonuses{font-size:9px}.fund-enhance{float:none;width:100%;margin-top:4px}.local-fund-pair .fund-card{padding:5px}.fund-ready{min-height:220px}}@media(max-height:650px) and (min-width:601px){.local-fund-pair .upgrade-icon,.local-fund-pair .fund-description{display:none}.local-fund-pair .fund-bonuses{display:grid;grid-template-columns:1fr 1fr;font-size:9px}.fighter-funds{padding:6px}.local-fund-pair .fund-card{padding:5px}.fund-ready{min-height:110px}}
.fund-card .upgrade-icon{position:static;flex-shrink:0}#upgradeChoices.fund-choices .fund-card{padding:12px;align-items:stretch}.fund-card:is(:hover,:focus-visible,.menu-focused,.fund-focused) .upgrade-icon{animation:menu-icon-pop .3s ease-out}.fighter-funds .fund-card{position:relative}.fighter-funds h3{color:var(--fighter-color)!important}.split-funds #localFunds{color:#29372b}
#upgradePanel.split-funds main{padding:0}#upgradePanel.split-funds{padding:10px 12px 18px}.local-fund-pair .fund-bonus{display:block}.split-funds .fund-card>small{display:none}.split-funds .fund-enhance{min-height:36px;padding:6px 8px}.split-funds .fund-allocation{margin:3px 0;height:6px}@media(max-width:600px){.split-funds .fund-weight{display:none}.split-funds .fund-bonuses{font-size:10px;gap:2px}.split-funds .fund-enhance{min-height:40px;padding:5px}.split-funds .fund-card>strong{font-size:12px}.split-funds .local-fund-pair{padding-top:5px;gap:5px}.split-funds .fund-bonus{line-height:1.2}.split-funds .fund-ready{min-height:160px}}@media(max-height:500px){.split-funds .fund-weight{display:none}.split-funds .fund-bonuses{font-size:9px}.split-funds .fund-enhance{min-height:30px}.split-funds .fund-card>strong{font-size:12px}.split-funds .fighter-funds h3{font-size:12px}.split-funds #upgradeFighter{font-size:16px!important}.split-funds .fund-ready{min-height:100px}.split-funds #localFunds{gap:6px}}

/* Window-sized settings: category pages, bounded content, persistent Done button. */
.editing-controls #touchControls{display:none!important}.editing-controls.touch-preview #touchControls{display:block!important}
.editing-controls footer,.editing-controls #padHint{display:none!important}
#preferences{top:50%;left:50%;transform:translate(-50%,-50%);width:min(780px,calc(100vw - 32px));height:min(620px,calc(100dvh - 32px));max-height:calc(100dvh - 32px);padding:20px;display:grid;grid-template-rows:auto auto minmax(0,1fr) auto auto;gap:12px;overflow:hidden;z-index:45}
#preferencesTabs{display:flex;gap:8px}#preferencesTabs button{flex:1;min-height:44px}#preferencesTabs button[aria-pressed=true]{background:#344b36;color:#fff}
#preferencesBody{min-height:0;overflow:auto;overscroll-behavior:contain;padding:4px 6px 6px 2px}
#preferencesBody section>label{display:grid;grid-template-columns:110px minmax(0,1fr) auto;gap:12px;min-height:54px}#preferencesBody select,#preferencesBody input{width:100%;min-width:0}#preferencesBody p{font-size:12px;line-height:1.5}
#preferences>.row{position:static;bottom:auto;grid-template-columns:1fr 1fr;margin:0;padding:10px 0 0;gap:12px}#preferences>.row button{min-height:44px}#preferences>small{margin:0;padding:0}#preferences #gamepadSettings{margin:0;padding:12px}#gamepadSettings>summary{display:none}#preferences #padBindings{display:grid;grid-template-columns:1fr 1fr;gap:4px 16px}#preferences #padBindings>div{min-width:0;display:flex;align-items:center;justify-content:space-between;gap:6px}#preferences #padBindings button{min-width:0;max-width:70%;overflow-wrap:anywhere}
.touch-preview #preferences{top:8px;transform:translateX(-50%);height:min(400px,48dvh);max-height:48dvh;width:min(620px,calc(100vw - 16px));padding:10px;gap:6px}.touch-preview .preferences-heading,.touch-preview #preferences>small{display:none}.touch-preview #preferences{grid-template-rows:auto minmax(0,1fr) auto}.touch-preview #preferencesTabs{display:none}.touch-preview #preferencesBody{grid-row:2}.touch-preview #preferences>.row{grid-row:3}
@media(max-width:600px){#preferences{width:calc(100vw - 20px);height:calc(100dvh - 24px);max-height:calc(100dvh - 24px);padding:14px;gap:10px}#preferencesBody section>label{grid-template-columns:85px minmax(0,1fr) auto;gap:8px}#preferences #padBindings{grid-template-columns:1fr}.preferences-heading svg{width:36px;height:36px}#preferences h2{font-size:22px}#preferencesTabs button{padding:8px;font-size:12px}}
@media(max-height:500px){#preferences{width:calc(100vw - 24px);height:calc(100dvh - 16px);max-height:calc(100dvh - 16px);padding:10px 16px;gap:6px}.preferences-heading svg,.preferences-heading small,#preferences>small{display:none}#preferences h2{font-size:20px}#preferencesBody section>label{min-height:44px}#touchSettings{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}#touchSettings>p{display:none}#preferences>.row{padding-top:6px}#preferences #padBindings{grid-template-columns:1fr 1fr}}

.editing-controls.measure-touch #touchControls{display:block!important;visibility:hidden}
#preferences>.row:has(#resetPreferences[hidden]){grid-template-columns:1fr}

#renameForm #swagShop{grid-template-rows:auto auto auto minmax(0,1fr) auto auto auto}#swagTypes{display:flex;gap:8px}#swagTypes button{flex:1;min-height:40px;font-weight:800}#pausePanel #swagTypes button[aria-pressed=true]{background:#344b36;color:#fff}#swagPreview{display:flex;justify-content:center;padding:6px;background:transparent;border:0;box-shadow:none}#swagPreview .badge-swatch{width:min(280px,100%)}#swagPreview .skin-swatch{height:70px;width:98px}.badge-swatch{position:relative;display:grid;grid-template-columns:22px 1fr;grid-template-rows:20px 9px;gap:5px;width:100%;max-width:190px;padding:9px 14px 10px 8px;border:2px solid var(--swag-accent,#344032);border-radius:8px 12px 7px 10px;background:var(--swag-paper,#fffffc);box-shadow:2px 3px 0 var(--swag-accent,#344032);color:#29372b;text-align:left}.badge-swatch .upgrade-icon{position:static;width:22px;height:25px;grid-row:1/3}.swatch-name{font-size:10px;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.swatch-health{height:7px;background:#47613d;border-radius:2px}.swatch-mark{position:absolute;right:3px;top:0;font-size:11px;color:var(--swag-accent,#344032)}.badge-swatch.swag-prism{background:linear-gradient(115deg,#faeee9,#eff5e8,#edf4ff,#f7eefa);border-style:double}.skin-swatch{display:block;width:98px;height:70px;max-width:100%;touch-action:auto}#pausePanel #swagItems .swag-item{background:transparent!important;border:0;box-shadow:none;border-radius:10px;gap:8px;padding:8px}#pausePanel #swagItems .swag-item[aria-pressed=true]{background:#e4ebdc!important}#swagItems button:disabled{opacity:.65}#swagItems .swag-item>strong{font-size:12px}@media(max-height:539px){#renameForm #swagShop{grid-template-rows:auto auto minmax(0,1fr) auto auto}#swagTypes button{min-height:34px;padding:5px}#pausePanel #swagItems .swag-item{flex-direction:row;flex-wrap:wrap;gap:5px;padding:3px}.badge-swatch{max-width:150px;padding:5px;grid-template-rows:16px 7px;gap:3px}.skin-swatch{width:56px;height:40px}#swagItems .swag-item>strong{font-size:11px}#swagItems .swag-item>small{width:100%}}
#pausePanel #swagTypes button[aria-pressed=true]:is(:hover,:focus-visible,.menu-focused){background:#344b36!important;color:#fff}.skin-swatch{width:120px;height:86px}#swagPreview .skin-swatch{width:112px;height:80px}@media(max-height:539px){.skin-swatch{width:56px;height:40px}}


/* Stickcoin collection: lightweight ink frames, no per-frame animation. */
.swag-badge-sunburst-ember{--swag-accent:#b75a49;--swag-paper:#fff2ec;--swag-mark:"✹"}.fighter-badge.swag-badge-sunburst-ember,.badge-swatch.swag-badge-sunburst-ember{border-radius:5px 15px 5px 15px;border-style:solid;background:linear-gradient(125deg,#fff2ec 72%,#b75a4922 72%)}
.swag-badge-sunburst-moss{--swag-accent:#577c59;--swag-paper:#f0f5eb;--swag-mark:"✹"}.fighter-badge.swag-badge-sunburst-moss,.badge-swatch.swag-badge-sunburst-moss{border-radius:5px 15px 5px 15px;border-style:solid;background:linear-gradient(125deg,#f0f5eb 72%,#577c5922 72%)}
.swag-badge-sunburst-sky{--swag-accent:#4b829d;--swag-paper:#edf5fa;--swag-mark:"✹"}.fighter-badge.swag-badge-sunburst-sky,.badge-swatch.swag-badge-sunburst-sky{border-radius:5px 15px 5px 15px;border-style:solid;background:linear-gradient(125deg,#edf5fa 72%,#4b829d22 72%)}
.swag-badge-sunburst-moon{--swag-accent:#887099;--swag-paper:#f5eff8;--swag-mark:"✹"}.fighter-badge.swag-badge-sunburst-moon,.badge-swatch.swag-badge-sunburst-moon{border-radius:5px 15px 5px 15px;border-style:solid;background:linear-gradient(125deg,#f5eff8 72%,#88709922 72%)}
.swag-badge-sunburst-ochre{--swag-accent:#a17b38;--swag-paper:#faf5e8;--swag-mark:"✹"}.fighter-badge.swag-badge-sunburst-ochre,.badge-swatch.swag-badge-sunburst-ochre{border-radius:5px 15px 5px 15px;border-style:solid;background:linear-gradient(125deg,#faf5e8 72%,#a17b3822 72%)}
.swag-badge-river-ember{--swag-accent:#b75a49;--swag-paper:#fff2ec;--swag-mark:"≈"}.fighter-badge.swag-badge-river-ember,.badge-swatch.swag-badge-river-ember{border-radius:16px 5px 16px 5px;border-style:double;background:linear-gradient(125deg,#fff2ec 72%,#b75a4922 72%)}
.swag-badge-river-moss{--swag-accent:#577c59;--swag-paper:#f0f5eb;--swag-mark:"≈"}.fighter-badge.swag-badge-river-moss,.badge-swatch.swag-badge-river-moss{border-radius:16px 5px 16px 5px;border-style:double;background:linear-gradient(125deg,#f0f5eb 72%,#577c5922 72%)}
.swag-badge-river-sky{--swag-accent:#4b829d;--swag-paper:#edf5fa;--swag-mark:"≈"}.fighter-badge.swag-badge-river-sky,.badge-swatch.swag-badge-river-sky{border-radius:16px 5px 16px 5px;border-style:double;background:linear-gradient(125deg,#edf5fa 72%,#4b829d22 72%)}
.swag-badge-river-moon{--swag-accent:#887099;--swag-paper:#f5eff8;--swag-mark:"≈"}.fighter-badge.swag-badge-river-moon,.badge-swatch.swag-badge-river-moon{border-radius:16px 5px 16px 5px;border-style:double;background:linear-gradient(125deg,#f5eff8 72%,#88709922 72%)}
.swag-badge-river-ochre{--swag-accent:#a17b38;--swag-paper:#faf5e8;--swag-mark:"≈"}.fighter-badge.swag-badge-river-ochre,.badge-swatch.swag-badge-river-ochre{border-radius:16px 5px 16px 5px;border-style:double;background:linear-gradient(125deg,#faf5e8 72%,#a17b3822 72%)}
.swag-badge-mountain-ember{--swag-accent:#b75a49;--swag-paper:#fff2ec;--swag-mark:"△"}.fighter-badge.swag-badge-mountain-ember,.badge-swatch.swag-badge-mountain-ember{border-radius:3px;border-style:solid;background:linear-gradient(125deg,#fff2ec 72%,#b75a4922 72%)}
.swag-badge-mountain-moss{--swag-accent:#577c59;--swag-paper:#f0f5eb;--swag-mark:"△"}.fighter-badge.swag-badge-mountain-moss,.badge-swatch.swag-badge-mountain-moss{border-radius:3px;border-style:solid;background:linear-gradient(125deg,#f0f5eb 72%,#577c5922 72%)}
.swag-badge-mountain-sky{--swag-accent:#4b829d;--swag-paper:#edf5fa;--swag-mark:"△"}.fighter-badge.swag-badge-mountain-sky,.badge-swatch.swag-badge-mountain-sky{border-radius:3px;border-style:solid;background:linear-gradient(125deg,#edf5fa 72%,#4b829d22 72%)}
.swag-badge-mountain-moon{--swag-accent:#887099;--swag-paper:#f5eff8;--swag-mark:"△"}.fighter-badge.swag-badge-mountain-moon,.badge-swatch.swag-badge-mountain-moon{border-radius:3px;border-style:solid;background:linear-gradient(125deg,#f5eff8 72%,#88709922 72%)}
.swag-badge-mountain-ochre{--swag-accent:#a17b38;--swag-paper:#faf5e8;--swag-mark:"△"}.fighter-badge.swag-badge-mountain-ochre,.badge-swatch.swag-badge-mountain-ochre{border-radius:3px;border-style:solid;background:linear-gradient(125deg,#faf5e8 72%,#a17b3822 72%)}
.swag-badge-lotus-ember{--swag-accent:#b75a49;--swag-paper:#fff2ec;--swag-mark:"❀"}.fighter-badge.swag-badge-lotus-ember,.badge-swatch.swag-badge-lotus-ember{border-radius:16px;border-style:double;background:linear-gradient(125deg,#fff2ec 72%,#b75a4922 72%)}
.swag-badge-lotus-moss{--swag-accent:#577c59;--swag-paper:#f0f5eb;--swag-mark:"❀"}.fighter-badge.swag-badge-lotus-moss,.badge-swatch.swag-badge-lotus-moss{border-radius:16px;border-style:double;background:linear-gradient(125deg,#f0f5eb 72%,#577c5922 72%)}
.swag-badge-lotus-sky{--swag-accent:#4b829d;--swag-paper:#edf5fa;--swag-mark:"❀"}.fighter-badge.swag-badge-lotus-sky,.badge-swatch.swag-badge-lotus-sky{border-radius:16px;border-style:double;background:linear-gradient(125deg,#edf5fa 72%,#4b829d22 72%)}
.swag-badge-lotus-moon{--swag-accent:#887099;--swag-paper:#f5eff8;--swag-mark:"❀"}.fighter-badge.swag-badge-lotus-moon,.badge-swatch.swag-badge-lotus-moon{border-radius:16px;border-style:double;background:linear-gradient(125deg,#f5eff8 72%,#88709922 72%)}
.swag-badge-lotus-ochre{--swag-accent:#a17b38;--swag-paper:#faf5e8;--swag-mark:"❀"}.fighter-badge.swag-badge-lotus-ochre,.badge-swatch.swag-badge-lotus-ochre{border-radius:16px;border-style:double;background:linear-gradient(125deg,#faf5e8 72%,#a17b3822 72%)}
.swag-badge-lightning-ember{--swag-accent:#b75a49;--swag-paper:#fff2ec;--swag-mark:"ϟ"}.fighter-badge.swag-badge-lightning-ember,.badge-swatch.swag-badge-lightning-ember{border-radius:3px 14px 3px 14px;border-style:solid;background:linear-gradient(125deg,#fff2ec 72%,#b75a4922 72%)}
.swag-badge-lightning-moss{--swag-accent:#577c59;--swag-paper:#f0f5eb;--swag-mark:"ϟ"}.fighter-badge.swag-badge-lightning-moss,.badge-swatch.swag-badge-lightning-moss{border-radius:3px 14px 3px 14px;border-style:solid;background:linear-gradient(125deg,#f0f5eb 72%,#577c5922 72%)}
.swag-badge-lightning-sky{--swag-accent:#4b829d;--swag-paper:#edf5fa;--swag-mark:"ϟ"}.fighter-badge.swag-badge-lightning-sky,.badge-swatch.swag-badge-lightning-sky{border-radius:3px 14px 3px 14px;border-style:solid;background:linear-gradient(125deg,#edf5fa 72%,#4b829d22 72%)}
.swag-badge-lightning-moon{--swag-accent:#887099;--swag-paper:#f5eff8;--swag-mark:"ϟ"}.fighter-badge.swag-badge-lightning-moon,.badge-swatch.swag-badge-lightning-moon{border-radius:3px 14px 3px 14px;border-style:solid;background:linear-gradient(125deg,#f5eff8 72%,#88709922 72%)}
.swag-badge-lightning-ochre{--swag-accent:#a17b38;--swag-paper:#faf5e8;--swag-mark:"ϟ"}.fighter-badge.swag-badge-lightning-ochre,.badge-swatch.swag-badge-lightning-ochre{border-radius:3px 14px 3px 14px;border-style:solid;background:linear-gradient(125deg,#faf5e8 72%,#a17b3822 72%)}
.swag-badge-constellation-ember{--swag-accent:#b75a49;--swag-paper:#fff2ec;--swag-mark:"✧"}.fighter-badge.swag-badge-constellation-ember,.badge-swatch.swag-badge-constellation-ember{border-radius:10px;border-style:dashed;background:linear-gradient(125deg,#fff2ec 72%,#b75a4922 72%)}
.swag-badge-constellation-moss{--swag-accent:#577c59;--swag-paper:#f0f5eb;--swag-mark:"✧"}.fighter-badge.swag-badge-constellation-moss,.badge-swatch.swag-badge-constellation-moss{border-radius:10px;border-style:dashed;background:linear-gradient(125deg,#f0f5eb 72%,#577c5922 72%)}
.swag-badge-constellation-sky{--swag-accent:#4b829d;--swag-paper:#edf5fa;--swag-mark:"✧"}.fighter-badge.swag-badge-constellation-sky,.badge-swatch.swag-badge-constellation-sky{border-radius:10px;border-style:dashed;background:linear-gradient(125deg,#edf5fa 72%,#4b829d22 72%)}
.swag-badge-constellation-moon{--swag-accent:#887099;--swag-paper:#f5eff8;--swag-mark:"✧"}.fighter-badge.swag-badge-constellation-moon,.badge-swatch.swag-badge-constellation-moon{border-radius:10px;border-style:dashed;background:linear-gradient(125deg,#f5eff8 72%,#88709922 72%)}
.swag-badge-constellation-ochre{--swag-accent:#a17b38;--swag-paper:#faf5e8;--swag-mark:"✧"}.fighter-badge.swag-badge-constellation-ochre,.badge-swatch.swag-badge-constellation-ochre{border-radius:10px;border-style:dashed;background:linear-gradient(125deg,#faf5e8 72%,#a17b3822 72%)}
.swag-badge-seal-ember{--swag-accent:#b75a49;--swag-paper:#fff2ec;--swag-mark:"◎"}.fighter-badge.swag-badge-seal-ember,.badge-swatch.swag-badge-seal-ember{border-radius:4px;border-style:double;background:linear-gradient(125deg,#fff2ec 72%,#b75a4922 72%)}
.swag-badge-seal-moss{--swag-accent:#577c59;--swag-paper:#f0f5eb;--swag-mark:"◎"}.fighter-badge.swag-badge-seal-moss,.badge-swatch.swag-badge-seal-moss{border-radius:4px;border-style:double;background:linear-gradient(125deg,#f0f5eb 72%,#577c5922 72%)}
.swag-badge-seal-sky{--swag-accent:#4b829d;--swag-paper:#edf5fa;--swag-mark:"◎"}.fighter-badge.swag-badge-seal-sky,.badge-swatch.swag-badge-seal-sky{border-radius:4px;border-style:double;background:linear-gradient(125deg,#edf5fa 72%,#4b829d22 72%)}
.swag-badge-seal-moon{--swag-accent:#887099;--swag-paper:#f5eff8;--swag-mark:"◎"}.fighter-badge.swag-badge-seal-moon,.badge-swatch.swag-badge-seal-moon{border-radius:4px;border-style:double;background:linear-gradient(125deg,#f5eff8 72%,#88709922 72%)}
.swag-badge-seal-ochre{--swag-accent:#a17b38;--swag-paper:#faf5e8;--swag-mark:"◎"}.fighter-badge.swag-badge-seal-ochre,.badge-swatch.swag-badge-seal-ochre{border-radius:4px;border-style:double;background:linear-gradient(125deg,#faf5e8 72%,#a17b3822 72%)}
.swag-badge-wings-ember{--swag-accent:#b75a49;--swag-paper:#fff2ec;--swag-mark:"❯"}.fighter-badge.swag-badge-wings-ember,.badge-swatch.swag-badge-wings-ember{border-radius:18px 4px 4px 18px;border-style:solid;background:linear-gradient(125deg,#fff2ec 72%,#b75a4922 72%)}
.swag-badge-wings-moss{--swag-accent:#577c59;--swag-paper:#f0f5eb;--swag-mark:"❯"}.fighter-badge.swag-badge-wings-moss,.badge-swatch.swag-badge-wings-moss{border-radius:18px 4px 4px 18px;border-style:solid;background:linear-gradient(125deg,#f0f5eb 72%,#577c5922 72%)}
.swag-badge-wings-sky{--swag-accent:#4b829d;--swag-paper:#edf5fa;--swag-mark:"❯"}.fighter-badge.swag-badge-wings-sky,.badge-swatch.swag-badge-wings-sky{border-radius:18px 4px 4px 18px;border-style:solid;background:linear-gradient(125deg,#edf5fa 72%,#4b829d22 72%)}
.swag-badge-wings-moon{--swag-accent:#887099;--swag-paper:#f5eff8;--swag-mark:"❯"}.fighter-badge.swag-badge-wings-moon,.badge-swatch.swag-badge-wings-moon{border-radius:18px 4px 4px 18px;border-style:solid;background:linear-gradient(125deg,#f5eff8 72%,#88709922 72%)}
.swag-badge-wings-ochre{--swag-accent:#a17b38;--swag-paper:#faf5e8;--swag-mark:"❯"}.fighter-badge.swag-badge-wings-ochre,.badge-swatch.swag-badge-wings-ochre{border-radius:18px 4px 4px 18px;border-style:solid;background:linear-gradient(125deg,#faf5e8 72%,#a17b3822 72%)}
.swag-badge-lantern-ember{--swag-accent:#b75a49;--swag-paper:#fff2ec;--swag-mark:"◇"}.fighter-badge.swag-badge-lantern-ember,.badge-swatch.swag-badge-lantern-ember{border-radius:5px 5px 15px 15px;border-style:double;background:linear-gradient(125deg,#fff2ec 72%,#b75a4922 72%)}
.swag-badge-lantern-moss{--swag-accent:#577c59;--swag-paper:#f0f5eb;--swag-mark:"◇"}.fighter-badge.swag-badge-lantern-moss,.badge-swatch.swag-badge-lantern-moss{border-radius:5px 5px 15px 15px;border-style:double;background:linear-gradient(125deg,#f0f5eb 72%,#577c5922 72%)}
.swag-badge-lantern-sky{--swag-accent:#4b829d;--swag-paper:#edf5fa;--swag-mark:"◇"}.fighter-badge.swag-badge-lantern-sky,.badge-swatch.swag-badge-lantern-sky{border-radius:5px 5px 15px 15px;border-style:double;background:linear-gradient(125deg,#edf5fa 72%,#4b829d22 72%)}
.swag-badge-lantern-moon{--swag-accent:#887099;--swag-paper:#f5eff8;--swag-mark:"◇"}.fighter-badge.swag-badge-lantern-moon,.badge-swatch.swag-badge-lantern-moon{border-radius:5px 5px 15px 15px;border-style:double;background:linear-gradient(125deg,#f5eff8 72%,#88709922 72%)}
.swag-badge-lantern-ochre{--swag-accent:#a17b38;--swag-paper:#faf5e8;--swag-mark:"◇"}.fighter-badge.swag-badge-lantern-ochre,.badge-swatch.swag-badge-lantern-ochre{border-radius:5px 5px 15px 15px;border-style:double;background:linear-gradient(125deg,#faf5e8 72%,#a17b3822 72%)}
.swag-badge-orbit-ember{--swag-accent:#b75a49;--swag-paper:#fff2ec;--swag-mark:"◉"}.fighter-badge.swag-badge-orbit-ember,.badge-swatch.swag-badge-orbit-ember{border-radius:18px 18px 5px 5px;border-style:solid;background:linear-gradient(125deg,#fff2ec 72%,#b75a4922 72%)}
.swag-badge-orbit-moss{--swag-accent:#577c59;--swag-paper:#f0f5eb;--swag-mark:"◉"}.fighter-badge.swag-badge-orbit-moss,.badge-swatch.swag-badge-orbit-moss{border-radius:18px 18px 5px 5px;border-style:solid;background:linear-gradient(125deg,#f0f5eb 72%,#577c5922 72%)}
.swag-badge-orbit-sky{--swag-accent:#4b829d;--swag-paper:#edf5fa;--swag-mark:"◉"}.fighter-badge.swag-badge-orbit-sky,.badge-swatch.swag-badge-orbit-sky{border-radius:18px 18px 5px 5px;border-style:solid;background:linear-gradient(125deg,#edf5fa 72%,#4b829d22 72%)}
.swag-badge-orbit-moon{--swag-accent:#887099;--swag-paper:#f5eff8;--swag-mark:"◉"}.fighter-badge.swag-badge-orbit-moon,.badge-swatch.swag-badge-orbit-moon{border-radius:18px 18px 5px 5px;border-style:solid;background:linear-gradient(125deg,#f5eff8 72%,#88709922 72%)}
.swag-badge-orbit-ochre{--swag-accent:#a17b38;--swag-paper:#faf5e8;--swag-mark:"◉"}.fighter-badge.swag-badge-orbit-ochre,.badge-swatch.swag-badge-orbit-ochre{border-radius:18px 18px 5px 5px;border-style:solid;background:linear-gradient(125deg,#faf5e8 72%,#a17b3822 72%)}

/* Ink-stamped pause control and compact run inspection. */
#pause{display:flex;align-items:center;gap:7px;min-width:48px;min-height:48px;padding:6px 12px;background:#fffff9;color:#344b36;border:2px solid #344b36;border-radius:9px 6px 11px 5px;box-shadow:2px 3px 0 #344b36;font-family:'Trebuchet MS',sans-serif;font-weight:900;transform:rotate(-2deg)}
#pause svg{width:27px;height:27px;fill:currentColor}#pause:is(:hover,:focus-visible,.menu-focused){background:#e6eddd;transform:translateY(-2px) rotate(0)}#pause:active{transform:translateY(2px);box-shadow:none}
button.fighter-badge{pointer-events:auto;touch-action:manipulation;text-align:left;font:inherit;color:inherit;cursor:pointer}button.fighter-badge:is(:hover,:focus-visible){outline:2px solid #64805a;outline-offset:2px}
#feedbackSettings{display:grid;gap:14px}#feedbackSettings #sound{font-weight:900}#feedbackSettings label{font-weight:800}#feedbackSettings input[type=checkbox]{width:24px;min-height:24px;justify-self:start;accent-color:#47613d}#preferencesTabs{flex-wrap:wrap}
#pausePanel.badge-review main>:not(#badgeUpgrade){display:none!important}#badgeUpgrade{text-align:center}#badgeUpgrade h2{font-size:28px;margin:8px}#badgeUpgradeStats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:20px 0}.badge-stat{display:grid;justify-items:center;gap:7px;padding:14px 6px;border:2px solid #344b36;border-radius:8px 13px 7px 11px;background:#fffff9;box-shadow:2px 3px 0 #c7d1bd}.badge-stat .upgrade-icon{position:static;width:36px;height:36px}.badge-stat span{font-size:12px;color:#596b51}#badgeUpgrade button{margin:5px}#badgeUpgradeNote{font-size:13px}
@media(max-width:600px){#pause span{display:none}#pause{padding:6px;justify-content:center}#badgeUpgradeStats{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0}.badge-stat{padding:8px 4px;gap:4px}}
@media(max-height:500px){#badgeUpgradeStats{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:8px 0}.badge-stat{padding:6px;gap:3px}.badge-stat .upgrade-icon{width:24px;height:24px}#badgeUpgrade h2{font-size:20px}}

/* Keep pause clear of the arena controls and give the stick a raised arcade cap. */
#pause{position:fixed;top:calc(12px + env(safe-area-inset-top,0px));right:calc(14px + env(safe-area-inset-right,0px));z-index:15;width:48px;height:48px;padding:6px;justify-content:center}#pause span{display:none}#roundHud{margin-right:64px}
#stickBase{border:0;background:radial-gradient(circle at 48% 38%,#e6e7e2 0%,#c7ccc4 62%,#a6afa1 100%);box-shadow:inset 0 3px 8px #24332038,0 2px 0 #ffffffb3}
#knob{border:0;background:radial-gradient(circle at 35% 25%,#697064 0%,#444d40 50%,#2d352a 100%);box-shadow:0 7px 0 #20261e,0 10px 12px #17201640,inset 0 2px 1px #ffffff55,inset 0 -2px 2px #0004}
#badgeUpgradeShop{display:inline-flex;align-items:center;justify-content:center;gap:9px;background:#344b36!important;color:#fffff9!important;font-weight:800}#badgeUpgradeShop svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
@media(any-pointer:coarse),(max-width:600px){#touchButtons button.combat-key{border:0}body:not(.pad-menu) button:focus:not(:focus-visible){outline:none!important}body:not(.pad-menu) #touchButtons button{outline:none!important;-webkit-tap-highlight-color:transparent}#pause{border:0}#roundHud{margin-right:58px}}

.intro-scene h1{font-family:'Avenir Next','Trebuchet MS',sans-serif}.intro-scene{color:#29322b}#knob,#stickBase{box-shadow:none}
#badgeUpgradeStats .badge-stat{margin:0;min-width:0}#badgeUpgradeStats .badge-stat:is(:hover,:focus-visible,.menu-focused){background:#edf2e6;transform:translateY(-2px)}
#stickerBook{width:min(430px,100%);margin:0 auto}#stickerBook h3{margin:10px 0;font-size:17px}#stickerDeck{position:relative;height:262px;margin:8px 16px 12px;text-align:left}.collected-sticker{position:absolute;top:calc(var(--deal)*32px);left:calc(var(--deal)*7px);width:calc(100% - 28px);height:158px!important;display:grid;grid-template-columns:44px 1fr;grid-template-rows:25px 22px 1fr;align-items:center;gap:4px;padding:8px 14px!important;margin:0!important;border:2px solid #344b36!important;border-radius:10px 5px 12px 7px!important;background:#fffff9!important;color:#344b36!important;box-shadow:2px 3px 0 #acb99e;transform:rotate(var(--tilt));animation:sticker-deal .32s calc(var(--deal)*.075s) both cubic-bezier(.2,.8,.2,1)}.collected-sticker strong{grid-column:1/-1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.collected-sticker small{grid-column:1/-1;color:#9b674b;font-size:10px;letter-spacing:1px}.collected-sticker .upgrade-icon{position:static;width:38px;height:38px}.collected-sticker span{font-size:17px;font-weight:900}.collected-sticker.picked,.collected-sticker:focus-visible{z-index:5;outline:3px solid #bc654d;outline-offset:2px}.sticker-pager{display:flex;align-items:center;justify-content:center;gap:18px}.sticker-pager button{min-width:48px}.sticker-empty{padding:35px 10px;text-align:center;color:#66765c}@keyframes sticker-deal{from{opacity:0;translate:0 45px;rotate:-9deg}to{opacity:1;translate:0 0;rotate:0deg}}
@media(max-height:600px){#stickerDeck{height:180px}.collected-sticker{height:114px!important;top:calc(var(--deal)*20px);grid-template-rows:20px 16px 1fr;font-size:12px}.collected-sticker .upgrade-icon{width:24px;height:24px}.collected-sticker span{font-size:14px}#stickerBook h3{margin:4px}#stickerBook~#badgeUpgradeNote{display:none}.sticker-pager{display:inline-flex}}
@media(prefers-reduced-motion:reduce){.collected-sticker{animation:none}}

#pauseScores .pause-book{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;font-size:11px;text-align:center}.pause-book svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}

#pausePanel.badge-review main{width:min(850px,100%)}#badgeUpgrade.book-open{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:8px 24px;align-items:center}#badgeUpgrade.book-open>.end-eyebrow,#badgeUpgrade.book-open>h2,#badgeUpgrade.book-open>#badgeUpgradeNote{grid-column:1/-1;margin:5px}#badgeUpgrade.book-open #badgeUpgradeStats{grid-column:1;grid-row:3;grid-template-columns:repeat(2,minmax(0,1fr));margin:0}#badgeUpgrade.book-open #stickerBook{grid-column:2;grid-row:3}#badgeUpgrade.book-open>#badgeUpgradeChoose{grid-column:1/-1}#badgeUpgradeStats button[aria-pressed=true]{background:#e1ebd8;border-color:#b85e47}.collected-sticker{grid-template-rows:23px 17px 33px 1fr;height:158px!important;gap:2px}.collected-sticker .upgrade-icon{width:26px;height:26px}.collected-sticker>span{font-size:13px}.sticker-contributions{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:3px 7px}.sticker-contributions small{font-size:10px;letter-spacing:0;color:#53644a}.sticker-contributions .selected-contribution{color:#a44e39;font-weight:900}
@media(max-width:600px){#badgeUpgrade.book-open{grid-template-columns:1fr 1fr;gap:5px}#badgeUpgrade.book-open #badgeUpgradeStats{grid-column:1/-1;grid-row:3;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}#badgeUpgrade.book-open #stickerBook{grid-column:1/-1;grid-row:4}#badgeUpgrade.book-open .badge-stat{padding:5px!important;gap:2px;font-size:11px}#badgeUpgrade.book-open .badge-stat .upgrade-icon{width:23px;height:23px}.badge-stat span{font-size:10px}#badgeUpgrade.book-open #stickerDeck{height:218px;margin:5px 16px}.collected-sticker{top:calc(var(--deal)*20px)}#badgeUpgrade.book-open #badgeUpgradeNote{font-size:11px}#badgeUpgrade.book-open>button{font-size:12px;padding:8px}}
@media(max-height:600px) and (min-width:601px){#badgeUpgrade.book-open #badgeUpgradeStats{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}#badgeUpgrade.book-open .badge-stat{padding:6px!important;font-size:11px}.collected-sticker{height:130px!important;grid-template-rows:19px 14px 25px 1fr}#badgeUpgrade.book-open>#badgeUpgradeNote{display:none}}

.enhance-wheel-result{display:grid;justify-items:center;gap:9px;width:100%;text-align:center}.enhance-wheel-result>small{font-size:10px;color:#617255}.enhance-wheel{position:relative;width:180px;height:180px;margin:5px}.wheel-disc{position:absolute;inset:0;border:5px solid #344b36;border-radius:50%;background:repeating-conic-gradient(from -15deg,#e5bc63 0deg 30deg,#f8f8ec 30deg 60deg,#628266 60deg 90deg);box-shadow:0 4px 0 #293b2b;animation:enhance-spin 2.6s cubic-bezier(.12,.62,.12,1) var(--wheel-delay,0ms) both}.wheel-disc b{position:absolute;top:50%;left:50%;width:44px;margin-left:-22px;margin-top:-9px;font-size:13px;color:#233324;transform:rotate(calc(var(--sector)*30deg)) translateY(-63px) rotate(calc(var(--sector)*-30deg));text-shadow:0 1px #fff9}.wheel-pointer{position:absolute;top:-7px;left:calc(50% - 10px);width:20px;height:24px;background:#b84d39;clip-path:polygon(0 0,100% 0,50% 100%)}.wheel-award{display:grid;gap:6px;padding:14px;border:2px solid #344b36;border-radius:7px 13px 8px 11px;background:#fffff9;animation:wheel-reveal .35s ease-out calc(2.6s + var(--wheel-delay,0ms)) both}.wheel-award strong{color:#344b36;font-size:20px}.wheel-award small{color:#67735d}.foil-sticker{background:linear-gradient(120deg,#fff5c9,#dcf5e2,#d6ecff,#eedbff,#fff6d3)!important;background-size:250% 250%!important;border-color:#9f853d!important;box-shadow:0 0 15px #d5c48580}.foil-sticker:after{content:'✦';position:absolute;right:10px;bottom:8px;color:#a18033}.wheel-award.foil-sticker{position:relative}.collected-sticker.foil-sticker{background-position:65% 40%!important}@keyframes enhance-spin{from{transform:rotate(-1800deg)}to{transform:rotate(0deg)}}@keyframes wheel-reveal{from{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}.fighter-funds .enhance-wheel{width:130px;height:130px}.fighter-funds .wheel-disc b{transform:rotate(calc(var(--sector)*30deg)) translateY(-43px) rotate(calc(var(--sector)*-30deg));font-size:10px}.fighter-funds .wheel-award{padding:8px}.fighter-funds .wheel-award strong{font-size:15px}@media(prefers-reduced-motion:reduce){.wheel-disc,.wheel-award{animation:none}}
#badgeUpgradeShop,#badgeUpgradeBack,#stickerClose{min-height:48px;border:2px solid #344b36;border-radius:8px 14px 7px 11px;background:#fffff9;color:#344b36;font-family:'Avenir Next','Trebuchet MS',sans-serif;font-weight:900;box-shadow:3px 4px 0 #344b36;transition:transform .12s,box-shadow .12s,background .12s}#badgeUpgradeBack:before{content:'↶';font-size:22px;margin-right:9px;vertical-align:middle}#pausePanel #badgeUpgradeShop:is(:hover,:focus-visible,.menu-focused){background:#4b6545!important}#badgeUpgradeShop:is(:active,.menu-pressed),#badgeUpgradeBack:is(:active,.menu-pressed),#stickerClose:is(:active,.menu-pressed){transform:translate(2px,3px);box-shadow:1px 1px 0 #344b36}

#upgradePanel.wheel-receipt .wave-art,#upgradePanel.wheel-receipt main>h1,#upgradePanel.wheel-receipt #upgradeNote{display:none}#upgradePanel.wheel-receipt{padding:14px 18px 36px}#upgradePanel.wheel-receipt #upgradeReceipt{margin:8px auto;padding:12px;min-height:0}#upgradePanel.wheel-receipt #upgradeReceipt strong{font-size:20px;letter-spacing:0}#upgradePanel.wheel-receipt #upgradeReceipt:before,#upgradePanel.wheel-receipt #upgradeReceipt:after{display:none}#upgradePanel.wheel-receipt #upgradeFighter{margin:4px}#upgradePanel.wheel-receipt .end-eyebrow{margin:4px}@media(max-height:550px){#upgradePanel.wheel-receipt #upgradeReceipt{max-width:560px}.wheel-receipt .enhance-wheel-result{grid-template-columns:150px 1fr;gap:6px}.wheel-receipt .enhance-wheel-result>small{grid-column:1/-1}.wheel-receipt .enhance-wheel{width:130px;height:130px}.wheel-receipt .wheel-disc b{transform:rotate(calc(var(--sector)*30deg)) translateY(-43px) rotate(calc(var(--sector)*-30deg));font-size:10px}}

#enhanceUpgrade.enhance-picker,.fund-enhance.enhance-picker{display:flex;align-items:center;justify-content:center;gap:12px;padding:0 12px;overflow:hidden;height:54px;background:#344b36;color:#fffff9}.picker-label{font-size:10px;letter-spacing:1px}.picker-window{display:block;overflow:hidden;height:50px;width:64px;position:relative;mask-image:linear-gradient(transparent,#000 22%,#000 78%,transparent)}.picker-strip{display:block;animation:picker-scroll 2.6s cubic-bezier(.12,.62,.12,1) var(--picker-delay,0ms) both}.picker-strip>span{display:flex;align-items:center;justify-content:center;height:50px;font-size:28px;font-weight:900;font-variant-numeric:tabular-nums}.picker-info{font-size:13px;animation:wheel-reveal .2s calc(2.6s + var(--picker-delay,0ms)) both}@keyframes picker-scroll{from{transform:translateY(0)}to{transform:translateY(-1600px)}}@media(prefers-reduced-motion:reduce){.picker-strip{animation:none;transform:translateY(-1600px)}.picker-info{animation:none}}

#pauseScores{gap:12px;padding:3px 4px 6px;overflow:visible}#pauseScores .pause-shop,#pauseScores .pause-book{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:96px;text-align:center;border:2px solid #344b36!important;border-left:2px solid #344b36!important;border-radius:8px 14px 7px 11px;box-shadow:3px 4px 0 #344b36;overflow:visible}#pauseScores .pause-shop svg,#pauseScores .pause-book svg{width:28px;height:28px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;overflow:visible}#pauseScores .pause-shop small,#pauseScores .pause-book small{margin:0;font-size:10px;font-weight:500}#pauseScores .pause-shop:is(:active,.menu-pressed),#pauseScores .pause-book:is(:active,.menu-pressed){box-shadow:1px 1px 0 #344b36}

#fighterNameForm{grid-column:1/-1;grid-row:2;display:flex;align-items:center;gap:10px;width:min(540px,100%);margin:4px auto 12px}.sr-name{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}#fighterNameForm #renameInput{flex:1;width:0;min-width:0;min-height:48px;font-size:18px;font-weight:800;border:2px solid #344b36;border-radius:9px 6px 10px 7px;background:#fffff9;padding:10px 12px}#fighterNameForm #saveFighterName{flex:none;white-space:nowrap;margin:0}.shop-title{margin:0;text-align:center;font-weight:900!important;font-size:24px!important}.shop-footer{display:grid!important;grid-template-columns:1fr 1fr;gap:12px!important;margin:8px 0 0!important}
#pausePanel #renameForm #shopOpenBook,#pausePanel #renameForm #cancelRename,#pausePanel #saveFighterName,#pausePanel #renameForm #swagPrev,#pausePanel #renameForm #swagNext,#pausePanel #stickerPrev,#pausePanel #stickerNext{min-height:48px;border:2px solid #344b36;border-radius:8px 13px 7px 11px;background:#fffff9;color:#344b36;box-shadow:3px 4px 0 #344b36;font-family:'Avenir Next','Trebuchet MS',sans-serif;font-weight:900;padding:9px 14px;transition:transform .12s,box-shadow .12s,background .12s}#pausePanel #saveFighterName,#pausePanel #renameForm #shopOpenBook{background:#344b36;color:#fffff9}#pausePanel #saveFighterName:is(:hover,:focus-visible,.menu-focused),#pausePanel #renameForm #shopOpenBook:is(:hover,:focus-visible,.menu-focused){background:#4d6746!important}#pausePanel #renameForm #swagPrev:disabled,#pausePanel #renameForm #swagNext:disabled,#pausePanel #stickerPrev:disabled,#pausePanel #stickerNext:disabled{opacity:.4;box-shadow:1px 1px 0 #344b36;transform:none}#swagPager,.sticker-pager{padding:3px 4px 6px}#pausePanel #stickerPrev,#pausePanel #stickerNext{font-size:22px;line-height:1}#pausePanel #renameForm #cancelRename:before{content:'↶';margin-right:8px;font-size:20px}
@media(max-width:600px){#fighterNameForm{gap:7px;margin-bottom:5px}#fighterNameForm #renameInput{font-size:16px;padding:8px}#pausePanel #saveFighterName{padding:8px 10px;font-size:12px}.shop-footer button{font-size:12px!important;padding:8px!important}}

/* Keep the corner tile exclusive to gameplay; the menu grows from its position. */
body:has(.overlay:not([hidden])) #pause{visibility:hidden;pointer-events:none}
#pausePanel{transform-origin:0 0}


#pausePanel .shop-title{font-family:'Avenir Next','Trebuchet MS',sans-serif;font-size:clamp(26px,5vw,36px)!important;font-weight:900!important;letter-spacing:-1.5px;line-height:1.15;transform:rotate(-2deg);padding:4px 0 8px;color:#29322b}#pausePanel .shop-title span{color:#ce533e}
#pausePanel #renameForm #swagTypes button{min-height:44px;border:2px solid #344b36;border-radius:8px 13px 7px 11px;background:#fffff9;color:#344b36;box-shadow:2px 3px 0 #344b36;font-family:'Avenir Next','Trebuchet MS',sans-serif;font-weight:900;padding:8px 10px}
#pausePanel #renameForm #swagTypes button[aria-pressed=true]{background:#344b36;color:#fffff9;box-shadow:2px 3px 0 #243527}
#pausePanel #renameForm #swagTypes button:is(:active,.menu-pressed){transform:translate(2px,3px);box-shadow:none}
#pausePanel.badge-review{padding: max(10px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom));scroll-padding:12px}
#pausePanel.badge-review main{margin:auto;max-height:none;min-height:0}
body:has(#pausePanel.badge-review:not([hidden])) footer{display:none}
@media(max-width:600px){
 #badgeUpgrade.book-open{gap:6px;align-items:start}
 #badgeUpgrade.book-open>.end-eyebrow{font-size:10px;margin:2px;line-height:1.2}
 #badgeUpgrade.book-open #fighterNameForm{margin:2px 0 4px}
 #badgeUpgrade.book-open #fighterNameForm input,#badgeUpgrade.book-open #saveFighterName{min-height:44px}
 #badgeUpgrade.book-open #badgeUpgradeStats{gap:6px}
 #badgeUpgrade.book-open .badge-stat{min-height:58px}
 #badgeUpgrade.book-open #stickerBook{display:grid;grid-template-columns:1fr auto;gap:4px;align-items:center}
 #stickerBook h3,#badgeUpgrade.book-open #stickerDeck{grid-column:1/-1}
 #badgeUpgrade.book-open #stickerBook h3{font-size:14px;line-height:1.2;margin:4px}
 #badgeUpgrade.book-open #stickerDeck{height:188px;margin:4px 10px}
 #badgeUpgrade.book-open .sticker-pager{gap:10px;padding:3px 4px 5px;min-width:0}
 #badgeUpgrade.book-open #stickerClose{margin:0;min-height:44px;padding:8px;font-size:12px}
 #badgeUpgrade.book-open #stickerPrev,#badgeUpgrade.book-open #stickerNext{min-height:44px;margin:0;padding:6px 12px}
 #badgeUpgrade.book-open>button{margin:2px;min-height:44px}
 #badgeUpgrade.book-open #badgeUpgradeNote{margin:2px;font-size:10px;line-height:1.3}
}
@media(max-width:600px) and (max-height:699px){#badgeUpgrade.book-open #stickerDeck{height:164px}#badgeUpgrade.book-open #badgeUpgradeNote{display:none}}

@media(max-width:600px) and (max-height:600px){#badgeUpgrade.book-open{gap:3px}#badgeUpgrade.book-open #stickerDeck{height:146px}#badgeUpgrade.book-open .collected-sticker{height:140px!important;grid-template-rows:20px 15px 27px 1fr}#badgeUpgrade.book-open #badgeUpgradeStats{gap:4px}#badgeUpgrade.book-open .badge-stat{min-height:54px}#badgeUpgrade.book-open .badge-stat .upgrade-icon{width:20px;height:20px}}
@media(max-width:600px) and (max-height:700px){#renameForm #swagPreview{display:none}#renameForm #swagShop{grid-template-rows:auto auto minmax(0,1fr) auto auto auto}#pausePanel #renameForm #swagTypes button{font-size:13px;white-space:nowrap;padding:8px 5px}#pausePanel .shop-title{font-size:28px!important}}
/* A moving light pass, rather than changing the ink or the text contrast. */
.foil-sticker,.fighter-badge:not(.swag-plain),.badge-swatch:not(.swag-plain){position:relative;isolation:isolate}
.foil-sticker:before,.fighter-badge:not(.swag-plain):before,.badge-swatch:not(.swag-plain):before{content:'';position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:radial-gradient(ellipse at var(--foil-x,50%) var(--foil-y,35%),#ffffffd9 0%,#ffffff33 18%,transparent 48%),linear-gradient(var(--foil-angle,120deg),#fba7bb66,#eddd8766,#a1e9cc66,#a7c8ff77,#d7a7ef66,#ffb4b866);background-size:160% 160%;background-position:var(--foil-x,50%) var(--foil-y,35%);opacity:.32;z-index:0}
.foil-sticker:before,.fighter-badge.swag-prism:before,.badge-swatch.swag-prism:before{opacity:.6}
.foil-sticker>*{position:relative;z-index:1}
@media(prefers-reduced-motion:reduce){.foil-sticker:before,.fighter-badge:before,.badge-swatch:before{background-position:50% 35%}}
#settings .round-picker{display:grid;gap:8px;min-width:0;text-align:center;font-family:'Avenir Next','Trebuchet MS',sans-serif;font-weight:900;color:#344b36;font-size:13px}
.wheel-frame{position:relative;border:2px solid #344b36;border-radius:9px 15px 8px 12px;background:#fffff9;box-shadow:3px 4px 0 #344b36;overflow:hidden}
.wheel-frame:after{content:'';position:absolute;left:6px;right:6px;top:44px;height:44px;border-top:2px solid #ce533e;border-bottom:2px solid #ce533e;background:#ce533e0a;pointer-events:none}
.setting-wheel{height:132px;overflow-y:auto;overscroll-behavior:contain;scroll-snap-type:y mandatory;padding:44px 0;scrollbar-width:none;touch-action:pan-y;mask-image:linear-gradient(transparent,#000 30%,#000 70%,transparent)}
.setting-wheel::-webkit-scrollbar{display:none}.wheel-value{height:44px;display:grid;place-items:center;scroll-snap-align:center;font-size:21px;line-height:1;color:#829078;cursor:pointer}.wheel-value.selected{font-size:29px;font-weight:900;color:#b64e3d}
#settings:disabled .wheel-frame{opacity:.5;pointer-events:none}.setting-wheel:focus-visible,.setting-wheel.menu-focused{outline:3px solid #ce533e;outline-offset:-3px}
#menu #settings{grid-template-columns:1fr 1fr;gap:14px;padding:12px;margin:14px 0}
@media(max-height:550px){.setting-wheel{height:88px;padding:22px 0}.wheel-frame:after{top:22px}#menu #settings{margin:8px 0;padding:8px}}
#enhanceUpgrade.enhance-picker,.fund-enhance.enhance-picker{position:relative;isolation:isolate;animation:picker-charge 2.6s linear var(--picker-delay,0ms) both,picker-land .38s ease-out calc(2.6s + var(--picker-delay,0ms)) both}
.enhance-picker .picker-label,.enhance-picker .picker-window,.enhance-picker .picker-info{z-index:2}
.picker-sparks{position:absolute;inset:0;pointer-events:none;overflow:hidden;z-index:1}.picker-sparks i{position:absolute;left:calc(8% + var(--spark)*16%);top:10px;color:#ffe2a1;font-size:20px;font-style:normal;animation:picker-spark 2.6s ease-out var(--picker-delay,0ms) both}
.enhance-picker:before{content:'';position:absolute;inset:-50%;pointer-events:none;background:linear-gradient(110deg,transparent 40%,#fff5 50%,transparent 60%);animation:picker-shine 2.6s ease-out var(--picker-delay,0ms) both}
@keyframes picker-charge{0%,100%{border-color:#344b36;box-shadow:3px 4px 0 #344b36}12%,34%,55%,75%,90%{border-color:#efd48e;box-shadow:0 0 12px #d7b45988,3px 4px 0 #344b36}23%,44%,66%,84%,96%{border-color:#b9844c;box-shadow:0 0 5px #d7b45944,3px 4px 0 #344b36}}
@keyframes picker-spark{0%{opacity:0;transform:translateY(35px) scale(.2)}15%,45%,75%{opacity:.9;transform:translateY(-4px) rotate(35deg) scale(1)}30%,60%,90%{opacity:.2;transform:translateY(24px) rotate(-20deg) scale(.5)}100%{opacity:0;transform:translateY(-30px) scale(.1)}}
@keyframes picker-shine{0%{transform:translateX(-65%)}65%,100%{transform:translateX(65%)}}
@keyframes picker-land{0%{transform:scale(1)}35%{transform:scale(1.055);background:#816638;box-shadow:0 0 18px #e2c67b99}100%{transform:scale(1)}}
@media(prefers-reduced-motion:reduce){#enhanceUpgrade.enhance-picker,.fund-enhance.enhance-picker,.picker-sparks i,.enhance-picker:before{animation:none}.picker-sparks{display:none}}
/* Shop and book use the same frame and pinned footer geometry. */
#pausePanel.badge-review,#pausePanel:has(#renameForm:not([hidden])){padding:12px;padding-top:max(12px,env(safe-area-inset-top));padding-bottom:max(12px,env(safe-area-inset-bottom));overflow:hidden;align-items:center}
#pausePanel.badge-review main,#pausePanel:has(#renameForm:not([hidden])) main{height:100%;max-height:760px;width:min(700px,100%);min-height:0;margin:auto}
#pausePanel #badgeUpgrade.book-open,#pausePanel #renameForm:not([hidden]){height:100%;margin:0;padding:16px;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) 64px;gap:10px;overflow:hidden;border:2px solid #344032;border-radius:10px;background:#edf1e6;align-items:stretch}
#pausePanel #badgeUpgrade>.shop-title{grid-column:1;grid-row:1;margin:0;font-size:clamp(26px,5vw,36px)!important}
#pausePanel .shop-footer{grid-column:1;grid-row:3;display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px!important;margin:0!important;height:64px}
#pausePanel .shop-footer button{margin:0!important;width:100%;height:60px;min-height:60px;line-height:1.2;padding:8px!important;font-size:14px!important}
#badgeUpgrade .book-content{grid-row:2;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);grid-template-rows:auto minmax(0,1fr) auto auto;gap:8px 16px;min-height:0;overflow:auto;padding:5px;border-top:2px solid #344032;align-items:center}
#badgeUpgrade.book-open #fighterNameForm{grid-row:1;grid-column:1/-1;margin:0 auto}
#badgeUpgrade.book-open #badgeUpgradeStats{grid-row:2;grid-column:1}
#badgeUpgrade.book-open #stickerBook{grid-row:2;grid-column:2}
#badgeUpgrade.book-open #badgeUpgradeNote{grid-row:3;grid-column:1/-1;margin:0;font-size:11px;line-height:1.3}
#badgeUpgradeChoose{grid-column:1/-1}
@media(max-width:600px){
 #pausePanel #badgeUpgrade.book-open,#pausePanel #renameForm:not([hidden]){padding:10px;gap:7px}
 #pausePanel .shop-footer button{font-size:12px!important}
 #badgeUpgrade .book-content{grid-template-columns:1fr;grid-template-rows:auto auto minmax(0,1fr) auto auto;gap:6px;padding:5px 2px}
 #badgeUpgrade.book-open #badgeUpgradeStats{grid-row:2;grid-column:1}
 #badgeUpgrade.book-open #stickerBook{grid-row:3;grid-column:1}
 #badgeUpgrade.book-open #badgeUpgradeNote{grid-row:4}
 #pausePanel #badgeUpgrade>.shop-title{font-size:28px!important}
}
@media(max-width:600px) and (max-height:650px){
 #badgeUpgrade .book-content{gap:3px}
 #badgeUpgrade.book-open .badge-stat{min-height:48px;padding:3px!important;gap:0}
 #badgeUpgrade.book-open .badge-stat .upgrade-icon{width:18px;height:18px}
 #badgeUpgrade.book-open #stickerDeck{height:112px;margin:3px 8px}
 #badgeUpgrade.book-open .collected-sticker{height:106px!important;grid-template-rows:16px 12px 20px 1fr;padding:5px 8px!important;gap:1px}
 #badgeUpgrade.book-open .collected-sticker>span{font-size:11px}
 #badgeUpgrade.book-open .sticker-contributions small{font-size:9px}
 #badgeUpgrade.book-open #stickerBook h3{margin:2px}
 #badgeUpgrade.book-open #badgeUpgradeNote{display:none}
}
.illustrated-sticker{position:relative;isolation:isolate;overflow:hidden}
.illustrated-sticker>.sticker-art{position:absolute!important;inset:0;display:block;z-index:0!important;pointer-events:none;border-radius:inherit;overflow:hidden;opacity:.65}
.illustrated-sticker>.sticker-art:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#fffff9bb,#fffff966 55%,#fffff955)}
.illustrated-sticker>:not(.sticker-art){position:relative;z-index:2}
.illustrated-sticker.foil-sticker:before{z-index:1}
.illustrated-sticker .fund-bonuses,.illustrated-sticker .sticker-contributions{background:#fffff9b8;border-radius:5px;padding:4px}
.illustrated-sticker>strong,.illustrated-sticker>.fund-description{text-shadow:0 1px 2px #fffff9}

.fighter-badge:not(.swag-plain) .badge-info{position:relative;z-index:1;text-shadow:0 1px 2px #fffff9}
.badge-swatch:not(.swag-plain) .swatch-name{position:relative;z-index:1;text-shadow:0 1px 2px #fffff9}

/* Measured source rectangles prevent atlas gutters and neighboring art leaking in. */
.illustrated-sticker>.sticker-art{background:none!important}
.sticker-art svg,.badge-art svg{display:block;width:100%;height:100%;overflow:hidden;border-radius:inherit}
.fighter-badge:not(.swag-plain),.badge-swatch:not(.swag-plain){background:var(--swag-paper,#fffff9)}
.fighter-badge>.badge-art{max-width:none;width:auto;height:auto}
.badge-art{position:absolute!important;inset:0;display:block!important;margin:0!important;overflow:hidden;border-radius:inherit;pointer-events:none;z-index:0;opacity:.65}
.badge-art:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#fffff9a6,#fffff955 65%,transparent)}
.fighter-badge:not(.swag-plain):before,.badge-swatch:not(.swag-plain):before{z-index:1}
.fighter-badge>.fighter-portrait,.fighter-badge>.badge-info,.badge-swatch>:not(.badge-art){position:relative;z-index:2}

/* Rattle moves the complete clipped badge; it never resets the artwork fill. */
.fighter-badge,.badge-swatch{overflow:hidden}
.badge-art>svg{position:absolute;inset:0;max-width:none;max-height:none}

/* One readable card with a contained stack; navigation owns a separate row. */
@media(max-width:600px){
 #badgeUpgrade.book-open #stickerBook{grid-template-columns:minmax(0,1fr);gap:4px;min-width:0}
 #badgeUpgrade.book-open #stickerDeck{height:174px;margin:4px 8px 0;isolation:isolate}
 #badgeUpgrade.book-open .collected-sticker{top:0;left:0;width:100%;height:158px!important;transform:none;--tilt:0deg;animation:mobile-sticker-deal .2s ease-out both}
 #stickerDeck.stacked-deck:before,#stickerDeck.stacked-deck:after{content:'';position:absolute;inset:5px 5px 8px;background:#e3e9d8;border:2px solid #78886e;border-radius:10px 5px 12px 7px;z-index:-1;pointer-events:none}
 #stickerDeck.stacked-deck:before{inset:10px 10px 3px;background:#d2ddc5;z-index:-2}
 #badgeUpgrade.book-open .sticker-pager{grid-column:1;position:relative;z-index:8;display:flex;min-height:48px;margin:0;gap:10px;font-size:11px}
 #badgeUpgrade.book-open #stickerClose{grid-column:1;justify-self:center;min-height:36px;padding:5px 12px}
 #badgeUpgrade.book-open .sticker-empty{padding:20px 8px}
}
@media(max-width:600px) and (max-height:650px){
 #badgeUpgrade.book-open #stickerDeck{height:122px}
 #badgeUpgrade.book-open .collected-sticker{height:106px!important}
}
@keyframes mobile-sticker-deal{from{opacity:.5;translate:10px -4px}to{opacity:1;translate:0 0}}
@media(prefers-reduced-motion:reduce){#badgeUpgrade.book-open .collected-sticker{animation:none}}
@media(max-width:600px){
 #badgeUpgrade.book-open #stickerBook{align-self:start;grid-template-columns:minmax(0,1fr) auto}
 #badgeUpgrade.book-open #stickerClose{grid-column:2;grid-row:3;max-width:100px;min-height:44px;font-size:10px;line-height:1.2}
 #badgeUpgrade.book-open .sticker-pager{grid-row:3;gap:6px;font-size:10px}
}
/* Collectible stickers share the shop and book instead of another menu. */
#swagTypes{grid-template-columns:repeat(3,minmax(0,1fr))!important}
#pausePanel #swagTypes button{font-size:clamp(11px,2.7vw,16px);padding:8px 4px}
.sticker-stock{position:relative;overflow:hidden;isolation:isolate;min-height:108px;display:flex;flex-direction:column;justify-content:center;gap:5px}
.sticker-stock>small:first-of-type{font-size:9px;letter-spacing:1px;color:#8c6047}
.sticker-stock strong{font-size:15px}.sticker-stock small{font-size:10px}
#swagShop.sticker-shop{grid-template-rows:auto auto minmax(0,1fr) auto auto auto!important}
.sticker-collection-tabs{display:flex;justify-content:center;gap:6px;grid-column:1/-1}
#pausePanel .sticker-collection-tabs button{min-height:30px;margin:0;padding:4px 12px;font-size:11px;background:#e1e8d7;color:#48583f;border:1px solid #7f8d73;border-radius:12px;box-shadow:none}
#pausePanel .sticker-collection-tabs button[aria-pressed=true]{background:#40533c;color:#fffef4}
#pausePanel .saved-sticker-summary{grid-column:1/-1;min-height:26px;margin:0;padding:3px;font:10px Arial,sans-serif;background:transparent;border:0;box-shadow:none;color:#58674e}
#pausePanel .saved-sticker-summary:disabled{opacity:1;cursor:default}
.collected-sticker{touch-action:pan-y;-webkit-touch-callout:none;user-select:none}
.collected-sticker.saving-sticker{outline:3px solid #a8873c;outline-offset:2px;animation:sticker-save-hold .85s linear forwards!important}
@keyframes sticker-save-hold{to{scale:.96;box-shadow:0 0 0 5px #d9c37b}}
@media(max-width:600px){
 #badgeUpgrade.book-open #stickerBook{grid-template-rows:auto auto auto auto auto}
 #badgeUpgrade.book-open #stickerDeck{grid-row:3}
 #badgeUpgrade.book-open .sticker-pager,#badgeUpgrade.book-open #stickerClose{grid-row:4}
 #badgeUpgrade.book-open #stickerBook h3{grid-row:2;font-size:12px}
 #badgeUpgrade.book-open #savedStickerSummary{grid-row:5}
 #badgeUpgrade.book-open .book-content{align-items:start}
}
#swagTypes{display:grid!important}
#pausePanel #renameForm #swagTypes button{min-width:0;white-space:normal;padding:8px 4px;font-size:clamp(11px,2.7vw,16px)}
#pausePanel .sticker-collection-tabs button[aria-pressed=true]{background:#40533c!important;color:#fffef4!important}
#pausePanel .sticker-collection-tabs button[aria-pressed=false]{color:#48583f!important}
#pausePanel #swagItems .sticker-stock{min-height:0;height:100%;flex-direction:column;flex-wrap:nowrap;justify-content:center;gap:4px;padding:6px}
@media(max-height:650px){#pausePanel #swagItems .sticker-stock{gap:2px;padding:4px}#swagItems .sticker-stock>small:last-child{display:none}}
@media(max-width:600px) and (max-height:650px){
 #badgeUpgrade.book-open .badge-stat{min-height:44px;padding:2px!important}
 #badgeUpgrade.book-open .badge-stat .upgrade-icon{width:15px;height:15px}
 #badgeUpgrade.book-open .badge-stat span{font-size:9px;line-height:1.05}
 #badgeUpgrade.book-open #stickerDeck{height:106px;margin-top:2px}
 #badgeUpgrade.book-open .collected-sticker{height:90px!important;grid-template-rows:14px 10px 17px 1fr;padding:4px 7px!important}
 #badgeUpgrade.book-open .collected-sticker .upgrade-icon{height:16px;width:16px}
 #badgeUpgrade.book-open #stickerBook{gap:2px}
 #pausePanel .sticker-collection-tabs button{min-height:26px;padding:3px 10px}
 #badgeUpgrade.book-open .sticker-pager{min-height:44px;padding:0}
 #pausePanel .saved-sticker-summary{min-height:20px;padding:2px;font-size:9px}
}
.sticker-stock{touch-action:pan-y;-webkit-touch-callout:none;user-select:none}
.sticker-stock.saving-sticker{outline:3px solid #a8873c;outline-offset:-3px;animation:sticker-save-hold .85s linear forwards!important}
#swagPurchaseNote.sticker-details{display:grid;gap:4px;padding:7px 9px;margin:0;background:#fffff7;border:1px solid #819075;border-radius:7px 12px 7px 10px;text-align:left;color:#344b36!important;font-weight:500;line-height:1.2}
.sticker-details>strong{font-size:12px}.sticker-details>small{font-size:9px;color:#6f735e}
.sticker-detail-gains{display:flex;flex-wrap:wrap;gap:3px 7px;font-size:10px;font-weight:700;color:#516344}
#pausePanel #swagItems .sticker-stock.sticker-inspected{outline:2px solid #69805b;outline-offset:-2px}
.sticker-stock.sticker-unaffordable{opacity:.65}
@media(max-height:650px){#swagPurchaseNote.sticker-details{padding:5px 7px;gap:3px}.sticker-detail-gains{font-size:9px}}
.sticker-purchased{pointer-events:none;animation:sticker-buy-away .48s cubic-bezier(.2,.8,.2,1) forwards!important}
#swagItems .sticker-purchase-stamp{position:absolute;inset:0;display:grid;place-items:center;background:#ffffedc9;color:#385535;font-weight:900;font-size:21px;rotate:-8deg;text-shadow:1px 2px #d9c176}
.sticker-sold-out{grid-column:1/-1;align-self:center;text-align:center;font-size:26px;font-weight:900;color:#526448;padding:20px}
@keyframes sticker-buy-away{0%{transform:scale(1)}30%{transform:scale(1.08) rotate(-3deg);filter:brightness(1.2)}65%{opacity:1}100%{transform:translateY(35px) rotate(9deg) scale(.55);opacity:0}}
@media(prefers-reduced-motion:reduce){.sticker-purchased{animation:none!important}}
#badgeUpgrade.book-open .perk-sticker .perk-description{grid-column:1/-1;font-size:12px;line-height:1.35;font-weight:700;align-self:center}
@media(max-height:650px){#badgeUpgrade.book-open .perk-sticker .perk-description{font-size:10px;line-height:1.2}}
#badgeUpgrade.book-open .perk-sticker{grid-template-columns:1fr;grid-template-rows:auto auto minmax(0,1fr)!important}
#swagTypes{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:5px}
.flow-swatch{--flow-color:#398a97;position:relative;display:flex;align-items:center;justify-content:center;gap:9px;width:100%;height:64px;color:var(--flow-color);font-weight:900;font-size:14px;background:#fffff6;border-radius:12px}
.flow-swatch .upgrade-icon{width:42px;height:42px;filter:drop-shadow(-6px 0 var(--flow-color));opacity:.75}
#swagPreview .flow-swatch{width:220px}
@media(max-width:400px){#pausePanel #renameForm #swagTypes button{font-size:10px;padding:5px 2px}}
.flow-swatch .upgrade-icon{position:static!important;flex:0 0 32px;width:32px;height:32px;margin:0!important}
#swagItems .flow-swatch{flex:0 0 44px;height:44px;font-size:12px;gap:5px}

/* Shared hand-cut sequel emblem, behind the wordmark and beneath the intro duel. */
.sequel-mark{display:block;pointer-events:none;overflow:visible;filter:drop-shadow(3px 4px 0 #65745c)}
.sequel-mark path{fill:#d8e4cf;stroke:#65745c;stroke-width:2;stroke-linejoin:round}
.title-lockup{position:relative;isolation:isolate;display:grid;place-items:center;min-height:140px}
.title-lockup>.sequel-mark{position:absolute;z-index:-1;width:122px;height:142px;top:50%;left:50%;transform:translate(-50%,-50%) rotate(7deg)}
#menu .title-lockup h1{position:relative;text-shadow:2px 2px 0 #fffff9,-2px -2px 0 #fffff9,2px -2px 0 #fffff9,-2px 2px 0 #fffff9}
.intro-scene>.sequel-mark{width:80px;height:92px;margin:8px auto 0;transform:rotate(7deg);fill:none;stroke:none}
.intro-scene>.sequel-mark path{fill:#d8e4cf;stroke:#65745c;stroke-width:2}
#pausePanel #stickerCollectionTabs{gap:10px;padding:3px 4px 6px}
#pausePanel #stickerCollectionTabs button{position:relative;min-height:36px;min-width:100px;margin:0;padding:6px 16px;border:2px solid #40533c;border-radius:7px 12px 6px 10px;background:#fffff9!important;color:#40533c!important;box-shadow:2px 3px 0 #40533c;font-family:'Avenir Next','Trebuchet MS',sans-serif;font-size:12px;font-weight:900;letter-spacing:.3px;transform:rotate(-1deg);transition:transform .12s,box-shadow .12s}
#pausePanel #stickerCollectionTabs button:nth-child(2){transform:rotate(1deg)}
#pausePanel #stickerCollectionTabs button[aria-pressed=true]{background:#d8e4cf!important;color:#293d29!important;box-shadow:1px 1px 0 #40533c;transform:translateY(2px)}
#pausePanel #stickerCollectionTabs button:is(:hover,:focus-visible,.menu-focused){outline:3px solid #d6a552;outline-offset:3px;transform:translateY(-1px) rotate(-1deg)}
#pausePanel #stickerCollectionTabs button:is(:active,.menu-pressed){transform:translate(2px,3px);box-shadow:none}
@media(max-width:700px){.title-lockup{min-height:104px}.title-lockup>.sequel-mark{width:91px;height:106px}.landing-art{margin-top:0}}
@media(max-height:650px){#pausePanel #stickerCollectionTabs{gap:8px;padding:2px 4px 4px}#pausePanel #stickerCollectionTabs button{min-height:30px;padding:3px 12px}}
@media(max-height:450px){.title-lockup{min-height:90px}.title-lockup>.sequel-mark{width:77px;height:90px}.intro-scene>svg:not(.sequel-mark){height:100px}.intro-scene>.sequel-mark{height:64px;width:56px;margin-top:0}}
@media(prefers-reduced-motion:reduce){#pausePanel #stickerCollectionTabs button{transition:none}}

/* Two quiet messages share one footer line without moving the shop layout. */
.shop-disclaimer{position:relative;height:1.5em;min-width:0;text-align:center;white-space:nowrap}
.shop-disclaimer>span{display:block;animation:shop-disclaimer-fade 12s linear infinite}
.shop-disclaimer>span+span{position:absolute;inset:0;opacity:0;animation-delay:-6s}
@keyframes shop-disclaimer-fade{0%,43%{opacity:1}48%,93%{opacity:0}98%,100%{opacity:1}}
@media(max-width:400px){#swagShop>.shop-disclaimer{font-size:9px}}
@media(prefers-reduced-motion:reduce){.shop-disclaimer>span{animation:none}.shop-disclaimer>span+span{display:none}}

.sticker-art>img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;object-position:center;transform:scale(1.12)}
#upgradeChoices .perk-choice,.local-fund-pair .perk-choice{padding:18px!important;display:flex;flex-direction:column;justify-content:center;gap:10px}
.perk-choice .fund-description{font-size:15px;line-height:1.4}.perk-choice small{font-size:10px}
.perk-swap{min-width:0;display:grid;gap:6px;align-content:center;padding:8px;background:#fffff7;border:2px solid #56674b;border-radius:10px}
.perk-swap>strong{font-size:16px}.perk-swap>small{font-size:10px;color:#64705d}
#upgradeChoices .perk-swap button,.local-fund-pair .perk-swap button{min-height:44px!important;padding:7px 10px!important;grid-column:auto!important;background:#e2ead9;border:2px solid #40533c;border-radius:6px 10px;box-shadow:2px 2px #40533c;display:flex;flex-direction:column;gap:2px;text-align:left}
.perk-swap button strong{font-size:12px!important}.perk-swap button small{font-size:9px!important}
@media(max-width:600px),(max-height:550px){#upgradeChoices .perk-choice,.local-fund-pair .perk-choice{padding:10px!important;gap:5px}.perk-choice .fund-description{font-size:12px}.perk-swap{padding:5px;gap:4px}.perk-swap-option small{display:none}}

.local-fund-pair .perk-choice .fund-description{display:block;font-size:11px;line-height:1.25}
@media(max-width:600px),(max-height:550px){.local-fund-pair .perk-choice{padding:7px!important;gap:3px}.local-fund-pair .perk-choice .fund-description{font-size:10px}.local-fund-pair .perk-swap>strong{font-size:12px}.local-fund-pair .perk-swap button{padding:5px!important;min-height:36px!important}}

.local-fund-pair .perk-swap>small{font-size:9px;line-height:1.1}.local-fund-pair .perk-swap-option strong{font-size:11px!important}.local-fund-pair .perk-swap-back{font-size:11px}

/* Focus lives outside the scroll mask so the selected wheel stays unmistakable. */
#settings .wheel-frame{transition:background .12s,box-shadow .12s,border-color .12s}
#settings .wheel-frame:has(.setting-wheel:is(:focus,.menu-focused)){border-color:#b84937;background:#fff5e7;box-shadow:0 0 0 3px #fffff7,0 0 0 6px #c6533d,4px 6px 0 6px #344b3625}
#settings .wheel-frame:has(.setting-wheel:is(:focus,.menu-focused)):before{content:'➤';position:absolute;left:12px;top:50%;transform:translateY(-50%);font-size:24px;color:#b84937;z-index:3;pointer-events:none}
#settings .wheel-frame:has(.setting-wheel:is(:focus,.menu-focused)):after{background:#c6533d16;border-width:3px}
#settings .round-picker:has(.setting-wheel:is(:focus,.menu-focused))>span{color:#b84937}
#settings .setting-wheel:is(:focus,.menu-focused){outline:none}
#settings .wheel-value.selected{font-size:32px}
#roundWheelHelp{grid-column:1/-1;margin:8px 0 0!important;text-align:center;font-size:11px!important;color:#53664b!important;line-height:1.8!important}
#roundWheelHelp b{display:inline-block;min-width:22px;padding:0 4px;margin:0 2px;border:1px solid #718368;border-radius:4px 6px;background:#fffff9;color:#344b36;box-shadow:0 2px #718368;font-size:11px}
.wheel-pad-help{display:none}.pad-menu .wheel-pad-help{display:inline}.pad-menu .wheel-key-help{display:none}
@media(max-width:520px){#roundWheelHelp{font-size:10px!important}#roundWheelHelp b{font-size:10px;min-width:18px;margin:0 1px}}
@media(prefers-reduced-motion:reduce){#settings .wheel-frame{transition:none}}

/* Buff illustrations bleed to every edge, independently of card proportions. */
.buff-art>.sticker-art{opacity:.88}
.buff-art>.sticker-art:after{background:linear-gradient(90deg,#fffff9b8,#fffff955 60%,#fffff933)}
.buff-art>.sticker-art svg{transform:scale(1.06);transform-origin:center}

#waveArrival{position:fixed;top:22%;left:50%;transform:translateX(-50%) rotate(-2deg);z-index:8;pointer-events:none;background:#fffff5e8;color:#344b36;border:2px solid #344b36;border-radius:7px 13px;padding:10px 18px;font-weight:900;font-size:clamp(14px,3vw,24px);white-space:nowrap;box-shadow:3px 4px #344b3633;animation:wave-arrival 1.6s both}
@keyframes wave-arrival{0%{opacity:0;translate:-25px 0}18%,76%{opacity:1;translate:0 0}100%{opacity:0;translate:15px 0}}
@media(prefers-reduced-motion:reduce){#waveArrival{animation:none}}

.pause-heading #pauseFighterPreview{display:block;margin:0 auto}
@media(max-height:500px){.pause-heading #pauseFighterPreview{display:none}}

body[data-controls="pad"] #swagPageLabel:after,body[data-controls="pad"] #stickerPage:after{content:' · LB / RB';font-size:10px;white-space:nowrap;color:#64705d}

/* Desktop uses the same single-card deck interaction as touch. */
@media(min-width:601px){
 #badgeUpgrade.book-open #stickerDeck{height:232px;margin:8px 10px 4px;isolation:isolate}
 #badgeUpgrade.book-open .collected-sticker{top:0;left:0;width:100%;height:214px!important;transform:none;--tilt:0deg;animation:mobile-sticker-deal .2s ease-out both}
 #stickerDeck.stacked-deck:before,#stickerDeck.stacked-deck:after{content:'';position:absolute;inset:5px 5px 8px;background:#e3e9d8;border:2px solid #78886e;border-radius:10px 5px 12px 7px;z-index:-1;pointer-events:none}
 #stickerDeck.stacked-deck:before{inset:10px 10px 3px;background:#d2ddc5;z-index:-2}
 #badgeUpgrade.book-open .sticker-pager{position:relative;z-index:8;display:flex;min-height:48px;margin:0;gap:10px;font-size:11px}
}
@media(min-width:601px) and (max-height:600px){#badgeUpgrade.book-open #stickerDeck{height:164px}#badgeUpgrade.book-open .collected-sticker{height:146px!important}}
@media(prefers-reduced-motion:reduce){#badgeUpgrade.book-open .collected-sticker{animation:none}}

/* Keep the pause identity above the animated fighter, compact on small screens. */
#pausePanel .pause-logo{min-height:74px;margin:0 auto 5px}
#pausePanel .pause-logo>.sequel-mark{width:62px;height:72px}
.pause-wordmark{position:relative;font-size:clamp(34px,7vw,44px);font-weight:900;letter-spacing:-2.6px;line-height:1;white-space:nowrap;transform:rotate(-3deg);color:#29322b;text-shadow:2px 2px 0 #fffff9,-2px -2px 0 #fffff9,2px -2px 0 #fffff9,-2px 2px 0 #fffff9}
.pause-wordmark span,.pause-wordmark i{color:#d34a3e}
.pause-wordmark i{font-style:normal;display:inline-block;transform:rotate(8deg)}
@media(max-width:520px){#pausePanel .pause-logo{min-height:60px;margin-bottom:2px}#pausePanel .pause-logo>.sequel-mark{width:51px;height:59px}}
@media(max-height:500px){#pausePanel .pause-logo{min-height:46px;margin-bottom:8px}#pausePanel .pause-logo>.sequel-mark{width:39px;height:45px}.pause-wordmark{font-size:32px}}

/* Living menu focus: an ink track with a warm traveling glint. */
body :is(button,input,select,summary,[role=spinbutton]):is(:focus-visible,.menu-focused),body.pad-menu #menu :focus,body.pad-menu :focus{outline:none!important}
#menuTrace{position:fixed;z-index:90;overflow:visible;pointer-events:none;fill:none;contain:layout style}
#menuTrace rect{vector-effect:non-scaling-stroke}
#menuTrace .trace-track{stroke:#344b36;stroke-width:2;opacity:.65}
#menuTrace .trace-runner{stroke:#e9b95f;stroke-width:3;stroke-linecap:round;stroke-dasharray:18 82;animation:menu-border-travel 1.8s linear infinite,menu-border-breathe 1.8s ease-in-out infinite}
@keyframes menu-border-travel{to{stroke-dashoffset:-100}}
@keyframes menu-border-breathe{50%{stroke-width:4;stroke:#fff0b2}}
@media(prefers-reduced-motion:reduce){#menuTrace .trace-runner{animation:none;stroke-dasharray:none;stroke:#b28a3e;stroke-width:3}}
@media(forced-colors:active){#menuTrace .trace-track,#menuTrace .trace-runner{stroke:Highlight}}

#settings .wheel-frame:has(.setting-wheel[data-editing=true]){background:#fff2c9;border-color:#a58338;box-shadow:0 0 0 3px #e9b95f}
#settings .wheel-frame:has(.setting-wheel[data-editing=true]):before{content:'↕';color:#866521}

/* Lobby adapts to height as well as width; short screens use two columns. */
#menu:has(#lobby:not([hidden])){padding:clamp(10px,3dvh,26px) max(16px,env(safe-area-inset-right)) calc(var(--footer-height,32px) + 16px);scroll-padding-block:16px 80px}
#menu main:has(#lobby:not([hidden])){padding:0;min-width:0;max-width:none}
#lobby .lobby-party{min-width:0}
#menu #lobbyTitle{margin:0 0 10px;font-size:clamp(24px,4dvh,30px)}
#menu #managerNote{margin:8px 0;line-height:1.4}
#menu #localOptions{gap:8px;margin:10px 0}
#localOptions button{flex:1 1 140px;min-width:0}
#menu #localHelp{display:block;line-height:1.45}
#lobby .lobby-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(110px,.6fr);gap:12px;margin-top:10px}
#menu #lobby .lobby-actions button{margin:0;min-height:48px}
#lobby #roundResult:empty{display:none}
#menu main:has(#lobby:not([hidden])) #instructions{margin-top:10px}
#menu main:has(#lobby:not([hidden])) .input-hint{margin:8px 0 0}
@media(max-height:800px){
 #menu #lobby .setting-wheel{height:88px;padding:22px 0}
 #lobby .wheel-frame:after{top:22px}
 #menu #lobby #settings{gap:10px;margin:10px 0;padding:10px}
 #menu main:has(#lobby:not([hidden])) .control-guide{gap:6px 14px;padding:4px 2px 8px}
 #menu #lobby button{padding:9px 12px;min-height:48px}
}
@media(min-width:760px) and (max-height:850px){
 #menu main:has(#lobby:not([hidden])){width:min(960px,100%)}
 #lobby{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px 28px;align-items:start}
 #lobby .lobby-party{grid-column:1;grid-row:1/4}
 #menu #lobby #settings{grid-column:2;grid-row:1;margin:0}
 #lobby #roundResult,#lobby #resultScores{grid-column:2}
 #lobby .lobby-actions{grid-column:2;margin-top:0}
 #menu main:has(#lobby:not([hidden])) .control-guide{grid-template-columns:repeat(5,minmax(0,1fr))}
 #menu main:has(#lobby:not([hidden])) #instructions{margin-top:12px}
 #lobby #invite{gap:10px;margin-top:8px}
 #lobby #invite img{width:88px;height:88px}
}
@media(max-height:500px){
 #menu main:has(#lobby:not([hidden])){margin-block:0}
 #menu #lobbyTitle{margin-bottom:6px}
 #menu #localHelp{font-size:11px}
 #menu main:has(#lobby:not([hidden])) summary{padding-block:6px}
 #menu main:has(#lobby:not([hidden])) .input-hint{margin-top:4px}
}

/* Reserve hint space so switching input devices cannot recenter the landing menu. */
#menu .input-hint{min-height:32px}
#menu main:has(#home:not([hidden])) #instructions .control-guide{min-height:190px;align-content:start}

#stickerDeck .sticker-transferred{animation:sticker-arrived .4s ease-out}
@keyframes sticker-arrived{from{opacity:.45;translate:0 12px}to{opacity:1;translate:0 0}}
@media(prefers-reduced-motion:reduce){#stickerDeck .sticker-transferred{animation:none}}

/* Ready check: one deliberate vote per local fighter, kept inside the wave menu. */
#waveReadyActions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%;margin-top:12px}#waveReadyActions:has(> :only-child){grid-template-columns:1fr}.wave-ready-seat{display:grid;grid-template-columns:1fr 1fr;gap:6px;min-width:0;padding:8px;background:#eeeae0;border-radius:14px;border-top:3px solid var(--fighter-color)}.wave-ready-seat small{grid-column:1/-1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wave-ready-seat button{min-height:42px;padding:7px 10px;border:0;border-radius:10px;font:inherit;font-weight:800;background:#fffdf6;color:#293b39;box-shadow:0 3px 0 #c8c3b5}.wave-ready-seat .wave-ready{background:#b84d42;color:#fffdf6}.wave-ready-seat .wave-ready[aria-pressed=true]{background:#47796c}.wave-ready-seat button:disabled{opacity:.45}.wave-ready-seat .fund-focused{outline:3px solid var(--fighter-color);outline-offset:2px}#waveArrival{pointer-events:none;z-index:1000}@media(max-height:650px){#waveReadyActions{margin-top:4px;gap:4px}.wave-ready-seat{padding:4px}.wave-ready-seat button{min-height:36px;padding:4px 6px}}@media(max-width:420px){#waveReadyActions{gap:4px}.wave-ready-seat button{font-size:12px;padding:6px 3px}}

#waveArrival.ready-countdown{top:calc(env(safe-area-inset-top,0px) + 8px);animation:none;font-size:14px;padding:7px 13px;transform:translateX(-50%)}
@media(min-width:601px) and (max-height:650px){#waveReadyActions{grid-template-columns:repeat(4,minmax(0,1fr))}#waveReadyActions:has(> :only-child){grid-template-columns:1fr}}

/* Ready actions belong to the arena after the reward choice, not the choice sheet. */
#waveReadyActions{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);z-index:9;width:min(680px,calc(100% - 28px));margin:0;grid-template-columns:repeat(2,minmax(0,1fr))}#waveReadyActions:has(> :only-child){width:min(400px,calc(100% - 28px));grid-template-columns:1fr}#waveReadyActions .wave-ready-seat{box-shadow:0 4px 14px #283a3420}#waveReadyActions .wave-ready-seat small{color:#4c5c53}@media(max-width:600px){#waveReadyActions{bottom:260px;gap:6px}.wave-ready-seat button{min-height:44px}}

#waveReadyActions .wave-ready-seat{grid-template-columns:1fr}#waveReadyActions:has(> :only-child){width:min(260px,calc(100% - 28px))}.ready-input-hint:empty{display:none}.ready-input-hint{text-align:center;font-size:10px}

.currency-icon{width:30px;height:30px;object-fit:contain;vertical-align:middle;flex:none}.hud-coin-count::after{content:'';display:inline-block;width:13px;height:13px;margin-left:3px;vertical-align:-2px;background:url('../assets/stickcoin-icon.webp') center/contain no-repeat}.badge-spark.stickcoin-spark{width:15px;height:15px;border-radius:0;background:transparent url('../assets/stickcoin-icon.webp') center/contain no-repeat!important;box-shadow:none}.swag-wallet{align-items:center}

.swag-item.premium-item{border-color:#b39a54;background:linear-gradient(135deg,#fffdf3,#ede6cd);box-shadow:inset 0 0 0 2px #e2ce8c66}.swag-item .premium-label{color:#816225;font-size:9px;letter-spacing:1.5px;font-weight:900}.swag-item.premium-item:disabled{opacity:.8;filter:none}.premium-item .flow-swatch{background:radial-gradient(ellipse,#fff8d4,#c2af8a33 65%,transparent)}

.swag-wallet{flex-wrap:wrap;gap:6px}.swag-wallet img:nth-of-type(2){margin-left:14px}#shopCurrency{font-family:inherit;font-size:11px;font-weight:700;padding:5px 12px;border-radius:12px;background:#e4eedf;color:#304536;border:2px solid #7a9477;box-shadow:0 2px 0 #53664e;align-self:center}.daily-cash-note{font-size:10px!important;margin:3px 0!important}

#pausePanel #swagItems .premium-item{position:relative;background:linear-gradient(135deg,#fffdf3,#ede6cd)!important;box-shadow:inset 0 0 0 1px #c0a86166;gap:3px;padding:15px 5px 5px;overflow:hidden}
#swagItems .premium-label{position:absolute;top:4px;left:0;right:0;font-size:8px;line-height:1}
#swagItems .premium-item .skin-swatch{height:clamp(38px,7vh,65px);width:auto;min-height:0;flex-shrink:1;object-fit:contain}
#swagShop:has(#swagTab-skin[aria-pressed=true]) #swagPreview,#swagShop:has(#swagTab-flow[aria-pressed=true]) #swagPreview{display:none}
#renameForm #swagShop:has(#swagTab-skin[aria-pressed=true]),#renameForm #swagShop:has(#swagTab-flow[aria-pressed=true]){grid-template-rows:auto auto minmax(0,1fr) auto auto auto}
#swagShop .daily-cash-label{flex-basis:100%;font-size:10px;font-weight:500;color:#5b684f}
#pausePanel #shopCurrency{min-height:28px;padding:4px 8px;font-size:10px}

#swagCash{display:inline-flex;min-height:1.2em;align-items:center;font-variant-numeric:tabular-nums}

#waveReadyActions .wave-ready-seat{grid-template-columns:1fr 1fr}#waveReadyActions:has(> :only-child){width:min(400px,calc(100% - 28px))}#waveReadyActions .wave-shop{background:#465d3d;color:#fffdf6;font-family:'Avenir Next','Trebuchet MS',sans-serif;font-weight:900;box-shadow:0 3px 0 #293b29}#waveReadyActions .wave-shop:is(:hover,:focus-visible){background:#5c774f}#waveReadyActions .wave-shop:active{transform:translateY(2px);box-shadow:0 1px 0 #293b29}

/* Price labels retain the existing tile art and backgrounds. */
#swagItems .shop-item-name{font-family:'Avenir Next','Trebuchet MS',sans-serif;font-size:clamp(12px,1.6vw,15px)!important;font-weight:900;letter-spacing:-.25px;line-height:1.15;text-wrap:balance;max-width:100%;color:#293b32}
.shop-item-cost{display:flex;align-items:center;justify-content:center;gap:5px;max-width:100%;flex:none}
.shop-price{display:inline-flex;align-items:center;justify-content:center;gap:3px;padding:3px 5px;border-radius:7px;border:1px solid transparent;white-space:nowrap;line-height:1.1;color:#657064;font-size:12px}
.shop-price.selected{border-color:#879574;background:#fffdf580;color:#33462f}
.shop-price img{height:20px;width:20px;object-fit:contain;flex:none}.shop-price b{font-size:13px;font-weight:900;font-variant-numeric:tabular-nums;letter-spacing:-.3px}
.shop-price-or{font-size:9px;font-style:italic;color:#68735c}.shop-owned{font-size:10px;font-weight:800;color:#4e6943}.shop-status-icon{font-size:16px;line-height:1}.shop-hold-note{font-weight:800;letter-spacing:.3px}
#swagItems .premium-item .shop-item-name{margin-top:3px;margin-bottom:3px}
@media(max-width:420px){.shop-item-cost{gap:2px}.shop-price{padding:3px}.shop-price b{font-size:12px}.shop-price img{width:18px;height:18px}}
@media(max-height:540px){#swagItems .shop-item-name{font-size:11px!important}.shop-price{padding:1px 3px}.shop-price img{width:16px;height:16px}.shop-price b{font-size:11px}}
/* Between-wave actions: one clear primary action, quieter shop beneath. */
#waveReadyActions{width:min(520px,calc(100% - 28px))}
#waveReadyActions:has(> :only-child){width:min(260px,calc(100% - 28px))}
#waveReadyActions .wave-ready-seat{grid-template-columns:minmax(0,1fr);gap:6px;padding:9px 12px;background:#f8f8f0f2;border:1px solid #465d3d33;border-radius:10px 16px 11px 14px;box-shadow:0 3px 10px #283a3415;text-align:center}
#waveReadyActions .wave-ready-seat>small:first-child{font-size:10px;font-weight:800;letter-spacing:.4px}
#waveReadyActions .wave-ready{min-height:48px;border:2px solid #803a31;border-radius:9px 14px 8px 12px;background:#c65745;box-shadow:0 4px 0 #803a31;font-family:'Avenir Next','Trebuchet MS',sans-serif;font-size:23px;font-weight:900;letter-spacing:-.7px;line-height:1.1;color:#fffdf6;padding:8px 12px}
#waveReadyActions .wave-ready[aria-pressed=true]{background:#47796c;border-color:#305749;box-shadow:0 4px 0 #305749;font-size:19px}
#waveReadyActions .wave-shop{justify-self:center;display:flex;align-items:center;justify-content:center;gap:6px;min-height:36px;padding:5px 12px;background:transparent;color:#465d3d;box-shadow:none;border-radius:8px;font-family:'Avenir Next','Trebuchet MS',sans-serif;font-size:12px;font-weight:900}
#waveReadyActions .wave-shop:before{content:'';width:20px;height:20px;background:url('../assets/stickcoin-icon.webp') center/contain no-repeat}
#waveReadyActions .wave-shop:is(:hover,:focus-visible){background:#e6ecdf;color:#30472b}
#waveReadyActions .wave-ready:is(:active,.menu-pressed){transform:translateY(3px);box-shadow:0 1px 0 #803a31}
#waveReadyActions .wave-shop:active{transform:translateY(1px);box-shadow:none}
#waveReadyActions .ready-input-hint{font-size:9px;opacity:.75}
@media(pointer:coarse){#waveReadyActions .wave-shop{min-height:44px}}
@media(max-height:540px){#waveReadyActions .wave-ready-seat{gap:3px;padding:5px 8px}#waveReadyActions .wave-ready{min-height:40px;font-size:20px;padding:5px 8px}#waveReadyActions .ready-input-hint{display:none}}

#waveReadyActions .arena-map-button{grid-column:1/-1;min-height:36px;font-family:'Avenir Next','Trebuchet MS',sans-serif;font-weight:900;font-size:11px;background:#e4ecdf;color:#3e5838;box-shadow:0 2px 0 #bdcbb4}#pauseArenaMap{background:#e4ecdf;color:#3e5838}

#waveReadyActions .ready-input-hint{white-space:normal;line-height:1.4}#waveReadyActions .fund-focused{outline:3px solid #d3af55;outline-offset:3px;filter:brightness(1.08)}

/* Quiet, continuous focus instead of the detached gold outline. */
#waveReadyActions button:is(.fund-focused,:focus-visible){outline:none;filter:none}
#waveReadyActions .wave-ready{position:relative;transition:transform .16s ease,box-shadow .16s ease;isolation:isolate}
#waveReadyActions .wave-ready::after{content:'';position:absolute;inset:4px;border:2px solid #fff5d6;border-radius:5px 9px 4px 7px;pointer-events:none;opacity:0;transition:opacity .16s ease}
#waveReadyActions .wave-ready:is(.fund-focused,:focus-visible){transform:translateY(-1px);box-shadow:0 5px 0 #803a31}
#waveReadyActions .wave-ready:is(.fund-focused,:focus-visible)::after{animation:ready-border-breathe 1.8s ease-in-out infinite}
#waveReadyActions .wave-ready[aria-pressed=true]:is(.fund-focused,:focus-visible){box-shadow:0 5px 0 #305749}
#waveReadyActions button:not(.wave-ready):is(.fund-focused,:focus-visible){box-shadow:inset 0 0 0 2px #66835a;background:#e7efdf}
@media(hover:hover){#waveReadyActions .wave-ready:hover::after{animation:ready-border-breathe 1.8s ease-in-out infinite}#waveReadyActions .wave-ready:hover{transform:translateY(-1px)}}
#waveReadyActions .wave-ready:is(:active,.menu-pressed){transform:translateY(3px);box-shadow:0 1px 0 #803a31}
@keyframes ready-border-breathe{0%,100%{opacity:.35}50%{opacity:.85}}
@media(prefers-reduced-motion:reduce){#waveReadyActions .wave-ready{transition:none}#waveReadyActions .wave-ready:is(.fund-focused,:focus-visible,:hover)::after{animation:none;opacity:.7}}
#waveReadyActions button.fund-focused{outline:none!important}
#waveReadyActions .wave-ready.fund-focused{background:#c65745!important}
#waveReadyActions .wave-ready[aria-pressed=true].fund-focused{background:#47796c!important}

#upgradePanel #waveFighterPreview{width:140px;height:100px;max-height:16vh;object-fit:contain;margin:0 auto;touch-action:auto}@media(max-height:540px){#upgradePanel #waveFighterPreview{width:98px;height:70px}}

/* Controller focus stays inside the artwork, like the Ready button. */
#menuTrace.interior .trace-track{stroke:none}
#menuTrace.interior .trace-runner{stroke:currentColor;stroke-width:2;stroke-dasharray:none;animation:ready-border-breathe 1.8s ease-in-out infinite}
body #localFunds button.fund-focused{outline:2px solid currentColor!important;outline-offset:-6px}
@keyframes pad-focus-breathe{0%,100%{outline-color:color-mix(in srgb,currentColor 35%,transparent)}50%{outline-color:color-mix(in srgb,currentColor 85%,transparent)}}
@media(prefers-reduced-motion:reduce){#menuTrace.interior .trace-runner{animation:none;opacity:.7}.fund-focused{animation:none}}
@media(forced-colors:active){#menuTrace.interior .trace-runner{stroke:Highlight}}

/* The shared mouse/controller ring follows the actual four-corner button shape. */
#menuTrace{box-sizing:border-box;box-shadow:inset 0 0 0 2px currentColor;transform-origin:center;animation:ready-border-breathe 1.8s ease-in-out infinite}
@media(prefers-reduced-motion:reduce){#menuTrace{animation:none;opacity:.7}}
@media(forced-colors:active){#menuTrace{outline:2px solid Highlight;outline-offset:-2px}}

@media(hover:hover){body :is(button,summary,[role=spinbutton]):hover{outline:none!important}}

/* Keep the selection lane centered at every wheel height and focus state. */
#settings .wheel-frame:after{box-sizing:border-box;top:50%;transform:translateY(-50%);height:44px;border-top-width:2px;border-bottom-width:2px}
#settings .setting-wheel{overflow-anchor:none}
#settings .wheel-value{height:44px;min-height:44px;max-height:44px;font-variant-numeric:tabular-nums}
