/* V40: one explicit geometry, independent of page resets */
#kzvHeader39{position:sticky!important;top:0!important;z-index:950!important;display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;height:114px!important;min-height:114px!important;max-height:114px!important;flex:0 0 114px!important;padding:0!important;margin:0!important;border:0!important;border-bottom:1px solid #232832!important;background:#080a0e!important;box-sizing:border-box!important;transform:none!important;line-height:normal!important}
#kzvMode39,#kzvMode39 *{box-sizing:border-box!important;font-family:Arial,sans-serif!important;line-height:1!important}
#kzvMode39{position:relative!important;isolation:isolate;display:flex!important;align-items:center!important;gap:0!important;width:540px!important;max-width:calc(100% - 24px)!important;height:58px!important;min-height:58px!important;flex:0 1 540px!important;padding:4px!important;margin:0!important;border:1px solid #2a2c30!important;border-radius:999px!important;background:#111315!important;box-shadow:none!important;overflow:hidden!important}
#kzvMode39>i{position:absolute!important;z-index:-1!important;top:4px!important;bottom:4px!important;left:4px!important;width:calc(50% - 4px)!important;height:auto!important;margin:0!important;padding:0!important;border:0!important;border-radius:999px!important;background:#282b2f!important;box-shadow:inset 0 1px 0 #ffffff08!important;transition:transform .2s ease!important;pointer-events:none}
#kzvMode39[data-game=br]>i{transform:translateX(100%)}
#kzvMode39>a{position:relative!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:10px!important;flex:1 1 0!important;min-width:0!important;width:50%!important;height:48px!important;min-height:48px!important;padding:0 10px!important;margin:0!important;border:0!important;border-radius:999px!important;box-shadow:none!important;background:transparent!important;color:#969ca5!important;font-size:13px!important;font-weight:600!important;font-style:normal!important;letter-spacing:.02em!important;text-decoration:none!important;white-space:nowrap!important;transform:none!important}
#kzvMode39>a::before,#kzvMode39>a::after{display:none!important}
#kzvMode39>a[aria-current=true]{color:#fff!important}
#kzvMode39>a:hover{color:#fff!important}
#kzvMode39>a img{display:block!important;flex:0 0 28px!important;width:28px!important;height:28px!important;max-width:none!important;padding:0!important;margin:0!important;object-fit:contain!important;border:0!important;border-radius:0!important}
#kzvMode39>a span{font:inherit!important;line-height:1!important;margin:0!important;padding:0!important}
#kzvMode39>a:focus-visible{outline:2px solid #aaa!important;outline-offset:-3px!important}
#partyBuilder .frameHead{display:flex!important;align-items:center!important;justify-content:space-between!important;padding:16px 22px!important;min-height:68px!important}
#partyBuilder .frameHead>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;width:100%}
.kzvLobbyTabs39{display:inline-flex;align-items:center;gap:4px;padding:3px;border:1px solid #292d34;border-radius:999px!important;background:#090c10}
.kzvLobbyTabs39>button{position:relative;height:34px!important;padding:0 17px!important;border:0!important;border-radius:999px!important;background:transparent!important;box-shadow:none!important;color:#939aa4!important;font:600 13px Arial,sans-serif!important;cursor:pointer}
.kzvLobbyTabs39>button.active{background:#22272e!important;color:#fff!important}
.kzvLobbyTabs39>button::after,.kzvLobbyTabs39>button::before{display:none!important}
body.kzvTours #partyBuilder{display:block!important}body.kzvTours #partyBuilder .panel>:not(.frameHead){display:none!important}body.kzvTours #kzvTournamentPanel{display:block!important}
#partyBuilder #mmQueueInfo,#partyBuilder #brQueueInfo{margin:0!important}
.kzvDateRange{position:relative}.kzvDateSearch{padding-right:42px!important}.kzvDateClear39{position:absolute!important;top:0;right:4px;display:grid;place-items:center;width:34px;height:44px;border:0!important;background:transparent!important;color:#b6bcc5!important;font:24px Arial!important;cursor:pointer}.kzvDateClear39:disabled{opacity:.3;cursor:default}.kzvDateClear39:not(:disabled):hover{color:#fff!important}
.kzvProfilePage .kzvProfileGameMenu{display:none!important}.kzvProfileViewport{height:calc(100dvh - 174px)!important;overflow-y:auto!important;overflow-x:hidden!important;scrollbar-width:none;scrollbar-gutter:auto!important}.kzvProfileViewport::-webkit-scrollbar{display:none}.kzvProfilePage .kzvHub{padding-bottom:20px!important}#historyList,#rankingBoard{overflow:visible!important;max-height:none!important}
@media(max-width:600px){#kzvMode39>a{font-size:9px!important;gap:5px;padding:0 3px!important}#kzvMode39>a img{width:18px!important;height:18px!important}}
@media(prefers-reduced-motion:reduce){#kzvMode39>i{transition:none}}

body.kzvTours #partyBuilder+section#kzvTournamentPanel.show{display:block!important;visibility:visible!important}
@media(max-width:600px){#kzvMode39>a{font-size:10px!important;gap:6px!important;padding:0 4px!important}#kzvMode39>a img{width:22px!important;height:22px!important;flex-basis:22px!important}}
@media(prefers-reduced-motion:reduce){#kzvMode39>i{transition:none!important}}

.kzvDateRange{position:relative;margin-left:auto;z-index:80}.kzvDateSearch{box-sizing:border-box;position:relative;width:310px;height:46px;display:flex;align-items:center;gap:11px;padding:0 12px;border:1px solid #303944;border-radius:8px!important;background:linear-gradient(180deg,#131820,#0d1116);box-shadow:inset 0 1px rgba(255,255,255,.025),0 10px 28px rgba(0,0,0,.24);color:#eef2f6;cursor:pointer;transition:.16s}.kzvDateSearch:hover,.kzvDateSearch[aria-expanded=true]{border-color:#70601e;box-shadow:inset 0 1px rgba(255,255,255,.035),0 0 0 3px rgba(242,197,0,.055),0 12px 30px rgba(0,0,0,.3)}.kzvDateSearch>svg{flex:0 0 18px;width:18px;height:18px;fill:none;stroke:#f2c500;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.kzvDateSearch>span{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left;font:800 12px Inter,Arial,sans-serif}.kzvDateSearch>i{color:#77818d;font:700 15px Arial;transition:transform .16s}.kzvDateSearch[aria-expanded=true]>i{transform:rotate(180deg)}.kzvDateSearch>em{display:none;width:14px;height:14px;border:2px solid #38414b;border-top-color:#f2c500;border-radius:50%;animation:kzvFilterSpin .65s linear infinite}.kzvDateRange.loading .kzvDateSearch>i{display:none}.kzvDateRange.loading .kzvDateSearch>em{display:block}
.kzvCalendarPopover{position:absolute;right:0;bottom:calc(100% + 10px);width:330px;padding:14px;border:1px solid #343e49;border-radius:10px;background:linear-gradient(155deg,#151a21,#0b0e12 72%);box-shadow:0 24px 70px rgba(0,0,0,.7),inset 0 1px rgba(255,255,255,.035);opacity:0;visibility:hidden;transform:translateY(7px) scale(.985);transform-origin:bottom right;transition:opacity .15s,transform .15s,visibility .15s}.kzvCalendarPopover.open{opacity:1;visibility:visible;transform:none}.kzvCalendarHead{height:38px;display:grid;grid-template-columns:34px 1fr 34px;align-items:center;margin-bottom:7px}.kzvCalendarHead b{text-align:center;color:#f1f4f7;font:900 13px Inter,Arial,sans-serif;text-transform:capitalize}.kzvCalendarHead button{width:32px;height:32px;border:1px solid transparent;border-radius:6px!important;background:transparent;color:#8e98a4;font-size:21px;cursor:pointer}.kzvCalendarHead button:hover{border-color:#4d421b;background:#1d2020;color:#f2c500}
.kzvCalendarWeek,.kzvCalendarGrid{display:grid;grid-template-columns:repeat(7,1fr)}.kzvCalendarWeek span{padding:7px 0;text-align:center;color:#59636f;font:900 9px Inter,Arial,sans-serif}.kzvCalendarGrid{row-gap:3px}.kzvCalendarDay{position:relative;height:36px;border:0;border-radius:0!important;background:transparent;color:#cbd2d9;font:800 11px Inter,Arial,sans-serif;cursor:pointer;isolation:isolate}.kzvCalendarDay:hover:after,.kzvCalendarDay.edge:after{content:"";position:absolute;z-index:-1;inset:2px;border-radius:7px;background:#f2c500}.kzvCalendarDay:hover,.kzvCalendarDay.edge{color:#090b0e}.kzvCalendarDay.outside{color:#454d57}.kzvCalendarDay.inRange:before{content:"";position:absolute;z-index:-2;inset:4px -1px;background:rgba(242,197,0,.14)}.kzvCalendarDay.inRange.edge:first-of-type:before{border-radius:7px 0 0 7px}.kzvCalendarHint{display:flex;align-items:center;justify-content:space-between;min-height:38px;margin-top:10px;padding-top:11px;border-top:1px solid #29313a;color:#77818d;font:700 10px Inter,Arial,sans-serif}.kzvCalendarHint button{height:27px;padding:0 8px;border:1px solid #3b424b;border-radius:5px!important;background:#151a20;color:#aeb6bf;font:900 9px Inter,Arial,sans-serif;cursor:pointer}.kzvCalendarHint button:hover{border-color:#7a681c;color:#f2c500}
/* One viewport geometry for every route using the platform shell. */
html:has(#kzvHeader39){--kzv-side:300px;--kzv-left:300px;--kzv-right:300px;--kzv-head:114px;--kzv-bottom:60px;margin:0!important;padding:0!important;height:100%!important;overflow:hidden!important}
html:has(#kzvHeader39) body{margin:0!important;box-sizing:border-box!important;display:block!important;min-height:0!important;height:100dvh!important;padding:var(--kzv-head) var(--kzv-right) var(--kzv-bottom) var(--kzv-left)!important;overflow:hidden!important}
html:has(#kzvHeader39) .kzvSide{box-sizing:border-box!important;width:var(--kzv-side)!important;min-width:var(--kzv-side)!important;max-width:var(--kzv-side)!important;top:0!important;bottom:0!important;height:100dvh!important;transform:none!important}
html:has(#kzvHeader39) .kzvLeft{left:0!important;right:auto!important;display:flex!important;padding-top:0!important}
html:has(#kzvHeader39) .kzvRight{left:auto!important;right:0!important;display:block!important;overflow-y:auto!important}
html:has(#kzvHeader39) #kzvHeader39{position:fixed!important;left:var(--kzv-left)!important;right:var(--kzv-right)!important;top:0!important;width:auto!important;height:var(--kzv-head)!important;min-height:var(--kzv-head)!important;max-height:var(--kzv-head)!important;margin:0!important}
html:has(#kzvHeader39) .kzvFooter{left:var(--kzv-left)!important;right:var(--kzv-right)!important;bottom:0!important;height:60px!important;box-sizing:border-box!important}
html:has(#kzvHeader39) .wrap,html:has(#kzvHeader39) .kzvProfileViewport{box-sizing:border-box!important;position:relative!important;top:auto!important;min-height:0!important;height:calc(100dvh - var(--kzv-head) - var(--kzv-bottom))!important;max-height:none!important;width:100%!important;margin:0!important;padding:0!important;overflow:auto!important;scrollbar-width:none!important}
html:has(#kzvHeader39) .wrap::-webkit-scrollbar,html:has(#kzvHeader39) .kzvProfileViewport::-webkit-scrollbar{display:none}
.kzvSideHead41{height:114px;flex:0 0 114px;display:flex;align-items:center;margin:0 -13px 20px;padding:0 13px;border-bottom:1px solid #232832;box-sizing:border-box}
.kzvSideHead41 .kzvPlayBrand{width:100%;height:60px!important;margin:0!important;box-sizing:border-box!important}
html:has(#kzvHeader39) .kzvSocialHead{height:114px!important;box-sizing:border-box!important}
html:has(#kzvHeader39) #partyBuilder{padding:24px 20px!important;width:100%!important;max-width:1320px!important;margin:0 auto!important}
html:has(#kzvHeader39) #partyBuilder>.panel{max-height:none!important;overflow:visible!important;background:#0d1015!important;border:1px solid #282f38!important}
html:has(#kzvHeader39) #partyBuilder .frameHead{display:grid!important;grid-template-columns:1fr auto 1fr!important;gap:14px!important;align-items:center!important;padding:16px 22px!important;min-height:76px!important}
html:has(#kzvHeader39) #partyBuilder .frameHead>div:first-child{display:contents!important}
html:has(#kzvHeader39) .kzvLobbyTabs39{grid-column:1;grid-row:1;justify-self:start;white-space:nowrap}
html:has(#kzvHeader39) #partyBuilder #modeSwitcher{grid-column:2!important;grid-row:1!important;justify-self:center!important;display:flex!important;align-items:center!important;gap:4px!important;padding:3px!important;margin:0!important;border:1px solid #292d34!important;border-radius:999px!important;background:#090c10!important;flex-wrap:nowrap!important}
html:has(#kzvHeader39) #modeSwitcher .modeBtn{min-width:0!important;height:34px!important;padding:0 13px!important;border:0!important;border-radius:999px!important;background:transparent!important;color:#939aa4!important;font:600 12px Arial!important;box-shadow:none!important;letter-spacing:0!important}
html:has(#kzvHeader39) #modeSwitcher .modeBtn.active{background:#22272e!important;color:#fff!important}
html:has(#kzvHeader39) #partyBuilder #mmQueueInfo,html:has(#kzvHeader39) #partyBuilder #brQueueInfo,html:has(#kzvHeader39) #kzvRegistered41{position:static!important;grid-column:3!important;grid-row:1!important;justify-self:end!important;transform:none!important;top:auto!important;right:auto!important;margin:0!important;font:12px Arial!important;color:#8f98a4!important;text-align:right}
#kzvRegistered41{display:none!important;line-height:1.5!important}
html:has(#kzvHeader39) body.kzvTours #kzvRegistered41{display:block!important}
html:has(#kzvHeader39) body.kzvTours #mmQueueInfo,html:has(#kzvHeader39) body.kzvTours #brQueueInfo,html:has(#kzvHeader39) body.kzvTours #modeSwitcher{display:none!important}
html:has(#kzvHeader39) body.kzvTours #partyBuilder{display:block!important}
html:has(#kzvHeader39) body.kzvTours #partyBuilder>.panel>:not(.frameHead):not(#kzvTournamentPanel){display:none!important}
html:has(#kzvHeader39) #partyBuilder #kzvTournamentPanel{display:none!important;width:100%!important;min-height:0!important;padding:24px!important;margin:0!important;background:transparent!important;box-sizing:border-box!important}
html:has(#kzvHeader39) body.kzvTours #partyBuilder #kzvTournamentPanel{display:block!important}
#kzvTournamentPanel .kzvTourHub{width:100%;max-width:none}
#kzvTournamentPanel .kzvTourPageHead{display:none!important}
#kzvTournamentPanel .kzvTourSection[hidden]{display:none!important}
#kzvTournamentPanel .kzvTourRow{min-width:0!important;display:grid!important;grid-template-columns:105px minmax(130px,1fr) 110px 34px 34px minmax(130px,180px)!important;gap:12px!important;padding:16px!important;font-family:Arial!important}
#kzvTournamentPanel .kzvTourNameMain{font:700 14px Arial!important;overflow-wrap:anywhere}
#kzvTournamentPanel .kzvTourSectionTitle{font:700 12px Arial!important;letter-spacing:.04em}
#kzvTournamentPanel .kzvTourSection{margin-bottom:24px}
#kzvTournamentPanel .kzvTourList{overflow:visible!important}
#kzvTourTools41{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-top:16px}
#kzvTourTools41 .kzvPager{display:flex;gap:5px}
#kzvTourTools41 .kzvPager button{min-width:34px;height:34px;border:1px solid #303b46;background:#11171d;color:#929da9;font:800 12px Arial;cursor:pointer}
#kzvTourTools41 .kzvPager button.active{border-color:#f2c500;color:#fff}
#kzvTourTools41 .kzvPager button:disabled{opacity:.3;cursor:default}
#kzvTourTools41 .kzvDateRange{position:relative;margin-left:auto}
#kzvTourTools41 .kzvDateSearch{padding-right:42px!important}
.kzvCalendarPopover.kzvTourCalendar41{position:fixed!important;z-index:2100!important;bottom:auto!important;box-sizing:border-box!important}
.kzvTourCalendar41[hidden]{display:none!important}
@media(max-width:1450px){html:has(#kzvHeader39) #partyBuilder .frameHead{grid-template-columns:1fr auto!important}html:has(#kzvHeader39) #partyBuilder #modeSwitcher{grid-column:1/-1!important;grid-row:2!important}html:has(#kzvHeader39) #partyBuilder #mmQueueInfo,html:has(#kzvHeader39) #partyBuilder #brQueueInfo,html:has(#kzvHeader39) #kzvRegistered41{grid-column:2!important}#kzvTournamentPanel .kzvTourRow{grid-template-columns:95px minmax(120px,1fr) 90px!important}#kzvTournamentPanel .kzvTourAction{grid-column:2/-1!important}}
@media(max-width:1050px){html:has(#kzvHeader39){--kzv-left:240px;--kzv-right:0px;--kzv-side:240px;--kzv-bottom:124px}html:has(#kzvHeader39) .kzvRight{left:var(--kzv-left)!important;right:0!important;top:auto!important;bottom:60px!important;width:auto!important;min-width:0!important;max-width:none!important;height:64px!important;overflow:hidden!important}html:has(#kzvHeader39) .kzvRight .kzvSocialHead{height:64px!important}#kzvTourTools41{flex-wrap:wrap}#kzvTourTools41 .kzvDateRange{margin-left:0}}
@media(max-width:720px){html:has(#kzvHeader39){--kzv-left:0px}html:has(#kzvHeader39) .kzvLeft{display:none!important}html:has(#kzvHeader39) #partyBuilder{padding:16px 10px!important}html:has(#kzvHeader39) #partyBuilder .frameHead{padding:14px 10px!important;gap:12px!important}#kzvRegistered41{font-size:10px!important}#kzvTournamentPanel .kzvTourRow{grid-template-columns:80px minmax(80px,1fr)!important}#kzvTournamentPanel .kzvTourAction{grid-column:1/-1!important}html:has(#kzvHeader39) #partyBuilder #kzvTournamentPanel{padding:16px 10px!important}}
