/* ============================================================
   Techwriter Software Inc — site stylesheet
   1. Tokens        4. Header
   2. Reset/base    5. Main + pages
   3. Backdrop      6. Footer
   ============================================================ */

/* -- 1. Tokens ---------------------------------------------- */

:root {
  --void: #000;
  --ink: #fff;

  /* Plate greys: the chrome sits well below the artwork in weight. */
  --plate: rgba(255, 255, 255, .46);
  --plate-dim: rgba(255, 255, 255, .28);
  --plate-bright: rgba(255, 255, 255, .88);

  /* Violet lifted from the corruption rim in starfield.js. */
  --rift: #ba8cff;
  --rule: rgba(255, 255, 255, .09);

  --serif: Georgia, "Times New Roman", serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 4.5vw, 44px);
  --shell: 1140px;
  --header-h: clamp(46px, 6vh, 58px);
}

/* -- 2. Reset / base ---------------------------------------- */

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--void);
  color: var(--ink);
  font-family: var(--serif);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; }

a { color: inherit; }

:focus-visible {
  outline: 1px solid var(--rift);
  outline-offset: 4px;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 10px 16px;
  background: var(--void);
  border: 1px solid var(--rift);
  font: 500 13px/1 var(--sans);
  text-decoration: none;
}

.skip-link:focus {
  left: var(--gutter);
  top: 12px;
}

/* -- 3. Backdrop -------------------------------------------- */
/* Both canvases are persistent chrome: they live in the shell and
   survive every page. The corruption bloom only renders where the
   page opts in with data-fx="full". */

#stars, #corruption {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

#stars { z-index: 0; }

#corruption {
  z-index: 1;
  display: none;
}

body[data-fx="full"] #corruption { display: block; }

/* Interior pages pull the field back so text stays legible. */
body:not([data-fx="full"]) #stars { opacity: .38; }
body[data-page="home"] #stars,
body[data-page="picker"] #stars { opacity: .9; }

/* -- 4. Header ---------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  flex: 0 0 auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  border-top: 1px solid rgba(17, 17, 17, .12);
  border-bottom: 1px solid rgba(17, 17, 17, .12);
  background: #f2f4f8;
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
}

.site-header::after,
.site-footer::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: rgba(186, 140, 255, .42); box-shadow: 0 0 12px rgba(186, 140, 255, .2); }
.site-header::after { bottom: -1px; }
.site-footer::after { bottom: 0; }

.site-header .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.wordmark {
  font: 400 clamp(11px, 1.15vw, 13px)/1.2 var(--serif);
  text-transform: uppercase;
  letter-spacing: .3em;
  text-indent: .3em;
  color: var(--plate);
  text-decoration: none;
  text-shadow: 0 0 18px rgba(120, 150, 255, .16);
  transition: color 220ms ease;
}

.wordmark:hover { color: var(--plate-bright); }

.brand-logo { display: block; width: 260px; line-height: 0; }
.brand-logo img { display: block; width: 100%; height: 42px; object-fit: contain; object-position: left center; mix-blend-mode: multiply; opacity: .95; }
.header-cta { margin-left: auto; padding: 10px 16px; border: 1px solid #6f43a3; border-radius: 999px; background: #6f43a3; color: #fff; font: 600 11px/1 var(--sans); letter-spacing: .08em; text-decoration: none; text-transform: uppercase; transition: background 180ms ease, color 180ms ease, transform 180ms ease; }
.header-cta:hover { background: #563185; transform: translateY(-1px); }
.header-cta--disabled { border-color: rgba(17, 17, 17, .2); background: rgba(17, 17, 17, .08); color: rgba(17, 17, 17, .42); cursor: default; pointer-events: none; }
.header-cta--disabled:hover { background: rgba(17, 17, 17, .08); transform: none; }

.site-nav {
  display: flex;
  gap: clamp(18px, 3vw, 34px);
}

.site-nav a {
  position: relative;
  padding-block: 6px;
  font: 400 clamp(12px, 1.05vw, 13.5px)/1 var(--sans);
  letter-spacing: .06em;
  color: var(--plate);
  text-decoration: none;
  transition: color 220ms ease;
}

.site-nav a:hover { color: var(--plate-bright); }

/* Current page carries a violet underscore — the only accent in the
   chrome, so it reads as position rather than decoration. */
.site-nav a[aria-current="page"] {
  color: var(--plate-bright);
}

.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--rift);
  box-shadow: 0 0 10px rgba(186, 140, 255, .8);
}

/* On the splash the chrome dissolves into the void. */
body[data-page="home"] .site-header {
  position: sticky;
  background: #f2f4f8;
}

/* -- 5. Main + pages ---------------------------------------- */

.site-main {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

body[data-page="home"] .site-main { background: radial-gradient(circle at 18% 45%, rgba(111, 67, 163, .16), transparent 38%), radial-gradient(circle at 82% 54%, rgba(61, 132, 173, .14), transparent 42%); }

/* 5a. Section picker -------------------------------------- */

.picker {
  flex: 1 1 auto;
  width: min(1180px, 100%);
  margin: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 4vh, 48px) var(--gutter);
}

.picker-intro { margin-bottom: clamp(30px, 5vh, 58px); }

.picker-intro h1 {
  margin: 0;
  font: 400 clamp(36px, 6vw, 72px)/1 var(--serif);
  letter-spacing: -.035em;
}

.picker-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2.4vw, 28px);
}

.picker-card {
  position: relative;
  min-height: min(68vh, 720px);
  padding: clamp(24px, 3vw, 42px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .28);
  transition: transform 260ms ease, border-color 260ms ease, box-shadow 260ms ease;
}

.picker-card:hover {
  transform: translateY(-5px);
  border-color: var(--rift);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .35), 0 0 26px rgba(186, 140, 255, .14);
}

.picker-card--software { background: rgba(255, 255, 255, .58); color: #111; border-color: rgba(255, 255, 255, .88); }
.picker-card--games { background: linear-gradient(145deg, rgba(42, 29, 57, .54), rgba(5, 4, 7, .54) 68%); }

.picker-card__art {
  position: absolute;
  inset: 0 0 20%;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.picker-card__art img { width: min(72%, 340px); mix-blend-mode: screen; opacity: .76; }
.picker-card__software-art { position: absolute; inset: 0 0 22%; display: grid; place-items: center; pointer-events: none; }
.picker-card__software-art img { width: min(70%, 340px); max-width: 100%; height: auto; opacity: .92; mix-blend-mode: multiply; }
.picker-card__art img { width: min(82%, 400px); max-width: 100%; height: auto; }

.picker-card__label {
  position: relative;
  z-index: 1;
  font: 400 clamp(28px, 4vw, 52px)/1 var(--serif);
  letter-spacing: -.025em;
}

.picker-card__action {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  font: 500 12px/1 var(--sans);
  text-transform: uppercase;
  letter-spacing: .16em;
}

.picker-card__steam {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  width: min(100%, 196px);
  height: 82px;
  box-sizing: border-box;
  margin-top: 40px;
  padding: 16px;
  background: #000;
}

.picker-card__steam img {
  display: block;
  width: auto;
  height: 50px;
}

.picker-card--software .picker-card__action { color: #6f43a3; }

/* -- Games picker ------------------------------------------ */
.games-picker { padding-top: clamp(34px, 6vh, 74px); padding-bottom: clamp(34px, 6vh, 74px); }
.games-picker .picker-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}
.games-picker { --card-head: 52px; --card-foot: 40px; }
.games-picker .picker-card { min-height: 0; aspect-ratio: 1 / 1; padding: 0; }
.games-picker .picker-card--featured { aspect-ratio: 8 / 5; }
.games-picker .picker-card__art--cover img { object-position: center 40%; }
.games-picker .picker-card .picker-card__art { inset: var(--card-head) 0 var(--card-foot); }
.picker-card__header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  height: var(--card-head);
  box-sizing: border-box;
  padding: 0 clamp(14px, 1.6vw, 22px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(0, 0, 0, .78);
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}
.picker-card__header .picker-card__steam {
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  background: none;
}
.picker-card__header .picker-card__steam img { height: 18px; width: auto; }
.games-picker .picker-card--featured { grid-column: span 2; }
.games-picker .picker-card__action { margin-top: 0; }
.picker-card--retro { background: linear-gradient(145deg, rgba(42, 29, 57, .7), rgba(5, 4, 7, .72) 68%); }
.picker-card--phonics { background: linear-gradient(145deg, rgba(12, 32, 51, .92), rgba(7, 19, 30, .88)); }
.picker-card--charred {
  background:
    linear-gradient(rgba(12, 6, 4, .44), rgba(12, 6, 4, .64));
}
.picker-card--left-right {
  justify-content: flex-end;
  background: linear-gradient(145deg, rgba(16, 91, 112, .9), rgba(4, 20, 31, .92));
}
.picker-card--fail-bike {
  justify-content: flex-end;
  background: linear-gradient(145deg, rgba(113, 39, 61, .9), rgba(28, 7, 15, .92));
}
.picker-card__art--cover { inset: var(--card-head, 0) 0 var(--card-foot, 0); }
.picker-card__art--cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: normal;
  opacity: .9;
}
.picker-card--roomfall {
  background:
    linear-gradient(180deg, rgba(11, 36, 102, .1), rgba(5, 10, 35, .86) 88%),
    url("/assets/img/roomfall-sky.png") center / cover;
}
.picker-card__art--tile img { width: min(42%, 220px); mix-blend-mode: normal; opacity: 1; filter: drop-shadow(0 16px 18px rgba(0, 0, 0, .34)); }
.picker-card__art--logo img {
  width: min(82%, 400px);
  aspect-ratio: 1;
  object-fit: contain;
  object-position: center;
  mix-blend-mode: normal;
  opacity: 1;
  filter: drop-shadow(0 16px 18px rgba(0, 0, 0, .34));
}
.picker-card--phonics { background: linear-gradient(180deg, #2f4525, #293e23); }
.picker-card--phonics .picker-card__art--logo { background: linear-gradient(180deg, #2f4525, #293e23); }
.picker-card--phonics .picker-card__art--logo img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  filter: none;
}
.picker-card--retro .picker-card__action { color: #ba8cff; }
.picker-card--phonics .picker-card__action { color: #f0c04a; }
.picker-card__art--charred img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  mix-blend-mode: normal;
  opacity: 1;
}
.picker-card--charred .picker-card__action { color: #ef8d57; }
.picker-card__art--roomfall {
  inset: 0 0 24%;
}
.picker-card__art--roomfall img {
  width: min(88%, 430px);
  max-height: 72%;
  object-fit: contain;
  filter: drop-shadow(0 16px 18px rgba(0, 0, 0, .46));
}
.picker-card--roomfall .picker-card__action { color: #fbbf24; }
.picker-card--left-right .picker-card__action { color: #70d9e8; }
.picker-card--fail-bike .picker-card__action { color: #f3a0ba; }

.software-page,
body[data-page="software"] { background: #fff; color: #111; }

body[data-page="software"] #stars { display: none; }
body[data-page="software"] .site-header,
body[data-page="software"] .site-footer {
  background: #fff;
  border-color: rgba(17, 17, 17, .12);
}

body[data-page="software"] .wordmark,
body[data-page="software"] .colophon { color: rgba(17, 17, 17, .58); }

body[data-page="software"] .site-nav a,
body[data-page="software"] .footer-nav a { color: rgba(17, 17, 17, .62); }
body[data-page="software"] .brand-logo img { mix-blend-mode: multiply; opacity: .95; }
body[data-page="software"] .site-footer { background: linear-gradient(90deg, rgba(111, 67, 163, .12), rgba(61, 132, 173, .1)); }
body[data-page="software"] .site-nav a:hover,
body[data-page="software"] .footer-nav a:hover { color: #111; }
body[data-page="software"] .page-head { border-bottom-color: rgba(17, 17, 17, .12); }
body[data-page="software"] .page-head {
  background: none;
}
body[data-page="software"] .page-head { border-top: 4px solid #6f43a3; background: linear-gradient(110deg, rgba(111, 67, 163, .14), rgba(61, 132, 173, .08) 52%, rgba(255, 255, 255, 0) 88%); }
body[data-page="software"] .page-head { padding-top: clamp(24px, 5vh, 56px); padding-bottom: clamp(18px, 3vh, 32px); }
body[data-page="software"] .site-main { flex: 0 0 auto; }
body[data-page="software"] .site-footer { margin-top: auto; }
body[data-page="software"] .eyebrow { color: #6f43a3; }
body[data-page="software"] .page-head h1 { color: #111; }
body[data-page="software"] .page-head .standfirst,
body[data-page="software"] .prose p,
body[data-page="software"] .prose li { color: rgba(17, 17, 17, .72); }
body[data-page="software"] .prose h2 { color: #111; }
body[data-page="software"] .prose a { color: #6f43a3; }

.software-hero-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(230px, 330px); gap: clamp(36px, 8vw, 120px); align-items: end; }
.software-quote { align-self: stretch; justify-self: end; width: 100%; display: flex; flex-direction: column; justify-content: center; padding: 14px 0 12px 24px; border-left: 1px solid #6f43a3; text-align: right; }
.software-quote__text { margin: 0; font: 400 clamp(19px, 2vw, 26px)/1.22 var(--serif); letter-spacing: -.015em; color: #6f43a3; }
.software-quote__text { opacity: 1; transition: opacity 220ms ease; }
.software-quote__text.is-changing { opacity: 0; }

.software-filters { display: flex; flex-wrap: wrap; gap: 8px; padding-top: clamp(8px, 2vh, 16px); }
.software-filters button { padding: 10px 14px; border: 1px solid rgba(17, 17, 17, .22); border-radius: 999px; background: transparent; color: rgba(17, 17, 17, .68); cursor: pointer; font: 500 11px/1.1 var(--sans); letter-spacing: .04em; transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease; }
.software-filters button:hover { border-color: #6f43a3; color: #6f43a3; transform: translateY(-1px); }
.software-filters button[aria-selected="true"] { border-color: #6f43a3; background: #6f43a3; color: #fff; }
.software-section { padding-top: 1px; }
.software-section[hidden] { display: none; }
.software-section h2 { display: none; }
.software-prose { padding-top: clamp(8px, 2vh, 16px); padding-bottom: clamp(20px, 4vh, 36px); }

.legal-main { position: relative; z-index: 2; flex: 1 1 auto; padding: clamp(42px, 8vh, 88px) var(--gutter); }
.legal-document { max-width: 780px; margin: 0 auto; white-space: pre-wrap; font: 400 clamp(14px, 1.15vw, 16px)/1.72 var(--serif); color: rgba(255, 255, 255, .74); }
.legal-page .site-footer { margin-top: auto; }

.software-coming-soon {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-content: center;
  gap: 18px;
  padding: var(--gutter);
  text-align: center;
}

.software-coming-soon .eyebrow { color: #6f43a3; }
.software-coming-soon h1 { margin: 0 0 10px; font: 400 clamp(48px, 8vw, 92px)/.95 var(--serif); letter-spacing: -.04em; }
.software-coming-soon a { color: #6f43a3; font: 500 12px/1 var(--sans); letter-spacing: .1em; text-decoration: none; text-transform: uppercase; }

/* 5a. Splash --------------------------------------------- */

.splash {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-h) + 2vh) var(--gutter) 4vh;
}

.composition {
  width: min(760px, 90vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero {
  width: min(500px, 70vw);
  max-height: 52vh;
  height: auto;
  object-fit: contain;
  display: block;
  mix-blend-mode: screen;
  opacity: .78;
  filter: saturate(.95) brightness(.96);
}

.release {
  margin: 1.2vh 0 3.8vh;
  color: rgba(255, 255, 255, .36);
  font: 700 clamp(22px, 2.6vw, 31px)/1 var(--serif);
  letter-spacing: -.02em;
}

.brand-row {
  width: min(620px, 82vw);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 5vw, 62px);
  align-items: center;
  justify-items: center;
}

.brand-row img {
  display: block;
  width: 100%;
  height: 90px;
  object-fit: contain;
  mix-blend-mode: screen;
  opacity: .78;
  filter: saturate(.82) brightness(.92);
}

.brand-row .reality { max-width: 165px; }
.brand-row .techwriter { max-width: 170px; }
.brand-row .byline { max-width: 220px; }

/* Load sequence: chrome, artwork, colophon. */
@keyframes plate-in {
  from { opacity: 0; transform: translateY(7px); }
  to   { opacity: 1; transform: none; }
}

body[data-page="home"] .site-header { animation: plate-in 900ms cubic-bezier(.22,.61,.36,1) 120ms both; }
body[data-page="home"] .composition { animation: plate-in 1100ms cubic-bezier(.22,.61,.36,1) 260ms both; }
body[data-page="home"] .site-footer { animation: plate-in 900ms cubic-bezier(.22,.61,.36,1) 620ms both; }

/* 5b. Interior pages ------------------------------------- */

.page-head {
  padding: clamp(56px, 11vh, 108px) 0 clamp(28px, 5vh, 48px);
  border-bottom: 1px solid var(--rule);
}

.eyebrow {
  margin: 0 0 14px;
  font: 400 11.5px/1 var(--sans);
  text-transform: uppercase;
  letter-spacing: .26em;
  color: var(--rift);
}

.page-head h1 {
  margin: 0;
  max-width: 18ch;
  font: 400 clamp(34px, 5.4vw, 62px)/1.06 var(--serif);
  letter-spacing: -.02em;
}

.page-head .standfirst {
  margin: 20px 0 0;
  max-width: 56ch;
  font: 400 clamp(16px, 1.5vw, 19px)/1.6 var(--serif);
  color: rgba(255, 255, 255, .62);
}

.prose {
  padding: clamp(32px, 6vh, 64px) 0 clamp(56px, 10vh, 100px);
  max-width: 68ch;
}

.prose h2 {
  margin: 2.2em 0 .6em;
  font: 400 clamp(20px, 2.2vw, 27px)/1.2 var(--serif);
  letter-spacing: -.01em;
}

.prose h2:first-child { margin-top: 0; }

.prose p,
.prose li {
  font: 400 clamp(15.5px, 1.35vw, 17px)/1.75 var(--serif);
  color: rgba(255, 255, 255, .74);
}

.prose p { margin: 0 0 1.2em; }

.prose ul {
  margin: 0 0 1.4em;
  padding-left: 1.1em;
}

.prose li { margin-bottom: .5em; }

.prose li::marker { color: var(--rift); }

.prose a {
  color: var(--ink);
  text-decoration-color: var(--rift);
  text-underline-offset: 4px;
}

/* -- 6. Footer ---------------------------------------------- */

.site-footer {
  position: relative;
  z-index: 20;
  flex: 0 0 auto;
  padding-block: 10px;
  border-top: 1px solid var(--rule);
  background: rgba(0, 0, 0, .58);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
}

.site-footer .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  flex-wrap: wrap;
}

.colophon {
  margin: 0;
  font: 400 clamp(11px, 1vw, 12.5px)/1.5 var(--sans);
  letter-spacing: .04em;
  color: var(--plate-dim);
}

.footer-nav {
  display: flex;
  gap: clamp(16px, 2.4vw, 28px);
  flex-wrap: wrap;
}

.footer-nav a {
  font: 400 clamp(11px, 1vw, 12.5px)/1.5 var(--sans);
  letter-spacing: .04em;
  color: var(--plate-dim);
  text-decoration: none;
  transition: color 220ms ease;
}

.footer-nav a:hover { color: var(--plate-bright); }

/* The splash keeps its title-card symmetry. */
body[data-page="home"] .site-footer {
  border-top-color: var(--rule);
  background: rgba(0, 0, 0, .58);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  background: linear-gradient(90deg, rgba(111, 67, 163, .18), rgba(61, 132, 173, .14));
}

body[data-page="home"] .site-footer .shell {
  justify-content: space-between;
  text-align: left;
}

body[data-page="home"] .footer-nav { display: none; }

/* -- Responsive --------------------------------------------- */

@media (max-width: 700px) {
  .wordmark {
    letter-spacing: .2em;
    text-indent: .2em;
  }

  .site-header .shell {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-block: 4px;
  }

  .site-nav { gap: 20px; }

  .composition { width: 94vw; }
  .hero { width: min(520px, 84vw); }
  .picker-grid { grid-template-columns: 1fr; }
  .picker-card { min-height: 280px; }
  .software-hero-layout { grid-template-columns: 1fr; gap: 16px; }
  .software-quote { justify-self: stretch; padding: 10px 0 8px 18px; }

  .brand-row {
    width: 88vw;
    gap: 18px;
  }

  .brand-row img { height: 72px; }
  .release { margin-bottom: 3vh; }

  .site-footer .shell {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  body[data-page="home"] .site-header,
  body[data-page="home"] .composition,
  body[data-page="home"] .site-footer {
    animation: none;
  }
}

/* Retro League logo: fit inside the shorter featured card */
.games-picker .picker-card--retro .picker-card__art { display: block; }
.games-picker .picker-card--retro .picker-card__art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  padding: 10px 0;
  box-sizing: border-box;
  object-fit: contain;
}

/* Phonics Factory: lift the logo */
.games-picker .picker-card--phonics .picker-card__art--logo img { transform: translateY(-22%); }

/* Left-Right: show lower part of the image so the title sits higher */
.games-picker .picker-card--left-right .picker-card__art--cover img { object-position: center 47%; }

/* Fail Bike: widest crop that still fills the box (image is square) */
.games-picker .picker-card--fail-bike .picker-card__art--cover img { object-position: center 6%; }

/* Cover art: fill the art box exactly so object-fit/object-position apply */
.games-picker .picker-card__art--cover { display: block; }
.games-picker .picker-card__art--cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
}

/* Roomfall: lift the logo to sit level with its neighbours */
.games-picker .picker-card--roomfall .picker-card__art--roomfall img { transform: translateY(-14px); }

/* Card footer: short descriptor */
.picker-card__footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  height: var(--card-foot);
  box-sizing: border-box;
  padding: 0 clamp(14px, 1.6vw, 22px);
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, .78);
  border-top: 1px solid rgba(255, 255, 255, .14);
  font: 400 10px/1.35 var(--sans);
  letter-spacing: .03em;
  color: rgba(255, 255, 255, .74);
}

/* Charred Planet: keep the art inside the area between header and footer */
.games-picker .picker-card__art--charred { display: block; overflow: hidden; }
.games-picker .picker-card__art--charred img {
  position: absolute;
  inset: 0;
  max-width: none;
}

/* Section subheads inside the games grid */
.picker-subhead {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  font: 500 11px/1 var(--sans);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
}
.picker-subhead::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, .14);
}
.games-picker .picker-grid > .picker-subhead:not(:first-child) { margin-top: clamp(10px, 2vw, 22px); }

/* Games subhead: a slim bar attached to the site header */
.subhead-bar {
  position: sticky;
  top: 56px;
  z-index: 15;
  flex: 0 0 auto;
  background: rgba(0, 0, 0, .86);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.subhead-bar__inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 12px var(--gutter);
  box-sizing: border-box;
}
.subhead-bar h1 {
  margin: 0;
  font: 400 clamp(20px, 2.2vw, 26px)/1.1 var(--serif);
  letter-spacing: -.02em;
}
.subhead-bar + .games-picker { padding-top: clamp(22px, 4vh, 40px); }

/* Games grid: responsive steps (cards keep their aspect ratios) */
@media (max-width: 900px) {
  .games-picker .picker-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .games-picker .picker-card--featured { grid-column: 1 / -1; aspect-ratio: 7 / 3; }
}
@media (max-width: 520px) {
  .games-picker .picker-grid { grid-template-columns: minmax(0, 1fr); }
  .games-picker .picker-card,
  .games-picker .picker-card--featured { grid-column: auto; aspect-ratio: 4 / 3; }
}

/* Phonics Factory: keep the logo inside its art box at every width */
.games-picker .picker-card--phonics .picker-card__art--logo { display: block; }
.games-picker .picker-card--phonics .picker-card__art--logo img {
  position: absolute;
  inset: 0;
  max-width: none;
  object-fit: cover;
}
.games-picker .picker-card__art--charred img { object-position: center 30%; }

@media (max-width: 900px) {
  .games-picker .picker-card--phonics .picker-card__art--logo img { transform: none; }
}
