/* Game Harbor mobile navigation — 2026-06-24 quick links */
.gh-mobile-topbar,
.gh-mobile-nav-overlay,
.gh-mobile-drawer,
.gh-mobile-search-modal {
  display: none;
}

@media (max-width: 900px) {
  html.gh-mobile-nav-open,
  body.gh-mobile-nav-open,
  html.gh-mobile-search-open,
  body.gh-mobile-search-open {
    overflow: hidden !important;
    overscroll-behavior: none;
  }

  body.gh-mobile-nav-ready .final-main-nav.gh-neon-nav-v2,
  body.gh-mobile-nav-ready .professional-nav.gh-neon-nav-v2,
  body.gh-mobile-nav-ready nav.final-main-nav,
  body.gh-mobile-nav-ready nav.professional-nav {
    display: none !important;
  }

  body.gh-mobile-nav-ready header.site-header:empty,
  body.gh-mobile-nav-ready .site-header.home-nav:empty {
    display: none !important;
    min-height: 0 !important;
    height: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  .gh-mobile-topbar {
    position: sticky;
    top: 0;
    z-index: 12000;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 42px;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 62px;
    padding: calc(7px + env(safe-area-inset-top, 0px)) 10px 7px;
    color: #fff;
    background:
      radial-gradient(circle at 15% 0%, rgba(0, 229, 255, .16), transparent 42%),
      radial-gradient(circle at 92% 100%, rgba(217, 70, 239, .16), transparent 42%),
      linear-gradient(180deg, rgba(5, 12, 30, .985), rgba(2, 6, 18, .99));
    border-top: 1px solid rgba(0, 229, 255, .34);
    border-bottom: 1px solid rgba(0, 229, 255, .46);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .38), 0 0 22px rgba(0, 229, 255, .10);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  .gh-mobile-menu-button,
  .gh-mobile-search-button,
  .gh-mobile-drawer-close,
  .gh-mobile-search-close,
  .gh-mobile-accordion-toggle {
    -webkit-tap-highlight-color: transparent;
  }

  .gh-mobile-menu-button,
  .gh-mobile-search-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin: 0;
    padding: 0;
    color: #effcff;
    background: linear-gradient(145deg, rgba(11, 28, 57, .98), rgba(7, 12, 31, .98));
    border: 1px solid rgba(0, 229, 255, .48);
    border-radius: 13px;
    box-shadow: inset 0 0 15px rgba(0, 229, 255, .06), 0 0 14px rgba(0, 229, 255, .08);
    cursor: pointer;
  }

  .gh-mobile-menu-button:focus-visible,
  .gh-mobile-search-button:focus-visible,
  .gh-mobile-quicklinks a:focus-visible,
  .gh-mobile-drawer a:focus-visible,
  .gh-mobile-drawer button:focus-visible,
  .gh-mobile-search-modal input:focus-visible,
  .gh-mobile-search-modal button:focus-visible {
    outline: 2px solid #00e5ff;
    outline-offset: 3px;
  }

  .gh-mobile-dock-icon {
    display: grid;
    gap: 4px;
    width: 23px;
  }

  .gh-mobile-dock-icon i {
    position: relative;
    display: block;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #00e5ff, #9b5cff);
    box-shadow: 0 0 7px rgba(0, 229, 255, .38);
  }

  .gh-mobile-dock-icon i:nth-child(1) { width: 18px; }
  .gh-mobile-dock-icon i:nth-child(2) { width: 23px; }
  .gh-mobile-dock-icon i:nth-child(3) { width: 14px; }

  .gh-mobile-dock-icon i::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -1px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #fff;
    transform: translateY(-50%);
    box-shadow: 0 0 7px #00e5ff;
  }

  .gh-mobile-quicklinks {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    min-width: 0;
    height: 46px;
    overflow: visible;
    gap: 4px;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  .gh-mobile-quicklinks a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: 100%;
    padding: 0 5px;
    color: #f3f7ff !important;
    font-size: clamp(.82rem, 3.35vw, .98rem);
    line-height: 1;
    font-weight: 900;
    letter-spacing: .015em;
    text-decoration: none !important;
    white-space: nowrap;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transition: color .18s ease, text-shadow .18s ease;
  }

  .gh-mobile-quicklinks a::after {
    content: "";
    position: absolute;
    left: 18%;
    right: 18%;
    bottom: 3px;
    height: 2px;
    border-radius: 999px;
    background: transparent;
    box-shadow: none;
    transition: background .18s ease, box-shadow .18s ease;
  }

  .gh-mobile-quicklinks a:hover,
  .gh-mobile-quicklinks a:focus-visible,
  .gh-mobile-quicklinks a.is-active {
    color: #00e5ff !important;
    background: transparent !important;
    box-shadow: none !important;
    text-shadow: 0 0 10px rgba(0, 229, 255, .32);
  }

  .gh-mobile-quicklinks a:hover::after,
  .gh-mobile-quicklinks a:focus-visible::after,
  .gh-mobile-quicklinks a.is-active::after {
    background: linear-gradient(90deg, #00e5ff, #9b5cff);
    box-shadow: 0 0 8px rgba(0, 229, 255, .35);
  }

  .gh-mobile-search-button svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2.1;
    fill: none;
  }

  .gh-mobile-nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 12990;
    display: block;
    visibility: hidden;
    opacity: 0;
    background: rgba(0, 2, 10, .74);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: opacity .25s ease, visibility .25s ease;
  }

  .gh-mobile-nav-overlay.is-open {
    visibility: visible;
    opacity: 1;
  }

  .gh-mobile-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 13000;
    display: flex;
    flex-direction: column;
    width: min(88vw, 390px);
    max-width: 100%;
    color: #fff;
    background:
      radial-gradient(circle at 10% 0%, rgba(0, 229, 255, .15), transparent 34%),
      radial-gradient(circle at 100% 100%, rgba(217, 70, 239, .16), transparent 38%),
      linear-gradient(165deg, #07142b 0%, #040917 55%, #0b071c 100%);
    border-right: 1px solid rgba(0, 229, 255, .62);
    border-radius: 0 24px 24px 0;
    box-shadow: 28px 0 70px rgba(0, 0, 0, .56), 0 0 30px rgba(0, 229, 255, .10);
    transform: translateX(-106%);
    transition: transform .3s cubic-bezier(.22, .8, .22, 1);
    overflow: hidden;
  }

  .gh-mobile-drawer.is-open {
    transform: translateX(0);
  }

  .gh-mobile-drawer-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    align-items: center;
    gap: 12px;
    padding: calc(16px + env(safe-area-inset-top, 0px)) 16px 15px;
    border-bottom: 1px solid rgba(0, 229, 255, .20);
    background: rgba(2, 7, 19, .48);
  }

  .gh-mobile-drawer-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    color: #fff !important;
    text-decoration: none !important;
  }

  .gh-mobile-drawer-brand img {
    flex: 0 0 47px;
    width: 47px;
    height: 47px;
    object-fit: contain;
    filter: drop-shadow(0 0 9px rgba(0, 229, 255, .45));
  }

  .gh-mobile-drawer-brand strong {
    display: block;
    color: #fff;
    font-size: 1.04rem;
    line-height: 1;
    letter-spacing: .07em;
    text-transform: uppercase;
  }

  .gh-mobile-drawer-brand small {
    display: block;
    margin-top: 5px;
    color: #8edff0;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  .gh-mobile-drawer-close,
  .gh-mobile-search-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    color: #fff;
    background: linear-gradient(145deg, rgba(14, 29, 56, .98), rgba(31, 10, 45, .98));
    border: 1px solid rgba(217, 70, 239, .52);
    border-radius: 50%;
    font-size: 1.45rem;
    line-height: 1;
    cursor: pointer;
  }

  .gh-mobile-drawer-scroll {
    flex: 1 1 auto;
    min-height: 0;
    padding: 14px 12px calc(22px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 229, 255, .35) transparent;
  }

  .gh-mobile-primary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-bottom: 13px;
  }

  .gh-mobile-primary-link {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 52px;
    padding: 11px 12px;
    color: #fff !important;
    text-decoration: none !important;
    font-size: .84rem;
    font-weight: 950;
    letter-spacing: .035em;
    background: linear-gradient(145deg, rgba(16, 31, 61, .94), rgba(8, 13, 31, .96));
    border: 1px solid rgba(255, 255, 255, .085);
    border-radius: 14px;
  }

  .gh-mobile-primary-link span:first-child {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 29px;
    width: 29px;
    height: 29px;
    color: #00e5ff;
    background: rgba(0, 229, 255, .07);
    border: 1px solid rgba(0, 229, 255, .22);
    border-radius: 9px;
    font-size: .96rem;
  }

  .gh-mobile-primary-link.is-active,
  .gh-mobile-drawer a.is-active {
    border-color: rgba(0, 229, 255, .58) !important;
    background: linear-gradient(145deg, rgba(0, 229, 255, .14), rgba(124, 58, 237, .14)) !important;
    box-shadow: inset 0 0 18px rgba(0, 229, 255, .06);
  }

  .gh-mobile-accordion {
    margin-top: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 14px;
    background: rgba(4, 9, 23, .68);
  }

  .gh-mobile-accordion-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    color: #f7fdff;
    text-align: left;
    font: inherit;
    font-size: .88rem;
    font-weight: 950;
    letter-spacing: .045em;
    text-transform: uppercase;
    background: transparent;
    border: 0;
    cursor: pointer;
  }

  .gh-mobile-accordion-toggle span:first-child {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .gh-mobile-accordion-toggle b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 27px;
    height: 27px;
    color: #00e5ff;
    background: rgba(0, 229, 255, .07);
    border-radius: 8px;
    font-size: .92rem;
  }

  .gh-mobile-accordion-chevron {
    width: 9px;
    height: 9px;
    border-right: 2px solid #9edcf0;
    border-bottom: 2px solid #9edcf0;
    transform: rotate(45deg);
    transition: transform .2s ease;
  }

  .gh-mobile-accordion.is-open .gh-mobile-accordion-chevron {
    transform: rotate(225deg);
  }

  .gh-mobile-accordion-panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .24s ease;
  }

  .gh-mobile-accordion.is-open .gh-mobile-accordion-panel {
    grid-template-rows: 1fr;
  }

  .gh-mobile-accordion-panel-inner {
    min-height: 0;
    overflow: hidden;
  }

  .gh-mobile-accordion-links {
    display: grid;
    gap: 4px;
    padding: 0 9px 10px;
  }

  .gh-mobile-accordion-links a {
    display: flex;
    align-items: center;
    min-height: 43px;
    padding: 9px 11px;
    color: #cfe9f2 !important;
    text-decoration: none !important;
    font-size: .86rem;
    font-weight: 800;
    border: 1px solid transparent;
    border-radius: 10px;
    background: rgba(255, 255, 255, .025);
  }

  .gh-mobile-accordion-links a::after {
    content: "›";
    margin-left: auto;
    color: #7dcfe0;
    font-size: 1.2rem;
  }

  .gh-mobile-drawer-note {
    margin: 16px 4px 0;
    padding: 12px 13px;
    color: #86a9b8;
    font-size: .72rem;
    line-height: 1.45;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, .07);
  }

  .gh-mobile-search-modal {
    position: fixed;
    inset: 0;
    z-index: 13100;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    padding: calc(82px + env(safe-area-inset-top, 0px)) 16px 20px;
    background: rgba(0, 2, 10, .78);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    transition: opacity .2s ease, visibility .2s ease;
  }

  .gh-mobile-search-modal.is-open {
    visibility: visible;
    opacity: 1;
  }

  .gh-mobile-search-card {
    width: min(100%, 520px);
    padding: 16px;
    background: linear-gradient(160deg, rgba(8, 20, 43, .99), rgba(7, 6, 23, .99));
    border: 1px solid rgba(0, 229, 255, .48);
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .55), 0 0 24px rgba(0, 229, 255, .08);
  }

  .gh-mobile-search-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 13px;
  }

  .gh-mobile-search-head strong {
    color: #fff;
    font-size: 1rem;
    letter-spacing: .04em;
    text-transform: uppercase;
  }

  .gh-mobile-search-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }

  .gh-mobile-search-form input {
    min-width: 0;
    width: 100%;
    height: 48px;
    padding: 0 14px;
    color: #fff;
    background: #050b1b;
    border: 1px solid rgba(0, 229, 255, .35);
    border-radius: 12px;
    font: inherit;
    font-size: 16px;
  }

  .gh-mobile-search-form button {
    min-width: 82px;
    height: 48px;
    padding: 0 16px;
    color: #fff;
    background: linear-gradient(135deg, #00a9d6, #8b4dff);
    border: 0;
    border-radius: 12px;
    font: inherit;
    font-weight: 950;
    cursor: pointer;
  }
}

@media (max-width: 370px) {
  .gh-mobile-topbar {
    grid-template-columns: 42px minmax(0, 1fr) 40px;
    gap: 5px;
    padding-left: 7px;
    padding-right: 7px;
  }

  .gh-mobile-menu-button,
  .gh-mobile-search-button {
    width: 39px;
    height: 39px;
  }

  .gh-mobile-quicklinks {
    gap: 1px;
  }

  .gh-mobile-quicklinks a {
    padding: 0 2px;
    font-size: .74rem;
    letter-spacing: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gh-mobile-nav-overlay,
  .gh-mobile-drawer,
  .gh-mobile-search-modal,
  .gh-mobile-accordion-panel,
  .gh-mobile-accordion-chevron {
    transition: none !important;
  }
}

/* Game Harbor mobile banner: height-only adjustment — 2026-06-25
   Keep the exact existing 100vw width. Increase only the vertical height,
   using the space previously occupied by the empty legacy header spacer. */
@media (max-width: 900px) {
  .gh-main-site-banner {
    --gh-banner-height: 29.6875vw;
  }

  .gh-main-site-banner .gh-main-banner-image {
    --gh-banner-img-height: 100%;
    --gh-banner-fit: fill;
  }

  body.gh-mobile-nav-ready header.site-header,
  body.gh-mobile-nav-ready .site-header.home-nav {
    display: none !important;
    width: 0 !important;
    min-height: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
  }
}

