/* jaxified.online
   One stylesheet for the studio home and the three game pages.
   Each page sets a theme class on <body>. Each game page takes its fonts,
   colors and UI shapes from the game itself:
   - Jaxified Paintball: the broadcast menus (slanted charcoal plates, orange
     stripe), the blue/red scoreboard and the game's typeface, Barlow Condensed.
   - Trifront: the build's own menu theme (scripts/ui/ui_theme.gd), its ochre
     accent, team colors, and the same system font list the game asks for.
   - Odd Jobs: the dusk loading screen, the clipboard menu and embroidered
     patches, and DejaVu Serif Bold, the face on the game's logo. */

/* ---------- Fonts (self-hosted; licenses in /assets/fonts) ---------- */
@font-face { font-family: "Sofia Sans"; src: url("/assets/fonts/sofia-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Sofia Sans"; src: url("/assets/fonts/sofia-sans-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Sofia Sans"; src: url("/assets/fonts/sofia-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Sofia Sans"; src: url("/assets/fonts/sofia-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Sofia Sans Extra Condensed"; src: url("/assets/fonts/sofia-sans-extra-condensed-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Sofia Sans Extra Condensed"; src: url("/assets/fonts/sofia-sans-extra-condensed-latin-900-normal.woff2") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }
/* Jaxified Paintball's typeface (Art/Fonts in the game project) */
@font-face { font-family: "Barlow Condensed"; src: url("/assets/fonts/barlow-condensed-medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/assets/fonts/barlow-condensed-semibold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/assets/fonts/barlow-condensed-bolditalic.woff2") format("woff2"); font-weight: 700; font-style: italic; font-display: swap; }
/* Odd Jobs' logo face */
@font-face { font-family: "DejaVu Serif"; src: url("/assets/fonts/dejavu-serif-bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  /* Studio */
  --ink: #171A1F;
  --paper: #E6E9E4;
  --paper-deep: #D5DAD3;

  /* Jaxified Paintball: broadcast menus */
  --pb-black: #050506;
  --pb-coal: #1A1B1E;
  --pb-slab: #25262A;
  --pb-plate: #4B4D51;
  --pb-plate-2: #5E6062;
  --pb-white: #F4F4F2;
  --pb-dim: #A9ABB0;
  --pb-orange: #FDA13F;
  --pb-hot: #FFBD58;
  --pb-on: #DD7B4F;
  --pb-yellow: #FFE85A;
  --pb-blue: #3056E2;
  --pb-red: #D73632;

  /* Trifront: the build's menu theme */
  --tf-bg: #121412;
  --tf-panel: #1C1F1C;
  --tf-panel-hi: #2B2E29;
  --tf-line: #52544A;
  --tf-text: #EBE6D6;
  --tf-title: #F2EDDE;
  --tf-dim: #9E9E91;
  --tf-ochre: #E3A63B;
  --tf-cobalt: #5E93DA;
  --tf-rust: #D35A40;
  --tf-good: #73C76B;

  /* Odd Jobs: dusk over the county */
  --oj-night: #141418;
  --oj-dusk: #241F2B;
  --oj-plum: #373244;
  --oj-cream: #E9DFC9;
  --oj-dim: #A99F8B;
  --oj-amber: #F0A24B;
  --oj-rust: #A0634F;
  --oj-leather: #221911;
  --oj-patch: #7E5720;

  --font-body: "Sofia Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-cond: "Sofia Sans Extra Condensed", "Arial Narrow", "Sofia Sans", sans-serif;
  --font-pb: "Barlow Condensed", "Arial Narrow", sans-serif;
  /* Trifront ships no fonts: it asks the system for these, in this order (ui_theme.gd). */
  --font-tf-head: "Bahnschrift", "Barlow Condensed", "Oswald", "Roboto Condensed", "DIN Condensed", "Arial Narrow", sans-serif;
  --font-tf: "Bahnschrift", "Segoe UI", "Inter", "Roboto", "Helvetica Neue", "DejaVu Sans", "Liberation Sans", Arial, sans-serif;
  --font-oj: "DejaVu Serif", Georgia, "Times New Roman", serif;
  --font-oj-body: "Roboto", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  /* Type scale: perfect fourth from an 18px base */
  --s-1: 0.844rem;
  --s0: 1.125rem;
  --s1: 1.5rem;
  --s2: 2rem;
  --s3: 2.667rem;
  --s4: 3.556rem;

  --wrap: 74rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --measure: 36rem;

  /* Theme defaults (studio) */
  --bg: var(--paper);
  --fg: var(--ink);
  --muted: #4F5650;
  --rule: rgba(23, 26, 31, 0.16);
  --accent: var(--ink);
  --focus: #1F6FEB;
}

.theme-paintball { --bg: var(--pb-coal); --fg: var(--pb-white); --muted: var(--pb-dim); --rule: rgba(255, 255, 255, 0.12); --accent: var(--pb-orange); --focus: var(--pb-hot); }
.theme-trifront { --bg: var(--tf-bg); --fg: var(--tf-text); --muted: var(--tf-dim); --rule: rgba(82, 84, 74, 0.7); --accent: var(--tf-ochre); --focus: var(--tf-ochre); }
.theme-oddjobs { --bg: var(--oj-night); --fg: var(--oj-cream); --muted: var(--oj-dim); --rule: rgba(233, 223, 201, 0.14); --accent: var(--oj-amber); --focus: var(--oj-amber); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--s0);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }
h1, h2, h3, h4, h5, h6, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--accent); color: var(--bg); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.measure { max-width: var(--measure); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--fg); color: var(--bg); padding: 0.6rem 1rem;
  font-weight: 700; text-decoration: none; border-radius: 4px;
}
.skip-link:focus { top: 1rem; }

/* ---------- Studio header and footer ---------- */
.site-header { position: relative; z-index: 20; border-bottom: 1px solid var(--rule); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.25rem; }
.wordmark {
  font-family: var(--font-cond); font-weight: 900; font-size: 1.9rem; line-height: 1;
  letter-spacing: 0.005em; text-decoration: none; white-space: nowrap;
}
.wordmark span { font-weight: 800; opacity: 0.62; }
.site-nav ul { display: flex; gap: clamp(0.9rem, 2.5vw, 2rem); }
.site-nav a { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 600; text-decoration: none; padding: 0.4rem 0; border-bottom: 2px solid transparent; }
.wordmark { display: inline-flex; align-items: center; gap: 0.3em; min-height: 2.75rem; }
.site-footer a { display: inline-block; padding-block: 0.8rem; margin-block: -0.8rem; }
.site-nav a:hover { border-bottom-color: currentColor; }
.site-nav a[aria-current="page"] { border-bottom-color: var(--accent); }

.site-footer { border-top: 1px solid var(--rule); padding-block: 2.5rem 3rem; color: var(--muted); font-size: var(--s-1); }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; }
.site-footer a { color: var(--fg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: 0.7rem 1.35rem;
  font: 700 1rem/1.1 var(--font-body); text-decoration: none;
  border: 2px solid currentColor; border-radius: 0.35rem;
  cursor: pointer; background: transparent; color: inherit;
}
.btn--solid { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.btn--solid:hover { filter: brightness(1.08); }
.btn--ghost:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.btn--soon { border-style: dashed; cursor: default; opacity: 0.85; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.status { color: var(--muted); font-size: var(--s-1); }


/* ==========================================================
   Studio home
   ========================================================== */
.home-intro { padding-block: clamp(3.5rem, 9vw, 7rem) clamp(2.5rem, 6vw, 4.5rem); }
.home-intro h1 {
  font-family: var(--font-cond); font-weight: 900;
  font-size: clamp(3.4rem, 10vw, 8.25rem); line-height: 0.86; letter-spacing: -0.01em;
  max-width: 12ch;
}
.home-intro p { margin-top: 1.5rem; font-size: var(--s1); line-height: 1.4; max-width: 30ch; color: var(--muted); }

.band { position: relative; overflow: hidden; isolation: isolate; }
.band__inner {
  display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(1.5rem, 4vw, 4rem); align-items: center;
  min-height: clamp(30rem, 62vh, 40rem); padding-block: clamp(3rem, 7vw, 5.5rem);
}
.band__copy p { max-width: 34ch; margin-top: 1.1rem; }
.band__copy .actions { margin-top: 1.75rem; }
.band__copy .status { margin-top: 1.25rem; }
.band__title { line-height: 0.9; }
.band__title a { text-decoration: none; }
.band__title a:hover { text-decoration: underline; text-decoration-thickness: 3px; }
.band__shot { display: block; position: relative; }
.band__shot img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }

.band--paintball { background: var(--pb-black) url("/assets/img/paintball/bg-loading-960.webp") right center / cover no-repeat; color: var(--pb-white); --accent: var(--pb-orange); --focus: var(--pb-hot); --muted: var(--pb-dim); --bg: var(--pb-black); }
.band--paintball .band__title { font-family: var(--font-pb); font-weight: 700; font-style: italic; text-transform: uppercase; font-size: clamp(3.2rem, 8vw, 6.2rem); }
.band--paintball .band__tag { font-family: var(--font-pb); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; font-size: var(--s1); color: var(--pb-orange); margin-top: 0.6rem; line-height: 1; }
.band--paintball .band__copy p:not(.band__tag) { font-family: var(--font-pb); font-weight: 500; font-size: 1.25rem; }
.band--paintball .band__shot { clip-path: polygon(0 0, 100% 0, calc(100% - 2.2rem) 100%, 0 100%); }
.band--paintball .btn--solid { color: #1A1B1E; }

.band--trifront { background: var(--tf-bg); color: var(--tf-text); --accent: var(--tf-ochre); --focus: var(--tf-ochre); --muted: var(--tf-dim); --bg: var(--tf-bg); }
.band--trifront .band__title { font-family: var(--font-tf-head); font-weight: 600; font-size: clamp(3rem, 7.5vw, 6rem); text-transform: uppercase; color: var(--tf-title); }
.band--trifront .band__copy p { font-family: var(--font-tf); }
.band--trifront .band__shot { border: 1px solid var(--tf-line); border-radius: 3px; overflow: hidden; }
.band--trifront .btn { border-radius: 3px; border-width: 1px; }
.band--trifront .btn--solid { background: var(--tf-panel); color: var(--tf-text); border: 2px solid var(--tf-ochre); }

.band--oddjobs { background: linear-gradient(180deg, var(--oj-plum), var(--oj-night) 80%); color: var(--oj-cream); --accent: var(--oj-amber); --focus: var(--oj-amber); --muted: var(--oj-dim); --bg: var(--oj-night); }
.band--oddjobs .band__title { font-family: var(--font-oj); font-weight: 700; font-size: clamp(2.8rem, 6.5vw, 5.2rem); letter-spacing: 0.02em; text-transform: uppercase; line-height: 0.95; }
.band--oddjobs .band__copy p { font-family: var(--font-oj-body); }
.band--oddjobs .band__shot { box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.5); }
.band--oddjobs .btn--solid { color: var(--oj-night); }

.home-about { padding-block: clamp(3rem, 8vw, 5.5rem); }
.home-about p { font-size: var(--s1); line-height: 1.45; max-width: 34ch; }
.home-about p + p { margin-top: 1rem; font-size: var(--s0); color: var(--muted); max-width: 46ch; }

/* ==========================================================
   Screenshot galleries (shared) and the lightbox
   ========================================================== */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gal-gap, 0.75rem); }
.gallery__item { margin: 0; min-width: 0; }
.gallery__item--wide { grid-column: span 2; grid-row: span 2; }
.gallery__link { display: block; position: relative; overflow: hidden; background: rgba(0, 0, 0, 0.35); }
.gallery__link img { width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 300ms ease, filter 300ms ease; }
.gallery__item--wide { display: flex; flex-direction: column; }
.gallery__item--wide .gallery__link { flex: 1; }
.gallery__item--wide .gallery__link img { aspect-ratio: auto; position: absolute; inset: 0; }
.gallery__item--wide .gallery__link { min-height: 12rem; }
.gallery__link:hover img { transform: scale(1.035); }
.gallery__cap { margin-top: 0.45rem; font-size: var(--s-1); line-height: 1.35; color: var(--muted); }
.gallery__note { margin-top: 1rem; font-size: var(--s-1); color: var(--muted); max-width: 60ch; }

.has-lightbox { overflow: hidden; }
.lightbox {
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: rgba(5, 5, 6, 0.97); color: #F4F4F2;
}
.lightbox::backdrop { background: rgba(0, 0, 0, 0.85); }
.lightbox__figure {
  width: 100%; height: 100%; margin: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 0.75rem; padding: 3.5rem 4.5rem 1.25rem;
}
.lightbox__img { max-width: 100%; max-height: calc(100% - 3.5rem); width: auto; height: auto; object-fit: contain; box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.6); }
.lightbox__cap { display: flex; gap: 1rem; align-items: baseline; max-width: 60rem; font: 500 1rem/1.4 var(--font-body); color: #C9CBCF; text-align: left; }
.lightbox__count { flex: none; font-variant-numeric: tabular-nums; color: var(--accent); font-weight: 700; }
.lightbox__btn {
  position: absolute; display: grid; place-items: center; width: 3rem; height: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 50%; background: rgba(20, 20, 22, 0.75);
  color: #fff; font: 400 2rem/1 var(--font-body); cursor: pointer;
}
.lightbox__btn:hover, .lightbox__btn:focus-visible { background: var(--accent); color: #111; border-color: var(--accent); }
.lightbox__btn:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }
.lightbox__close { top: 0.75rem; right: 0.75rem; }
.lightbox__prev { left: 0.75rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 0.75rem; top: 50%; transform: translateY(-50%); }
.lightbox__btn[hidden] { display: none; }

/* ==========================================================
   Jaxified Paintball: the game's broadcast menus
   ========================================================== */
.theme-paintball { font-family: var(--font-pb); font-weight: 500; font-size: 1.25rem; line-height: 1.45; }
.theme-paintball .site-header { background: linear-gradient(180deg, #46484C, #36383B); border-bottom: 3px solid var(--pb-orange); }
.theme-paintball .wordmark { font-family: var(--font-pb); font-weight: 700; font-style: italic; text-transform: uppercase; font-size: 1.7rem; }
.theme-paintball .site-nav a { font-family: var(--font-pb); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; font-size: 1.1rem; }
.theme-paintball .site-footer { font-family: var(--font-pb); font-size: 1rem; background: var(--pb-black); }

/* Menu buttons: slanted plate, orange stripe at the left; lit orange on hover. */
.pb-btn {
  --cut: 0.9rem;
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.1rem; padding: 0.55rem 2.2rem 0.55rem 2.1rem;
  font: 600 1.15rem/1 var(--font-pb); text-transform: uppercase; letter-spacing: 0.08em; text-decoration: none;
  color: var(--pb-white); background: linear-gradient(180deg, #606266, #4A4C50);
  clip-path: polygon(0 0, 100% 0, calc(100% - var(--cut)) 100%, 0 100%);
  border: 0; cursor: pointer; transition: background-color 120ms, color 120ms;
}
.pb-btn::before {
  content: ""; position: absolute; left: 0.8rem; top: 0.45rem; bottom: 0.45rem; width: 4px;
  background: var(--pb-orange); transform: skewX(-12deg);
}
.pb-btn:hover, .pb-btn:focus-visible { background: var(--pb-hot); color: #1A1B1E; }
.pb-btn:hover::before, .pb-btn:focus-visible::before { background: #3A3B3F; }
.pb-btn--on { background: var(--pb-on); }
.pb-btn--on::before { background: #fff; }
/* Not a link yet, so it does not look like the live buttons: flat, no stripe. */
.pb-btn--soon, .pb-btn--soon:hover { cursor: default; background: #2B2D31; color: #CDCFD3; padding-left: 1.3rem; }
.pb-btn--soon::before { display: none; }
.pb-btn:focus-visible { outline: 3px solid #17181A; outline-offset: -6px; }

/* Hero: the game's loading screen */
.pb-hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--pb-black) url("/assets/img/paintball/bg-loading-1920.webp") right center / cover no-repeat;
  cursor: crosshair; user-select: none; -webkit-user-select: none;
}
.pb-hero a, .pb-hero button { cursor: pointer; }
.pb-hero .pb-btn--soon { cursor: default; }
.pb-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(5, 5, 6, 0.92) 0%, rgba(5, 5, 6, 0.55) 45%, rgba(5, 5, 6, 0) 70%);
}

/* In-game scoreboard: blue plate, clock, red plate */
.pb-score { position: relative; z-index: 3; display: flex; justify-content: center; padding-top: 1rem; pointer-events: none; }
.pb-score__board {
  display: grid; grid-template-columns: minmax(6.5rem, auto) auto minmax(6.5rem, auto);
  padding: 4px; background: #08090B; border-radius: 6px; box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.5);
  font-family: var(--font-pb); line-height: 1;
}
.pb-score__team { display: flex; align-items: center; justify-content: space-between; gap: 1.1rem; padding: 0.4rem 0.9rem; color: #fff; }
.pb-score__team small { font-weight: 600; font-size: 0.8125rem; letter-spacing: 0.12em; }
.pb-score__team b { font-weight: 700; font-style: italic; font-size: 2rem; font-variant-numeric: tabular-nums; }
.pb-score__team--blue { background: linear-gradient(180deg, #3F66F0, #2848C6); clip-path: polygon(0 0, 100% 0, calc(100% - 0.6rem) 100%, 0 100%); border-radius: 4px 0 0 4px; }
.pb-score__team--red { background: linear-gradient(180deg, #E5453F, #B92A27); clip-path: polygon(0.6rem 0, 100% 0, 100% 100%, 0 100%); border-radius: 0 4px 4px 0; flex-direction: row-reverse; }
.pb-score__clock { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.15rem; padding: 0.3rem 1.3rem; background: linear-gradient(180deg, #30323A, #22242A); color: #fff; margin-inline: -0.3rem; clip-path: polygon(0.6rem 0, 100% 0, calc(100% - 0.6rem) 100%, 0 100%); }
.pb-score__clock time { font-weight: 700; font-style: italic; font-size: 2rem; font-variant-numeric: tabular-nums; }
.pb-score__clock small { font-weight: 600; font-size: 0.8125rem; letter-spacing: 0.14em; color: var(--pb-dim); text-transform: uppercase; }

.pb-hero__inner { position: relative; z-index: 2; padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(3rem, 7vw, 5rem); }
.pb-logo { display: flex; flex-direction: column; align-items: flex-start; font-weight: 700; font-style: italic; text-transform: uppercase; line-height: 0.82; }
.pb-logo__jax { font-size: clamp(4.4rem, 13vw, 10.5rem); letter-spacing: -0.01em; color: #fff; }
.pb-logo__plate {
  margin-top: 0.6rem; padding: 0.18em 1.1em 0.14em 0.45em; font-size: clamp(1.4rem, 3.4vw, 2.6rem); letter-spacing: 0.06em;
  background: var(--pb-orange); color: #17181A; clip-path: polygon(0 0, 100% 0, calc(100% - 0.6em) 100%, 0 100%);
}
.pb-tagline { margin-top: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; font-size: clamp(1.3rem, 2.6vw, 1.9rem); color: var(--pb-orange); }
.pb-lede { margin-top: 1.4rem; font-size: clamp(1.25rem, 2vw, 1.45rem); line-height: 1.4; max-width: 33ch; color: #E6E6E4; }
.pb-hero .actions { margin-top: 2rem; gap: 0.6rem; }
.pb-hero .status { margin-top: 1.1rem; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.1em; }

.range {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem;
  margin-top: 2.25rem; padding: 0.7rem 0.9rem; max-width: 34rem;
  background: rgba(37, 38, 42, 0.85); border-left: 4px solid var(--pb-orange);
  font-size: 1.05rem; color: var(--pb-dim);
}
.range__shoot {
  font: 600 1rem/1 var(--font-pb); text-transform: uppercase; letter-spacing: 0.08em;
  background: var(--pb-orange); color: #17181A; border: 0; min-height: 2.75rem; padding: 0.6rem 1.3rem 0.6rem 1rem; cursor: pointer;
  clip-path: polygon(0 0, 100% 0, calc(100% - 0.6rem) 100%, 0 100%);
}
.range__shoot:hover { background: var(--pb-hot); }
.range__shoot:focus-visible { background: var(--pb-hot); outline: 3px solid #17181A; outline-offset: -5px; }
.range__count { font-variant-numeric: tabular-nums; color: var(--pb-white); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }

.pb-splats { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.pb-splats svg { position: absolute; width: var(--size, 9rem); height: var(--size, 9rem); transform: translate(-50%, -50%) rotate(var(--rot, 0deg)); opacity: 0.95; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.35)); }
.pb-splats svg.is-new { animation: splat-in 140ms cubic-bezier(0.2, 1.6, 0.4, 1) both; }
@keyframes splat-in {
  from { transform: translate(-50%, -50%) rotate(var(--rot, 0deg)) scale(0.2); }
  to { transform: translate(-50%, -50%) rotate(var(--rot, 0deg)) scale(1); }
}

/* Achievement pop-up, drawn like the game's plates */
.toast {
  position: fixed; left: 50%; bottom: 1.25rem; z-index: 50;
  display: flex; align-items: center; gap: 0.9rem;
  width: min(28rem, calc(100% - 1.5rem)); padding: 0.8rem 2rem 0.8rem 1.4rem;
  background: linear-gradient(180deg, #3D3F43, #2A2B2F); color: var(--pb-white);
  clip-path: polygon(0 0, 100% 0, calc(100% - 1.1rem) 100%, 0 100%);
  border-left: 5px solid var(--pb-orange);
  filter: drop-shadow(0 1rem 1.5rem rgba(0, 0, 0, 0.5));
  transform: translate(-50%, 160%); visibility: hidden;
  transition: transform 260ms cubic-bezier(0.2, 0.9, 0.3, 1), visibility 0s linear 260ms;
}
.toast.is-visible { transform: translate(-50%, 0); visibility: visible; transition-delay: 0s; }
.toast__badge { flex: none; width: 3.4rem; height: 3.4rem; border-radius: 50%; background: #111214; padding: 0.35rem; box-shadow: inset 0 0 0 2px var(--pb-orange); }
.toast p { font-size: 1rem; line-height: 1.3; color: var(--pb-dim); }
.toast small { display: block; font-weight: 600; font-size: 0.8125rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--pb-orange); }
.toast strong { display: block; font-weight: 700; font-style: italic; text-transform: uppercase; font-size: 1.55rem; line-height: 1.05; color: #fff; }

/* Sections */
.pb-section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.pb-section--plates { background: #2B2C30 url("/assets/img/paintball/bg-plates-1280.webp") center / cover no-repeat; position: relative; isolation: isolate; }
.pb-section--plates::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(22, 23, 26, 0.72); }
.pb-section--slab { background: var(--pb-slab); }
.pb-section--black { background: var(--pb-black); }
.pb-split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.pb-h2 {
  font-weight: 700; font-style: italic; text-transform: uppercase;
  font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 0.9; letter-spacing: -0.005em; max-width: 12ch;
}
.pb-h2::after { content: ""; display: block; width: 4.5rem; height: 6px; margin-top: 0.9rem; background: var(--pb-orange); transform: skewX(-24deg); transform-origin: left; }
.pb-eyebrow { font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.95rem; color: var(--pb-orange); margin-bottom: 0.6rem; }
.pb-copy p { max-width: var(--measure); color: #DADBDD; }
.pb-copy p + p { margin-top: 0.9rem; }
.pb-copy .lead { font-size: 1.5rem; line-height: 1.3; color: #fff; font-weight: 600; }

/* Gallery in the broadcast style */
.pb-gallery { --gal-gap: 0.6rem; margin-top: 2.25rem; }
.pb-gallery .gallery__link { clip-path: polygon(0 0, 100% 0, calc(100% - 1rem) 100%, 0 100%); }
.pb-gallery .gallery__link::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--pb-orange); opacity: 0; transition: opacity 150ms; }
.pb-gallery .gallery__link:hover::after, .pb-gallery .gallery__link:focus-visible::after { opacity: 1; }
.gallery__link:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.gallery__link:focus-visible img { opacity: 0.85; }
.pb-gallery .gallery__cap { text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; font-size: 0.9rem; }
.theme-paintball .lightbox__cap { font-family: var(--font-pb); font-size: 1.15rem; }
.theme-paintball .lightbox__btn { border-radius: 0; clip-path: polygon(0 0, 100% 0, calc(100% - 0.5rem) 100%, 0 100%); }

.formats { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 2rem; }
.formats li {
  display: flex; flex-direction: column; justify-content: flex-end; min-width: 7.5rem; padding: 0.8rem 2rem 0.7rem 1.1rem;
  background: linear-gradient(180deg, #4E5054, #3E4044); clip-path: polygon(0 0, 100% 0, calc(100% - 1rem) 100%, 0 100%);
  border-left: 4px solid var(--pb-orange);
}
.formats b { font-weight: 700; font-style: italic; font-size: clamp(3.4rem, 7vw, 5rem); line-height: 0.85; color: #fff; }
.formats span { font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: #CDCFD3; font-size: 0.95rem; }

.fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.6rem; margin-top: 2.5rem; }
.fields li { padding: 1rem 1.6rem 1.1rem 1.1rem; background: rgba(75, 77, 81, 0.55); border-top: 3px solid var(--pb-orange); clip-path: polygon(0 0, 100% 0, calc(100% - 1rem) 100%, 0 100%); }
.fields h3 { font-weight: 700; font-style: italic; text-transform: uppercase; font-size: 1.9rem; line-height: 1; }
.fields p { margin-top: 0.4rem; font-size: 1.05rem; color: var(--pb-dim); }

.flags { display: flex; flex-wrap: wrap; gap: 1rem 2rem; margin-top: 1.75rem; }
.flag { display: flex; align-items: center; gap: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; font-size: 1.05rem; }
.flag svg { width: 2.6rem; height: 2.6rem; }

.ladder { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: end; gap: 0.5rem; margin-top: 2.75rem; }
.ladder li {
  display: flex; flex-direction: column; justify-content: flex-end; padding: 0.8rem 1.4rem 0.8rem 0.9rem;
  background: linear-gradient(180deg, #55575B, #424448); clip-path: polygon(0 0, 100% 0, calc(100% - 0.8rem) 100%, 0 100%);
  min-height: calc(4.5rem + var(--step) * 2.5rem);
}
.ladder li:last-child { background: var(--pb-hot); color: #17181A; }
.ladder b { font-weight: 700; font-style: italic; text-transform: uppercase; font-size: clamp(1.3rem, 2.6vw, 2rem); line-height: 0.95; }
.ladder span { font-size: 1rem; opacity: 0.8; }

.playcall { background: #1E2A1F; padding: 1rem; border-top: 3px solid var(--pb-orange); }
.playcall svg { width: 100%; height: auto; }
.playcall figcaption { margin-top: 0.75rem; font-size: 1.05rem; color: #C9D3CA; }

.paints { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; margin-top: 2rem; }
.paints li { padding: 1rem 1.6rem 1rem 1.1rem; background: rgba(75, 77, 81, 0.5); border-left: 5px solid var(--pb-orange); clip-path: polygon(0 0, 100% 0, calc(100% - 1rem) 100%, 0 100%); }
.paints li + li { border-left-color: #7FC8F8; }
.paints h3 { font-weight: 700; font-style: italic; text-transform: uppercase; font-size: 1.8rem; line-height: 1; }
.paints p { margin-top: 0.35rem; color: var(--pb-dim); font-size: 1.05rem; }

.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); }
.specs > div { background: rgba(37, 38, 42, 0.9); padding: 1.25rem 1.5rem 1.5rem; border-top: 3px solid var(--pb-orange); }
.specs h3 { font-weight: 700; font-style: italic; text-transform: uppercase; font-size: 2.4rem; line-height: 0.95; }
.specs ul { margin-top: 0.75rem; }
.specs li { padding-block: 0.6rem; border-bottom: 1px solid var(--rule); color: #DADBDD; }
.specs li:last-child { border-bottom: 0; }

.achievements { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; margin-top: 2.25rem; }
.achievement {
  display: flex; gap: 1.1rem; align-items: center; padding: 1.1rem 2.4rem 1.1rem 1.2rem;
  background: linear-gradient(180deg, #3D3F43, #2A2B2F); border-left: 5px solid var(--pb-orange);
  clip-path: polygon(0 0, 100% 0, calc(100% - 1.2rem) 100%, 0 100%);
}
.achievement > div { min-width: 0; }
.achievement svg { flex: none; width: 4.4rem; height: 4.4rem; }
.achievement small { display: block; font-weight: 600; font-size: 0.8125rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--pb-orange); }
.achievement h3 { overflow-wrap: anywhere; font-weight: 700; font-style: italic; text-transform: uppercase; font-size: 1.85rem; line-height: 1; }
.achievement p { margin-top: 0.3rem; color: var(--pb-dim); font-size: 1.05rem; }

.pb-cta { text-align: left; background: var(--pb-black) url("/assets/img/paintball/bg-loading-960.webp") right center / cover no-repeat; }
.pb-cta p { margin-top: 1rem; max-width: 34ch; color: var(--pb-dim); }
.pb-cta .actions { margin-top: 2rem; gap: 0.6rem; }

/* ==========================================================
   Trifront: the build's own menu theme
   ========================================================== */
.theme-trifront { font-family: var(--font-tf); font-size: 1.0625rem; }
.theme-trifront .site-header { background: var(--tf-bg); border-bottom-color: var(--tf-line); }
.theme-trifront .wordmark { font-family: var(--font-tf-head); font-weight: 600; text-transform: uppercase; font-size: 1.6rem; color: var(--tf-title); }
.theme-trifront .site-nav a { font-family: var(--font-tf-head); font-weight: 600; letter-spacing: 0.02em; }

/* Menu buttons: dark panel, thin line; the focused one gets the ochre frame. */
.tf-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 3.4rem; padding: 0.5rem 1rem; width: 100%;
  font: 600 1.35rem/1.1 var(--font-tf-head); color: var(--tf-text); text-decoration: none;
  background: rgba(31, 34, 31, 0.92); border: 1px solid #3A3C35; border-radius: 3px;
  transition: border-color 120ms, background-color 120ms;
}
.tf-btn small { font: 500 0.85rem/1 var(--font-tf); color: var(--tf-dim); }
.tf-btn:hover, .tf-btn:focus-visible { border: 2px solid var(--tf-ochre); padding: calc(0.5rem - 1px) calc(1rem - 1px); color: #fff; outline: none; }
.tf-btn--lit { border: 2px solid var(--tf-ochre); padding: calc(0.5rem - 1px) calc(1rem - 1px); }
.tf-btn--soon { cursor: default; }
.tf-btn--soon:hover { border: 1px solid #3A3C35; padding: 0.5rem 1rem; }

.tf-hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(52rem, calc(100vh - 4.25rem)); display: flex; align-items: center;
  background: var(--tf-bg) url("/assets/img/trifront/bg-menu-940.webp") right center / auto 100% no-repeat;
}
.tf-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(18, 20, 18, 0.9) 0%, rgba(18, 20, 18, 0.55) 45%, rgba(18, 20, 18, 0) 75%);
}
.tf-hero__inner { padding-block: clamp(3rem, 7vw, 5rem); }
.tf-hero__menu { width: min(100%, 31rem); }
.tf-logo { display: flex; align-items: center; gap: clamp(0.75rem, 2vw, 1.3rem); }
.tf-logo svg { width: clamp(3.4rem, 7vw, 5.4rem); height: auto; flex: none; }
.tf-title { font-family: var(--font-tf-head); font-weight: 600; font-size: clamp(3.6rem, 9vw, 6.4rem); line-height: 0.85; text-transform: uppercase; color: var(--tf-title); }
.tf-line { margin-top: 1.4rem; font-size: 1.25rem; color: var(--tf-dim); }
.tf-lede { margin-top: 1rem; max-width: 34ch; color: var(--tf-text); }
.tf-hero__buttons { display: grid; gap: 0.55rem; margin-top: 1.8rem; }
.tf-rank { margin-top: 1.4rem; font: 600 1.15rem/1 var(--font-tf-head); color: var(--tf-ochre); text-transform: uppercase; }
.tf-rank + p { margin-top: 0.45rem; font-size: 0.95rem; color: var(--tf-dim); }

.tf-section { padding-block: clamp(3.5rem, 8vw, 6rem); border-top: 1px solid var(--tf-line); }
.tf-section--panel { background: var(--tf-panel); }
.tf-label { font: 600 1.05rem/1 var(--font-tf-head); text-transform: uppercase; letter-spacing: 0.04em; color: var(--tf-dim); }
.tf-h2 { margin-top: 0.6rem; font-family: var(--font-tf-head); font-weight: 600; text-transform: uppercase; color: var(--tf-ochre); font-size: clamp(2.3rem, 5.5vw, 3.6rem); line-height: 1; }
.tf-copy { margin-top: 1.1rem; max-width: var(--measure); line-height: 1.6; }
.tf-copy + .tf-copy { margin-top: 0.9rem; }

.tf-teams { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.55rem; margin-top: 2.25rem; }
.tf-teams li { padding: 1rem 1.1rem 1.15rem; background: var(--tf-panel-hi); border: 1px solid #3A3C35; border-top: 4px solid var(--team); border-radius: 3px; }
.tf-teams h3 { font: 600 1.6rem/1 var(--font-tf-head); text-transform: uppercase; color: var(--team); }
.tf-teams p { margin-top: 0.5rem; color: var(--tf-dim); font-size: 1rem; }

.tf-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.55rem; margin-top: 2.25rem; }
.tf-facts li { padding: 1rem 1.1rem; background: var(--tf-bg); border: 1px solid #3A3C35; border-radius: 3px; }
.tf-facts b { display: block; font: 600 2.6rem/1 var(--font-tf-head); color: var(--tf-title); }
.tf-facts span { display: block; margin-top: 0.35rem; color: var(--tf-dim); font-size: 0.95rem; }

.tf-gallery { --gal-gap: 0.6rem; margin-top: 2rem; }
.tf-gallery .gallery__link { border: 1px solid #3A3C35; border-radius: 3px; }
.tf-gallery .gallery__link:hover, .tf-gallery .gallery__link:focus-visible { border-color: var(--tf-ochre); outline: 1px solid var(--tf-ochre); }
.theme-trifront .lightbox__btn { border-radius: 3px; }

.tf-early {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem 1.25rem; align-items: start;
  margin-top: 2rem; padding: 1.2rem 1.3rem; background: rgba(227, 166, 59, 0.08); border: 1px solid rgba(227, 166, 59, 0.45); border-radius: 3px;
}
.tf-early b { font: 600 1.1rem/1.2 var(--font-tf-head); text-transform: uppercase; color: var(--tf-ochre); white-space: nowrap; }
.tf-early p { color: var(--tf-text); }


/* Trifront modes */
.tf-group { margin-top: 2.5rem; font: 600 1.25rem/1 var(--font-tf-head); text-transform: uppercase; letter-spacing: 0.04em; color: var(--tf-dim); padding-bottom: 0.6rem; border-bottom: 1px solid var(--tf-line); }
.tf-modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.55rem; margin-top: 0.9rem; }
.tf-mode { padding: 1rem 1.1rem 1.15rem; background: var(--tf-bg); border: 1px solid #3A3C35; border-radius: 3px; }
.tf-mode h4 { font: 600 1.45rem/1.05 var(--font-tf-head); text-transform: uppercase; color: var(--tf-title); }
.tf-mode p { margin-top: 0.5rem; font-size: 0.98rem; line-height: 1.5; color: #CFCBBE; }
.tf-tag { display: inline-block; margin-top: 0.5rem; padding: 0.15rem 0.5rem; font: 600 0.85rem/1.3 var(--font-tf-head); text-transform: uppercase; color: var(--tf-ochre); border: 1px solid rgba(227, 166, 59, 0.55); border-radius: 3px; }

.tf-zombie { margin-top: 2.75rem; padding: clamp(1.25rem, 3vw, 2rem); background: linear-gradient(180deg, #161A15, #121412); border: 1px solid #3A3C35; border-top: 4px solid var(--tf-good); border-radius: 3px; }
.tf-zombie__head { max-width: 46rem; }
.tf-zombie__tag { font: 600 1rem/1.2 var(--font-tf-head); text-transform: uppercase; letter-spacing: 0.04em; color: var(--tf-good); }
.tf-zombie h3 { margin-top: 0.4rem; font: 600 clamp(2rem, 4.6vw, 3rem)/1 var(--font-tf-head); text-transform: uppercase; color: var(--tf-title); }
.tf-zombie__head p:last-child { margin-top: 0.9rem; line-height: 1.6; }
.tf-zombie__sub { margin-top: 1.75rem; font: 600 1.2rem/1.1 var(--font-tf-head); text-transform: uppercase; color: var(--tf-ochre); }
.tf-zombie__note { margin-top: 0.8rem; max-width: 46rem; line-height: 1.6; color: #CFCBBE; }
.tf-zlist { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.4rem 1.5rem; margin-top: 0.8rem; }
.tf-zlist li { padding: 0.45rem 0; border-bottom: 1px solid rgba(82, 84, 74, 0.6); line-height: 1.45; color: #CFCBBE; }
.tf-zlist b { color: var(--tf-title); font-weight: 700; }
.tf-bosses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.55rem; margin-top: 0.9rem; }
.tf-boss { padding: 0.95rem 1.05rem 1.05rem; background: var(--tf-panel-hi); border: 1px solid #3A3C35; border-left: 3px solid var(--tf-rust); border-radius: 3px; }
.tf-boss__where { display: block; font: 600 0.85rem/1.2 var(--font-tf-head); text-transform: uppercase; letter-spacing: 0.04em; color: var(--tf-dim); }
.tf-boss h5 { margin-top: 0.3rem; font: 600 1.4rem/1.05 var(--font-tf-head); text-transform: uppercase; color: var(--tf-title); overflow-wrap: break-word; }
.tf-boss p { margin-top: 0.4rem; font-size: 0.95rem; line-height: 1.45; color: #CFCBBE; }

/* ==========================================================
   Odd Jobs: dusk over the county
   ========================================================== */
.theme-oddjobs { font-family: var(--font-oj-body); line-height: 1.6; }
.theme-oddjobs .site-header { background: var(--oj-night); }
.theme-oddjobs .wordmark { font-family: var(--font-oj); font-weight: 700; font-size: 1.45rem; letter-spacing: 0.02em; }
.theme-oddjobs .site-nav a { font-weight: 600; }

/* Grain over the whole page, like the game's film grain. */
.theme-oddjobs::after {
  content: ""; position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: 0.07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.oj-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: 0.6rem 1.3rem;
  font: 700 1rem/1.1 var(--font-oj-body); letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none;
  color: var(--oj-cream); background: rgba(20, 20, 24, 0.55); border: 1px solid rgba(233, 223, 201, 0.5); border-radius: 2px;
}
.oj-btn:hover { border-color: var(--oj-amber); color: #FFE2B3; background: rgba(240, 162, 75, 0.12); }
.oj-btn--soon { border-style: dashed; cursor: default; }
.oj-btn--soon:hover { border-color: rgba(233, 223, 201, 0.5); color: var(--oj-cream); background: rgba(20, 20, 24, 0.55); }

/* Hero: the loading screen, at its own 16:9 so the porch light lines up with the house. */
.oj-hero { position: relative; isolation: isolate; background: var(--oj-night); }
.oj-scene { position: relative; overflow: hidden; aspect-ratio: 16 / 9; max-height: calc(100vh - 4.25rem); width: 100%; background: #1A1B1F; }
.oj-scene img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
.oj-scene__glow {
  position: absolute; left: 33.5%; top: 61%; width: 16%; aspect-ratio: 1; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 190, 110, 0.38), rgba(255, 170, 80, 0.1) 45%, transparent 70%);
  mix-blend-mode: screen; animation: porch-flicker 4.5s steps(1, end) 1 both;
}
@keyframes porch-flicker {
  0%, 58%, 60%, 64%, 100% { opacity: 1; }
  59%, 61% { opacity: 0.25; }
}
.oj-scene__fog {
  position: absolute; inset: auto -20% 0 -20%; height: 45%;
  background: radial-gradient(ellipse 50% 60% at 30% 100%, rgba(160, 150, 175, 0.16), transparent 70%), radial-gradient(ellipse 40% 50% at 75% 100%, rgba(160, 150, 175, 0.12), transparent 70%);
  animation: fog-drift 4.8s ease-out 1 both;
}
@keyframes fog-drift { from { transform: translateX(-3%); opacity: 0.6; } to { transform: translateX(0); opacity: 1; } }
.oj-scene::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(20, 20, 24, 0.9) 100%), radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.45) 100%); }
.oj-logo { position: absolute; right: 6%; top: 9%; text-align: center; color: var(--oj-cream); text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7); z-index: 2; }
.oj-title { font-family: var(--font-oj); font-weight: 700; font-size: clamp(2.6rem, 6.6vw, 6.4rem); line-height: 1; letter-spacing: 0.03em; text-transform: uppercase; }
.oj-logo__sub { margin-top: 0.35em; font-family: var(--font-oj-body); font-weight: 700; font-size: clamp(0.8125rem, 1.2vw, 1.05rem); letter-spacing: 0.2em; text-transform: uppercase; color: var(--oj-cream); }
.oj-loading { position: absolute; left: 5%; bottom: 7%; z-index: 2; font-style: italic; color: var(--oj-dim); font-size: clamp(0.9rem, 1.4vw, 1.15rem); }
.oj-loading::after { content: ""; display: inline-block; width: 1.2em; text-align: left; animation: dots 2.4s steps(4, end) 2 forwards; }
@keyframes dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75%, 100% { content: "..."; } }
.oj-loading::after { content: "..."; }

.oj-intro { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3.5rem, 8vw, 6rem); }
.oj-lede { font-size: clamp(1.25rem, 2.1vw, 1.55rem); line-height: 1.45; max-width: 30ch; }
.oj-intro .actions { margin-top: 1.75rem; }
.oj-intro .status { margin-top: 1.1rem; }

/* The clipboard (the game's menu panel) with today's work order on it */
.clipboard {
  position: relative; justify-self: center; width: min(100%, 25rem); padding: 2.6rem 1.25rem 1.6rem;
  background: var(--oj-leather) url("/assets/img/oddjobs/ui-clipboard.webp") center / cover no-repeat;
  border-radius: 10px; box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.55); transform: rotate(1.6deg);
}
.clipboard::before { content: ""; position: absolute; left: 50%; top: 0.55rem; width: 7.5rem; height: 1.6rem; transform: translateX(-50%); background: linear-gradient(180deg, #B9BBBE, #7E8186); border-radius: 4px; box-shadow: 0 2px 3px rgba(0, 0, 0, 0.5); }
.ticket {
  background: #EDE4CF; color: #2A2520; padding: 1.2rem 1.25rem 1.4rem;
  background-image: repeating-linear-gradient(180deg, transparent 0 1.85rem, rgba(42, 37, 32, 0.13) 1.85rem calc(1.85rem + 1px));
  background-position: 0 3.9rem; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}
.ticket__head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid #2A2520; padding-bottom: 0.5rem; }
.ticket__head b { font-family: var(--font-oj); font-weight: 700; font-size: 1.15rem; text-transform: uppercase; letter-spacing: 0.04em; }
.ticket__head span { font-size: var(--s-1); font-variant-numeric: tabular-nums; }
.ticket dl { margin-top: 0.8rem; display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 0.9rem; font-size: 0.98rem; line-height: 1.5; }
.ticket dt { font-weight: 700; }
.ticket dd { font-style: italic; color: #3A3128; }
.ticket__stamp { margin-top: 1rem; display: inline-block; padding: 0.2rem 0.6rem; border: 2px solid #8A4430; color: #8A4430; font-weight: 700; font-size: var(--s-1); text-transform: uppercase; letter-spacing: 0.08em; transform: rotate(-4deg); border-radius: 3px; }
.ticket__tally { margin-top: 0.8rem; text-align: right; font-size: 1.1rem; letter-spacing: 0.08em; color: #6A5F52; }

.oj-section { padding-block: clamp(3.5rem, 8vw, 6rem); border-top: 1px solid var(--rule); }
.oj-section--dusk { background: linear-gradient(180deg, var(--oj-dusk), var(--oj-night)); }
.oj-h2 { font-family: var(--font-oj); font-weight: 700; font-size: clamp(1.75rem, 4.6vw, 3.3rem); line-height: 1.05; letter-spacing: 0.02em; text-transform: uppercase; }
.oj-kicker { font-weight: 700; font-size: 0.85rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--oj-amber); margin-bottom: 0.7rem; }
.oj-split { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.oj-copy p { max-width: var(--measure); line-height: 1.7; }
.oj-copy p + p { margin-top: 1rem; }
.jobs { margin-top: 1.75rem; border-top: 1px solid var(--rule); }
.jobs li { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding-block: 0.9rem; border-bottom: 1px solid var(--rule); }
.jobs b { font-weight: 700; color: var(--oj-amber); }
.jobs span { color: var(--muted); }
.oj-quote { font-family: var(--font-oj); font-weight: 700; font-size: clamp(1.6rem, 3.4vw, 2.4rem); line-height: 1.2; max-width: 24ch; }
.oj-quote + p { margin-top: 1.5rem; }

.patches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-top: 2.25rem; }
.patch { display: flex; gap: 1rem; align-items: center; }
.patch img { flex: none; width: 5.5rem; height: 5.5rem; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5)); }
.patch h3 { font-family: var(--font-oj); font-weight: 700; font-size: 1.1rem; line-height: 1.2; }
.patch p { margin-top: 0.25rem; color: var(--muted); font-size: 0.95rem; line-height: 1.45; }

.oj-gallery { --gal-gap: 0.9rem; margin-top: 2rem; }
.oj-gallery .gallery__link { border-radius: 2px; box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.45); }
.oj-gallery .gallery__link img { filter: saturate(0.92); }
.oj-gallery .gallery__link:hover img { filter: saturate(1); }
.oj-gallery--workshop { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.oj-gallery--workshop .gallery__link img { aspect-ratio: 4 / 3; }
.oj-gallery--single { grid-template-columns: minmax(0, 1fr); max-width: 60rem; }
.oj-gallery--single .gallery__link img { aspect-ratio: 16 / 9; }
.oj-sub { margin-top: 3rem; font-family: var(--font-oj); font-weight: 700; font-size: 1.35rem; text-transform: uppercase; letter-spacing: 0.04em; }

/* ---------- 404 ---------- */
.notfound { padding-block: clamp(4rem, 12vw, 9rem); }
.notfound h1 { font-family: var(--font-cond); font-weight: 900; font-size: clamp(3.4rem, 10vw, 7.5rem); line-height: 0.86; max-width: 11ch; }
.notfound p { margin-top: 1.25rem; font-size: var(--s1); line-height: 1.4; max-width: 30ch; color: var(--muted); }
.notfound .actions { margin-top: 2rem; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery__item--wide { grid-column: span 2; grid-row: auto; }
  .gallery__item--wide .gallery__link img { aspect-ratio: 16 / 9; position: static; }
  .gallery__item--wide .gallery__link { min-height: 0; }
  .oj-gallery--workshop { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tf-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tf-modes, .tf-bosses, .tf-zlist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .band__inner, .pb-split, .oj-intro, .oj-split { grid-template-columns: minmax(0, 1fr); }
  .band__inner { min-height: 0; }
  .band__art { order: -1; }
  .band--paintball { background-image: none; }
  .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .clipboard { justify-self: start; }
  .patches { grid-template-columns: minmax(0, 1fr); }
  .tf-hero { background-size: cover; background-position: 70% center; }
  .tf-hero::before { background: linear-gradient(180deg, rgba(18, 20, 18, 0.75), rgba(18, 20, 18, 0.95) 55%); }
}
@media (max-width: 640px) {
  .site-header__inner { flex-direction: column; align-items: flex-start; gap: 0; padding-block: 0.4rem; }
  .site-nav ul { gap: 1.4rem; }
  .wordmark { font-size: 1.7rem; }
  .gallery { grid-template-columns: minmax(0, 1fr); }
  .gallery__item--wide { grid-column: auto; }
  .oj-gallery--workshop { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pb-score__team { padding: 0.35rem 0.6rem; gap: 0.6rem; }
  .pb-score__team b, .pb-score__clock time { font-size: 1.55rem; }
  .pb-score__team small { font-size: 0.8125rem; letter-spacing: 0.08em; }
  .pb-score__clock { padding: 0.25rem 0.9rem; }
  .pb-score__board { grid-template-columns: auto auto auto; }
  .pb-hero { background-position: 70% center; }
  .pb-hero::after { background: linear-gradient(180deg, rgba(5, 5, 6, 0.55), rgba(5, 5, 6, 0.85) 60%); }
  .ladder { display: flex; flex-direction: column-reverse; align-items: stretch; }
  .ladder li { min-height: 0; flex-direction: row; justify-content: space-between; align-items: baseline; gap: 1rem; }
  .paints, .specs, .achievements, .tf-teams, .tf-modes, .tf-bosses, .tf-zlist { grid-template-columns: minmax(0, 1fr); }
  .fields { grid-template-columns: minmax(0, 1fr); }
  .jobs li { grid-template-columns: minmax(0, 1fr); gap: 0.2rem; }
  .tf-early { grid-template-columns: minmax(0, 1fr); gap: 0.4rem; }
  .oj-scene { aspect-ratio: 4 / 3; }
  .oj-scene img { object-position: 30% bottom; }
  .oj-scene__glow { display: none; }
  .oj-logo { right: 0; left: 0; top: 7%; }
  .lightbox__figure { padding: 3.75rem 0.5rem 1rem; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 0.75rem; transform: none; }
  .lightbox__figure { padding-bottom: 4.5rem; }
  .lightbox__cap { padding-inline: 0.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Questions (FAQ) on the game pages ---------- */
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem clamp(1.5rem, 4vw, 3.5rem); margin-top: 2.25rem; }
.faq__item { padding-top: 1rem; border-top: 1px solid var(--rule); min-width: 0; }
.faq__q { font-size: 1.2rem; line-height: 1.25; font-weight: 700; color: var(--fg); }
.faq__a { margin-top: 0.5rem; max-width: var(--measure); color: var(--fg); opacity: 1; }
.theme-paintball .faq__q { font-weight: 700; font-style: italic; text-transform: uppercase; font-size: 1.6rem; line-height: 1.05; }
.theme-paintball .faq__a { color: #DADBDD; }
.theme-paintball .faq__item { border-top: 3px solid var(--pb-orange); }
.theme-trifront .faq__q { font: 600 1.45rem/1.1 var(--font-tf-head); text-transform: uppercase; color: var(--tf-title); }
.theme-trifront .faq__a { color: #CFCBBE; line-height: 1.6; }
.theme-oddjobs .faq__q { font-family: var(--font-oj); font-size: 1.15rem; }
.theme-oddjobs .faq__a { line-height: 1.7; }
@media (max-width: 760px) { .faq { grid-template-columns: minmax(0, 1fr); } }
