/* Ghostly responsive foundation v166 */
*,*::before,*::after{box-sizing:border-box}
html{max-width:100%;overflow-x:hidden}
body{max-width:100%;overflow-x:hidden}
img,video,canvas,svg{max-width:100%}
.mobile-nav-toggle{display:none}

@media(max-width:850px){
  html,body{min-width:0!important;overflow-y:auto!important;overscroll-behavior-y:auto!important;touch-action:pan-y!important;-webkit-overflow-scrolling:touch}
  .site-shell{width:100%!important;max-width:100%!important;margin:0!important;zoom:1!important}
  .navbar,.cosline-nav{
    position:relative!important;
    width:calc(100% - 16px)!important;
    max-width:calc(100% - 16px)!important;
    min-height:0!important;
    height:auto!important;
    margin:8px auto 0!important;
    padding:9px!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 82px!important;
    grid-template-rows:42px auto auto!important;
    column-gap:8px!important;
    row-gap:8px!important;
    overflow:visible!important;
  }
  .navbar .logo,.navbar .nav-wordmark,.cosline-nav .logo,.cosline-nav .nav-wordmark{
    grid-column:1!important;grid-row:1!important;
    min-width:0!important;width:max-content!important;max-width:100%!important;
    align-self:center!important;justify-self:start!important;
  }
  .nav-brand-logo{width:34px!important;height:34px!important;margin-right:7px!important;flex:0 0 auto!important}
  .nav-brand-name{font-size:17px!important;letter-spacing:.7px!important;overflow:hidden;text-overflow:ellipsis}
  .mobile-nav-toggle{
    display:flex;grid-column:2;grid-row:1;align-items:center;justify-content:center;gap:7px;
    width:82px;height:40px;padding:0 9px;border:1px solid #ef3949a6;
    background:linear-gradient(135deg,#2a1018,#100c11);color:#ff5968;cursor:pointer;
    box-shadow:0 0 18px #ef394929,inset 0 0 14px #ef39490c;
  }
  .mobile-nav-toggle:hover,.mobile-nav-toggle:focus-visible,.mobile-nav-toggle[aria-expanded="true"]{outline:0;border-color:#ff5968;background:linear-gradient(135deg,#43131f,#190d13);box-shadow:0 0 24px #ef394947}
  .mobile-nav-toggle b{color:#fff;font:900 9px/1 'Barlow Condensed',sans-serif;letter-spacing:.9px}
  .mobile-nav-lines{display:grid!important;width:17px!important;gap:3px;margin:0!important}
  .mobile-nav-lines i{
    display:block;width:17px;height:2px;background:currentColor;transition:.18s ease;
  }
  .mobile-nav-toggle[aria-expanded="true"] .mobile-nav-lines i:nth-child(1){transform:translateY(5px) rotate(45deg)}
  .mobile-nav-toggle[aria-expanded="true"] .mobile-nav-lines i:nth-child(2){opacity:0}
  .mobile-nav-toggle[aria-expanded="true"] .mobile-nav-lines i:nth-child(3){transform:translateY(-5px) rotate(-45deg)}

  .header-actions.header-actions-regrouped{
    grid-column:1/-1!important;grid-row:2!important;
    width:100%!important;min-width:0!important;max-width:100%!important;
    display:flex!important;flex-wrap:nowrap!important;
    align-items:center!important;justify-content:center!important;
    gap:6px!important;transform:none!important;margin:0!important;
  }
  .header-actions-regrouped .header-tools-row{width:auto!important;min-width:0;flex:1 1 auto;gap:4px!important}
  .header-actions-regrouped .header-preferences{width:auto!important;min-width:0;flex:0 0 auto;gap:4px!important}
  .header-actions-regrouped .header-tool-link{height:34px!important;min-height:34px!important}
  .header-actions-regrouped .player-search-link{width:34px!important;min-width:34px!important}
  .header-actions-regrouped .store-text-link,
  .header-actions-regrouped .header-tool-link:not(.player-search-link):not(.store-text-link){
    width:auto!important;min-width:0!important;flex:1 1 0;padding:0 6px!important;font-size:7px!important;
  }
  .header-actions-regrouped .theme-option{width:29px!important;height:24px!important}
  .header-actions-regrouped .language-option{width:38px!important;min-width:38px!important;height:24px!important;font-size:8px!important}

  .navbar nav.ghostly-primary-nav,.cosline-nav nav.ghostly-primary-nav{
    display:none!important;grid-column:1/-1!important;grid-row:3!important;
    width:100%!important;height:auto!important;min-height:0!important;margin:0!important;
    padding:5px!important;overflow:visible!important;
    grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;
    border:1px solid #ffffff17;background:#090a0ef5;
  }
  .navbar.mobile-nav-open nav.ghostly-primary-nav,.cosline-nav.mobile-nav-open nav.ghostly-primary-nav{display:grid!important}
  .ghostly-primary-nav>a,.ghostly-primary-nav>.nav-dropdown{width:100%!important;height:auto!important;min-width:0!important}
  .ghostly-primary-nav>a,.ghostly-primary-nav .nav-dropdown-toggle{
    width:100%!important;min-height:40px!important;height:40px!important;
    justify-content:center!important;padding:0 8px!important;
    border:1px solid #ffffff10!important;border-bottom:1px solid #ffffff10!important;
    background:#111217!important;font-size:10px!important;
  }
  .ghostly-primary-nav>a.active,.ghostly-primary-nav .nav-dropdown-toggle.active,
  .ghostly-primary-nav .nav-dropdown.is-open .nav-dropdown-toggle{border-color:#ef394966!important;background:#241218!important;color:#fff!important}
  .nav-section-divider{display:none!important}
  .nav-dropdown{display:block!important}
  .nav-dropdown-menu{
    position:static!important;width:100%!important;min-width:0!important;
    padding:3px!important;opacity:0!important;display:none!important;
    transform:none!important;pointer-events:none!important;box-shadow:none!important;
  }
  nav.ghostly-primary-nav .nav-dropdown:not(.is-open)>.nav-dropdown-menu{display:none!important;height:0!important;padding:0!important;border:0!important}
  nav.ghostly-primary-nav .nav-dropdown.is-open>.nav-dropdown-menu{display:flex!important;height:auto!important;opacity:1!important;pointer-events:auto!important;transform:none!important}
  .nav-dropdown-menu>a{min-height:36px!important;height:36px!important;font-size:9px!important}

  .home-hero{min-height:calc(100svh - 142px)!important;padding:54px 16px 72px!important;justify-content:flex-start!important}
  .home-hero .updates-logo{width:clamp(150px,54vw,230px)!important;height:auto!important;max-height:none!important}
  .cosline-home .updates-heading .home-hero-copy{max-width:100%;font-size:clamp(9px,3vw,12px)!important;line-height:1.35!important;text-align:center}
  .home-hero-modes{font-size:8px!important;text-align:center}
  .hero-play-now{width:min(100%,300px)!important;min-width:0!important;height:52px!important}
  .cosline-home .home-reveal{opacity:1!important;transform:none!important;filter:none!important;will-change:auto!important}
  .creator-carousel-viewport,.creator-carousel-track,.ghostly-shots,.shots-window{touch-action:pan-y!important}
  .creator-card iframe{pointer-events:none!important}

  main,.leaderboard-page,.team-page,.creator-directory-page,.store-page,.rules-page,
  .practice-tiers-page,.ranked-history-page,.uhc-history-page,.meetup-history-page{
    width:100%!important;max-width:100%!important;min-width:0!important;
  }
  .leaderboard-scroll,.table-scroll,.tier-table-wrap,.history-table-wrap{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
  .page-heading,.leaderboard-heading,.team-hero{min-width:0!important}
}

@media(max-width:520px){
  .navbar,.cosline-nav{width:calc(100% - 10px)!important;max-width:calc(100% - 10px)!important;margin-top:5px!important;padding:7px!important}
  .nav-brand-logo{width:30px!important;height:30px!important;margin-right:5px!important}
  .nav-brand-name{font-size:14px!important}
  .header-actions.header-actions-regrouped{gap:3px!important}
  .header-actions-regrouped .header-tools-row{gap:3px!important}
  .header-actions-regrouped .header-preferences{gap:2px!important}
  .header-actions-regrouped .player-search-link{width:30px!important;min-width:30px!important}
  .header-actions-regrouped .store-text-link,
  .header-actions-regrouped .header-tool-link:not(.player-search-link):not(.store-text-link){padding-inline:3px!important;font-size:6.5px!important}
  .header-actions-regrouped .theme-option{width:25px!important;height:23px!important}
  .header-actions-regrouped .language-option{width:34px!important;min-width:34px!important;height:23px!important;padding-inline:2px!important}
  .header-actions-regrouped .language-option .language-flag{width:13px!important;height:9px!important}
  .navbar nav.ghostly-primary-nav,.cosline-nav nav.ghostly-primary-nav{grid-template-columns:1fr!important}
  .home-hero{padding-top:42px!important}
  .copy-click-message{max-width:calc(100vw - 20px);white-space:normal}
}

@media(min-width:851px){
  .mobile-nav-toggle{display:none!important}
}

