/* TrevorGames site styles. One file for every page. No build step. */

/* ---------- Fonts (self-hosted, Latin subset) ---------- */
@font-face {
  font-family: "Unbounded";
  src: url("../fonts/unbounded-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
/* Game title faces: each is only downloaded on the page that uses it. */
@font-face {
  font-family: "Saira";
  src: url("../fonts/saira-800italic-latin.woff2") format("woff2");
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Kanit";
  src: url("../fonts/kanit-700italic-latin.woff2") format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-expanded-800italic-latin.woff2") format("woff2");
  font-weight: 800;
  font-style: italic;
  font-stretch: 125%;
  font-display: swap;
}
@font-face {
  font-family: "Cinzel";
  src: url("../fonts/cinzel-700-latin.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --ink: #0B0C0E;
  --graphite: #1B1D22;
  --graphite-2: #23262C;
  --steel: #A3A6AE;
  --paper: #F3F2EE;
  --paper-dim: #D8D7D2;
  --lime: #C8F250;
  --line: rgba(243, 242, 238, 0.12);
  --line-strong: rgba(243, 242, 238, 0.3);

  --accent: var(--lime);
  --accent-ink: var(--ink);

  --display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1200px;
  --gutter: 16px;
  --radius: 14px;
  --radius-sm: 10px;

  color-scheme: dark;
}
@media (min-width: 720px) { :root { --gutter: 28px; } }
@media (min-width: 1100px) { :root { --gutter: 40px; } }

/* Per-game accents, taken from each game's brand kit. */
.t-engagement { --accent: #58A9D5; --accent-ink: #0B0C0E; --accent-text: #A0DDFE; }
.t-fight { --accent: #E51828; --accent-ink: #FFFFFF; --accent-text: #1C9DC1; }
.t-street-takeover { --accent: #DD5A3B; --accent-ink: #0B0C0E; --accent-text: #46D9EB; }
.t-field-surgeon { --accent: #ECB885; --accent-ink: #0B0C0E; --accent-text: #ECB885; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font: 400 1rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
@media (min-width: 720px) { body { font-size: 1.0625rem; } }
img, video, iframe, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--paper); color: var(--ink); font-weight: 700;
  padding: 12px 16px; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; min-height: 64px;
}
.wordmark {
  font-family: var(--display); font-weight: 800; letter-spacing: -0.02em;
  line-height: 1; white-space: nowrap; text-decoration: none;
}
.wordmark .g { color: var(--lime); }
.site-header .wordmark {
  display: inline-flex; align-items: center; min-height: 44px; font-size: 1.125rem;
}
.monogram {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, var(--graphite-2), var(--ink) 75%);
  border: 1px solid var(--line); font-family: var(--display); font-weight: 900;
  font-size: 0.9375rem; letter-spacing: -0.03em; text-decoration: none;
}
.monogram .g { color: var(--lime); }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px;
  border-radius: 8px; color: var(--steel); font-weight: 600; font-size: 0.9375rem;
  text-decoration: none; white-space: nowrap;
}
.nav a:hover { color: var(--paper); background: var(--graphite); }
.nav a[aria-current="page"] { color: var(--paper); }
@media (max-width: 439px) {
  .nav-long { display: none; }
  .nav a { padding: 0 8px; }
}
@media (max-width: 374px) {
  .site-header .wordmark { font-size: 1rem; }
  .nav a { padding: 0 6px; font-size: 0.875rem; }
}
@media (max-width: 359px) {
  .site-header .wordmark { font-size: 0.875rem; }
  .nav a { padding: 0 5px; font-size: 0.8125rem; }
}

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 10px 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  min-height: 48px; padding: 0.7rem 1.3rem; border-radius: 999px;
  border: 2px solid transparent; font: 700 0.9375rem/1.2 var(--body); letter-spacing: 0.01em;
  text-decoration: none; text-align: center;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, filter 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.1); }
.btn-ghost { border-color: var(--line-strong); color: var(--paper); }
.btn-ghost:hover { border-color: var(--paper); background: rgba(243, 242, 238, 0.06); }
.btn svg { width: 0.85em; height: 0.85em; flex: none; }
@media (max-width: 479px) {
  .btn { padding-inline: 1rem; font-size: 0.9rem; }
  .actions { gap: 10px; }
}

/* ---------- Section scaffolding ---------- */
.section { padding-block: 56px; }
@media (min-width: 960px) { .section { padding-block: 88px; } }
.section-title {
  font-family: var(--display); font-weight: 800; letter-spacing: -0.01em;
  font-size: clamp(1.5rem, 5vw, 2.25rem); line-height: 1.1; margin-bottom: 24px;
}
.section-lede { color: var(--steel); max-width: 60ch; margin: -12px 0 28px; }
.eyebrow {
  margin: 0 0 10px; color: var(--steel); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
}

/* ---------- Home hero ---------- */
.home-hero { padding-block: 24px 48px; }
.home-hero .wrap { display: grid; gap: 22px; }
.wordmark-xl { font-size: clamp(2rem, 10.2vw, 4.25rem); margin: 0; }
.tagline {
  font-family: var(--display); font-weight: 700; letter-spacing: -0.01em; line-height: 1.15;
  font-size: clamp(1.2rem, 5.6vw, 2rem); margin: 10px 0 0;
}
.tagline span { display: inline-block; }
.intro { font-size: 1.0625rem; max-width: 36ch; margin: 14px 0 0; color: var(--paper-dim); }
.home-hero .actions { margin-top: 20px; }
.hero-video figcaption { margin-top: 10px; color: var(--steel); font-size: 0.875rem; }
.hero-video { margin: 0; }
@media (min-width: 960px) {
  .home-hero { padding-block: 56px 80px; }
  .home-hero .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: center; gap: 56px; }
  .wordmark-xl { font-size: clamp(2.25rem, 3.6vw, 3.4rem); }
  .intro { font-size: 1.1875rem; }
}

/* ---------- Video players ---------- */
.player {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: var(--graphite); aspect-ratio: 16 / 9;
}
.player video { width: 100%; height: 100%; object-fit: cover; background: var(--ink); }
.player video:focus-visible { outline-offset: -3px; border-radius: inherit; }
.player.vertical { aspect-ratio: 9 / 16; border-radius: var(--radius-sm); }
.play-btn {
  position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; padding: 0;
  display: grid; place-items: center; border-radius: 50%; cursor: pointer;
  background: rgba(11, 12, 14, 0.7); color: var(--paper);
  border: 2px solid rgba(243, 242, 238, 0.9);
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.play-btn:hover { background: rgba(11, 12, 14, 0.88); transform: scale(1.06); }
.play-btn svg { width: 28px; height: 28px; margin-left: 4px; }
.player.vertical .play-btn { width: 56px; height: 56px; }
.player.vertical .play-btn svg { width: 22px; height: 22px; }
.player.is-started .play-btn { display: none; }
@media (max-width: 479px) {
  .play-btn { width: 56px; height: 56px; }
  .play-btn svg { width: 22px; height: 22px; margin-left: 3px; }
}

/* ---------- Game cards (home) ---------- */
.cards { display: grid; gap: 20px; }
@media (min-width: 800px) { .cards { grid-template-columns: 1fr 1fr; gap: 28px; } }
.card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--graphite); border-radius: var(--radius);
}
.card-art { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink); }
.card-art img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card:hover .card-art img { transform: scale(1.03); }
.card-body {
  display: flex; flex-direction: column; flex: 1;
  padding: 20px 20px 22px; border-top: 3px solid var(--accent);
}
@media (min-width: 960px) { .card-body { padding: 26px 28px 28px; } }
.card-title {
  font-family: var(--display); font-weight: 800; letter-spacing: -0.01em;
  font-size: clamp(1.4rem, 4.6vw, 1.9rem); margin: -6px 0 4px;
}
.card-title a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.card-title a:hover { text-decoration: underline; }
.card-pitch { color: var(--paper-dim); margin-bottom: 20px; }
.card .actions { margin-top: auto; }

/* ---------- More / Follow / Footer ---------- */
.more { border-block: 1px solid var(--line); padding-block: 44px; text-align: center; }
.more p {
  margin: 0; font-family: var(--display); font-weight: 700; letter-spacing: -0.01em;
  font-size: clamp(1.15rem, 4.4vw, 1.75rem);
}
.follow-list {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 12px;
}
@media (min-width: 600px) and (max-width: 999px) {
  .follow-list { grid-template-columns: 1fr 1fr; }
  .follow-list li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
/* Five links: three across, then two wider ones, so no card sits alone in a row. */
@media (min-width: 1000px) {
  .follow-list { grid-template-columns: repeat(6, 1fr); }
  .follow-list li { grid-column: span 2; }
  .follow-list li:nth-child(4):nth-last-child(2), .follow-list li:nth-child(5):last-child { grid-column: span 3; }
}
.follow-list a {
  display: flex; align-items: center; gap: 14px; min-height: 68px; padding: 14px 18px;
  background: var(--graphite); border: 1px solid transparent; border-radius: var(--radius-sm);
  text-decoration: none;
}
.follow-list a:hover { border-color: var(--line-strong); background: var(--graphite-2); }
.follow-list svg { width: 26px; height: 26px; flex: none; }
.follow-list .name { display: block; font-weight: 700; line-height: 1.3; }
.follow-list .handle { display: block; color: var(--steel); font-size: 0.875rem; line-height: 1.35; overflow-wrap: anywhere; }

.site-footer { border-top: 1px solid var(--line); padding-block: 20px 28px; color: var(--steel); font-size: 0.875rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 24px; }
.site-footer p { margin: 0; }
.site-footer nav { display: flex; flex-wrap: wrap; margin-inline: -10px; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--paper-dim); }

/* ---------- Game page ---------- */
.g-hero { position: relative; }
.g-hero-art { position: relative; display: block; background: var(--graphite); }
.g-hero-art img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.g-hero-art::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(11, 12, 14, 0) 45%, rgba(11, 12, 14, 0.72) 80%, var(--ink) 100%);
}
.g-hero-body { position: relative; margin-top: -56px; padding-bottom: 8px; }
.g-title {
  font-size: clamp(2.4rem, 11.5vw, 6.25rem); line-height: 0.95; margin: 0 0 16px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
}
.t-engagement .g-title { font-family: "Saira", var(--display); font-style: italic; font-weight: 800; text-transform: uppercase; letter-spacing: 0.01em; }
.t-fight .g-title { font-family: "Kanit", var(--display); font-style: italic; font-weight: 700; letter-spacing: 0.01em; font-size: clamp(3rem, 16vw, 8rem); line-height: 0.9; }
.t-street-takeover .g-title { font-family: "Archivo", var(--display); font-style: italic; font-weight: 800; font-stretch: 125%; text-transform: uppercase; font-size: clamp(2rem, 9.4vw, 5.25rem); }
.t-field-surgeon .g-title { font-family: "Cinzel", Georgia, serif; font-weight: 700; letter-spacing: 0.03em; font-size: clamp(2.2rem, 10.4vw, 5.5rem); line-height: 1.02; }
.g-pitch { font-size: 1.0625rem; max-width: 60ch; color: var(--paper-dim); margin-bottom: 22px; }
.g-hero .eyebrow { color: var(--accent-text, var(--steel)); }
@media (min-width: 720px) {
  .g-hero-art img { aspect-ratio: auto; height: clamp(340px, 40vw, 600px); object-position: var(--fx, 50%) 50%; }
  .g-hero-art::after {
    background:
      linear-gradient(90deg, rgba(11, 12, 14, 0.8) 0%, rgba(11, 12, 14, 0.35) 42%, rgba(11, 12, 14, 0) 65%),
      linear-gradient(180deg, rgba(11, 12, 14, 0) 35%, rgba(11, 12, 14, 0.7) 75%, var(--ink) 100%);
  }
  .g-hero-body { margin-top: -200px; }
  .g-pitch { font-size: 1.1875rem; }
}
.g-main { display: grid; gap: 40px; padding-block: 40px 16px; }
@media (min-width: 1000px) {
  .g-main { grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; padding-top: 56px; }
  .g-side { position: sticky; top: 24px; align-self: start; }
}
.prose { max-width: 70ch; }
.prose > h2 { margin-bottom: 18px; }
.prose h3 {
  font-family: var(--body); font-weight: 800; font-size: 1.1875rem; line-height: 1.3;
  margin: 1.9em 0 0.55em; color: var(--paper);
}
.prose p, .prose li { color: var(--paper-dim); }
.prose ul { margin: 0 0 1em; padding-left: 0; list-style: none; }
.prose li { position: relative; padding-left: 22px; margin-bottom: 0.65em; }
.prose li::before {
  content: ""; position: absolute; left: 2px; top: 0.62em; width: 8px; height: 8px;
  background: var(--accent); border-radius: 2px;
}
.prose strong { color: var(--paper); font-weight: 700; }

.side-block { background: var(--graphite); border-radius: var(--radius); padding: 22px 22px 18px; }
.side-block + .side-block { margin-top: 16px; }
.side-title {
  font-family: var(--body); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--steel); margin: 0 0 12px;
}
.side-title:not(:first-child) { margin-top: 22px; }
.facts { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 0.9375rem; }
.facts dt { color: var(--steel); }
.facts dd { margin: 0; }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  padding: 5px 12px; border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: 0.8125rem; line-height: 1.4; color: var(--paper-dim);
}

/* Gallery */
.gallery {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.gallery > li.m-wide { grid-column: span 2; }
@media (min-width: 720px) { .gallery { gap: 14px; } }
@media (min-width: 1024px) {
  .gallery { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .gallery > li, .gallery > li.m-wide { grid-column: span var(--span, 4); }
}
.shot {
  display: block; overflow: hidden; border-radius: var(--radius-sm);
  background: var(--graphite); aspect-ratio: var(--shot-ar, 16 / 9);
}
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.shot:hover img { transform: scale(1.03); }

/* Clips */
.clips { display: grid; gap: 18px; max-width: 920px; }
.clip-wide { margin: 0; }
.clip-row {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.clip-row figure { margin: 0; }
.clip-row figcaption, .clip-wide figcaption { margin-top: 8px; font-size: 0.875rem; color: var(--steel); line-height: 1.4; }
@media (max-width: 599px) {
  .clip-row {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px;
    margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); padding-bottom: 6px;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: thin;
  }
  .clip-row > li { flex: 0 0 46%; scroll-snap-align: start; }
}

.page-links { display: flex; flex-wrap: wrap; gap: 12px; padding-block: 8px 56px; }

/* ---------- Press kit ---------- */
.press-head { padding-block: 40px 8px; }
.press-head h1 { font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 8vw, 3.5rem); letter-spacing: -0.02em; margin-bottom: 14px; }
.press-head p { max-width: 62ch; color: var(--paper-dim); }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.jump a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--line-strong); border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 0.9375rem;
}
.jump a:hover { border-color: var(--paper); }
.factsheet {
  margin: 0; display: grid; grid-template-columns: 1fr; gap: 0;
  background: var(--graphite); border-radius: var(--radius); overflow: hidden;
}
.factsheet > div { display: grid; gap: 2px 24px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.factsheet > div:last-child { border-bottom: 0; }
.factsheet dt { color: var(--steel); font-size: 0.875rem; font-weight: 600; }
.factsheet dd { margin: 0; }
.factsheet dd > a { display: inline-flex; align-items: center; min-height: 44px; margin-block: -12px; overflow-wrap: anywhere; }
@media (min-width: 720px) {
  .factsheet > div { grid-template-columns: 200px 1fr; padding: 16px 24px; }
}
.inline-list { list-style: none; margin: -6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 18px; }
.inline-list a { display: inline-flex; align-items: center; min-height: 44px; }
.press-game { border-top: 1px solid var(--line); }
.press-game-head { display: grid; gap: 20px; align-items: center; margin-bottom: 28px; }
.press-game-head h2 { font-family: var(--display); font-weight: 800; font-size: clamp(1.6rem, 6vw, 2.5rem); letter-spacing: -0.01em; }
.press-logo { margin: 0; max-width: 360px; }
.press-logo img { border-radius: var(--radius-sm); }
.press-logo figcaption { margin-top: 6px; font-size: 0.8125rem; color: var(--steel); }
@media (min-width: 800px) {
  .press-game-head { grid-template-columns: 1fr auto; }
}
.press-cols { display: grid; gap: 32px; }
@media (min-width: 1000px) { .press-cols { grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; } }
.press-cols h3 { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--steel); margin: 0 0 10px; }
.press-cols h3:not(:first-child) { margin-top: 28px; }
.press-cols .prose p { color: var(--paper-dim); }
.downloads { list-style: none; margin: 0; padding: 0; background: var(--graphite); border-radius: var(--radius); }
.downloads li { border-bottom: 1px solid var(--line); }
.downloads li:last-child { border-bottom: 0; }
.downloads a {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  min-height: 52px; padding: 10px 18px; text-decoration: none;
}
.downloads a:hover { background: var(--graphite-2); }
.downloads li:first-child a { border-radius: var(--radius) var(--radius) 0 0; }
.downloads li:last-child a { border-radius: 0 0 var(--radius) var(--radius); }
.downloads li:only-child a { border-radius: var(--radius); }
.downloads a:focus-visible { outline-offset: -3px; }
.downloads .label { font-weight: 600; }
.downloads .meta { color: var(--steel); font-size: 0.8125rem; white-space: nowrap; }
.shot-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 600px) { .shot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .shot-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.shot-grid a { display: block; border-radius: 8px; overflow: hidden; background: var(--ink); aspect-ratio: var(--shot-ar, 16 / 9); }
.shot-grid img { width: 100%; height: 100%; object-fit: cover; }
.press-note { color: var(--steel); font-size: 0.875rem; margin-top: 12px; }

/* ---------- 404 ---------- */
.notfound { padding-block: 64px 80px; }
.notfound h1 { font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 8vw, 3.5rem); letter-spacing: -0.02em; margin-bottom: 14px; }
.notfound .code { font-family: var(--display); font-weight: 900; color: var(--lime); font-size: 1rem; letter-spacing: 0.08em; margin-bottom: 10px; }
.notfound p { color: var(--paper-dim); max-width: 50ch; }
.notfound .games-list { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0;
  border: 0; background: var(--ink); color: var(--paper);
}
.lightbox::backdrop { background: rgba(11, 12, 14, 0.85); }
.lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 8px 8px 0 16px; }
.lb-count { color: var(--steel); font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.lb-stage { position: relative; display: grid; place-items: center; min-height: 0; overflow: hidden; padding: 8px 72px; touch-action: pan-y; }
.lb-stage img {
  max-width: 100%; max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px);
  width: auto; height: auto; object-fit: contain; border-radius: 6px; user-select: none; -webkit-user-drag: none;
}
.lb-caption { padding: 4px 16px 18px; text-align: center; color: var(--paper-dim); font-size: 0.9375rem; max-width: 80ch; margin-inline: auto; }
.lb-btn {
  display: inline-grid; place-items: center; width: 48px; height: 48px; padding: 0; border-radius: 50%;
  border: 1px solid var(--line-strong); background: rgba(27, 29, 34, 0.85); color: var(--paper); cursor: pointer;
}
.lb-btn:hover { border-color: var(--paper); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }
@media (max-width: 719px) {
  .lb-stage { padding: 8px 12px; overflow: visible; }
  .lb-stage img { max-height: calc(100dvh - 260px); }
  .lb-prev, .lb-next { top: auto; bottom: -56px; transform: none; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }
  .lb-caption { padding-top: 68px; }
}
html.lb-open { overflow: hidden; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .card:hover .card-art img, .shot:hover img { transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
