/* JJM Game Studio, v2
   Studio frame: deep night navy + gold, bold Bricolage Grotesque headlines (after the Valendhar sites).
   Till Journal's End stays light and cozy: cream paper, coral, washi pastels, Fredoka.
   Signature: the home page "bookshelf" of game spines. */

:root {
  --night: #10152a;
  --night-2: #161d36;
  --night-3: #212a48;
  --gilt: #e2b866;
  --gilt-hi: #f3d79a;
  --text: #ece4d2;
  --muted: #a9abbf;
  --line: rgba(226, 184, 102, .2);

  /* Till Journal's End */
  --paper: #fbf3e4;
  --paper-2: #f4e8d2;
  --kraft-bg: #f1e4cc;
  --coral: #f3a07e;
  --coral-ink: #a8472b;
  --ink: #2e2a33;
  --ink-soft: #5c5560;
  --sage: #9db497;
  --blush: #f2b9b3;
  --kraft: #d6b88c;

  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --text-font: "Lora", Georgia, serif;
  --cozy: "Fredoka", "Trebuchet MS", system-ui, sans-serif;

  --maxw: 74rem;
  --r: 16px;
  --header-h: 68px;
  --measure: 64ch;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
html, body { overflow-x: clip; }
body {
  margin: 0; background: var(--night); color: var(--text);
  font-family: var(--text-font); font-size: 1.075rem; line-height: 1.7;
}
img { max-width: 100%; display: block; }
a { color: var(--gilt); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--gilt); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gilt); color: var(--night); padding: .6rem 1rem; z-index: 60; }
.skip:focus { left: 1rem; top: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }

h1, h2, h3 { font-family: var(--display); line-height: 1.05; letter-spacing: -.015em; margin: 0 0 1rem; font-weight: 700; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.3rem; letter-spacing: 0; line-height: 1.2; margin: 1.6rem 0 .5rem; }
p { margin: 0 0 1.1rem; }
.lede { font-size: 1.22rem; color: var(--muted); max-width: 56ch; }

/* ---------- Header: sticky, blurred ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(16, 21, 42, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .inner {
  max-width: var(--maxw); margin: 0 auto; padding: .7rem 1.5rem; min-height: var(--header-h);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 2rem;
}
.brand { display: flex; align-items: center; gap: .7rem; color: var(--text); text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.2rem; }
.brand .mark {
  position: relative; width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 1.5px solid var(--gilt);
  display: grid; place-items: center; overflow: hidden; font-size: .72rem; color: var(--gilt); background: var(--night-2);
}
.brand .mark img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--night-2); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .2rem 1.5rem; }
.site-nav a, .nav-more summary {
  color: #d9d3c4; text-decoration: none; font-family: var(--display); font-weight: 500; font-size: 1rem;
  padding: .3rem 0; border-bottom: 2px solid transparent;
}
.site-nav a:hover, .nav-more summary:hover { color: #fff; }
.site-nav a[aria-current="page"], .nav-more summary.is-current { color: var(--gilt); border-bottom-color: var(--gilt); }

.nav-more { position: relative; }
.nav-more summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .4rem; }
.nav-more summary::-webkit-details-marker { display: none; }
.nav-more summary::after { content: ""; width: .42rem; height: .42rem; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); transition: transform .15s ease; }
.nav-more details[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
.nav-more ul {
  position: absolute; right: 0; top: calc(100% + .7rem); z-index: 50; white-space: nowrap;
  list-style: none; margin: 0; padding: .45rem; display: grid; gap: .1rem;
  background: var(--night-2); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px rgba(0,0,0,.45);
}
.nav-more ul a { display: block; padding: .5rem .8rem; border-bottom: 0; border-radius: 8px; }
.nav-more ul a:hover { background: rgba(226,184,102,.1); }
.nav-more ul a[aria-current="page"] { color: var(--gilt); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; font-family: var(--display); font-weight: 700; font-size: 1.02rem;
  padding: .8rem 1.45rem; border-radius: 12px; text-decoration: none; border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-gold { background: var(--gilt); color: var(--night); box-shadow: 0 4px 0 #9c7f3c; }
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 5px 0 #9c7f3c; color: var(--night); }
.btn-gold:active { transform: translateY(3px); box-shadow: 0 1px 0 #9c7f3c; }
.btn-line { color: var(--text); border-color: rgba(236,228,210,.45); }
.btn-line:hover { border-color: var(--text); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.btn-note { font-size: .92rem; color: var(--muted); margin: .8rem 0 0; }

/* greyed wishlist button with a rubber "Coming soon" stamp */
.stamped { position: relative; display: inline-block; }
.btn.is-disabled { background: #cfc8bb; color: #6f685e; box-shadow: 0 4px 0 #a79f90; cursor: not-allowed; }
.stamp {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-9deg); pointer-events: none;
  font-family: var(--cozy); font-weight: 700; font-size: 1.1rem; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
  color: #b8432f; padding: .1rem .65rem; border: 3px solid currentColor; border-radius: 6px; background: rgba(251,243,228,.55); opacity: .92;
}

/* ---------- Sections ---------- */
.band { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.band.alt { background: var(--night-2); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem 4rem; align-items: start; }
.statement { font-size: clamp(2rem, 4.2vw, 3.3rem); color: var(--text); }
.facts-panel {
  background: var(--night-3); border: 1px solid var(--line); border-radius: var(--r); padding: 1.5rem 1.6rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem 1.6rem;
}
.facts-panel div { min-width: 0; }
.facts-panel dt { font-family: var(--display); font-weight: 600; color: var(--gilt); font-size: .95rem; margin-bottom: .15rem; }
.facts-panel dd { margin: 0; font-family: var(--display); font-weight: 600; font-size: 1.08rem; line-height: 1.3; color: var(--text); }

/* ---------- Home: studio hero + bookshelf of game spines ---------- */
.studio-hero { padding: clamp(3rem, 7vw, 5.5rem) 0 2.5rem; }
.studio-hero h1 { max-width: 15ch; }
.studio-hero .lede { margin-bottom: 1.8rem; }

.shelf { display: flex; gap: .7rem; height: clamp(420px, 64vh, 600px); }
.spine {
  --accent: var(--gilt);
  position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; border-radius: var(--r);
  color: #fff; text-decoration: none; background: var(--night-3) center/cover no-repeat;
  border: 1px solid rgba(255,255,255,.08);
  transition: flex-grow .55s cubic-bezier(.2,.7,.2,1);
}
.spine::before { /* darkening for legibility */
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(8,10,22,.05) 30%, rgba(8,10,22,.88) 100%);
}
.spine > img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.spine:hover > img.bg { transform: scale(1.03); }
.spine-title { /* vertical, like a book spine, when closed */
  position: absolute; z-index: 2; left: 50%; bottom: 1.4rem; transform: translateX(-50%) rotate(180deg);
  writing-mode: vertical-rl; font-family: var(--display); font-weight: 700; font-size: 1.3rem; white-space: nowrap;
  text-shadow: 0 2px 10px rgba(0,0,0,.6); transition: opacity .25s ease;
}
.spine-body {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 1.6rem 1.8rem 1.8rem;
  opacity: 0; transform: translateY(10px); transition: opacity .3s ease .1s, transform .3s ease .1s;
}
.spine-body h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin: .4rem 0 .4rem; }
.spine-body p { margin: 0; max-width: 42ch; color: #e9e3d6; }
.spine-tag {
  display: inline-block; font-family: var(--display); font-weight: 600; font-size: .85rem;
  padding: .15rem .65rem; border-radius: 999px; background: var(--accent); color: #1a1a22;
}
.spine-go { display: inline-block; margin-top: .9rem; font-family: var(--display); font-weight: 700; color: var(--accent); }

/* open state: first spine by default, or whichever is hovered / focused */
.spine.is-open { flex-grow: 4.2; }
.shelf:has(.spine:hover) .spine.is-open:not(:hover),
.shelf:has(.spine:focus-visible) .spine.is-open:not(:focus-visible) { flex-grow: 1; }
.spine:hover, .spine:focus-visible { flex-grow: 4.2; }
.spine.is-open .spine-body, .spine:hover .spine-body, .spine:focus-visible .spine-body { opacity: 1; transform: none; }
.spine.is-open .spine-title, .spine:hover .spine-title, .spine:focus-visible .spine-title { opacity: 0; }
.shelf:has(.spine:hover) .spine.is-open:not(:hover) .spine-body,
.shelf:has(.spine:focus-visible) .spine.is-open:not(:focus-visible) .spine-body { opacity: 0; }
.shelf:has(.spine:hover) .spine.is-open:not(:hover) .spine-title,
.shelf:has(.spine:focus-visible) .spine.is-open:not(:focus-visible) .spine-title { opacity: 1; }

/* Till Journal's End's spine is a cozy journal cover, drawn in CSS */
.spine.tje {
  --accent: var(--coral); color: var(--ink);
  background:
    radial-gradient(circle, rgba(46,42,51,.16) 1px, transparent 1.4px) 0 0/22px 22px,
    var(--paper);
}
.spine.tje::before { background: linear-gradient(180deg, transparent 45%, rgba(251,243,228,.95) 85%); }
.spine.tje::after { /* washi strip across the corner */
  content: ""; position: absolute; z-index: 2; top: 1.1rem; right: -1.2rem; width: 9rem; height: 1.8rem; transform: rotate(32deg);
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.4) 0 6px, transparent 6px 14px), var(--sage); opacity: .9;
}
.spine.tje .spine-title { color: var(--coral-ink); text-shadow: none; font-family: var(--cozy); }
.spine.tje .spine-body p { color: var(--ink-soft); }
.spine.tje .spine-go { color: var(--coral-ink); }
.tje-cover-title {
  position: absolute; z-index: 2; left: 1.8rem; right: 1.8rem; top: 2.2rem;
  font-family: var(--cozy); font-weight: 700; font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1; color: var(--coral);
  text-shadow: 2px 2px 0 var(--paper), -2px 2px 0 var(--paper), 2px -2px 0 var(--paper), -2px -2px 0 var(--paper), 0 4px 0 #e98a63;
  opacity: 0; transition: opacity .3s ease .1s;
}
.spine.tje.is-open .tje-cover-title, .spine.tje:hover .tje-cover-title, .spine.tje:focus-visible .tje-cover-title { opacity: 1; }
.shelf:has(.spine:hover) .spine.tje.is-open:not(:hover) .tje-cover-title { opacity: 0; }
.spine.tje > img.bg { z-index: 0; }
.spine.tje > img.bg[data-missing] { display: none; }

.spine.val { --accent: #e7c27a; }
.spine.mta { --accent: #ffb830; }
.spine.rtd { --accent: #b9d38a; }
.spine.rtd > img.bg { object-position: top; }

/* ---------- Cozy (Till Journal's End) ---------- */
.cozy { background: var(--kraft-bg); color: var(--ink); }
.cozy h1, .cozy h2, .cozy h3 { color: #2b3350; }
.cozy a { color: var(--coral-ink); }
.cozy .lede { color: var(--ink-soft); }
.cozy .btn-line { color: #2b3350; border-color: #2b3350; }
.cozy .btn-line:hover { background: rgba(43,51,80,.06); color: #2b3350; }
.cozy .facts-panel { background: var(--paper); border-color: rgba(46,42,51,.12); box-shadow: 0 10px 30px rgba(90,60,20,.08); }
.cozy .facts-panel dt { color: var(--coral-ink); }
.cozy .facts-panel dd { color: var(--ink); }
body.is-cozy { background: var(--kraft-bg); }
body.is-cozy main { color: var(--ink); }

.game-title {
  font-family: var(--cozy); font-weight: 700; font-size: clamp(2.8rem, 6.5vw, 5rem); line-height: 1; color: var(--coral); letter-spacing: -.01em;
  text-shadow: 2px 2px 0 var(--paper), -2px 2px 0 var(--paper), 2px -2px 0 var(--paper), -2px -2px 0 var(--paper), 0 5px 0 #e98a63;
  margin: 0 0 1rem;
}
.cozy .game-title, .is-cozy .game-title { color: var(--coral); font-family: var(--cozy); }
.cozy .btn-note, .is-cozy .btn-note { color: var(--ink-soft); }
.tagline { font-style: italic; font-size: 1.28rem; color: var(--ink-soft); margin: 0 0 1.4rem; max-width: 34ch; }
.hand { font-family: var(--cozy); color: #2b3350; font-size: 1.05rem; margin: 0 0 .4rem; }

/* the open journal (TJE hero) */
.desk { padding: clamp(2rem, 5vw, 3.5rem) 1.5rem clamp(3rem, 6vw, 4.5rem); }
.spread {
  max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr;
  background: var(--paper); border-radius: 8px; position: relative;
  box-shadow: 0 1px 0 #efe2c8, 0 3px 0 #e6d6b6, 0 5px 0 #dcc9a5, 0 30px 60px rgba(90,60,20,.22);
}
.spread::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 60px; transform: translateX(-50%); pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(80,60,30,.12) 45%, rgba(80,60,30,.2) 50%, rgba(80,60,30,.12) 55%, transparent);
}
.spread .page { padding: clamp(1.75rem, 4vw, 3.5rem); position: relative; color: var(--ink); }
.spread .page.dots { background-image: radial-gradient(circle, rgba(46,42,51,.16) 1px, transparent 1.4px); background-size: 22px 22px; background-position: 11px 11px; }

/* washi-taped pictures */
.taped {
  position: relative; background: #fff; padding: .6rem; margin: 1rem .5rem 1.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,.12), 0 10px 24px rgba(60,40,10,.12); transform: rotate(var(--tilt, -1.2deg));
}
.taped::before, .taped::after {
  content: ""; position: absolute; width: 7.5rem; height: 1.7rem; z-index: 2; opacity: .88;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.35) 0 6px, transparent 6px 14px), var(--tape, var(--sage));
  clip-path: polygon(3% 0, 97% 4%, 100% 25%, 96% 50%, 100% 78%, 97% 100%, 2% 96%, 0 70%, 4% 45%, 0 20%);
}
.taped::before { top: -.85rem; left: -1.6rem; transform: rotate(-32deg); }
.taped::after { bottom: -.85rem; right: -1.6rem; transform: rotate(-32deg); background: repeating-linear-gradient(45deg, rgba(255,255,255,.4) 0 3px, transparent 3px 9px), var(--blush); }
.taped.alt { --tilt: 1.4deg; }
.taped.alt::before { background: radial-gradient(circle, rgba(255,255,255,.55) 1.6px, transparent 2px) 0 0/10px 10px, var(--kraft); }
.taped figcaption { font-family: var(--cozy); font-size: .92rem; color: var(--ink-soft); padding: .45rem .2rem 0; }
.slot { position: relative; background: #efe6d4; aspect-ratio: var(--ratio, 16 / 9); overflow: hidden; }
.slot img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }
.slot img[data-missing] { display: none; }
.slot::before {
  content: "Image: " attr(data-file); position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 1rem;
  font-family: var(--cozy); font-size: .95rem; color: #8a7d68; background: repeating-linear-gradient(45deg, #efe6d4 0 12px, #e9dec8 12px 24px);
}
.slot.square { --ratio: 1 / 1; } .slot.tall { --ratio: 3 / 4; } .slot.contain img { object-fit: contain; }

.board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem 2rem; margin-top: 1.5rem; }
.board .taped:nth-child(2n) { --tilt: 1.1deg; }
.board .taped:nth-child(3n) { --tilt: -.6deg; }

/* checklist ticks */
.ticks { list-style: none; padding: 0; margin: 0; max-width: var(--measure); }
.ticks li { position: relative; padding-left: 2rem; margin-bottom: .75rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 1.05rem; height: 1.05rem; border: 1.6px solid currentColor; border-radius: 3px; opacity: .8; }
.ticks li::after { content: ""; position: absolute; left: .28rem; top: .42em; width: .45rem; height: .75rem; border: solid var(--gilt); border-width: 0 2.4px 2.4px 0; transform: rotate(42deg); }
.cozy .ticks li::after, .sheet .ticks li::after { border-color: var(--coral-ink); }

/* ---------- Light reading sheets (about, team, support, privacy, press, TJE details) ---------- */
.page-head { padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; }
.page-head .lede { margin: 0; }
.sheet {
  background: var(--paper); color: var(--ink); max-width: var(--maxw); margin: 0 auto 3rem;
  border-radius: 20px; padding: clamp(2rem, 5vw, 3.75rem) clamp(1.5rem, 5vw, 4rem);
  box-shadow: 0 24px 60px rgba(0,0,0,.25);
}
.is-cozy .sheet { box-shadow: 0 18px 50px rgba(90,60,20,.14); }
.sheet h1, .sheet h2, .sheet h3 { color: #2b3350; }
.sheet a { color: var(--coral-ink); }
.sheet .lede { color: var(--ink-soft); }
.sheet + .sheet { margin-top: -1.5rem; }
.sheet.lined { background-image: linear-gradient(transparent calc(1.7em - 1px), rgba(122,150,190,.16) calc(1.7em - 1px)); background-size: 100% 1.7em; }
.prose { max-width: var(--measure); }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1rem; }
.prose li { margin-bottom: .4rem; }
.pair { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem 3.5rem; align-items: center; }
.pair.flip { grid-template-columns: .9fr 1.1fr; }
.pair.flip > :first-child { order: 2; }
.sheet .btn-line, .cozy .btn-line { color: #2b3350; border-color: #2b3350; }

.facts { border-collapse: collapse; width: 100%; max-width: 46rem; margin: .5rem 0 1.5rem; }
.facts th, .facts td { text-align: left; vertical-align: top; padding: .6rem .9rem .6rem 0; border-bottom: 1px dashed rgba(46,42,51,.25); }
.facts th { font-family: var(--display); font-weight: 600; color: #2b3350; width: 13rem; }
.facts.three th { width: auto; }
.facts thead th { border-bottom: 2px solid #2b3350; }

.faq details { border-bottom: 1px dashed rgba(46,42,51,.3); padding: .9rem 0; max-width: var(--measure); }
.faq summary { cursor: pointer; font-family: var(--display); font-weight: 600; font-size: 1.15rem; color: #2b3350; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--coral-ink); font-size: 1.4rem; line-height: 1; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: .7rem 0 .2rem; }
.contact { display: inline-block; background: #fff; padding: 1.2rem 1.5rem; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,.07); border-left: 5px solid var(--coral); margin: .5rem 0 1rem; }
.contact strong { font-family: var(--display); color: #2b3350; display: block; margin-bottom: .2rem; }
.contact a { font-size: 1.15rem; }

/* team */
.member { padding: 2rem 0; border-top: 1px dashed rgba(46,42,51,.25); }
.member:first-of-type { border-top: 0; padding-top: .5rem; }
.member h2 { margin: 0 0 .3rem; }
.member .role { font-family: var(--display); font-weight: 600; color: var(--coral-ink); font-size: 1.1rem; margin: 0 0 1rem; }
.ext-links p { margin: 0 0 .5rem; }
.ext-links h3 { margin: 1.2rem 0 .5rem; font-size: 1.15rem; }
.ext-links h3 a { color: #2b3350; }
.ext-links ul, .chips { list-style: none; padding: 0; margin: 0 0 .9rem; display: flex; flex-wrap: wrap; gap: .5rem .55rem; }
.ext-links li a, .chips a {
  display: inline-block; padding: .35rem .85rem; border-radius: 999px; text-decoration: none;
  font-family: var(--display); font-weight: 500; font-size: .98rem; border: 1.5px solid currentColor;
}
.ext-links li a { color: #2b3350; }
.ext-links li a:hover { background: rgba(43,51,80,.07); }
.ext-links .src { font-size: .95rem; }

/* studio members strip (home) */
.makers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 2rem; }
.maker { background: var(--night-3); border: 1px solid var(--line); border-radius: var(--r); padding: 1.5rem 1.6rem; }
.maker h3 { margin: 0 0 .35rem; font-size: 1.4rem; }
.maker p { margin: 0; color: var(--muted); }
.maker a { font-family: var(--display); font-weight: 600; }

/* ---------- Mike's & Jon's game pages: cinematic ---------- */
.game-hero { position: relative; min-height: min(86vh, 760px); display: grid; align-items: end; overflow: hidden; }
.game-hero > img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.game-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(10,12,24,.9) 0%, rgba(10,12,24,.6) 38%, rgba(10,12,24,0) 68%), linear-gradient(0deg, var(--night) 0%, rgba(16,21,42,0) 40%); }
.game-hero .wrap { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.game-hero .logo { width: min(30rem, 80vw); margin: 0 0 1rem -.5rem; filter: drop-shadow(0 8px 22px rgba(0,0,0,.6)); }
.game-hero .logo.lockup { width: min(22rem, 70vw); }
.game-hero .hero-tag { font-size: clamp(1.15rem, 2vw, 1.4rem); max-width: 34ch; color: #f1ebdf; text-shadow: 0 2px 12px rgba(0,0,0,.6); margin-bottom: 1.6rem; }
.byline { font-family: var(--display); font-weight: 600; color: var(--gilt); margin: 0 0 .6rem; }

.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 2.5rem; }
.shot { margin: 0; border-radius: 14px; overflow: hidden; background: var(--night-3); border: 1px solid var(--line); }
.shot img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .6s ease; }
.shot:hover img { transform: scale(1.03); }
.shot figcaption { font-family: var(--display); font-weight: 600; padding: .75rem 1rem .85rem; }
.chips a { color: var(--gilt); }
.chips a:hover { background: rgba(226,184,102,.1); }
.credit { font-size: .92rem; color: var(--muted); margin-top: 2.5rem; }

.wip { display: inline-block; padding: .2rem .8rem; border: 2px dashed var(--accent, var(--gilt)); border-radius: 999px; font-family: var(--display); font-weight: 700; color: var(--accent, var(--gilt)); font-size: .95rem; margin: 0 0 1rem; }
.rtd-art { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 60px rgba(0,0,0,.4); }

/* ---------- Footer ---------- */
.site-footer { color: #c9c2b1; font-size: .95rem; border-top: 1px solid var(--line); background: var(--night); }
.site-footer .inner { max-width: var(--maxw); margin: 0 auto; padding: 2.2rem 1.5rem 3rem; display: flex; flex-wrap: wrap; gap: 1rem 3rem; justify-content: space-between; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.3rem; }
.site-footer p { margin: 0; }

/* ---------- Small screens ---------- */
@media (max-width: 860px) {
  .split, .pair, .pair.flip { grid-template-columns: 1fr; }
  .pair.flip > :first-child { order: 0; }
  .pair .taped { margin-top: 2rem; }
  .makers, .shots { grid-template-columns: 1fr; }
  .board { grid-template-columns: 1fr 1fr; }
  .shelf { flex-direction: column; height: auto; }
  .spine { flex: none !important; height: 300px; }
  .spine-title { display: none; }
  .spine-body { opacity: 1 !important; transform: none; }
  .tje-cover-title { display: none; }
  .spine::before { background: linear-gradient(180deg, rgba(8,10,22,.15) 0%, rgba(8,10,22,.92) 70%); }
  .spine.tje::before { background: none; }
  .spine { height: 320px; }
  .nav-more { flex-basis: 100%; order: 9; }
  .nav-more ul { position: static; margin-top: .4rem; box-shadow: none; white-space: normal; }
}
@media (max-width: 760px) {
  .spread { grid-template-columns: 1fr; }
  .spread::after { display: none; }
  .facts th { width: 9rem; }
  .facts-panel { grid-template-columns: 1fr; }
  .site-header { position: static; }
}
@media (max-width: 480px) { .board { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }

/* shelf slideshow controls */
.shelf-controls { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; }
.shelf-controls[hidden] { display: none; }
.shelf-toggle {
  font-family: var(--display); font-weight: 600; font-size: .95rem; color: var(--muted); cursor: pointer;
  background: none; border: 1px solid var(--line); border-radius: 999px; padding: .35rem .9rem;
}
.shelf-toggle:hover { color: var(--text); border-color: rgba(226,184,102,.5); }
.shelf-dots { display: flex; gap: .5rem; }
.shelf-dots button {
  width: 2.2rem; height: .4rem; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(236,228,210,.22); transition: background .3s ease, width .3s ease;
}
.shelf-dots button:hover { background: rgba(236,228,210,.45); }
.shelf-dots button[aria-current] { background: var(--gilt); width: 3.2rem; }
/* while the slideshow runs, let the open spine win over the hover rules only when nothing is hovered */

/* "In development" badge on the cozy Till Journal's End page */
.cozy-wip { --accent: var(--coral-ink); margin-bottom: .6rem; }

/* =====================================================================
   v3: per-game colours, Chakra Petch + Atkinson Hyperlegible,
   shelf + progress reel, studio line, game grid, member cards
   ===================================================================== */
:root {
  --c-tje: #f3a07e;   /* Till Journal's End: coral */
  --c-val: #a993f0;   /* Destiny of Valendhar: arcane violet */
  --c-mta: #f2a93b;   /* Mayan Temple Adventures: sun amber */
  --c-rtd: #4fb3bf;   /* The Road to Damascus: teal */
  --display: "Chakra Petch", "Segoe UI", system-ui, sans-serif;
  --text-font: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
}
/* cozy pages keep their own type */
body.is-cozy { --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif; --text-font: "Lora", Georgia, serif; }
.site-header, .site-footer { --display: "Chakra Petch", "Segoe UI", system-ui, sans-serif; --text-font: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif; font-family: var(--text-font); }
h1, h2, h3 { letter-spacing: -.005em; }

/* game colour hooks */
.tje, .game-tje { --accent: var(--c-tje); }
.val, .game-val { --accent: var(--c-val); }
.mta, .game-mta { --accent: var(--c-mta); }
.rtd, .game-rtd { --accent: var(--c-rtd); }
.spine.val, .spine.mta, .spine.rtd { --accent: inherit; }
.spine.val { --accent: var(--c-val); } .spine.mta { --accent: var(--c-mta); } .spine.rtd { --accent: var(--c-rtd); }
.spine.tje .spine-tag { background: var(--coral-ink); color: #fff; }

/* Mike's and Jon's pages take their game's colour */
body[class*="game-"] .byline { color: var(--accent); }
body[class*="game-"] .btn-gold { background: var(--accent); box-shadow: 0 4px 0 color-mix(in srgb, var(--accent) 55%, #000); }
body[class*="game-"] .btn-gold:hover { box-shadow: 0 5px 0 color-mix(in srgb, var(--accent) 55%, #000); }
body[class*="game-"] .chips a:hover { border-color: var(--accent); }

/* ---------- Home hero: the shelf, with a progress reel under it ---------- */
.studio-hero { padding: clamp(1.5rem, 4vw, 2.75rem) 0 2rem; }
.reel { display: flex; gap: .7rem; margin-top: .9rem; align-items: stretch; }
.reel-tab {
  flex: 1 1 0; min-width: 0; cursor: pointer; text-align: left; font: inherit; color: var(--muted);
  background: var(--night-2); border: 1px solid var(--line); border-radius: 10px; padding: .75rem 1rem 0;
  display: flex; flex-direction: column; gap: .55rem; transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.reel-tab.tje { flex-grow: 1.5; }
.reel-tab:hover { color: var(--text); border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.reel-tab[aria-current] { color: var(--text); background: var(--night-3); border-color: color-mix(in srgb, var(--accent) 70%, transparent); }
.reel-name { font-family: var(--display); font-weight: 700; font-size: 1.02rem; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reel-name::before { content: ""; display: inline-block; width: .6rem; height: .6rem; border-radius: 2px; background: var(--accent); margin-right: .55rem; vertical-align: .05em; }
.reel-name .short { display: none; }
.reel-bar { display: block; height: 3px; margin: 0 -1rem; background: rgba(236,228,210,.12); overflow: hidden; border-radius: 0 0 10px 10px; }
.reel-bar span { display: block; height: 100%; width: 0; background: var(--accent); }
.reel-tab[aria-current] .reel-bar span { animation: reel-fill 6s linear forwards; }
.reel.is-paused .reel-tab[aria-current] .reel-bar span { animation-play-state: paused; }
@keyframes reel-fill { from { width: 0; } to { width: 100%; } }
.reel-pause {
  flex: 0 0 3.6rem; cursor: pointer; color: var(--text); background: var(--night-2);
  border: 1px solid rgba(236,228,210,.35); border-radius: 10px; display: grid; place-items: center;
}
.reel-pause:hover { border-color: var(--text); }
.reel-pause .i-play { display: none; }
.reel-pause[aria-pressed="true"] .i-play { display: block; }
.reel-pause[aria-pressed="true"] .i-pause { display: none; }
@media (max-width: 1100px) { .reel-name .full { display: none; } .reel-name .short { display: inline; } }
@media (max-width: 860px) { .reel { display: none; } }
@media (prefers-reduced-motion: reduce) { .reel-tab[aria-current] .reel-bar span { animation: none; width: 100%; } }

/* ---------- Studio line ---------- */
.studio-line { background: var(--night-2); border-block: 1px solid var(--line); padding: clamp(2.5rem, 6vw, 4rem) 0; }
.studio-line p { margin: 0; max-width: 34ch; font-family: var(--display); font-weight: 600; font-size: clamp(1.5rem, 1.4vw + 1rem, 2.25rem); line-height: 1.25; color: var(--text); text-wrap: balance; }

/* ---------- Section heads ---------- */
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1.5rem; margin-bottom: 2rem; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--muted); }
.section-head a { font-family: var(--display); font-weight: 700; }

/* ---------- Game grid ---------- */
.game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.game-card { display: flex; flex-direction: column; background: var(--night-2); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 14px; overflow: hidden; }
.card-art { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--night-3); position: relative; }
.card-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.game-card:hover .card-art img { transform: scale(1.03); }
.game-card.rtd .card-art img { object-position: center 30%; }
.card-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; align-items: flex-start; gap: .65rem; flex-grow: 1; }
.card-body h3 { margin: 0; font-size: 1.55rem; }
.card-body h3 a { color: var(--text); text-decoration: none; }
.card-body h3 a:hover { color: var(--accent); }
.card-body p { margin: 0; color: var(--muted); }
.card-body .line { font-style: italic; color: var(--text); }
.card-body .by { margin-top: auto; padding-top: .4rem; font-family: var(--display); font-weight: 600; color: var(--accent); }
.badge { display: inline-block; font-family: var(--display); font-weight: 700; font-size: .85rem; padding: .2rem .7rem; border-radius: 6px; color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, transparent); }

/* Till Journal's End: the wide, cozy feature card */
.game-card.feature { grid-column: 1 / -1; display: grid; grid-template-columns: 1.15fr 1fr; background: var(--paper); color: var(--ink); border: 0; border-top: 0; box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.game-card.feature .card-art { aspect-ratio: auto; min-height: 100%; background: repeating-linear-gradient(135deg, var(--paper-2) 0 14px, var(--paper) 14px 28px); }
.game-card.feature .card-art img[data-missing] { display: none; }
.game-card.feature .card-art .tje-cover-title { position: absolute; inset: 0; display: grid; place-items: center; padding: 2rem; text-align: center; font-family: var(--cozy); font-weight: 700; font-size: clamp(2rem, 4vw, 3.2rem); color: var(--coral); line-height: 1.05; opacity: 1; }
.game-card.feature .card-art img:not([data-missing]) + .tje-cover-title { display: none; }
.game-card.feature .card-body { padding: clamp(1.6rem, 3vw, 2.6rem); gap: .8rem; }
.game-card.feature .badge { color: var(--coral-ink); background: rgba(243,160,126,.22); }
.game-card.feature h3 { font-size: clamp(2rem, 3.4vw, 2.8rem); }
.game-card.feature h3 a { color: var(--coral); font-family: var(--cozy); }
.game-card.feature p { color: var(--ink-soft); font-family: "Lora", Georgia, serif; }
.game-card.feature .line { color: var(--ink); }
.mini-facts { display: flex; flex-wrap: wrap; gap: .6rem 1.8rem; margin: .4rem 0 .2rem; }
.mini-facts dt { font-family: var(--display); font-weight: 700; font-size: .85rem; color: var(--coral-ink); }
.mini-facts dd { margin: 0; font-family: var(--display); font-weight: 600; color: var(--ink); }
.game-card.feature .btn-line { color: var(--ink); border-color: rgba(46,42,51,.4); }
.game-card.feature .btn-line:hover { border-color: var(--ink); color: var(--ink); }

/* ---------- Member cards (placeholders until the devs send quotes and photos) ---------- */
.member-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.member-card { display: flex; gap: 1.1rem; align-items: flex-start; background: var(--night-3); border: 1px solid var(--line); border-radius: 14px; padding: 1.4rem; }
.photo-ph { flex: 0 0 4.75rem; height: 4.75rem; border-radius: 10px; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 1.6rem; color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, transparent); border: 1.5px dashed color-mix(in srgb, var(--accent) 60%, transparent); }
.member-card h3 { margin: 0 0 .2rem; font-size: 1.3rem; }
.member-card p { margin: 0 0 .5rem; font-size: .98rem; }
.member-card .role { color: var(--muted); }
.member-card .role a { color: var(--accent); }
.member-card .ph { color: var(--muted); font-style: italic; opacity: .8; }

@media (max-width: 960px) {
  .game-grid, .member-grid { grid-template-columns: 1fr 1fr; }
  .game-card.feature { grid-template-columns: 1fr; }
  .game-card.feature .card-art { aspect-ratio: 16 / 9; }
}
@media (max-width: 640px) { .game-grid, .member-grid { grid-template-columns: 1fr; } }

/* ---------- Phones: the shelf becomes a one-panel slideshow (swipe or tap the tabs) ---------- */
@keyframes spine-in { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 860px) {
  .shelf { flex-direction: row; height: clamp(400px, 64vh, 520px); }
  .spine { display: none; flex: 1 1 auto !important; height: auto !important; touch-action: pan-y; }
  .spine.is-open { display: block; animation: spine-in .45s ease; }
  .spine-body { padding: 1.3rem 1.3rem 1.4rem; }
  .spine.tje .tje-cover-title { display: block; opacity: 1; left: 1.3rem; right: 3rem; top: 1.6rem; font-size: clamp(2.1rem, 10vw, 2.8rem); }
  .reel { display: flex; gap: .45rem; margin-top: .7rem; }
  .reel-tab { padding: .6rem .7rem 0; border-radius: 9px; gap: .45rem; }
  .reel-tab.tje { flex-grow: 1; }
  .reel-tab[aria-current] { flex-grow: 4; }
  .reel-bar { margin: 0 -.7rem; border-radius: 0 0 9px 9px; }
  .reel-name { font-size: .9rem; }
  .reel-pause { flex-basis: 2.9rem; }
}
@media (max-width: 860px) {
  .reel-tab:not([aria-current]) .reel-name .short { display: none; }
  .reel-tab:not([aria-current]) .reel-name::before { margin-right: 0; }
  .reel-tab:not([aria-current]) .reel-name { text-align: center; }
}
@media (max-width: 420px) { .reel-name { font-size: .82rem; } .reel-name::before { margin-right: .4rem; } .reel-tab { padding-inline: .55rem; } .reel-bar { margin-inline: -.55rem; } }
@media (prefers-reduced-motion: reduce) { .spine.is-open { animation: none; } }

/* ---------- Real Till Journal's End art: logo over the key art ---------- */
.tje-cover-title img { display: block; width: 100%; max-width: 30rem; height: auto; filter: drop-shadow(0 3px 8px rgba(90,50,20,.3)); }
.spine.tje .spine-title { text-shadow: 0 0 6px var(--paper), 0 0 2px var(--paper); }
.game-card.feature .card-art .tje-cover-title,
.game-card.feature .card-art img:not([data-missing]) + .tje-cover-title { display: block; inset: auto; left: 1.4rem; top: 1.4rem; right: 34%; padding: 0; }
.card-art .tje-cover-title img, .game-card:hover .card-art .tje-cover-title img { height: auto; object-fit: contain; transform: none; }
/* transparent logos: hide the placeholder pattern and label once the image loads */
.slot:has(> img:not([data-missing]))::before, .slot:has(> img:not([data-missing]))::after { display: none; }
.slot.contain:has(> img:not([data-missing])) { background: var(--night); }
@media (max-width: 860px) {
  .spine.tje::before { background: linear-gradient(180deg, transparent 28%, rgba(251,243,228,.96) 60%); }
}

/* ---------- Member cards: real photos, quote and favourite games ---------- */
.member-card .photo { flex: 0 0 4.75rem; width: 4.75rem; height: 4.75rem; border-radius: 10px; object-fit: cover; border: 2px solid var(--accent); }
.member-card .quote:not(.ph) { font-style: italic; color: var(--text); }
.member-card .quote span { display: block; font-style: normal; font-size: .85rem; color: var(--muted); margin-top: .15rem; }
.member-card .fav-h { margin: .7rem 0 .25rem; font-family: var(--display); font-weight: 700; font-size: .9rem; color: var(--accent); }
.member-card .fav-list { margin: 0; padding-left: 1.1rem; font-size: .95rem; color: var(--text); }
.member-card .fav-list li { margin-bottom: .15rem; }

/* Phone fix (Dec 1, 2026): let long text in the press kit fact table wrap */
@media (max-width: 600px) {
  .facts td { overflow-wrap: anywhere; }
}
