/* 00-fonts.css */
/* Self-hosted variable fonts (SIL OFL 1.1, licence texts in /assets/fonts/).
   Outfit: display, UI and body. JetBrains Mono: metadata, labels, track numbers and times.
   Turkish needs both subsets: ı is in "latin", ğ ş İ Ğ Ş are in "latin-ext". */

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/outfit-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/outfit-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('/assets/fonts/jetbrains-mono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('/assets/fonts/jetbrains-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Metric-matched fallback so the swap from the system font barely moves the text. */
@font-face {
  font-family: 'Outfit Fallback';
  src: local('Arial'), local('Helvetica Neue'), local('Roboto');
  size-adjust: 96%;
  ascent-override: 104%;
  descent-override: 27%;
  line-gap-override: 0%;
}

/* 10-tokens.css */
/* Design tokens — "Karanlık sahne, lime sinyal".
   Chrome is a quiet dark stage; lime is the only chrome accent. Each game brings its own accent:
   data-accent="<game-slug>" on any element re-maps --accent for that subtree (colours come from src/lib/art.js). */

:root {
  /* Surfaces */
  --bg: #0c0c10;
  --bg-raised: #14141a;
  --bg-raised-2: #1b1b23;
  --bg-inset: #07070a;
  --line: rgb(255 255 255 / 0.09);
  --line-strong: rgb(255 255 255 / 0.2);

  /* Text */
  --text: #f1f1ec;
  --text-2: #b9b9c6;
  --text-3: #8d8d9c;

  /* Signal */
  --lime: #c8f023;
  --ink: #0c0c10;
  --accent: var(--lime);
  --accent-ink: var(--ink);

  /* Type */
  --font-display: 'Outfit', 'Outfit Fallback', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', 'SF Mono', Menlo, Consolas, monospace;

  --fs-hero: clamp(2.9rem, 1.6rem + 6.2vw, 7rem);
  --fs-display: clamp(2rem, 1.15rem + 3.6vw, 4.25rem);
  --fs-h1: clamp(2.5rem, 1.5rem + 4.4vw, 5.25rem);
  --fs-h2: clamp(2rem, 1.35rem + 2.6vw, 3.5rem);
  --fs-h3: clamp(1.375rem, 1.2rem + 0.7vw, 1.75rem);
  --fs-lead: clamp(1.125rem, 1rem + 0.55vw, 1.375rem);
  --fs-body: clamp(1.0625rem, 1rem + 0.2vw, 1.125rem);
  --fs-small: 0.9375rem;
  --fs-mono: 0.75rem;
  --fs-mono-s: 0.6875rem;

  --track-display: -0.03em;
  --track-title: -0.02em;
  --track-mono: 0.08em;

  --measure: 68ch;

  /* Space (4px base) */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;
  --sp-10: 8rem;
  --section-y: clamp(4.5rem, 2.5rem + 8vw, 9rem);

  /* Layout */
  --page-max: 82.5rem;
  --gutter: clamp(1.25rem, 0.4rem + 3.6vw, 3rem);
  --header-h: 4rem;

  /* Shape */
  --r-card: 1.25rem;
  --r-media: 0.875rem;
  --r-small: 0.625rem;
  --r-pill: 62.5rem;
  --stroke: 1.5px;
  --card-pad: 0.375rem;

  /* Motion */
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-in-out: cubic-bezier(0.6, 0, 0.2, 1);
  --dur-fast: 160ms;
  --dur: 280ms;
  --dur-slow: 700ms;

  --z-header: 50;
  --z-player: 60;
  --z-grain: 80;
}

@media (min-width: 56.25em) {
  :root {
    --header-h: 4.75rem;
  }
}

/* Derived accent tones are recomputed wherever the accent changes. */
:root,
[data-accent] {
  --accent-soft: color-mix(in srgb, var(--accent) 14%, transparent);
  --accent-line: color-mix(in srgb, var(--accent) 55%, transparent);
}

/* 20-base.css */
/* Reset, document defaults, typography, utilities. */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  color-scheme: dark;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

main {
  flex: 1 0 auto;
  display: block;
}

main:focus {
  outline: none;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd,
ol,
ul {
  margin: 0;
}

ol,
ul {
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: var(--track-title);
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

img,
picture,
video,
svg {
  display: block;
  max-width: 100%;
}

img,
video {
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

[hidden] {
  display: none !important;
}

/* --- Icons and shapes ------------------------------------------------ */

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
}

.icon--brand {
  fill: currentColor;
}

.icon--ui {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* The four logo shapes: thick round strokes like the logo. Size with width/height or font-size. */
.shape {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.logo-mark {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --- Text styles ------------------------------------------------------ */

/* Mono metadata line: dates, platforms, credits, statuses. Keeps the case of the text. */
.meta {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--text-3);
}

/* Uppercase label. ONLY for interface words from the i18n dictionary: Turkish uppercasing turns every
   i into İ, which is wrong for names such as Windows, Unity, Studios or Market is Fine. */
.caps {
  letter-spacing: var(--track-mono);
  text-transform: uppercase;
}

.meta a {
  text-decoration: none;
}

.meta a:hover {
  color: var(--text);
}

/* "A · B · C": the separator stays glued to the item before it (never starts a line),
   and a long item wraps like ordinary text instead of dropping below as a block. */
.meta--list > :not(:last-child)::after {
  content: '\00a0· ';
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--text-2);
  max-width: 44ch;
}

/* Running text from the model. */
.prose {
  max-width: var(--measure);
  color: var(--text-2);
}

.prose > * + * {
  margin-top: 1.1em;
}

.prose a {
  color: var(--text);
  text-decoration-color: var(--accent-line);
}

.prose a:hover {
  text-decoration-color: var(--accent);
}

.prose ul {
  display: grid;
  gap: 0.6em;
}

.prose ul > li {
  position: relative;
  padding-left: 1.5em;
}

/* Square bullet: the □ of the logo. */
.prose ul > li::before {
  content: '';
  position: absolute;
  left: 0.1em;
  top: 0.55em;
  width: 0.5em;
  height: 0.5em;
  border: var(--stroke) solid var(--accent);
  border-radius: 0.14em;
}

/* --- Utilities -------------------------------------------------------- */

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--page-max));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 100;
  padding: 0.75rem 1.125rem;
  border-radius: var(--r-pill);
  background: var(--lime);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
  outline-color: var(--text);
}

/* Sections fade and rise once when they enter the viewport (core.js adds .is-in).
   Without JavaScript, or with reduced motion, everything is simply visible. */
@media (prefers-reduced-motion: no-preference) {
  .vx-reveal-on .reveal {
    opacity: 0;
    transform: translateY(1.25rem);
    transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
    transition-delay: calc(var(--reveal-order, 0) * 70ms);
  }

  .vx-reveal-on .reveal.is-in {
    opacity: 1;
    transform: none;
  }
}

/* Very light film grain over the whole stage. */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: var(--z-grain);
  pointer-events: none;
  background-image: url('/assets/images/grain.png');
  background-size: 180px 180px;
  opacity: 0.5;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* 30-layout.css */
/* Page shell: sticky header, mobile sheet menu, sections, footer. */

/* --- Header ----------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  border-bottom: 1px solid var(--line);
  transition: background-color var(--dur) ease, border-color var(--dur) ease;
}

/* At the very top of a page that opens with full-bleed art the bar is clear glass. */
.is-top:has(.main--hero) .site-header {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom-color: transparent;
}

.site-header__bar {
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--sp-5);
}

.site-header__tools {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-left: auto;
}

/* Logo lockup: mark + two justified lines, proportions traced from the brand logo. */
.logo {
  --logo-size: 2.5rem;
  display: inline-flex;
  align-items: center;
  gap: calc(var(--logo-size) * 0.14);
  color: var(--lime);
  min-height: 2.75rem;
  text-decoration: none;
  flex: none;
}

.logo .logo-mark {
  width: var(--logo-size);
  height: var(--logo-size);
}

.logo__word {
  display: grid;
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: 0;
  white-space: nowrap;
}

.logo__word > :first-child {
  font-size: calc(var(--logo-size) * 0.356);
}

.logo__word > :last-child {
  font-size: calc(var(--logo-size) * 0.44);
}

.site-nav {
  display: none;
  margin-left: auto;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.4vw, 2.5rem);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  min-height: 2.75rem;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  transition: color var(--dur-fast) ease;
}

/* The shapes are the signal: always lime. The current section's shape is filled. */
.nav-link .shape {
  font-size: 0.8125rem;
  color: var(--lime);
  transition: transform var(--dur) var(--ease-out);
}

.nav-link:hover,
.nav-link[aria-current] {
  color: var(--text);
}

.nav-link[aria-current] .shape:not(.shape--cross) {
  fill: var(--lime);
}

.nav-link[aria-current] .shape--cross {
  stroke-width: 5;
}

.nav-link:hover .shape {
  transform: rotate(90deg);
}

.nav-link:hover .shape--triangle {
  transform: rotate(120deg);
}

/* Over full-bleed art the labels need full strength. */
.is-top:has(.main--hero) .site-header .nav-link,
.is-top:has(.main--hero) .site-header .lang__item {
  color: var(--text);
}

.is-top:has(.main--hero) .site-header .lang {
  border-color: rgb(255 255 255 / 0.4);
  background: rgb(12 12 16 / 0.35);
}

/* TR / EN switch */
.lang {
  display: inline-flex;
  padding: 0.1875rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  font-weight: 600;
  letter-spacing: var(--track-mono);
}

.lang__item {
  display: grid;
  place-items: center;
  min-width: 2.5rem;
  min-height: 2.5rem;
  padding-inline: 0.625rem;
  border-radius: var(--r-pill);
  color: var(--text-2);
  text-decoration: none;
  transition: color var(--dur-fast) ease, background-color var(--dur-fast) ease;
}

.lang__item.is-current {
  background: rgb(255 255 255 / 0.12);
  color: var(--text);
}

a.lang__item:hover {
  color: var(--lime);
}

.lang--large .lang__item {
  min-width: 3.5rem;
  min-height: 2.75rem;
  font-size: 0.875rem;
}

/* Touch screens: full 44px targets. */
@media (pointer: coarse) {
  .lang__item {
    min-width: 2.75rem;
    min-height: 2.75rem;
  }
}

/* Round icon button (menu, close, carousel toggle). */
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  flex: none;
  border: var(--stroke) solid var(--line-strong);
  border-radius: 50%;
  color: var(--text);
  transition: border-color var(--dur-fast) ease, color var(--dur-fast) ease, background-color var(--dur-fast) ease;
}

.icon-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

@media (min-width: 56.25em) {
  .logo {
    --logo-size: 2.75rem;
  }

  .site-nav {
    display: block;
  }

  .site-header__tools {
    margin-left: 0;
  }

  .menu-btn {
    display: none;
  }
}

/* Without JavaScript the sheet cannot open. Below the desktop width the four links then stand in a second
   row of the header (all four fit a 320px screen); the header grows by that row through --header-h, which
   every offset on the site is derived from. */
.no-js .menu-btn {
  display: none;
}

@media (max-width: 56.24em) {
  html.no-js {
    --header-h: 6.75rem;
  }

  .no-js .site-header__bar {
    flex-wrap: wrap;
    align-content: center;
    gap: 0 var(--sp-3);
  }

  .no-js .site-nav {
    display: block;
    order: 3;
    flex: 0 0 100%;
    margin: 0;
  }

  .no-js .site-nav__list {
    justify-content: space-between;
    gap: 0.25rem;
  }

  .no-js .site-nav .nav-link {
    gap: 0.4em;
    font-size: clamp(0.8125rem, 0.5rem + 1.6vw, 0.9375rem);
  }
}

/* --- Mobile sheet menu (a <dialog> opened with showModal) --------------- */

.sheet {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--bg);
  color: var(--text);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.sheet[open] {
  display: grid;
  grid-template-rows: auto 1fr auto;
  animation: sheet-in var(--dur) var(--ease-out);
}

.sheet::backdrop {
  background: var(--bg);
}

@keyframes sheet-in {
  from {
    opacity: 0;
    transform: translateY(-0.75rem);
  }
}

.sheet__bar {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sheet__nav {
  align-self: center;
  padding-block: var(--sp-5);
}

.sheet__list .nav-link {
  width: 100%;
  min-height: 4.5rem;
  gap: 0.5em;
  padding-block: 0.5rem;
  border-bottom: 1px solid var(--line);
  font-size: clamp(2.25rem, 11vw, 3.25rem);
  font-weight: 800;
  letter-spacing: var(--track-display);
  line-height: 1;
  color: var(--text);
}

.sheet__list li:first-child .nav-link {
  border-top: 1px solid var(--line);
}

.sheet__list .nav-link .shape {
  font-size: 0.6em;
  color: var(--lime);
}

.sheet__foot {
  display: grid;
  justify-items: start;
  gap: var(--sp-4);
  padding-block: var(--sp-5) var(--sp-6);
}

.sheet__mail {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  color: var(--text-2);
}

/* --- Sections ---------------------------------------------------------- */

.section {
  padding-block: var(--section-y);
}

.section + .section {
  padding-top: 0;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--sp-3) var(--sp-5);
  padding-bottom: var(--sp-5);
  margin-bottom: clamp(1.75rem, 1rem + 2.4vw, 3rem);
  border-bottom: 1px solid var(--line);
}

.section-head__title {
  display: flex;
  align-items: center;
  gap: 0.36em;
  margin-right: auto;
  font-size: var(--fs-h2);
  letter-spacing: var(--track-display);
}

.section-head__title .shape {
  font-size: 0.62em;
  color: var(--accent);
}

.section-head__meta {
  color: var(--text-3);
}

/* Phones: the link always sits right of the title, the mono meta goes below. */
@media (max-width: 39.99em) {
  .section-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--sp-1) var(--sp-4);
  }

  .section-head__title {
    grid-column: 1;
  }

  .section-head__link {
    grid-column: 2;
    grid-row: 1;
  }

  .section-head__meta {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

/* Inner pages: main content starts below the header with a calm page header. */
.page {
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem) var(--section-y);
}

.page-head {
  display: grid;
  gap: var(--sp-4);
  padding-bottom: clamp(2rem, 1rem + 3vw, 3.5rem);
  margin-bottom: clamp(2rem, 1rem + 3vw, 3.5rem);
  border-bottom: 1px solid var(--line);
}

.page-head__eyebrow,
.page-head__eyebrow a {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  color: var(--text-2);
}

/* The breadcrumb link keeps a 44px touch target without changing the line height. */
.page-head__eyebrow a {
  min-height: 2.75rem;
  margin-block: -0.8125rem;
}

.page-head__eyebrow .shape {
  font-size: 1rem;
  color: var(--accent);
}

.page-head__title {
  font-size: var(--fs-h1);
  letter-spacing: var(--track-display);
  line-height: 0.98;
}

/* --- Footer ------------------------------------------------------------- */

.site-footer {
  margin-top: auto;
  padding-top: clamp(3rem, 2rem + 4vw, 5.5rem);
  border-top: 1px solid var(--line);
  background: var(--bg-inset);
}

/* Sign-off: the four shapes rise over the bottom edge like a horizon, in their own band below the
   legal line, so nothing is ever set on top of them. The band shows the upper ~45% of each shape. */
.site-footer__shapes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.75rem, 3.5vw, 3.5rem);
  aspect-ratio: 10 / 1;
  overflow: hidden;
  margin-top: var(--sp-5);
  color: var(--text);
  opacity: 0.16;
  pointer-events: none;
}

.site-footer__shapes .shape {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  stroke-width: 1.5px;
}

.site-footer__shapes .shape * {
  vector-effect: non-scaling-stroke;
}

.site-footer__grid {
  display: grid;
  gap: var(--sp-7);
}

.site-footer__brand {
  display: grid;
  justify-items: start;
  gap: var(--sp-4);
  color: var(--text-2);
}

.site-footer__brand .logo {
  --logo-size: 3.25rem;
}

.footer-nav {
  display: grid;
  gap: 0.125rem;
}

.footer-nav .nav-link {
  font-size: 1.125rem;
}

.site-footer__contact {
  display: grid;
  justify-items: start;
  align-content: start;
  gap: var(--sp-4);
}

.site-footer__mail {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  font-size: 1.125rem;
  text-decoration-color: var(--line-strong);
  overflow-wrap: anywhere;
}

.site-footer__mail:hover {
  text-decoration-color: var(--lime);
}

.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3) var(--sp-5);
  margin-top: clamp(2.5rem, 2rem + 3vw, 4.5rem);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
}

.site-footer__base a.meta {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  color: var(--text-2);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
}

.site-footer__base .lang {
  margin-left: auto;
}

/* The contact column takes the width of its content (the address must not be squeezed out of the page);
   brand and nav share the rest. */
@media (min-width: 48em) {
  .site-footer__grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) auto;
  }
}

/* 40-components.css */
/* Components: buttons, chips, cards, media frames, facts, track rows, stats, social links. */

/* --- Buttons ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 3.25rem;
  padding: 0.5rem 1.5rem;
  border: var(--stroke) solid transparent;
  border-radius: var(--r-pill);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.15;
  text-decoration: none;
  transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur-fast) ease,
    border-color var(--dur-fast) ease, color var(--dur-fast) ease, filter var(--dur-fast) ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn--primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.btn--ghost {
  border-color: var(--line-strong);
  background: rgb(12 12 16 / 0.35);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--small {
  min-height: 2.75rem;
  padding-inline: 1.125rem;
  font-size: var(--fs-small);
}

.btn .icon--ui:last-child {
  transition: transform var(--dur) var(--ease-out);
}

.btn:hover .icon--ui:last-child {
  transform: translateX(3px);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

/* Text link with an arrow that nudges on hover. */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  min-height: 2.75rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.link-arrow .icon {
  color: var(--accent);
  transition: transform var(--dur) var(--ease-out);
}

a.link-arrow:hover,
.card:hover .link-arrow {
  color: var(--accent);
}

a.link-arrow:hover .icon,
.card:hover .link-arrow .icon {
  transform: translateX(4px);
}

/* --- Chips -------------------------------------------------------------- */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  min-height: 1.75rem;
  padding: 0.25rem 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--text);
  white-space: nowrap;
  max-width: 100%;
}

/* Below 24em a long chip ("Jam oyunu · itch.io'da ücretsiz") wraps inside its card instead of widening the page. */
@media (max-width: 23.99em) {
  .chip {
    white-space: normal;
  }
}

.chip__dot {
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
}

.chip .shape {
  font-size: 0.75rem;
  color: var(--accent);
}

/* On top of images: dark glass. */
.chip--media {
  border-color: rgb(255 255 255 / 0.16);
  background: rgb(12 12 16 / 0.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.chip--solid {
  border-color: transparent;
  background: var(--accent);
  color: var(--accent-ink);
}

.chip--solid .shape {
  color: inherit;
}

/* --- Cards -------------------------------------------------------------- */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--card-pad);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--bg-raised);
  transition: transform var(--dur) var(--ease-out), border-color var(--dur) ease, background-color var(--dur) ease;
}

/* The title link covers the whole card; other links inside stay clickable above it. */
.card__link {
  text-decoration: none;
  outline: none;
}

.card__link::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

.card a:not(.card__link) {
  position: relative;
  z-index: 2;
}

.card:has(.card__link:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (hover: hover) {
  .card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-line);
    background: var(--bg-raised-2);
  }
}

.card__arrow {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  flex: none;
  border: var(--stroke) solid var(--line-strong);
  border-radius: 50%;
  color: var(--text-2);
  transition: background-color var(--dur) ease, border-color var(--dur) ease, color var(--dur) ease, transform var(--dur) var(--ease-out);
}

.card:hover .card__arrow,
.card:has(.card__link:focus-visible) .card__arrow {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  transform: translateX(2px);
}

/* 16:9 game cover. */
.cover {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--r-media);
  background: var(--bg-inset);
}

.cover > img:not(.cover__backdrop) {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}

/* Art that must stay whole sits on a blurred copy of itself. */
.cover--contain > img:not(.cover__backdrop) {
  object-fit: contain;
}

.cover__backdrop {
  position: absolute;
  inset: -12%;
  width: 124%;
  height: 124%;
  max-width: none;
  object-fit: cover;
  filter: blur(22px) brightness(0.45) saturate(1.2);
}

.card:hover .cover > img:not(.cover__backdrop) {
  transform: scale(1.04);
}

/* Game card */
.game-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.5rem;
  padding: 1rem 1rem 0.875rem;
}

.game-card__body .chip-row {
  margin-bottom: 0.375rem;
}

.game-card__title {
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.1;
  transition: color var(--dur) ease;
}

.game-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  color: var(--text-2);
}

.game-card__tags > li {
  padding: 0.2rem 0.625rem;
  border-radius: var(--r-pill);
  background: rgb(255 255 255 / 0.06);
}

.card:hover .game-card__title {
  color: var(--accent);
}

.game-card__tagline {
  color: var(--text-2);
  line-height: 1.45;
}

.game-card__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-top: auto;
  padding-top: 0.875rem;
}

@media (min-width: 48em) {
  /* A group with a single game: cover and text side by side. */
  .game-card--wide {
    flex-direction: row;
    align-items: stretch;
  }

  .game-card--wide .game-card__media {
    position: relative;
    flex: 0 0 58%;
  }

  /* The frame is at least 16:9 and grows with the text column; the picture inside stays whole on its
     blurred copy (cover--contain), so a taller frame never crops a logo and never leaves a flat band. */
  .game-card--wide .game-card__media::before {
    content: '';
    display: block;
    padding-top: 56.25%;
  }

  .game-card--wide .cover {
    position: absolute;
    inset: 0;
    aspect-ratio: auto;
  }

  .game-card--wide .game-card__body {
    justify-content: center;
    gap: 0.75rem;
    padding: 1.5rem clamp(1.25rem, 3vw, 2.75rem);
  }

  .game-card--wide .game-card__title {
    font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.75rem);
    font-weight: 800;
    letter-spacing: var(--track-title);
    line-height: 1.02;
  }

  .game-card--wide .game-card__tagline {
    font-size: var(--fs-lead);
  }

  .game-card--wide .game-card__foot {
    margin-top: 0.75rem;
  }
}

/* Narrow side-by-side card: the tag pills would push the text column far past the picture. */
@media (min-width: 48em) and (max-width: 74.99em) {
  .game-card--wide .game-card__tags {
    display: none;
  }
}

/* Jam card */
.jam-card__media {
  display: grid;
  gap: 0.5rem;
}

.jam-card__photo {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: var(--r-media);
  background: var(--bg-inset);
}

/* Shown whole inside the frame (the card never grows wider than the photo's own 1024px). */
.jam-card__photo > img:not(.jam-card__backdrop) {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* An image of another shape rests on a blurred copy of itself, like the contained covers. */
.jam-card__backdrop {
  position: absolute;
  inset: -12%;
  width: 124%;
  height: 124%;
  max-width: none;
  object-fit: cover;
  filter: blur(22px) brightness(0.5) saturate(1.15);
}

.jam-card__credit {
  padding-inline: 0.625rem;
  font-size: var(--fs-mono-s);
}

.jam-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.875rem;
  padding: 1.25rem clamp(0.875rem, 2vw, 1.5rem) 1rem;
}

.jam-card__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.875rem;
}

.jam-card__title {
  font-size: clamp(1.625rem, 1.2rem + 1.5vw, 2.375rem);
  letter-spacing: var(--track-title);
  transition: color var(--dur) ease;
}

.card:hover .jam-card__title {
  color: var(--accent);
}

.jam-card__text {
  color: var(--text-2);
  max-width: 52ch;
}

.jam-card__more {
  margin-top: auto;
}

/* --- Facts (label / value rows) ------------------------------------------ */

.facts {
  display: grid;
}

.facts__row {
  display: grid;
  grid-template-columns: minmax(6.5rem, 0.32fr) 1fr;
  gap: var(--sp-4);
  align-items: baseline;
  padding-block: 0.7rem;
  border-top: 1px solid var(--line);
}

.facts dt {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  font-weight: 500;
  letter-spacing: var(--track-mono);
  text-transform: uppercase;
  color: var(--text-3);
}

.facts dd a {
  text-decoration-color: var(--accent-line);
}

.facts dd a:hover {
  color: var(--accent);
}

.facts--compact .facts__row {
  padding-block: 0.55rem;
  font-size: var(--fs-small);
}

/* --- Track rows ------------------------------------------------------------ */
/* Markup contract in TASARIM section 9. The player (src/js/20-player.js) sets the state:
   .is-current = the loaded track (playing or paused), aria-pressed="true" = it is playing right now. */

.track-list {
  border-top: 1px solid var(--line);
}

.track-list > li {
  border-bottom: 1px solid var(--line);
}

.track {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  min-height: 4.25rem;
  padding: 0.625rem 0.75rem 0.625rem 0.25rem;
  border-radius: var(--r-small);
  text-align: left;
  transition: background-color var(--dur-fast) ease;
}

.track--art {
  grid-template-columns: 2.5rem 3rem minmax(0, 1fr) auto;
}

.track.is-current,
.track[aria-pressed='true'] {
  background: var(--bg-raised);
}

@media (hover: hover) {
  .track:hover {
    background: var(--bg-raised);
  }
}

.track__no {
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-3);
}

.track__no > * {
  grid-area: 1 / 1;
  transition: opacity var(--dur-fast) ease, transform var(--dur-fast) var(--ease-out);
}

/* The number cell is the row's signal: number at rest, play on hover / focus and on the paused current
   track, moving bars while the track plays (pause on hover / focus: what a press would do). */
.track__no .icon,
.track__eq {
  color: var(--accent);
  opacity: 0;
  transform: scale(0.7);
}

.track__eq {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  width: 1rem;
  height: 0.875rem;
}

.track__eq > i {
  width: 3px;
  height: 100%;
  border-radius: 1px;
  background: currentColor;
  transform: scaleY(0.45);
  transform-origin: 50% 100%;
}

.track__eq > i:nth-child(2) {
  transform: scaleY(0.95);
}

.track__eq > i:nth-child(3) {
  transform: scaleY(0.65);
}

.track[aria-pressed='true'] .track__eq > i {
  animation: track-eq 0.9s ease-in-out -0.2s infinite alternate;
}

.track[aria-pressed='true'] .track__eq > i:nth-child(2) {
  animation-duration: 0.7s;
  animation-delay: -0.5s;
}

.track[aria-pressed='true'] .track__eq > i:nth-child(3) {
  animation-duration: 1.1s;
  animation-delay: -0.8s;
}

@keyframes track-eq {
  from {
    transform: scaleY(0.25);
  }

  to {
    transform: scaleY(1);
  }
}

.track:focus-visible .track__n,
.track.is-current .track__n,
.track[aria-pressed='true'] .track__n {
  opacity: 0;
}

.track:not([aria-pressed='true']):focus-visible .track__play,
.track.is-current:not([aria-pressed='true']) .track__play,
.track[aria-pressed='true'] .track__eq,
.track[aria-pressed='true']:focus-visible .track__pause {
  opacity: 1;
  transform: none;
}

.track[aria-pressed='true']:focus-visible .track__eq {
  opacity: 0;
}

/* Hover only where there is a real pointer: on touch screens it would stick to the last tapped row. */
@media (hover: hover) {
  .track:hover .track__n {
    opacity: 0;
  }

  .track:not([aria-pressed='true']):hover .track__play,
  .track[aria-pressed='true']:hover .track__pause {
    opacity: 1;
    transform: none;
  }

  .track[aria-pressed='true']:hover .track__eq {
    opacity: 0;
  }
}

.track__art {
  width: 3rem;
  height: 3rem;
  overflow: hidden;
  border-radius: 0.5rem;
  background: var(--bg-inset);
}

.track__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.track__main {
  display: grid;
  gap: 0.125rem;
  min-width: 0;
}

.track__title {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track.is-current .track__title,
.track[aria-pressed='true'] .track__title {
  color: var(--accent);
}

/* Featured marker (trackRow flag: true): a quiet dot after the title; the page explains it with a legend. */
.track__flag,
.track-legend__dot {
  display: inline-block;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: 0.18em;
}

.track__flag {
  margin-left: 0.5em;
}

.track__sub {
  font-size: var(--fs-small);
  line-height: 1.35;
  color: var(--text-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track__dur {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  font-weight: 500;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--text-2);
}

/* Link row that closes a track list ("all music"): same grid as a row with art, the circle where the cover would be. */
.track-more {
  display: grid;
  grid-template-columns: 2.5rem 3rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  min-height: 4.25rem;
  padding: 0.625rem 0.75rem 0.625rem 0.25rem;
  border-radius: var(--r-small);
  text-decoration: none;
  transition: background-color var(--dur-fast) ease;
}

.track-more__mark {
  grid-column: 2;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: var(--stroke) solid var(--line-strong);
  border-radius: 0.5rem;
  font-size: 1.125rem;
  color: var(--accent);
  transition: border-color var(--dur-fast) ease;
}

.track-more > .icon {
  color: var(--accent);
  transition: transform var(--dur) var(--ease-out);
}

/* The link row names an album: it wraps (two lines at most) instead of being cut. */
.track-more .track__title {
  overflow: visible;
  white-space: normal;
  text-wrap: pretty;
}

.track-more:hover {
  background: var(--bg-raised);
}

.track-more:hover .track__title {
  color: var(--accent);
}

.track-more:hover .track-more__mark {
  border-color: var(--accent);
}

.track-more:hover > .icon {
  transform: translateX(4px);
}

/* Phones: slimmer number column and cover; a title may take two lines instead of being cut. */
@media (max-width: 39.99em) {
  .track,
  .track-more {
    gap: 0.625rem;
    padding-right: 0.25rem;
  }

  .track {
    grid-template-columns: 1.5rem minmax(0, 1fr) auto;
  }

  .track--art,
  .track-more {
    grid-template-columns: 1.5rem 2.75rem minmax(0, 1fr) auto;
  }

  .track__art,
  .track-more__mark {
    width: 2.75rem;
    height: 2.75rem;
  }

  .track__title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    white-space: normal;
    font-size: 1.0625rem;
  }
}

/* --- Stats ------------------------------------------------------------------ */

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-6) var(--sp-5);
}

.stat {
  display: grid;
  align-content: start;
  gap: 0.5rem;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line-strong);
}

.stat__value {
  order: -1;
  font-size: clamp(2.75rem, 1.8rem + 3.6vw, 4.5rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: var(--track-display);
  font-variant-numeric: tabular-nums;
}

.stat__label {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--text-2);
}

.stat__note {
  display: block;
  color: var(--text-3);
}

/* Two columns on phones (a last odd item takes the full row), three on tablets, one row on desktop:
   a single stat is never left alone on a line. */
.stat:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

@media (min-width: 48em) {
  .stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stat:last-child:nth-child(odd) {
    grid-column: auto;
  }
}

@media (min-width: 64em) {
  .stats {
    grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  }
}

/* --- Social links and contact ------------------------------------------------- */

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.social {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: var(--stroke) solid var(--line-strong);
  border-radius: 50%;
  color: var(--text-2);
  text-decoration: none;
  transition: border-color var(--dur-fast) ease, color var(--dur-fast) ease, transform var(--dur-fast) var(--ease-out);
}

.social:hover {
  border-color: var(--lime);
  color: var(--lime);
  transform: translateY(-2px);
}

.social .icon {
  width: 1.125rem;
  height: 1.125rem;
}

.socials--labelled .social {
  display: inline-flex;
  gap: 0.6em;
  width: auto;
  padding-inline: 1rem 1.125rem;
  border-radius: var(--r-pill);
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--text);
}

.contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3) var(--sp-5);
}

.contact__mail {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  min-height: 2.75rem;
  font-size: clamp(1rem, 0.55rem + 2vw, 1.5rem);
  font-weight: 600;
  text-decoration-color: var(--accent-line);
  overflow-wrap: anywhere;
}

.contact__mail .icon {
  color: var(--accent);
}

.contact__mail:hover {
  color: var(--accent);
}

[data-vx-copy].is-copied {
  border-color: var(--accent);
  color: var(--accent);
}

/* Status line of the copy button (role="status"). With a message it takes its own row; while it is empty it is
   taken out of the flow (still rendered, so the announcement works), and the block is exactly as tall as without it. */
.contact__status {
  flex: 0 0 100%;
  color: var(--text-2);
}

.contact__status:empty {
  position: absolute;
}

/* --- Game mini: a compact link to a game inside something else ---------------------- */

.game-mini {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.875rem;
  min-height: 3.5rem;
  padding: 0.375rem 0.875rem 0.375rem 0.375rem;
  border: 1px solid var(--line);
  border-radius: var(--r-media);
  background: var(--bg-raised);
  text-decoration: none;
  transition: border-color var(--dur) ease, background-color var(--dur) ease;
}

/* On a card the tile is set into the surface instead of raised from it. */
.card .game-mini {
  background: var(--bg);
}

.game-mini__art {
  width: 2.75rem;
  height: 2.75rem;
  overflow: hidden;
  border-radius: 0.5rem;
  background: var(--bg-inset);
}

.game-mini__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-mini__text {
  display: grid;
  gap: 0.125rem;
  min-width: 0;
}

.game-mini__name {
  font-weight: 700;
  letter-spacing: var(--track-title);
  line-height: 1.2;
  transition: color var(--dur) ease;
}

.game-mini__meta {
  font-size: var(--fs-mono-s);
}

.game-mini > .icon {
  color: var(--text-3);
  transition: color var(--dur) ease, transform var(--dur) var(--ease-out);
}

.game-mini:hover {
  border-color: var(--accent-line);
  background: var(--bg-raised-2);
}

.game-mini:hover .game-mini__name {
  color: var(--accent);
}

.game-mini:hover > .icon {
  color: var(--accent);
  transform: translateX(3px);
}

/* --- Team ----------------------------------------------------------------------- */

.team {
  display: grid;
  gap: var(--sp-5);
}

.team__member {
  display: grid;
  align-content: start;
  gap: 0.375rem;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line-strong);
}

.team__name {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: var(--track-title);
  line-height: 1.15;
}

.team__role {
  color: var(--text-2);
}

.team__bio {
  margin-top: 0.375rem;
  max-width: 46ch;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text-2);
}

@media (min-width: 40em) {
  .team {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* --- Shape index: the logo as a menu ------------------------------------------------ */
/* A rounded frame holding the four section shapes in the logo's order. The 1px gaps show the list's
   background as hairlines, so the grid can be 2 x 2 or one row of four without border bookkeeping. */

.shape-index {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: var(--stroke) solid var(--line-strong);
  border-radius: 1.75rem;
  background: var(--line);
}

.shape-index > li {
  display: grid;
  background: var(--bg);
}

.shape-index__cell {
  display: grid;
  grid-template-rows: 1fr auto auto;
  gap: 0.125rem;
  min-height: clamp(7.5rem, 6rem + 5vw, 10rem);
  padding: 1.125rem 1.25rem 1rem;
  border-radius: 1.25rem;
  text-decoration: none;
  transition: background-color var(--dur) ease;
}

.shape-index__cell:focus-visible {
  outline-offset: -6px;
}

.shape-index__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 0.75rem;
}

.shape-index__top .shape {
  font-size: clamp(1.75rem, 1.45rem + 1vw, 2.375rem);
  color: var(--lime);
  transition: fill var(--dur) ease;
}

.shape-index__top .icon {
  color: var(--text-3);
  transition: color var(--dur) ease, transform var(--dur) var(--ease-out);
}

.shape-index__label {
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem);
  font-weight: 700;
  letter-spacing: var(--track-title);
  line-height: 1.15;
}

.shape-index__cell:hover,
.shape-index__cell:focus-visible {
  background: var(--bg-raised);
}

/* Same language as the active nav entry: the shape fills (the cross, which has no inside, thickens). */
.shape-index__cell:hover .shape:not(.shape--cross),
.shape-index__cell:focus-visible .shape:not(.shape--cross) {
  fill: var(--lime);
}

.shape-index__cell:hover .shape--cross,
.shape-index__cell:focus-visible .shape--cross {
  stroke-width: 5;
}

.shape-index__cell:hover .icon,
.shape-index__cell:focus-visible .icon {
  color: var(--lime);
  transform: translateX(3px);
}

/* One row of four from tablet width up (end of a page); 2 x 2 below. */
@media (min-width: 48em) {
  .shape-index--row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* --- Chip row ---------------------------------------------------------------------- */

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* --- Loader: the four shapes, one after another ------------------------------------ */

.loader {
  display: inline-flex;
  gap: 0.5em;
  color: var(--accent);
}

.loader .shape {
  animation: loader-step 1.6s ease-in-out infinite both;
}

.loader .shape:nth-child(2) {
  animation-delay: 0.2s;
}

.loader .shape:nth-child(3) {
  animation-delay: 0.4s;
}

.loader .shape:nth-child(4) {
  animation-delay: 0.6s;
}

@keyframes loader-step {
  0%,
  60%,
  100% {
    opacity: 0.25;
  }

  20% {
    opacity: 1;
  }
}

/* Hairline at the top edge while a page is fetched by the in-place navigation. */
.is-loading body::before {
  content: '';
  position: fixed;
  inset: 0 0 auto;
  z-index: 90;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--lime), transparent) no-repeat 0 0 / 40% 100%;
  animation: page-loading 0.9s linear 0.25s infinite both;
}

@keyframes page-loading {
  from {
    background-position: -70% 0;
  }

  to {
    background-position: 170% 0;
  }
}

/* Muted loop videos from the media pipeline. */
video[data-vx-loop] {
  width: 100%;
  background: var(--bg-inset);
}

/* Who made the game, under the card tagline */
.game-card__people { margin: .35rem 0 0; color: var(--text-3); }

/* 60-home.css */
/* Home page: showcase hero, studio statement, game groups, jams, music, studio. */

/* Full-bleed art runs under the glass header. */
.main--hero {
  margin-top: calc(-1 * var(--header-h));
}

/* --- Showcase hero ---------------------------------------------------------- */

.hero {
  --strip-h: 4.25rem;
  position: relative;
  display: grid;
  min-height: max(38.75rem, 100svh);
  overflow: hidden;
  isolation: isolate;
  background: var(--bg);
  touch-action: pan-y;
}

.hero > * {
  grid-area: 1 / 1;
  min-width: 0;
}

.hero__slides {
  display: grid;
}

.hero-slide {
  grid-area: 1 / 1;
  position: relative;
  display: grid;
  align-items: end;
  min-width: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 800ms ease, visibility 0s linear 800ms;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.hero-slide[hidden] {
  display: none;
}

.hero-slide__art {
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  height: min(125vw, 70svh);
  overflow: hidden;
}

.hero-slide__art picture,
.hero-slide__art img {
  width: 100%;
  height: 100%;
}

.hero-slide__art img {
  object-fit: cover;
}

/* Dark gradient: the art stays readable at the top, the text at the bottom. */
.hero-slide__art::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--bg) 0%, rgb(12 12 16 / 0.82) 22%, rgb(12 12 16 / 0.2) 55%, rgb(12 12 16 / 0) 72%),
    /* Under the clear header: strong enough to calm busy art (a striped awning) behind the logo and the buttons. */
    linear-gradient(to bottom, rgb(12 12 16 / 0.84) 0%, rgb(12 12 16 / 0.55) 3.75rem, rgb(12 12 16 / 0) 8rem);
}

.hero-slide__content {
  padding-top: calc(var(--header-h) + 2rem);
  padding-bottom: calc(var(--strip-h) + 2.75rem);
}

.hero-slide__text {
  display: grid;
  justify-items: start;
  gap: var(--sp-4);
  max-width: 44rem;
}

.hero-slide__status {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-slide__title {
  font-size: var(--fs-hero);
  letter-spacing: var(--track-display);
  line-height: 0.92;
}

/* Game logos differ wildly in shape: box them by height and width, anchored bottom left. */
.hero-slide__logo {
  width: auto;
  max-width: min(100%, 30rem);
  max-height: clamp(6rem, 21svh, 12.5rem);
  object-fit: contain;
  object-position: left bottom;
  filter: drop-shadow(0 0.25rem 1.5rem rgb(0 0 0 / 0.45));
}

.hero-slide__tagline {
  max-width: 26ch;
  font-size: clamp(1.25rem, 1rem + 1.5vw, 2.125rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-wrap: balance;
  /* The shade is lighter than a full scrim, so the line carries its own. */
  text-shadow: 0 1px 2px rgb(0 0 0 / 0.5), 0 0 1.5rem rgb(12 12 16 / 0.7);
}

.hero-slide__actions {
  margin-top: var(--sp-2);
}

/* Phones: the two actions share the full width instead of stacking with ragged right edges. */
@media (max-width: 29.99em) {
  .hero-slide__actions {
    justify-self: stretch;
  }

  .hero-slide__actions .btn {
    flex: 1 1 auto;
  }
}

/* Bottom strip: one tile per featured game, progress bar on the active one. */
.hero__strip {
  align-self: end;
  z-index: 2;
  padding-bottom: 1rem;
}

.hero__strip-inner {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.hero-tiles {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
}

.hero-tile {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  height: 100%;
  min-height: 2.75rem; /* 44px touch target on the narrowest phones */
  padding: 0.3125rem;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: var(--r-small);
  background: rgb(12 12 16 / 0.6);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  text-align: left;
  transition: background-color var(--dur) ease, border-color var(--dur) ease;
}

.hero-tile:hover,
.hero-tile.is-active {
  border-color: rgb(255 255 255 / 0.26);
  background: rgb(27 27 35 / 0.86);
}

.hero-tile__bar {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: rgb(255 255 255 / 0.1);
}

.hero-tile__bar > span {
  display: block;
  height: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}

/* Paused (or reduced motion): the active tile shows a full bar instead of a moving one. */
.hero.is-paused .hero-tile.is-active .hero-tile__bar > span {
  transform: none;
}

.hero-tile__thumb {
  flex: 1;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 0.375rem;
  background: var(--bg-inset);
  opacity: 0.6;
  transition: opacity var(--dur) ease;
}

.hero-tile:hover .hero-tile__thumb,
.hero-tile.is-active .hero-tile__thumb {
  opacity: 1;
}

.hero-tile__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-tile__text {
  display: none;
  min-width: 0;
}

.hero-tile__name {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-tile__status {
  display: block;
  font-size: var(--fs-mono-s);
  color: var(--text-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero__toggle {
  background: rgb(12 12 16 / 0.6);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.hero__toggle .icon:last-child,
.hero.is-paused .hero__toggle .icon:first-child {
  display: none;
}

.hero.is-paused .hero__toggle .icon:last-child {
  display: block;
}

/* Without JavaScript only the first game is shown; the strip has nothing to switch. */
.no-js .hero__strip {
  display: none;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-slide__art img {
    transform: scale(1.035);
    transition: transform 1600ms var(--ease-out);
  }

  .hero-slide.is-active .hero-slide__art img {
    transform: none;
  }

  .hero-slide.is-active .hero-slide__text > * {
    animation: hero-rise 700ms var(--ease-out) both;
  }

  .hero-slide.is-active .hero-slide__text > :nth-child(2) {
    animation-delay: 70ms;
  }

  .hero-slide.is-active .hero-slide__text > :nth-child(3) {
    animation-delay: 140ms;
  }

  .hero-slide.is-active .hero-slide__text > :nth-child(4) {
    animation-delay: 210ms;
  }
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(0.875rem);
  }
}

@media (min-width: 48em) {
  .hero {
    --strip-h: 5rem;
  }

  .hero-slide__art {
    inset: 0;
    height: auto;
  }

  /* The art is the colour: no full-height side scrim. A solid floor for the strip, a pool of shade in the
     bottom left corner where the title block stands, a short fade under the header. The upper left stays open. */
  .hero-slide__art::after {
    background:
      linear-gradient(to top, var(--bg) 0%, rgb(12 12 16 / 0.88) 14%, rgb(12 12 16 / 0.4) 36%, rgb(12 12 16 / 0) 58%),
      radial-gradient(100% 110% at 0% 100%, rgb(12 12 16 / 0.78) 0%, rgb(12 12 16 / 0.5) 35%, rgb(12 12 16 / 0) 68%),
      linear-gradient(to right, rgb(12 12 16 / 0.45) 0%, rgb(12 12 16 / 0) 12%),
      linear-gradient(to bottom, rgb(12 12 16 / 0.82) 0%, rgb(12 12 16 / 0.5) 3.25rem, rgb(12 12 16 / 0) 8.5rem);
  }

  .hero-slide__content {
    padding-bottom: calc(var(--strip-h) + 4rem);
  }

  .hero__strip {
    padding-bottom: 1.5rem;
  }

  .hero__strip-inner {
    gap: 1rem;
  }

  .hero-tiles {
    gap: 0.75rem;
    max-width: 34rem;
  }
}

/* Wide screens: a slide marked in art.js (showcase.shift) starts its picture right of the left edge and
   lets it fade in from the stage, so a centred subject does not stand under the title block.
   Only in landscape windows of 3:2 or wider: in a taller window the picture is scaled by its height and
   a shift would push the right end of the group out of view. */
@media (min-width: 75em) and (min-aspect-ratio: 3 / 2) {
  .hero-slide--shift .hero-slide__art picture {
    width: calc(100% - var(--art-shift));
    margin-left: var(--art-shift);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 24%);
    mask-image: linear-gradient(to right, transparent 0%, #000 24%);
  }

  .hero-slide--shift .hero-slide__art img {
    object-position: var(--art-pos) 50%;
  }
}

/* Room for names: each tile becomes thumbnail + name + status. */
@media (min-width: 62em) {
  .hero-tiles {
    max-width: none;
  }

  .hero-tile {
    padding: 0.5rem 0.75rem 0.5rem 0.5rem;
  }

  .hero-tile__thumb {
    flex: none;
    width: clamp(4rem, 7vw, 6rem);
    border-radius: 0.5rem;
  }

  .hero-tile__text {
    display: block;
  }

  /* Names are never cut: they may take two lines; the status line joins once the tiles are wide enough. */
  .hero-tile__name,
  .hero-tile__status {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    white-space: normal;
  }

  .hero-tile__status {
    display: none;
  }
}

@media (min-width: 80em) {
  .hero-tile__status {
    display: -webkit-box;
    margin-top: 0.125rem;
  }
}

/* --- Studio statement ---------------------------------------------------------- */

.statement {
  padding-top: clamp(3.5rem, 2rem + 6vw, 7.5rem);
}

.statement__top {
  display: grid;
  gap: clamp(2rem, 1.25rem + 3vw, 3.5rem) clamp(2rem, 5vw, 5rem);
  align-items: end;
  margin-bottom: clamp(3rem, 2rem + 5vw, 6rem);
}

.statement__eyebrow {
  margin-bottom: var(--sp-5);
  color: var(--text-2);
}

.statement__line {
  max-width: 21ch;
  font-size: var(--fs-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: var(--track-display);
  text-wrap: balance;
}

/* Beside the statement: the logo as a menu (shape index). Stacked below it on narrow screens,
   one row of four on tablets, the logo's 2 x 2 on phones and in the side column. */
@media (min-width: 40em) and (max-width: 63.99em) {
  .statement__index {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 64em) {
  .statement__top {
    grid-template-columns: minmax(0, 1fr) minmax(19rem, 24rem);
  }
}

/* --- Games by group ------------------------------------------------------------ */

.game-groups {
  display: grid;
  gap: clamp(2.5rem, 1.5rem + 3.2vw, 4.5rem);
}

.game-group {
  display: grid;
  gap: var(--sp-4);
}

.game-group__label {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.15;
}

.game-group__cards {
  display: grid;
  gap: var(--sp-5);
}

@media (min-width: 40em) {
  .game-group__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .game-group__cards--single {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (min-width: 64em) {
  /* Catalogue rail: group name on the left, its games on the right. */
  .game-group {
    grid-template-columns: 11.5rem minmax(0, 1fr);
    gap: var(--sp-6);
  }

  .game-group__label {
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
    align-self: start;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 0.875rem;
    border-top: 1px solid var(--line-strong);
    font-size: 1.5rem;
  }
}

/* --- Jams ------------------------------------------------------------------------ */

.jam-grid {
  display: grid;
  gap: var(--sp-5);
}

.jam-grid > * {
  display: grid;
}

@media (min-width: 56.25em) {
  .jam-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* --- Music ------------------------------------------------------------------------ */

/* The section header's rule already opens the list. */
.home-music {
  margin-top: calc(-1 * clamp(1.75rem, 1rem + 2.4vw, 3rem));
}

.home-music .track-list {
  border-top: 0;
}

/* The closing "all music" cell fills the hole of an odd list; in one column it simply ends the list. */
.home-music__more {
  display: grid;
}

@media (min-width: 56.25em) {
  /* Two columns that read top to bottom. */
  .home-music .track-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(var(--rows), auto);
    grid-auto-flow: column;
    column-gap: clamp(2rem, 4vw, 4rem);
  }
}

/* --- Studio ----------------------------------------------------------------------- */

.home-studio {
  display: grid;
  gap: var(--sp-7);
}

.home-studio__text {
  max-width: 36ch;
  font-size: clamp(1.25rem, 1.05rem + 1vw, 1.875rem);
  font-weight: 500;
  line-height: 1.32;
  letter-spacing: -0.01em;
}

.home-studio .team {
  margin-top: clamp(2rem, 1.5rem + 2.5vw, 3.5rem);
}

.home-studio__contact {
  display: grid;
  align-content: start;
  gap: var(--sp-4);
  padding: clamp(1.25rem, 0.75rem + 2.4vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--bg-raised);
}

.home-studio__contact h3 {
  font-family: var(--font-mono);
}

.home-studio__contact h3:not(:first-child) {
  margin-top: var(--sp-4);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
}

.home-studio__line {
  font-size: var(--fs-lead);
  line-height: 1.35;
}

@media (min-width: 60em) {
  .home-studio {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: clamp(3rem, 6vw, 6rem);
    align-items: start;
  }
}

/* 71-game.css */
/* Games index (/oyunlar/) and game page (/oyunlar/<slug>/). Markup: src/pages/games.js, src/pages/game.js.
   Behaviour of the gallery, the trailer and the clips: src/js/30-game.js. */

/* --- Games index ------------------------------------------------------------------------- */

/* Jump links to the status groups: the count, then one pill per group. */
.group-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3) var(--sp-5);
  margin-top: var(--sp-2);
}

.group-nav__count {
  color: var(--text-2);
}

.group-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.group-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.625em;
  min-height: 2.75rem;
  padding: 0.25rem 1rem 0.25rem 1.125rem;
  border: var(--stroke) solid var(--line-strong);
  border-radius: var(--r-pill);
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  transition: border-color var(--dur-fast) ease, color var(--dur-fast) ease, background-color var(--dur-fast) ease;
}

.group-nav__link .meta {
  color: var(--text-3);
  transition: color var(--dur-fast) ease;
}

.group-nav__link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.group-nav__link:hover .meta {
  color: inherit;
}

/* A group heading reached through a jump link clears the sticky header with some air. */
.games-index .game-group {
  scroll-margin-top: calc(var(--header-h) + 1.5rem);
}

.games-index .game-group__label {
  scroll-margin-top: calc(var(--header-h) + 1.5rem);
}

/* The index card: the wide card plus a short facts list. */
.game-card__facts {
  margin-top: 0.25rem;
}

.game-card__facts .facts__row {
  grid-template-columns: 4.75rem minmax(0, 1fr);
  gap: var(--sp-3);
  padding-block: 0.4rem;
}

.game-card--index .game-card__foot {
  padding-top: 0.625rem;
}

@media (min-width: 48em) {
  /* More text than on the home card: tighter padding keeps the text column close to the picture's height. */
  .game-card--index .game-card__body {
    gap: 0.625rem;
    padding: 1.125rem clamp(1.125rem, 2.4vw, 2.25rem);
  }

  .game-card--index .game-card__title {
    font-size: clamp(1.625rem, 1.2rem + 1.4vw, 2.375rem);
  }

  .game-card--index .game-card__tagline {
    font-size: 1.125rem;
  }
}

/* --- Game page: hero ------------------------------------------------------------------------ */

.gp {
  padding-bottom: var(--section-y);
}

.gh {
  --art-h: min(100vw, 58svh);
  position: relative;
  display: grid;
  isolation: isolate;
  overflow: hidden;
  background: var(--bg);
}

.gh__art {
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  height: var(--art-h);
  overflow: hidden;
}

.gh__art picture,
.gh__art img {
  width: 100%;
  height: 100%;
}

.gh__art img {
  object-fit: cover;
}

/* Pixel art (art.js: page.pixel) is enlarged with hard edges. */
.gh--pixel .gh__art img {
  image-rendering: pixelated;
}

/* The art is the colour: a floor that melts into the page, a short fade under the clear header. */
.gh__art::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--bg) 0%, rgb(12 12 16 / 0.86) 20%, rgb(12 12 16 / 0.25) 52%, rgb(12 12 16 / 0) 70%),
    linear-gradient(to bottom, rgb(12 12 16 / 0.84) 0%, rgb(12 12 16 / 0.55) 3.75rem, rgb(12 12 16 / 0) 8rem);
}

.gh__content {
  min-width: 0;
  padding-top: calc(var(--art-h) - 6.5rem);
  padding-bottom: 0.5rem;
}

.gh__text {
  display: grid;
  justify-items: start;
  gap: var(--sp-4);
  min-width: 0;
  max-width: 62rem;
}

/* Where the page sits in the catalogue: □ Oyunlar / group. */
.gh__crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.75em;
  color: var(--text-2);
  text-shadow: 0 1px 2px rgb(0 0 0 / 0.6);
}

.gh__crumb a {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  min-height: 2.75rem;
  color: var(--text);
}

.gh__crumb a:hover {
  color: var(--accent);
}

.gh__crumb .shape {
  font-size: 0.875rem;
  color: var(--accent);
}

.gh__title {
  max-width: 100%;
}

.gh__title--text {
  font-size: var(--fs-hero);
  letter-spacing: var(--track-display);
  line-height: 0.92;
  text-shadow: 0 0.125rem 1.5rem rgb(0 0 0 / 0.45);
}

/* Game logos differ wildly in shape: boxed by height and width, anchored bottom left, never cut. */
.gh__logo {
  width: auto;
  max-width: min(100%, 30rem);
  max-height: clamp(6rem, 21svh, 12.5rem);
  object-fit: contain;
  object-position: left bottom;
  filter: drop-shadow(0 0.125rem 0.375rem rgb(0 0 0 / 0.4)) drop-shadow(0 0.25rem 1.75rem rgb(12 12 16 / 0.6));
}

.gh__logo--pixel {
  image-rendering: pixelated;
}

.gh__subtitle {
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--accent);
  text-shadow: 0 1px 2px rgb(0 0 0 / 0.6);
}

.gh__tagline {
  max-width: 28ch;
  font-size: clamp(1.25rem, 1rem + 1.3vw, 2rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-wrap: balance;
  text-shadow: 0 1px 2px rgb(0 0 0 / 0.5), 0 0 1.5rem rgb(12 12 16 / 0.7);
}

.gh__meta {
  color: var(--text-2);
  text-shadow: 0 1px 2px rgb(0 0 0 / 0.6);
}

.gh__actions {
  margin-top: var(--sp-2);
}

/* Phones: the actions fill the row instead of stacking with ragged right edges. */
@media (max-width: 29.99em) {
  .gh__actions {
    justify-self: stretch;
  }

  .gh__actions .btn {
    flex: 1 1 auto;
  }
}

/* Poster layout: art that cannot fill the band (too small, upright, or an emblem) is shown whole and at most
   at its own size; a blurred copy of it colours the stage. */
.gh__backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  /* A glow in the game's accent behind the poster ties the blurred colours together. */
  background:
    radial-gradient(58% 92% at 78% 40%, color-mix(in srgb, var(--accent) 40%, transparent) 0%, transparent 72%),
    radial-gradient(46% 70% at 8% 0%, color-mix(in srgb, var(--accent) 16%, transparent) 0%, transparent 72%),
    var(--bg);
}

/* The whole picture is spread over the stage (not cut to it), so its overall palette shows, not one detail. */
.gh__backdrop img {
  position: absolute;
  inset: -30%;
  width: 160%;
  height: 160%;
  max-width: none;
  object-fit: fill;
  opacity: 0.42;
  filter: blur(80px) brightness(0.62) saturate(1.4);
}

.gh__backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--bg) 0%, rgb(12 12 16 / 0.7) 30%, rgb(12 12 16 / 0.15) 70%),
    linear-gradient(to bottom, rgb(12 12 16 / 0.6) 0%, rgb(12 12 16 / 0) 7rem);
}

.gh--poster .gh__content {
  display: grid;
  gap: clamp(1.5rem, 1rem + 3vw, 3.5rem);
  padding-top: calc(var(--header-h) + 1.25rem);
}

/* The frame is sized from the picture's own ratio and pixels, so it never grows past them. */
.gh__poster {
  order: -1;
  width: min(100%, var(--art-w), calc(var(--art-ratio) * min(21rem, 42svh)));
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: var(--r-media);
  background: var(--bg-inset);
  box-shadow: 0 1.5rem 4rem rgb(0 0 0 / 0.5);
}

.gh__poster img {
  width: 100%;
}

/* Landscape window below 62em: a 2:1 band for the 2:1 cut (keep in step with HERO_MOBILE_QUERY in game.js). */
@media (max-width: 61.99em) and (min-aspect-ratio: 4001 / 3000) {
  .gh--wide {
    --art-h: 50vw;
  }
}

/* From 62em (keep in step with HERO_MOBILE_QUERY in src/pages/game.js) the art runs behind the title block. */
@media (min-width: 62em) {
  .gh--wide {
    --hero-h: clamp(35rem, min(78svh, 70vw), max(54rem, 36vw));
    align-items: end;
    min-height: var(--hero-h);
  }

  .gh__art {
    inset: 0;
    height: auto;
  }

  /* As on the home hero: no full-height side scrim. A floor, a pool of shade in the bottom left corner where
     the title block stands, a thin left edge, a short fade under the header. */
  .gh__art::after {
    background:
      linear-gradient(to top, var(--bg) 0%, rgb(12 12 16 / 0.8) 12%, rgb(12 12 16 / 0.35) 34%, rgb(12 12 16 / 0) 56%),
      radial-gradient(100% 120% at 0% 100%, rgb(12 12 16 / 0.8) 0%, rgb(12 12 16 / 0.52) 36%, rgb(12 12 16 / 0) 70%),
      linear-gradient(to right, rgb(12 12 16 / 0.45) 0%, rgb(12 12 16 / 0) 12%),
      linear-gradient(to bottom, rgb(12 12 16 / 0.82) 0%, rgb(12 12 16 / 0.5) 3.25rem, rgb(12 12 16 / 0) 8.5rem);
  }

  .gh--wide .gh__content {
    padding-top: calc(var(--header-h) + 2.5rem);
    padding-bottom: clamp(1.5rem, 0.5rem + 2vw, 2.75rem);
  }
}

@media (min-width: 56.25em) {
  .gh--poster .gh__content {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    min-height: min(36rem, 72svh);
    padding-top: calc(var(--header-h) + 3rem);
    padding-bottom: clamp(1.5rem, 0.5rem + 2vw, 2.75rem);
  }

  .gh__poster {
    order: 0;
    width: min(44vw, 40rem, var(--art-w), calc(var(--art-ratio) * min(27rem, 54svh)));
  }
}

/* Wide screens: a picture marked in art.js (showcase.shift) starts right of the left edge and fades in from
   the stage, so a centred group does not stand under the title block (the home hero's rule; this band is
   lower than the window, so it also holds in narrower and taller windows). */
@media (min-width: 62em) and (min-aspect-ratio: 5 / 4) {
  .gh--shift .gh__art picture {
    width: calc(100% - var(--art-shift));
    margin-left: var(--art-shift);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 24%);
    mask-image: linear-gradient(to right, transparent 0%, #000 24%);
  }

  .gh--shift .gh__art img {
    object-position: var(--art-pos) 50%;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .gh__text > * {
    animation: gh-rise 700ms var(--ease-out) both;
  }

  .gh__text > :nth-child(3) {
    animation-delay: 60ms;
  }

  .gh__text > :nth-child(n + 4) {
    animation-delay: 120ms;
  }

  .gh__poster {
    animation: gh-rise 800ms var(--ease-out) 80ms both;
  }
}

@keyframes gh-rise {
  from {
    opacity: 0;
    transform: translateY(0.875rem);
  }
}

/* --- Game page: text and facts --------------------------------------------------------------- */

/* Small mono label above a part of the page (interface words only: it is set in capitals). */
.gp-label {
  color: var(--text-3);
}

.gp-intro {
  display: grid;
  gap: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
  align-items: start;
  padding-top: clamp(2.25rem, 1.5rem + 3vw, 4rem);
}

.gp-intro__main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 1.5rem + 2vw, 3rem);
  min-width: 0;
}

/* The model's short text, set as the opening paragraph. */
.gp-lead {
  max-width: 34em;
  font-size: clamp(1.25rem, 1.1rem + 0.75vw, 1.625rem);
  line-height: 1.42;
  letter-spacing: -0.005em;
}

.gp-slogan {
  max-width: 30em;
  padding-left: 1.125rem;
  border-left: 2px solid var(--accent);
  font-size: var(--fs-lead);
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-2);
}

.gp-features,
.gp-updates {
  display: grid;
  gap: var(--sp-4);
}

/* Feature list: the □ of the logo as the bullet, in the game's accent. */
.gp-list {
  display: grid;
  gap: 0.7em;
  max-width: var(--measure);
  color: var(--text-2);
}

.gp-list > li {
  position: relative;
  padding-left: 1.6em;
}

.gp-list > li::before {
  content: '';
  position: absolute;
  left: 0.1em;
  top: 0.56em;
  width: 0.5em;
  height: 0.5em;
  border: var(--stroke) solid var(--accent);
  border-radius: 0.14em;
}

/* Updates: date in mono, text beside it. */
.gp-timeline {
  display: grid;
  max-width: var(--measure);
  border-top: 1px solid var(--line);
}

.gp-timeline > li {
  display: grid;
  gap: 0.125rem var(--sp-5);
  padding-block: 0.8rem;
  border-bottom: 1px solid var(--line);
}

.gp-timeline time {
  color: var(--text-2);
}

.gp-timeline p {
  color: var(--text-2);
}

@media (min-width: 40em) {
  .gp-timeline > li {
    grid-template-columns: 9.5rem minmax(0, 1fr);
    align-items: baseline;
  }
}

/* Facts panel: platform, engine, release, genres, tags, credits, content note. */
.gp-facts {
  display: grid;
  gap: var(--sp-3);
  min-width: 0;
  padding: 1.25rem clamp(1rem, 0.6rem + 1.6vw, 1.5rem) 0.5rem;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--bg-raised);
}

.gp-facts .facts__row {
  grid-template-columns: minmax(5.75rem, 0.36fr) minmax(0, 1fr);
}

.gp-facts .facts__row:first-child {
  border-top-color: var(--line-strong);
}

.gp-facts dd {
  overflow-wrap: anywhere;
}

.gp-tags {
  color: var(--text-2);
}

.gp-lines {
  display: grid;
  gap: 0.3em;
}

@media (min-width: 60em) {
  .gp-intro {
    grid-template-columns: minmax(0, 1.55fr) minmax(19rem, 1fr);
  }

  .gp-facts {
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
  }
}

/* --- Game page: blocks ------------------------------------------------------------------------ */

.gp-block {
  margin-top: clamp(4rem, 2.5rem + 6vw, 7.5rem);
}

/* Several blocks on one page: quieter than the section titles of the home page. */
.gp-head {
  margin-bottom: clamp(1.5rem, 1rem + 1.6vw, 2.25rem);
}

.gp-head .section-head__title {
  font-size: clamp(1.75rem, 1.35rem + 1.7vw, 2.75rem);
}

/* Single-column grids: the track may shrink below its widest child (rows of shots, strips). */
.gp-media,
.gp-media__part,
.shots {
  grid-template-columns: minmax(0, 1fr);
}

.gp-media {
  display: grid;
  gap: clamp(2rem, 1.5rem + 2vw, 3.25rem);
}

.gp-media__part {
  display: grid;
  gap: var(--sp-4);
  min-width: 0;
}

/* --- Trailer: a poster until the visitor presses play ------------------------------------------- */

.trailer {
  display: grid;
  gap: 0.75rem;
  scroll-margin-top: calc(var(--header-h) + 1.5rem);
}

.trailer__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--bg-inset);
}

.trailer__link {
  position: absolute;
  inset: 0;
  display: block;
  color: var(--text);
  text-decoration: none;
}

.trailer__link:focus-visible {
  outline-offset: -4px;
}

.trailer__link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}

.trailer__link::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(12 12 16 / 0.82) 0%, rgb(12 12 16 / 0.2) 42%, rgb(12 12 16 / 0.1) 100%);
}

.trailer__cue {
  position: absolute;
  left: clamp(1rem, 3vw, 2.25rem);
  bottom: clamp(1rem, 3vw, 2.25rem);
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.trailer__play {
  display: grid;
  place-items: center;
  width: clamp(3.5rem, 2.5rem + 4vw, 5.25rem);
  height: clamp(3.5rem, 2.5rem + 4vw, 5.25rem);
  flex: none;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  transition: transform var(--dur) var(--ease-out), filter var(--dur-fast) ease;
}

.trailer__play .icon {
  width: 42%;
  height: 42%;
  margin-left: 6%;
}

.trailer__cue-text {
  display: grid;
  gap: 0.125rem;
  font-size: clamp(1.125rem, 1rem + 0.7vw, 1.5rem);
  font-weight: 700;
  line-height: 1.15;
  text-shadow: 0 1px 2px rgb(0 0 0 / 0.6);
}

.trailer__cue-text .meta {
  color: var(--text-2);
}

@media (hover: hover) {
  .trailer__link:hover img {
    transform: scale(1.025);
  }

  .trailer__link:hover .trailer__play {
    transform: scale(1.06);
    filter: brightness(1.1);
  }
}

.trailer__loader {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  font-size: 1.5rem;
}

.trailer__frame.is-loading .trailer__loader {
  display: grid;
}

.trailer__player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.trailer__note {
  max-width: 96ch;
}

/* --- Gallery ------------------------------------------------------------------------------------ */

/* Rows planned by the generator: every shot keeps its own shape, a row is filled edge to edge
   (flex-grow = aspect ratio gives all shots of a row the same height). A row of few upright shots
   is capped in height through its width instead of being blown up. */
.shots {
  --gap: 0.5rem;
  display: grid;
  gap: var(--gap);
}

.shots__row {
  display: flex;
  gap: var(--gap);
  max-width: calc(var(--sum) * 26rem + (var(--n) - 1) * var(--gap));
}

.shot {
  position: relative;
  flex: var(--ratio) 1 0%;
  min-width: 0;
  aspect-ratio: var(--ratio);
  overflow: hidden;
  border-radius: var(--r-small);
  background: var(--bg-inset);
  cursor: zoom-in;
}

.shot:focus-visible {
  outline-offset: -3px;
  z-index: 1;
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out), filter var(--dur) ease;
}

.shot::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--line);
  border-radius: inherit;
  transition: border-color var(--dur) ease;
  pointer-events: none;
}

@media (hover: hover) {
  .shot:hover img {
    transform: scale(1.035);
  }

  .shot:hover::after {
    border-color: var(--accent-line);
  }
}

/* Phones: one strip that scrolls sideways; the next shot peeks in from the right. */
@media (max-width: 39.99em) {
  .shots,
  .clips {
    display: flex;
    align-items: center;
    gap: var(--gap, 0.5rem);
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }

  .shots::-webkit-scrollbar,
  .clips::-webkit-scrollbar {
    display: none;
  }

  .shots__row {
    display: contents;
  }

  .shot {
    flex: none;
    width: min(82vw, calc(var(--ratio) * 15rem));
    scroll-snap-align: start;
  }
}

/* --- Lightbox (a <dialog>: focus stays inside, Escape closes) ------------------------------------- */

.lightbox {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgb(7 7 10 / 0.97);
  color: var(--text);
  overflow: hidden;
  overscroll-behavior: contain;
}

.lightbox[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  animation: lightbox-in var(--dur) var(--ease-out);
}

.lightbox::backdrop {
  background: var(--bg-inset);
}

@keyframes lightbox-in {
  from {
    opacity: 0;
  }
}

/* The page behind the viewer does not scroll. The scrollbar's place stays reserved (nothing jumps) and is painted
   with the root background: the viewer's own tone, so no lighter strip is left at the edge. */
html:has(.lightbox[open]) {
  overflow: hidden;
  scrollbar-gutter: stable;
  background: var(--bg-inset);
}

.lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: 0.75rem var(--gutter);
}

.lightbox__title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.125rem 0.875rem;
  min-width: 0;
  font-weight: 600;
  line-height: 1.2;
}

.lightbox__count {
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}

.lightbox__stage {
  position: relative;
  display: grid;
  /* One cell exactly as large as the stage: only then does max-height: 100% of the picture mean "the stage"
     (in an auto row a tall picture sizes the row instead and runs off the screen). */
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  min-width: 0;
  min-height: 0;
  padding: 0 var(--gutter) max(1.25rem, env(safe-area-inset-bottom, 0px));
  touch-action: pan-y pinch-zoom;
}

.lightbox__stage > * {
  grid-area: 1 / 1;
}

/* Whole picture, never larger than its own pixels (--w is set by the script). */
.lightbox__img {
  width: auto;
  height: auto;
  max-width: min(100%, var(--w, 100%));
  max-height: 100%;
  border-radius: var(--r-small);
  object-fit: contain;
  transition: opacity var(--dur) ease;
}

.lightbox__stage.is-loading .lightbox__img {
  opacity: 0;
}

.lightbox__loader {
  display: none;
  font-size: 1.5rem;
}

.lightbox__stage.is-loading .lightbox__loader {
  display: block;
}

.lightbox .icon-btn {
  background: rgb(12 12 16 / 0.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.lightbox__nav {
  position: absolute;
  bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  width: 3rem;
  height: 3rem;
}

.lightbox__nav--prev {
  left: var(--gutter);
}

.lightbox__nav--next {
  right: var(--gutter);
}

@media (max-width: 47.99em) {
  /* Room for the two buttons under the picture. */
  .lightbox__stage {
    padding-bottom: calc(max(1rem, env(safe-area-inset-bottom, 0px)) + 4rem);
  }
}

@media (min-width: 48em) {
  .lightbox__stage {
    padding-inline: calc(var(--gutter) + 4rem);
  }

  .lightbox__nav {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
  }
}

/* --- Clips: short muted loops --------------------------------------------------------------------- */

.clips {
  --gap: 0.75rem;
  display: flex;
  gap: var(--gap);
}

.clip {
  position: relative;
  flex: 1 1 0%;
  min-width: 0;
  max-width: var(--clip-w);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-media);
  background: var(--bg-inset);
}

.clip video {
  width: 100%;
}

.clip__toggle {
  position: absolute;
  right: 0.625rem;
  bottom: 0.625rem;
  background: rgb(12 12 16 / 0.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* The button shows what a press will do. */
.clip__toggle .icon:last-child,
.clip.is-paused .clip__toggle .icon:first-child {
  display: none;
}

.clip.is-paused .clip__toggle .icon:last-child {
  display: block;
}

@media (max-width: 39.99em) {
  .clip {
    flex: none;
    width: min(82vw, var(--clip-w));
    scroll-snap-align: start;
  }
}

/* --- Jam and related games ------------------------------------------------------------------------- */

.gp-context {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
  align-items: start;
}

.gp-jam,
.gp-related,
.gp-making {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-4);
  align-content: start;
  min-width: 0;
}

.gp-jam__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.875rem;
}

.gp-jam__name {
  font-size: clamp(1.625rem, 1.2rem + 1.5vw, 2.375rem);
  letter-spacing: var(--track-title);
}

.gp-jam__name a {
  text-decoration: none;
  transition: color var(--dur-fast) ease;
}

.gp-jam__name a:hover {
  color: var(--accent);
}

.gp-jam__text,
.gp-related__text {
  max-width: 52ch;
  color: var(--text-2);
}

.gp-jam__lead {
  max-width: 30em;
  font-size: var(--fs-lead);
  line-height: 1.45;
}

.gp-jam__note {
  max-width: 56ch;
  font-size: var(--fs-small);
  color: var(--text-3);
}

.gp-jam .facts {
  max-width: 36rem;
}

.gp-jam__legal {
  max-width: 60ch;
}

/* Link to the jam page as a row: △, name, date. */
.gp-jam__link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--sp-4);
  max-width: 36rem;
  min-height: 4.5rem;
  padding: 0.75rem 1.125rem 0.75rem 0.875rem;
  border: 1px solid var(--line);
  border-radius: var(--r-media);
  background: var(--bg-raised);
  text-decoration: none;
  transition: border-color var(--dur-fast) ease, background-color var(--dur-fast) ease;
}

.gp-jam__mark {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: var(--stroke) solid var(--line-strong);
  border-radius: 0.5rem;
  font-size: 1.125rem;
  color: var(--accent);
}

.gp-jam__link-text {
  display: grid;
  gap: 0.125rem;
  min-width: 0;
}

.gp-jam__link-name {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.25;
}

.gp-jam__link > .icon {
  color: var(--accent);
  transition: transform var(--dur) var(--ease-out);
}

.gp-jam__link:hover {
  border-color: var(--accent-line);
  background: var(--bg-raised-2);
}

.gp-jam__link:hover .gp-jam__link-name {
  color: var(--accent);
}

.gp-jam__link:hover > .icon {
  transform: translateX(4px);
}

.gp-related .card {
  max-width: 32rem;
}

/* Origin only (The Black Shift): text and jam link above, the related game as a wide card under them. */
.gp-context--origin .gp-jam {
  max-width: 46rem;
}

.gp-context--origin .gp-related .card {
  max-width: none;
}

@media (min-width: 48em) {
  .gp-context--origin .game-card--wide .game-card__media {
    flex-basis: min(58%, 40rem);
  }
}

@media (min-width: 56.25em) {
  .gp-context:not(.gp-context--origin) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* --- Music ---------------------------------------------------------------------------------------- */

.gp-music__bar {
  margin-bottom: var(--sp-5);
}

.gp-music__more {
  display: grid;
}

/* Where a track plays in this game is the point of the list: the line wraps instead of being cut. */
.gp-music .track__sub {
  overflow: visible;
  white-space: normal;
  text-wrap: pretty;
}

@media (min-width: 56.25em) {
  /* Two columns that read top to bottom (as on the home page). */
  .gp-music__list .track-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(var(--rows), auto);
    grid-auto-flow: column;
    column-gap: clamp(2rem, 4vw, 4rem);
  }
}

/* --- Previous / next game --------------------------------------------------------------------------- */

.gp-pager {
  display: grid;
  gap: var(--sp-3);
  margin-top: clamp(4rem, 2.5rem + 6vw, 7.5rem);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--line);
}

.gp-pager__link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--sp-4);
  min-height: 5.5rem;
  padding: 0.5rem 1rem 0.5rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--bg-raised);
  text-decoration: none;
  transition: border-color var(--dur) ease, background-color var(--dur) ease, transform var(--dur) var(--ease-out);
}

.gp-pager__thumb {
  width: clamp(5.5rem, 3rem + 10vw, 8.5rem);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--r-media);
  background: var(--bg-inset);
}

.gp-pager__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Art that must stay whole (an emblem, an upright poster) is not cut to the tile. */
.gp-pager__thumb--whole img {
  object-fit: contain;
}

.gp-pager__text {
  display: grid;
  gap: 0.125rem;
  min-width: 0;
}

.gp-pager__label {
  color: var(--text-3);
}

.gp-pager__name {
  font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: var(--track-title);
  transition: color var(--dur) ease;
}

.gp-pager__link > .icon {
  color: var(--text-3);
  transition: color var(--dur) ease, transform var(--dur) var(--ease-out);
}

/* "Previous" points left: its arrow leads the row. */
.gp-pager__link--prev {
  grid-template-columns: auto auto minmax(0, 1fr);
}

.gp-pager__link--prev > .icon {
  order: -1;
  margin-left: 0.5rem;
}

@media (hover: hover) {
  .gp-pager__link:hover {
    border-color: var(--accent-line);
    background: var(--bg-raised-2);
  }

  .gp-pager__link:hover .gp-pager__name,
  .gp-pager__link:hover > .icon {
    color: var(--accent);
  }

  .gp-pager__link--next:hover > .icon {
    transform: translateX(3px);
  }

  .gp-pager__link--prev:hover > .icon {
    transform: translateX(-3px);
  }
}

.gp-pager__all {
  justify-self: start;
}

.gp-pager__all .shape {
  font-size: 0.875rem;
  color: var(--accent);
}

@media (min-width: 48em) {
  .gp-pager {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sp-4) var(--sp-5);
  }

  .gp-pager__all {
    grid-column: 1 / -1;
  }
}

/* Team list in the facts panel (credits.people) */
.gp-people { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.gp-people strong { font-weight: 600; color: var(--text); }
.gp-people span { color: var(--text-2); }

/* 72-music.css */
/* Music page (/muzik/, /en/music/) and the site-wide player bar (src/js/20-player.js). */

/* --- Page head: totals and the legend of the featured dot ------------------------------ */

.music-facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2) var(--sp-5);
  margin-top: var(--sp-2);
}

.track-legend {
  display: inline-flex;
  align-items: center;
  gap: 0.625em;
}

/* --- Album index: one tile per album, a single row that scrolls sideways when it must --- */

.album-index {
  margin-bottom: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
}

.album-index__list {
  display: flex;
  gap: var(--sp-3);
  margin-inline: calc(-1 * var(--gutter));
  padding: 0.25rem var(--gutter);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}

.album-index__list::-webkit-scrollbar {
  display: none;
}

.album-index__list > li {
  display: grid;
  flex: 1 0 13.75rem;
  scroll-snap-align: start;
}

.album-tab {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  min-height: 4.25rem;
  padding: 0.5rem 0.875rem 0.5rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: var(--r-media);
  background: var(--bg-raised);
  text-decoration: none;
  transition: border-color var(--dur-fast) ease, background-color var(--dur-fast) ease;
}

.album-tab:focus-visible {
  outline-offset: 2px;
}

.album-tab__art {
  width: 3rem;
  height: 3rem;
  overflow: hidden;
  border-radius: 0.5rem;
  background: var(--bg-inset);
}

.album-tab__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.album-tab__text {
  display: grid;
  gap: 0.1875rem;
  min-width: 0;
}

.album-tab__name {
  font-weight: 600;
  line-height: 1.2;
}

@media (hover: hover) {
  .album-tab:hover {
    border-color: var(--accent-line);
    background: var(--bg-raised-2);
  }

  .album-tab:hover .album-tab__name {
    color: var(--accent);
  }
}

/* --- Album: the cover stays beside the list, the list carries the text ------------------- */

.album {
  display: grid;
  gap: var(--sp-5) clamp(2rem, 0.5rem + 4.5vw, 5rem);
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.75rem);
  border-top: 1px solid var(--line);
}

.album:first-child {
  padding-top: 0;
  border-top: 0;
}

.album:last-child {
  padding-bottom: 0;
}

.album__cover {
  display: block;
  padding: var(--card-pad);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--bg-raised);
  transition: border-color var(--dur) ease, background-color var(--dur) ease;
}

@media (hover: hover) {
  .album__cover:hover {
    border-color: var(--accent-line);
    background: var(--bg-raised-2);
  }

  .album__cover:hover .cover > img:not(.cover__backdrop) {
    transform: scale(1.03);
  }
}

.album__main {
  display: grid;
  gap: var(--sp-5);
  min-width: 0;
}

.album__head {
  display: grid;
  gap: var(--sp-3);
}

.album__title {
  font-size: clamp(1.875rem, 1.3rem + 2.2vw, 3rem);
  letter-spacing: var(--track-display);
}

.album__note {
  color: var(--text-3);
}

/* The primary button of an album shows what a press will do. */
.album__play .album__play-off,
.album__play.is-playing .album__play-on {
  display: none;
}

.album__play.is-playing .album__play-off {
  display: block;
}

/* Nothing can play without JavaScript: the rows stay as a track listing, the play button goes. */
.no-js .album__play {
  display: none;
}

/* Both labels are measured (two invisible copies), so the button keeps its width when the text changes
   and the buttons beside it never jump to another line. */
.album__play > span {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.album__play > span::before,
.album__play > span::after {
  height: 0;
  overflow: hidden;
  visibility: hidden;
}

.album__play > span::before {
  content: attr(data-play);
}

.album__play > span::after {
  content: attr(data-pause);
}

.album__tracks {
  margin-top: var(--sp-2);
}

/* Where a track plays is the point of this page: the line wraps instead of being cut. */
.album .track__sub {
  overflow: visible;
  white-space: normal;
  text-wrap: pretty;
}

@media (min-width: 60em) {
  .album {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
  }

  .album__art {
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
  }
}

/* --- Player bar ------------------------------------------------------------------------- */
/* A floating dock above the page. Lime is the signal: the main button and the played part of the waveform. */

.player {
  --wave-played: var(--lime);
  --wave-rest: rgb(241 241 236 / 0.28);
  --wave-hover: rgb(241 241 236 / 0.6);
  --edge: 0.5rem;
  position: fixed;
  left: max(var(--edge), env(safe-area-inset-left, 0px));
  right: max(var(--edge), env(safe-area-inset-right, 0px));
  bottom: calc(var(--edge) + env(safe-area-inset-bottom, 0px));
  z-index: var(--z-player);
  max-width: calc(var(--page-max) + 2rem);
  margin-inline: auto;
  border: 1px solid var(--line-strong);
  border-radius: 1.125rem;
  background: color-mix(in srgb, var(--bg-raised-2) 90%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  backdrop-filter: blur(20px) saturate(1.3);
  box-shadow: 0 0.75rem 2.5rem rgb(0 0 0 / 0.55);
  /* Its own layer in page cross-fades: the bar stays put while the page behind it changes. */
  view-transition-name: vx-player;
  animation: player-in var(--dur) var(--ease-out);
}

@keyframes player-in {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
}

.player__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  grid-template-areas:
    'seek seek close'
    'now transport transport';
  align-items: center;
  gap: 0 0.375rem;
  padding: 0.25rem 0.375rem 0.5rem 0.625rem;
}

/* Now playing: cover, title, album (link to the game page). The block has a fixed height, so the bar does
   not change size when a title needs two lines. */
.player__now {
  grid-area: now;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  height: 3.5rem;
}

.player__art {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  overflow: hidden;
  border-radius: 0.5rem;
  background: var(--bg-inset);
  color: var(--lime);
}

.player__art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player__art-blank .shape {
  font-size: 1.125rem;
}

.player__text {
  display: grid;
  gap: 0.125rem;
  min-width: 0;
}

.player__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-wrap: balance;
}

.player__sub {
  display: flex;
  min-width: 0;
  font-size: 0.8125rem;
  line-height: 1.3;
  color: var(--text-2);
}

.player__album {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.375em;
  max-width: 100%;
  text-decoration: none;
  transition: color var(--dur-fast) ease;
}

/* Larger touch area than the line of text. */
.player__album::after {
  content: '';
  position: absolute;
  inset: -0.875rem -0.5rem;
}

.player__album > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player__album .icon {
  width: 1em;
  height: 1em;
  color: var(--lime);
  transition: transform var(--dur) var(--ease-out);
}

.player__album:focus-visible {
  outline-color: var(--lime);
}

.player__error {
  font-weight: 500;
  color: var(--text);
}

/* Buttons */
.player__transport {
  grid-area: transport;
  display: flex;
  align-items: center;
  gap: 0.125rem;
}

.player__btn {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  flex: none;
  border-radius: 50%;
  color: var(--text);
  transition: color var(--dur-fast) ease, background-color var(--dur-fast) ease, filter var(--dur-fast) ease,
    transform var(--dur-fast) var(--ease-out);
}

.player__btn:focus-visible {
  outline-color: var(--lime);
  outline-offset: 1px;
}

.player__btn:active {
  transform: scale(0.94);
}

.player__btn--quiet {
  color: var(--text-2);
}

.player__btn[aria-disabled='true'] {
  color: var(--text-3);
  opacity: 0.45;
  cursor: default;
}

.player__btn--main {
  width: 3rem;
  height: 3rem;
  margin-inline: 0.125rem;
  background: var(--lime);
  color: var(--ink);
}

.player__btn--main:focus-visible {
  outline-offset: 3px;
}

.player__btn--main > span {
  grid-area: 1 / 1;
  display: grid;
  place-items: center;
  transition: opacity var(--dur-fast) ease, transform var(--dur-fast) var(--ease-out);
}

.player__btn--main .icon {
  width: 1.375rem;
  height: 1.375rem;
}

.player__pause,
.player__busy,
.player[data-state='playing'] .player__play,
.player[data-state='loading'] .player__play {
  opacity: 0;
  transform: scale(0.6);
}

.player[data-state='playing'] .player__pause,
.player[data-state='loading'] .player__busy {
  opacity: 1;
  transform: none;
}

/* Waiting for audio: the four logo shapes take turns (a short hiccup does not flash them). */
.player[data-state='loading'] .player__busy {
  transition-delay: 180ms;
}

.player__btn--main > .player__busy {
  grid-template-columns: repeat(2, auto);
  gap: 0.1875rem;
  font-size: 0.625rem;
}

.player__busy .shape {
  stroke-width: 5;
}

.player[data-state='loading'] .player__busy .shape {
  animation: loader-step 1.6s ease-in-out infinite both;
}

.player[data-state='loading'] .player__busy .shape:nth-child(2) {
  animation-delay: 0.2s;
}

.player[data-state='loading'] .player__busy .shape:nth-child(3) {
  animation-delay: 0.6s;
}

.player[data-state='loading'] .player__busy .shape:nth-child(4) {
  animation-delay: 0.4s;
}

/* Seek bar: elapsed time, waveform slider, total time */
.player__seek {
  grid-area: seek;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.625rem;
  min-width: 0;
  transition: opacity var(--dur) ease;
}

.player__time {
  min-width: 2.25rem;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: var(--text-3);
}

.player__time[data-role='now'] {
  color: var(--text);
  text-align: right;
}

.player__wave {
  position: relative;
  height: 2.75rem;
  border-radius: 0.375rem;
  cursor: pointer;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}

.player__wave:focus-visible {
  outline-color: var(--lime);
  outline-offset: 0;
}

.player__wave canvas {
  position: absolute;
  inset: 0.375rem 0;
  width: 100%;
  height: calc(100% - 0.75rem);
  transition: opacity var(--dur) ease;
}

/* Without peaks: a plain progress bar. */
.player__bar {
  position: absolute;
  inset: 50% 0 auto;
  height: 0.25rem;
  margin-top: -0.125rem;
  overflow: hidden;
  border-radius: var(--r-pill);
  background: rgb(241 241 236 / 0.18);
  opacity: 0;
  transition: opacity var(--dur) ease;
}

.player__bar > span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--wave-played);
  transform: scaleX(var(--progress, 0));
  transform-origin: 0 50%;
}

.player__wave.is-plain canvas {
  opacity: 0;
}

.player__wave.is-plain .player__bar {
  opacity: 1;
}

/* Playhead: shown while the slider is used (pointer over it, keyboard focus, dragging). */
.player__head {
  position: absolute;
  top: 0.25rem;
  bottom: 0.25rem;
  left: calc(var(--progress, 0) * 100%);
  width: 2px;
  margin-left: -1px;
  border-radius: 1px;
  background: var(--text);
  opacity: 0;
  transition: opacity var(--dur-fast) ease;
}

.player__wave:focus-visible .player__head,
.player.is-scrubbing .player__head {
  opacity: 1;
}

.player[data-state='error'] .player__seek {
  opacity: 0.35;
  pointer-events: none;
}

/* Volume: only where there is a mouse and room for it (phones have their own keys). */
.player__volume {
  grid-area: volume;
  display: none;
  align-items: center;
}

.player__vol-off,
.player.is-muted .player__vol-on {
  display: none;
}

.player.is-muted .player__vol-off {
  display: block;
}

.player__range {
  --value: 1;
  --thumb: 0.875rem;
  width: 5.5rem;
  height: 2.75rem;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

.player__range::-webkit-slider-runnable-track {
  height: 0.25rem;
  border-radius: var(--r-pill);
  background: linear-gradient(to right, var(--text) calc(var(--thumb) / 2 + var(--value) * (100% - var(--thumb))), rgb(241 241 236 / 0.18) 0);
}

.player__range::-webkit-slider-thumb {
  width: var(--thumb);
  height: var(--thumb);
  margin-top: calc((0.25rem - var(--thumb)) / 2);
  -webkit-appearance: none;
  appearance: none;
  border: 0;
  border-radius: 50%;
  background: var(--text);
}

.player__range::-moz-range-track {
  height: 0.25rem;
  border-radius: var(--r-pill);
  background: rgb(241 241 236 / 0.18);
}

.player__range::-moz-range-progress {
  height: 0.25rem;
  border-radius: var(--r-pill);
  background: var(--text);
}

.player__range::-moz-range-thumb {
  width: var(--thumb);
  height: var(--thumb);
  border: 0;
  border-radius: 50%;
  background: var(--text);
}

.player__range:focus-visible {
  outline-color: var(--lime);
  outline-offset: -0.5rem;
  border-radius: var(--r-pill);
}

.player__close {
  grid-area: close;
}

@media (hover: hover) {
  .player__btn:not([aria-disabled='true']):hover {
    color: var(--lime);
  }

  .player__btn--main:not([aria-disabled='true']):hover {
    color: var(--ink);
    filter: brightness(1.1);
  }

  .player__album:hover {
    color: var(--text);
  }

  .player__album:hover .icon {
    transform: translateX(3px);
  }

  .player__wave:hover .player__head {
    opacity: 1;
  }
}

/* One row from tablet landscape up. */
@media (min-width: 56.25em) {
  .player {
    --edge: 0.75rem;
  }

  .player__inner {
    grid-template-columns: minmax(11rem, 17rem) auto minmax(0, 1fr) auto;
    grid-template-areas: 'now transport seek close';
    gap: 1.25rem;
    padding: 0.5rem 0.625rem 0.5rem 0.5rem;
  }

  .player__art {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 0.625rem;
  }

  .player__title {
    font-size: 1rem;
  }

  .player__seek {
    gap: 0.75rem;
  }
}

@media (min-width: 68em) and (hover: hover) and (pointer: fine) {
  .player__inner {
    grid-template-columns: minmax(11rem, 18rem) auto minmax(0, 1fr) auto auto;
    grid-template-areas: 'now transport seek volume close';
  }

  .player__volume {
    display: flex;
  }

  .player__close {
    margin-left: -0.75rem;
  }
}

/* The page fades into the dark behind the bar, so nothing peeks out beside or below it. */
.has-player #vx-player::before {
  content: '';
  position: fixed;
  inset: auto 0 0;
  z-index: calc(var(--z-player) - 1);
  height: calc(var(--player-space, 7.5rem) + 1.5rem);
  background: linear-gradient(to bottom, rgb(7 7 10 / 0), rgb(7 7 10 / 0.88) 58%, rgb(7 7 10) 92%);
  pointer-events: none;
}

/* --- Room for the bar while it is shown (--player-space is measured by the player) -------- */

.has-player {
  scroll-padding-bottom: var(--player-space, 7.5rem);
}

/* The end of the page stays clear of the bar. */
.has-player .site-footer {
  padding-bottom: var(--player-space, 7.5rem);
}

/* The home hero ends above the bar, so its strip of games stays in view. */
.has-player .hero {
  min-height: max(38.75rem, calc(100svh - var(--player-space, 7.5rem)));
}

@media print {
  .player {
    display: none;
  }
}

/* 73-jam.css */
/* Jams index (/jamler/) and jam page (/jamler/<slug>/). Markup: src/pages/jams.js, src/pages/jam.js.
   The index stands on the catalogue rail of the games index (.game-groups, 60-home.css) and widens the home
   page's jam card; the jam page reuses the poster hero and the block rhythm of the game page (71-game.css:
   .gh--poster, .gp-intro, .gp-facts, .gp-block, .gp-head) and its picture viewer (.lightbox). */

/* --- Jams index ---------------------------------------------------------------------------- */

.jams-index__count {
  color: var(--text-3);
}

.jam-entry__place {
  color: var(--text-2);
}

/* The jam's key numbers (jam.format): figure above its mono label. */
.jam-entry__numbers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-4) var(--sp-5);
  padding-block: var(--sp-2);
}

.jam-entry__numbers > div {
  display: flex;
  flex-direction: column-reverse;
  gap: 0.25rem;
}

.jam-entry__numbers dd {
  font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.375rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: var(--track-display);
  font-variant-numeric: tabular-nums;
}

.jam-entry__numbers dt {
  color: var(--text-2);
}

/* Rail date: "9–11 Mayıs" over "2026" on the rail, one line on phones (jams.js whenLines). */
.jam-entry__when {
  flex-wrap: wrap;
  column-gap: 0.35em;
}

@media (min-width: 64em) {
  .jam-entry__when {
    gap: 0;
  }
}

.jam-entry__year {
  color: var(--text-2);
}

.jam-entry__game {
  display: grid;
  gap: 0.5rem;
}

/* The game and the way on are children of the card (after the text): on phones they simply follow it. */
.jam-card--wide > .jam-entry__game,
.jam-card--wide > .jam-card__more {
  margin-inline: clamp(0.875rem, 2vw, 1.5rem);
}

.jam-card--wide > .jam-card__more {
  margin-block: var(--sp-5) 1rem;
}

/* Whole inside the frame whatever its shape (a photo taller than 3:2 is fitted by height), centred, and never
   larger than the photo's own pixels. */
.jam-card--wide .jam-card__photo > img:not(.jam-card__backdrop) {
  position: absolute;
  inset: 0;
  max-width: var(--w);
  max-height: var(--h);
  margin: auto;
}

@media (min-width: 30em) {
  .jam-entry__numbers {
    grid-template-columns: repeat(4, minmax(0, auto));
    justify-content: start;
    gap: var(--sp-4) clamp(1.5rem, 3vw, 2.75rem);
  }
}

/* Photo and text side by side: the photo with its credit and, under it, the game made at the jam; the text
   column beside them, closed by the way to the jam page. The photo column is narrower than 1024 px at every
   width, so the photo is never enlarged. */
@media (min-width: 56.25em) {
  .jam-card--wide {
    display: grid;
    grid-template-columns: 54% minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
  }

  .jam-card--wide .jam-card__media {
    grid-area: 1 / 1;
  }

  .jam-card--wide > .jam-entry__game {
    grid-area: 2 / 1 / 4 / 2;
    align-self: start;
    margin: 0;
    padding: 0.875rem 0.625rem 0.625rem;
  }

  .jam-card--wide .jam-card__body {
    grid-area: 1 / 2 / 3 / 3;
    gap: 0.875rem;
    padding: 1.5rem clamp(1.25rem, 2.6vw, 2.5rem) 0.5rem;
  }

  .jam-card--wide > .jam-card__more {
    grid-area: 3 / 2;
    align-self: end;
    margin: var(--sp-4) clamp(1.25rem, 2.6vw, 2.5rem) 1.25rem;
  }

  .jam-card--wide .jam-card__title {
    font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.75rem);
    font-weight: 800;
    line-height: 1.02;
  }
}

/* --- Jam page: hero ---------------------------------------------------------------------------- */

.jh .gh__text {
  max-width: 46rem;
}

.jh__title {
  font-size: clamp(2.25rem, 1.4rem + 3.5vw, 4.25rem);
  font-weight: 800;
  letter-spacing: var(--track-display);
  line-height: 0.98;
  text-wrap: balance;
  text-shadow: 0 0.125rem 1.5rem rgb(0 0 0 / 0.45);
}

/* The result, in the model's own words. */
.jh__result {
  max-width: 34em;
  font-size: var(--fs-lead);
  font-weight: 500;
  line-height: 1.4;
  text-wrap: pretty;
  text-shadow: 0 1px 2px rgb(0 0 0 / 0.5);
}

.jh .gh__meta {
  max-width: 46em;
}

/* The hero photo: whole, in a frame sized from its own ratio and pixels, with caption and credit under it. */
.jh__figure {
  display: grid;
  gap: 0.625rem;
  width: min(100%, var(--art-w), calc(var(--art-ratio) * min(21rem, 42svh)));
}

.jh__frame {
  display: block;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: var(--r-media);
  background: var(--bg-inset);
  box-shadow: 0 1.5rem 4rem rgb(0 0 0 / 0.5);
  cursor: zoom-in;
}

.jh__frame:focus-visible {
  outline-offset: 3px;
}

.jh__frame img {
  width: 100%;
}

@media (min-width: 56.25em) {
  .jh__figure {
    width: min(44vw, 40rem, var(--art-w), calc(var(--art-ratio) * min(27rem, 54svh)));
  }
}

/* Caption + credit line of a photo (hero and gallery): two lines, so the block keeps its height when the web
   fonts arrive (side by side the pair wrapped or not depending on the font, and the hero jumped). */
.jp-caption {
  display: grid;
  gap: 0.125rem;
  padding-inline: 0.25rem;
  font-size: var(--fs-small);
  line-height: 1.45;
  color: var(--text-2);
}

.jp-caption__credit {
  font-size: var(--fs-mono-s);
}

/* Under the full-width band there is room for both on one line. */
@media (min-width: 48em) {
  .jp-photo--band .jp-caption {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
  }
}

/* A long name (the English name carries its translation in brackets) is set a size smaller. */
.jh__title--long {
  font-size: clamp(2rem, 1.4rem + 2.5vw, 3.25rem);
  line-height: 1.02;
}

/* --- Jam page: numbers, story ------------------------------------------------------------------ */

.jp-numbers {
  padding-top: clamp(2rem, 1.25rem + 3vw, 3.5rem);
}

.jp-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 40em) {
  .jp-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.jp-intro .gp-intro__main {
  gap: var(--sp-4);
}

/* The story: the first paragraph leads, the rest is running text. */
.jp-story > p:first-child {
  color: var(--text);
}

@media (min-width: 48em) {
  .jp-story > p:first-child {
    font-size: clamp(1.1875rem, 1.05rem + 0.5vw, 1.4375rem);
    line-height: 1.45;
  }
}

/* The model's row labels are longer than the game page's ("Değerlendirme", "Organised by"). */
.jp-intro .gp-facts .facts__row {
  grid-template-columns: minmax(7.75rem, 0.36fr) minmax(0, 1fr);
}

.jp-legal {
  max-width: var(--measure);
  margin-top: var(--sp-3);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
}

/* --- Jam page: photos ---------------------------------------------------------------------------- */

.jp-photos,
.jp-build {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.25rem, 1rem + 1vw, 2rem);
}

.jp-build {
  gap: var(--sp-4);
  margin-top: clamp(2.5rem, 1.75rem + 3vw, 4rem);
}

.jp-photos__row,
.jp-build__row {
  display: flex;
  align-items: flex-start;
  gap: clamp(0.75rem, 0.5rem + 1vw, 1.5rem);
}

/* A figure never grows past the photo's own pixels (--w); in a row the widths follow the aspect ratios,
   so the pictures of a row share one height. */
.jp-photo {
  display: grid;
  align-content: start;
  gap: 0.625rem;
  min-width: 0;
  max-width: calc(var(--w) * 1px);
}

.jp-photos__row > .jp-photo,
.jp-build__row > .jp-photo {
  flex: var(--ratio) 1 0%;
}

.jp-photo__link {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--r-media);
  background: var(--bg-inset);
  cursor: zoom-in;
}

.jp-photo__link:focus-visible {
  outline-offset: 3px;
}

.jp-photo__link picture {
  display: block;
}

.jp-photo__link img {
  width: 100%;
  transition: transform var(--dur-slow) var(--ease-out);
}

.jp-photo__link::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--line);
  border-radius: inherit;
  transition: border-color var(--dur) ease;
  pointer-events: none;
}

@media (hover: hover) {
  .jp-photo__link:hover img {
    transform: scale(1.025);
  }

  .jp-photo__link:hover::after {
    border-color: var(--accent-line);
  }
}

/* Phones: one photo per row, each with its caption. */
@media (max-width: 39.99em) {
  .jp-photos__row,
  .jp-build__row {
    flex-direction: column;
    gap: clamp(1.25rem, 1rem + 1vw, 2rem);
  }

  .jp-photos__row > .jp-photo,
  .jp-build__row > .jp-photo {
    flex: none;
    width: 100%;
  }
}

/* --- Jam page: the game made there ---------------------------------------------------------------- */

.jp-game {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-5);
  align-items: start;
}

.jp-game__made,
.jp-game__next {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: var(--sp-4);
  min-width: 0;
}

/* A cover is never enlarged: the picture column of the wide card stops at 40rem (UNCUT cover is 630px wide). */
@media (min-width: 48em) {
  .jp-game .game-card--wide .game-card__media {
    flex-basis: min(58%, 40rem);
  }
}

.jp-game__note,
.jp-game__became {
  max-width: 46ch;
  font-size: var(--fs-small);
  color: var(--text-2);
}

/* The line from the jam game to what it became. */
.jp-game__arrow {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  justify-self: center;
  border: var(--stroke) solid var(--accent-line);
  border-radius: 50%;
  color: var(--accent);
  transform: rotate(90deg);
}

@media (min-width: 48em) {
  .jp-game--pair {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: clamp(1rem, 2vw, 2rem);
  }

  /* Level with the middle of the two covers: label row, card padding, half of a 16:9 cover whose width follows
     from the page width (two equal cards beside the arrow), minus half the arrow. */
  .jp-game__arrow {
    --pair-gap: clamp(1rem, 2vw, 2rem);
    --card-w: calc((min(100vw - 2 * var(--gutter), var(--page-max)) - 2.75rem - 2 * var(--pair-gap)) / 2);
    align-self: start;
    margin-top: calc(1.125rem + var(--sp-4) + var(--card-pad) + (var(--card-w) - 2 * var(--card-pad)) * 9 / 32 - 1.375rem);
    transform: none;
  }
}

/* --- Jam page: links and the other jam -------------------------------------------------------------- */

.jp-end {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
  align-items: start;
}

.jp-end__links,
.jp-end__others {
  display: grid;
  align-content: start;
  gap: var(--sp-4);
  min-width: 0;
}

.jp-links {
  border-top: 1px solid var(--line-strong);
}

.jp-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.875rem;
  min-height: 4rem;
  padding-block: 0.625rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.jp-link__mark {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: var(--stroke) solid var(--line-strong);
  border-radius: 50%;
  color: var(--text-2);
  transition: border-color var(--dur) ease, color var(--dur) ease;
}

.jp-link__mark .icon {
  width: 1rem;
  height: 1rem;
}

.jp-link__mark .shape {
  font-size: 0.875rem;
}

.jp-link__text {
  display: grid;
  gap: 0.0625rem 1rem;
  min-width: 0;
}

.jp-link__label {
  font-weight: 600;
  line-height: 1.3;
  transition: color var(--dur) ease;
}

.jp-link__host {
  font-size: var(--fs-mono-s);
  overflow-wrap: anywhere;
}

.jp-link > .icon {
  color: var(--text-3);
  transition: color var(--dur) ease, transform var(--dur) var(--ease-out);
}

.jp-link:hover .jp-link__label {
  color: var(--accent);
}

.jp-link:hover .jp-link__mark {
  border-color: var(--accent);
  color: var(--accent);
}

.jp-link:hover > .icon {
  color: var(--accent);
  transform: translate(2px, -2px);
}

.jp-end__others .gp-pager__all {
  justify-self: start;
  margin-top: var(--sp-2);
}

@media (min-width: 40em) {
  .jp-link__text {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: baseline;
  }

  .jp-link__host {
    text-align: right;
  }
}

@media (min-width: 60em) {
  .jp-end {
    grid-template-columns: minmax(0, 1.55fr) minmax(19rem, 1fr);
  }
}

/* --- Picture viewer with captions (jam photos) ------------------------------------------------------ */

.lightbox--captioned[open] {
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.lightbox__caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-content: center;
  align-items: baseline;
  gap: 0.125rem 1rem;
  min-height: 3.5rem;
  padding: 0.75rem calc(var(--gutter) + 4rem) max(1rem, env(safe-area-inset-bottom, 0px));
  font-size: var(--fs-small);
  line-height: 1.4;
  text-align: center;
  color: var(--text-2);
}

.lightbox__credit {
  font-size: var(--fs-mono-s);
}

.lightbox--captioned .lightbox__stage {
  padding-bottom: 0;
}

@media (max-width: 47.99em) {
  /* The two buttons stand left and right of the caption instead of under the picture. */
  .lightbox--captioned .lightbox__stage {
    padding-bottom: 0;
  }

  .lightbox__caption {
    min-height: 5rem;
    padding-inline: calc(var(--gutter) + 3.5rem);
  }
}

/* 74-studio.css */
/* Studio page (/studyo/), privacy policy (/privacy.html) and the 404 page.
   Markup: src/pages/studio.js, src/pages/privacy.js (+ src/content/privacy-policy.html), src/pages/notfound.js. */

/* --- Studio page ------------------------------------------------------------------------------ */

/* Eyebrow: studio name (link home) and the tagline; on a narrow screen the tagline takes the next line. */
.sp-head .page-head__eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.125rem 1.125rem;
}

.sp-head__tagline {
  color: var(--text-3);
}

/* The studio line is the page title: the statement of the home page, here as the heading. */
.sp-head__title {
  max-width: 20em;
  font-size: var(--fs-display);
  font-weight: 700;
  letter-spacing: var(--track-display);
  line-height: 1.04;
  text-wrap: balance;
}

.sp-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
  align-items: start;
}

.sp-about {
  display: grid;
  gap: var(--sp-4);
}

.sp-about__text {
  max-width: 34em;
  font-size: clamp(1.25rem, 1.1rem + 0.75vw, 1.625rem);
  line-height: 1.42;
  letter-spacing: -0.005em;
}

/* Contact panel: the line, the address, the copy button with its status line, the social links. */
.sp-contact {
  display: grid;
  gap: var(--sp-4);
  min-width: 0;
  padding: 1.375rem clamp(1.125rem, 0.7rem + 1.6vw, 1.75rem) 1.625rem;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--bg-raised);
}

.sp-contact__line {
  font-size: var(--fs-lead);
  font-weight: 500;
  line-height: 1.35;
}

.sp-contact .contact__mail {
  font-size: clamp(1rem, 0.85rem + 0.6vw, 1.25rem);
}

.sp-contact__sub {
  margin-top: var(--sp-3);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
}

.sp-stats {
  margin-top: clamp(3.5rem, 2.5rem + 5vw, 6.5rem);
}

.sp-team {
  margin-top: clamp(4rem, 2.5rem + 6vw, 7.5rem);
}

.sp-members {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-5);
}

.sp-member {
  display: grid;
  align-content: start;
  gap: var(--sp-5);
  min-width: 0;
  padding: 1.5rem clamp(1.125rem, 0.7rem + 1.6vw, 1.75rem) clamp(1.125rem, 0.7rem + 1.6vw, 1.75rem);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--bg-raised);
}

.sp-member__who {
  display: grid;
  gap: 0.5rem;
}

.sp-member__name {
  font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: var(--track-title);
  line-height: 1.05;
}

.sp-member__role {
  color: var(--text-2);
}

.sp-member__bio {
  max-width: 46ch;
  margin-top: 0.5rem;
  color: var(--text-2);
}

.sp-member__games {
  display: grid;
  gap: var(--sp-3);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
}

.sp-member__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 14.5rem), 1fr));
  gap: 0.5rem;
}

/* On the member card the tiles are set into the surface. */
.sp-member .game-mini {
  background: var(--bg);
}

.sp-member .game-mini:hover {
  background: var(--bg-raised-2);
}

.sp-next {
  margin-top: clamp(4rem, 2.5rem + 6vw, 7.5rem);
}

@media (min-width: 56.25em) {
  .sp-members {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 60em) {
  .sp-intro {
    grid-template-columns: minmax(0, 1.3fr) minmax(22rem, 1fr);
  }
}

/* --- Privacy policy ------------------------------------------------------------------------------ */
/* The text is a verbatim cut of the page it replaces and keeps that page's class names (.lead, .note, .games,
   .game, .game-head, .privacy-section, .highlight). They are styled only inside .legal. */

.legal > * {
  max-width: 52rem;
}

.legal > h1 {
  margin-top: var(--sp-4);
  font-size: var(--fs-h1);
  letter-spacing: var(--track-display);
  line-height: 0.98;
}

.legal > .lead {
  max-width: 40em;
  margin-top: var(--sp-5);
}

.legal .note {
  margin-top: var(--sp-3);
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--text-3);
}

/* Jump links to the three sections (the addresses the app stores use). */
.legal .games {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: var(--sp-6);
  padding-bottom: clamp(2rem, 1rem + 3vw, 3.5rem);
  border-bottom: 1px solid var(--line);
}

.legal .games a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding-inline: 1.125rem;
  border: var(--stroke) solid var(--line-strong);
  border-radius: var(--r-pill);
  font-weight: 600;
  text-decoration: none;
  transition: border-color var(--dur-fast) ease, color var(--dur-fast) ease;
}

.legal .games a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* The anchors land under the sticky header through the document's scroll-padding-top (20-base.css). */
.legal .game {
  margin-top: clamp(3rem, 2rem + 4vw, 5rem);
}

.legal .game-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 1rem;
  padding-bottom: var(--sp-4);
  margin-bottom: var(--sp-5);
  border-bottom: 1px solid var(--line-strong);
}

.legal .game-head h2 {
  font-size: var(--fs-h2);
  letter-spacing: var(--track-title);
  line-height: 1.05;
}

.legal .game-head code {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.02em;
  color: var(--text-3);
  overflow-wrap: anywhere;
}

.legal .privacy-section {
  margin-bottom: var(--sp-4);
  padding: 1.5rem clamp(1.125rem, 0.7rem + 1.8vw, 1.875rem);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--bg-raised);
  color: var(--text-2);
}

/* "In short": marked with the signal colour, without a flood behind the text. */
.legal .highlight {
  border-color: var(--accent-line);
  background: color-mix(in srgb, var(--accent) 5%, var(--bg-raised));
}

.legal .privacy-section h2 {
  margin-bottom: 0.75rem;
  font-size: 1.375rem;
  letter-spacing: var(--track-title);
  line-height: 1.2;
  color: var(--text);
}

.legal .privacy-section h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
}

.legal .privacy-section p,
.legal .privacy-section ul {
  margin-bottom: 0.75rem;
}

.legal .privacy-section > :last-child {
  margin-bottom: 0;
}

.legal .privacy-section ul {
  display: grid;
  gap: 0.5em;
}

.legal .privacy-section li {
  position: relative;
  padding-left: 1.5em;
}

/* Square bullet: the □ of the logo, as in .prose. */
.legal .privacy-section li::before {
  content: '';
  position: absolute;
  left: 0.1em;
  top: 0.55em;
  width: 0.5em;
  height: 0.5em;
  border: var(--stroke) solid var(--accent);
  border-radius: 0.14em;
}

.legal .privacy-section strong {
  font-weight: 600;
  color: var(--text);
}

.legal .privacy-section a {
  color: var(--text);
  text-decoration-color: var(--accent-line);
  overflow-wrap: anywhere;
}

.legal .privacy-section a:hover {
  text-decoration-color: var(--accent);
}

.legal .game > .note {
  margin-top: var(--sp-4);
}

/* --- 404 ----------------------------------------------------------------------------------------- */

.notfound {
  display: grid;
  align-content: start;
  gap: clamp(2rem, 1rem + 4vw, 4rem);
}

/* 4 ○ 4: the zero is the circle of the logo. */
.notfound__code {
  display: flex;
  align-items: center;
  gap: 0.04em;
  font-size: clamp(6.5rem, 3.5rem + 20vw, 17rem);
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.04em;
}

.notfound__code .shape {
  font-size: 0.74em;
  color: var(--lime);
  stroke-width: 3.6;
}

.notfound__langs {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-7);
}

.notfound__block {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: var(--sp-4);
  min-width: 0;
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line-strong);
}

.notfound__eyebrow {
  color: var(--text-3);
}

.notfound__title {
  font-size: var(--fs-h2);
  letter-spacing: var(--track-title);
  line-height: 1.02;
}

.notfound__lead {
  max-width: 34ch;
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--text-2);
}

.notfound__index {
  justify-self: stretch;
  margin-top: var(--sp-4);
}

@media (min-width: 56.25em) {
  .notfound__langs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(2rem, 4vw, 4rem);
  }
}

/* accents (src/lib/art.js) */
[data-accent='market-is-fine'] { --accent: #ffc531; }
[data-accent='the-black-shift'] { --accent: #f2792b; }
[data-accent='vatan'] { --accent: #d8b25a; }
[data-accent='kan-bagi'] { --accent: #f0495c; }
[data-accent='uncut'] { --accent: #6fe3e1; }
[data-accent='komur-yolu'] { --accent: #e9a23b; }
[data-accent='crowd-rush'] { --accent: #ff5fa2; }
[data-accent='paw-story'] { --accent: #8f7bff; }
