/* Jumping Ram — site styles
   Palette "Sable · Azur", built from the recoloured ram:
   night-blue background, azure accent (complementary to the sand wool
   and caramel horns), caramel for small warm details, wool cream for headings.
   Checked for contrast (WCAG) and red-green colour blindness.
   All colours go through the tokens below. */

@font-face {
  font-family: "Nunito";
  src: url("../fonts/nunito-latin-var.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}
@font-face {
  font-family: "Lilita One";    /* logo lettering only */
  src: url("../fonts/lilita-one-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  /* Surfaces: night blue (darkest to lightest) */
  --bg-950: #070b14;
  --bg-900: #0b1220;
  --bg-800: #111a2c;
  --bg-700: #18233a;
  --bg-rgb: 11 18 32;           /* = bg-900, for translucent layers */
  --line: #22304a;
  --line-strong: #33456a;

  /* Accent: azure (6.5:1 on the background) */
  --accent: #2f9bff;
  --accent-hi: #66b6ff;
  --accent-rgb: 47 155 255;
  --on-accent: #0b0e16;         /* text on accent buttons (6.7:1) */

  /* Warm secondary: caramel of the horns (7.7:1), small details only */
  --warm: #c7a06e;
  --warm-rgb: 199 160 110;

  /* Text */
  --heading: #fff6e3;           /* wool cream */
  --heading-rgb: 255 246 227;
  --text: #dfe5ef;
  --text-muted: #9aa7bd;
  --text-faint: #76839b;        /* small text: 4.5:1 on bg-800, 5.2:1 on bg-950 (WCAG AA) */

  /* Logo */
  --ink: #0b0e16;               /* outline of the ram and of the lettering */
  --font-logo: "Lilita One", "Arial Rounded MT Bold", system-ui, sans-serif;

  /* Status */
  --green: #2f9bff;             /* "in development" badge, = accent */
  --green-rgb: 47 155 255;

  --font-display: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "JetBrains Mono", "SF Mono", Consolas, monospace;

  --radius: 14px;
  --radius-sm: 8px;
  --max: 1160px;
  --header-h: 72px;
  --shadow: 0 18px 40px -18px rgb(0 0 0 / .7);
}

/* ---------- Base ---------- */

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg-900);
  /* faint blueprint grid + soft accent glow */
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgb(var(--accent-rgb) / .12), transparent 70%),
    linear-gradient(rgb(var(--heading-rgb) / .025) 1px, transparent 1px),
    linear-gradient(90deg, rgb(var(--heading-rgb) / .025) 1px, transparent 1px);
  background-size: 100% 100%, 32px 32px, 32px 32px;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video, iframe { max-width: 100%; display: block; }
img { height: auto; }

a { color: var(--accent-hi); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--heading); }

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.01em;
  color: var(--heading);
  margin: 0 0 .6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--accent); color: var(--on-accent); font-weight: 800;
  padding: .6rem 1rem; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 1rem; }

/* ---------- Small typographic helpers ---------- */

.lead { font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: var(--text-muted); max-width: 62ch; }
.muted { color: var(--text-muted); }
.mono { font-family: var(--font-mono); font-size: .9em; }
.accent { color: var(--accent); }

/* tech chips: C++, Unity, PS5... */
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.tag {
  font-family: var(--font-mono);
  font-size: .75rem;
  line-height: 1;
  padding: .35rem .55rem;
  border: 1px solid rgb(var(--warm-rgb) / .4);
  border-radius: 6px;
  color: var(--warm);
  background: rgb(var(--warm-rgb) / .05);
  white-space: nowrap;
}

/* ---------- Logo (ram image + live lettering) ---------- */

.logo-word {
  font-family: var(--font-logo);
  font-weight: 400;
  text-transform: uppercase;
  line-height: .9;
  letter-spacing: .01em;
  margin: 0;
  -webkit-text-stroke: .17em var(--ink);
  paint-order: stroke fill;
}
.logo-word .l1 { color: var(--accent); }
.logo-word .l2 { color: var(--heading); }

/* stacked lockup: the lettering overlaps the hooves, like the original logo */
.logo-stack { display: grid; justify-items: center; }
.logo-stack img { width: 100%; height: auto; }
.logo-stack .logo-word { position: relative; z-index: 1; font-size: var(--logo-size, 5rem); text-align: center; margin-top: calc(var(--logo-size, 5rem) * var(--logo-overlap, -.6)); }
.logo-stack .logo-word span { display: block; }

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

.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font: 800 1rem/1 var(--font-body);
  padding: .95rem 1.4rem;
  border-radius: 999px;
  border: 2px solid var(--accent);
  background: var(--accent);
  color: var(--on-accent);
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, transform .15s;
}
.btn:hover { background: var(--accent-hi); border-color: var(--accent-hi); color: var(--on-accent); transform: translateY(-1px); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

.btn--ghost { background: transparent; color: var(--heading); border-color: var(--line-strong); }
.btn--ghost:hover { background: rgb(var(--heading-rgb) / .06); border-color: var(--accent); color: var(--heading); }

.btn--sm { font-size: .875rem; padding: .6rem 1rem; }

.link-arrow {
  font-weight: 800; text-decoration: none; color: var(--accent-hi);
  display: inline-flex; align-items: center; gap: .35rem;
}
.link-arrow::after { content: "→"; transition: transform .15s; }
.link-arrow:hover::after { transform: translateX(3px); }

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

.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgb(var(--bg-rgb) / .82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { height: 100%; display: flex; align-items: center; gap: 1.5rem; }

.brand {
  display: flex; align-items: center; gap: .55rem;
  text-decoration: none;
  white-space: nowrap;
  margin-right: auto;
}
.brand img { width: 44px; height: 44px; object-fit: contain; }
.brand .logo-word { font-size: 1.35rem; line-height: 1; -webkit-text-stroke: 0; }
@media (max-width: 420px) {
  .site-header .container { gap: .8rem; }
  .brand img { width: 38px; height: 38px; }
  .brand .logo-word { font-size: 1.1rem; }
}
@media (max-width: 350px) {
  .brand .logo-word { display: none; }   /* very narrow screens: ram only */
}

.nav { display: flex; gap: 1.6rem; }
.nav a {
  color: var(--text-muted); text-decoration: none; font-weight: 700; font-size: .95rem;
  padding: .3rem 0; border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--heading); }
.nav a[aria-current="page"] { color: var(--heading); border-bottom-color: var(--accent); }

/* mobile menu (no JS: details/summary) */
.menu { display: none; position: relative; }
.menu summary {
  list-style: none; cursor: pointer;
  width: 42px; height: 42px; display: grid; place-items: center;
  border: 1px solid var(--line-strong); border-radius: 10px; color: var(--heading);
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary svg { width: 22px; height: 22px; }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + .6rem);
  min-width: 220px; padding: .6rem;
  background: var(--bg-800); border: 1px solid var(--line-strong); border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid; gap: .2rem;
}
.menu-panel a { padding: .6rem .8rem; border-radius: var(--radius-sm); color: var(--text); text-decoration: none; font-weight: 700; }
.menu-panel a:hover, .menu-panel a[aria-current="page"] { background: var(--bg-700); color: var(--heading); }

@media (max-width: 820px) {
  .site-header .nav { display: none; }
  .menu { display: block; }
}

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

.section { padding-block: clamp(4rem, 9vw, 7rem); }
.section--alt { background: rgb(0 0 0 / .25); border-block: 1px solid var(--line); }
.section--flush-top { padding-top: clamp(1rem, 3vw, 2rem); }
.section-head { max-width: 760px; margin-bottom: clamp(2rem, 4vw, 3rem); }

/* inner pages: title band under the header */
.page-head { padding-block: clamp(3rem, 7vw, 5rem) clamp(1rem, 3vw, 2rem); }
.page-head h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }

/* ---------- Hero ---------- */

.hero { padding-block: clamp(3rem, 8vw, 6.5rem) clamp(3rem, 7vw, 5.5rem); }
.hero .container {
  display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.hero h1 { margin-bottom: .45em; }
.hero h1 .accent { display: block; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero-logo { position: relative; justify-self: center; width: min(100%, 360px); --logo-size: clamp(3.4rem, 7vw, 5.6rem); }
.hero-logo::before {
  content: ""; position: absolute; inset: 8%;
  background: radial-gradient(circle, rgb(var(--accent-rgb) / .18), transparent 65%);
  filter: blur(20px); z-index: -1;
}
@media (max-width: 820px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-logo { order: -1; width: min(62%, 240px); --logo-size: 3rem; --logo-overlap: -.35; }
}

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

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-800);
  margin: 0; padding: 0; list-style: none;
}
.stat { padding: 1.4rem 1.5rem; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat-value { display: block; font: 900 clamp(1.7rem, 3vw, 2.2rem)/1.1 var(--font-display); color: var(--heading); }
.stat-label { display: block; font-family: var(--font-mono); font-size: .78rem; color: var(--text-faint); margin-top: .35rem; }
@media (max-width: 820px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- Cards (services) ---------- */

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }
.card {
  position: relative;
  padding: 1.6rem;
  background: var(--bg-800);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .2s, transform .2s;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.card-icon {
  width: 46px; height: 46px; margin-bottom: 1.1rem;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgb(var(--accent-rgb) / .12); color: var(--accent);
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: .45em; }
.card p { color: var(--text-muted); font-size: .98rem; }
.card .tags { margin-top: 1.1rem; }

/* ---------- Ludography (game grid) ---------- */

.ludo { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.game {
  display: flex; flex-direction: column;
  background: var(--bg-800);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s, transform .2s;
}
.game:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.game-cover { aspect-ratio: 460 / 215; background: var(--bg-700); overflow: hidden; }
.game-cover img { width: 100%; height: 100%; object-fit: cover; }
/* old/niche titles without a cover: typographic placeholder */
.game-cover--none {
  display: grid; place-items: center; padding: 1rem; text-align: center;
  font: 900 1.25rem/1.15 var(--font-display); color: var(--text-faint);
  background:
    repeating-linear-gradient(135deg, transparent 0 10px, rgb(var(--heading-rgb) / .03) 10px 20px),
    var(--bg-700);
}
.game-body { padding: 1rem 1.1rem 1.15rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.game-meta { font-family: var(--font-mono); font-size: .75rem; color: var(--warm); }
.game h3 { font-size: 1.08rem; margin: 0; }
.game-role { font-size: .93rem; color: var(--text-muted); margin: 0; }
.game-link { margin-top: auto; padding-top: .5rem; font-size: .88rem; }

/* ---------- Featured game (own games) ---------- */

.feature-games { display: grid; gap: 1.5rem; }
.feature-game {
  position: relative;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-800);
  display: grid; grid-template-columns: 1.1fr 1fr;
}
.feature-game--reverse .feature-game-art { order: 2; }
.feature-game-art { position: relative; min-height: 340px; }
.feature-game-art > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature-game-art .feature-game-logo {
  inset: auto; left: 50%; top: 1.5rem; translate: -50% 0;
  width: min(75%, 340px); height: auto; object-fit: contain;
  filter: drop-shadow(0 8px 18px rgb(0 0 0 / .55));
}
.feature-game-body { padding: clamp(1.5rem, 3vw, 2.5rem); display: flex; flex-direction: column; gap: .9rem; }
.feature-game-body h2, .feature-game-body h3 { font-size: 1.7rem; margin: 0; }
.feature-game-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1.2rem; margin-top: auto; padding-top: .4rem; }
@media (max-width: 860px) {
  .feature-game { grid-template-columns: 1fr; }
  .feature-game--reverse .feature-game-art { order: 0; }
  .feature-game-art { min-height: 220px; }
}

/* ---------- Home page ---------- */

/* compact credits strip: 6 covers */
.ludo--compact { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .ludo--compact { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .ludo--compact { grid-template-columns: 1fr; } }
.ludo--compact .game-role { font-size: .9rem; }
a.game-cover--none { text-decoration: none; color: var(--accent-hi); font-size: 1.6rem; }
a.game-cover--none:hover { color: var(--heading); }

/* "more" link under a section */
.section-more { margin-top: 1.8rem; }

/* short presentation block */
.intro { display: grid; grid-template-columns: auto 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; max-width: 900px; }
.intro img { width: clamp(110px, 16vw, 170px); height: auto; }
.intro p { color: var(--text-muted); font-size: 1.08rem; }
@media (max-width: 640px) { .intro { grid-template-columns: 1fr; justify-items: start; } }

/* ---------- Services page ---------- */

.service-list { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.service {
  display: grid; grid-template-columns: minmax(220px, 1fr) 2fr; gap: 1.2rem 2.5rem;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  background: var(--bg-800); border: 1px solid var(--line); border-radius: var(--radius);
}
.service-head h2 { font-size: 1.5rem; margin: 0 0 .8rem; }
.service-head .card-icon { margin-bottom: 1rem; }
.service-body > p { color: var(--text-muted); margin-bottom: .9rem; }
.service-body ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .4rem; }
.service-body li::marker { color: var(--accent); }
@media (max-width: 760px) { .service { grid-template-columns: 1fr; } }

/* numbered steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 0; padding: 0; list-style: none; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: step; padding: 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-800); }
.steps li::before {
  content: counter(step); display: grid; place-items: center;
  width: 2.2rem; height: 2.2rem; margin-bottom: .9rem; border-radius: 50%;
  font: 900 1.05rem/1 var(--font-display); color: var(--on-accent); background: var(--accent);
}
.steps h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.steps p { color: var(--text-muted); font-size: .95rem; }

/* facts: label / value rows */
.facts { display: grid; grid-template-columns: max-content 1fr; gap: .9rem 2rem; margin: 0; max-width: 820px; }
.facts dt { font-family: var(--font-mono); font-size: .85rem; color: var(--warm); padding-top: .2rem; }
.facts dd { margin: 0; }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; gap: .2rem; } .facts dd { margin-bottom: .8rem; } }

/* ---------- Games page ---------- */

/* the older / smaller credits: a plain list, no covers */
.credits-more { columns: 2 280px; column-gap: 2.5rem; margin: 0; padding: 0; list-style: none; }
.credits-more li { break-inside: avoid; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.credits-more strong { color: var(--heading); }
.credits-more .game-meta { display: block; margin-top: .1rem; }
.credits-more p { margin: .25rem 0 0; color: var(--text-muted); font-size: .93rem; }
.subhead { font-size: 1.3rem; margin: clamp(2.5rem, 5vw, 3.5rem) 0 1rem; }

/* ---------- Game page (Beware Planet Earth!) ---------- */

.game-hero { position: relative; min-height: clamp(320px, 52vw, 560px); display: grid; place-items: center; overflow: hidden; border-bottom: 1px solid var(--line); }
.game-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.game-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgb(var(--bg-rgb) / .95)); }
.game-hero-content { position: relative; z-index: 1; display: grid; justify-items: center; gap: 1.4rem; padding: 3rem 1.25rem; text-align: center; }
.game-hero-content h1 { margin: 0; }
.game-hero-content h1 img { width: min(80vw, 520px); filter: drop-shadow(0 10px 24px rgb(0 0 0 / .6)); }
.game-hero-content .hero-actions { margin-top: 0; justify-content: center; }
.game-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.game-facts .tag { background: rgb(var(--bg-rgb) / .85); }   /* readable over the artwork */

.two-col { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.feature-list { margin: 0; padding: 0; list-style: none; display: grid; gap: .8rem; }
.feature-list li { padding: 1rem 1.2rem; background: var(--bg-800); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.feature-list strong { display: block; color: var(--heading); }
.feature-list span { color: var(--text-muted); font-size: .95rem; }

/* screenshot gallery + lightbox (site.js) */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
@media (max-width: 760px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.gallery button { padding: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; cursor: zoom-in; background: var(--bg-700); }
.gallery button:hover { border-color: var(--accent); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s; }
.gallery button:hover img { transform: scale(1.03); }
.lightbox { max-width: min(96vw, 1200px); max-height: 94vh; padding: 0; border: 0; background: transparent; overflow: visible; }
.lightbox::backdrop { background: rgb(0 0 0 / .85); }
.lightbox img { max-height: 88vh; width: auto; border-radius: var(--radius-sm); }
.lightbox-btn {
  position: absolute; width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  font: 700 1.6rem/1 var(--font-body); color: var(--heading);
  background: rgb(var(--bg-rgb) / .85); border: 1px solid var(--line-strong);
}
.lightbox-btn:hover { border-color: var(--accent); }
.lightbox-prev { left: -22px; top: 50%; translate: 0 -50%; }
.lightbox-next { right: -22px; top: 50%; translate: 0 -50%; }
.lightbox-close { right: -14px; top: -14px; }
@media (max-width: 760px) { .lightbox-prev { left: 4px; } .lightbox-next { right: 4px; } .lightbox-close { right: 4px; top: 4px; } }

/* Steam store widget, loaded by consent.js only after consent.
   Before that (or without JS) the fallback link is shown. */
.steam-embed { width: 100%; max-width: 646px; }
.steam-embed iframe { width: 100%; height: 190px; border: 0; border-radius: var(--radius-sm); background: transparent; }
.steam-embed.is-loaded .steam-fallback { display: none; }
.steam-fallback {
  display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1rem;
  padding: 1rem; border: 1px dashed var(--line-strong); border-radius: var(--radius-sm);
}
.steam-fallback small { flex-basis: 100%; color: var(--text-faint); font-size: .8rem; }
.btn--link {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: 700 .9rem/1.2 var(--font-body); color: var(--accent-hi);
  text-decoration: underline; text-underline-offset: 3px;
}
.btn--link:hover { color: var(--heading); }

/* Consent banner (only on pages with a Steam widget) */
.consent-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 90;
  max-width: 640px; margin-inline: auto;
  padding: 1.2rem 1.3rem;
  background: var(--bg-800); border: 1px solid var(--line-strong); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.consent-banner[hidden] { display: none; }
.consent-banner p { margin: 0 0 1rem; font-size: .95rem; color: var(--text-muted); }
.consent-banner strong { color: var(--heading); }
.consent-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
/* refusing must be as easy as accepting: same size, same weight */
.consent-actions .btn { flex: 1 1 10rem; justify-content: center; }

/* ---------- Teaser (game in development) ---------- */

.teaser {
  position: relative; overflow: hidden;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid rgb(var(--green-rgb) / .35);
  min-height: 340px;
  display: grid; align-items: end;
}
.teaser > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.teaser::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgb(0 0 0 / .85) 0%, rgb(0 0 0 / .5) 45%, transparent 75%);
}
.teaser-body { position: relative; z-index: 1; padding: clamp(1.5rem, 4vw, 2.5rem); max-width: 520px; }
.teaser-logo { width: min(100%, 320px); margin-bottom: 1rem; filter: drop-shadow(0 6px 14px rgb(0 0 0 / .5)); }
.badge {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--font-mono); font-size: .75rem;
  padding: .35rem .7rem; border-radius: 999px;
  background: rgb(var(--green-rgb) / .14); color: var(--green); border: 1px solid rgb(var(--green-rgb) / .4);
  margin-bottom: .9rem;
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* ---------- Timeline (career) ---------- */

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 7.5rem; top: .4rem; bottom: .4rem;
  width: 1px; background: var(--line-strong);
}
.timeline li { display: grid; grid-template-columns: 7.5rem 1fr; gap: 0 1.8rem; padding-bottom: 1.8rem; position: relative; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: calc(7.5rem - 5px); top: .45rem;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--bg-900); border: 2px solid var(--accent);
}
.timeline time { font-family: var(--font-mono); font-size: .82rem; color: var(--warm); padding-top: .15rem; text-align: right; padding-right: 1.2rem; }
.timeline h3 { font-size: 1.1rem; margin: 0 0 .2rem; }
.timeline p { color: var(--text-muted); font-size: .97rem; }
@media (max-width: 640px) {
  .timeline::before { left: 5px; }
  .timeline li { grid-template-columns: 1fr; padding-left: 1.8rem; }
  .timeline li::before { left: 0; }
  .timeline time { text-align: left; padding: 0; }
}

/* ---------- Contact block ---------- */

.contact {
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  background:
    radial-gradient(ellipse 60% 80% at 50% 0%, rgb(var(--accent-rgb) / .12), transparent 70%),
    var(--bg-800);
}
.contact .lead { margin-inline: auto; }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-top: 1.8rem; }
.contact-note { margin-top: 1.6rem; font-size: .92rem; }

/* ---------- Prose (legal pages) ---------- */

.prose { max-width: 72ch; }
.prose h2 { font-size: 1.5rem; margin-top: 2.2em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2rem; margin: 0; }
.prose li { margin-bottom: .6rem; color: var(--text-muted); }
.prose li::marker { color: var(--accent); }
@media (min-width: 561px) { .prose .facts { grid-template-columns: 11rem 1fr; } }   /* same column in every list */

/* ---------- 404 ---------- */

.lost .container { display: grid; justify-items: center; text-align: center; gap: 1.5rem; }
.lost-ram { width: 180px; transform: rotate(-12deg); }
.lost-code { margin: -1rem 0 0; font: 400 clamp(4rem, 12vw, 7rem)/1 var(--font-logo); color: var(--accent); -webkit-text-stroke: .08em var(--ink); paint-order: stroke fill; }
.lost-text h1, .lost-text h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-bottom: .3em; }
.lost-text .btn { margin-top: 1rem; }

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

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 2.5rem;
  font-size: .9rem; color: var(--text-faint);
  background: var(--bg-950);
}
.site-footer .container { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; }
.footer-brand { display: flex; align-items: center; gap: .5rem; margin-right: auto; text-decoration: none; }
.footer-brand img { width: 34px; height: 34px; object-fit: contain; }
.footer-brand .logo-word { font-size: 1.05rem; line-height: 1; -webkit-text-stroke: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.footer-links a { color: var(--text-muted); text-decoration: none; }
.footer-links a:hover { color: var(--heading); }
.footer-legal { width: 100%; font-family: var(--font-mono); font-size: .75rem; }
