/* --- /assets/common.css --- shared chrome across all gorilla pages ---
   Canonical styles for design tokens, reset, body atmosphere, nav,
   header rule, primary/secondary buttons, endgame strip, and footer.
   Page-specific styles (hero, run-card, lobby, etc.) stay inline on
   each page. Edit here for site-wide changes. */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #06070b;
  --bg2: #0a0d12;
  --ink: #f7f8fb;
  --green: #34d399;
  --green-deep: #10b981;
  --green-dim: rgba(52, 211, 153, 0.12);
  --green-line: rgba(52, 211, 153, 0.34);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --muted: rgba(247, 248, 251, 0.64);
  --muted-2: rgba(247, 248, 251, 0.42);
  --font: 'Montserrat', ui-sans-serif, system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  overflow-x: hidden;
}
body {
  background:
    radial-gradient(ellipse 80% 50% at 20% 10%, rgba(52, 211, 153, 0.035), transparent),
    var(--bg);
  min-height: 100vh;
}
a { color: inherit; }
img { max-width: 100%; height: auto; }

/* Scanline + vignette overlays are off by default. Pages that opt in
   can add the markup; without an explicit class on <body> they don't
   render. */
.scanlines,
.vignette { display: none; }

@keyframes blink { 50% { opacity: 0; } }

/* --- NAV --- */
nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 36px;
  background: rgba(6, 7, 11, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
/* Hamburger toggle -- visible only on mobile (see media query below). */
.nav-menu-toggle {
  display: none;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.40);
  border-radius: 6px;
  padding: 8px 10px;
  color: var(--ink);
  cursor: pointer;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1;
  transition: border-color .15s;
}
.nav-menu-toggle:hover { border-color: var(--ink); }
.nav-menu-toggle::before {
  content: '\2630';
  display: block;
}
nav.menu-open .nav-menu-toggle::before { content: '\00D7'; font-size: 18px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-img { width: 32px; height: 32px; display: block; }
.logo-text {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.04em;
}
nav ul { list-style: none; display: flex; gap: 24px; }
/* The dropdown CTA item is mobile/tablet-only -- hidden in the desktop
   horizontal nav. On smaller screens the hamburger menu surfaces it as the
   primary SIGN UP FREE pill. */
nav ul li.nav-menu-cta { display: none; }
@media (max-width: 1000px) {
  nav ul li.nav-menu-cta { display: block; }
}
nav ul a {
  font-family: var(--font);
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color .15s;
}
nav ul a:hover { color: var(--green); }

.nav-actions { display: inline-flex; align-items: center; gap: 10px; }
.nav-login {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  background: transparent;
  color: var(--ink);
  padding: 11px 16px;
  border: 1.5px solid rgba(255, 255, 255, 0.40);
  border-radius: 9px;
  text-decoration: none;
  cursor: pointer;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  transition: border-color .15s;
}
.nav-login:hover { border-color: var(--ink); }
/* SIGN UP FREE pill -- green CTA, visible on every page. */
.nav-cta {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  background: var(--green);
  color: #04100b;
  padding: 11px 16px;
  border: none;
  border-radius: 9px;
  text-decoration: none;
  cursor: pointer;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  transition: background .15s, transform .15s;
}
.nav-cta:hover { background: #45dfaa; transform: translateY(-1px); }
.nav-cta:active { transform: translateY(1px); }

.header-rule {
  height: 3px;
  background: var(--green);
}

/* --- PRIMARY BUTTONS --- */
.btn-primary {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  padding: 18px 28px;
  background: var(--green);
  color: #04100b;
  border: none;
  border-radius: 9px;
  text-decoration: none;
  cursor: pointer;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  gap: 10px;
  transition: background .15s, transform .15s;
}
.btn-primary:hover { background: #45dfaa; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(1px); }
.btn-secondary { display: none; }

/* --- ENDGAME STRIP --- */
.endgame {
  text-align: center;
  padding: 68px 22px;
  background: linear-gradient(180deg, rgba(52, 211, 153, 0.08), rgba(255, 255, 255, 0.025));
  border: 1px solid var(--line);
  border-radius: 24px;
  margin-top: 80px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}
.endgame h2 {
  font-family: var(--font);
  font-size: 32px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 16px;
  line-height: 1.3;
}
.endgame .credits {
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  color: var(--green);
  margin-bottom: 36px;
}

/* Walker/banana stage -- removed. Hide any leftover markup. */
.endgame-stage,
.walker,
.walker-walk,
.walker-eat,
.endgame-banana { display: none; }

/* --- FOOTER --- */
footer {
  background: var(--bg);
  padding: 48px 48px 32px;
  font-family: var(--font);
  color: var(--muted);
}
.footer-grid {
  max-width: 1400px;
  margin: 0 auto 32px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-brand .logo-text { display: block; margin-top: 12px; }
.footer-tagline {
  font-family: var(--font);
  font-size: 14px;
  color: var(--muted-2);
  margin-top: 14px;
  max-width: 240px;
  line-height: 1.5;
}
.footer-col h3,
.footer-col h4 {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer-col a {
  display: block;
  color: var(--muted-2);
  text-decoration: none;
  font-size: 13px;
  padding: 5px 0;
  transition: color .15s;
}
.footer-col a:hover { color: var(--green); }
.footer-bottom {
  max-width: 1400px;
  margin: 24px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted-2);
}

/* --- RESPONSIVE --- */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 1000px) {
  nav { padding: 12px 16px; gap: 10px; flex-wrap: wrap; }
  .nav-actions { gap: 6px; flex-shrink: 0; }
  .nav-login,
  .nav-cta { display: none; }
  .nav-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  nav ul {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    gap: 0;
    margin-top: 10px;
    padding: 8px 0;
    border-top: 1px solid var(--line);
  }
  nav.menu-open ul { display: flex; }
  nav ul li { width: 100%; }
  nav ul a {
    display: block;
    padding: 12px 4px;
    font-size: 13px;
  }
  /* Surface the primary action inside the dropdown as a green pill. */
  nav.menu-open ul li.nav-menu-cta a {
    margin: 8px 0 4px;
    padding: 12px 16px;
    background: var(--green);
    color: #04100b;
    border: none;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: center;
  }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  nav { padding: 10px 8px 10px 14px; }
  .logo-img { width: 26px; height: 26px; }
  .logo-text { font-size: 10px; letter-spacing: 0.03em; }
  .endgame { padding: 52px 18px; }
  .endgame h2 { font-size: 22px; }
  .endgame .credits { font-size: 14px; }
}

/* --- Locale banner ---
   Small dismissible bar that suggests the /br/ version to
   pt-BR browsers. Lives in common.css so it works on every
   page (the home page doesn't load styles.css). */
@keyframes locale-banner-in {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}
.locale-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  background: rgba(11, 13, 18, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--green-line);
  border-radius: 14px;
  padding: 12px 14px 12px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font);
  font-size: 13.5px;
  color: var(--ink);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
  max-width: calc(100vw - 32px);
  animation: locale-banner-in .28s cubic-bezier(.2, .8, .2, 1);
}
.locale-banner-flag {
  font-size: 22px;
  line-height: 1;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.6));
  flex-shrink: 0;
}
.locale-banner-text {
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.01em;
}
.locale-banner-cta {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--green);
  color: #04100b !important;
  text-decoration: none !important;
  padding: 9px 14px;
  border: none;
  border-radius: 9px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  line-height: 1;
  transition: background .15s, transform .15s;
  flex-shrink: 0;
}
.locale-banner-cta:hover {
  background: #45dfaa;
  transform: translateY(-1px);
  text-decoration: none !important;
}
.locale-banner-cta:active {
  transform: translateY(1px);
}
.locale-banner-close {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.55);
  width: 30px;
  height: 30px;
  border-radius: 7px;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  flex-shrink: 0;
  transition: color .12s, border-color .12s, background .12s;
}
.locale-banner-close:hover {
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.04);
}
@media (max-width: 540px) {
  .locale-banner {
    font-size: 12.5px;
    padding: 10px 12px;
    gap: 10px;
    bottom: 14px;
    border-radius: 10px;
  }
  .locale-banner-flag { font-size: 18px; }
  .locale-banner-text { display: none; }
  .locale-banner-cta { font-size: 10px; padding: 8px 12px; }
}
