/* 7K7K Nebula V4: viewport boundaries, not authentication or game logic. */
@media (max-width: 1050px) {
  html.nebula-public { max-width:100%; overflow-x:hidden; }
  html.nebula-public body { width:100%!important; min-width:0!important; max-width:100%!important; margin:0!important; overflow-x:hidden; }
  html.nebula-public .neb-header { width:100%; min-width:0; max-width:100%; margin-inline:auto!important; box-sizing:border-box; }
  html.nebula-public .neb-nav { width:100%; min-width:0; max-width:100%; }
  html.nebula-public .neb-links { width:100%; max-width:100%; min-width:0; flex:0 0 100%; justify-content:flex-start; overflow-x:auto; overflow-y:hidden; overscroll-behavior-x:contain; }
  html.nebula-public .neb-links a { flex:0 0 auto; }
  html.nebula-public .neb-search-row { width:100%; min-width:0; max-width:100%; }
  html.nebula-public .neb-search { min-width:0; max-width:100%; }
  html.nebula-public .neb-search input[type=search] { width:0!important; min-width:0!important; box-sizing:border-box!important; flex:1 1 0!important; }
  html.nebula-public .neb-search svg, html.nebula-public .neb-search button { flex-shrink:0; }
  html.nebula-public .gamemonetize-page-tree.gamemonetize-container { width:100%!important; min-width:0!important; max-width:100%!important; margin:0!important; }
  html.nebula-public #footer { min-width:0!important; max-width:100%!important; overflow-wrap:anywhere; }
  html.nebula-public #footer .foot-inner { min-width:0!important; max-width:100%!important; padding-inline:0!important; }
  html.nebula-public .neb-main { min-width:0; max-width:100%; }
  html.nebula-public .neb-category-title, html.nebula-public #Gameinner.neb-category-directory { min-width:0!important; max-width:calc(100% - 28px)!important; width:calc(100% - 28px)!important; margin-inline:auto!important; inset-inline:auto!important; transform:none!important; box-sizing:border-box!important; }
  html.nebula-public .neb-category-directory .categories-page-container { min-width:0!important; max-width:100%!important; width:100%!important; margin:0!important; }
  html.nebula-public .neb-category-directory .taglink, html.nebula-public .neb-category-directory .taglink .tag, html.nebula-public .neb-category-directory .taginfo { min-width:0!important; max-width:100%!important; }
  html.nebula-public .neb-category-directory .bottomtext { min-width:0!important; max-width:100%!important; overflow-wrap:anywhere; }
  html.nebula-public .neb-category-directory .bottomtext img, html.nebula-public .neb-category-directory .bottomtext video { max-width:100%!important; height:auto; }
  html.nebula-public .neb-category-directory .bottomtext table, html.nebula-public .neb-category-directory .bottomtext pre { display:block; max-width:100%; overflow-x:auto; }
  /* Keep overflow local to directory (not to the game player or dialog). */
  html.nebula-public #Gameinner.neb-category-directory { overflow-x:hidden; }
  @supports (overflow:clip) {
    html.nebula-public, html.nebula-public body { overflow-x:clip; }
    html.nebula-public #Gameinner.neb-category-directory { overflow-x:clip; }
  }
}
@media (max-width:700px) {
  html.nebula-public .neb-category-directory .categories-page-container { grid-template-columns:repeat(2,minmax(0,1fr))!important; gap:9px!important; }
}
@media (max-width:600px) {
  html.nebula-public .neb-header { padding-inline:14px!important; }
  html.nebula-public .neb-brand { flex:0 1 108px; min-width:62px; max-width:108px; }
  html.nebula-public .neb-actions { flex:1 1 auto; min-width:0!important; max-width:100%!important; justify-content:flex-end; gap:6px; }
  html.nebula-public .neb-actions .gps-pi-header-account { flex:0 1 auto; min-width:0!important; }
  html.nebula-public .neb-actions .seven-locale-trigger { flex:0 0 auto; white-space:nowrap; }
  html.nebula-public .neb-actions .gps-pi-header-link { min-width:0!important; max-width:104px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  html.nebula-public .neb-category-title h1 { font-size:clamp(26px,7vw,36px)!important; }
}
@media (max-width:350px) {
  html.nebula-public .neb-header { padding-inline:10px!important; }
  html.nebula-public .neb-brand { flex-basis:84px; max-width:84px; }
  html.nebula-public .neb-actions .gps-pi-header-link { max-width:86px; }
  html.nebula-public .neb-category-title, html.nebula-public #Gameinner.neb-category-directory { max-width:calc(100% - 20px)!important; width:calc(100% - 20px)!important; }
}
