/* GameGrit site fixes layered over the template's main.css (loaded after it). */

/* ---------- Fonts (self-hosted, OFL) ----------
   Served from our own domain and preloaded in index.html, so they arrive
   before the app renders and text never re-flows after first paint. */
@font-face {
  font-family: 'Chakra Petch';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/assets/fonts/chakra-petch-300-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Chakra Petch';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/assets/fonts/chakra-petch-300-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Chakra Petch';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/chakra-petch-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Chakra Petch';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/chakra-petch-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Chakra Petch';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/chakra-petch-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Chakra Petch';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/chakra-petch-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Chakra Petch';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/chakra-petch-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Chakra Petch';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/chakra-petch-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Chakra Petch';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/chakra-petch-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Chakra Petch';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/chakra-petch-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Days One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/days-one-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Images ----------
   Images with width/height attributes keep their aspect ratio when the
   template CSS sets only a width (e.g. the hero image on phones). */
.hero-1 .hero-image img,
.hero-1 .right-shape img,
.about-section .left-shape img,
.marque-section .gradient-shape img {
  height: auto;
}

/* The lounge photo beside "Inside the GameGrit Lounge" is forced into a
   300x700 box on laptops; crop it instead of stretching it. */
.game-wrapper .top-image img { object-fit: cover; }

/* ---------- Header + mobile menu ---------- */
/* The logo has width/height attributes so its space is reserved before it
   loads (otherwise the whole page jumps down when it arrives). */
.header-main .logo .header-logo img { height: auto; }

/* Anchor for the dropdown; .sticky still wins with `position: fixed !important`. */
.header-1 { position: relative; }
.header-1:not(.sticky) { z-index: 1000; } /* above the hero image (z-index 999) */

@media (max-width: 1199.98px) {
  .header-1 .mean__menu-wrapper { display: none; }
  .header-main .logo .header-logo img { width: 240px; max-width: 100%; }
}
@media (max-width: 575.98px) {
  .header-main .logo .header-logo img { width: 190px; }
}

.gg-burger-btn {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #1C1D20;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}
.gg-burger-btn span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.gg-burger-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.gg-burger-btn.open span:nth-child(2) { opacity: 0; }
.gg-burger-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.gg-burger-btn:focus-visible { outline: 2px solid var(--theme); outline-offset: 2px; }

.gg-mobile-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #0B0E13;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.6);
  max-height: 0;
  overflow: hidden;
  visibility: hidden;
  transition: max-height 0.3s ease, visibility 0.3s;
}
.gg-mobile-nav.open { max-height: 80vh; overflow-y: auto; visibility: visible; }
.gg-mobile-nav ul { list-style: none; margin: 0; padding: 8px 16px 16px; }
.gg-mobile-nav li a {
  display: block;
  padding: 14px 4px;
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.gg-mobile-nav li:last-child a { border-bottom: 0; }
.gg-mobile-nav li a:hover,
.gg-mobile-nav li a[aria-current="page"] { color: var(--theme); }

/* ---------- Inline SVG icons (social links, footer address) ---------- */
.social-icon a svg,
.footer-top-wrapper .location-info .icon svg { width: 20px; height: 20px; vertical-align: middle; }
.footer-top-wrapper .location-info .icon { display: inline-flex; align-items: center; justify-content: center; }

/* ---------- Hero on phones ----------
   The template positions the intro text absolutely on small screens, where it
   overlaps the stats counters. Keep it in normal flow instead. */
@media (max-width: 767.98px) {
  .hero-1 .hero-text {
    position: static;
    max-width: none;
    margin-top: 24px;
  }
}

/* ---------- Page states ---------- */
.gg-page-loading { min-height: 100vh; } /* keeps the footer off-screen while a page chunk loads */

.gg-not-found { padding: 140px 16px 120px; text-align: center; }
.gg-not-found h1 { font-size: clamp(32px, 6vw, 56px); margin-bottom: 14px; }
.gg-not-found p { margin-bottom: 28px; }
.gg-not-found-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
