/* Shared styles for brainrotlabs static content pages
   (about, contact, terms, and the per-game landing pages).
   Cartoon-brutalist brand: warm ink bg, cream text, lime accent. */

:root {
  --ink: #15120e;
  --cream: #fbf8f0;
  --lime: #c6f432;
  --pink: #ffa3dc;
  --font-display: 'Archivo Black', system-ui, sans-serif;
  --font-body: 'Space Grotesk', system-ui, sans-serif;
  --border: 4px solid var(--ink);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
::selection { background: var(--lime); color: var(--ink); }

a { color: var(--lime); }
a:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }

/* ---- sticky top bar ---- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem clamp(1rem, 4vw, 3rem);
  background: var(--ink);
  border-bottom: var(--border);
  border-color: var(--lime);
}
.back { color: var(--cream); text-decoration: none; font-weight: 700; }
.back:hover { color: var(--lime); text-decoration: underline wavy; text-underline-offset: 5px; }
.topbar .tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.6;
}

/* ---- layout ---- */
.wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(2.2rem, 6vw, 4.5rem) clamp(1rem, 5vw, 2rem) 3rem;
}
.wrap-wide { max-width: 980px; }

/* ---- headings ---- */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: lowercase;
  letter-spacing: -0.01em;
}
h1 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: lowercase;
  letter-spacing: -0.01em;
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  line-height: 1.05;
  margin-bottom: 0.6rem;
}
.pill {
  display: inline-block;
  background: var(--lime);
  color: var(--ink);
  border: var(--border);
  border-radius: 999px;
  padding: 0 0.35em 0.05em;
  transform: rotate(-2deg);
}
.subtitle {
  color: var(--lime);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.9rem;
  margin-bottom: 1.8rem;
}
h2 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: lowercase;
  font-size: clamp(1.3rem, 3.5vw, 1.75rem);
  margin: 2.4rem 0 0.8rem;
  padding-top: 1.4rem;
  border-top: 3px solid rgba(251, 248, 240, 0.15);
}
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: lowercase;
  font-size: 1.15rem;
  margin: 1.6rem 0 0.5rem;
}

/* ---- text ---- */
p { margin-bottom: 1rem; opacity: 0.94; }
ul, ol { margin: 0 0 1rem 1.2rem; }
li { margin-bottom: 0.5rem; opacity: 0.94; }
strong { color: var(--cream); }

.callout {
  background: rgba(198, 244, 50, 0.08);
  border: 3px solid var(--lime);
  border-radius: 16px;
  padding: 1.1rem 1.3rem;
  margin: 1.4rem 0;
}
.callout p:last-child { margin-bottom: 0; }

/* ---- buttons ---- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: lowercase;
  text-decoration: none;
  font-size: 1rem;
  padding: 0.7rem 1.3rem;
  border: var(--border);
  border-radius: 999px;
  transition: transform 0.08s ease;
}
.btn:active { transform: translate(2px, 2px); }
.btn-primary {
  background: var(--lime);
  color: var(--ink);
  border-color: var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
}
.btn-primary:hover { box-shadow: 3px 3px 0 var(--ink); transform: translate(2px, 2px); }
.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: var(--cream);
}
.btn-ghost:hover { background: var(--cream); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; margin: 1.4rem 0; }

/* ---- game landing: hero ---- */
.game-hero {
  display: grid;
  gap: 1.4rem;
  margin-bottom: 0.5rem;
}
.game-banner {
  border: var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 8px 8px 0 var(--lime);
}
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.6rem 0 1rem; }
.chip {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.25rem 0.7rem;
  border: 2px solid var(--cream);
  border-radius: 999px;
  opacity: 0.85;
}
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  font-size: 0.85rem;
  opacity: 0.7;
  margin-bottom: 0.4rem;
}

/* ---- screenshots ---- */
.shots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.9rem;
  margin: 1.2rem 0;
}
.shots figure {
  border: 3px solid var(--ink);
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}

/* ---- FAQ ---- */
.faq details {
  border-bottom: 2px solid rgba(251, 248, 240, 0.15);
  padding: 0.8rem 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--cream);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--lime); font-weight: 700; }
.faq details[open] summary::after { content: '\2013'; }
.faq details p { margin: 0.7rem 0 0; }

/* ---- cross-link cards ---- */
.more-games {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.2rem 0;
}
.more-card {
  display: block;
  text-decoration: none;
  color: var(--cream);
  border: 3px solid var(--cream);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  transition: border-color 0.1s ease, transform 0.1s ease;
}
.more-card:hover { border-color: var(--lime); transform: translateY(-2px); }
.more-card strong { display: block; font-family: var(--font-display); font-weight: 400; text-transform: lowercase; font-size: 1.1rem; margin-bottom: 0.2rem; }
.more-card span { font-size: 0.85rem; opacity: 0.7; }

/* ---- shared footer ---- */
.site-footer {
  border-top: var(--border);
  border-color: var(--lime);
  margin-top: 3.5rem;
  padding: 2.4rem clamp(1rem, 5vw, 2rem);
  text-align: center;
}
.site-footer .foot-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1.4rem;
  margin-bottom: 1.2rem;
  font-weight: 700;
}
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline wavy; text-underline-offset: 5px; }
.site-footer .legal { font-size: 0.85rem; opacity: 0.55; }

@media (min-width: 720px) {
  .game-hero { grid-template-columns: 1.1fr 0.9fr; align-items: center; }
}

/* ---- breadcrumbs ---- */
.crumbs {
  font-size: 0.82rem;
  opacity: 0.75;
  margin: 0 0 0.9rem;
}
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.crumbs li { display: flex; gap: 0.4rem; align-items: center; }
.crumbs li + li::before { content: '/'; opacity: 0.45; }
.crumbs a { color: var(--cream); text-decoration: none; }
.crumbs a:hover { color: var(--lime); text-decoration: underline; }
.crumbs [aria-current='page'] { opacity: 0.6; }

/* ---- games index cards ---- */
.game-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.4rem;
  margin: 1.5rem 0 2.2rem;
}
.game-list article {
  border: 3px solid var(--cream);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.1s ease, transform 0.1s ease;
}
.game-list article:hover { border-color: var(--lime); transform: translateY(-2px); }
.game-list > article > a { display: block; text-decoration: none; line-height: 0; }
.game-list img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #000; }
.game-list .game-list-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.game-list h2 { margin: 0; padding-top: 0; border-top: 0; font-size: 1.25rem; }
.game-list .card-tag { margin: 0; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--lime); font-weight: 700; }
.game-list p { margin: 0; font-size: 0.92rem; }
.game-list .game-list-links { margin-top: auto; display: flex; flex-wrap: wrap; gap: 0.6rem; padding-top: 0.4rem; }
