/* ==========================================================================
   Shrimp Industries - site styles
   No frameworks, no external requests. Themeable per page via [data-theme].

   Design language: flat colour, chunky borders and hard offset shadows -
   borrowed from the Sudden Death Golf wordmark. Deliberately no soft glows,
   no gradient buttons and no blurred glass, which is what makes a dark site
   read as a SaaS landing page.
   ========================================================================== */

/* --- Design tokens ------------------------------------------------------ */
:root {
  --bg:         #151924;
  --bg-elev:    #1c2131;
  --bg-card:    #202638;
  --bg-inset:   #191d2b;

  --line:       rgba(255, 255, 255, .16);
  --line-soft:  rgba(255, 255, 255, .08);
  --ink:        #0b0d14;              /* the hard-shadow colour */

  --text:       #f2f4f9;
  --text-dim:   #aeb7ca;
  --text-faint: #7d879c;

  /* Studio accent: taken from the Shrimp Industries mark */
  --accent:     #3ddcf2;
  --accent-2:   #8f7bff;
  --accent-ink: #06222b;

  --radius:     10px;
  --radius-lg:  14px;

  /* Hard, offset, zero-blur. The whole personality lives here. */
  --pop:        4px 4px 0 var(--ink);
  --pop-lg:     6px 6px 0 var(--ink);

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Menlo, Consolas, monospace;

  --wrap: 1120px;
  --gut:  clamp(1rem, 3.5vw, 2rem);
}

/* Per-game themes. Applied on <body data-theme="rtb"> etc. */
[data-theme="rtb"] {
  --bg:       #1a1322;
  --bg-elev:  #241a2f;
  --bg-card:  #291d36;
  --bg-inset: #1f1629;
  --ink:      #0e0714;
  --accent:     #ffc247;
  --accent-2:   #e8524a;
  --accent-ink: #2e1a02;
}

[data-theme="sdg"] {
  --bg:       #201829;
  --bg-elev:  #2a2036;
  --bg-card:  #30243d;
  --bg-inset: #261d31;
  --ink:      #120c19;
  --accent:     #ff6a2b;
  --accent-2:   #ffcf4d;
  --accent-ink: #2b0f03;
}

/* --- Reset / base ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background-color: var(--bg);
  /* Flat dot grid instead of soft radial glows */
  background-image: radial-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 22px 22px;
  color: var(--text);
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; font-weight: 600; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3, h4 {
  margin: 0 0 .4em;
  line-height: 1.08;
  letter-spacing: -.025em;
  font-weight: 800;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 5.6vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
h3 { font-size: clamp(1.12rem, 1.8vw, 1.3rem); }
h4 { font-size: 1rem; }

p { margin: 0 0 .85em; }
p:last-child { margin-bottom: 0; }

hr { border: 0; height: 2px; background: var(--line-soft); margin: 1.5rem 0; }

::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

.skip {
  position: absolute; left: -9999px;
  background: var(--accent); color: var(--accent-ink);
  padding: .6rem 1rem; font-weight: 800; z-index: 200;
  border: 2px solid var(--ink);
}
.skip:focus { left: 0; top: 0; }

/* --- Layout helpers ----------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}
.wrap-narrow { max-width: 760px; }

section { padding-block: clamp(2.25rem, 4.5vw, 3.5rem); }
section.tight { padding-block: clamp(1.5rem, 3vw, 2.25rem); }

.lede {
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  color: var(--text-dim);
  max-width: 60ch;
}

.muted { color: var(--text-dim); }
.small { font-size: .86rem; }
.center { text-align: center; }
.mt-0 { margin-top: 0; }

/* Flat chip label above headings */
.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--accent);
  padding: .25rem .55rem;
  border-radius: 4px;
  margin-bottom: .7rem;
  transform: rotate(-1deg);
}

.section-head { margin-bottom: clamp(1.1rem, 2.2vw, 1.6rem); }
.section-head p { color: var(--text-dim); max-width: 58ch; margin-bottom: 0; }

/* --- Header / nav ------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-elev);
  border-bottom: 2px solid var(--ink);
}
.site-header::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--accent) 0 40%, var(--accent-2) 40% 70%, var(--text) 70% 100%);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-height: 58px;
}

.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--text);
  font-weight: 900;
  letter-spacing: -.02em;
  margin-right: auto;
}
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; }
.brand span { font-size: .98rem; }
.brand small {
  display: block;
  font-family: var(--mono);
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.nav { display: flex; align-items: center; gap: .15rem; }
.nav a {
  color: var(--text-dim);
  font-size: .88rem;
  font-weight: 700;
  padding: .35rem .65rem;
  border-radius: 6px;
  border: 2px solid transparent;
}
.nav a:hover { color: var(--text); background: var(--line-soft); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--accent); border-color: currentColor; }

.nav-toggle {
  display: none;
  background: var(--bg-card);
  border: 2px solid var(--line);
  color: var(--text);
  border-radius: 6px;
  padding: .35rem .45rem;
  cursor: pointer;
  line-height: 0;
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .4rem var(--gut) .8rem;
    background: var(--bg-elev);
    border-bottom: 2px solid var(--ink);
  }
  .nav.open { display: flex; }
  .nav a { padding: .65rem .2rem; border-bottom: 2px solid var(--line-soft); border-radius: 0; }
  .nav a:last-child { border-bottom: 0; }
}

/* --- Buttons ------------------------------------------------------------
   Flat fill, hard shadow, and a real "press" on click. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .6rem 1.05rem;
  border-radius: 8px;
  border: 2px solid var(--ink);
  font-size: .9rem;
  font-weight: 800;
  letter-spacing: -.01em;
  cursor: pointer;
  box-shadow: var(--pop);
  transition: transform .1s ease, box-shadow .1s ease, background .15s;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); }
.btn svg { width: 17px; height: 17px; flex: none; }

.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 85%, #fff); }

.btn-ghost { background: var(--bg-card); color: var(--text); }
.btn-ghost:hover { background: var(--bg-elev); }

.btn-lg { padding: .75rem 1.35rem; font-size: .98rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }

/* --- Badges / pills ----------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--mono);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .25rem .6rem;
  border-radius: 5px;
  border: 2px solid var(--ink);
  background: var(--bg-inset);
  color: var(--text-dim);
}
.badge-live  { background: #3ddc84; color: #04270f; }
.badge-dev   { background: var(--g-accent, var(--accent)); color: var(--g-ink, var(--accent-ink)); }
.badge-done  { background: var(--bg-inset); color: var(--text-dim); }
.badge-hold  { background: #ff9f43; color: #331d00; }
.badge-shelf { background: var(--bg-inset); color: var(--text-faint); }

.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }

/* Angled sticker label - echoes the Sudden Death Golf wordmark */
.sticker {
  display: inline-block;
  transform: rotate(-2.5deg);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 900;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .3rem .7rem;
  box-shadow: var(--pop);
  border: 2px solid var(--ink);
}

/* --- Cards -------------------------------------------------------------- */
.card {
  background: var(--bg-card);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--pop);
  padding: 1.15rem;
}

/* Grid children default to min-width:auto, whose min-content size is the
   intrinsic width of any image inside - that overflows narrow viewports. */
.grid > *, .tech > *, .facts > *, .presskit-links > * { min-width: 0; }

.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* --- Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(2.5rem, 6vw, 4rem);
  overflow: hidden;
  border-bottom: 2px solid var(--ink);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  object-fit: cover;
  width: 100%; height: 100%;
  opacity: .3;
}
/* Flat diagonal stripes, straight off the SDG key art */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: repeating-linear-gradient(115deg,
    transparent 0 20px, rgba(0, 0, 0, .1) 20px 40px);
}
.hero > .wrap { position: relative; z-index: 1; }
.hero h1 { margin-bottom: .35em; }
.hero .btn-row { margin-top: 1.25rem; }

/* Full-bleed art banner. The key art is ~3.1:1, so the band stays short and
   wide - a taller hero crops it down to a face. */
.hero-banner {
  padding-block: clamp(2rem, 4vw, 3rem);
  display: grid;
  align-items: center;
}
.hero-banner h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.hero-banner .lede { max-width: 44ch; }
.hero-banner .hero-bg { opacity: .5; object-position: 50% 30%; }
.hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(100deg,
    color-mix(in srgb, var(--bg) 94%, transparent) 0%,
    color-mix(in srgb, var(--bg) 78%, transparent) 45%,
    color-mix(in srgb, var(--bg) 30%, transparent) 100%);
}
@media (max-width: 700px) {
  .hero-banner::before {
    background: linear-gradient(180deg,
      color-mix(in srgb, var(--bg) 74%, transparent) 0%,
      color-mix(in srgb, var(--bg) 92%, transparent) 70%);
  }
}

/* --- Game feature block ------------------------------------------------- */
.game {
  position: relative;
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: var(--pop-lg);
  overflow: hidden;
}
.game + .game { margin-top: 1.25rem; }

.game-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-inset);
  border-bottom: 2px solid var(--ink);
}
.game-media > img,
.game-media > video { width: 100%; height: 100%; object-fit: cover; }
.game-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, color-mix(in srgb, var(--bg-card) 88%, transparent), transparent 55%);
  pointer-events: none;
}
/* Needs to out-specify `.game-media > img` above */
.game-media > img.game-logo {
  position: absolute;
  left: clamp(1rem, 2.5vw, 1.6rem);
  bottom: clamp(.8rem, 2vw, 1.2rem);
  z-index: 2;
  width: clamp(180px, 32%, 300px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(4px 4px 0 rgba(0, 0, 0, .55));
}
/* Side-by-side from tablet up. A full-width 16:9 still is ~590px tall on
   desktop, which is most of a screen for one card. */
@media (min-width: 880px) {
  .game { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .game-media {
    aspect-ratio: auto;
    height: 100%;
    border-bottom: 0;
    border-right: 2px solid var(--ink);
  }
  .game-media > img,
  .game-media > video { object-position: center; }
  .game-media::after {
    background: linear-gradient(to right, transparent 55%, color-mix(in srgb, var(--bg-card) 55%, transparent));
  }
  .game-body { display: flex; flex-direction: column; justify-content: center; }
}

/* Capsule/logo art is a lockup, not a photo - never crop it. */
.game-media-contain { background: var(--bg-inset); }
/* Match the capsule's own plum so the letterboxing reads as part of the art */
.t-sdg .game-media-contain { background: #241a30; }
.game-media-contain > img { object-fit: contain; padding: clamp(.6rem, 1.5vw, 1.2rem); }
.game-media-contain::after { display: none; }

.game-body { padding: clamp(1.1rem, 2.5vw, 1.6rem); }
.game-body > .badge { margin-bottom: .7rem; align-self: flex-start; }
.game-body h2 { margin-bottom: .2em; }
.game-tagline {
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--g-accent, var(--accent));
  margin-bottom: .8rem;
}
.game-body p { color: var(--text-dim); max-width: 64ch; }
.game-body .btn-row { margin-top: 1.1rem; }
.game .btn-primary { background: var(--g-accent, var(--accent)); color: var(--g-ink, var(--accent-ink)); }
.game .btn-primary:hover { background: color-mix(in srgb, var(--g-accent, var(--accent)) 85%, #fff); }

/* Per-game accent overrides usable anywhere */
.t-rtb { --g-accent: #ffc247; --g-accent-2: #e8524a; --g-ink: #2e1a02; }
.t-sdg { --g-accent: #ff6a2b; --g-accent-2: #ffcf4d; --g-ink: #2b0f03; }

/* Key/value facts strip */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 1.1rem;
  background: var(--bg-inset);   /* fills any empty trailing cell */
}
.facts div {
  background: var(--bg-inset);
  padding: .65rem .85rem;
  border-right: 2px solid var(--ink);
}
.facts div:last-child { border-right: 0; }
.facts dt {
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: .15rem;
}
.facts dd { margin: 0; font-weight: 800; font-size: .9rem; }

/* --- Feature list ------------------------------------------------------- */
.features { list-style: none; padding: 0; margin: 1.1rem 0 0; display: grid; gap: .5rem; }
.features li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--text-dim);
  font-size: .92rem;
}
.features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 9px; height: 9px;
  background: var(--g-accent, var(--accent));
}
.features strong { color: var(--text); font-weight: 800; }

/* --- Press hub cards ---------------------------------------------------- */
.presskit-links { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.pk-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: var(--pop);
  overflow: hidden;
  color: inherit;
  font-weight: 400;
  transition: transform .12s ease, box-shadow .12s ease;
}
.pk-card:hover {
  text-decoration: none;
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0 var(--ink);
}
.pk-card-media { aspect-ratio: 16 / 9; background: var(--bg-inset); overflow: hidden; border-bottom: 2px solid var(--ink); }
.pk-card-media img { width: 100%; height: 100%; object-fit: cover; }
.pk-card-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; flex: 1; }
.pk-card-body h3 { margin-bottom: .25rem; }
.pk-card-body p { color: var(--text-dim); font-size: .88rem; flex: 1; }
.pk-card-go {
  display: inline-flex; align-items: center; gap: .4rem;
  margin-top: .9rem;
  font-weight: 800; font-size: .88rem;
  color: var(--g-accent, var(--accent));
}
.pk-card-go svg { width: 15px; height: 15px; transition: transform .15s ease; }
.pk-card:hover .pk-card-go svg { transform: translateX(4px); }

/* --- Galleries ---------------------------------------------------------- */
.gallery { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.gallery.gallery-lg { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.shot {
  display: block;
  border: 2px solid var(--ink);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-inset);
  aspect-ratio: 16 / 9;
  cursor: zoom-in;
  transition: transform .12s ease, box-shadow .12s ease;
}
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot:hover { transform: translate(-2px, -2px); box-shadow: var(--pop); }
.shot-contain { aspect-ratio: 4 / 3; }
.shot-contain img { object-fit: contain; padding: .5rem; }
.shot-tall { aspect-ratio: 3 / 4; }
.shot-square { aspect-ratio: 1 / 1; }
.shot-wide { aspect-ratio: 21 / 9; }

.shot-video { position: relative; cursor: pointer; }
.shot-video::after {
  content: "";
  position: absolute; inset: 0; margin: auto;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--accent) center/15px 17px no-repeat;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 18'%3E%3Cpath d='M0 0l16 9L0 18z'/%3E%3C/svg%3E");
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform .12s ease;
}
.shot-video:hover::after { transform: scale(1.08); }

figure { margin: 0; }
figcaption {
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .04em;
  color: var(--text-faint);
  margin-top: .35rem;
}

/* --- Download / asset callout ------------------------------------------- */
.download {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--bg-inset);
  box-shadow: var(--pop);
}
.download p { margin: 0; flex: 1; min-width: 220px; color: var(--text-dim); font-size: .9rem; }
.download strong { color: var(--text); }

/* --- Steam store block --------------------------------------------------
   Rebuilt rather than using Steam's official iframe widget: that widget
   paints a white page background and hangs its buy button off the bottom
   onto it, with no dark variant. */
.steam-widget { display: flex; flex-direction: column; justify-content: center; }

.steam-card {
  display: flex;
  gap: .9rem;
  align-items: center;
  padding: .9rem;
  border-radius: var(--radius);
  border: 2px solid var(--ink);
  background: #1b2838;
  box-shadow: var(--pop);
  color: #c7d5e0;
  font-weight: 400;
  transition: transform .12s ease, box-shadow .12s ease;
}
.steam-card:hover { text-decoration: none; transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.steam-card img { width: 140px; flex: none; border-radius: 6px; border: 2px solid var(--ink); }
.steam-card-body { min-width: 0; }
.steam-card h3 { font-size: 1rem; color: #fff; margin-bottom: .25rem; }
.steam-card h3 span { color: #8ba5bd; font-weight: 600; }
.steam-card p { font-size: .8rem; line-height: 1.45; color: #a7bccf; margin-bottom: .6rem; }
.steam-buy {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem .8rem;
  border-radius: 5px;
  border: 2px solid var(--ink);
  font-size: .82rem;
  font-weight: 800;
  color: #1d3005;
  background: #8ed629;
}
.steam-card:hover .steam-buy { background: #a4ec3c; }
.steam-buy svg { width: 14px; height: 14px; }

@media (max-width: 460px) {
  .steam-card { flex-direction: column; align-items: flex-start; }
  .steam-card img { width: 100%; }
}

/* --- Definition-style factsheet ----------------------------------------- */
.spec { margin: 0; }
.spec div {
  display: grid;
  grid-template-columns: minmax(110px, 32%) 1fr;
  gap: .8rem;
  padding: .5rem 0;
  border-bottom: 2px solid var(--line-soft);
}
.spec div:last-child { border-bottom: 0; }
.spec dt {
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding-top: .2em;
}
.spec dd { margin: 0; font-size: .9rem; overflow-wrap: anywhere; }
@media (max-width: 430px) {
  .spec div { grid-template-columns: 1fr; gap: .1rem; }
  .spec dt { padding-top: 0; }
}

/* --- Contact / footer --------------------------------------------------- */
.links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.links a {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .45rem .2rem;
  color: var(--text-dim);
  font-size: .9rem;
  font-weight: 600;
  border-bottom: 2px solid var(--line-soft);
}
.links a:hover { color: var(--accent); text-decoration: none; }
.links svg { width: 16px; height: 16px; flex: none; color: var(--accent); }

.site-footer {
  border-top: 2px solid var(--ink);
  background: var(--bg-elev);
  padding-block: 1.75rem 1.5rem;
  margin-top: 1.5rem;
}
.footer-grid { display: grid; gap: 1.5rem; grid-template-columns: 1.4fr 1fr 1fr; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: 1.25rem; } }
.site-footer h4 {
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: .6rem;
}
.site-footer p { color: var(--text-dim); font-size: .88rem; }
.footer-bottom {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 2px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.25rem;
  justify-content: space-between;
  color: var(--text-faint);
  font-size: .8rem;
}

/* --- Lightbox ----------------------------------------------------------- */
.lb {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  place-items: center;
  padding: clamp(1rem, 4vw, 2.5rem);
  background: color-mix(in srgb, var(--ink) 94%, transparent);
}
.lb.open { display: grid; }
.lb-img {
  max-width: 100%;
  max-height: 84vh;
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: var(--pop-lg);
  object-fit: contain;
}
.lb-cap {
  position: absolute;
  bottom: max(1rem, env(safe-area-inset-bottom));
  left: 0; right: 0;
  text-align: center;
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: .74rem;
}
.lb button {
  position: absolute;
  background: var(--bg-card);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  color: #fff;
  width: 42px; height: 42px;
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.lb button:hover { background: var(--accent); color: var(--accent-ink); }
.lb button:active { transform: translate(3px, 3px); box-shadow: none; }
.lb button svg { width: 20px; height: 20px; }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev  { left: 1rem;  top: 50%; }
.lb-next  { right: 1rem; top: 50%; }
@media (max-width: 560px) { .lb-prev { left: .4rem; } .lb-next { right: .4rem; } }

/* --- Scroll reveal ------------------------------------------------------
   Content is visible by default. Only once the inline head script has proved
   JS is running do we hide it for the entrance animation. */
html.js .reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .35s ease, transform .35s ease;
}
html.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* --- Print (press people do print these) -------------------------------- */
@media print {
  body { background: #fff; color: #000; }
  .site-header, .site-footer, .lb, .btn { display: none !important; }
  .card, .game, .facts div { border-color: #ccc; background: #fff; box-shadow: none; }
  a { color: #000; text-decoration: underline; }
}
