/* Joyner Labs — shared site styles.
   Palette from the game's own identity (Steam capsule / NYE direction):
   midnight-navy night sky, warm gold, snow white, soft holly accents. */
:root {
  color-scheme: dark;
  --bg: #0a0f1c;          /* night sky */
  --panel: #121a2e;       /* card */
  --panel-edge: #23304e;
  --ink: #eef2f8;
  --muted: #a8b4c8;
  --gold: #ffd34d;        /* logo gold */
  --gold-deep: #e0a92e;
  --link: #8ec6ff;
  --holly: #e14b4b;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink);
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* Top nav */
nav.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 980px; margin: 0 auto; padding: 18px 22px;
}
nav.top .mark { font-weight: 800; font-size: 19px; color: #fff; letter-spacing: .4px; }
nav.top .mark .dot { color: var(--gold); }
nav.top .links { display: flex; gap: 20px; font-size: 15px; }
nav.top .links a { color: var(--muted); }
nav.top .links a[aria-current="page"] { color: var(--gold); }
nav.top .links a:hover { color: #fff; text-decoration: none; }

main { max-width: 980px; margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 700px; }

h1 { font-size: 34px; line-height: 1.2; margin: 26px 0 10px; color: #fff; }
h2 {
  font-size: 15px; text-transform: uppercase; letter-spacing: 1.4px;
  color: var(--gold); margin: 44px 0 14px;
}
h3 { font-size: 19px; color: #fff; margin: 18px 0 6px; }
p  { margin: 0 0 14px; }
.muted { color: var(--muted); }

/* Buttons */
.btn {
  display: inline-block; font-weight: 800; border-radius: 12px; padding: 12px 22px;
  font-size: 16px; letter-spacing: .3px;
}
.btn.gold { background: var(--gold); color: #131a06; border: 1px solid var(--gold-deep); }
.btn.gold:hover { background: #ffdd75; text-decoration: none; }
.btn.ghost { border: 1px solid var(--panel-edge); color: var(--ink); }
.btn.ghost:hover { border-color: var(--gold); text-decoration: none; }

/* Hero */
.hero { text-align: center; padding: 26px 0 8px; }
.hero .logo { max-width: min(420px, 100%); margin: 0 auto; }
.hero .tagline { font-size: 20px; color: var(--muted); margin: 6px auto 0; max-width: 640px; }

/* Featured game card */
.feature {
  background: var(--panel); border: 1px solid var(--panel-edge); border-radius: 18px;
  overflow: hidden; margin-top: 18px;
}
.feature .art img { width: 100%; }
.feature .body { padding: 24px 26px 26px; }
.feature .cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; align-items: center; }
.badge {
  display: inline-block; font-size: 13px; font-weight: 700; color: #0a0f1c;
  background: var(--gold); border-radius: 20px; padding: 4px 12px;
}

/* Screenshot gallery */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 10px; }
.shots a { border-radius: 10px; overflow: hidden; border: 1px solid var(--panel-edge); }
.shots a:hover { border-color: var(--gold); }
.shots a:nth-child(4), .shots a:nth-child(5) { }
@media (max-width: 720px) { .shots { grid-template-columns: repeat(2, 1fr); } }
/* Only image links get the zoom affordance — in press.html the logo/icon tiles share
   .shots but link to the press-kit zip, and the lightbox skips them. */
.shots a[data-lightbox] { cursor: zoom-in; }

/* Lightbox — the viewer for the screenshot grid. Progressive enhancement: the tiles are
   ordinary links to the full-size .jpg, and without JS they still work the old way. */
.lb { position: fixed; inset: 0; z-index: 100; display: none; }
.lb[open], .lb.is-open { display: block; }
.lb__scrim { position: absolute; inset: 0; background: rgba(5, 8, 16, .92); }
.lb__stage {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  padding: 64px 68px 76px; pointer-events: none;
}
.lb__img {
  max-width: 100%; max-height: 100%; width: auto; border-radius: 10px;
  border: 1px solid var(--panel-edge); box-shadow: 0 24px 70px rgba(0, 0, 0, .6);
  pointer-events: auto; background: var(--panel);
}
.lb__cap {
  position: absolute; left: 0; right: 0; bottom: 26px; text-align: center;
  font-size: 14.5px; color: var(--muted); padding: 0 68px; pointer-events: none;
}
.lb__btn {
  position: absolute; display: flex; align-items: center; justify-content: center;
  background: rgba(18, 26, 46, .9); color: var(--ink); border: 1px solid var(--panel-edge);
  border-radius: 999px; cursor: pointer; font: inherit; line-height: 1; padding: 0;
}
.lb__btn:hover { border-color: var(--gold); color: #fff; }
.lb__btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.lb__close { top: 16px; right: 16px; width: 44px; height: 44px; font-size: 24px; }
.lb__nav { top: 50%; margin-top: -26px; width: 52px; height: 52px; font-size: 26px; }
.lb__prev { left: 12px; }
.lb__next { right: 12px; }
.lb__btn[hidden] { display: none; }
/* The scrim closes on click, so the image and the buttons must not sit inside it. */
@media (max-width: 720px) {
  .lb__stage { padding: 58px 12px 72px; }
  .lb__nav { width: 44px; height: 44px; margin-top: -22px; font-size: 22px; }
  .lb__cap { padding: 0 16px; font-size: 13.5px; }
}
body.lb-open { overflow: hidden; }

/* Trailer */
.trailer-box {
  position: relative; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--panel-edge); background: var(--panel);
  aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center;
}
.trailer-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.trailer-box .placeholder { color: var(--muted); font-size: 17px; }

/* Feature bullets */
.pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 8px; }
.pillar { background: var(--panel); border: 1px solid var(--panel-edge); border-radius: 14px; padding: 18px 20px; }
.pillar h3 { margin-top: 0; }
.pillar p { margin: 0; color: var(--muted); font-size: 15.5px; }
@media (max-width: 720px) { .pillars { grid-template-columns: 1fr; } }

/* Press kit tables */
table.facts { border-collapse: collapse; width: 100%; font-size: 16px; }
table.facts td { padding: 8px 12px 8px 0; vertical-align: top; border-bottom: 1px solid #1c2740; }
table.facts td:first-child { color: var(--muted); white-space: nowrap; width: 34%; }

/* Footer */
footer {
  margin-top: 64px; border-top: 1px solid #1c2740;
}
footer .inner {
  max-width: 980px; margin: 0 auto; padding: 26px 22px 44px;
  font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px 24px;
  justify-content: space-between;
}
footer a { color: #cddcf2; }
@media (max-width: 720px) {
  h1 { font-size: 28px; }
  nav.top { flex-direction: column; gap: 8px; }
}
