/* GameGob site design system (2026-11-05): the studio's own look for every page that is not a game.
   Games keep their own styles; this file only loads on hub pages (home, workshop, genres, player card,
   challenges, made, about, investors, privacy, terms). Fonts are self-hosted (SIL OFL). */

@font-face { font-family: 'Bricolage Grotesque'; src: url(/assets/site/fonts/bricolage-grotesque-var.woff2) format('woff2'); font-weight: 200 800; font-stretch: 75% 100%; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url(/assets/site/fonts/inter-var.woff2) format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url(/assets/fonts/jetbrains-mono-400.woff2) format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url(/assets/fonts/jetbrains-mono-700.woff2) format('woff2'); font-weight: 600 800; font-style: normal; font-display: swap; }

:root {
  --ink-0: #110c09;
  --ink-1: #1a130f;
  --ink-2: #231a14;
  --ink-3: #2d2219;
  --line: rgba(255,214,170,.09);
  --line-2: rgba(255,214,170,.17);
  --text: #f7eddd;
  --muted: #c4b4a0;
  --dim: #94826f;
  --gob: #a8f05c;
  --gob-deep: #78d034;
  --gob-ink: #0b1404;
  --ember: #ff8a3c;
  --gold: #ffb347;
  --violet: #b58cff;
  --display: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --wrap: 1200px;
  --r: 14px;
  --r-lg: 22px;
  color-scheme: dark;
}

html.gg-site { background: var(--ink-0); overflow-x: clip; }
.gg-site body { background: var(--ink-0); }
body.gg-site {
  margin: 0;
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
.gg-site *, .gg-site *::before, .gg-site *::after { box-sizing: border-box; }
.gg-site a { color: inherit; }
.gg-site a.gg-btn-primary, .gg-site .gg-btn-primary { color: var(--gob-ink); }
.gg-site a.gg-link { color: var(--gob); }
.gg-site img { max-width: 100%; }
.gg-site :focus-visible { outline: 2px solid var(--gob); outline-offset: 3px; border-radius: 6px; }
.gg-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.gg-skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--gob); color: var(--gob-ink); padding: 8px 14px; border-radius: 8px; font-weight: 700; text-decoration: none; }
.gg-skip:focus { left: 12px; }

/* ---------- header ---------- */
.gg-nav { position: sticky; top: 0; z-index: 50; background: rgba(17,12,9,.78); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line); }
.gg-nav-in { display: flex; align-items: center; gap: 28px; height: 68px; }
.gg-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
@font-face { font-family: 'Bungee'; src: url(/assets/site/fonts/bungee.woff2) format('woff2'); font-weight: 400; font-display: swap; }
.gg-brand .gg-word { font-family: 'Bungee', var(--display); font-weight: 400; font-stretch: normal; font-size: 26px; line-height: 1; letter-spacing: .01em; color: var(--text); white-space: nowrap; }
.gg-word b { font-weight: 400; color: var(--gob); }
.gg-brand span { font-family: var(--display); font-weight: 800; font-stretch: 86%; font-size: 24px; letter-spacing: -.02em; color: var(--text); }
.gg-menu { display: flex; gap: 4px; flex: 1; min-width: 0; }
.gg-menu a { text-decoration: none; color: var(--muted); font-size: 14.5px; font-weight: 500; padding: 8px 12px; border-radius: 999px; transition: color .15s, background .15s; white-space: nowrap; }
.gg-menu a:hover, .gg-menu a[aria-current="page"] { color: var(--text); background: rgba(255,255,255,.06); }
.gg-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.gg-actions a.hl-btn, .gg-actions .af-c { font: 600 14px/1 var(--body); color: var(--text); text-decoration: none; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255,255,255,.04); white-space: nowrap; }
.gg-actions a.hl-btn:hover, .gg-actions .af-c:hover { border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.08); }
@media (max-width: 860px) {
  .gg-nav-in { flex-wrap: wrap; height: auto; padding-top: 12px; gap: 10px 16px; }
  .gg-brand { flex: 1; }
  .gg-menu { order: 3; flex-basis: 100%; overflow-x: auto; scrollbar-width: none; margin: 0; padding: 0 0 10px; }
  .gg-menu::-webkit-scrollbar { display: none; }
  .gg-menu a { padding: 7px 11px; font-size: 14px; }
}
@media (max-width: 420px) {
  .gg-brand span { font-size: 20px; }
  .gg-actions a.hl-btn, .gg-actions .af-c { padding: 9px 12px; font-size: 13px; }
}

/* ---------- type + buttons ---------- */
.gg-eyebrow { font: 600 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--gob); }
.gg-h1 { font-family: var(--display); font-weight: 800; font-stretch: 82%; font-size: clamp(42px, 7vw, 88px); line-height: .98; letter-spacing: -.035em; margin: 0; }
.gg-h2 { font-family: var(--display); font-weight: 800; font-stretch: 84%; font-size: clamp(30px, 4.2vw, 48px); line-height: 1.05; letter-spacing: -.03em; margin: 0; }
.gg-h3 { font-family: var(--display); font-weight: 700; font-size: 22px; line-height: 1.2; letter-spacing: -.015em; margin: 0; }
.gg-lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); line-height: 1.55; margin: 0; max-width: 60ch; }
.gg-btn { display: inline-flex; align-items: center; gap: 10px; font: 650 15.5px/1 var(--body); text-decoration: none; padding: 15px 22px; border-radius: 999px; border: 1px solid transparent; cursor: pointer; transition: transform .15s, background .15s, border-color .15s, box-shadow .15s; white-space: nowrap; }
.gg-btn:hover { transform: translateY(-1px); }
.gg-btn-primary { background: var(--gob); color: var(--gob-ink); box-shadow: 0 8px 30px -10px rgba(168,240,92,.55); }
.gg-btn-primary:hover { background: #bbf77a; }
.gg-btn-ghost { background: rgba(255,255,255,.06); color: var(--text); border-color: var(--line-2); backdrop-filter: blur(6px); }
.gg-btn-ghost:hover { background: rgba(255,255,255,.12); }
.gg-btn .arr { transition: transform .15s; }
.gg-btn:hover .arr { transform: translateX(3px); }
.gg-link { color: var(--gob); text-decoration: none; font-weight: 600; }
.gg-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- sections ---------- */
.gg-section { padding: 96px 0; }
.gg-section-tight { padding: 64px 0; }
.gg-section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.gg-section-head .gg-lede { margin-top: 12px; }
.gg-rule { border: 0; border-top: 1px solid var(--line); margin: 0; }
@media (max-width: 700px) { .gg-section { padding: 64px 0; } .gg-section-tight { padding: 44px 0; } .gg-wrap { padding: 0 18px; } }

/* ---------- page heading for inner pages ---------- */
.gg-pagehead { padding: 72px 0 40px; border-bottom: 1px solid var(--line); background: radial-gradient(900px 320px at 20% 0%, rgba(255,138,60,.14), transparent 70%); }
.gg-pagehead .gg-h1 { font-size: clamp(38px, 6vw, 68px); margin-top: 14px; }
.gg-pagehead .gg-lede { margin-top: 18px; }
.gg-crumbs { font: 500 13px/1 var(--mono); color: var(--dim); }
.gg-crumbs a { color: var(--muted); text-decoration: none; }
.gg-crumbs a:hover { color: var(--text); }

/* ---------- prose (legal, about) ---------- */
.gg-prose { max-width: 720px; font-size: 17px; color: #d9d8e2; }
.gg-prose h2 { font-family: var(--display); font-weight: 750; font-size: 26px; letter-spacing: -.02em; color: var(--text); margin: 48px 0 12px; line-height: 1.2; }
.gg-prose h3 { font-family: var(--display); font-weight: 700; font-size: 19px; color: var(--text); margin: 28px 0 8px; }
.gg-prose p, .gg-prose li { line-height: 1.7; }
.gg-prose ul { padding-left: 1.2em; }
.gg-prose li { margin: 8px 0; }
.gg-prose a { color: var(--gob); text-underline-offset: 3px; }
.gg-prose strong { color: var(--text); }
.gg-prose .meta { color: var(--dim); font: 500 13px/1.5 var(--mono); }

/* ---------- footer ---------- */
.gg-foot { border-top: 1px solid var(--line); background: var(--ink-1); padding: 64px 0 40px; margin-top: 0; font-size: 14.5px; }
.gg-foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.gg-foot-brand p { color: var(--muted); max-width: 30ch; margin: 14px 0 0; line-height: 1.55; }
.gg-foot h4 { font: 600 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin: 6px 0 16px; }
.gg-foot ul { list-style: none; margin: 0; padding: 0; }
.gg-foot li { margin: 0 0 10px; }
.gg-foot li a { color: var(--muted); text-decoration: none; }
.gg-foot li a:hover { color: var(--text); }
.gg-foot-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--dim); font-size: 13px; }
.gg-foot-base a { color: var(--muted); display: inline-block; padding: 10px 0; }
@media (max-width: 860px) { .gg-foot-grid { grid-template-columns: 1fr 1fr; } .gg-foot-brand { grid-column: 1 / -1; } }

/* ---------- cards ---------- */
.gg-card { background: var(--ink-1); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.gg-pill { display: inline-flex; align-items: center; gap: 6px; font: 600 11.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,.07); color: var(--muted); }

/* reduced motion */
@media (prefers-reduced-motion: reduce) { .gg-site *, .gg-site *::before, .gg-site *::after { transition: none !important; animation: none !important; } }

/* ---------- forge kit (2026-11-05 brand): embers, Gob's asides, glow ---------- */
.gg-glow { position: relative; isolation: isolate; }
.gg-glow::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(700px 300px at 50% 100%, rgba(255,138,60,.16), transparent 70%); }
.embers { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.embers i { position: absolute; bottom: -10px; width: 4px; height: 4px; border-radius: 50%; background: #ffcf7a; box-shadow: 0 0 8px 2px rgba(255,140,50,.8); opacity: 0; animation: ember 7s linear infinite; }
.embers i:nth-child(1) { left: 8%; animation-delay: 0s; } .embers i:nth-child(2) { left: 18%; animation-delay: 2.1s; animation-duration: 8s; }
.embers i:nth-child(3) { left: 31%; animation-delay: 4.3s; } .embers i:nth-child(4) { left: 44%; animation-delay: 1.2s; animation-duration: 9s; }
.embers i:nth-child(5) { left: 57%; animation-delay: 3.4s; } .embers i:nth-child(6) { left: 66%; animation-delay: 5.6s; animation-duration: 6.5s; }
.embers i:nth-child(7) { left: 76%; animation-delay: .7s; } .embers i:nth-child(8) { left: 85%; animation-delay: 2.9s; animation-duration: 8.5s; }
.embers i:nth-child(9) { left: 93%; animation-delay: 4.9s; } .embers i:nth-child(10) { left: 50%; animation-delay: 6.2s; animation-duration: 7.5s; }
@keyframes ember { 0% { transform: translate(0,0) scale(1); opacity: 0; } 10% { opacity: .95; } 60% { opacity: .7; } 100% { transform: translate(40px,-80vh) scale(.3); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .embers { display: none; } }
.gob-says { display: flex; align-items: flex-end; gap: 14px; }
.gob-says img { width: 64px; height: auto; flex-shrink: 0; }
.gob-says p { position: relative; margin: 0 0 18px; padding: 12px 16px; border-radius: 16px 16px 16px 4px; background: var(--ink-2); border: 1px solid var(--line-2); color: var(--text); font: 600 15px/1.4 var(--body); max-width: 34ch; }
.gob-says p b { color: var(--gob); }

/* ---------- phone: slim header + bottom tab bar (2026-11-05, after the Nintendo mobile comparison) ---------- */
.gg-tabbar { display: none; }
@media (max-width: 700px) {
  .gg-nav-in { flex-wrap: nowrap; height: 60px; padding-top: 0; }
  .gg-menu { display: none; }
  .gg-actions a.hl-btn { display: none; }
  .gg-brand .gg-word { font-size: 22px; }
  .gg-brand span { font-size: 21px; }
  .gg-tabbar { display: flex; position: fixed; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); z-index: 60; justify-content: space-around; padding: 6px 6px; border-radius: 22px; background: rgba(26,19,15,.92); border: 1px solid var(--line-2); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 12px 40px -10px rgba(0,0,0,.7); }
  .gg-tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 0 5px; border-radius: 16px; text-decoration: none; color: var(--muted); font: 600 10.5px/1 var(--body); }
  .gg-tabbar a svg { width: 22px; height: 22px; }
  .gg-tabbar a[aria-current="page"] { color: var(--gob); background: rgba(168,240,92,.08); }
  body.gg-site { padding-bottom: 88px; }
  #mob-guide { bottom: 92px !important; }
}
