/* Immersive mobile feed. Desktop layout and the registered LobbyG artwork are preserved. */
.mobile-feed-header,.mobile-creator-action,.mobile-post-logo,.avatar-follow{display:none}
@media(max-width:650px){
 :root{--mobile-nav-height:calc(66px + env(safe-area-inset-bottom,0px));--mobile-header-height:calc(62px + env(safe-area-inset-top,0px))}
 html,body{height:100%;overflow:hidden;overscroll-behavior:none;background:#000}
 body{padding:0}
 .topbar,.feed-column>.feed-tabs,.feed-foot,.feed-arrows{display:none}
 .workspace,html[dir="ltr"] .workspace{margin:0;height:100dvh}
 .main-grid{display:block;padding:0;margin:0;max-width:none;height:calc(100dvh - var(--mobile-nav-height))}
 .feed-column,.feed-shell{height:100%;max-width:none;width:100%;margin:0}
 #feed{height:100%;min-height:0;max-height:none;width:100%;border:0;border-radius:0;background:#000;overscroll-behavior-y:contain;touch-action:pan-y;scroll-snap-type:y mandatory;-webkit-overflow-scrolling:touch}
 .post{height:100%;min-height:100%;background:#000;scroll-snap-align:start;scroll-snap-stop:always}
 .post-video{object-fit:contain;background:#000}
 .post-image{object-fit:cover}
 .post:before{background:linear-gradient(180deg,#0007,transparent 24%,transparent 48%,#0004 67%,#000c 100%)}
 .mobile-feed-header{display:flex;position:absolute;z-index:8;inset:0 0 auto;align-items:center;justify-content:space-between;gap:4px;min-height:var(--mobile-header-height);padding:calc(8px + env(safe-area-inset-top,0px)) max(8px,env(safe-area-inset-right,0px)) 8px max(8px,env(safe-area-inset-left,0px));background:linear-gradient(#000b,#0005,transparent);text-shadow:0 1px 5px #000}
 .mobile-header-edge{display:flex;align-items:center;justify-content:center;flex-direction:column;flex:0 0 44px;min-height:44px;gap:0;color:#fff;padding:0}
 .mobile-header-edge svg{height:27px;width:27px;stroke-width:2}
 .mobile-header-edge small{font:800 12px/1.1 Inter,Arial,sans-serif}
 .mobile-feed-tabs{display:flex;align-items:center;justify-content:center;gap:clamp(8px,3vw,20px);min-width:0}
 .mobile-feed-tabs button{position:relative;min-height:44px;padding:6px 0;font-size:clamp(14px,4vw,18px);font-weight:600;color:#ccc;white-space:nowrap}
 .mobile-feed-tabs button.active{color:#fff;font-weight:800}
 .mobile-feed-tabs button.active:after{content:'';position:absolute;bottom:0;left:20%;right:20%;height:3px;background:#fff;border-radius:2px}
 .post-top{top:calc(var(--mobile-header-height) + 8px);inset-inline:14px;pointer-events:none}
 .post-top button{pointer-events:auto;background:#0005;border:0;width:36px;height:36px}
 .game-label{font-size:13px;padding:5px 9px;background:#0006;border-color:#ffffff30;max-width:calc(100% - 50px);overflow:hidden;text-overflow:ellipsis}
 .scene-label,html[dir="ltr"] .scene-label{top:calc(var(--mobile-header-height) + 51px);inset-inline-start:14px;inset-inline-end:auto;max-width:calc(100% - 28px);font-size:12px;background:#0006}
 .post-caption,html[dir="ltr"] .post-caption{left:auto;right:auto;inset-inline-start:16px;inset-inline-end:78px;bottom:54px;text-align:start;max-height:42%;overflow-y:auto;scrollbar-width:none;text-shadow:0 1px 3px #000}
 .creator-line strong{font-size:17px;line-height:1.4}
 .creator-line{flex-wrap:wrap;gap:6px}
 .follow-pill{font-size:13px;min-height:30px;line-height:1.3;padding:3px 8px}
 .avatar-follow{display:grid;place-items:center;position:relative;z-index:2;margin:-19px auto 0;width:23px;height:23px;border-radius:50%;background:var(--brand-violet);color:#111;font-weight:800;font-size:16px}
 .post-caption h1{font-size:18px;line-height:1.45;margin:7px 0 4px;overflow-wrap:anywhere}
 .post-caption p{font-size:14px;line-height:1.6;margin:4px 0;overflow-wrap:anywhere}
 .hashtags{font-size:13px;line-height:1.5;overflow-wrap:anywhere;margin-top:5px}
 .music-line{display:none}
 .post-actions,html[dir="ltr"] .post-actions{left:auto;right:auto;inset-inline-end:8px;bottom:62px;gap:12px;width:58px;justify-items:center}
 .action{width:54px;min-height:49px;gap:3px;text-shadow:0 1px 4px #000}
 .action .action-circle{width:42px;height:36px;background:transparent;border:0;backdrop-filter:none;box-shadow:none}
 .action .action-circle svg{height:31px;width:31px;stroke-width:2;filter:drop-shadow(0 1px 2px #0007)}
 .action .count{font-size:12px;line-height:1.2;color:#fff}
 .action.liked .action-circle{color:var(--brand-pink);background:transparent}
 .action.saved .action-circle{color:var(--brand-yellow);background:transparent}
 .action.gift-action .action-circle{color:var(--brand-pink);background:transparent;border:0;box-shadow:none}
 .mobile-creator-action{display:grid;place-items:center;border:2px solid #fff;width:44px;height:44px;border-radius:50%;background:#222;color:white;font-size:19px;font-weight:700;overflow:hidden}
 .play-control{height:60px;width:60px;top:47%;background:#0002;border:0;backdrop-filter:none}
 .play-control svg{width:38px;height:38px;filter:drop-shadow(0 2px 6px #0008)}
 .post.is-playing:hover .play-control{opacity:0}
 .post.is-playing .play-control:focus-visible{opacity:1}
 .post-bottom{bottom:7px;inset-inline:14px;align-items:center;min-height:38px;gap:8px}
 .mobile-post-logo{display:block;height:42px;width:42px;object-fit:contain;filter:none}
 .post-bottom>span{display:none}
 .post-bottom button{font-size:13px;min-height:38px;padding:5px 8px;border-radius:7px;background:#0005;color:#fff}
 .post-progress{height:2px}
 .bottom-nav{height:var(--mobile-nav-height);padding:4px max(5px,env(safe-area-inset-right,0px)) calc(4px + env(safe-area-inset-bottom,0px)) max(5px,env(safe-area-inset-left,0px));background:#000;border-top:1px solid #242424;align-items:center;gap:2px}
 .bottom-nav>button{min-width:0;width:20%;min-height:54px;font-size:12px;line-height:1.35;gap:4px;padding:4px 0;color:#a3a3a3}
 .bottom-nav>button svg{height:26px;width:26px;stroke-width:1.9}
 .bottom-nav>button.active{color:#fff}
 .bottom-nav>button.active[data-action="home"] svg{fill:#fff;stroke:#fff}
 .bottom-nav>.mobile-upload{flex:0 0 52px;width:52px;min-width:52px;min-height:36px;height:36px;border-radius:10px;border:3px solid transparent;background:linear-gradient(#fff,#fff) padding-box,var(--brand-gradient) border-box;color:#090909;box-shadow:none;margin-inline:5px}
 .bottom-nav>.mobile-upload svg{height:25px;width:25px;stroke-width:3}
 .dialog-head .language-control{display:flex}
 .dialog-head{padding-top:calc(12px + env(safe-area-inset-top,0px));gap:10px}
 .dialog-head h2{font-size:19px;min-width:0;overflow-wrap:anywhere}
 .dialog-head .language-control select{max-width:98px}
 #modal{width:100%;max-width:100%;max-height:100dvh;margin:auto 0 0;border-radius:18px 18px 0 0}
 #modal-body{padding:18px 18px calc(20px + env(safe-area-inset-bottom,0px))}
 .mobile-search-form .field{font-size:16px}
 .mobile-search-form input{font-size:16px;min-height:50px}
 #toast{bottom:calc(var(--mobile-nav-height) + 12px);font-size:14px;z-index:110}
 .empty{padding-top:calc(var(--mobile-header-height) + 65px)}
}
@media(max-width:650px) and (max-height:580px){
 .post-actions,html[dir="ltr"] .post-actions{gap:3px;bottom:42px}
 .mobile-creator-action{width:34px;height:34px;font-size:16px}
 .action{min-height:38px}.action .action-circle{height:26px}.action .action-circle svg{height:24px;width:24px}
 .post-caption,html[dir="ltr"] .post-caption{max-height:38%;bottom:42px}
 .scene-label{display:none}
}
