/* Reference-inspired lobby treatment. Art, controls, and player skin stay separate. */
.layout{background:url('/lobby-ui/assets/lobby-smoked-gold-waves-v1.svg?v=3') center / 100% 100% no-repeat #050506!important;color:#f6f3ef}
.top-logo{display:block!important}
.profile::before{background:linear-gradient(145deg,#7b6a4b,#24201c 60%,#ffd43b)!important;filter:drop-shadow(0 0 5px #ffbd3266)}
.profile::after{background:#080708!important}.profile .avatar{border-color:#f8ce40!important;box-shadow:0 0 7px #ffc33366!important}
.profile .level{color:#ffda31!important}.profile .xp span{background:linear-gradient(90deg,#fff579,#ffca00)!important}
.currencies>span{border-color:#71675a99!important;background:linear-gradient(#171517,#080708)!important}.currencies .ico-coin,.currencies .plus{color:#ffd34c!important}.currencies .ico-gem{color:#c443ff!important}
.sidebar nav button{background:linear-gradient(155deg,#aa9161,#393334 45%,#29262a 75%,#d7aa43)!important;color:#f8f5f0!important}
.sidebar nav button::before{background:linear-gradient(165deg,#1d1b1d,#080709 75%)!important}.sidebar nav button .ui-icon{color:#ffd76f!important}
.sidebar nav button:hover,.sidebar nav button:focus-visible{background:linear-gradient(155deg,#ffe58a,#52402a 45%,#29211c 75%,#ffd247)!important}
.dock{border-color:#a9926099!important;background:linear-gradient(105deg,#090809,#151012,#050405)!important;box-shadow:inset 0 1px #fff2d51c,0 0 10px #daaa2e28!important}
.dock::before{background:linear-gradient(180deg,transparent 3%,#ffd254 17%,transparent 35%,transparent 70%,#eeb638 94%,transparent 100%) left/2px 100% no-repeat,linear-gradient(180deg,transparent 3%,#eeb638 17%,transparent 35%,transparent 70%,#ffd254 94%,transparent 100%) right/2px 100% no-repeat!important}
.dock button .ui-icon,.dock button:first-child .ui-icon{color:#f8d477!important}
.layout .dock button:hover .ui-icon,.layout .dock button:focus-visible .ui-icon{color:#fff0ab!important;filter:drop-shadow(0 0 5px #ffc93c77)!important}
.feature{background:linear-gradient(145deg,#fff3c0,#a57b35 30%,#716457 65%,#ffd451)!important;filter:drop-shadow(0 0 7px #ffa90088)!important}
.hero-label .ui-icon{color:#ffe08a!important}.hero-label strong{color:#fff!important}
.play{background:linear-gradient(160deg,#fff4a6 0%,#ffda3b 30%,#ffb600 65%,#d99000 100%)!important;clip-path:url(#nox-play-soft)!important;box-shadow:inset 0 2px #fff4ba!important}
.play span{color:#161100!important}.play:hover,.play:focus-visible{filter:drop-shadow(0 0 7px #ffc52e99)!important}
.skin-aura::before{background:conic-gradient(from 215deg,#57432a,#ffe7a5,#79633c,#fff3c0,#8e7134,#ffd332,#987a37,#ffe3a6,#57432a) border-box!important;filter:drop-shadow(0 0 3px #ffbb3366)!important}
.skin-aura::after{background:conic-gradient(transparent 0deg,transparent 310deg,#ffd94f10 324deg,#fff2ad 338deg,#ffce3340 347deg,transparent 360deg) border-box!important}
.layout .mode{background:linear-gradient(155deg,#aaa091,#48403e 38%,#282329 72%,#a38653)!important}
.layout .mode[aria-selected=true]{padding:1px!important;background:linear-gradient(180deg,#716b68 0%,#514946 68%,#d9a93e 100%)!important;filter:drop-shadow(0 2px 3px #d89e332b)!important}
/* Arena artwork preview: use the same image for the feature and its mode tile. */
.layout .mode[data-index='0']{--tab-art:url('/lobby-ui/assets/arena-clouds-user-v1.webp')!important}
.layout .feature-content[data-mode='arena']{background:linear-gradient(90deg,#08060bb3,transparent 48%),url('/lobby-ui/assets/arena-clouds-user-v1.webp') center/cover no-repeat!important}
.layout .mode[data-index='2']{--tab-art:url('/lobby-ui/assets/open-world-neon-user-v1.webp')!important}
.layout .feature-content[data-mode='open-world']{background:linear-gradient(90deg,#08060bb3,transparent 48%),url('/lobby-ui/assets/open-world-neon-user-v1.webp') center/cover no-repeat!important}
.arrow:hover{color:#ffda54!important}
@media (orientation:landscape){
 .layout .dock{left:max(1.1%,env(safe-area-inset-left));top:50%;transform:translateY(-50%);width:clamp(48px,4.5vw,60px);height:clamp(192px,44vh,350px);border-radius:999px;clip-path:none;padding:6px 2px}
 .dock::before{clip-path:none;border-radius:inherit}
 .layout .dock button{flex:1 1 0;width:100%;min-height:44px;max-height:none;border:0!important;border-radius:0;background:transparent!important}
 .layout .carousel{left:7%;width:86%;right:auto}
}
@media (orientation:portrait){.dock::before{background:linear-gradient(90deg,transparent,#ffd254,transparent) top/100% 2px no-repeat,linear-gradient(90deg,transparent,#eeb638,transparent) bottom/100% 2px no-repeat!important}}
/* Gold feedback across lobby controls, including keyboard navigation. */
.sidebar nav button::after{background:linear-gradient(90deg,transparent,#ffd45c,transparent)!important}
@media (hover:hover) and (pointer:fine){
 .layout .currencies>span:hover{box-shadow:inset 0 0 0 1px #ffd45c70,0 0 9px #e9b63c24!important}
 .layout .dock button:hover{background:transparent!important}
}
.layout :is(.profile,.sidebar nav button,.dock button,.mode,.arrow,.play,.currencies>span,.currencies .plain):focus-visible{outline-color:#ffd45c!important}
/* Individually scalable, warm-gold menu icon set. */
.dock .ico-inventory{--icon:url('/lobby-ui/assets/gold-menu-icons/inventory.svg')}
.dock .ico-shop{--icon:url('/lobby-ui/assets/gold-menu-icons/shop.svg')}
.dock .ico-ranking{--icon:url('/lobby-ui/assets/gold-menu-icons/ranking.svg')}
.dock .ico-tasks{--icon:url('/lobby-ui/assets/gold-menu-icons/tasks.svg')}
.dock .ui-icon{background:linear-gradient(#fff0b0,#e9ae4c)}
/* Let the mode artwork show through while preserving contrast behind labels. */
.layout .mode span::before{background:linear-gradient(90deg,#09090eb8 0%,#0d0c1266 42%,#0e0c1408 100%),var(--tab-art) center/cover no-repeat}
.layout .mode.mode-unavailable:not([aria-selected=true]){opacity:.85}
.layout .carousel .mode::after{display:none}
.layout .carousel .mode-card-glint{
 position:absolute;inset:0 auto 0 -45%;width:42%;z-index:1;
 pointer-events:none;opacity:0;
 background:linear-gradient(105deg,transparent 12%,#fff2bd42 50%,transparent 88%);
}
@media (hover:hover) and (pointer:fine){
 .layout .carousel .mode:hover{
  translate:none!important;
  filter:none!important;
 }
 .layout .carousel .mode:hover:not(:focus-visible){
  outline:1px solid #e6bf73;
  outline-offset:-2px;
 }
}
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){
 .layout .carousel .mode:hover .mode-card-glint{animation:nox-mode-art-glint 1.65s ease-in-out}
 @keyframes nox-mode-art-glint{
  0%{transform:translateX(0) skewX(-18deg);opacity:0}
  28%,68%{opacity:1}
  100%{transform:translateX(365%) skewX(-18deg);opacity:0}
 }
}
/* Full-color user-supplied currency artwork, separate from the values. */
.currencies .ico-coin,.currencies .ico-gem{-webkit-mask:none;mask:none;background-color:transparent!important;background-position:center;background-size:contain;background-repeat:no-repeat}
.currencies .ico-coin{background-image:url('/lobby-ui/assets/currency-coin-user-v2.webp')}
.currencies .ico-gem{background-image:url('/lobby-ui/assets/currency-gem-user-v2.webp')}
/* Give the currency artwork more room while keeping both controls aligned. */
.currencies>span{min-height:48px;padding:5px 11px!important;gap:7px}
.currencies .ico-coin,.currencies .ico-gem{width:38px;height:38px;flex:none}
@media (orientation:landscape) and (max-height:500px){
 .currencies>span{min-height:38px;padding:3px 7px!important;gap:4px}
 .currencies .ico-coin,.currencies .ico-gem{width:29px;height:29px}
}
@media (orientation:portrait){
 .currencies>span{min-height:38px;padding:3px 6px!important;gap:3px}
 .currencies .ico-coin,.currencies .ico-gem{width:27px;height:27px}
}
/* Keep the banner and controls still as artwork changes behind the title. */
.feature-content .hero-label{position:relative;z-index:2}
.mode-transition-previous,.mode-transition-sweep{position:absolute;inset:0;pointer-events:none}
.mode-transition-previous{z-index:0;animation:nox-mode-crossfade 520ms ease-in-out both}
.mode-transition-sweep{z-index:1;background:linear-gradient(105deg,transparent 36%,#ffe0a012 48%,transparent 60%);background-size:220% 100%;animation:nox-feature-glint 700ms ease-out both}
@keyframes nox-mode-crossfade{from{opacity:1}to{opacity:0}}
@keyframes nox-feature-glint{from{opacity:0;background-position:100% 0}25%{opacity:1}to{opacity:0;background-position:0 0}}
@media(prefers-reduced-motion:reduce){.mode-transition-previous,.mode-transition-sweep{display:none}}
/* User-supplied full-color menu artwork remains independent of each button. */
.sidebar nav button .ui-icon,.dock .ui-icon{-webkit-mask:none!important;mask:none!important;background-color:transparent!important;background-position:center!important;background-size:contain!important;background-repeat:no-repeat!important}
.sidebar .ico-gift{background-image:url('/lobby-ui/assets/user-menu-icons-v2/reward.webp')!important}
.sidebar .ico-trade{background-image:url('/lobby-ui/assets/user-menu-icons-v2/trade.webp')!important}
.sidebar .ico-collection{background-image:url('/lobby-ui/assets/user-menu-icons-v2/collections.webp')!important}
.sidebar .ico-highlights{background-image:url('/lobby-ui/assets/user-menu-icons-v2/highlights.webp')!important}
.dock .ico-inventory{background-image:url('/lobby-ui/assets/user-menu-icons-v2/inventory.webp')!important}
.dock .ico-shop{background-image:url('/lobby-ui/assets/user-menu-icons-v2/shop.webp')!important}
.dock .ico-ranking{background-image:url('/lobby-ui/assets/user-menu-icons-v2/ranking.webp')!important}
.dock .ico-tasks{background-image:url('/lobby-ui/assets/user-menu-icons-v2/tasks.webp')!important}
@media (orientation:landscape){.layout .brand{left:9.5%}}
/* Show the mode illustration without an outer contour. */
.layout .feature{padding:0!important;background:transparent!important;filter:none!important}
/* A single small gold glint follows the edge without drawing a full border. */
.feature{position:relative}
.feature-edge-light{position:absolute;inset:0;width:100%;height:100%;z-index:3;pointer-events:none;overflow:visible}
.feature-edge-light path{fill:none;stroke:#ffe092;stroke-width:2;stroke-linecap:round;stroke-dasharray:7 93;vector-effect:non-scaling-stroke;filter:drop-shadow(0 0 3px #ffbd4e88);opacity:.8}
.feature-edge-portrait{display:none}
@media (orientation:portrait){.feature-edge-landscape{display:none}.feature-edge-portrait{display:block}}
@media (prefers-reduced-motion:no-preference){.feature-edge-light path{animation:nox-feature-edge-travel 12s linear infinite}@keyframes nox-feature-edge-travel{to{stroke-dashoffset:-100}}}
@media (prefers-reduced-motion:reduce){.feature-edge-light{display:none}}
/* Two softly fading corner highlights; no line travels around the banner. */
.feature-edge-light path{stroke:url(#feature-corner-fade);stroke-dasharray:none;opacity:.7;filter:drop-shadow(0 0 3px #ffbd4e66)}
@media (prefers-reduced-motion:no-preference){.feature-edge-light path{animation:nox-feature-corner-breathe 5s ease-in-out infinite}@keyframes nox-feature-corner-breathe{0%,100%{opacity:.4}50%{opacity:.8}}}
/* Gold Play surface with the live icon and label above it. */
.layout .play{background:linear-gradient(160deg,#fff4a6 0%,#ffda3b 30%,#ffb600 65%,#d99000 100%)!important;clip-path:url(#nox-play-soft)!important;box-shadow:inset 0 2px #fff4ba!important}
.currencies .ico-settings{-webkit-mask:none!important;mask:none!important;background:transparent url('/lobby-ui/assets/settings-user-gold-v1.webp') center/contain no-repeat!important}
/* Larger shortcut content while the button geometry stays unchanged. */
@media (orientation:landscape){
 .layout .sidebar nav button{font-size:clamp(11px,1.25vw,18px);gap:clamp(5px,.65vw,10px)}
 .layout .sidebar nav button .ui-icon{width:clamp(22px,2.25vw,32px);height:clamp(22px,2.25vw,32px)}
}
@media (orientation:landscape) and (max-height:500px){
 .layout .sidebar nav button{font-size:clamp(10px,1.3vw,12px);gap:4px}
 .layout .sidebar nav button .ui-icon{width:clamp(19px,2.4vw,23px);height:clamp(19px,2.4vw,23px)}
}
@media (orientation:portrait){.layout .sidebar nav button .ui-icon{width:25px;height:25px}}

/* Larger gold Play surface, retaining the same bottom-right anchor. */
@media (orientation:landscape){.layout .play{width:54%!important;height:29%!important}}
/* Hover animates the underline only; the shortcut contour stays steady. */
@media (hover:hover) and (pointer:fine){.layout .sidebar nav button:hover{filter:none!important;translate:none!important;background:linear-gradient(155deg,#aa9161,#393334 45%,#29262a 75%,#d7aa43)!important}}

.feature-edge-centered{display:none}
/* The selected mode uses its name and artwork without a separate icon. */
.feature-content .hero-label #mode-icon{display:none}

/* Keep the carousel clean until more than four modes are present. */
.layout .carousel:not(:has(.mode:nth-child(5))) > .arrow{display:none!important}

/* Fine dark silhouette keeps Play legible against bright artwork. */
.layout .play{filter:drop-shadow(1px 0 0 #17110c) drop-shadow(-1px 0 0 #17110c) drop-shadow(0 1px 0 #17110c) drop-shadow(0 -1px 0 #17110c)!important}
@media (hover:hover) and (pointer:fine){.layout .play:hover{filter:drop-shadow(1px 0 0 #17110c) drop-shadow(-1px 0 0 #17110c) drop-shadow(0 1px 0 #17110c) drop-shadow(0 -1px 0 #17110c) drop-shadow(0 0 5px #ffc52e77)!important}}

/* Dimensional gold face with a narrow dark outline that follows the shape. */
.layout .play{background:linear-gradient(180deg,#fff2a1 0%,#ffd43c 15%,#ffbd11 52%,#e99a00 86%,#bc7300 100%)!important;filter:drop-shadow(2px 0 0 #080706) drop-shadow(-2px 0 0 #080706) drop-shadow(0 2px 0 #080706) drop-shadow(0 -2px 0 #080706)!important}
@media (hover:hover) and (pointer:fine){.layout .play:hover{filter:drop-shadow(2px 0 0 #080706) drop-shadow(-2px 0 0 #080706) drop-shadow(0 2px 0 #080706) drop-shadow(0 -2px 0 #080706) drop-shadow(0 0 5px #ffc52e77)!important}}

/* Unavailable Trade keeps the same full-color artwork as other shortcuts. */
.layout .sidebar nav button.action-unavailable{opacity:1!important;color:#c9c5c1!important}
/* Containers never acquire a browser focus contour; individual controls keep focus rings. */
html,body,.layout,.layout-live-frame{outline:none!important}
.layout .play{clip-path:none!important;background:transparent url('/lobby-ui/assets/play-gold-dimensional-v1.svg?v=7') center/100% 100% no-repeat!important;box-shadow:none!important;filter:none!important}
@media (hover:hover) and (pointer:fine){.layout .play:hover{filter:drop-shadow(0 0 5px #ffc52e77)!important}}
/* Play feedback scales in place instead of lifting vertically. */
.layout .play{transform-origin:center!important;translate:none!important;scale:1;transition:scale 180ms ease,filter 180ms ease!important}
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){.layout .play:hover{translate:none!important;scale:1.035!important}}
.layout .play:active{translate:none!important;scale:.98!important}
@media (prefers-reduced-motion:reduce){.layout .play,.layout .play:hover,.layout .play:active{scale:1!important;transition:none!important}}
/* Larger left menu and artwork while preserving its centered anchor. */
@media (orientation:landscape){
 .layout .dock{width:clamp(58px,5vw,72px);height:clamp(210px,48vh,390px)}
 .layout .dock button .ui-icon{width:clamp(34px,3.4vw,43px);height:clamp(34px,3.4vw,43px)}
}
@media (orientation:landscape) and (max-height:500px){
 .layout .dock{width:60px;height:min(54vh,220px)}
 .layout .dock button .ui-icon{width:35px;height:35px}
}
.layout .sidebar .ico-clans{-webkit-mask:none!important;mask:none!important;background:transparent url('/lobby-ui/assets/clans-gold-v1.svg') center/contain no-repeat!important}
.layout .dock .ico-trade{-webkit-mask:none!important;mask:none!important;background:transparent url('/lobby-ui/assets/user-menu-icons-v2/trade.webp') center/contain no-repeat!important}
@media (orientation:landscape) and (max-height:500px){.layout .dock{height:min(62vh,250px)}.layout .dock button{min-height:0!important}}
.layout .mode[data-index="1"]{--tab-art:url('/lobby-ui/assets/3v3-orb-battle-user-v1.webp')!important}
.layout .feature-content[data-mode="five-v-five"]{background:linear-gradient(90deg,#08060bb3,transparent 48%),url('/lobby-ui/assets/3v3-orb-battle-user-v1.webp') center/cover no-repeat!important}
/* Keep Trade visually balanced with the other left-menu artwork. */
.layout .dock button[data-preview="Trade"]{opacity:1!important}
@media (orientation:landscape){.layout .dock button[data-preview="Trade"] .ui-icon{width:clamp(34px,3.4vw,43px)!important;height:clamp(34px,3.4vw,43px)!important}}
@media (orientation:landscape) and (max-height:500px){.layout .dock button[data-preview="Trade"] .ui-icon{width:35px!important;height:35px!important}}
@media (orientation:portrait){.layout .dock button[data-preview="Trade"] .ui-icon{width:27px!important;height:27px!important}}
.layout .mode[data-index="3"]{--tab-art:url('/lobby-ui/assets/color-clash-neon-user-v1.webp')!important}
.layout .feature-content[data-mode="color-clash"]{background:linear-gradient(90deg,#08060bb3,transparent 48%),url('/lobby-ui/assets/color-clash-neon-user-v1.webp') center/cover no-repeat!important}
/* The button is clipped by the very same outline as the banner. */
.play-clip{display:contents}
/* Lobby feedback appears where players can see it, away from the mode tiles. */
.layout .notice{position:fixed!important;z-index:2000!important;left:50%!important;top:max(14px,env(safe-area-inset-top))!important;bottom:auto!important;transform:translateX(-50%)!important;box-sizing:border-box!important;width:max-content!important;max-width:min(440px,calc(100vw - 32px))!important;padding:12px 20px!important;border:1px solid #c19a49!important;border-radius:9px!important;background:#101014f5!important;color:#fff4df!important;box-shadow:0 8px 26px #000b,inset 0 1px #ffe2a421!important;font:700 14px/1.35 Arial,sans-serif!important;text-align:center!important;white-space:normal!important;pointer-events:none!important}
@media (orientation:landscape) and (max-height:500px){.layout .notice{top:max(8px,env(safe-area-inset-top))!important;padding:8px 15px!important;font-size:12px!important}}
/* Bright selected-mode contour, without changing mode card dimensions. */
.layout .mode[aria-selected=true]{padding:2px!important;background:linear-gradient(135deg,#fff3a0,#e6a800 42%,#ffdf61 75%,#b77c0e)!important;filter:drop-shadow(0 0 5px #ffc22f99)!important}

/* Scale the navigation to the available viewport while keeping its controls usable. */
@media (orientation:landscape){
 .layout .dock{width:clamp(48px,6.4vmin,80px)!important;height:clamp(180px,48dvh,410px)!important;padding:clamp(4px,.8vmin,8px) 2px!important}
 .layout .dock button{flex:1 1 0!important;min-height:0!important;max-height:none!important;width:100%!important}
 .layout .dock button .ui-icon,.layout .dock button[data-preview="Trade"] .ui-icon{width:clamp(23px,4.2vmin,46px)!important;height:clamp(23px,4.2vmin,46px)!important;max-width:76%!important;max-height:76%!important}
 .layout .sidebar nav button{min-width:0;font-size:clamp(9px,min(1.15vw,2.3vh),18px)!important}
 .layout .sidebar nav button .ui-icon{width:clamp(17px,min(2.2vw,4.2vh),32px)!important;height:clamp(17px,min(2.2vw,4.2vh),32px)!important}
}
@media (orientation:portrait){
 .layout .dock{height:clamp(52px,7dvh,70px)!important}
 .layout .dock button{min-width:0!important;min-height:44px!important}
 .layout .dock button .ui-icon,.layout .dock button[data-preview="Trade"] .ui-icon{width:clamp(23px,7vw,34px)!important;height:clamp(23px,7vw,34px)!important;max-width:75%!important;max-height:75%!important}
}

/* Reversible preview of the inset, angled reference play button. */
.layout .play{right:8%!important;bottom:3%!important;width:27%!important;height:20%!important;min-width:0!important;padding:0!important;overflow:visible!important;background:transparent url('/lobby-ui/assets/play-reference-trial-v3.svg') center/100% 100% no-repeat!important;filter:drop-shadow(0 2px 6px #ffb00055)!important}
.layout .play::after{content:'';position:absolute;right:-5.5%;top:20%;width:3%;height:72%;background:linear-gradient(#ffdf62,#f5a300);clip-path:polygon(68% 0,100% 0,32% 100%,0 100%);pointer-events:none}
@media (orientation:portrait){.layout .play{width:44%!important;height:16%!important;right:7%!important;bottom:3%!important}}
@media (orientation:landscape){.layout .play-clip .play{width:27%!important;height:20%!important;right:8%!important;bottom:3%!important;background:transparent url('/lobby-ui/assets/play-reference-trial-v3.svg') center/100% 100% no-repeat!important}}
.layout .play-clip .play span{transform:none!important;font-size:clamp(17px,2.5vw,42px)!important}
.layout .play-clip .play::after{content:''!important;display:block!important;position:absolute!important;right:-5.5%!important;top:20%!important;width:3%!important;height:72%!important;background:linear-gradient(#ffdf62,#f5a300)!important;clip-path:polygon(68% 0,100% 0,32% 100%,0 100%)!important;pointer-events:none!important}
@media (orientation:portrait){.layout .play-clip .play span{font-size:clamp(16px,5vw,23px)!important}}
@media (orientation:landscape){.layout.layout .play-clip .play{width:27%!important;height:20%!important;right:8%!important;bottom:3%!important;background:transparent url('/lobby-ui/assets/play-reference-trial-v3.svg') center/100% 100% no-repeat!important}}
/* Keep the decorative slash outside the button, clear of the label. */
.layout .play-clip .play::after{left:auto!important;right:-5.5%!important;background-image:none!important}
/* Gentle shadow separates the gold face from bright banner artwork. */
.layout .play-clip .play{filter:drop-shadow(0 3px 4px #0009) drop-shadow(0 2px 5px #d8880040)!important}
@media (hover:hover) and (pointer:fine){.layout .play-clip .play:hover{filter:drop-shadow(0 3px 4px #0009) drop-shadow(0 2px 7px #f7ad0055)!important}}
/* Keep Play closer to the banner edge and easier to tap on phones. */
@media (orientation:landscape){.layout.layout .play-clip .play{right:6.5%!important}}
@media (orientation:landscape) and (max-height:500px){.layout.layout .play-clip .play{height:27%!important;width:30%!important}}
@media (orientation:portrait){.layout .play-clip .play{right:5.5%!important;height:19%!important;width:46%!important}}
/* Guild artwork and more legible top-menu labels. */
.layout .sidebar .ico-clans{background-image:url('/lobby-ui/assets/guild-shield-user-v1.webp')!important;background-size:145%!important}
@media (orientation:landscape){.layout .sidebar nav button{font-size:clamp(10px,min(1.27vw,2.55vh),20px)!important}}
@media (orientation:portrait){.layout .sidebar nav button{font-size:clamp(10px,2.9vw,13px)!important}}
/* Stack the compact portrait controls so larger labels never overlap. */
@media (orientation:portrait){.layout .sidebar nav button{flex-direction:column!important;gap:1px!important;padding:2px!important;font-size:clamp(8px,2.3vw,10px)!important;line-height:1!important;white-space:nowrap!important}.layout .sidebar nav button .ui-icon{width:21px!important;height:21px!important}}

/* Portrait uses the same continuous rounded banner and gold interaction language. */
@media (orientation:portrait){
 .layout .feature{clip-path:none!important}
 .layout .feature-content{clip-path:url(#nox-centered-feature)!important}
 .layout .feature-edge-light .feature-edge-portrait,.layout .feature-edge-light .feature-edge-landscape{display:none!important}
 .layout .feature-edge-light .feature-edge-centered{display:block!important}
 .layout .feature-edge-light .feature-edge-gold{stroke-width:3;opacity:.9;filter:drop-shadow(0 0 3px #ffc832aa)}
 .layout .feature-edge-light .feature-edge-gold-top{stroke:url(#feature-gold-top)}
 .layout .feature-edge-light .feature-edge-gold-bottom{stroke:url(#feature-gold-bottom)}
 .layout .dock{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;align-items:center!important;justify-items:stretch!important;gap:0!important}
 .layout .dock button{display:grid!important;place-items:center!important;width:100%!important;max-width:none!important;height:100%!important;min-width:0!important;margin:0!important;padding:0!important}
 .layout .dock button .ui-icon{display:block!important;margin:auto!important}
 .layout .sidebar nav button:is(:hover,:focus-visible){border-color:#ffd45c!important;background:linear-gradient(155deg,#aa9161,#393334 45%,#29262a 75%,#d7aa43)!important;outline-color:#ffd45c!important}
 .layout .mode:not([aria-selected=true]):hover{background:linear-gradient(155deg,#aaa091,#48403e 38%,#282329 72%,#a38653)!important}
}
@media (orientation:portrait) and (max-width:340px){.layout .profile{width:39%!important}}
@media (orientation:portrait) and (max-height:650px){.layout .feature-wrap{top:max(21%,140px)!important;height:min(43%,calc(67% - max(21%,140px) - 8px))!important}}
/* Trade and Guild use the matching artwork in their new menu positions. */
.layout .sidebar .ico-trade{-webkit-mask:none!important;mask:none!important;background:transparent url('/lobby-ui/assets/user-menu-icons-v2/trade.webp') center/contain no-repeat!important}
.layout .dock .ico-clans{-webkit-mask:none!important;mask:none!important;background:transparent url('/lobby-ui/assets/guild-shield-user-v1.webp') center/145% no-repeat!important}
/* Softer, fading corner light for compact landscape screens. */
@media (orientation:landscape) and (max-height:600px){
 .layout.layout .feature-edge-light .feature-edge-gold{stroke-width:2!important;filter:drop-shadow(0 0 2px #efb73977)!important;opacity:.9!important}
 .layout.layout .feature-edge-light .feature-edge-gold-top{stroke:url(#feature-gold-top-mobile)!important}
 .layout.layout .feature-edge-light .feature-edge-gold-bottom{stroke:url(#feature-gold-bottom-mobile)!important}
}
/* A fine metallic fade makes the selected mode stand out without a solid border. */
.layout .mode[aria-selected=true]{padding:1.5px!important;background:linear-gradient(135deg,#fff0ae 0%,#e5ae38 19%,#8b713f 44%,#b69a5a 60%,#ffd566 84%,#9a6b1a 100%)!important;filter:drop-shadow(0 2px 4px #d89b3555)!important}
.layout .mode[data-index="1"]{--tab-art:url('/lobby-ui/assets/3v3-neon-arena-user-v1.webp')!important}
.layout .feature-content[data-mode="five-v-five"]{background:linear-gradient(90deg,#08060bb3,transparent 48%),url('/lobby-ui/assets/3v3-neon-arena-user-v1.webp') center/cover no-repeat!important}
/* Matching Arena feature art and mode tile. */
.layout .mode[data-index="0"]{--tab-art:url('/lobby-ui/assets/arena-skyfall-user-v1.webp')!important}
.layout .feature-content[data-mode="arena"]{background:linear-gradient(90deg,#08060bb3,transparent 48%),url('/lobby-ui/assets/arena-skyfall-user-v1.webp') center/cover no-repeat!important}
/* Matching Color Clash feature art and mode tile. */
.layout .mode[data-index="3"]{--tab-art:url('/lobby-ui/assets/color-clash-sky-arena-user-v1.webp')!important}
.layout .feature-content[data-mode="color-clash"]{background:linear-gradient(90deg,#08060bb3,transparent 48%),url('/lobby-ui/assets/color-clash-sky-arena-user-v1.webp') center/cover no-repeat!important}
/* 3v3 Crown Arena art, shared by the feature banner and mode tile. */
.layout .mode[data-index="1"]{--tab-art:url('/lobby-ui/assets/3v3-crown-arena-user-v1.webp')!important}
.layout .feature-content[data-mode="five-v-five"]{background:linear-gradient(90deg,#08060bb3,transparent 48%),url('/lobby-ui/assets/3v3-crown-arena-user-v1.webp') center/cover no-repeat!important}
/* Turquoise Sky Arena artwork for the 3v3 feature and mode tile. */
.layout .mode[data-index="1"]{--tab-art:url('/lobby-ui/assets/3v3-turquoise-sky-user-v1.webp')!important}
.layout .feature-content[data-mode="five-v-five"]{background:linear-gradient(90deg,#08060bb3,transparent 48%),url('/lobby-ui/assets/3v3-turquoise-sky-user-v1.webp') center/cover no-repeat!important}
/* Show more of the upper 3v3 scene within the wide feature banner. */
.layout .feature-content[data-mode="five-v-five"]{background-position:center,center 22%!important}
/* Open World feature art and matching mode tile. */
.layout .mode[data-index="2"]{--tab-art:url('/lobby-ui/assets/open-world-cel-sky-user-v1.webp')!important}
.layout .feature-content[data-mode="open-world"]{background:linear-gradient(90deg,#08060bb3,transparent 48%),url('/lobby-ui/assets/open-world-cel-sky-user-v1.webp') center/cover no-repeat!important}
/* Cel-shaded 3v3 artwork for the banner and mode tile. */
.layout .mode[data-index="1"]{--tab-art:url('/lobby-ui/assets/3v3-cel-shaded-user-v1.webp')!important}
.layout .feature-content[data-mode="five-v-five"]{background:linear-gradient(90deg,#08060bb3,transparent 48%),url('/lobby-ui/assets/3v3-cel-shaded-user-v1.webp') center/cover no-repeat!important}
/* Latest 3v3 banner and matching mode tile. */
.layout .mode[data-index="1"]{--tab-art:url('/lobby-ui/assets/3v3-cel-sky-arena-user-v1.webp')!important}
.layout .feature-content[data-mode="five-v-five"]{background:linear-gradient(90deg,#08060bb3,transparent 48%),url('/lobby-ui/assets/3v3-cel-sky-arena-user-v1.webp') center/cover no-repeat!important}
/* Golden Grid Open World artwork for the banner and mode tile. */
.layout .mode[data-index="2"]{--tab-art:url('/lobby-ui/assets/open-world-golden-grid-user-v1.webp')!important}
.layout .feature-content[data-mode="open-world"]{background:linear-gradient(90deg,#08060bb3,transparent 48%),url('/lobby-ui/assets/open-world-golden-grid-user-v1.webp') center/cover no-repeat!important}
/* Shorter desktop navigation rail; compact-screen sizing is unchanged. */
@media (orientation:landscape) and (min-height:601px) and (hover:hover) and (pointer:fine){.layout .dock{height:clamp(220px,40dvh,340px)!important}}

/* Locked modes keep their artwork, muted beneath a clear status badge. */
.layout .mode.mode-unavailable:not([aria-selected=true]){opacity:1!important}
.layout .mode.mode-unavailable span::before{filter:grayscale(1) brightness(.43)!important}
.layout .mode:is(.mode-unavailable,.mode-event-daily) span::after{
 content:'LOCKED'!important;position:absolute!important;z-index:3;right:12%;bottom:9%;
 display:flex;align-items:center;justify-content:center;min-height:22px;
 padding:3px 9px 3px 24px;margin:0!important;border:1px solid #a2a1a27a;
 border-radius:999px;background:#09090de8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23dedee0'%3E%3Cpath d='M7 10V7a5 5 0 0 1 10 0v3h1a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h1Zm2 0h6V7a3 3 0 1 0-6 0v3Zm3 4a1.5 1.5 0 0 0-1 2.62V19h2v-2.38A1.5 1.5 0 0 0 12 14Z'/%3E%3C/svg%3E") 7px center/13px 13px no-repeat;
 color:#dedee0!important;font:700 10px/1 Arial,sans-serif!important;text-shadow:none!important;
 pointer-events:none;
}
.layout .mode.mode-event-daily span::after{content:attr(data-event-countdown)!important;padding-left:9px;background:#09090de8;color:#ffe19a!important;border-color:#d7ae5680;white-space:nowrap;font-variant-numeric:tabular-nums}
@media (max-height:500px){.layout .mode:is(.mode-unavailable,.mode-event-daily) span::after{min-height:18px;padding:2px 6px 2px 19px;background-position:5px center;background-size:11px 11px;font-size:9px!important;bottom:7%}.layout .mode.mode-event-daily span::after{padding-left:6px}}

.layout #mode-event-timer:not([hidden]){
 display:block;margin-top:clamp(4px,.7vh,8px);color:#ffda65;
 font:700 clamp(11px,1.1vw,16px)/1.2 Arial,sans-serif;
 text-shadow:0 1px 5px #000,0 0 10px #000;
}
.layout #mode-event-timer[hidden]{display:none}

/* Place each game-mode label consistently at the top left of its card. */
.layout .carousel .mode span{
 align-items:flex-start!important;justify-content:flex-start!important;
 padding:clamp(10px,1.4vh,16px) 12% 0!important;
 font-family:Impact,"Arial Narrow",sans-serif!important;font-weight:400!important;font-style:normal!important;
 font-size:clamp(16px,1.6vw,23px)!important;letter-spacing:.035em;
 line-height:1.1;text-align:left;text-shadow:0 2px 4px #000,0 0 9px #000!important;
}
.layout .carousel .mode .ui-icon{align-self:flex-start}
@media (orientation:landscape) and (max-height:500px){
 .layout .carousel .mode span{padding:8px 12% 0!important;font-size:clamp(13px,1.8vw,17px)!important}
}

/* Wallet uses the existing mainnet wallet connector. */
.layout .lobby-wallet-button{position:absolute;z-index:4;display:grid;place-items:center;width:clamp(32px,4.4vh,44px);height:clamp(32px,4.4vh,44px);padding:5px;border:1px solid #8a8175;border-radius:7px;background:linear-gradient(#1c1c20,#0a0a0d);cursor:pointer}
.layout .lobby-wallet-button img{width:100%;height:100%;object-fit:contain}
.layout .lobby-wallet-button:hover,.layout .lobby-wallet-button:focus-visible{border-color:#ffd35b;box-shadow:0 0 10px #ffba3340}

/* Match the wallet to the currency blocks. */
.layout .currencies{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) auto;align-items:stretch}
.layout .lobby-wallet-button{position:static;width:100%;height:auto;min-width:0;min-height:48px;padding:5px 11px;border:1px solid #71675a99;border-radius:6px;background:linear-gradient(#171517,#080708);box-shadow:inset 0 1px #ffffff1c}
.layout .lobby-wallet-button img{width:38px;height:38px}
@media (orientation:landscape) and (max-width:1000px), (orientation:landscape) and (max-height:600px){.layout .lobby-wallet-button{min-height:38px;padding:3px 7px}.layout .lobby-wallet-button img{width:29px;height:29px}}

/* Give the wallet artwork more room inside its currency-sized button. */
.layout .lobby-wallet-button img{width:48px;height:48px;max-width:100%;object-fit:contain}
@media (orientation:landscape) and (max-width:1000px), (orientation:landscape) and (max-height:600px){.layout .lobby-wallet-button img{width:37px;height:37px}}

.layout .lobby-wallet-button{overflow:hidden}.layout .lobby-wallet-button img{width:58px;height:58px;max-width:none}@media (orientation:landscape) and (max-width:1000px), (orientation:landscape) and (max-height:600px){.layout .lobby-wallet-button img{width:45px;height:45px}}

/* Keep the balance row compact without shrinking its artwork. */
.layout .currencies{align-items:center}.layout .currencies>span,.layout .lobby-wallet-button{height:48px;min-height:48px}.layout .lobby-wallet-button{position:relative;padding:0}.layout .lobby-wallet-button img{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%)}@media (orientation:landscape) and (max-width:1000px), (orientation:landscape) and (max-height:600px){.layout .currencies>span,.layout .lobby-wallet-button{height:38px;min-height:38px}}

/* Clean, even profile frame. */
@media (orientation:landscape){.layout .profile{width:25%}.layout .profile::before,.layout .profile::after{clip-path:none;border-radius:9px}.layout .profile::before{inset:-3px -6px;background:#8b7751!important;filter:none}.layout .profile::after{inset:-2px -5px;background:#080708!important}}
@media (orientation:landscape) and (min-width:1001px) and (min-height:501px){.layout .profile{width:16.5%}}

@media (orientation:landscape){.layout .profile::before,.layout .profile::after{clip-path:url(#nox-rounded-profile);border-radius:0}}

@media (orientation:landscape){.layout .profile::before{background:linear-gradient(155deg,#aa9161,#393334 45%,#29262a 75%,#d7aa43)!important}.layout .profile::after{background:linear-gradient(165deg,#1d1b1d,#080709 75%)!important}}

/* Keep artwork on the card itself when mobile WebViews recomposite layers. */
.layout .carousel .mode > span {
  background: linear-gradient(90deg,#09090eb8 0%,#0d0c1266 42%,#0e0c1408 100%),var(--tab-art) center/cover no-repeat !important;
}
.layout .carousel .mode > span::before { display:none !important; }
.layout .carousel .mode.mode-unavailable .mode-card-art { filter:grayscale(1) brightness(.7); }

/* Artwork is a real image so mobile WebViews can reload it after a match. */
.layout .carousel .mode > span { background:#111115 !important; }
.layout .carousel .mode > span > .mode-card-art { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:0; pointer-events:none; }
.layout .carousel .mode > span > .mode-card-title { position:relative; z-index:2; font:inherit; color:inherit; text-shadow:0 1px 5px #000,0 2px 8px #000; }
.layout .carousel .mode > span::after { z-index:3; }
/* Each thumbnail is an image; reserve full-resolution artwork for the hero. */
html .layout.layout .carousel .mode { --tab-art:none!important; }

/* Smaller screens use the same banner art with a smaller decoded footprint. */
@media (max-width:1100px) {
 .layout .feature-content[data-mode="open-world"] { background-image:linear-gradient(90deg,#08060bb3,transparent 48%),url('/lobby-ui/assets/mode-hero-compact-v1/open-world.webp')!important; }
 .layout .feature-content[data-mode="arena"] { background-image:linear-gradient(90deg,#08060bb3,transparent 48%),url('/lobby-ui/assets/mode-hero-compact-v1/arena.webp')!important; }
 .layout .feature-content[data-mode="color-clash"] { background-image:linear-gradient(90deg,#08060bb3,transparent 48%),url('/lobby-ui/assets/mode-hero-compact-v1/color-clash.webp')!important; }
 .layout .feature-content[data-mode="five-v-five"] { background-image:linear-gradient(90deg,#08060bb3,transparent 48%),url('/lobby-ui/assets/mode-hero-compact-v1/five-v-five.webp')!important; }
}

/* Keep older cached lobby markup from expanding the wallet across the screen. */
.layout .sidebar > .lobby-wallet-button{position:absolute;left:auto!important;right:clamp(240px,23vw,360px);top:max(2%,env(safe-area-inset-top))!important;width:clamp(72px,7vw,112px);height:48px;min-height:0}
@media (orientation:landscape) and (max-width:1100px), (orientation:landscape) and (max-height:600px){.layout .sidebar > .lobby-wallet-button{right:clamp(150px,24vw,240px);width:clamp(50px,8vw,80px);height:34px}}
