/* Fun Junkie Games — single stylesheet. Palette from the Steam capsule art:
   black background, blood red, logo green, full-strength white text. */

:root {
  --bg: #0a0a0a;
  --bg-panel: #161616;
  --border: #2e2e2e;
  --text: #ffffff;
  --text-soft: #e6e6e6;
  --red: #c8141e;
  --red-dark: #8f0f16;
  --green: #2eff3a;
  --green-dark: #17c522;
  --max: 1100px;
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 19px;
  line-height: 1.55;
}

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

a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
a:hover, a:focus { color: #ffffff; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; font-weight: 800; }
h1 { font-size: 2.6rem; }
h2 { font-size: 2rem; margin-top: 2.2em; padding-bottom: 0.3em; border-bottom: 3px solid var(--red); }
h3 { font-size: 1.35rem; margin-top: 1.6em; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header / nav */
.site-header {
  border-bottom: 3px solid var(--red);
  background: #000;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); font-family: "Bangers", Impact, "Arial Narrow Bold", sans-serif; font-weight: 400; font-size: 2rem; letter-spacing: 0.06em; text-shadow: 1.5px 1.5px 0 var(--red); }
.brand img { width: 44px; height: 44px; border-radius: 6px; image-rendering: pixelated; }
.nav a { color: var(--text); font-weight: 700; margin-left: 22px; text-decoration: none; font-size: 1.05rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--green); text-decoration: underline; }

/* Hero */
.hero { text-align: center; padding: 48px 0 24px; }
.hero .logo { width: 640px; margin: 0 auto 24px; }
.hero .tagline { font-size: 1.5rem; font-weight: 600; max-width: 820px; margin: 0 auto 28px; }
.hero .shot { margin: 36px auto 0; }

/* Buttons */
.btn {
  display: inline-block; padding: 18px 36px; border-radius: 8px;
  font-weight: 800; font-size: 1.35rem; text-decoration: none;
  background: var(--green); color: #000; border: 3px solid var(--green);
}
.btn:hover, .btn:focus { background: #fff; border-color: #fff; color: #000; }
.btn-red { background: var(--red); border-color: var(--red); color: #fff; }
.btn-red:hover, .btn-red:focus { background: #fff; border-color: #fff; color: #000; }
.cta { display: flex; justify-content: center; align-items: center; gap: 18px; flex-wrap: wrap; }

/* Steam widget */
.trailer { padding: 8px 0 0; }
.trailer-frame { position: relative; width: 100%; max-width: 960px; margin: 0 auto; aspect-ratio: 16 / 9; }
.trailer-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.widget { display: flex; justify-content: center; padding: 24px 0 8px; }
.widget iframe { width: 646px; height: 190px; border: 0; }

/* Studio strip */
.studio {
  margin: 48px 0 0; padding: 36px 0; background: var(--bg-panel);
  border-top: 3px solid var(--red); border-bottom: 3px solid var(--red);
}
.studio .wrap { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.studio img { width: 96px; height: 96px; border-radius: 8px; image-rendering: pixelated; flex: 0 0 auto; }
.studio h2 { margin-top: 0; border: 0; padding: 0; font-size: 1.6rem; }
.studio p { margin: 0 0 0.4em; }

/* Footer */
.site-footer { padding: 28px 0 40px; color: var(--text-soft); font-size: 1rem; }
.site-footer a { color: var(--text); }

/* Press kit */
.press-intro { padding-top: 40px; }
.press-intro .btn { margin: 8px 0 16px; }
.note { color: var(--text-soft); font-size: 1rem; }

table { border-collapse: collapse; width: 100%; margin: 12px 0 24px; }
th, td { text-align: left; padding: 12px 14px; border: 2px solid var(--border); vertical-align: top; overflow-wrap: anywhere; }
th { background: var(--bg-panel); width: 200px; font-weight: 800; }
.table-scroll { overflow-x: auto; }

blockquote { margin: 0 0 1.2em; padding: 16px 22px; background: var(--bg-panel); border-left: 5px solid var(--green); border-radius: 4px; }
blockquote p:last-child { margin-bottom: 0; }

ul.features { padding-left: 1.3em; }
ul.features li { margin-bottom: 0.5em; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 28px; margin-top: 20px; }
figure { margin: 0; }
figure img, figure video { border-radius: 6px; width: 100%; background: #000; display: block; }
figure.logo-fig img { background: #262626; padding: 20px; }
figcaption { margin-top: 10px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; font-size: 1rem; }
figcaption .dl { font-weight: 700; white-space: nowrap; }

@media (max-width: 640px) {
  body { font-size: 17px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .hero { padding-top: 32px; }
  .hero .tagline { font-size: 1.25rem; }
  .btn { padding: 16px 28px; font-size: 1.2rem; }
  .widget iframe { height: 190px; }
  th { width: 130px; }
}

/* --- Screenshots: borderless thumbnails, click to expand --- */
.grid-shots figcaption { margin-top: 8px; justify-content: flex-start; }
button.shot {
  display: block; width: 100%; padding: 0; border: 0; border-radius: 6px;
  background: none; cursor: zoom-in; overflow: hidden; line-height: 0;
}
button.shot img { transition: transform 0.15s ease; }
button.shot:hover img, button.shot:focus-visible img { transform: scale(1.02); }
button.shot:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }

.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 24px; background: rgba(0, 0, 0, 0.92); cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  border-radius: 4px; cursor: default;
}
.lightbox-close {
  position: absolute; top: 14px; right: 20px;
  width: 48px; height: 48px; padding: 0;
  font-size: 2.4rem; line-height: 1;
  color: #fff; background: none; border: 0; cursor: pointer;
}
.lightbox-close:hover, .lightbox-close:focus-visible { color: var(--green); }
.lightbox-close:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  button.shot img { transition: none; }
  button.shot:hover img, button.shot:focus-visible img { transform: none; }
}
