:root{
  --roosted-topbar-height:59px;
  --roosted-sidebar-width:246px;
}

/* Shared desktop workspace and service navigation */
body.roosted-sidebar-enabled{
  min-width:0;
  padding-left:0;
}

body.roosted-sidebar-enabled.roosted-sidebar-closed{
  padding-left:0;
}

html.roosted-sidebar-closed body.roosted-sidebar-enabled{
  padding-left:0;
}

.roosted-sidebar{
  position:fixed;
  inset:0 auto 0 0;
  z-index:1100;
  display:flex;
  width:var(--roosted-sidebar-width);
  min-height:100vh;
  min-height:100dvh;
  flex-direction:column;
  padding:10px 16px 18px;
  border-right:1px solid rgba(255,255,255,.08);
  background:#0d0e10;
  box-shadow:14px 0 34px rgba(0,0,0,.16);
  color:#fff;
  font-family:"Segoe UI Variable Text","Segoe UI",Inter,system-ui,-apple-system,BlinkMacSystemFont,sans-serif !important;
  font-size:14px !important;
  font-weight:400 !important;
  line-height:1.45 !important;
  transform:translateX(0);
  transition:transform 190ms ease;
}

body.roosted-sidebar-enabled > .roosted-sidebar{
  position:fixed !important;
  inset:0 auto 0 0 !important;
  z-index:1100 !important;
  display:flex !important;
  width:var(--roosted-sidebar-width) !important;
  min-width:var(--roosted-sidebar-width) !important;
  max-width:var(--roosted-sidebar-width) !important;
  min-height:100vh !important;
  min-height:100dvh !important;
  flex-direction:column !important;
  padding:10px 16px 18px !important;
}

body.roosted-sidebar-enabled.roosted-sidebar-closed > .roosted-sidebar{
  transform:translateX(-102%);
}

html.roosted-sidebar-closed body.roosted-sidebar-enabled > .roosted-sidebar{
  transform:translateX(-102%);
}

.roosted-sidebar.is-resolving .roosted-sidebar-scroll{
  visibility:hidden;
}

.roosted-sidebar *,
.roosted-sidebar *::before,
.roosted-sidebar *::after{
  box-sizing:border-box;
}

.roosted-sidebar-header{
  display:flex;
  min-height:39px;
  align-items:center;
  gap:7px;
}

.roosted-topbar-sidebar-head{
  display:flex;
  min-width:0;
  align-items:center;
  gap:7px;
}

.roosted-sidebar-brand{
  display:flex;
  min-width:0;
  align-items:center;
  padding:0;
  text-decoration:none;
}

.roosted-sidebar-brand img{
  display:block;
  width:auto;
  height:32px;
  max-width:190px;
  object-fit:contain;
}

.roosted-sidebar-scroll{
  min-height:0;
  flex:1;
  overflow-x:hidden;
  overflow-y:auto;
  padding:25px 0 18px;
  scrollbar-width:thin;
  scrollbar-color:rgba(255,255,255,.16) transparent;
}

.roosted-sidebar-section,
.roosted-sidebar-shortcuts{
  display:block;
}

.roosted-sidebar-shortcuts[hidden]{
  display:none;
}

.roosted-sidebar-label{
  padding:0 12px 9px;
  color:#777c84;
  font-size:10px !important;
  font-weight:800 !important;
  line-height:1.2 !important;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.roosted-sidebar-nav{
  display:grid;
  gap:3px;
}

.roosted-sidebar-service-tree{
  display:grid;
  gap:9px;
}

.roosted-sidebar-home-link,
.roosted-sidebar-service-home{
  position:relative;
  display:flex;
  min-height:42px;
  align-items:center;
  gap:11px;
  padding:0 10px;
  border:1px solid transparent;
  border-radius:7px;
  color:#c0c3c8;
  font-size:13px;
  font-weight:800;
  line-height:1.2;
  text-decoration:none;
  transition:background-color 140ms ease,border-color 140ms ease,color 140ms ease;
}

.roosted-sidebar-service-home{
  width:100%;
}

.roosted-sidebar-home-link::before,
.roosted-sidebar-service-home::before{
  position:absolute;
  top:9px;
  bottom:9px;
  left:0;
  width:2px;
  border-radius:2px;
  background:transparent;
  content:"";
}

.roosted-sidebar-home-link:hover,
.roosted-sidebar-service-home:hover{
  border-color:rgba(255,255,255,.06);
  background:rgba(255,255,255,.045);
  color:#fff;
}

.roosted-sidebar-home-link.active,
.roosted-sidebar-service-home.active{
  border-color:rgba(255,255,255,.07);
  background:#17191c;
  color:#fff;
}

.roosted-sidebar-home-link.active::before,
.roosted-sidebar-service-home.active::before{
  background:var(--blue,#00a4dc);
  box-shadow:0 0 12px rgba(0,164,220,.35);
}

.roosted-sidebar-service-icon{
  display:grid;
  width:27px;
  height:27px;
  flex:0 0 27px;
  place-items:center;
}

.roosted-sidebar-service-icon img,
.roosted-sidebar-service-icon svg{
  display:block;
  width:25px;
  height:25px;
  object-fit:contain;
}

.roosted-sidebar-service-icon svg{
  fill:currentColor;
}

.roosted-sidebar-service-icon img[src$="/monopoly.png"]{
  transform:scale(1.45);
}

.roosted-sidebar-service-icon.is-fallback{
  border:1px solid rgba(255,255,255,.14);
  border-radius:7px;
  background:rgba(255,255,255,.06);
  color:#fff;
  font-size:12px;
  font-weight:900;
}

.roosted-sidebar-service-name{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.roosted-sidebar-service-chevron{
  position:relative;
  display:block;
  width:7px;
  height:7px;
  flex:0 0 7px;
  margin-left:auto;
  border-right:2px solid currentColor;
  border-bottom:2px solid currentColor;
  color:#858a92;
  transform:translateY(-2px) rotate(45deg);
  cursor:pointer;
  transition:transform 140ms ease,color 140ms ease;
}

.roosted-sidebar-service-chevron::before{
  position:absolute;
  inset:-10px;
  content:"";
}

.roosted-sidebar-service-chevron:hover{
  color:#f2f4f7;
}

.roosted-sidebar-service-group.is-collapsed .roosted-sidebar-service-chevron{
  transform:translateX(-2px) rotate(-45deg);
}

.roosted-sidebar-service-group.is-collapsed .roosted-sidebar-service-links,
.roosted-sidebar-service-group.is-collapsed > [data-roosted-sidebar-service-sections]{
  display:none;
}

.roosted-sidebar-service-links{
  margin-top:1px;
  padding-left:38px;
}

.roosted-sidebar .roosted-sidebar-service-links a,
.roosted-sidebar .roosted-sidebar-service-links a.tab{
  min-height:34px;
  padding:0 10px !important;
  font-size:12px !important;
  font-weight:650 !important;
}

.roosted-sidebar-service-group > [data-roosted-sidebar-service-sections]{
  padding-left:38px;
}

.roosted-sidebar-dynamic-section.is-service-section .roosted-sidebar-divider{
  display:none;
}

.roosted-sidebar-dynamic-section.is-service-section .roosted-sidebar-nav{
  margin-top:2px;
}

.roosted-sidebar-dynamic-section.is-service-section .roosted-sidebar-rich-link{
  min-height:38px;
  padding:5px 10px !important;
}

.roosted-sidebar .roosted-sidebar-dynamic-section.is-service-section .roosted-sidebar-rich-link{
  gap:10px;
  border:0 !important;
  border-radius:0;
  background:transparent !important;
  box-shadow:none !important;
  color:#989da5;
}

.roosted-sidebar .roosted-sidebar-dynamic-section.is-service-section .roosted-sidebar-rich-link::before{
  display:none;
}

.roosted-sidebar .roosted-sidebar-dynamic-section.is-service-section .roosted-sidebar-rich-link:hover,
.roosted-sidebar .roosted-sidebar-dynamic-section.is-service-section .roosted-sidebar-rich-link.active{
  border:0 !important;
  background:transparent !important;
  color:#fff;
}

.roosted-sidebar-rich-text{
  display:grid;
  min-width:0;
  flex:1 1 auto;
  gap:2px;
}

.roosted-sidebar-rich-text strong,
.roosted-sidebar-rich-text small{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.roosted-sidebar-rich-text strong{
  position:relative;
  width:max-content;
  max-width:100%;
  padding-bottom:3px;
  border-bottom:2px solid transparent;
  color:inherit;
  font-size:13px;
  font-weight:700;
}

.roosted-sidebar-rich-text small{
  color:rgba(222,227,232,.58);
  font-size:11px;
  font-weight:500;
}

.roosted-sidebar-rich-link.active .roosted-sidebar-rich-text strong{
  border-bottom-color:var(--blue,#00a4dc);
  box-shadow:0 3px 7px -4px rgba(0,164,220,.8);
}

.roosted-sidebar-room-lock{
  width:17px;
  height:17px;
  flex:0 0 17px;
  color:rgba(235,239,243,.72);
}

.roosted-sidebar-room-lock.is-unlocked{
  color:#7ddcff;
}

.roosted-sidebar-room-lock svg{
  width:100%;
  height:100%;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.roosted-sidebar-empty{
  margin:2px 12px 0;
  color:rgba(255,255,255,.48);
  font-size:12px;
  line-height:1.45;
}

.roosted-sidebar-nav a{
  position:relative;
  display:flex;
  min-height:40px;
  align-items:center;
  padding:0 12px;
  border:1px solid transparent;
  border-radius:7px;
  color:#aeb2b8;
  font-family:inherit !important;
  font-size:13px !important;
  font-weight:700 !important;
  line-height:1.2 !important;
  text-decoration:none;
  transition:background-color 140ms ease,border-color 140ms ease,color 140ms ease;
}

.roosted-sidebar .roosted-sidebar-nav a,
.roosted-sidebar .roosted-sidebar-nav a.tab{
  width:100% !important;
  margin:0 !important;
  justify-content:flex-start !important;
  padding:0 12px !important;
  text-align:left !important;
  text-transform:none !important;
}

.roosted-sidebar-nav a::before{
  position:absolute;
  top:9px;
  bottom:9px;
  left:0;
  width:2px;
  border-radius:2px;
  background:transparent;
  content:"";
}

.roosted-sidebar-nav a:hover{
  border-color:rgba(255,255,255,.06);
  background:rgba(255,255,255,.045);
  color:#fff;
}

.roosted-sidebar-nav a.active{
  border-color:rgba(255,255,255,.07);
  background:#17191c;
  color:#fff;
}

.roosted-sidebar-nav a.active::before{
  background:var(--blue,#00a4dc);
  box-shadow:0 0 12px rgba(0,164,220,.35);
}

.roosted-sidebar .roosted-sidebar-service-links a,
.roosted-sidebar .roosted-sidebar-service-links a.tab{
  min-height:31px;
  padding:0 10px !important;
  border:0 !important;
  border-radius:0;
  background:transparent !important;
  box-shadow:none !important;
  color:#989da5;
  font-size:12px !important;
  font-weight:600 !important;
}

.roosted-sidebar .roosted-sidebar-service-links a::before{
  display:none;
}

.roosted-sidebar .roosted-sidebar-service-links a:hover{
  background:transparent !important;
  color:#fff;
}

.roosted-sidebar .roosted-sidebar-service-links a.active{
  background:transparent !important;
  color:#fff;
}

.roosted-sidebar-link-label{
  position:relative;
  display:inline-block;
  padding:3px 0;
}

.roosted-sidebar-service-links a.active .roosted-sidebar-link-label::after{
  position:absolute;
  right:0;
  bottom:-1px;
  left:0;
  height:2px;
  border-radius:2px;
  background:var(--blue,#00a4dc);
  box-shadow:0 0 9px rgba(0,164,220,.3);
  content:"";
}

.roosted-sidebar-nav .iw4x-admin-only{
  display:none;
}

body.admin-view .roosted-sidebar-nav .iw4x-admin-only,
body.iw4x-admin .roosted-sidebar-nav .iw4x-admin-only{
  display:flex;
}

.roosted-sidebar-divider{
  height:1px;
  margin:20px 12px;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.12) 14%,rgba(255,255,255,.12) 86%,transparent);
}

.roosted-sidebar-support{
  display:block;
  padding:15px 14px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:8px;
  background:#15171a;
  color:#fff;
  text-decoration:none;
  transition:border-color 140ms ease,background-color 140ms ease;
}

.roosted-sidebar-support:hover{
  border-color:rgba(255,255,255,.15);
  background:#191c20;
}

.roosted-sidebar-support strong,
.roosted-sidebar-support span{
  display:block;
}

.roosted-sidebar-support strong{
  font-size:13px !important;
  font-weight:700 !important;
  line-height:1.25 !important;
}

.roosted-sidebar-support span{
  margin-top:5px;
  color:#90959c;
  font-size:11px !important;
  font-weight:400 !important;
  line-height:1.4 !important;
}

.roosted-sidebar-backdrop{
  display:none;
}

.roosted-sidebar-toggle{
  display:inline-grid;
  width:36px;
  height:36px;
  flex:0 0 36px;
  place-content:center;
  gap:4px;
  padding:0;
  border:0;
  border-radius:6px;
  background:transparent;
  color:#fff;
  cursor:pointer;
}

.roosted-sidebar-toggle:hover,
.roosted-sidebar-toggle:focus-visible{
  background:rgba(255,255,255,.07);
}

.roosted-sidebar-toggle span{
  display:block;
  width:18px;
  height:2px;
  border-radius:2px;
  background:currentColor;
}

@media(min-width:921px){
  body.roosted-sidebar-enabled.roosted-sidebar-closed > .roosted-sidebar,
  html.roosted-sidebar-closed body.roosted-sidebar-enabled > .roosted-sidebar{
    inset:var(--roosted-topbar-height) auto 0 0 !important;
    width:58px !important;
    min-width:58px !important;
    max-width:58px !important;
    min-height:calc(100vh - var(--roosted-topbar-height)) !important;
    min-height:calc(100dvh - var(--roosted-topbar-height)) !important;
    padding:8px !important;
    transform:none !important;
    box-shadow:8px 0 22px rgba(0,0,0,.12);
  }

  body.roosted-sidebar-closed .roosted-sidebar-header,
  html.roosted-sidebar-closed body .roosted-sidebar-header{
    display:none;
  }

  body.roosted-sidebar-closed .roosted-sidebar-scroll,
  html.roosted-sidebar-closed body .roosted-sidebar-scroll{
    padding:2px 0 12px;
  }

  body.roosted-sidebar-closed .roosted-sidebar-service-tree,
  html.roosted-sidebar-closed body .roosted-sidebar-service-tree{
    gap:6px;
  }

  body.roosted-sidebar-closed .roosted-sidebar-home-link,
  body.roosted-sidebar-closed .roosted-sidebar-service-home,
  html.roosted-sidebar-closed body .roosted-sidebar-home-link,
  html.roosted-sidebar-closed body .roosted-sidebar-service-home{
    width:42px;
    min-height:42px;
    justify-content:center;
    gap:0;
    padding:0;
  }

  body.roosted-sidebar-closed .roosted-sidebar-service-name,
  body.roosted-sidebar-closed .roosted-sidebar-service-chevron,
  body.roosted-sidebar-closed .roosted-sidebar-service-links,
  body.roosted-sidebar-closed [data-roosted-sidebar-service-sections],
  body.roosted-sidebar-closed [data-roosted-sidebar-sections],
  body.roosted-sidebar-closed .roosted-sidebar-support,
  html.roosted-sidebar-closed body .roosted-sidebar-service-name,
  html.roosted-sidebar-closed body .roosted-sidebar-service-chevron,
  html.roosted-sidebar-closed body .roosted-sidebar-service-links,
  html.roosted-sidebar-closed body [data-roosted-sidebar-service-sections],
  html.roosted-sidebar-closed body [data-roosted-sidebar-sections],
  html.roosted-sidebar-closed body .roosted-sidebar-support{
    display:none !important;
  }

  body.roosted-sidebar-closed .roosted-sidebar-service-icon,
  html.roosted-sidebar-closed body .roosted-sidebar-service-icon{
    width:28px;
    height:28px;
    flex-basis:28px;
  }

  body.roosted-sidebar-closed .roosted-sidebar-service-icon img,
  body.roosted-sidebar-closed .roosted-sidebar-service-icon svg,
  html.roosted-sidebar-closed body .roosted-sidebar-service-icon img,
  html.roosted-sidebar-closed body .roosted-sidebar-service-icon svg{
    width:26px;
    height:26px;
  }

  body.roosted-sidebar-enabled .topbar .topbar-inner{
    position:relative;
    gap:7px;
  }

  body.roosted-sidebar-enabled .topbar .site-nav{
    position:absolute !important;
    top:50% !important;
    left:calc(var(--roosted-sidebar-width) + 16px) !important;
    flex:0 1 auto;
    margin-right:auto !important;
    gap:6px !important;
    margin-left:0 !important;
    transform:translateY(-50%) !important;
  }

  body.roosted-sidebar-enabled .topbar .site-nav > :not(:first-child)::before{
    display:none;
    content:none;
  }

  body.roosted-sidebar-enabled .topbar .site-nav > a,
  body.roosted-sidebar-enabled .topbar .site-nav > .nav-dropdown > .nav-trigger{
    min-height:36px;
    padding:0 12px;
    border:0 !important;
    border-bottom:2px solid transparent !important;
    background:transparent !important;
    color:#969ba2;
    font-size:13px;
    font-weight:800;
  }

  body.roosted-sidebar-enabled .topbar .site-nav > a:hover,
  body.roosted-sidebar-enabled .topbar .site-nav > a.active,
  body.roosted-sidebar-enabled .topbar .site-nav > .nav-dropdown:hover > .nav-trigger,
  body.roosted-sidebar-enabled .topbar .site-nav > .nav-dropdown.active > .nav-trigger{
    border-bottom-color:var(--blue,#00a4dc) !important;
    color:#fff;
  }

  body.roosted-sidebar-enabled .topbar .nav-trigger::after{
    display:block !important;
  }

  body.roosted-sidebar-enabled .topbar .nav-menu{
    width:180px;
    min-width:180px;
    padding:8px;
    border:1px solid rgba(255,255,255,.12);
    border-radius:8px;
    background:#151515 !important;
    box-shadow:0 16px 38px rgba(0,0,0,.38);
    backdrop-filter:blur(14px);
  }

  body.roosted-sidebar-enabled .topbar .nav-menu a{
    justify-content:flex-start;
    min-height:38px;
    padding:0 10px;
    border:0 !important;
    border-radius:7px;
    font-size:13px;
    font-weight:850;
  }

  body.roosted-sidebar-enabled .iw4x-shared-head,
  body.roosted-sidebar-enabled .jellyfin-head{
    display:none !important;
  }

  body.roosted-sidebar-enabled .iw4x-section-tabs-shell,
  body.roosted-sidebar-enabled .jellyfin-section-tabs-shell{
    display:none !important;
  }
}

html:has(body > .topbar),
body:has(> .topbar):not([class*="modal-open"]):not(.roosted-modal-scroll-locked){
  overflow-x:clip;
  overflow-y:visible;
}

html:has(body > .topbar){
  scrollbar-gutter:stable;
}

.topbar{
  position:sticky;
  top:0;
  z-index:1000;
  isolation:isolate;
  min-height:var(--roosted-topbar-height);
  border-bottom:1px solid rgba(255,255,255,.08);
  background:rgba(9,9,9,.82);
  backdrop-filter:blur(14px);
}

.topbar.roosted-topbar-shell{
  display:block;
  padding:0;
}

.topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  width:100%;
  min-height:var(--roosted-topbar-height);
  margin:0 auto;
  padding:10px 16px;
}

.brand,
.brand > a{
  display:flex;
  align-items:center;
  min-width:0;
  text-decoration:none;
}

.brand img,
.topbar-brand-logo{
  display:block;
  width:auto;
  height:32px;
  max-width:190px;
  object-fit:contain;
}

.roosted-auth{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  margin-left:auto;
  min-width:max-content;
  z-index:40;
}

.top-actions.roosted-auth{
  display:flex;
}

.roosted-auth.is-loading{
  visibility:hidden;
}

.roosted-auth-buttons{
  display:flex;
  align-items:center;
  gap:10px;
}

.roosted-auth-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  padding:0 12px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:8px;
  background:rgba(255,255,255,.06);
  color:#fff;
  font:inherit;
  font-size:13px;
  font-weight:800;
  line-height:1;
  text-decoration:none;
  white-space:nowrap;
  cursor:pointer;
}

.roosted-auth-btn:hover{
  background:rgba(255,255,255,.1);
}

.roosted-auth-btn.primary{
  border-color:transparent;
  background:var(--blue,#00a4dc);
  box-shadow:none;
}

.roosted-auth-btn.primary:hover{
  background:var(--blue-dark,#0085b4);
}

.roosted-profile-trigger,
.topbar #profileArea.profile{
  display:inline-flex;
  align-items:center;
  justify-content:flex-start;
  gap:8px;
  max-width:min(210px,42vw);
  height:38px;
  min-height:38px;
  padding:3px 10px 3px 4px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:999px;
  background:rgba(255,255,255,.06);
  color:#fff;
  font:inherit;
  cursor:pointer;
  overflow:hidden;
}

.roosted-profile-trigger:hover,
.roosted-auth.menu-open .roosted-profile-trigger,
.topbar #profileArea.profile:hover,
.topbar #profileArea.profile.is-menu-open{
  background:rgba(255,255,255,.1);
}

.roosted-profile-trigger::after,
.topbar #profileArea.profile::after{
  content:"";
  flex:0 0 auto;
  width:7px;
  height:7px;
  margin-left:1px;
  border-right:2px solid rgba(255,255,255,.7);
  border-bottom:2px solid rgba(255,255,255,.7);
  transform:rotate(45deg) translateY(-1px);
  transition:transform .14s ease;
}

.roosted-auth.menu-open .roosted-profile-trigger::after,
.topbar #profileArea.profile.is-menu-open::after{
  transform:rotate(225deg) translate(-1px,-1px);
}

.roosted-profile-trigger img,
.topbar #profileArea.profile img{
  display:block;
  flex:0 0 auto;
  width:30px;
  height:30px;
  border:1px solid var(--border,#2a2a2a);
  border-radius:50%;
  background:#111;
  object-fit:cover;
}

.roosted-profile-trigger span,
.topbar #profileArea.profile #profileName{
  display:block;
  min-width:0;
  max-width:none;
  overflow:hidden;
  color:#fff;
  font-size:13px;
  font-weight:400;
  line-height:1;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.topbar #profileArea.profile .profile-text{
  display:block;
  min-width:0;
  line-height:1;
  text-align:left;
}

.roosted-profile-menu{
  position:absolute;
  top:calc(100% + 8px);
  right:0;
  display:none;
  width:180px;
  padding:8px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:8px;
  background:#151515;
  box-shadow:0 16px 38px rgba(0,0,0,.38);
  backdrop-filter:blur(14px);
}

.roosted-auth.menu-open .roosted-profile-menu{
  display:block;
}

.roosted-profile-name{
  display:none;
  padding:8px 9px 10px;
  color:#fff;
  font-size:13px;
  font-weight:850;
  line-height:1.2;
  overflow-wrap:anywhere;
}

.roosted-menu-item{
  display:flex;
  align-items:center;
  width:100%;
  min-height:38px;
  padding:0 10px;
  border:0;
  border-radius:7px;
  background:transparent;
  color:#fff;
  font:inherit;
  font-size:13px;
  font-weight:850;
  text-align:left;
  text-decoration:none;
  cursor:pointer;
}

.roosted-menu-item:hover{
  background:rgba(255,255,255,.08);
  color:#fff;
}

.roosted-menu-item.danger{
  color:#ffc6c6;
}

.roosted-menu-item.danger:hover{
  background:rgba(255,255,255,.08);
}

.roosted-modal{
  position:fixed;
  inset:0;
  z-index:5000;
  display:none;
  align-items:center;
  justify-content:center;
  padding:18px;
  background:rgba(0,0,0,.72);
}

.roosted-modal.open{
  display:flex;
}

.roosted-modal-box{
  width:100%;
  max-width:340px;
  padding:22px;
  border:1px solid var(--border,#2a2a2a);
  border-radius:8px;
  background:#151515;
  box-shadow:0 22px 70px rgba(0,0,0,.5);
  color:#fff;
  text-align:center;
}

.roosted-modal-box h3{
  margin:0 0 14px;
  color:#fff;
  font-size:22px;
  font-weight:850;
  letter-spacing:0;
}

.roosted-modal-box p{
  margin:0 0 12px;
  color:var(--muted,#a7a7a7);
  font-size:14px;
  line-height:1.5;
}

.roosted-modal-box input{
  display:block;
  width:100%;
  margin-top:10px;
  padding:13px 12px;
  border:1px solid var(--border,#2a2a2a);
  border-radius:8px;
  background:#101010;
  color:#fff;
  font:inherit;
  font-size:15px;
  outline:none;
}

.roosted-modal-box input:first-of-type{
  margin-top:0;
}

.roosted-modal-box input:focus{
  border-color:var(--blue,#00a4dc);
  box-shadow:0 0 0 2px rgba(0,164,220,.15);
}

.roosted-modal-actions{
  display:grid;
  gap:10px;
  margin-top:14px;
}

.roosted-modal-actions.split{
  grid-template-columns:1fr 1fr;
}

.roosted-modal-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:100%;
  min-height:44px;
  border:1px solid var(--border,#2a2a2a);
  border-radius:8px;
  background:var(--panel-2,#181818);
  color:#fff;
  font:inherit;
  font-weight:800;
  cursor:pointer;
}

.roosted-modal-button.primary{
  border-color:transparent;
  background:var(--blue,#00a4dc);
}

.roosted-modal-button.primary:hover{
  background:var(--blue-dark,#0085b4);
}

.roosted-modal-button:disabled{
  cursor:default;
  opacity:.62;
}

.roosted-modal-link{
  display:inline-flex;
  justify-content:center;
  margin-top:12px;
  border:0;
  background:transparent;
  color:#b9d9ff;
  font:inherit;
  font-size:13px;
  font-weight:760;
  text-decoration:none;
  cursor:pointer;
}

.roosted-modal-link:hover{
  text-decoration:underline;
}

.roosted-modal-message{
  min-height:18px;
  margin-top:12px;
  color:var(--muted,#a7a7a7);
  font-size:13px;
  line-height:1.35;
  text-align:center;
}

body.roosted-auth-modal-open{
  overflow:hidden;
}

@media(max-width:760px){
  :root{
    --roosted-topbar-height:64px;
  }

  .topbar-inner{
    min-height:var(--roosted-topbar-height);
  }

  .brand img,
  .topbar-brand-logo{
    height:42px;
    max-width:min(170px,45vw);
  }

  .roosted-auth{
    gap:6px;
  }

  .roosted-auth-btn{
    min-height:32px;
    padding:0 9px;
    font-size:12px;
  }

  .roosted-profile-trigger,
  .topbar #profileArea.profile{
    width:36px;
    height:36px;
    min-height:36px;
    padding:3px;
    justify-content:center;
  }

  .roosted-profile-trigger::after,
  .topbar #profileArea.profile::after{
    display:none;
  }

  .roosted-profile-trigger img,
  .topbar #profileArea.profile img{
    width:28px;
    height:28px;
  }

  .roosted-profile-trigger span,
  .topbar #profileArea.profile .profile-text{
    display:none;
  }

  .roosted-profile-menu{
    right:0;
    width:min(220px,calc(100vw - 24px));
  }

  .roosted-profile-name{
    display:block;
  }
}

@media(max-width:430px){
  .roosted-auth-buttons{
    gap:7px;
  }

  .roosted-auth-btn{
    padding:0 10px;
  }
}

/* Universal site header. Page-specific styles must not resize or reposition it. */
.topbar:has(> .topbar-inner),
.topbar.roosted-topbar-shell{
  display:block !important;
  box-sizing:border-box;
  width:100%;
  height:59px;
  min-height:59px;
  padding:0 !important;
  font-family:"Segoe UI Variable Text","Segoe UI",Inter,system-ui,-apple-system,BlinkMacSystemFont,sans-serif;
  font-size:14px;
  line-height:1.45;
  letter-spacing:0;
}

.topbar *,
.topbar *::before,
.topbar *::after{
  box-sizing:border-box;
}

.topbar a,
.topbar button{
  font-family:inherit;
  letter-spacing:0;
}

.topbar > .topbar-inner{
  position:relative;
  box-sizing:border-box;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:18px;
  width:100%;
  height:59px;
  min-height:59px;
  margin:0 auto;
  padding:10px 16px !important;
}

.topbar .brand,
.topbar .topbar-brand{
  flex:0 0 auto;
}

.topbar .brand img,
.topbar .topbar-brand-logo{
  display:block;
  width:auto;
  height:32px;
  max-width:190px;
  object-fit:contain;
}

.topbar .topbar-actions{
  position:relative;
  z-index:40;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  min-width:max-content;
  margin-left:auto;
}

.topbar .topbar-actions > .roosted-auth,
.topbar .topbar-actions > #topbarAuth,
.topbar .topbar-actions > .request-ticket-wrap.ready,
.topbar .topbar-actions > .notification-wrap.ready,
.topbar .topbar-actions > #profileArea.profile{
  margin:0 !important;
}

.topbar .notification-bell{
  box-sizing:border-box;
  width:38px;
  height:38px;
  padding:0;
}

.topbar .roosted-auth > .request-ticket-wrap{
  flex:0 0 auto;
  margin:0 !important;
}

.site-nav{
  position:absolute;
  top:50%;
  left:max(130px,calc((100% - 1180px) / 2));
  z-index:50;
  display:flex;
  align-items:center;
  gap:6px;
  margin-left:0;
  transform:translateY(-50%);
}

.site-nav a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:36px;
  padding:0 12px;
  border-bottom:2px solid transparent;
  color:var(--soft,#b7bcc5);
  font-size:13px;
  font-weight:800;
  line-height:1.45;
  text-decoration:none;
  transition:color 140ms ease,border-color 140ms ease;
}

.site-nav a:hover,
.site-nav a.active{
  border-color:var(--blue,#00a4dc);
  color:#fff;
}

.nav-dropdown{
  position:relative;
}

.nav-dropdown::after{
  content:"";
  position:absolute;
  top:100%;
  right:-8px;
  left:-8px;
  height:10px;
}

.nav-trigger{
  gap:8px;
}

.nav-trigger::after{
  content:"";
  width:7px;
  height:7px;
  margin-top:-3px;
  border-right:2px solid currentColor;
  border-bottom:2px solid currentColor;
  opacity:.72;
  transform:rotate(45deg);
}

.nav-dropdown:hover .nav-trigger,
.nav-dropdown:focus-within .nav-trigger,
.nav-dropdown.active .nav-trigger{
  border-color:var(--blue,#00a4dc);
  color:#fff;
}

.nav-menu{
  position:absolute;
  top:100%;
  left:0;
  z-index:500 !important;
  isolation:isolate;
  display:none;
  min-width:170px;
  margin-top:8px;
  padding:8px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:8px;
  background-color:#151515 !important;
  background-image:none !important;
  opacity:1 !important;
  mix-blend-mode:normal;
  backdrop-filter:none;
  box-shadow:0 16px 38px rgba(0,0,0,.38);
  font-family:"Segoe UI Variable Text","Segoe UI",Inter,system-ui,-apple-system,BlinkMacSystemFont,sans-serif;
  font-size:13px;
  line-height:1.45;
  letter-spacing:0;
}

.nav-dropdown:hover .nav-menu,
.nav-dropdown:focus-within .nav-menu{
  display:grid;
}

.nav-menu a{
  justify-content:flex-start;
  min-height:34px;
  padding:0 10px;
  border:0;
  border-radius:7px;
  color:#fff;
}

.nav-menu a:hover,
.nav-menu a:focus-visible{
  border-color:transparent;
  background:rgba(255,255,255,.08);
}

@media(min-width:1430px){
  .site-nav{
    left:calc((100% - 1180px) / 2);
  }
}

@media(max-width:760px){
  .topbar:has(> .topbar-inner),
  .topbar.roosted-topbar-shell{
    height:64px;
    min-height:64px;
  }

  .topbar > .topbar-inner{
    height:64px;
    min-height:64px;
    padding:14px 16px 8px !important;
  }

  .topbar .brand img,
  .topbar .topbar-brand-logo{
    height:42px;
    max-width:min(170px,45vw);
  }

  .site-nav{
    display:none;
  }
}

/* Root homepage */
.roosted-home-page{
  color-scheme:dark;
  --topbar-height:60px;
  --bg:#090909;
  --bg-2:#0b0b0b;
  --panel:#121212;
  --panel-2:#181818;
  --line:#2a2a2a;
  --line-soft:rgba(255,255,255,.075);
  --border:#2a2a2a;
  --text:#ffffff;
  --soft:#d8d8d8;
  --muted:#a7a7a7;
  --muted-2:#747474;
  --blue:#00a4dc;
  --blue-2:#78dfff;
  --blue-dark:#0085b4;
  --green:#45d17f;
  --shadow:0 24px 80px rgba(0,0,0,.34);
  --radius:8px;
  font-family:"Segoe UI Variable Text","Segoe UI",Inter,system-ui,-apple-system,BlinkMacSystemFont,sans-serif;
}

.roosted-home-page *{
  box-sizing:border-box;
}

html:has(body.roosted-home-page){
  scroll-behavior:smooth;
  background:var(--bg);
}

body.roosted-home-page{
  margin:0;
  min-height:100vh;
  min-height:100svh;
  display:flex;
  flex-direction:column;
  overflow-x:hidden;
  color:var(--text);
  background:var(--bg);
  font-size:14px;
  line-height:1.45;
}

.roosted-home-page a,
.roosted-home-page button{
  -webkit-tap-highlight-color:transparent;
}

.roosted-home-page a{
  color:inherit;
}

.roosted-home-page a:focus-visible,
.roosted-home-page button:focus-visible{
  outline:2px solid var(--blue);
  outline-offset:3px;
}

.roosted-home-page h1,
.roosted-home-page h2,
.roosted-home-page h3,
.roosted-home-page p{
  margin:0;
}

.roosted-home-page .page{
  width:min(1180px,calc(100% - 36px));
  min-height:calc(100vh - var(--topbar-height));
  min-height:calc(100svh - var(--topbar-height));
  margin:0 auto;
  display:flex;
  flex:1;
  flex-direction:column;
}

.roosted-home-page main{
  flex:1 0 auto;
}

.roosted-home-page .topbar{
  position:sticky;
  top:0;
  z-index:1000;
  width:100%;
  border-bottom:1px solid rgba(255,255,255,.08);
  background:rgba(9,9,9,.82);
  backdrop-filter:blur(14px);
}

.roosted-home-page .topbar-inner{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:18px;
  width:100%;
  min-height:59px;
  padding:10px 16px;
  margin:0 auto;
}

.roosted-home-page .topbar .topbar-inner{
  justify-content:flex-start;
  position:relative;
  width:100%;
  padding:10px 16px;
}

.roosted-home-page .brand{
  display:flex;
  align-items:center;
  min-width:0;
  text-decoration:none;
}

.roosted-home-page .brand img{
  display:block;
  width:auto;
  height:32px;
  max-width:190px;
  object-fit:contain;
}

.roosted-home-page .site-nav{
  position:absolute;
  top:50%;
  left:max(130px,calc((100% - 1180px) / 2));
  transform:translateY(-50%);
  display:flex;
  align-items:center;
  gap:6px;
  margin-left:0;
}

.roosted-home-page .site-nav a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:36px;
  padding:0 12px;
  border-bottom:2px solid transparent;
  color:var(--soft);
  font-size:13px;
  font-weight:800;
  text-decoration:none;
  transition:color 140ms ease,border-color 140ms ease;
}

.roosted-home-page .site-nav a:hover,
.roosted-home-page .site-nav a.active{
  border-color:var(--blue);
  color:#fff;
}

.roosted-home-page .nav-dropdown{
  position:relative;
}

.roosted-home-page .nav-dropdown::after{
  content:"";
  position:absolute;
  top:100%;
  right:-8px;
  left:-8px;
  height:10px;
}

.roosted-home-page .nav-trigger{
  gap:8px;
}

.roosted-home-page .nav-trigger::after{
  content:"";
  width:7px;
  height:7px;
  margin-top:-3px;
  border-right:2px solid currentColor;
  border-bottom:2px solid currentColor;
  opacity:.72;
  transform:rotate(45deg);
}

.roosted-home-page .nav-dropdown:hover .nav-trigger,
.roosted-home-page .nav-dropdown:focus-within .nav-trigger,
.roosted-home-page .nav-dropdown.active .nav-trigger{
  border-color:var(--blue);
  color:#fff;
}

.roosted-home-page .nav-menu{
  position:absolute;
  top:100%;
  left:0;
  z-index:20;
  display:none;
  min-width:170px;
  margin-top:8px;
  padding:8px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:8px;
  background:#151515;
  box-shadow:0 16px 38px rgba(0,0,0,.38);
}

.roosted-home-page .nav-dropdown:hover .nav-menu,
.roosted-home-page .nav-dropdown:focus-within .nav-menu{
  display:grid;
}

.roosted-home-page .nav-menu a{
  justify-content:flex-start;
  min-height:34px;
  padding:0 10px;
  border:0;
  border-radius:7px;
  color:#fff;
}

.roosted-home-page .nav-menu a:hover,
.roosted-home-page .nav-menu a:focus-visible{
  border-color:transparent;
  background:rgba(255,255,255,.08);
}

@media(min-width:1430px){
  .roosted-home-page .site-nav{
    left:calc((100% - 1180px) / 2);
  }
}

.roosted-home-page .topbar-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:12px;
  min-width:0;
  margin-left:auto;
}

.roosted-home-page .topbar-actions .roosted-auth{
  margin-left:0;
}

.roosted-home-page .hero{
  display:grid;
  grid-template-columns:minmax(0,1.08fr) minmax(350px,.92fr);
  gap:56px;
  align-items:center;
  padding:44px 0 26px;
}

.roosted-home-page .eyebrow{
  color:var(--blue-2);
  font-size:12px;
  font-weight:850;
  letter-spacing:0;
  text-transform:uppercase;
}

.roosted-home-page h1{
  max-width:700px;
  margin-top:16px;
  color:#fff;
  font-size:52px;
  font-weight:900;
  letter-spacing:0;
  line-height:1.02;
}

.roosted-home-page h1 span{
  display:block;
  color:var(--blue);
}

.roosted-home-page .hero-copy{
  max-width:610px;
  margin-top:18px;
  color:var(--soft);
  font-size:17px;
  line-height:1.55;
}

.roosted-home-page .hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  margin-top:28px;
}

.roosted-home-page .btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:44px;
  padding:0 22px;
  border:1px solid rgba(255,255,255,.16);
  border-radius:var(--radius);
  background:rgba(255,255,255,.045);
  color:#fff;
  font-weight:800;
  text-decoration:none;
  white-space:nowrap;
  cursor:pointer;
  transition:background 140ms ease,border-color 140ms ease,transform 140ms ease;
}

.roosted-home-page .btn:hover{
  border-color:rgba(255,255,255,.28);
  background:rgba(255,255,255,.07);
}

.roosted-home-page .btn:active{
  transform:translateY(1px);
}

.roosted-home-page .btn.primary{
  border-color:transparent;
  background:var(--blue);
  box-shadow:none;
}

.roosted-home-page .btn.primary:hover{
  background:var(--blue-dark);
}

.roosted-home-page .btn.small{
  min-height:34px;
  padding:0 14px;
  font-size:12px;
}

.roosted-home-page .btn.disabled{
  cursor:default;
  color:var(--muted);
  background:rgba(255,255,255,.025);
}

.roosted-home-page .snapshot{
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:
    linear-gradient(180deg,rgba(255,255,255,.035),rgba(255,255,255,.015)),
    var(--panel);
  box-shadow:var(--shadow);
}

.roosted-home-page .snapshot-head{
  padding:18px 20px 12px;
}

.roosted-home-page .snapshot-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  padding:14px 18px 20px;
}

.roosted-home-page .snapshot-item{
  min-width:0;
  padding:0 16px;
  text-align:center;
  border-right:1px solid var(--line-soft);
}

.roosted-home-page .snapshot-item:last-child{
  border-right:0;
}

.roosted-home-page .snapshot-value{
  color:#fff;
  font-size:23px;
  font-weight:900;
  line-height:1;
}

.roosted-home-page .snapshot-label{
  margin-top:6px;
  color:var(--muted);
  font-size:12px;
}

.roosted-home-page .snapshot-foot{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:13px 20px;
  border-top:1px solid var(--line);
  color:var(--muted);
  font-size:12px;
}

.roosted-home-page .system-ok{
  display:inline-flex;
  align-items:center;
  gap:8px;
}

.roosted-home-page .system-ok::before,
.roosted-home-page .live-pill::before{
  content:"";
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--green);
  box-shadow:0 0 12px rgba(69,209,127,.55);
}

.roosted-home-page .section{
  padding:24px 0 0;
}

.roosted-home-page .section + .section{
  margin-top:30px;
}

.roosted-home-page .section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:20px;
  margin-bottom:14px;
  padding-top:18px;
  border-top:1px solid var(--line-soft);
}

.roosted-home-page .section-head h2{
  color:var(--muted);
  font-size:14px;
  font-weight:850;
  letter-spacing:0;
  text-transform:uppercase;
}

.roosted-home-page .section-head p{
  max-width:520px;
  color:var(--muted);
  font-size:13px;
}

.roosted-home-page .games-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
}

.roosted-home-page .game-card,
.roosted-home-page .feature{
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:
    linear-gradient(145deg,rgba(255,255,255,.052),rgba(255,255,255,.018)),
    var(--panel);
  box-shadow:0 14px 40px rgba(0,0,0,.18);
}

.roosted-home-page .game-card{
  min-height:0;
  aspect-ratio:16 / 9;
  display:flex;
  align-items:stretch;
  position:relative;
  overflow:hidden;
}

.roosted-home-page .game-link{
  color:inherit;
  text-decoration:none;
  transition:transform 140ms ease;
}

.roosted-home-page .game-link:active{
  transform:translateY(0);
}

.roosted-home-page .game-art{
  flex:0 0 42%;
  display:grid;
  place-items:center;
  min-width:148px;
  padding:0;
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(circle at 30% 30%,rgba(101,255,94,.18),transparent 52%),
    linear-gradient(135deg,rgba(19,31,22,.9),rgba(10,10,10,.92));
}

.roosted-home-page .game-art img{
  width:100%;
  height:100%;
  min-height:0;
  display:block;
  object-fit:contain;
  transition:transform 180ms ease;
}

.roosted-home-page .iw4x-logo{
  color:#bdf575;
  font-size:34px;
  font-weight:900;
  letter-spacing:.02em;
  text-shadow:0 0 24px rgba(189,245,117,.22);
}

.roosted-home-page .game-body{
  min-width:0;
  flex:1;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  padding:18px;
}

.roosted-home-page .featured-game{
  position:relative;
  isolation:isolate;
}

.roosted-home-page .featured-game .game-art{
  position:absolute;
  inset:0;
  z-index:-1;
  min-width:0;
  min-height:0;
  width:100%;
}

.roosted-home-page .featured-game .game-art::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg,rgba(5,10,14,.92),rgba(5,10,14,.58) 48%,rgba(5,10,14,.16)),
    linear-gradient(0deg,rgba(5,10,14,.82),rgba(5,10,14,.16) 64%,rgba(5,10,14,.34));
}

.roosted-home-page .featured-game .game-art img{
  min-height:100%;
}

.roosted-home-page .featured-game .game-body{
  min-height:0;
  justify-content:flex-end;
  text-shadow:0 2px 10px rgba(0,0,0,.65);
}

.roosted-home-page .featured-game .game-card p,
.roosted-home-page .featured-game p{
  max-width:310px;
  color:rgba(235,243,255,.82);
}

.roosted-home-page .card-title-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}

.roosted-home-page .featured-game .card-title-row{
  padding-right:52px;
}

.roosted-home-page .game-card h3{
  color:#fff;
  font-size:18px;
  font-weight:850;
  line-height:1.15;
}

.roosted-home-page .game-card p,
.roosted-home-page .feature p{
  margin-top:8px;
  color:var(--muted);
  font-size:13px;
  line-height:1.42;
}

.roosted-home-page .live-pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:22px;
  padding:0 8px;
  border:1px solid rgba(69,209,127,.28);
  border-radius:999px;
  background:rgba(69,209,127,.09);
  color:#c6f7da;
  font-size:10px;
  font-weight:900;
  text-transform:uppercase;
}

.roosted-home-page .featured-game .live-pill{
  position:absolute;
  top:12px;
  right:12px;
  z-index:2;
}

.roosted-home-page .placeholder-card{
  min-height:142px;
  display:flex;
  align-items:center;
  gap:16px;
  padding:22px;
  color:var(--muted);
}

.roosted-home-page .placeholder-icon{
  flex:0 0 auto;
  width:54px;
  height:38px;
  border:4px solid rgba(143,159,172,.22);
  border-radius:18px 18px 14px 14px;
  position:relative;
}

.roosted-home-page .placeholder-icon::before,
.roosted-home-page .placeholder-icon::after{
  content:"";
  position:absolute;
  top:12px;
  width:7px;
  height:7px;
  border-radius:50%;
  background:rgba(143,159,172,.32);
}

.roosted-home-page .placeholder-icon::before{
  left:12px;
}

.roosted-home-page .placeholder-icon::after{
  right:12px;
}

.roosted-home-page .placeholder-card strong{
  display:block;
  color:var(--muted);
  font-size:11px;
  font-weight:850;
  text-transform:uppercase;
}

.roosted-home-page .placeholder-card span{
  display:block;
  margin-top:5px;
  color:var(--soft);
  font-size:13px;
  line-height:1.35;
}

.roosted-home-page .features{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px;
}

.roosted-home-page .stats-section{
  margin-top:38px;
  padding-top:30px;
  border-top:1px solid var(--line-soft);
}

.roosted-home-page .feature{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  align-items:start;
  min-height:86px;
  padding:18px;
  background:transparent;
  box-shadow:none;
  border-color:transparent;
  border-right:1px solid var(--line-soft);
}

.roosted-home-page .feature:last-child{
  border-right-color:transparent;
}

.roosted-home-page .feature h3{
  color:var(--blue-2);
  font-size:14px;
  font-weight:850;
}

.roosted-home-page .footer{
  display:grid;
  grid-template-columns:minmax(220px,1fr) repeat(4,minmax(120px,.45fr)) minmax(120px,.45fr);
  gap:24px;
  margin-top:auto;
  padding:34px 0 38px;
  color:var(--muted);
}

.roosted-home-page .footer-brand img{
  display:block;
  width:160px;
  max-width:100%;
  height:auto;
}

.roosted-home-page .footer-brand p{
  max-width:260px;
  margin-top:10px;
  font-size:13px;
}

.roosted-home-page .footer h3{
  margin-bottom:10px;
  color:var(--muted);
  font-size:12px;
  font-weight:850;
  text-transform:uppercase;
}

.roosted-home-page .footer a,
.roosted-home-page .footer span{
  display:block;
  margin-top:7px;
  color:var(--muted);
  font-size:13px;
  text-decoration:none;
}

.roosted-home-page .footer a:hover{
  color:#fff;
}

.roosted-home-page .copyright{
  align-self:end;
  font-size:13px;
  text-align:right;
}

@media(max-width:1060px){
  .roosted-home-page .hero{
    grid-template-columns:1fr;
    gap:28px;
  }

  .roosted-home-page .games-grid{
    grid-template-columns:1fr 1fr;
  }

  .roosted-home-page .features{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .roosted-home-page .feature:nth-child(2){
    border-right-color:transparent;
  }

  .roosted-home-page .footer{
    grid-template-columns:1fr 1fr;
  }

  .roosted-home-page .copyright{
    text-align:left;
  }
}

@media(max-width:760px){
  .roosted-home-page{
    --topbar-height:65px;
  }

  .roosted-home-page .page{
    width:min(100% - 24px,1180px);
  }

  .roosted-home-page .topbar-inner{
    align-items:center;
    justify-content:space-between;
    min-height:64px;
    padding:14px 16px 8px;
    width:100%;
  }

  .roosted-home-page .topbar .topbar-inner{
    width:100%;
    padding:14px 16px 8px;
  }

  .roosted-home-page .brand img{
    height:42px;
    max-width:min(170px,45vw);
  }

  .roosted-home-page .site-nav{
    display:none;
  }

  .roosted-home-page .topbar-actions{
    gap:8px;
  }


  .roosted-home-page .hero{
    padding-top:36px;
  }

  .roosted-home-page h1{
    font-size:38px;
  }

  .roosted-home-page .hero-copy{
    font-size:15px;
  }

  .roosted-home-page .hero-actions{
    display:grid;
  }

  .roosted-home-page .btn{
    width:100%;
  }

  .roosted-home-page .snapshot-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:18px 0;
  }

  .roosted-home-page .snapshot-item:nth-child(2){
    border-right:0;
  }

  .roosted-home-page .snapshot-foot,
.roosted-home-page .section-head{
    align-items:flex-start;
    flex-direction:column;
  }

  .roosted-home-page .games-grid,
.roosted-home-page .features,
.roosted-home-page .footer{
    grid-template-columns:1fr;
  }

  .roosted-home-page .game-card{
    flex-direction:column;
  }

  .roosted-home-page .game-body{
    gap:18px;
  }

  .roosted-home-page .game-body .hero-actions{
    margin-top:0;
  }

  .roosted-home-page .game-body .btn.small{
    min-height:38px;
    line-height:1.1;
  }

  .roosted-home-page .game-art{
    min-height:110px;
  }

  .roosted-home-page .game-art img{
    min-height:0;
  }

  .roosted-home-page .placeholder-card{
    min-height:118px;
  }

  .roosted-home-page .feature{
    border-right:0;
    border-color:var(--line);
    background:#101010;
  }
}

@media(max-width:460px){
  .roosted-home-page h1{
    font-size:34px;
  }

  .roosted-home-page .snapshot-grid{
    padding:12px 12px 16px;
  }

  .roosted-home-page .snapshot-item{
    padding:0 10px;
  }

  .roosted-home-page .game-body,
.roosted-home-page .placeholder-card{
    padding:16px;
  }
}

/* Shared sidebar drawer and compact service tabs */
@media(max-width:920px){
  body.roosted-sidebar-enabled{
    padding-left:0;
  }

  body.roosted-sidebar-enabled .topbar .topbar-inner{
    gap:10px;
    width:100%;
    min-width:0;
  }

  body.roosted-sidebar-enabled .topbar .site-nav{
    display:none !important;
  }

  body.roosted-sidebar-enabled .topbar .brand{
    min-width:0;
    flex:0 1 auto;
  }

  body.roosted-sidebar-enabled .topbar .topbar-actions,
  body.roosted-sidebar-enabled .topbar .roosted-auth{
    min-width:0;
  }

  .roosted-sidebar{
    width:min(270px,calc(100vw - 48px));
    padding:10px 12px 16px;
    transform:translateX(-102%);
    transition:transform 190ms ease;
  }

  body.roosted-sidebar-enabled > .roosted-sidebar{
    width:min(270px,calc(100vw - 48px)) !important;
    min-width:min(270px,calc(100vw - 48px)) !important;
    max-width:min(270px,calc(100vw - 48px)) !important;
    padding:10px 12px 16px !important;
  }

  body.roosted-sidebar-open .roosted-sidebar{
    transform:translateX(0);
  }

  .roosted-sidebar-brand{
    padding:0;
  }

  .roosted-sidebar-brand img{
    height:32px;
    max-width:min(150px,38vw);
  }

  .roosted-sidebar-toggle{
    display:inline-grid;
    width:36px;
    height:36px;
    flex:0 0 36px;
    place-content:center;
    gap:4px;
    padding:0;
    border:0;
    border-radius:6px;
    background:transparent;
    color:#fff;
    cursor:pointer;
  }

  .roosted-sidebar-toggle:hover,
  .roosted-sidebar-toggle:focus-visible{
    background:rgba(255,255,255,.07);
  }

  .roosted-sidebar-toggle span{
    display:block;
    width:18px;
    height:2px;
    border-radius:2px;
    background:currentColor;
  }

  .roosted-sidebar-backdrop{
    position:fixed;
    inset:0;
    z-index:1090;
    display:block;
    visibility:hidden;
    border:0;
    background:rgba(0,0,0,.58);
    opacity:0;
    pointer-events:none;
    transition:opacity 190ms ease,visibility 190ms ease;
  }

  body.roosted-sidebar-open{
    overflow:hidden !important;
  }

  body.roosted-sidebar-open .roosted-sidebar-backdrop{
    visibility:visible;
    opacity:1;
    pointer-events:auto;
  }

  body.roosted-sidebar-enabled .iw4x-section-tabs-shell,
  body.roosted-sidebar-enabled .jellyfin-section-tabs-shell{
    display:block !important;
  }

  body.roosted-sidebar-enabled .iw4x-section-tabs,
  body.roosted-sidebar-enabled .jellyfin-section-tabs{
    gap:18px !important;
    padding:0 4px 5px !important;
  }

  body.roosted-sidebar-enabled .iw4x-section-tabs .iw4x-section-tab,
  body.roosted-sidebar-enabled .jellyfin-section-tabs .jellyfin-section-tab{
    min-height:38px !important;
    padding:0 2px !important;
    border:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    color:#969ba2 !important;
    font-size:11px !important;
    font-weight:800 !important;
  }

  body.roosted-sidebar-enabled .iw4x-section-tabs .iw4x-section-tab:hover,
  body.roosted-sidebar-enabled .iw4x-section-tabs .iw4x-section-tab.active,
  body.roosted-sidebar-enabled .jellyfin-section-tabs .jellyfin-section-tab:hover,
  body.roosted-sidebar-enabled .jellyfin-section-tabs .jellyfin-section-tab.active{
    color:#fff !important;
  }

  body.roosted-sidebar-enabled .iw4x-section-tabs .iw4x-section-tab::after,
  body.roosted-sidebar-enabled .jellyfin-section-tabs .jellyfin-section-tab::after{
    right:0 !important;
    left:0 !important;
  }

  body.roosted-sidebar-enabled .iw4x-section-tabs-shell::before,
  body.roosted-sidebar-enabled .iw4x-section-tabs-shell::after,
  body.roosted-sidebar-enabled .jellyfin-section-tabs-shell::before,
  body.roosted-sidebar-enabled .jellyfin-section-tabs-shell::after{
    width:22px !important;
    box-shadow:none !important;
  }
}

@media(max-width:560px){
  body.roosted-sidebar-enabled .topbar .topbar-inner{
    gap:7px;
    padding-right:12px;
    padding-left:12px;
  }

  body.roosted-sidebar-enabled .topbar .brand img,
  body.roosted-sidebar-enabled .topbar .topbar-brand-logo{
    max-width:min(132px,34vw);
  }

  body.roosted-sidebar-enabled .topbar .roosted-auth-buttons{
    gap:4px;
  }

  body.roosted-sidebar-enabled .topbar .roosted-auth-btn{
    min-height:32px;
    padding:0 8px;
    font-size:11px;
  }
}

/* Canonical compact mobile header. This is the only mobile sizing source. */
@media(max-width:920px){
  :root{
    --roosted-topbar-height:59px;
  }

  html body .topbar:has(> .topbar-inner),
  html body .topbar.roosted-topbar-shell{
    width:100% !important;
    height:59px !important;
    min-height:59px !important;
    padding:0 !important;
    border-bottom:1px solid rgba(255,255,255,.08) !important;
    background:rgba(9,9,9,.82) !important;
    backdrop-filter:blur(14px) !important;
  }

  html body .topbar > .topbar-inner{
    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    gap:7px !important;
    width:100% !important;
    height:59px !important;
    min-height:59px !important;
    margin:0 !important;
    padding:10px 12px !important;
  }

  html body .topbar .site-nav{
    display:none !important;
  }

  html body .topbar .brand,
  html body .topbar .topbar-brand{
    display:flex !important;
    align-items:center !important;
    flex:0 1 auto !important;
    min-width:0 !important;
    margin:0 !important;
  }

  html body .topbar .brand img,
  html body .topbar .topbar-brand-logo{
    display:block !important;
    width:auto !important;
    height:32px !important;
    max-width:min(150px,38vw) !important;
    object-fit:contain !important;
  }

  html body .topbar .topbar-actions,
  html body .topbar .roosted-auth{
    display:flex !important;
    align-items:center !important;
    justify-content:flex-end !important;
    gap:6px !important;
    min-width:0 !important;
    margin-left:auto !important;
  }

  html body .topbar .notification-bell,
  html body .topbar .roosted-profile-trigger,
  html body .topbar #profileArea.profile{
    width:36px !important;
    height:36px !important;
    min-height:36px !important;
  }
}
