/* Ted boot splash — first paint while app JS/CSS load */
#ted-boot-splash{
  position:fixed;inset:0;z-index:2147483000;
  display:flex;align-items:center;justify-content:center;
  background:#000;
  transition:opacity .28s ease, visibility .28s ease;
}
#ted-boot-splash.is-done{
  opacity:0;visibility:hidden;pointer-events:none;
}
#ted-boot-splash img{
  width:min(42vw,168px);height:auto;
  object-fit:contain;
  filter:drop-shadow(0 8px 28px rgba(0,0,0,.55));
  animation:tedBootPulse 1.4s ease-in-out infinite;
}
@keyframes tedBootPulse{
  0%,100%{transform:scale(1);opacity:.92}
  50%{transform:scale(1.04);opacity:1}
}
html.ted-booting, html.ted-booting body{
  background:#000!important;
}
html.ted-boot-skip #ted-boot-splash,
#ted-boot-splash.is-done{
  display:none!important;
  opacity:0!important;
  visibility:hidden!important;
  pointer-events:none!important;
}
#tedNavBar{
  position:fixed;top:0;left:0;right:0;z-index:2147483001;
  height:2px;pointer-events:none;opacity:0;
  background:linear-gradient(90deg,#47d9ff,#1d9bf0);
  transform:scaleX(.12);transform-origin:left center;
  transition:opacity .15s ease;
}
#tedNavBar.is-on{
  opacity:1;
  animation:tedNavBarSlide 1.1s ease-in-out infinite;
}
@keyframes tedNavBarSlide{
  0%{transform:scaleX(.12)}
  50%{transform:scaleX(.82)}
  100%{transform:scaleX(.12)}
}

/* Home strip — in head so For You / Rooms / Rust never flash unstyled */
#socialFeedRoomsTabs.tabs-feed-rooms{
  display:flex!important;width:100%!important;height:48px!important;min-height:48px!important;
  margin:0!important;padding:0!important;border:0!important;border-bottom:1px solid #2f3336!important;
  background:#000!important;position:relative!important;overflow:visible!important;z-index:30!important;
}
#socialFeedRoomsTabs .feed-scope,
#socialFeedRoomsTabs .feed-rooms-tab{
  flex:1 1 0!important;min-width:0!important;position:relative!important;height:48px!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
}
#socialFeedRoomsTabs .feed-scope-btn,
#socialFeedRoomsTabs .feed-rooms-tab{
  appearance:none!important;-webkit-appearance:none!important;border:0!important;background:transparent!important;
  color:#71767b!important;font-size:15px!important;font-weight:700!important;line-height:1!important;
  width:100%!important;height:48px!important;padding:0 8px!important;margin:0!important;
  display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:4px!important;
  text-decoration:none!important;cursor:pointer!important;border-radius:0!important;
  white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
}
#socialFeedRoomsTabs .feed-scope.is-active .feed-scope-btn,
#socialFeedRoomsTabs .feed-scope-btn.is-current,
#socialFeedRoomsTabs .feed-rooms-tab.is-current{
  color:#e7e9ea!important;
}
#socialFeedRoomsTabs .feed-scope.is-active .feed-scope-btn::after,
#socialFeedRoomsTabs .feed-scope-btn.is-current::after,
#socialFeedRoomsTabs .feed-rooms-tab.is-current::after{
  content:""!important;position:absolute!important;left:10%!important;right:10%!important;bottom:0!important;
  height:4px!important;border-radius:999px!important;background:#1d9bf0!important;display:block!important;
}
#socialFeedRoomsTabs .feed-scope.is-open .feed-scope-btn::after{
  left:0!important;right:0!important;border-radius:0!important;height:3px!important;
}
#socialFeedRoomsTabs .feed-scope-btn-caret{flex:0 0 auto!important;opacity:.9!important;transition:transform .15s ease!important;width:16px!important;height:16px!important}
#socialFeedRoomsTabs .feed-scope.is-open .feed-scope-btn-caret{transform:rotate(180deg)!important}
#socialFeedRoomsTabs .feed-scope-btn:hover,
#socialFeedRoomsTabs .feed-rooms-tab:hover{background:rgba(231,233,234,.08)!important;color:#e7e9ea!important}
#socialFeedRoomsTabs .feed-scope-btn-text{overflow:hidden;text-overflow:ellipsis;max-width:100%}
@media (max-width: 720px) {
  #socialFeedRoomsTabs .feed-scope-btn-text{max-width:4.5em;font-size:14px!important}
  #socialFeedRoomsTabs .feed-rooms-tab{font-size:14px!important}
}
#feedScopePanel.feed-scope-panel,
#feedScopePanel,
#rustScopePanel.feed-scope-panel,
#rustScopePanel{
  position:fixed!important;z-index:2147483000!important;
  min-width:180px!important;max-width:min(320px,92vw)!important;
  padding:8px 0!important;margin:0!important;
  background:#15202b!important;border:1px solid #38444d!important;border-radius:12px!important;
  box-shadow:0 12px 40px rgba(0,0,0,.55)!important;
  display:none!important;flex-direction:column!important;
}
#feedScopePanel.is-shown,
#rustScopePanel.is-shown,
#socialFeedRoomsTabs .feed-scope.is-open #feedScopePanel,
#socialFeedRoomsTabs .rust-scope.is-open #rustScopePanel{
  display:flex!important;
}
#feedScopePanel .feed-scope-opt,
#rustScopePanel .feed-scope-opt{
  display:flex!important;align-items:center!important;justify-content:space-between!important;
  padding:14px 16px!important;color:#e7e9ea!important;text-decoration:none!important;
  font-size:15px!important;font-weight:700!important;background:transparent!important;border:0!important;
}
#feedScopePanel .feed-scope-opt:hover,
#rustScopePanel .feed-scope-opt:hover{background:rgba(255,255,255,.08)!important}
#feedScopePanel .feed-scope-opt.is-on,
#rustScopePanel .feed-scope-opt.is-on{color:#1d9bf0!important}
#feedScopePanel .feed-scope-opt.is-on::after,
#rustScopePanel .feed-scope-opt.is-on::after{content:"✓";font-weight:900;margin-left:12px;color:#1d9bf0}
#feedScopePanel .feed-scope-opt-live{border-top:1px solid #38444d!important;margin-top:4px!important;padding-top:14px!important}
#feedScopePanel .feed-scope-opt-live::before{content:none!important;display:none!important}
body.social-home .panel.top-tabs,
body.social-home section.top-tabs,
body.social-home .top-tabs{
  overflow:visible!important;max-height:none!important;height:auto!important;
}
