/* Native-feeling 360-430px layout, real min-width fixes instead of masking overflow. */
@media(max-width:1090px){
 :root{--lc19-side-width:202px}
 #lc19-side{width:var(--lc19-side-width);left:10px}
 body:has(#lc19-app-shell)>main{padding-left:calc(var(--lc19-side-width) + 26px)!important;padding-right:15px!important}
}
@media(max-width:790px){
 #lc19-side{display:none}
 #lc19-bottom{position:fixed;z-index:600;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));bottom:0;left:0;right:0;min-height:72px;padding:7px 3px calc(6px + env(safe-area-inset-bottom));box-sizing:border-box;background:color-mix(in srgb,var(--lc19-surface) 94%,transparent);border-top:1px solid var(--lc19-line);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);gap:0}
 #lc19-app-shell #lc19-bottom .lc19-navitem{flex-direction:column;gap:3px;min-width:0;min-height:55px;padding:7px 2px;text-align:center;justify-content:center;border-radius:11px;font-size:10px;line-height:1.1}
 #lc19-app-shell #lc19-bottom .lc19-navitem span{font-size:22px;min-width:0}
 #lc19-app-shell #lc19-bottom .lc19-navitem b{font-weight:800;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}
 body:has(#lc19-app-shell)>main{padding:86px 12px calc(110px + env(safe-area-inset-bottom))!important;max-width:100%!important}
 #lc19-top{height:64px;padding:6px 12px}
 .lc19-toolbar{gap:5px}.lc19-toolbar>span{padding:8px 9px;font-size:11px}.lc19-toolbar button{width:40px;height:40px}
 .lc19-brand{font-size:17px;gap:7px}.lc19-brandmark{width:38px;height:38px;font-size:24px}
 #lc19-corner{bottom:92px;right:12px;width:70px;height:73px;opacity:.8}#lc19-corner strong{width:43px;height:43px;font-size:22px}#lc19-corner small{font-size:8px}#lc19-corner.room{width:95px;height:98px;bottom:95px;right:5px}#lc19-corner.room strong{width:79px;height:79px;font-size:44px}
 #lc19-gift-area{bottom:172px;right:10px}#lc19-gift{width:54px;height:54px;border-radius:19px}#lc19-gift span{font-size:30px}
 .lc19-heading{padding:19px 17px;margin:0 0 14px}.lc19-heading h1{font-size:30px}.lc19-heading p{font-size:13px}
 .lc19-grid3{gap:7px}.lc19-metric{padding:12px 9px;border-radius:14px}.lc19-metric b{font-size:23px}.lc19-metric span{font-size:10px}
 .lc19-game-shell{padding:15px;border-radius:19px}.lc19-pairs{gap:9px}.lc19-pair{min-height:59px;padding:9px 10px;border-radius:12px;font-size:13px}
 .lc19-stage{padding:13px}.lc19-stage-icon{flex-basis:52px;height:54px;font-size:26px;border-radius:17px}.lc19-stage-head{gap:9px}.lc19-stage-head strong{font-size:16px}.lc19-stage-head>b{font-size:10px;max-width:75px}.lc19-stage-task{grid-template-columns:19px minmax(0,1fr);gap:9px}.lc19-stage-task button{grid-column:2;justify-self:start}.lc19-stage:not(:last-child):after{left:38px}
 .lc19-menu-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#lc19-menu{padding:17px}
 body:has(#lc19-app-shell) main *,body:has(#lc19-app-shell) main *::before,body:has(#lc19-app-shell) main *::after{max-width:100%;box-sizing:border-box}
 body:has(#lc19-app-shell) main :is(.grid,.row,[class*="-grid"],[class*="-row"]){min-width:0}
 body:has(#lc19-app-shell) main img,body:has(#lc19-app-shell) main video,body:has(#lc19-app-shell) main svg,body:has(#lc19-app-shell) main canvas{max-width:100%}
 body:has(#lc19-app-shell) main :is(input,textarea,select,button){min-width:0}
}
@media(max-width:390px){
 #lc19-top .lc19-brand small{display:none}
 #lc19-top .lc19-brand{font-size:15px}
 #lc19-top .lc19-brandmark{width:34px;height:34px}
 .lc19-toolbar>span:nth-child(2){display:none}
 #lc19-app-shell #lc19-bottom .lc19-navitem{font-size:9px}
 .lc19-root-catalog{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(prefers-reduced-motion:reduce){#lc19-gift,#lc19-corner strong,.lc19-gift-orb{animation:none!important}}
html[data-lc19-theme] body:has(#lc19-app-shell) #lc19-gift-area,html[data-lc19-theme] body:has(#lc19-app-shell) #lc19-corner{transition:opacity .2s}
html[data-lc19-theme] body:has(#lc19-app-shell):not(.lc-locked) #lc19-app-shell{display:contents}
html[data-lc19-theme] body:has(#lc19-app-shell) :where(.hidden,[hidden]){visibility:initial} /* keep legacy hidden class behavior controlled by display rules */
html[data-lc19-theme] body:has(#lc19-app-shell) #lc19-gift[aria-hidden="true"]{display:none}
