/* GamesWeb portal styles. Mobile first. Colours, type, spacing, shape and motion come from tokens.css.
   Visual direction: a dark "arcade", palette A2. Warm graphite page, layered surfaces, rounded cards, chunky pill buttons with a
   pressed state, one primary (teal) for anything you press, lighter teal for links, a calm coral chip for badges. The cover art
   supplies the rest of the colour. See docs/DESIGN-NOTES.md. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--hub-head-h) + var(--hub-sp-4)); }
body {
  margin: 0;
  background: var(--hub-bg);
  background-repeat: no-repeat;
  background-color: var(--hub-bg);
  color: var(--hub-ink);
  font-family: var(--hub-font-text);
  font-size: var(--hub-fs-md);
  line-height: var(--hub-lh-body);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}
main { flex: 1 0 auto; min-width: 0; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--hub-font-display); font-weight: 800; line-height: var(--hub-lh-tight); margin: 0; text-wrap: balance; overflow-wrap: break-word; }
h1 { font-size: var(--hub-fs-3xl); }
h2 { font-size: var(--hub-fs-xl); }
h3 { font-size: var(--hub-fs-lg); }
:lang(hi) h1, :lang(hi) h2, :lang(hi) h3 { line-height: 1.35; }
p { margin: 0 0 var(--hub-sp-4); }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--hub-focus); outline-offset: 3px; border-radius: var(--hub-radius-1); }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { width: 100%; max-width: var(--hub-page-max); margin-inline: auto; padding-inline: var(--hub-sp-4); }
@media (min-width: 48rem) { .wrap { padding-inline: var(--hub-sp-6); } }

.skip { position: absolute; inset-inline-start: var(--hub-sp-3); top: -4rem; z-index: 60; background: var(--hub-primary); color: var(--hub-primary-ink); font-weight: 600; padding: var(--hub-sp-2) var(--hub-sp-4); border-radius: var(--hub-radius-pill); }
.skip:focus { top: var(--hub-sp-3); }

/* ---------- Buttons: flat, softly rounded, a small press ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--hub-sp-2); min-height: 2.75rem; padding: 0.35rem 1.25rem; font-family: var(--hub-font-display); font-weight: 800; font-size: var(--hub-fs-md); line-height: 1.1; text-decoration: none; cursor: pointer; border: 0; border-radius: var(--hub-radius-1); background: var(--hub-surface-2); color: var(--hub-ink); transition: transform var(--hub-dur-1) var(--hub-ease), filter var(--hub-dur-1) var(--hub-ease), background-color var(--hub-dur-1) var(--hub-ease); -webkit-tap-highlight-color: transparent; }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn:hover { background: var(--hub-surface-3); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: default; transform: none; }
.btn--play { background: var(--hub-primary); color: var(--hub-primary-ink); }
.btn--play:hover { background: var(--hub-primary); filter: brightness(1.08); }
.btn--ghost { border: 1px solid var(--hub-line); }
.btn--ghost[aria-pressed="true"] { background: var(--hub-highlight); color: var(--hub-highlight-ink); border-color: transparent; }
.btn--glass { background: color-mix(in srgb, var(--hub-scrim) 55%, transparent); color: var(--hub-on-image); border: 1px solid color-mix(in srgb, var(--hub-on-image) 35%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.btn--glass:hover { background: color-mix(in srgb, var(--hub-scrim) 75%, transparent); }
.btn--lg { min-height: 3.5rem; padding-inline: 2rem; font-size: var(--hub-fs-lg); }
.btn--xl { min-height: 4.25rem; padding-inline: 2.75rem; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.75rem); }
.btn--icon { padding-inline: 1rem; }
.i-down { transform: rotate(180deg); }

/* ---------- Tags, badges, chips ---------- */
.tag { display: inline-flex; align-items: center; font-weight: 600; font-size: var(--hub-fs-xs); padding: 0.2rem 0.7rem; border-radius: var(--hub-radius-pill); background: var(--hub-surface-2); color: var(--hub-ink); line-height: 1.4; border: 1px solid var(--hub-line); }
.tag--accent { background: var(--accent); color: var(--accent-contrast); border-color: transparent; }
.tag--ar { background: var(--hub-ar-bg); color: var(--hub-ar-ink); border-color: var(--hub-ar-line); letter-spacing: 0.04em; }
.ar-note { margin: var(--hub-sp-3) 0 0; padding: 0.65rem 0.9rem; max-width: 62ch; border-radius: 12px; border: 1px solid var(--hub-line); background: var(--hub-surface-2); color: var(--hub-ink); font-size: var(--hub-fs-sm, 0.95rem); line-height: 1.5; }
.ar-note strong { margin-right: 0.25em; }
.tag--glass { background: color-mix(in srgb, var(--hub-scrim) 60%, transparent); color: var(--hub-on-image); border-color: color-mix(in srgb, var(--hub-on-image) 30%, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.badge { display: inline-flex; align-items: center; font-family: var(--hub-font-display); font-weight: 800; font-size: var(--hub-fs-xs); padding: 0.1rem 0.7rem; border-radius: var(--hub-radius-pill); background: var(--hub-highlight); color: var(--hub-highlight-ink); line-height: 1.5; }
.eyebrow { font-weight: 600; font-size: var(--hub-fs-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--hub-ink-soft); margin: 0 0 var(--hub-sp-2); }
.chips-static { display: flex; flex-wrap: wrap; gap: var(--hub-sp-2); margin: 0; padding: 0; list-style: none; }

/* ---------- Header ---------- */
.site-head { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--hub-bg) 84%, transparent); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); border-bottom: 1px solid var(--hub-line); }
.site-head__row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--hub-sp-2) var(--hub-sp-3); min-height: var(--hub-head-h); padding-block: var(--hub-sp-2); }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; font-family: var(--hub-font-display); font-weight: 800; font-size: 1.45rem; line-height: 1; text-decoration: none; letter-spacing: 0.005em; }
.brand svg { width: 2.75rem; height: 2.59rem; flex: none; --logo-a: var(--hub-primary); --logo-ink: var(--hub-ink); }
.brand__web { color: var(--hub-secondary); }
.site-nav { display: none; gap: var(--hub-sp-1); margin-inline-start: var(--hub-sp-2); }
@media (min-width: 38rem) { .site-nav { display: flex; } }
.site-nav a { display: inline-flex; align-items: center; min-height: 2.75rem; padding-inline: 0.95rem; text-decoration: none; font-weight: 600; font-size: var(--hub-fs-sm); color: var(--hub-ink-soft); border-radius: var(--hub-radius-pill); transition: background-color var(--hub-dur-1), color var(--hub-dur-1); }
.site-nav a:hover { background: var(--hub-surface-2); color: var(--hub-ink); }
.site-nav a[aria-current="page"] { background: var(--hub-surface-2); color: var(--hub-ink); box-shadow: inset 0 -3px 0 var(--hub-primary); }
.head-tools { display: flex; align-items: center; gap: var(--hub-sp-2); margin-inline-start: auto; }

.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border: 1px solid var(--hub-line); border-radius: var(--hub-radius-pill); background: var(--hub-surface-2); color: var(--hub-ink); cursor: pointer; padding: 0; transition: background-color var(--hub-dur-1); }
.icon-btn:hover { background: var(--hub-surface-3); }
.icon-btn svg { width: 1.3rem; height: 1.3rem; }
.theme-btn { display: none; }
.js .theme-btn { display: inline-flex; }
.theme-btn .i-moon { display: none; }
:root[data-theme="light"] .theme-btn .i-sun { display: none; }
:root[data-theme="light"] .theme-btn .i-moon { display: block; }

.lang { position: relative; }
.lang > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: var(--hub-sp-2); height: 2.75rem; padding-inline: var(--hub-sp-3); border: 1px solid var(--hub-line); border-radius: var(--hub-radius-pill); background: var(--hub-surface-2); font-weight: 600; font-size: var(--hub-fs-sm); }
.lang > summary:hover { background: var(--hub-surface-3); }
.lang > summary::-webkit-details-marker { display: none; }
.lang > summary::after { content: ""; width: 0.45rem; height: 0.45rem; border-inline-end: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.lang__panel { position: absolute; inset-inline-end: 0; top: calc(100% + var(--hub-sp-2)); z-index: 50; min-width: 15rem; max-width: 80vw; background: var(--hub-surface); border: 1px solid var(--hub-line); border-radius: var(--hub-radius-2); box-shadow: var(--hub-shadow-2); padding: var(--hub-sp-2); }
.lang__panel ul { list-style: none; margin: 0; padding: 0; }
.lang__panel li > a, .lang__panel li > span { display: flex; align-items: center; min-height: 2.75rem; padding: 0 var(--hub-sp-3); border-radius: var(--hub-radius-1); text-decoration: none; }
.lang__panel li > a:hover { background: var(--hub-surface-2); }
.lang__panel li > span { font-weight: 600; background: var(--hub-surface-2); box-shadow: inset 3px 0 0 var(--hub-primary); }
.lang__note { margin: var(--hub-sp-2) var(--hub-sp-3) var(--hub-sp-1); font-size: var(--hub-fs-xs); color: var(--hub-ink-soft); }

/* Search: a field in the header from 48rem, a button that folds it open below that. Hidden without JavaScript,
   because it filters the page client side. */
.search, .search-toggle { display: none; }
.search { position: relative; align-items: center; flex: 1 1 6rem; min-width: 0; max-width: 28rem; }
.search__icon { position: absolute; inset-inline-start: 1rem; width: 1.15rem; height: 1.15rem; color: var(--hub-ink-soft); pointer-events: none; }
.search__input { width: 100%; height: 2.75rem; padding-inline: 2.75rem 2.75rem; border: 1px solid var(--hub-line); border-radius: var(--hub-radius-pill); background: var(--hub-surface-2); color: var(--hub-ink); font: inherit; font-size: var(--hub-fs-sm); appearance: none; -webkit-appearance: none; }
.search__input::placeholder { color: var(--hub-ink-soft); opacity: 1; }
.search__input:hover { background: var(--hub-surface-3); }
.search__input:focus-visible { outline: 3px solid var(--hub-focus); outline-offset: 2px; border-color: transparent; }
.search__input::-webkit-search-cancel-button { display: none; }
.search__clear { position: absolute; inset-inline-end: 0.2rem; width: 2.35rem; height: 2.35rem; display: grid; place-items: center; border: 0; background: transparent; color: var(--hub-ink-soft); border-radius: 50%; cursor: pointer; padding: 0; }
.search__clear:hover { color: var(--hub-ink); background: var(--hub-surface-3); }
.search__clear svg { width: 1.05rem; height: 1.05rem; }
.js .search-toggle { display: inline-flex; }
.js .site-head.is-search-open .search { display: flex; order: 9; flex-basis: 100%; max-width: none; margin-bottom: var(--hub-sp-1); }
@media (min-width: 48rem) {
  .js .search { display: flex; }
  .js .search-toggle { display: none; }
  .js .site-head.is-search-open .search { order: 0; flex-basis: 6rem; max-width: 28rem; margin-bottom: 0; }
}

/* ---------- Artwork slot. The ratio is fixed in CSS so a late image never moves anything. ---------- */
.art { display: block; position: relative; overflow: hidden; background: var(--card-bg); color: var(--accent-contrast); aspect-ratio: var(--ratio, 4 / 3); }
.art > picture { position: absolute; inset: 0; display: block; }
.art picture > img, .art > img, .art > svg.ph { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.art--16x9 { --ratio: 16 / 9; }
/* Art direction. The picture element swaps hero.webp for hero-portrait.webp under the same query, so the slot
   changes shape with it. The query is MQ.portraitArt in site/lib/media-slots.mjs, a test keeps them equal. */
@media (orientation: portrait) and (max-width: 51.99rem) {
  .art--hero { --ratio: 4 / 5; max-height: 75dvh; }
}

/* ---------- Home: top, chips ---------- */
.home-top { display: grid; gap: var(--hub-sp-3); padding-block: var(--hub-sp-4) var(--hub-sp-3); }
.home-intro h1 { font-size: var(--hub-fs-xl); line-height: 1.15; }
.home-intro p { display: none; margin: var(--hub-sp-1) 0 0; color: var(--hub-ink-soft); font-size: var(--hub-fs-sm); max-width: 52ch; }
@media (min-width: 40rem) { .home-intro p { display: block; } }
.chips-row { margin-inline: calc(var(--hub-sp-4) * -1); padding-inline: var(--hub-sp-4); overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
.chips-row::-webkit-scrollbar { display: none; }
.chips { display: flex; gap: var(--hub-sp-2); margin: 0; padding: 0 0 var(--hub-sp-1); list-style: none; width: max-content; }
.chip { font-family: var(--hub-font-display); font-weight: 800; font-size: var(--hub-fs-sm); min-height: 2.75rem; padding: 0 1.15rem; border: 1px solid var(--hub-line); border-radius: var(--hub-radius-pill); background: var(--hub-surface-2); color: var(--hub-ink); cursor: pointer; white-space: nowrap; transition: background-color var(--hub-dur-1), transform var(--hub-dur-1) var(--hub-ease); }
.chip:hover { background: var(--hub-surface-3); }
.chip:active { transform: scale(0.96); }
.chip[aria-pressed="true"] { background: var(--hub-primary); color: var(--hub-primary-ink); border-color: transparent; box-shadow: 0 3px 0 var(--hub-primary-edge); }
@media (min-width: 48rem) {
  .chips-row { margin-inline: 0; padding-inline: 0; }
}
@media (min-width: 64rem) {
  .home-top { grid-template-columns: 1fr auto; align-items: end; }
}

/* ---------- Home: hero banner ---------- */
.hero { margin-block: var(--hub-sp-2) var(--hub-sp-4); }
.hero__banner { position: relative; isolation: isolate; border-radius: var(--hub-radius-3); overflow: hidden; background: var(--hub-scrim); box-shadow: 0 0 0 1px var(--hub-line), var(--hub-shadow-2); }
.hero__art.art { border-radius: 0; }
.hero__scrim { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, color-mix(in srgb, var(--hub-scrim) 96%, transparent) 0%, color-mix(in srgb, var(--hub-scrim) 82%, transparent) 34%, color-mix(in srgb, var(--hub-scrim) 0%, transparent) 68%); }
.hero__body { position: absolute; inset-inline: 0; bottom: 0; display: flex; flex-direction: column; align-items: flex-start; gap: var(--hub-sp-3); padding: var(--hub-sp-5) var(--hub-sp-4) var(--hub-sp-4); color: var(--hub-on-image); }
.hero__badges { display: flex; flex-wrap: wrap; align-items: center; gap: var(--hub-sp-2); }
.hero__title { font-size: var(--hub-fs-2xl); color: var(--hub-on-image); text-shadow: 0 2px 0 color-mix(in srgb, var(--hub-scrim) 60%, transparent); }
.hero__pitch { margin: 0; font-size: var(--hub-fs-md); max-width: 34ch; color: var(--hub-on-image); }
.hero__tags { display: flex; flex-wrap: wrap; gap: var(--hub-sp-2); margin: 0; padding: 0; list-style: none; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--hub-sp-3); margin-top: var(--hub-sp-1); }
.hero .art--hero { max-height: none; }
@media (orientation: portrait) and (max-width: 51.99rem) { .hero .art--hero { max-height: 80dvh; } }
@media (max-width: 39.99rem) {
  .hero__body { gap: var(--hub-sp-2); padding-bottom: var(--hub-sp-4); }
  .hero__pitch { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .hero__actions { gap: var(--hub-sp-2); flex-wrap: nowrap; }
  .hero__actions .btn { min-height: 3rem; padding-inline: 1.1rem; font-size: var(--hub-fs-md); }
  .hero__tags li:last-child { display: none; }
}
@media (min-width: 52rem) {
  .hero .art--hero { --ratio: 21 / 9; max-height: none; }
  .hero__scrim { background: linear-gradient(to right, color-mix(in srgb, var(--hub-scrim) 94%, transparent) 0%, color-mix(in srgb, var(--hub-scrim) 78%, transparent) 36%, color-mix(in srgb, var(--hub-scrim) 0%, transparent) 66%), linear-gradient(to top, color-mix(in srgb, var(--hub-scrim) 55%, transparent), color-mix(in srgb, var(--hub-scrim) 0%, transparent) 40%); }
  .hero__body { inset-block: 0; justify-content: flex-end; max-width: 34rem; padding: var(--hub-sp-6); gap: var(--hub-sp-3); }
  .hero__title { font-size: var(--hub-fs-3xl); }
  .hero__pitch { font-size: var(--hub-fs-lg); }
}

/* ---------- Home: hero for a cover that carries its own title (game.json "coverHasTitle") ----------
   The cover is shown clean and large, nothing over it. Badges, tags and the buttons sit in a panel beside it from
   52rem and under it before that. The title is a visually hidden h2. */
.hero--titled { --cover-ratio: 16 / 9; display: grid; gap: var(--hub-sp-4); margin-block: var(--hub-sp-2) var(--hub-sp-5); }
@media (orientation: portrait) and (max-width: 51.99rem) { .hero--titled { --cover-ratio: 4 / 5; } }
/* Stacked: never taller than about 62 percent of the screen, centred, so the panel stays in reach. */
@media (max-width: 51.99rem) { .hero--titled { max-width: min(100%, calc(62dvh * var(--cover-ratio))); margin-inline: auto; width: 100%; } }
.hero__cover { border-radius: var(--hub-radius-3); box-shadow: 0 0 0 1px var(--hub-line), var(--hub-shadow-2); }
.hero--titled .hero__art.art { --ratio: var(--cover-ratio); max-height: none; border-radius: var(--hub-radius-3); }
.hero__panel { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: var(--hub-sp-3); padding: var(--hub-sp-4); background: var(--hub-surface); border-radius: var(--hub-radius-3); box-shadow: 0 0 0 1px var(--hub-line), var(--hub-shadow-1); color: var(--hub-ink); }
.hero__panel .hero__pitch { color: var(--hub-ink); font-size: var(--hub-fs-md); max-width: 36ch; }
.hero__panel .tag--glass { background: var(--hub-surface-2); color: var(--hub-ink); border-color: var(--hub-line); -webkit-backdrop-filter: none; backdrop-filter: none; }
.hero__panel .btn--glass { background: var(--hub-surface-2); color: var(--hub-ink); border-color: var(--hub-line); -webkit-backdrop-filter: none; backdrop-filter: none; }
.hero__panel .btn--glass:hover { background: var(--hub-surface-3); }
@media (max-width: 39.99rem) {
  .hero--titled { gap: var(--hub-sp-3); }
  .hero__panel { padding: var(--hub-sp-3) var(--hub-sp-4) var(--hub-sp-4); gap: var(--hub-sp-2); }
}
@media (min-width: 52rem) {
  .hero--titled { grid-template-columns: minmax(0, 1fr) clamp(15.5rem, 31%, 22rem); align-items: center; gap: var(--hub-sp-5); }
  .hero__panel { padding: var(--hub-sp-5); gap: var(--hub-sp-4); }
  .hero__panel .hero__pitch { font-size: var(--hub-fs-lg); }
  .hero__panel .hero__actions { flex-direction: column; align-items: stretch; width: 100%; }
  .hero__panel .hero__actions .btn { width: 100%; }
}

/* ---------- Home: trust strip ---------- */
.trust { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--hub-sp-3); list-style: none; margin: var(--hub-sp-4) 0 var(--hub-sp-5); padding: var(--hub-sp-4); background: var(--hub-surface); border-radius: var(--hub-radius-3); box-shadow: 0 0 0 1px var(--hub-line); }
.trust li { display: flex; align-items: center; gap: var(--hub-sp-3); font-weight: 600; font-size: var(--hub-fs-sm); line-height: 1.3; min-width: 0; }
.trust svg { width: 2.5rem; height: 2.5rem; padding: 0.55rem; border-radius: 50%; background: var(--hub-surface-2); color: var(--hub-secondary); flex: none; }
@media (min-width: 36rem) { .trust { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: var(--hub-sp-4) var(--hub-sp-5); } }

/* ---------- Rails and cover tiles ---------- */
.rails { display: grid; gap: var(--hub-sp-6); }
.rail__title { display: flex; align-items: center; gap: 0.6rem; font-size: var(--hub-fs-xl); margin-bottom: var(--hub-sp-4); }
.rail__title::before { content: ""; width: 0.45rem; height: 1.15em; border-radius: var(--hub-radius-pill); background: var(--hub-primary); flex: none; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: var(--hub-sp-4) var(--hub-sp-3); list-style: none; margin: 0; padding: 0; }
@media (min-width: 40rem) { .tiles { grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr)); gap: var(--hub-sp-5) var(--hub-sp-4); } }
.tile-wrap { min-width: 0; }
.tile { display: flex; flex-direction: column; gap: var(--hub-sp-2); height: 100%; text-decoration: none; color: inherit; border-radius: var(--hub-radius-3); }
.tile__art { border-radius: var(--hub-radius-2); box-shadow: 0 0 0 1px var(--hub-line), var(--hub-shadow-1); transition: transform var(--hub-dur-2) var(--hub-ease), box-shadow var(--hub-dur-2) var(--hub-ease); }
.tile__art > picture img, .tile__art > svg.ph { transition: transform 600ms var(--hub-ease); }
a.tile:hover .tile__art, a.tile:focus-visible .tile__art { transform: translateY(-4px); box-shadow: 0 0 0 2px var(--hub-primary), var(--hub-shadow-2); }
a.tile:hover .tile__art > picture img, a.tile:hover .tile__art > svg.ph, a.tile:focus-visible .tile__art > picture img, a.tile:focus-visible .tile__art > svg.ph { transform: scale(1.07); }
a.tile:active .tile__art { transform: translateY(0) scale(0.985); }
a.tile:focus-visible { outline-offset: 4px; }
.tile__flags { position: absolute; inset-block-start: var(--hub-sp-2); inset-inline-start: var(--hub-sp-2); z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 0.25rem; max-width: calc(100% - var(--hub-sp-4)); }
.tile__flags .tag, .tile__flags .badge { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile__play { position: absolute; inset-block-end: var(--hub-sp-2); inset-inline-end: var(--hub-sp-2); z-index: 1; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--hub-primary); color: var(--hub-primary-ink); box-shadow: 0 3px 0 var(--hub-primary-edge); opacity: 0; transform: scale(0.7); transition: opacity var(--hub-dur-1), transform var(--hub-dur-2) var(--hub-ease); }
.tile__play svg { width: 1.1rem; height: 1.1rem; margin-inline-start: 0.1rem; }
a.tile:hover .tile__play, a.tile:focus-visible .tile__play { opacity: 1; transform: none; }
@media (hover: none) { .tile__play { opacity: 1; transform: none; width: 2.25rem; height: 2.25rem; } }
.tile__body { display: flex; flex-direction: column; gap: 0.1rem; padding-inline: var(--hub-sp-1); min-width: 0; }
.tile__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-family: var(--hub-font-display); font-weight: 800; font-size: var(--hub-fs-md); line-height: 1.2; overflow-wrap: anywhere; }
:lang(hi) .tile__title { line-height: 1.45; }
.tile__meta { font-size: var(--hub-fs-xs); color: var(--hub-ink-soft); line-height: 1.4; overflow-wrap: anywhere; }
.tile--soon .tile__art > svg.ph, .tile--soon .tile__art > picture { filter: grayscale(1); opacity: 0.55; }
.tile--soon .tile__art { box-shadow: 0 0 0 1px var(--hub-line); }
.tile--more .tile__art--more { display: grid; place-items: center; background: repeating-linear-gradient(135deg, var(--hub-surface) 0 14px, var(--hub-surface-2) 14px 28px); box-shadow: inset 0 0 0 2px var(--hub-line); color: var(--hub-secondary); }
.more__icon { width: 3rem; height: 3rem; opacity: 0.9; }
.empty { margin: 0; padding: var(--hub-sp-6) var(--hub-sp-4); text-align: center; color: var(--hub-ink-soft); background: var(--hub-surface); border-radius: var(--hub-radius-3); }

/* ---------- Home: what is this ---------- */
.about-strip { display: grid; gap: var(--hub-sp-4); margin-block: var(--hub-sp-7) 0; padding: var(--hub-sp-5); background: var(--hub-surface); border-radius: var(--hub-radius-3); box-shadow: 0 0 0 1px var(--hub-line); }
.about-strip h2 { font-size: var(--hub-fs-lg); margin-bottom: var(--hub-sp-2); }
.about-strip__text p { color: var(--hub-ink-soft); max-width: var(--hub-measure); font-size: var(--hub-fs-sm); }
.about-strip__text p:last-child { margin-bottom: 0; }
.about-strip__link { display: inline-flex; align-items: center; gap: var(--hub-sp-2); min-height: 2.75rem; font-weight: 600; font-size: var(--hub-fs-sm); color: var(--hub-secondary); }
.about-strip__link svg { width: 1.1rem; height: 1.1rem; }
@media (min-width: 48rem) { .about-strip { grid-template-columns: 16rem 1fr; padding: var(--hub-sp-6); gap: var(--hub-sp-6); } }

/* ---------- Entrance: a short rise, once, never under reduced motion ---------- */
@keyframes hub-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero__body, .hero__panel, .trust, .rail, .about-strip, .home-top { animation: hub-rise 520ms var(--hub-ease) both; }
.home-top { animation-delay: 0ms; }
.hero__body, .hero__panel { animation-delay: 120ms; }
.trust { animation-delay: 200ms; }
.rail { animation-delay: 280ms; }
.rail .tile-wrap { animation: hub-rise 480ms var(--hub-ease) both; animation-delay: calc(320ms + var(--i, 0) * 60ms); }
.rail .tile-wrap:nth-child(2) { --i: 1; } .rail .tile-wrap:nth-child(3) { --i: 2; } .rail .tile-wrap:nth-child(4) { --i: 3; } .rail .tile-wrap:nth-child(n+5) { --i: 4; }

/* ---------- Game page ---------- */
.crumbs { font-size: var(--hub-fs-sm); padding-block: var(--hub-sp-3) var(--hub-sp-2); color: var(--hub-ink-soft); }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--hub-sp-2); list-style: none; margin: 0; padding: 0; }
.crumbs a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.crumbs li + li::before { content: "/"; margin-inline-end: var(--hub-sp-2); opacity: 0.6; }
.crumbs a:hover { color: var(--hub-ink); }

.game-layout { display: grid; gap: var(--hub-sp-4) var(--hub-sp-5); grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "stage" "facts" "main" "related"; padding-bottom: var(--hub-sp-7); }
.game-layout > * { min-width: 0; }
.game-head { grid-area: head; }
.stage { grid-area: stage; }
.facts-col { grid-area: facts; }
.main-col { grid-area: main; display: grid; gap: var(--hub-sp-4); align-content: start; }
.related-col { grid-area: related; }
@media (min-width: 64rem) {
  .game-layout { grid-template-columns: minmax(0, 1fr) 19.5rem; grid-template-areas: "head facts" "stage facts" "main related"; align-items: start; }
  .tiles--side { grid-template-columns: 1fr; }
}
.game-head h1 { font-size: var(--hub-fs-2xl); line-height: 1.05; }
.game-head__pitch { font-size: var(--hub-fs-lg); margin: var(--hub-sp-2) 0 var(--hub-sp-3); max-width: 46ch; color: var(--hub-ink-soft); }

.embed { position: relative; width: 100%; aspect-ratio: 16 / 9; background: var(--card-bg); border-radius: var(--hub-radius-3); box-shadow: 0 0 0 1px var(--hub-line), var(--hub-shadow-2); overflow: hidden; }
.embed--portrait { aspect-ratio: 9 / 16; max-width: min(100%, max(12rem, calc((100dvh - 12rem) * 9 / 16))); margin-inline: auto; }
.embed--landscape { max-width: min(100%, max(20rem, calc((100dvh - 17rem) * 16 / 9))); margin-inline: auto; }
/* Games that work in both orientations get a 4:5 box on phones and portrait tablets, matching hero-portrait.webp. */
@media (orientation: portrait) and (max-width: 51.99rem) {
  .embed--both { aspect-ratio: 4 / 5; max-width: min(100%, calc((100dvh - 10rem) * 4 / 5)); }
}
.embed .art { position: absolute; inset: 0; aspect-ratio: auto; }
.embed__play { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; border: 0; background: radial-gradient(closest-side at 50% 50%, color-mix(in srgb, var(--hub-scrim) 45%, transparent), transparent 80%); cursor: pointer; padding: 0; color: var(--hub-primary-ink); }
.embed__play .btn { pointer-events: none; transition: transform var(--hub-dur-2) var(--hub-ease); }
/* Titled cover: the Play button leaves the middle, where the title and the truck are, and sits low over the water. */
.embed--titled .embed__play { grid-template-rows: 85% 1fr; place-items: start center; background: radial-gradient(ellipse 34% 20% at 50% 85%, color-mix(in srgb, var(--hub-scrim) 45%, transparent), transparent 100%); }
.embed--titled .embed__play .btn { grid-row: 1; align-self: end; margin-bottom: -2.125rem; }
@media (orientation: portrait) and (max-width: 51.99rem) {
  .embed--both.embed--titled .embed__play { grid-template-rows: 88% 1fr; background: radial-gradient(ellipse 50% 14% at 50% 88%, color-mix(in srgb, var(--hub-scrim) 45%, transparent), transparent 100%); }
}
.embed__play:hover .btn { transform: translateY(-2px) scale(1.05); }
.embed__play:focus-visible { outline-offset: -6px; border-radius: var(--hub-radius-3); }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.embed.is-playing .art, .embed.is-playing .embed__play { display: none; }
.embed:fullscreen { max-width: none; width: 100vw; height: 100vh; aspect-ratio: auto; border-radius: 0; box-shadow: none; }
.stage__hint { margin: var(--hub-sp-2) 0 0; font-size: var(--hub-fs-sm); color: var(--hub-ink-soft); }
.actions { display: none; flex-wrap: wrap; align-items: center; gap: var(--hub-sp-3) var(--hub-sp-2); margin-top: var(--hub-sp-4); }
.js .actions { display: flex; }
.actions__gap { flex: 1 1 0; min-width: 0; }
.actions__status { min-height: 1.5em; margin: var(--hub-sp-2) 0 0; font-size: var(--hub-fs-sm); color: var(--hub-ink-soft); }
@media (max-width: 47.99rem) {
  .actions .btn { flex: 1 1 auto; }
  .actions .share { flex: 1 1 auto; }
  .actions .share .btn { width: 100%; }
  .actions__gap { display: none; }
}

.panel { background: var(--hub-surface); border-radius: var(--hub-radius-3); box-shadow: 0 0 0 1px var(--hub-line), var(--hub-shadow-1); padding: var(--hub-sp-4); }
@media (min-width: 40rem) { .panel { padding: var(--hub-sp-5) var(--hub-sp-6); } }
.facts-col .panel { padding: var(--hub-sp-4) var(--hub-sp-5); }
.panel > h2, .prose h2 { display: flex; align-items: center; gap: 0.6rem; font-size: var(--hub-fs-lg); margin: 0 0 var(--hub-sp-3); }
.panel > h2::before, .prose h2::before { content: ""; width: 0.4rem; height: 1.1em; border-radius: var(--hub-radius-pill); background: var(--hub-primary); flex: none; }
.prose { color: var(--hub-ink); }
.prose > * { max-width: var(--hub-measure); }
.prose > h2:not(:first-child) { margin-top: var(--hub-sp-6); }
.prose ul, .prose ol { padding-inline-start: 1.25rem; margin-bottom: var(--hub-sp-4); }
.prose li { margin-bottom: var(--hub-sp-2); }
.prose li::marker { color: var(--hub-secondary); }
.prose a { color: var(--hub-secondary); }
.prose figure { margin: var(--hub-sp-5) 0; max-width: none; }
.prose figure img { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: var(--hub-radius-2); background: var(--hub-surface-2); }
.prose figcaption { font-size: var(--hub-fs-sm); color: var(--hub-ink-soft); margin-top: var(--hub-sp-2); }

.controls { margin: 0; display: grid; gap: 0; border-radius: var(--hub-radius-2); background: var(--hub-surface-2); overflow: hidden; }
.controls > div { padding: var(--hub-sp-3) var(--hub-sp-4); border-top: 1px solid var(--hub-line); }
.controls > div:first-child { border-top: 0; }
.controls dt { font-weight: 600; }
.controls dd { margin: var(--hub-sp-1) 0 0; color: var(--hub-ink-soft); }
@media (min-width: 40rem) { .controls > div { display: grid; grid-template-columns: 14rem 1fr; gap: var(--hub-sp-4); } .controls dd { margin: 0; } }

.tips { list-style: none; counter-reset: tip; margin: 0; padding: 0; display: grid; gap: var(--hub-sp-3); }
.tips li { counter-increment: tip; display: grid; grid-template-columns: 2.25rem 1fr; gap: var(--hub-sp-3); align-items: start; }
.tips li::before { content: counter(tip); display: grid; place-items: center; width: 2.25rem; height: 2.25rem; background: var(--hub-primary); color: var(--hub-primary-ink); border-radius: 50%; font-family: var(--hub-font-display); font-weight: 800; font-size: var(--hub-fs-sm); box-shadow: 0 3px 0 var(--hub-primary-edge); }

.faq details { border-radius: var(--hub-radius-2); background: var(--hub-surface-2); margin-bottom: var(--hub-sp-2); }
.faq details[open] { box-shadow: inset 3px 0 0 var(--hub-primary); }
.faq summary { cursor: pointer; padding: var(--hub-sp-3) var(--hub-sp-4); min-height: 3rem; font-weight: 600; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: var(--hub-sp-3); border-radius: var(--hub-radius-2); }
.faq summary:hover { background: var(--hub-surface-3); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--hub-surface-3); font-family: var(--hub-font-display); font-weight: 800; flex: none; }
.faq details[open] summary::after { content: "\2212"; background: var(--hub-primary); color: var(--hub-primary-ink); }
.faq details p { padding: 0 var(--hub-sp-4) var(--hub-sp-4); margin: 0; color: var(--hub-ink-soft); }

.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--hub-radius-2); overflow: hidden; background: var(--card-bg); box-shadow: 0 0 0 1px var(--hub-line); }
.video .art { position: absolute; inset: 0; aspect-ratio: auto; }
.video button { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; border: 0; background: transparent; cursor: pointer; padding: 0; }
.video button .btn { pointer-events: none; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* Phones in portrait get the Short at 9:16 when one exists. The query is MQ.phonePortrait, a test keeps them equal. */
.video--short-only { aspect-ratio: 9 / 16; max-width: min(100%, calc((100dvh - 10rem) * 9 / 16)); margin-inline: auto; }
@media (max-width: 600px) and (orientation: portrait) {
  .video--has-short { aspect-ratio: 9 / 16; max-width: min(100%, calc((100dvh - 10rem) * 9 / 16)); margin-inline: auto; }
}
.video__note { font-size: var(--hub-fs-sm); color: var(--hub-ink-soft); margin: var(--hub-sp-3) 0 0; }

.facts { margin: 0; display: grid; gap: 0; }
.facts > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 var(--hub-sp-3); padding-block: var(--hub-sp-2); border-top: 1px solid var(--hub-line); }
.facts > div:first-child { border-top: 0; }
.facts dt { font-size: var(--hub-fs-sm); color: var(--hub-ink-soft); }
.facts dd { margin: 0; font-weight: 600; font-size: var(--hub-fs-sm); text-align: end; }
.updated { font-size: var(--hub-fs-sm); color: var(--hub-ink-soft); margin: var(--hub-sp-2) 0 0; }

/* ---------- Static pages (about, privacy) ---------- */
.page { padding-block: var(--hub-sp-5) var(--hub-sp-8); }
.page h1 { font-size: var(--hub-fs-2xl); margin-bottom: var(--hub-sp-5); }
.page h2 { margin: var(--hub-sp-6) 0 var(--hub-sp-3); font-size: var(--hub-fs-lg); }
.doc { max-width: 46rem; margin-inline: auto; margin-block: var(--hub-sp-4) var(--hub-sp-7); padding: var(--hub-sp-5) var(--hub-sp-4); background: var(--hub-surface); border-radius: var(--hub-radius-3); box-shadow: 0 0 0 1px var(--hub-line), var(--hub-shadow-1); }
@media (min-width: 40rem) { .doc { padding: var(--hub-sp-7) var(--hub-sp-7); } }
.doc.page > :last-child { margin-bottom: 0; }
.doc { position: relative; }
.contact-mail { margin-block: var(--hub-sp-4); }
.contact-mail a { display: inline-block; padding: var(--hub-sp-3) var(--hub-sp-5); border: 1px solid var(--hub-line); border-radius: var(--hub-radius-pill); background: var(--hub-surface-2); font-weight: 700; font-size: 1.15rem; overflow-wrap: anywhere; }
.doc__close { position: absolute; inset-block-start: var(--hub-sp-3); inset-inline-end: var(--hub-sp-3); }
.doc h1 { padding-inline-end: 3.25rem; }
.doc h1 { margin-bottom: var(--hub-sp-4); }
.doc h2:first-of-type { margin-top: var(--hub-sp-5); }
.doc p, .doc li { color: var(--hub-ink); }
.doc a { color: var(--hub-secondary); }
.doc ul, .doc ol { padding-inline-start: 1.25rem; }

/* ---------- 404 ---------- */
.lost { display: grid; gap: var(--hub-sp-6); align-items: center; padding-block: var(--hub-sp-7); }
.lost__art { border-radius: var(--hub-radius-3); box-shadow: 0 0 0 1px var(--hub-line), var(--hub-shadow-2); }
.lost__body h1 { font-size: var(--hub-fs-2xl); margin-bottom: var(--hub-sp-3); }
.lost__body p:not(.eyebrow) { color: var(--hub-ink-soft); margin-bottom: var(--hub-sp-5); }
@media (min-width: 48rem) { .lost { grid-template-columns: 1.1fr 1fr; gap: var(--hub-sp-7); } }

/* ---------- Footer ---------- */
.site-foot { margin-top: var(--hub-sp-7); background: var(--hub-surface); border-top: 1px solid var(--hub-line); padding-block: var(--hub-sp-5); font-size: var(--hub-fs-sm); }
.site-foot__row { display: flex; flex-wrap: wrap; gap: var(--hub-sp-3) var(--hub-sp-6); justify-content: space-between; align-items: center; }
.brand--foot { font-size: 1.2rem; min-height: 2.75rem; }
.brand--foot svg { width: 2.2rem; height: 2.07rem; }
.site-foot nav { display: flex; gap: var(--hub-sp-1) var(--hub-sp-2); flex-wrap: wrap; }
.site-foot nav a { display: inline-flex; align-items: center; min-height: 2.75rem; padding-inline: var(--hub-sp-3); border-radius: var(--hub-radius-pill); text-decoration: none; color: var(--hub-ink-soft); font-weight: 600; }
.site-foot nav a:hover { color: var(--hub-ink); background: var(--hub-surface-2); }
.site-foot p { margin: 0; color: var(--hub-ink-soft); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition-duration: 0.01ms !important; }
}
@media print {
  .site-head, .site-foot, .embed, .theme-btn, .actions { display: none; }
  body { background: #fff; color: #000; }
}

/* ---------- Blog ---------- */
.blog-head { margin-bottom: var(--hub-sp-5); }
.blog-head h1 { margin-bottom: var(--hub-sp-3); }
.byline { margin: 0; font-size: var(--hub-fs-sm); color: var(--hub-ink-soft); }
.blog-draft { margin: var(--hub-sp-3) 0 0; }
.blog-lede { font-size: var(--hub-fs-lg); max-width: var(--hub-measure); margin: 0 0 var(--hub-sp-5); color: var(--hub-ink-soft); }
.posts { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--hub-sp-5); grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); }
.posts > li:only-child { grid-column: 1 / -1; }
.post { display: flex; flex-direction: column; height: 100%; text-decoration: none; overflow: hidden; background: var(--hub-surface); border-radius: var(--hub-radius-3); box-shadow: 0 0 0 1px var(--hub-line), var(--hub-shadow-1); transition: transform var(--hub-dur-2) var(--hub-ease), box-shadow var(--hub-dur-2) var(--hub-ease); }
a.post:hover, a.post:focus-visible { transform: translateY(-4px); box-shadow: 0 0 0 2px var(--hub-primary), var(--hub-shadow-2); }
.post__title { font-family: var(--hub-font-display); font-weight: 800; font-size: var(--hub-fs-lg); line-height: var(--hub-lh-tight); }
.post__desc { color: var(--hub-ink); }
.post__meta { font-size: var(--hub-fs-xs); color: var(--hub-ink-soft); }
/* Inline SVG diagrams, see site/content/_diagrams. They draw with the design tokens, so they follow the theme. */
.diagram { margin: var(--hub-sp-5) 0; }
.diagram svg { display: block; width: 100%; max-width: 26rem; height: auto; margin-inline: auto; }

/* ---------- Blog figures: the painting vocabulary ----------
   Text-free SVG drawings (site/lib/figures.mjs) paint with these classes only, so they follow the theme. The og:image
   is drawn from the same block with the light tokens substituted: keep it to paint, no layout. */
/* figures:start (do not move: site/lib/figures.mjs reads everything up to figures:end) */
.fg .o { fill: none; stroke: var(--hub-ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.fg .ob { fill: none; stroke: var(--hub-bg); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.fg .op { fill: none; stroke: var(--hub-surface); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.fg .ot { fill: none; stroke: var(--hub-art-tint); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.fg .s { fill: none; stroke: var(--hub-ink-soft); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.fg .l { fill: none; stroke: var(--hub-line); stroke-width: 2; stroke-linecap: round; }
.fg .as { fill: none; stroke: var(--hub-art); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.fg .sh { fill: var(--hub-shadow-color); stroke: var(--hub-shadow-color); stroke-width: 3; stroke-linejoin: round; }
.fg .k { fill: var(--hub-ink); stroke: var(--hub-ink); stroke-width: 3; stroke-linejoin: round; }
.fg .p { fill: var(--hub-surface); stroke: var(--hub-ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.fg .p2 { fill: var(--hub-surface-2); stroke: var(--hub-ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.fg .bg { fill: var(--hub-bg); stroke: var(--hub-ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.fg .a { fill: var(--hub-art); stroke: var(--hub-ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.fg .at { fill: var(--hub-art-tint); stroke: var(--hub-ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.fg .ns { stroke: none; }
.fg .nf { fill: none; }
.fg .w1 { stroke-width: 1.5; }
.fg .w2 { stroke-width: 2; }
.fg .w3 { stroke-width: 3; }
.fg .w4 { stroke-width: 4; }
.fg .w5 { stroke-width: 5; }
.fg .w6 { stroke-width: 6; }
.fg .w8 { stroke-width: 8; }
.fg .w11 { stroke-width: 11; }
.fg .w14 { stroke-width: 14; }
.fg .w20 { stroke-width: 20; }
.fg .w22 { stroke-width: 22; }
.fg .dash { stroke-dasharray: 9 9; }
.fg .dot { stroke-dasharray: 1 11; }
/* figures:end */

/* ---------- Blog index cards ---------- */
.post__body { display: flex; flex-direction: column; gap: var(--hub-sp-2); padding: var(--hub-sp-4) var(--hub-sp-5) var(--hub-sp-5); }
.post__art { display: block; aspect-ratio: 16 / 9; background: var(--hub-surface-2); overflow: hidden; }
.post__art svg { width: 100%; height: 100%; max-width: none; transition: transform 600ms var(--hub-ease); }
a.post:hover .post__art svg { transform: scale(1.04); }
.post__title { overflow-wrap: break-word; }
.post__desc { overflow-wrap: break-word; }
@media (min-width: 48rem) {
  .posts > li:only-child .post--art { flex-direction: row; max-width: 62rem; }
  .posts > li:only-child .post__art { flex: 0 0 56%; aspect-ratio: auto; min-height: 15rem; }
  .posts > li:only-child .post__body { justify-content: center; padding: var(--hub-sp-6); gap: var(--hub-sp-3); }
  .posts > li:only-child .post__title { font-size: var(--hub-fs-xl); }
  .posts > li:only-child .post__desc { font-size: var(--hub-fs-md); }
}

/* ---------- Blog article layout ----------
   The page is dark chrome. The article itself sits in a reading sheet (the surface colour, ink at 15:1 or better),
   about 42rem of text inside it (60 to 75 characters a line). The hero is wider. Everything is mobile first. */
.blog-post { --blog-measure: 42rem; max-width: 58rem; margin-inline: auto; padding-top: var(--hub-sp-4); }
.blog-head { max-width: var(--blog-measure); margin-inline: auto; }
.blog-head h1 { font-size: var(--hub-fs-2xl); line-height: 1.1; overflow-wrap: break-word; text-wrap: balance; }
.blog-head { margin-bottom: var(--hub-sp-5); }
.blog-hero { margin: 0 auto var(--hub-sp-5); border-radius: var(--hub-radius-3); box-shadow: 0 0 0 1px var(--hub-line), var(--hub-shadow-2); overflow: hidden; background: var(--hub-surface); }
.blog-hero svg { width: 100%; height: auto; aspect-ratio: 1200 / 630; max-width: none; }
.blog-sheet { max-width: calc(var(--blog-measure) + 2 * var(--hub-sp-5)); margin-inline: auto; padding: var(--hub-sp-5) var(--hub-sp-4); background: var(--hub-surface); border-radius: var(--hub-radius-3); box-shadow: 0 0 0 1px var(--hub-line), var(--hub-shadow-1); }
@media (min-width: 48rem) { .blog-sheet { max-width: calc(var(--blog-measure) + 2 * var(--hub-sp-7)); padding: var(--hub-sp-7); } }

/* Table of contents: a details block, open on desktop and folded on phones (site.js closes it under 48rem). */
.toc { margin-bottom: var(--hub-sp-6); }
.toc__box { border-radius: var(--hub-radius-2); background: var(--hub-surface-2); }
.toc summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: var(--hub-sp-3); min-height: 3rem; padding: var(--hub-sp-2) var(--hub-sp-4); font-family: var(--hub-font-display); font-weight: 800; font-size: var(--hub-fs-md); border-radius: var(--hub-radius-2); }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: "+"; display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--hub-surface-3); flex: none; }
.toc details[open] > summary::after { content: "\2212"; background: var(--hub-primary); color: var(--hub-primary-ink); }
.toc ol { list-style: none; counter-reset: toc; margin: 0; padding: 0 var(--hub-sp-4) var(--hub-sp-4); }
.toc li { counter-increment: toc; display: flex; gap: var(--hub-sp-3); align-items: baseline; margin: 0; padding-block: var(--hub-sp-1); break-inside: avoid; }
.toc li::before { content: counter(toc, decimal-leading-zero); flex: none; min-width: 1.6rem; font-size: var(--hub-fs-xs); font-weight: 600; color: var(--hub-ink-soft); font-variant-numeric: tabular-nums; }
.toc a { text-decoration: none; font-size: var(--hub-fs-sm); line-height: 1.35; overflow-wrap: anywhere; }
.toc a:hover { text-decoration: underline; }
@media (min-width: 48rem) { .toc ol { columns: 2; column-gap: var(--hub-sp-6); } }

/* Article body */
.blog-body { font-size: var(--hub-fs-md); line-height: 1.7; overflow-wrap: break-word; hyphens: manual; }
/* Hyphenate where lines are short or words are long: phones, and German anywhere. */
@media (max-width: 47.99rem) { .blog-body, .blog-head h1, .post__title { hyphens: auto; } :lang(hi) .blog-body, :lang(hi) .blog-head h1, :lang(hi) .post__title { hyphens: manual; } }
:lang(de) .blog-body, :lang(de) .blog-head h1, :lang(de) .post__title { hyphens: auto; }
@media (min-width: 48rem) { .blog-body { font-size: 1.1875rem; line-height: 1.72; } }
:lang(hi) .blog-body { font-size: 1.1875rem; line-height: 1.9; hyphens: manual; } /* Hind sets small: a size up from Latin */
@media (min-width: 48rem) { :lang(hi) .blog-body { font-size: 1.3125rem; } }
/* Devanagari has tall matras above and below the line: headings need more room than Latin. */
:lang(hi) .blog-head h1, :lang(hi) .blog-body h2, :lang(hi) .blog-body h3, :lang(hi) .post__title { line-height: 1.4; }
.blog-body > p, .blog-body > ul, .blog-body > ol { margin-bottom: 1.2em; }
.blog-body p { text-wrap: pretty; }
.blog-body h2 { font-size: var(--hub-fs-xl); line-height: 1.18; margin: var(--hub-sp-7) 0 var(--hub-sp-4); scroll-margin-top: calc(var(--hub-head-h) + var(--hub-sp-4)); }
.blog-body h2::before { content: ""; display: block; width: 2.75rem; height: 0.4rem; margin-bottom: var(--hub-sp-3); background: var(--hub-art); border-radius: var(--hub-radius-pill); }
.blog-body h3 { margin: var(--hub-sp-6) 0 var(--hub-sp-3); line-height: 1.2; }
.blog-body > h2:first-child { margin-top: 0; }
.blog-body strong { font-weight: 600; }
:lang(hi) .blog-body strong { font-weight: 400; }
.blog-body a { color: var(--hub-secondary); text-decoration-color: color-mix(in srgb, var(--hub-secondary) 50%, transparent); }
.blog-body a:hover { text-decoration-color: currentColor; }

/* Lists: numbers in a teal disc, bullets as small teal squares */
.blog-body ul, .blog-body ol { list-style: none; padding: 0; margin: 0 0 1.2em; }
.blog-body li { position: relative; padding-inline-start: 2.6rem; margin: 0 0 0.7em; }
.blog-body ol { counter-reset: item; }
.blog-body ol > li { counter-increment: item; }
.blog-body ol > li::before { content: counter(item); position: absolute; inset-inline-start: 0; top: 0.18em; display: grid; place-items: center; width: 1.85rem; height: 1.85rem; background: var(--hub-primary); color: var(--hub-primary-ink); border-radius: 50%; font-family: var(--hub-font-display); font-weight: 800; font-size: var(--hub-fs-sm); line-height: 1; font-variant-numeric: tabular-nums; box-shadow: 0 2px 0 var(--hub-primary-edge); }
.blog-body ul > li::before { content: ""; position: absolute; inset-inline-start: 0.5rem; top: 0.66em; width: 0.65rem; height: 0.65rem; background: var(--hub-art); border-radius: 3px; transform: rotate(45deg); }
.blog-body p.step { border-inline-start: 4px solid var(--hub-art); padding-inline-start: var(--hub-sp-4); margin-bottom: 1em; }

/* Callouts: Takeaway and Note */
.callout { margin: var(--hub-sp-6) 0; padding: var(--hub-sp-4) var(--hub-sp-5); border-radius: var(--hub-radius-2); background: var(--hub-surface-2); }
.callout--takeaway { background: var(--hub-art-tint); box-shadow: inset 5px 0 0 var(--hub-art); }
.callout--note { background: var(--hub-surface-2); box-shadow: inset 5px 0 0 var(--hub-secondary); }
.callout p { margin: 0 0 var(--hub-sp-3); }
.callout > :last-child, .callout li:last-child { margin-bottom: 0; }
.callout ul, .callout ol { margin-top: var(--hub-sp-3); }
.callout__label { letter-spacing: 0.02em; }

/* Figures: drawn on the page colour, so the paper fills of the drawing read as objects on a desk. */
.blog-body .figure { margin: var(--hub-sp-6) 0; padding: var(--hub-sp-4); background: var(--hub-bg); border-radius: var(--hub-radius-2); box-shadow: 0 0 0 1px var(--hub-line); }
.blog-body .figure svg { width: 100%; height: auto; max-width: none; }
@media (max-width: 47.99rem) { .blog-body .figure, .blog-body .diagram { padding: var(--hub-sp-3); } }
.blog-body figcaption { margin: var(--hub-sp-3) 0 0; font-size: var(--hub-fs-sm); line-height: 1.45; color: var(--hub-ink-soft); text-align: center; text-wrap: balance; }
.blog-body .diagram { margin: var(--hub-sp-6) 0; padding: var(--hub-sp-4); background: var(--hub-bg); border-radius: var(--hub-radius-2); box-shadow: 0 0 0 1px var(--hub-line); }

/* ---------- Optional sign-in (header) ---------- */
.acct { display: none; position: relative; }
.js .acct { display: block; }
.acct [hidden] { display: none; }
.acct__signin { min-height: 2.75rem; padding-inline: 0.85rem; font-size: var(--hub-fs-sm); }
.acct__label { display: none; }
@media (min-width: 64rem) { .acct__label { display: inline; } .acct__signin { padding-inline: 1.1rem; } }
.acct__user { position: relative; }
.acct__user > summary { list-style: none; cursor: pointer; display: block; border-radius: 50%; }
.acct__user > summary::-webkit-details-marker { display: none; }
.acct__avatar { display: flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--hub-primary); color: var(--hub-primary-ink); font-family: var(--hub-font-display); font-weight: 800; font-size: var(--hub-fs-md); }
.acct__panel { min-width: 13rem; }
.acct__name { margin: var(--hub-sp-2) var(--hub-sp-3) 0; font-weight: 700; overflow-wrap: anywhere; }
.acct__name:not([hidden]) + .acct__email { margin-top: 0; }
.acct__email { margin: var(--hub-sp-2) var(--hub-sp-3); font-size: var(--hub-fs-xs); color: var(--hub-ink-soft); overflow-wrap: anywhere; }
.acct__out { display: flex; align-items: center; width: 100%; min-height: 2.75rem; padding: 0 var(--hub-sp-3); border: 0; border-radius: var(--hub-radius-1); background: none; color: var(--hub-ink); font: inherit; font-weight: 600; text-align: start; cursor: pointer; }
.acct__out:hover { background: var(--hub-surface-2); }
.acct__admin { display: flex; align-items: center; min-height: 2.75rem; padding: 0 var(--hub-sp-3); border-radius: var(--hub-radius-1); color: var(--hub-ink); font-weight: 600; text-decoration: none; }
.acct__admin[hidden] { display: none; }
.acct__admin:hover { background: var(--hub-surface-2); }

/* ---------- Share menu (game page and blog posts). Needs JavaScript, so it is hidden without it. ---------- */
.share { display: none; position: relative; }
.js .share { display: inline-block; }
.share__panel { position: absolute; inset-inline-end: 0; top: calc(100% + var(--hub-sp-2)); z-index: 50; min-width: 14rem; max-width: 85vw; background: var(--hub-surface); border: 1px solid var(--hub-line); border-radius: var(--hub-radius-2); box-shadow: var(--hub-shadow-2); padding: var(--hub-sp-2); }
.share__panel[hidden] { display: none; }
.share__panel ul { list-style: none; margin: 0; padding: 0; }
.share__panel a, .share__panel button { display: flex; align-items: center; width: 100%; min-height: 2.75rem; padding: 0 var(--hub-sp-3); border: 0; border-radius: var(--hub-radius-1); background: none; color: var(--hub-ink); font: inherit; font-weight: 600; text-align: start; text-decoration: none; cursor: pointer; }
.share__panel a:hover, .share__panel button:hover { background: var(--hub-surface-2); }
.share__panel li:last-child { margin-top: var(--hub-sp-1); padding-top: var(--hub-sp-1); border-top: 1px solid var(--hub-line); }
.blog-share { margin: var(--hub-sp-3) 0 0; }
.blog-share .share__panel { inset-inline-start: 0; inset-inline-end: auto; }

/* Cookie banner: only on the live build, shown by site.js to visitors in consent regions or from Cookie settings. */
.consent { position: fixed; inset-inline: var(--hub-sp-3); inset-block-end: var(--hub-sp-3); z-index: 60; max-width: 42rem; margin-inline: auto; display: flex; flex-wrap: wrap; align-items: center; gap: var(--hub-sp-3); padding: var(--hub-sp-4); background: var(--hub-surface); color: var(--hub-ink); border: 1px solid var(--hub-line); border-radius: var(--hub-radius-1); box-shadow: 0 10px 30px rgb(0 0 0 / 0.35); }
.consent[hidden] { display: none; }
.consent p { margin: 0; flex: 1 1 18rem; font-size: var(--hub-fs-sm); }
.consent__btns { display: flex; gap: var(--hub-sp-2); margin-inline-start: auto; }
.site-foot nav button { display: inline-flex; align-items: center; min-height: 2.75rem; padding-inline: var(--hub-sp-3); border: 0; border-radius: var(--hub-radius-pill); background: none; font: inherit; color: var(--hub-ink-soft); font-weight: 600; cursor: pointer; }
.site-foot nav button:hover { color: var(--hub-ink); background: var(--hub-surface-2); }

/* Buy me a coffee: a header button and the dialog with Ko-fi's tip panel. */
.support-btn { min-height: 2.75rem; padding-inline: 0.85rem; font-size: var(--hub-fs-sm); }
.support-btn svg { color: var(--hub-highlight-ink); }
.support-btn__label { display: none; }
@media (min-width: 64rem) { .support-btn__label { display: inline; } .support-btn { padding-inline: 1.1rem; } }
dialog.support { width: min(100% - 2rem, 28rem); max-height: calc(100dvh - 2rem); padding: 0; border: var(--hub-border); border-radius: var(--hub-radius-3); background: var(--hub-surface); color: var(--hub-ink); box-shadow: var(--hub-shadow-2); overflow: auto; overscroll-behavior: contain; }
dialog.support::backdrop { background: var(--hub-scrim); opacity: 0.66; }
.support__head { display: flex; gap: var(--hub-sp-3); align-items: flex-start; padding: var(--hub-sp-5) var(--hub-sp-5) var(--hub-sp-4); }
.support__head h2 { font-size: var(--hub-fs-lg); margin: 0 0 var(--hub-sp-2); }
.support__head p { margin: 0; color: var(--hub-ink-soft); font-size: var(--hub-fs-sm); }
.support__head .icon-btn { flex: none; margin-inline-start: auto; }
.support__frame { margin-inline: var(--hub-sp-4); border-radius: var(--hub-radius-2); overflow: hidden; background: var(--hub-surface-2); }
/* Ko-fi's tip panel is about 610px tall; on a short screen the dialog itself scrolls. */
.support__frame iframe { display: block; width: 100%; height: 610px; border: 0; }
.support__alt { margin: 0; padding: var(--hub-sp-3) var(--hub-sp-5) var(--hub-sp-4); text-align: center; font-size: var(--hub-fs-xs); }
.support__alt a { color: var(--hub-secondary); }
@media (max-width: 23.99rem) { .head-tools { gap: var(--hub-sp-1); } .site-head__row { column-gap: var(--hub-sp-2); } .support-btn, .acct__signin { padding-inline: 0.6rem; } }
/* On a narrow phone the header shows the brand mark without the wordmark, so the tools stay on one row. The name is still read out. */
@media (max-width: 31.99rem) { .site-head .brand > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
@media (max-width: 47.99rem) { dialog.support { width: 100%; max-width: none; max-height: 92dvh; margin: auto 0 0; border-radius: var(--hub-radius-3) var(--hub-radius-3) 0 0; } }
