/* Browser-only spacing. Native screen exporters keep the approved Roblox layout.
   The viewport fitter still reserves the device's actual notch/safe area. */
@font-face{font-family:Bungee;font-style:normal;font-weight:400;src:url('map-vote/assets/Bungee-Regular.ttf') format('truetype');font-display:swap}
#device .reserved{display:none!important}
#device .settings-split .set-nav,#device .bs .bs-back,#device .spec .specbar{left:29px}
#device .menu-scene .topbar{left:29px;right:auto}
#device .menu-scene .menu-shop{left:calc(29px + 2 * (var(--pill-w) + var(--pill-gap)));right:auto}
#device .menu-scene .menu-settings{left:calc(29px + 3 * (var(--pill-w) + var(--pill-gap)));right:auto}

/* One title scene for first launch and Home, with the logo raised above Start. */
#device .menu-scene[aria-label="Main menu"] .logo{left:8px;top:84px;width:530px;height:374px;translate:none;scale:1}
#device .menu-scene[aria-label="Main menu"] .play-wrap{left:83px;top:auto;bottom:calc(18px / var(--ui-scale,1));width:380px;rotate:0deg}
#device .menu-scene[aria-label="Main menu"] #play{translate:none;scale:1}

.keyboard-hint{display:none;pointer-events:none}
@media(hover:hover) and (pointer:fine){
 #device .match .keyboard-hint{display:block;position:absolute;left:50%;top:100%;margin-top:calc(2px / var(--ui-scale,1));translate:-50% 0;white-space:nowrap;font:400 max(10px,calc(10.5px / var(--ui-scale,1)))/1.2 Bungee,sans-serif;color:white;text-shadow:1px 0 var(--ink),-1px 0 var(--ink),0 1px var(--ink),0 -1px var(--ink),1px 2px var(--ink)}
}

/* ESC sits under the pause button like the other key hints, clear of the pause icon. */
@media(any-pointer:fine){#device .match .match-pause::after{content:'ESC';position:absolute;left:50%;top:100%;translate:-50% 2px;font:12px/1.2 var(--f-pixel);color:white;text-shadow:2px 2px var(--ink);pointer-events:none}}

/* Keep the game page stationary; scrolling belongs to roster/settings panels.
   Pan gestures remain available inside those panels, without touch pinch zoom. */
html,body{overflow:clip!important;overscroll-behavior:none;touch-action:pan-x pan-y}
#phone-space{position:fixed!important}
#device :is(.bs-grid,.cgrid,.rows,.lc-seats){overscroll-behavior:contain}

/* The legacy podium's percentage sprites grew with landscape width and clipped
   the winner/name above the stage. Keep its art inside the same podium slots. */
#device [data-screen="podium"] .pod .walker{width:160px!important;max-width:100%!important}
#device [data-screen="podium"] .share-in>.hw{position:absolute;top:0;left:50%;translate:-50% 0;margin:0!important}
/* Four rows must end above the count and actions, including a full solo room. */
#device .queue .seats{grid-template-columns:repeat(4,54px);justify-content:space-between;gap:8px}
#device .queue .seat{width:54px;height:54px}
#device .queue .q-count{top:66%}
#device .wait>.home{display:none!important}
#device .wait .wbtns{position:absolute;left:47%;right:7%;bottom:6%;top:auto;display:flex;gap:14px;z-index:6}
#device .wait .wbtns>.btnwrap{width:40%}
#device .wait .wbtns .play-wrap{position:relative;inset:auto;width:60%;margin:0}
#device .wait .wbtns button{width:100%;font-size:18px}
#device .wait :is(.q-count,.wcount){display:none!important}
#device [data-screen="podium"] .p1 .podium-name{translate:-50% 18px}
@layer landscape-priority{
 #device [data-screen="podium"] .hw-px{width:220px!important}
}

/* Tap targets: every control answers a 44pt finger. The phone app draws the 960 × 540
   stage at different scales. Small controls keep their approved look and
   grow an invisible hit area instead; the min() leaves already-big sides alone. */
#device{--hit-pad:min(0px,calc(50% - 22px / var(--ui-scale,1)))}
#device :is(.brawler-select :is(.pick-cat-btn,.pick-shop),.settings-split :is(.tog,.seg button),.load-scene .quit-btn){position:relative}
#device .menu-scene .topbar .chip[role=button]{position:relative}
#device .menu-scene :is(.menu-shop,.menu-settings,.topbar .chip[role=button])::before,
#device :is(.brawler-select :is(.pick-back,.pick-cat-btn,.pick-shop),.settings-split :is(.set-back,.tog,.seg button),.pick-mode .pm-back,.rs-home,.rs-podium,.rs-change,.load-scene .quit-btn)::after{content:"";position:absolute;display:block;top:var(--hit-pad);bottom:var(--hit-pad);left:var(--hit-pad);right:var(--hit-pad);background:none;box-shadow:none;border:0;clip-path:none}
/* Result screens draw at about 0.57 of the stage, so their pad is in their own px. */
#device :is(.rs-home,.rs-podium,.rs-change){--hit-pad:min(0px,calc(50% - 54px))}
/* HOME (and on wins THE USUAL SUSPECTS) stops at the gap below PLAY AGAIN and grows downward. */
#device .result-scene.gate-loser .rs-home::after{top:0;bottom:-43px}
#device .result-scene.curb-winner .rs-home::after{top:-7px;bottom:-36px;right:-24px}
#device .result-scene.curb-winner .rs-podium::after{top:-13px;bottom:-43px;left:-24px}
@media(any-pointer:coarse){#device .match[data-hud] .match-pause::after{content:"";position:absolute;top:var(--hit-pad);bottom:var(--hit-pad);left:var(--hit-pad);right:var(--hit-pad)}}
/* Spectate faces have notched corners that clip any pseudo hit area, so the row itself grows
   10px up and down (net layout unchanged) and remaining-ui passes row taps to the nearest face.
   SKIP TO RESULTS clips its own shine, so its wrapper takes the taps above and below it. */
#device .spec .srow{padding:14px 6px;margin:-10px -6px;flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;overscroll-behavior:contain;touch-action:none}
#device .spec .srow::-webkit-scrollbar{display:none}
#device .spec .play-wrap::after{content:"";position:absolute;left:0;right:0;top:-14px;bottom:-14px;z-index:-2;pointer-events:auto}
/* Clipped buttons can't grow past their clip, so they grow for real. */
#device .tutorial-skip{min-height:calc(44px / var(--ui-scale,1))}
/* Volume: the whole bar row is one tap strip; the tap's position picks the level. */
#device .settings-split .vol{position:relative}
#device .settings-split .vol::after{content:"";position:absolute;top:-15px;bottom:-15px;left:-24px;right:-24px}

/* Pause dims the whole display, including the bands outside the safe area. */
#device .pause-layer{box-shadow:0 0 0 100vmax #071b36c9}

/* Spectating: the yellow bar already counts who's left, so the match chips step aside
   instead of peeking out above it. The clock drops just under the bar. */
@layer landscape-priority{
 #device .match.spec[data-hud] .hleft{visibility:hidden!important}
 #device .match.spec[data-hud] .htimer{top:84px!important}
}

/* Online lobby: the status banner and seat names read at phone size; long tags trim. */
#device .lobby-crowd .lc-bots{top:40px;width:max-content;max-width:760px;font-size:16px;line-height:1.25}
#device .lobby-crowd .lc-plate i{display:block;max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px}

/* Connection lost / reconnecting: the card hugs its content and sits centered,
   instead of a tall box with an empty middle and buttons jammed at the bottom. */
#device .net .ncard{top:50%;bottom:auto;translate:0 -50%}
#device .net .pcard{height:auto;justify-content:center}
#device .net .nbtns{margin-top:8px}

/* No signal: the prompt clears the logo ribbon; RETRY is the one gold button and QUIT
   the white secondary used elsewhere, both a full finger tall. */
#device .load-scene .nosig .hw-px{height:44px}
#device .load-scene .load-slot:has(.nosig){margin-bottom:0;position:absolute;left:0;bottom:22px}
#device .load-scene .load-actions{margin-top:10px}
#device .load-scene :is(.retry-btn,.quit-btn){height:64px;min-height:0;margin:0;font-size:20px}
#device .load-scene .retry-btn{background:var(--gold);color:var(--ink);box-shadow:inset 0 -8px var(--gold-dark),inset 0 5px var(--gold-light)}
#device .load-scene .quit-btn{background:#fff;color:var(--ink);box-shadow:inset 0 -5px #a4e8ff}

/* The game focuses each screen's first button for keyboard players; on a touch-only phone
   that focus ring is just a stray white box (seen around PLAY AGAIN after a loss). */
@layer landscape-priority{@media(hover:none) and (pointer:coarse){#device button:focus-visible{outline:none!important}}}

#device .result-scene.gate-loser .rs-change::after{top:-10px;bottom:-40px;left:-12px;right:-12px}

/* No selecting, callouts or zoom anywhere in the game: on iPhone a held control otherwise
   highlights its label and opens the magnifier, and a quick double tap zooms the page. */
/* Layout paint layers reset inherited CSS with all:initial. Keep those decorative
   surfaces non-selectable too, so an iPhone long press cannot select the menu. */
#device,#device *{-webkit-user-select:none!important;user-select:none!important;-webkit-touch-callout:none}
#device :is(input,textarea,[contenteditable=true]){-webkit-user-select:text!important;user-select:text!important}
#device .phone.match{touch-action:none}

/* Bigger thumb controls (owner, Oct 22), same arrangement: PUNCH in the corner, special beside it,
   DASH with JUMP above it, the stick opposite. Sizes are stage px; every gap is 20.
   Placement lives in landscape-priority, the layer whose !important rules set these spots first. */
/* Fight buttons: the owner's diamond (Oct 26, bank #54). POWER top, DASH left, PUNCH right (outer
   edge, biggest), JUMP bottom; POWER and JUMP share the middle column, so no two button boxes ever
   touch. LEFT-HANDED (stick side RIGHT) mirrors it all. BUTTON SIZE scales every size and gap by
   --btn-scale. Units are stage px at 100%; the Controls preview (.ctl-stage) shares these rules. */
@layer landscape-priority {
#device{--u:var(--btn-scale,1);--pb:calc(160px * var(--u));--sb:calc(104px * var(--u));--db:calc(84px * var(--u));--kb:calc(144px * var(--u))}
#device :is(.phone.match :is(#punch,#special,#dash,#jump),.ctl-stage :is(.pv-punch,.pv-special,.pv-dash,.pv-jump)){top:auto!important;left:auto!important;translate:none!important;transform:none!important;margin:0!important}
#device :is(.phone.match #punch,.ctl-stage .pv-punch){width:var(--pb)!important;height:var(--pb)!important;right:3%!important;bottom:calc(5% + 20px * var(--u))!important}
#device :is(.phone.match #special,.ctl-stage .pv-special){width:var(--sb)!important;height:var(--sb)!important;right:calc(3% + 172px * var(--u))!important;bottom:calc(5% + 116px * var(--u))!important}
#device :is(.phone.match :is(#dash,#jump),.ctl-stage :is(.pv-dash,.pv-jump)){width:var(--db)!important;height:var(--db)!important}
#device :is(.phone.match #jump,.ctl-stage .pv-jump){right:calc(3% + 182px * var(--u))!important;bottom:5%!important}
#device :is(.phone.match #dash,.ctl-stage .pv-dash){right:calc(3% + 288px * var(--u))!important;bottom:calc(5% + 58px * var(--u))!important}
#device :is(.phone.match #stick,.ctl-stage .pv-stick){width:var(--kb)!important;height:var(--kb)!important;left:4%!important;bottom:6%!important}
#device[data-stick-side="RIGHT"] :is(.phone.match :is(#punch,#special,#dash,#jump),.ctl-stage :is(.pv-punch,.pv-special,.pv-dash,.pv-jump)){right:auto!important}
#device[data-stick-side="RIGHT"] :is(.phone.match #punch,.ctl-stage .pv-punch){left:3%!important}
#device[data-stick-side="RIGHT"] :is(.phone.match #special,.ctl-stage .pv-special){left:calc(3% + 172px * var(--u))!important}
#device[data-stick-side="RIGHT"] :is(.phone.match #jump,.ctl-stage .pv-jump){left:calc(3% + 182px * var(--u))!important}
#device[data-stick-side="RIGHT"] :is(.phone.match #dash,.ctl-stage .pv-dash){left:calc(3% + 288px * var(--u))!important}
#device[data-stick-side="RIGHT"] :is(.phone.match #stick,.ctl-stage .pv-stick){left:auto!important;right:4%!important}
/* Reserve physical pixels for the desktop labels and their bottom-edge clearance. */
@media(any-pointer:fine){#device .phone.match :is(#stick,#punch,#special,#dash,#jump){margin-bottom:calc(18px / var(--ui-scale,1))!important}}
}
/* Plain sizes stay outside the layer: inside it they'd lose to the arena's own label sizes. */
#device :is(.phone.match :is(#dash,#jump),.ctl-stage :is(.pv-dash,.pv-jump)) b{font-size:calc(32px * var(--btn-scale,1))}
#device :is(.phone.match :is(#dash,#jump),.ctl-stage :is(.pv-dash,.pv-jump)) strong{font-size:calc(13px * var(--btn-scale,1))}

/* Keep the existing pause control tappable and clear of the phone edge. */
/* Pause keeps the badges' 46px look so it doesn't overlap the LEFT badge; its invisible hit pad keeps a ~46px thumb target. */
#device .phone.match .match-pause{--hit-pad:min(0px,calc(23px - 23px / var(--ui-scale,1)));top:calc(15px / var(--ui-scale,1))!important}

/* Jump is cloned from Dash after the HUD rules were written; hide it with the rest of the HUD once a round ends. */
#device .match.round-ended .hjump{visibility:hidden!important}

/* Dialogs (sign-in, confirmations) and toasts sit above every screen layer; the menu's logo and walkers use z 100+.
   The toast is a status message only, so taps pass through it to the buttons underneath. */
#device #dialog{z-index:1000}#device #toast{z-index:1001;pointer-events:none;top:calc(14px / var(--ui-scale,1));bottom:auto;left:calc(14px / var(--ui-scale,1));right:calc(14px / var(--ui-scale,1))}
/* Sign-in email fields: the username field look, full width and readable at phone scale (16px+ so iOS doesn't zoom). */
#device #dialog .un-input{display:block;width:100%;box-sizing:border-box;height:calc(44px / var(--ui-scale,1));margin:calc(12px / var(--ui-scale,1)) 0 0;font-size:calc(16px / var(--ui-scale,1))}
/* Owner-selected blue-locker birth-year scene. The artwork has no baked-in controls. */
#device .age-check{background:#07326d url('assets/onboarding/birth-year-lockers.png') center/cover no-repeat}
#device .age-check .age-panel{position:absolute;left:44%;right:7%;top:100px;color:white;font-family:var(--f-display)}
#device .age-check h1{margin:0;font:58px/1.15 var(--f-display);white-space:nowrap;text-shadow:3px 3px var(--ink),-3px 3px var(--ink),3px -3px var(--ink),-3px -3px var(--ink),0 7px var(--ink)}
#device .age-check p{margin:20px 0 24px;font:20px/1.2 var(--f-display);white-space:nowrap;text-shadow:2px 2px var(--ink),-2px -2px var(--ink)}
#device .age-check .age-year{display:grid;grid-template-columns:150px 1fr max(70px,calc(45px / var(--ui-scale,1)));min-height:calc(90px / var(--ui-scale,1));background:#fff;color:var(--ink);box-shadow:0 7px #a4e8ff;outline:4px solid var(--ink);border-radius:3px;overflow:hidden}
#device .age-check .age-year-label,#device .age-check input{align-self:center;text-align:center;font:34px/1 var(--f-display);min-width:0;width:100%;border:0;background:transparent;color:var(--ink)}
#device .age-check output{font-size:42px;border-left:2px solid #c7dce5;padding:20px 0}
#device .age-check .age-arrows{display:grid;grid-template-rows:1fr 1fr}
#device .age-check .age-arrows button{display:grid;place-items:center;border:0;border-radius:0;min-width:calc(45px / var(--ui-scale,1));min-height:calc(45px / var(--ui-scale,1));padding:0;background:var(--gold);color:var(--ink);font-size:26px;touch-action:none}
#device .age-check .age-arrows button+button{box-shadow:inset 0 3px var(--gold-dark)}
#device .age-check .done-btn{display:block;position:relative;width:100%;margin-top:30px;height:78px;min-height:calc(44px / var(--ui-scale,1));padding:0;color:var(--ink);font:32px var(--f-display);background:var(--gold);box-shadow:inset 0 5px var(--gold-light),inset 0 -7px var(--gold-dark);clip-path:polygon(3% 0,100% 0,97% 100%,0 100%)}
/* Live waiting screen while a map ballot is open (map-vote/live-vote.mjs): the vote fills the room panel and the plain lobby controls step aside. */
#device .lobby-crowd .mv-host{position:absolute;inset:0;z-index:6}
#device .lobby-crowd.voting>:is(.lc-title,.lc-bots,.lc-seats,.lc-cancel,.lc-ready){display:none}

/* Settings > Controls (bank #54, owner-picked concept 03 "Touch placement"): the split moves left
   so the device guide gets the wide right side. Pieces are the Settings screen's own: tab buttons,
   white rows, ON/OFF segment, gold fills. The preview reuses the match's button art and placement. */
#device .settings-split.ctl-wide{--d:214px}
#device .settings-split.ctl-wide .slab{clip-path:polygon(calc(540px - var(--d)) 0,960px 0,960px 540px,calc(430px - var(--d)) 540px)}
#device .settings-split.ctl-wide .edge{clip-path:polygon(calc(528px - var(--d)) 0,calc(540px - var(--d)) 0,calc(430px - var(--d)) 540px,calc(418px - var(--d)) 540px)}
#device .settings-split.ctl-wide .edge-ink{clip-path:polygon(calc(520px - var(--d)) 0,calc(528px - var(--d)) 0,calc(418px - var(--d)) 540px,calc(410px - var(--d)) 540px)}
#device .settings-split.ctl-wide .set-tabs{width:168px}
#device .settings-split.ctl-wide .set-tabs button{font-size:20px;padding:0 16px}
#device .settings-split.ctl-wide .done-btn{width:146px;font-size:26px}
#device .settings-split .ctl-panel{left:330px;top:14px;translate:none;width:616px;height:512px;padding:22px;gap:10px}
#device .settings-split .ctl-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;flex:none}
#device .settings-split .ctl-tabs button{height:44px;font-size:18px;background:#1f4f8f;color:#cfe8ff;box-shadow:inset 0 -5px #12345f;filter:var(--line)}
#device .settings-split .ctl-tabs button[aria-selected=true]{background:var(--gold);color:var(--ink);box-shadow:inset 0 -5px var(--gold-dark),inset 0 4px #fff3b0}
#device .settings-split .ctl-tabs button{position:relative}
#device .settings-split .ctl-tabs button::after{content:"";position:absolute;inset:-9px -5px}
#device .settings-split .ctl-preview{position:relative;flex:none;height:200px;overflow:hidden;background:#3d8fe0 url("/v/e4d0de82ca4c/3D%20Game/frontend/private/Browser%20Game/landscape-review/assets/stage-rooftop.webp") 40% 40%/cover;box-shadow:inset 0 0 0 3px #fff;filter:var(--line)}
/* 576 × 200 shows a 1555 × 540 match screen at 200/540; % edges and px sizes then match the arena's. */
#device .settings-split .ctl-stage{position:absolute;left:0;top:0;width:1555.2px;height:540px;transform:scale(.37037);transform-origin:0 0;pointer-events:none}
#device .settings-split .ctl-stage .hdash{display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1;font-family:inherit}
#device .settings-split .ctl-stage .hdash b{font-family:system-ui,sans-serif;font-weight:400}
#device .settings-split .ctl-stage .hstick{position:absolute}
#device .settings-split .ctl-stage :is(.pv-stick,.pv-punch,.pv-special,.pv-dash,.pv-jump){border:0;background:transparent;box-shadow:none;padding:0;overflow:visible}
#device .settings-split .ctl-stage .pv-stick .stick-thumb{width:100%;height:100%;left:0;top:0;border:0;background:transparent;box-shadow:none;border-radius:0}
#device .settings-split .ctl-stage .pv-stick .stick-thumb:before{display:none}
#device .settings-split .ctl-stage :is(.stick-thumb img,.pv-punch img,.pv-special img,.pv-dash img,.pv-jump img){display:block;width:100%;height:100%;object-fit:contain;image-rendering:pixelated;pointer-events:none}
#device .settings-split .ctl-stage .pv-punch img{width:80%;height:80%;margin:10% auto;scale:-1 1}
#device[data-stick-side="RIGHT"] .settings-split .ctl-stage .pv-punch img{scale:1 1}
#device .settings-split .ctl-stage .pv-dash img{scale:-1 1}
#device .settings-split .ctl-stage .pv-stick{bottom:calc(5% + 28px * var(--u))!important}
#device .settings-split .ctl-chip{position:absolute;left:50%;bottom:-18px;translate:-50% 0;padding:6px 16px;font:400 36px/1 Bungee,var(--f-display);color:#fff;background:var(--ink)}
#device .settings-split .ctl-opts{display:grid;grid-template-columns:1fr 1fr;gap:10px;flex:none}
#device .settings-split .ctl-opts .set-row{padding:0 10px 0 14px;font-size:15px}
#device .settings-split .ctl-size-row{gap:12px}
/* The ON/OFF buttons' pixel corners clip their own hit pads, so the pair's strip takes the taps. */
#device .settings-split .ctl-opts .seg{position:relative}
#device .settings-split .ctl-opts .seg::after{content:"";position:absolute;inset:-14px -6px;z-index:-1}
#device .settings-split .ctl-size{position:relative;flex:1;height:44px;min-width:0;background:none;touch-action:none}
#device .settings-split .ctl-size::before{content:"";position:absolute;left:0;right:0;top:16px;height:12px;background:#cfe0f5;box-shadow:inset 0 -3px #a8c2e0,0 0 0 2px var(--ink)}
#device .settings-split .ctl-size::after{content:"";position:absolute;inset:-9px -4px}
#device .settings-split .ctl-fill{position:absolute;left:0;top:16px;height:12px;width:calc(var(--at,.33) * 100%);background:var(--gold);box-shadow:inset 0 -3px var(--gold-dark)}
#device .settings-split .ctl-knob{position:absolute;top:8px;left:calc(var(--at,.33) * (100% - 18px));width:18px;height:28px;background:#fff;box-shadow:inset 0 -4px #a4e8ff;filter:var(--line)}
#device .settings-split .ctl-pct{min-width:48px;text-align:right}
#device .settings-split .ctl-ref{flex:1;height:auto;flex-direction:column;align-items:stretch;justify-content:center;gap:8px;padding:6px 14px 10px}
#device .settings-split .ctl-line{display:flex;align-items:center;justify-content:space-between;gap:8px}
#device .settings-split .ctl-line+.ctl-line{padding-top:8px;box-shadow:inset 0 2px #a4e8ff}
#device .settings-split .ctl-line>b{width:58px;font-weight:400;font-size:17px}
#device .settings-split .ctl-item{display:flex;flex-direction:column;align-items:center;gap:4px}
#device .settings-split .ctl-caps{display:flex;gap:4px}
#device .settings-split .ctl-item small{font:400 13px/1 Bungee,var(--f-display)}
#device .settings-split .ctl-key{display:inline-flex;align-items:center;justify-content:center;height:28px;min-width:28px;padding:0 8px;font-size:14px;line-height:1;background:#1f4f8f;color:#fff;box-shadow:inset 0 -4px #12345f;white-space:nowrap}
#device .settings-split .ctl-grid{display:grid;grid-template-columns:1fr 1fr;gap:11px 12px;margin-top:6px}
#device .settings-split .ctl-grid .set-row{height:50px;font-size:15px;padding:0 8px 0 14px}
#device .settings-split .ctl-grid .tog.view{min-width:112px}
#device .settings-split .ctl-grid .ctl-key{height:34px;min-width:64px;font-size:14px}
#device .settings-split .ctl-panel .key-status,#device .settings-split .ctl-note{margin:0;color:#fff;font-size:14px;line-height:1.4}
#device .settings-split .ctl-actions{justify-content:flex-start}
#device .settings-split .ctl-actions .tog{height:44px;padding:0 18px}

/* The brawler picker retains its existing free-this-week label. */
#device .brawler-select .lockup .free-row{position:absolute;left:0;bottom:100%;margin:0 0 8px}
#device .brawler-select .lockup .free-row[hidden]{display:none}

/* Settings retain the shared Back position and a 44px volume slider hit area. */
#device .settings-split .set-panel:not(.ctl-panel){padding:22px}
#device .settings-split .set-nav{top:74px}
#device .settings-split .set-tabs{top:138px}
#device .settings-split .set-tabs button{position:relative}
#device .settings-split .set-tabs button::after{content:"";position:absolute;inset:min(0px,calc(30px - 22px / var(--ui-scale,1))) 0}
#device .settings-split .vol button{pointer-events:none}
#device .settings-split .vol::after{left:0;right:0;top:min(-15px,calc(16px - 22px / var(--ui-scale,1)));bottom:min(-15px,calc(16px - 22px / var(--ui-scale,1)))}
#device .settings-split :is(.ctl-tabs button,.ctl-size)::after{top:min(-9px,calc(22px - 22px / var(--ui-scale,1)));bottom:min(-9px,calc(22px - 22px / var(--ui-scale,1)))}

#device .settings-split .vol:focus-visible{outline:3px solid white;outline-offset:3px}

/* Account uses the existing dialog card; long signed-in menus scroll inside it. */
#device #dialog.account-dialog{padding:calc(20px / var(--ui-scale,1));grid-template-rows:minmax(0,1fr)}
#device #dialog.account-dialog .dialog-card{box-sizing:border-box;max-height:100%;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:calc(20px / var(--ui-scale,1))}
#device #dialog.account-dialog h2{font-size:calc(22px / var(--ui-scale,1))}
#device #dialog.account-dialog p{font-size:calc(14px / var(--ui-scale,1))}
#device #dialog.account-dialog button{min-height:calc(44px / var(--ui-scale,1));font-size:calc(15px / var(--ui-scale,1));margin-top:calc(8px / var(--ui-scale,1))}

/* Match the shop's finger targets without moving the approved brawler controls. */
#device .brawler-select button.pick-back::after{top:min(0px,calc(20px - 22.5px / var(--ui-scale,1)));bottom:min(0px,calc(20px - 22.5px / var(--ui-scale,1)));left:min(-11px,calc(48px - 45px / var(--ui-scale,1)));right:-8px}
#device .brawler-select button.pick-cat-btn::after{top:min(0px,calc(20px - 22.5px / var(--ui-scale,1)));bottom:min(0px,calc(20px - 22.5px / var(--ui-scale,1)));left:0;right:0}
#device .brawler-select .pick-cat-menu{top:max(46px,calc(20px + 22.5px / var(--ui-scale,1)))}
#device .brawler-select .pick-cat-menu button{height:max(40px,calc(45px / var(--ui-scale,1)))}
#device .brawler-select .bs-slot::after{content:"";position:absolute;left:50%;top:0;width:max(100%,calc(45px / var(--ui-scale,1)));height:100%;transform:translateX(-50%)}
#device .brawler-select .lockup{left:max(478px,calc(461px + 15px / var(--ui-scale,1)))}

/* The saved username reuses the settings row; account-enabled phones can scroll seven rows. */
#device .settings-split[data-settings-tab=game] .set-panel{max-height:496px;overflow-y:auto;overscroll-behavior:contain;scroll-padding:22px}
#device .settings-split[data-settings-tab=game] .set-panel>:is(h2,.set-row){flex:none}
#device .settings-split .username-edit{max-width:190px;font-size:12px}
/* Error actions use the loading scene's artwork placement, with their own safe footer. */
#device #loadfail .play-wrap{left:83px;top:auto;bottom:28px;width:380px;rotate:0deg;translate:none;scale:1}
#device #loadfail .load-slot:has(.nosig){position:static;margin:0}

/* Desktop shares the approved controls, with its current bindings beneath them. */
#device .menu-scene .tap-start{border:0;appearance:none;outline:none}
#device .menu-scene .tap-start:focus-visible .hw-px{outline:none}
#device .menu-scene .tap-start:focus-visible{filter:drop-shadow(0 0 5px #fff)}
/* The approved title art stays fixed; its own pixels catch a quiet moving highlight. */
#device .menu-scene .logo{animation:menu-logo-glow 3.6s ease-in-out infinite}
.menu-logo-shimmer{position:absolute;z-index:5;pointer-events:none;mask:var(--logo-mask) center/contain no-repeat;-webkit-mask:var(--logo-mask) center/contain no-repeat;background:linear-gradient(110deg,transparent 43%,#ffffffaa 49%,#bff6ff99 51%,transparent 57%);background-size:350% 100%;animation:menu-logo-shimmer 5.2s steps(28,end) infinite}
.menu-logo-pixels{position:absolute;z-index:5;pointer-events:none;overflow:hidden}
.menu-logo-pixels i{position:absolute;left:var(--x);top:66%;width:4px;height:4px;background:var(--pixel-color);opacity:0;animation:menu-logo-pixel-fall var(--duration) steps(12,end) var(--delay) infinite}
@keyframes menu-logo-pixel-fall{0%{opacity:0;transform:translate(0,-5px)}15%,35%{opacity:.9}85%,100%{opacity:0;transform:translate(var(--drift),17px)}}
@keyframes menu-logo-glow{0%,100%{filter:drop-shadow(0 0 5px #9fefff70) drop-shadow(0 0 12px #208aff60)}50%{filter:drop-shadow(0 0 8px #d3fbffaa) drop-shadow(0 0 18px #208aff90)}}
@keyframes menu-logo-shimmer{0%,15%{background-position:100% 0;opacity:0}20%{opacity:.75}55%{background-position:0 0;opacity:.75}62%,100%{background-position:0 0;opacity:0}}
@media(prefers-reduced-motion:reduce){#device .menu-scene .logo{animation:none;filter:drop-shadow(0 0 6px #9fefff70)}.menu-logo-shimmer,.menu-logo-pixels{animation:none;display:none}}
#device .age-check p{color:#fff;opacity:1;font-size:max(20px,calc(14px / var(--ui-scale,1)));white-space:normal}
#device .age-check .done-btn:disabled{opacity:.55;cursor:default}

#device .lobby-crowd .lc-seats{left:14px;right:14px;top:112px;display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:16px 4px}
#device .lobby-crowd .lc-seat{width:auto;min-width:0}
#device .lobby-crowd .lc-fig{width:84px;height:110px;margin:0 auto 8px}
#device .lobby-crowd .lc-plate{width:calc(100% - 6px);height:32px}
#device .lobby-crowd .lc-plate i{white-space:normal;overflow-wrap:anywhere;text-align:center;font-size:10px;line-height:12px;padding:0 4px}
#device .lobby-crowd .lc-check{top:103px}

/* Standalone control artwork; buttons retain their existing diamond hit areas. */
#device .phone.match :is(#stick,#punch,#special,#dash,#jump){border:0;background:transparent;box-shadow:none;padding:0;overflow:visible}
#device .phone.match :is(#punch,#special,#dash,#jump)>img{display:block;width:100%;height:100%;object-fit:contain;image-rendering:pixelated;pointer-events:none}
#device .phone.match #punch>img{scale:-1 1}
#device .phone.match #stick .stick-base{visibility:hidden}
#device .phone.match #stick .stick-thumb{visibility:inherit;width:100%;height:100%;left:0;top:0;border:0;background:transparent;box-shadow:none;border-radius:0}
#device .phone.match #stick .stick-thumb:before{display:none}
#device .phone.match #stick .stick-thumb img{width:100%;height:100%;object-fit:contain;image-rendering:pixelated;pointer-events:none}
#device[data-stick-side="RIGHT"] .phone.match #punch>img{scale:1 1}
@layer landscape-priority {
#device .phone.match #stick{bottom:calc(5% + 28px * var(--u))!important}
}
#device .phone.match #dash>img{scale:-1 1}
#device .phone.match #jump>img{transform:scale(1.09)}
#device .phone.match #jump.pressed>img{filter:brightness(.88)}
#device .phone.match #punch>img{width:80%;height:80%;margin:10% auto}
/* Small phones at 80% keep the approved art size and at least a 44px hit area.
   Expand inward from the bottom edge so JUMP retains its safe-area clearance. */
#device .phone.match :is(#dash,#jump)::after{content:'';position:absolute;left:50%;bottom:0;translate:-50% 0;width:max(100%,calc(44px / var(--ui-scale,1)));height:max(100%,calc(44px / var(--ui-scale,1)))}

@layer landscape-priority{#device .menu-scene .tap-start:focus-visible{outline:none!important}}

/* Keep NO SIGNAL art unchanged; its retry hit area stays finger-sized on scaled phones. */
#device .load-scene .nosig{position:relative}#device .load-scene .nosig::after{content:"";position:absolute;left:0;right:0;top:50%;height:max(100%,calc(45px / var(--ui-scale,1)));translate:0 -50%}
/* These button images include their authored border and reflections. */
#device .phone.match :is(#punch,#special,#dash,#jump,#counter)>img {width:100%!important;height:100%!important;margin:0!important;scale:none!important;transform:none!important;image-rendering:auto}
#device .phone.match #stick .stick-thumb img {image-rendering:auto}
/* A colored beveled rim keeps the existing symbols and their white centers clear. */
#device .phone.match .fight-rim{
 position:absolute;inset:3%;border-radius:34%;pointer-events:none;
 background:repeating-linear-gradient(146deg,transparent 0 8px,#fff6 8px 9px,transparent 9px 14px),
  linear-gradient(155deg,#fffd 3%,var(--rim-light) 29%,var(--rim-deep) 65%,var(--rim-light) 97%);
 mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);mask-composite:exclude;padding:5%;
 opacity:.64;
}
#device .phone.match #punch{--rim-light:#ff9d83;--rim-deep:#b03962}
#device .phone.match #special{--rim-light:#ffed9c;--rim-deep:#b27329}
#device .phone.match #dash{--rim-light:#a0faff;--rim-deep:#3054b2}
#device .phone.match #jump{--rim-light:#7cf6dc;--rim-deep:#227180}
#device .phone.match #counter{--rim-light:#b4d9ff;--rim-deep:#4856a3}
#device .phone.match .pressed>.fight-rim{opacity:.85}
#device .phone.match :is(#punch,#special,#counter)::after {content:'';position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:max(82%,calc(44px / var(--ui-scale,1)));height:max(82%,calc(44px / var(--ui-scale,1)))}
@media(hover:hover) and (pointer:fine){
 #device .match button:not(#stick)>.keyboard-hint {left:50%;top:auto;bottom:0;margin:0;background:#142743;color:white;border:1px solid #a8c7e2;border-radius:4px;padding:1px 4px;font:400 max(10px,calc(10.5px / var(--ui-scale,1)))/1.15 Bungee,sans-serif;text-shadow:none}
}

/* Watching bar (after a knockout): fighter buttons, SKIP TO RESULTS and REPORT are at least 44 css px tall (--ui-scale is css px per stage px);
   the WATCHING label and the name use the game font at a readable size. The face row stays 14px short of SKIP and scrolls sideways (remaining-ui.mjs fitFaceRow). */
#device .spec .srow button{width:max(44px,calc(44px / var(--ui-scale,1)));height:max(44px,calc(44px / var(--ui-scale,1)));flex-basis:max(44px,calc(44px / var(--ui-scale,1)))}
#device .spec .sfoot{bottom:max(18px,calc(14px / var(--ui-scale,1)))}
#device .spec .play-wrap .play{min-height:max(48px,calc(44px / var(--ui-scale,1)));display:flex;align-items:center;justify-content:center}
#device .runtime-state.spec .swho small{font:400 max(14px,calc(11.5px / var(--ui-scale,1)))/1 Bungee,sans-serif;letter-spacing:.04em;color:var(--ice)}
#device .runtime-state.spec .swho b{font-size:max(15px,calc(12px / var(--ui-scale,1)))}



.hot-tamale-status {
 position:absolute;left:50%;top:7%;translate:-50% 0;z-index:5;pointer-events:none;
 padding:.28em .64em;background:#4c2026;border:2px solid #ffb36b;border-radius:6px;
 color:#fff5d6;font:16px/1.12 Silkscreen,monospace;white-space:nowrap;
}
.hot-tamale-status[hidden]{display:none}
