/* Reversible lobby experiment: ?layout=original restores the two-column view. */
@media (orientation:landscape){
 .layout .brand{display:none!important}
 .layout .feature-wrap{left:max(14%,calc(env(safe-area-inset-left) + 68px));right:max(8%,env(safe-area-inset-right));top:30%;width:auto;height:43%}
 /* Keep the artwork clipped while letting the corner strokes render whole. */
 .layout .feature{clip-path:none!important}
 .layout .feature-content{clip-path:url(#nox-centered-feature)}
 .layout .feature-edge-light .feature-edge-landscape{display:none}
 .layout .feature-edge-light .feature-edge-centered{display:block}
 .layout .play{width:32%!important;height:25%!important;right:5%;top:auto;bottom:0;transform:none!important}
}
/* Taller mode tiles echo the reference without shifting the centered row. */
@media (orientation:landscape){.layout .carousel .mode{height:clamp(74px,14vh,128px)}}
@media (orientation:landscape) and (max-height:500px){.layout .carousel .mode{height:70px}}
@media (orientation:landscape){
 .layout .play-clip{display:block;position:absolute;inset:0;z-index:4;clip-path:url(#nox-centered-feature)}
 .layout .play-clip .play{right:0;bottom:0;width:39%!important;background:transparent url('/lobby-ui/assets/play-gold-edge-v1.svg?v=2') center/100% 100% no-repeat!important}
 .layout .play-clip .play span{transform:translateX(-10%)}
 .layout .feature-edge-light .feature-edge-gold{stroke-width:3.5;opacity:1;filter:drop-shadow(0 0 3px #ffc832dd) drop-shadow(0 0 7px #f4a00099)}
}

@media (orientation:landscape){.layout .feature-edge-light{z-index:5}.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)}}

@media (orientation:landscape) and (prefers-reduced-motion:no-preference){.layout .feature-edge-light .feature-edge-gold{animation:nox-gold-corner-shimmer 5s ease-in-out infinite}@keyframes nox-gold-corner-shimmer{0%,100%{opacity:.8}50%{opacity:1}}}

/* The angled edge needs a small inset while the title stays near the corner. */
@media (orientation:landscape){
 .layout .feature-content{padding:clamp(14px,3.5vh,30px) 7% 4% 10.5%!important}
}
@media (orientation:landscape) and (max-height:500px){
 .layout .feature-content{padding-top:clamp(10px,3vh,15px)!important}
}

/* Gold race-style label and underline follow the title as it changes modes. */
.layout .feature-content .hero-label > div{
 display:flex;flex-direction:column;align-items:flex-start;min-width:0;
 background:linear-gradient(90deg,#efbd45aa,transparent 90%) left 8px/100% 1px no-repeat;
}
.layout .feature-content .hero-label > div::before{
 content:'FREE MODE';display:block;margin-bottom:clamp(4px,.7vh,8px);
 padding:3px 15px;border-radius:4px 10px 4px 10px;
 background:linear-gradient(180deg,#ffe473,#ffc02b 58%,#e99b00);
 color:#171006;text-shadow:none;font:italic 900 clamp(10px,1.1vw,15px)/1 Arial,sans-serif;
 box-shadow:0 2px 8px #0008;
}
.layout .feature-content[data-mode="arena"] .hero-label > div::before{content:'BATTLE ROYALE'}
.layout .feature-content:is([data-mode="five-v-five"],[data-mode="color-clash"]) .hero-label > div::before{content:'TEAM MODE'}
.layout .feature-content .hero-label strong{
 display:block;position:relative;line-height:1.02;
 font-family:Impact,"Arial Narrow",sans-serif!important;font-weight:400!important;font-style:normal!important;letter-spacing:.01em;
}
.layout .feature-content .hero-label strong::after{
 content:'';display:block;width:clamp(55px,9vw,130px);height:4px;margin:5px 0;
 border-radius:999px;background:linear-gradient(90deg,#ffbf18,#ffc637 55%,transparent);
 box-shadow:0 0 6px #ffbc3155;
}
@media (orientation:landscape) and (max-height:500px){
 .layout .feature-content .hero-label > div::before{font-size:9px;margin-bottom:3px;padding:3px 10px}
 .layout .feature-content .hero-label strong::after{height:3px;margin:3px 0}
}
