/* Good Enough Games — site styles */
:root {
  --orange: #f3901f;
  --orange-deep: #c96d0a;
  --cream: #f5ead8;
  --paper: #fbf7f0;
  --ink: #1c1917;
  --ink-soft: #4a433d;
  --line: rgba(28, 25, 23, .12);
  --footer: #161311;
  --footer-text: #d9cfbf;
  --radius: 14px;
  --font: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper); line-height: 1.6; }
/* Home: hero + footer share one viewport, no scrolling on normal screens */
body.home { display: flex; flex-direction: column; min-height: 100svh; background: var(--orange); }
body.home main { flex: 1 1 auto; display: flex; min-height: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Hero (home) ---------- */
.hero {
  flex: 1 1 auto;
  width: 100%;
  background: var(--orange);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: clamp(20px, 4vh, 56px) 16px;
}
.hero__logo { height: clamp(150px, 31vh, 380px); width: auto; }
.hero__tagline {
  max-width: 36ch; margin: clamp(14px, 2.4vh, 28px) auto 0;
  font-size: clamp(1.05rem, 1.2vw + .8rem, 1.35rem); font-weight: 700; color: var(--ink);
}
.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: clamp(16px, 3vh, 32px); }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  height: 56px; padding: 0 18px 0 14px; border-radius: 12px;
  background: #111; color: #fff; text-decoration: none;
  border: 1.5px solid rgba(255, 255, 255, .35);
  transition: transform .15s ease, box-shadow .15s ease;
}
.badge:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 0, 0, .18); }
.badge svg { width: 26px; height: 26px; flex: none; }
.badge__text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.05; text-align: left; }
.badge__text small { font-size: .66rem; font-weight: 600; letter-spacing: .02em; opacity: .9; }
.badge__text strong { font-size: 1.15rem; font-weight: 700; }
.badge--icon { width: 56px; padding: 0; justify-content: center; }
/* Store badges stay inactive until a real URL replaces the "#" placeholder */
.badge[href="#"] { cursor: default; opacity: .72; pointer-events: none; }
.hero__note { display: none; margin: clamp(10px, 2vh, 18px) 0 0; font-size: .95rem; font-weight: 700; color: rgba(28, 25, 23, .72); }
.badges:has(.badge[href="#"]) + .hero__note { display: block; }

/* ---------- Top bar (inner pages) ---------- */
.topbar { background: var(--orange); padding: 14px 16px; }
.topbar__inner { max-width: 1080px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.05rem; }
.brand img { height: 36px; width: auto; }
.topbar nav { display: flex; gap: 20px; font-weight: 700; font-size: .95rem; }
.topbar nav a { text-decoration: none; color: var(--ink); }
.topbar nav a:hover, .topbar nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
@media (max-width: 600px) { .topbar nav { display: none; } }

/* ---------- Document pages ---------- */
.doc { max-width: 760px; margin: 0 auto; padding: 56px 16px 80px; }
.doc h1 { font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.1; margin: 0 0 8px; font-weight: 800; }
.doc .meta { color: var(--ink-soft); font-weight: 600; margin: 0 0 36px; }
.doc h2 { font-size: 1.35rem; margin: 40px 0 12px; font-weight: 800; }
.doc h3 { font-size: 1.05rem; margin: 24px 0 8px; font-weight: 800; }
.doc p, .doc li { font-size: 1.02rem; color: var(--ink-soft); }
.doc a { color: var(--orange-deep); font-weight: 700; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.doc ul { padding-left: 1.2rem; }
.doc li + li { margin-top: 6px; }
.doc .partner { margin: 14px 0; padding: 14px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.doc .partner p { margin: 4px 0; }
.callout { background: var(--cream); border-left: 4px solid var(--orange); padding: 16px 18px; border-radius: 0 var(--radius) var(--radius) 0; margin: 28px 0; }
.callout p { margin: 0; color: var(--ink); }
.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; padding: 14px 22px; border-radius: 12px; text-decoration: none; font-weight: 800; }
.btn:hover { background: #000; }
.doc .btn { color: #fff; text-decoration: none; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 800; font-size: 1.05rem; color: var(--ink); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--orange-deep); flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 0; }

/* ---------- 404 ---------- */
.notfound { min-height: 70svh; display: grid; place-items: center; text-align: center; padding: 48px 16px; }
.notfound img { height: 140px; width: auto; margin: 0 auto 20px; }
.notfound h1 { margin: 0 0 8px; font-size: 2.2rem; }
.notfound p { color: var(--ink-soft); margin: 0 0 24px; }

/* ---------- Footer ---------- */
.footer { background: var(--footer); color: var(--footer-text); padding: clamp(24px, 4vh, 44px) 16px 20px; }
.footer__inner { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .footer__inner { grid-template-columns: 1fr 1fr; } }
.footer__brand img { height: 44px; width: auto; }
.footer__brand p { margin: 10px 0 0; max-width: 32ch; font-size: .95rem; }
.footer h4 { margin: 0 0 10px; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { color: #fff; text-decoration: none; font-weight: 600; }
.footer a:hover { color: var(--orange); }
.footer__bottom { max-width: 1080px; margin: clamp(16px, 3vh, 28px) auto 0; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }

/* ---------- Responsive overrides (kept last so they win) ---------- */
@media (max-width: 600px) {
  /* smaller badges so both store badges share one row on phones */
  .badge { height: 48px; padding: 0 12px 0 10px; gap: 8px; border-radius: 10px; }
  .badge svg { width: 22px; height: 22px; }
  .badge__text strong { font-size: 1rem; }
  .badge__text small { font-size: .6rem; }
  .badge--icon { width: 48px; }
  .hero__logo { height: clamp(140px, 28vh, 380px); }
  .hero__note { font-size: .85rem; }
  /* footer collapses into one centered cluster of links */
  .footer__inner { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; }
  .footer__inner > div, .footer ul { display: contents; }
  .footer .footer__brand, .footer h4 { display: none; }
  .footer a { font-size: .92rem; }
  .footer__bottom { justify-content: center; text-align: center; font-size: .78rem; margin-top: 14px; padding-top: 10px; }
  .footer__loc { display: none; }
}
/* short windows (small laptops, landscape phones) */
@media (max-height: 700px) {
  .hero { padding: 12px 16px; }
  .hero__logo { height: clamp(130px, 26vh, 380px); }
  .footer { padding: 18px 16px 14px; }
  .footer__bottom { margin-top: 12px; padding-top: 10px; }
}
@media (max-height: 700px) and (max-width: 600px) {
  .hero__note { display: none !important; }
  .hero__logo { height: clamp(120px, 23vh, 380px); }
}
