/* MH-career — « carnet de chasse »
 *
 * Registre de terrain : fond noir chaud grainé, os pour le texte, cuivre comme
 * UNIQUE couleur de donnée. Filets marqués, colonnes numériques denses, marges
 * généreuses. Aucun JavaScript, aucune ressource externe.
 *
 * Toutes les valeurs ci-dessous ont été vérifiées par calcul WCAG, pas jugées à
 * l'œil. Les ratios sont notés en commentaire ; les recalculer avant toute
 * modification de la palette.
 */

/* Polices système : les fichiers de polices personnalisées ne sont pas encore
 * fournis. Aucun appel vers un fichier absent ni vers un hébergeur tiers. */

:root {
  /* Fonds */
  --ground:      #0c0a09;
  --surface:     #16130f;
  --surface-up:  #1e1a15;
  --line:        #2a241d;

  /* Texte — ratios sur --ground : 15.65 / 6.89 / 5.08 */
  --bone:        #ece4d6;
  --bone-dim:    #a39785;
  --bone-faint:  #8a8070;

  /* Donnée — une seule teinte, 5.96 et 8.55 sur --ground */
  --copper:      #c87a4a;
  --copper-lift: #e39a68;

  /* Rampe de magnitude : une teinte, du plus clair au plus dense.
   * Un arc-en-ciel encoderait la magnitude sur la teinte, ce qui ne se lit pas.
   * Ratios du texte retenu sur chaque palier : 13.01 / 10.78 / 8.05 / 5.49 / 5.23.
   * Au palier 4 le texte bascule en sombre : l'os n'y tient que 2.99. */
  --lv-0: rgba(200, 122, 74, 0.10);
  --lv-1: rgba(200, 122, 74, 0.22);
  --lv-2: rgba(200, 122, 74, 0.38);
  --lv-3: rgba(200, 122, 74, 0.58);
  --lv-4: rgba(200, 122, 74, 0.92);

  --display: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", ui-sans-serif, system-ui, sans-serif;

  --measure: 84rem;
  --gutter: clamp(1.15rem, 4vw, 3rem);

  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--bone);
  font: 400 16px/1.65 var(--sans);
  font-feature-settings: "kern" 1;
}

/* Le grain. Une turbulence SVG en data: URI — quelques centaines d'octets,
 * aucune image externe, et c'est lui qui donne la matière que le fond plat
 * ne peut pas avoir. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23g)' opacity='0.09'/%3E%3C/svg%3E");
}

body > * { position: relative; z-index: 1; }

/* ---------- Typographie ---------- */

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0;
}

h1 {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  margin-bottom: 0.35em;
}

h2 {
  font-weight: 600;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  letter-spacing: -0.01em;
  margin: 4.5rem 0 1.4rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

/* Le marqueur cuivre des sections : un losange, rappel du sceau de guilde. */
h2::before {
  content: "";
  display: inline-block;
  width: 0.42em;
  height: 0.42em;
  margin-right: 0.6em;
  vertical-align: 0.12em;
  background: var(--copper);
  transform: rotate(45deg);
}

a { color: var(--copper-lift); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--bone); }

.lede {
  font-size: clamp(1.02rem, 2vw, 1.2rem);
  color: var(--bone-dim);
  max-width: 46ch;
  margin: 0 0 3rem;
  text-wrap: pretty;
}

.skip { position: absolute; left: -999px; }
.skip:focus {
  left: 1rem; top: 1rem; z-index: 20;
  background: var(--copper); color: var(--ground);
  padding: 0.6rem 1rem; border-radius: 2px;
}

/* ---------- En-tête ---------- */

.masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.7rem 2rem;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 1.7rem var(--gutter) 1.2rem;
  /* Double filet : la signature d'un registre. */
  border-bottom: 3px double var(--line);
}

.masthead__brand {
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.16rem;
  letter-spacing: 0.01em;
  color: var(--bone);
  text-decoration: none;
}

.masthead__nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }

.masthead__nav a {
  color: var(--bone-dim);
  text-decoration: none;
  font-size: 0.83rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid transparent;
}
.masthead__nav a:hover { color: var(--bone); border-bottom-color: var(--copper); }

.page { max-width: var(--measure); margin: 0 auto; padding: 3.5rem var(--gutter) 6rem; }

/* ---------- Tuiles de statistiques ----------
 * Pas de boîtes imbriquées : un seul encadrement, des filets verticaux, et le
 * chiffre qui domine. */

.stat-grid {
  list-style: none;
  margin: 0 0 3.5rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.stat {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.5rem 1.4rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.stat__value {
  font-size: clamp(2rem, 4.2vw, 2.9rem);
  font-weight: 600;
  line-height: 1;
  /* Chiffres PROPORTIONNELS : à cette taille, des chiffres tabulaires
   * paraissent lâches. Le tabulaire est réservé aux colonnes alignées. */
  font-variant-numeric: proportional-nums;
  color: var(--bone);
}

.stat__label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--bone-dim);
  margin-top: 0.5rem;
}

.stat__note { font-size: 0.72rem; color: var(--bone-faint); }

/* Une valeur inconnue ne doit pas crier aussi fort qu'un chiffre. */
.v--unknown, .num--unknown { color: var(--bone-faint); }

/* ---------- Tableaux ---------- */

.table-scroll { overflow-x: auto; margin: 0 0 2rem; }

table { border-collapse: collapse; width: 100%; font-size: 0.93rem; }

thead th {
  text-align: left;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--bone-faint);
  padding: 0 0.85rem 0.7rem;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

tbody th, tbody td {
  padding: 0.62rem 0.85rem;
  border-bottom: 1px solid var(--line);
  /* Chiffres tabulaires ICI : ils s'alignent verticalement. */
  font-variant-numeric: tabular-nums;
}

tbody th { text-align: left; font-weight: 500; color: var(--bone); }
tbody tr:hover th, tbody tr:hover td { background: var(--surface); }

.num { text-align: right; }

/* La barre de magnitude. Une seule couleur pour toutes les barres : les teinter
 * selon leur valeur doublerait l'encodage de la longueur et gâcherait le seul
 * canal libre. */
.bar {
  position: relative;
  text-align: right;
}
.bar::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 1.55em;
  width: calc(var(--v, 0) * 100%);
  background: rgba(200, 122, 74, 0.2);
  border-radius: 0 2px 2px 0;
}
.bar > * { position: relative; }

/* La matrice. Rampe à teinte unique ; le texte bascule en sombre au dernier
 * palier, où l'os ne tient plus le contraste. */
.cell { text-align: right; }
.cell--0 { background: var(--lv-0); }
.cell--1 { background: var(--lv-1); }
.cell--2 { background: var(--lv-2); }
.cell--3 { background: var(--lv-3); }
.cell--4 { background: var(--lv-4); color: var(--ground); font-weight: 600; }

/* Matrice : la colonne d'identité reste visible pendant le défilement latéral.
 * Sans elle, sur un écran étroit, on lit une valeur sans savoir de quel monstre
 * il s'agit — le tableau redevient une grille de chiffres anonymes.
 * Le fond doit être opaque, sinon les cellules teintées défilent par-dessous. */
.matrix th[scope="row"] {
  position: sticky;
  left: 0;
  z-index: 2;
  background: var(--ground);
  box-shadow: 1px 0 0 var(--line);
}
.matrix tbody tr:hover th[scope="row"] { background: var(--surface); }
.matrix thead th:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  background: var(--ground);
}

/* Sur écran étroit les colonnes de jeux se resserrent. Le total n'est PAS
 * épinglé à son tour : en disposition automatique, le décalage d'une position
 * collante ne peut pas coïncider avec une largeur de colonne calculée, et la
 * colonne voisine apparaît dans l'écart. Resserrer suffit — la matrice tient
 * alors presque entièrement dans la largeur. */
@media (max-width: 42rem) {
  .matrix th.col, .matrix td.cell { width: 3.9rem; }
  .matrix td.bar { width: 4.6rem; }
  .matrix tbody th, .matrix tbody td { padding-left: 0.55rem; padding-right: 0.55rem; }
}

/* Matrice : colonnes de jeux de largeur égale. Sans cela, un titre long étire
 * sa colonne et la grille perd la régularité qui la rend lisible d'un coup. */
.matrix th.col, .matrix td.cell { width: 5.6rem; }
.matrix td.bar { width: 7.5rem; }

.forms {
  display: inline-block;
  margin-left: 0.55rem;
  padding: 0.05rem 0.45rem;
  font-size: 0.7rem;
  color: var(--bone-faint);
  border: 1px solid var(--line);
  border-radius: 999px;
  vertical-align: 0.05em;
}

/* Légende d'échelle : sans elle, une rampe ne se lit pas. */
.scale {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.6rem;
  font-size: 0.75rem;
  color: var(--bone-dim);
}
.scale__swatch {
  display: inline-block;
  width: 2.4rem;
  height: 0.85rem;
  /* Un écart de 2px entre les pastilles, jamais une bordure autour. */
  margin-right: 2px;
  border-radius: 1px;
}

/* ---------- Cartes ---------- */

.card-grid {
  list-style: none;
  margin: 0 0 3rem;
  padding: 0;
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr));
  background: var(--line);
  border: 1px solid var(--line);
}

.card { background: var(--ground); padding: 1.5rem 1.5rem 1.6rem; }
.card:hover { background: var(--surface); }

.card__title { font-size: 1.22rem; font-weight: 600; margin: 0 0 0.3rem; }
.card__title a { color: var(--bone); text-decoration: none; }
.card__title a:hover { color: var(--copper-lift); }

.card__meta {
  margin: 0 0 1.2rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--bone-faint);
}

.card__stats { display: grid; grid-template-columns: 1fr auto; gap: 0.45rem 1rem; margin: 0; }
.card__stats dt { font-size: 0.85rem; color: var(--bone-dim); }
.card__stats dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }

.card__empty { margin: 1.1rem 0 0; font-size: 0.78rem; color: var(--bone-faint); font-style: italic; }

/* ---------- Chronologie ---------- */

.timeline { list-style: none; margin: 0 0 3rem; padding: 0 0 0 1.4rem; border-left: 1px solid var(--line); }

.timeline__item { position: relative; padding: 0.55rem 0; display: flex; gap: 1.2rem; align-items: baseline; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: -1.75rem;
  top: 1.05rem;
  width: 7px;
  height: 7px;
  background: var(--copper);
  transform: rotate(45deg);
}
.timeline__item--end::before { background: var(--line); box-shadow: inset 0 0 0 1px var(--copper); }

.timeline__date {
  color: var(--bone-dim);
  font-size: 0.85rem;
  min-width: 8.5rem;
}
.timeline__label { font-weight: 500; }

/* Une pastille pleine ou creuse ne dit pas ce qu'elle distingue ; le mot, si.
 * La forme reste, elle sert de repère une fois le mot lu. */
.timeline__kind {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--bone-faint);
}

/* ---------- Encarts et prose ---------- */

.notice {
  margin: 0 0 3rem;
  padding: 1.3rem 1.5rem;
  background: var(--surface);
  border-left: 2px solid var(--copper);
}
.notice p { margin: 0.6rem 0; color: var(--bone-dim); }
.notice p:first-child { margin-top: 0; }
.notice p:last-child { margin-bottom: 0; }
.notice strong { color: var(--bone); }
.notice--quiet { border-left-color: var(--line); font-size: 0.88rem; }

.prose { max-width: 62ch; }
.prose h2 { margin-top: 3.2rem; }
.prose p { color: var(--bone-dim); }
.prose strong { color: var(--bone); }
.prose ul { padding-left: 1.1rem; }
.prose li { color: var(--bone-dim); margin-bottom: 0.4rem; }

.sources { padding-left: 1.1rem; color: var(--bone-dim); font-size: 0.9rem; }
.sources code { color: var(--copper-lift); font-size: 0.85em; }

.colophon {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 1.8rem var(--gutter) 4rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--bone-faint);
}
.colophon p { margin: 0; max-width: 60ch; }
.colophon strong { color: var(--bone-dim); }

/* ---------- Une seule entrée orchestrée ----------
 * Un moment de révélation échelonné vaut mieux que des micro-interactions
 * dispersées partout. */

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

.stat, .card, .timeline__item {
  animation: rise 0.5s cubic-bezier(0.2, 0.7, 0.3, 1) backwards;
}
.stat:nth-child(1), .card:nth-child(1), .timeline__item:nth-child(1) { animation-delay: 0.04s; }
.stat:nth-child(2), .card:nth-child(2), .timeline__item:nth-child(2) { animation-delay: 0.09s; }
.stat:nth-child(3), .card:nth-child(3), .timeline__item:nth-child(3) { animation-delay: 0.14s; }
.stat:nth-child(4), .card:nth-child(4), .timeline__item:nth-child(4) { animation-delay: 0.19s; }
.stat:nth-child(5), .card:nth-child(5), .timeline__item:nth-child(5) { animation-delay: 0.24s; }
.stat:nth-child(6), .card:nth-child(6), .timeline__item:nth-child(6) { animation-delay: 0.29s; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ---------- Petits écrans ---------- */

/* Portraits issus des cartes de guilde. Même palette et mêmes contrastes que
 * l'accueil : les légendes utilisent le fond opaque --ground (os 15.65:1,
 * texte secondaire 6.89:1). Les couleurs d'armure appartiennent à l'image,
 * elles ne codent aucune quantité. */
.game-hero { position: relative; isolation: isolate; min-height: 33rem; margin: -3rem calc(-1 * var(--gutter)) 2rem; padding: 3rem var(--gutter) 5rem; display: flex; align-items: center; overflow: hidden; }
.game-hero__image { position: absolute; z-index: -2; right: 0; top: 0; width: 80%; height: 100%; object-fit: contain; object-position: right center; }
.game-hero__shade { position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, var(--ground) 10%, transparent 80%), linear-gradient(0deg, var(--ground), transparent 28%); }
.game-hero__content { width: 53%; }
.game-hero__back { display: inline-block; margin-bottom: 2rem; padding: 0.2rem 0.4rem; background: var(--ground); color: var(--bone-dim); font-size: 0.74rem; text-decoration: none; }
.game-hero .eyebrow { width: fit-content; background: var(--ground); padding: 0.25rem 0.4rem; }
.game-hero h1 { font-size: clamp(2.8rem, 5.8vw, 5.4rem); line-height: 1.05; text-wrap: balance; letter-spacing: -0.045em; text-shadow: 0 2px 22px var(--ground); }
.game-hero__platform { font-size: 0.8rem; color: var(--bone-dim); background: var(--ground); width: fit-content; padding: 0.2rem 0.4rem; }
.game-hero__caption { position: absolute; bottom: 1.2rem; right: var(--gutter); max-width: calc(100% - 2 * var(--gutter)); margin: 0; padding: 0.4rem 0.6rem; background: var(--ground); color: var(--bone-dim); font-size: 0.62rem; text-align: right; }
.game-hero__caption span { display: block; font-size: 0.58rem; }
.game-card--illustrated { display: flex; flex-direction: column; }
.game-card__scene { position: relative; display: block; min-height: 14rem; margin: 1rem -1.3rem 0; overflow: hidden; text-decoration: none; color: var(--bone); }
.game-card__scene img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 75% center; }
.game-card__scene-title { position: absolute; inset: auto 0 0; display: flex; align-items: end; justify-content: space-between; gap: 1rem; padding: 2.5rem 1.3rem 1rem; background: linear-gradient(0deg, var(--surface) 28%, transparent); }
.game-card__scene-title h3 { font: 650 1.05rem/1.3 var(--sans); max-width: 20ch; background: var(--surface); padding: 0.2rem 0.35rem; margin-left: -0.35rem; }
.game-card__scene-title > span { color: var(--copper-lift); background: var(--surface); padding: 0.2rem; }
.game-card--illustrated .game-card__stats { margin-top: auto; }
@media (max-width: 42rem) {
  .game-hero { min-height: 39rem; align-items: end; padding-top: 20rem; padding-bottom: 5rem; }
  .game-hero__image { width: 160%; max-width: none; height: 26rem; right: -3%; object-position: right top; }
  .game-hero__shade { background: linear-gradient(0deg, var(--ground) 4%, transparent 75%); }
  .game-hero__content { width: 100%; }
  .game-hero__back { margin-bottom: 0.75rem; }
  .game-hero h1 { font-size: 2.8rem; max-width: 15ch; }
  .game-hero__caption { left: var(--gutter); right: auto; text-align: left; }
  .game-card__scene { min-height: 15rem; }
}

/* ---------- Carte de guilde ----------
 * Palette conservée. Contrastes recalculés sur --surface : os 14.67,
 * secondaire 6.46, discret 4.76, cuivre 5.59, cuivre clair 8.01.
 * Sur --surface-up : os 13.70, secondaire 6.03, cuivre clair 7.49.
 * Les petits textes sur illustration ont un fond opaque. Le grand titre est
 * protégé par un dégradé sombre. Les bordures sont uniquement décoratives. */

:focus-visible { outline: 2px solid var(--copper-lift); outline-offset: 5px; }
html { scroll-padding-top: 2rem; }
.masthead { align-items: center; justify-content: space-between; padding-top: 1.15rem; padding-bottom: 1.15rem; border-bottom: 1px solid var(--line); }
.masthead__brand { display: flex; align-items: center; gap: 0.8rem; font-family: var(--sans); font-size: 1.05rem; letter-spacing: 0.12em; }
.masthead__brand img { flex: none; }
.masthead__brand small { display: block; font-size: 0.57rem; text-transform: uppercase; color: var(--bone-dim); font-weight: 500; letter-spacing: 0.2em; margin-top: 0.15rem; }
.brand-divider { color: var(--copper); }
.masthead__nav { gap: clamp(0.8rem, 2vw, 2rem); }
.masthead__nav a { font-size: 0.7rem; letter-spacing: 0.1em; padding: 0.4rem 0; }
.masthead__nav a[aria-current="page"] { color: var(--bone); border-color: var(--copper); }
.eyebrow { margin: 0 0 1rem; font: 600 0.66rem/1.6 var(--sans); text-transform: uppercase; letter-spacing: 0.2em; color: var(--copper-lift); }
.eyebrow > span { padding: 0 0.4rem; color: var(--bone-faint); }
.page { padding-top: 3rem; }
.career-hero { position: relative; isolation: isolate; min-height: 32rem; display: flex; align-items: center; margin: -3rem calc(-1 * var(--gutter)) 0; padding: 3rem var(--gutter) 4rem; overflow: hidden; }
.career-hero__art { position: absolute; z-index: -1; inset: 0; background: var(--ground) url('../images/rathalos-hero.png') right center / auto 115% no-repeat; }
.career-hero__art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ground) 0%, transparent 75%), linear-gradient(0deg, var(--ground), transparent 24%); }
.career-hero__content { max-width: 36rem; }
.career-hero .eyebrow { display: inline-block; padding: 0.3rem 0.5rem; margin-left: -0.5rem; background: var(--ground); }
.career-hero h1 { font-size: clamp(3.9rem, 7.8vw, 7rem); font-weight: 600; letter-spacing: -0.065em; line-height: 0.98; margin: 0 0 1.6rem; text-shadow: 0 2px 18px var(--ground); }
.career-hero h1 em { color: var(--copper-lift); font-weight: 400; }
.hero-intro { color: var(--bone-dim); font-size: 0.88rem; line-height: 1.8; background: var(--ground); width: fit-content; padding: 0.35rem 0.5rem; margin: 0 0 1.8rem -0.5rem; }
.guild-button { display: inline-flex; align-items: center; gap: 2.5rem; padding: 0.8rem 1.25rem; color: var(--ground); background: var(--copper-lift); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px)); }
.guild-button:hover { color: var(--ground); background: var(--bone); }
.hero-caption { position: absolute; right: var(--gutter); bottom: 1.5rem; font-size: 0.65rem; letter-spacing: 0.09em; color: var(--bone-dim); background: var(--ground); padding: 0.2rem 0.5rem; }
.career-record { position: relative; margin-bottom: 4.5rem; border-top: 2px solid var(--copper); background: var(--surface); }
.record-heading { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; padding: 1.1rem 1.4rem 0; }
.record-heading .eyebrow { margin: 0; }
.record-heading > span:last-child { color: var(--bone-dim); font-size: 0.67rem; }
.stat-grid--career { grid-template-columns: repeat(2, minmax(0, 1fr)); border: 0; margin: 0; padding: 0.7rem 0; }
.stat-grid--career .stat { border: 0; padding: 1.3rem 1.4rem; }
.stat-grid--career .stat__value { font-family: var(--display); font-size: 2.35rem; letter-spacing: -0.04em; }
.stat-grid--career .stat:nth-child(-n+2) .stat__value { font-size: 3.6rem; color: var(--copper-lift); }
.stat-grid--career .stat__label { font-size: 0.62rem; letter-spacing: 0.08em; }
.stat-grid--career .stat__note { font-size: 0.64rem; }
.section-heading { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; margin: 0 0 1.5rem; }
.section-heading .eyebrow { margin-bottom: 0.5rem; }
.section-heading h2 { border: 0; padding: 0; margin: 0; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.section-heading h2::before { display: none; }
.text-link { font-size: 0.75rem; text-decoration: none; color: var(--copper-lift); }
.text-link span { margin-left: 0.75rem; }
.section-note { font-size: 0.7rem; color: var(--bone-dim); }
.collection-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr; gap: 1rem; }
.game-card { background: var(--surface); border: 1px solid var(--line); padding: 1.2rem 1.3rem; position: relative; }
.game-card::before { content: ''; position: absolute; top: -1px; left: -1px; width: 22px; height: 22px; border-top: 2px solid var(--copper); border-left: 2px solid var(--copper); pointer-events: none; }
.game-card:focus-within { outline: 2px solid var(--copper-lift); outline-offset: 3px; }
.game-card__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.4rem; font-size: 0.58rem; color: var(--bone-dim); text-transform: uppercase; letter-spacing: 0.09em; }
.game-card__status { display: flex; align-items: center; gap: 0.4rem; }
.game-card__status::before { content: ''; width: 4px; height: 4px; border: 1px solid var(--bone-dim); transform: rotate(45deg); background: var(--bone-dim); }
.game-card--pending .game-card__status::before { background: transparent; }
.game-card__name { position: relative; display: flex; align-items: center; gap: 0.85rem; padding: 1.65rem 0; color: var(--bone); text-decoration: none; min-height: 8rem; }
.game-card__name h3 { font-family: var(--sans); font-weight: 650; font-size: 1rem; letter-spacing: -0.02em; line-height: 1.3; max-width: 16ch; }
.game-card__sigil { width: 4rem; height: 4rem; flex: none; display: grid; place-items: center; background: url('../images/guild-mark.svg') center / contain no-repeat; opacity: 0.7; }
.game-card__arrow { color: var(--copper-lift); margin-left: auto; }
.game-card:hover { border-color: var(--copper); }
.game-card__stats { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 0.5rem; margin: 0; padding-top: 0.9rem; border-top: 1px solid var(--line); }
.game-card__stats dt { font-size: 0.6rem; color: var(--bone-dim); }
.game-card__stats dd { margin: 0.2rem 0 0; font-size: 1.12rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.archive-paths { display: grid; gap: 1rem; margin: 4rem 0; }
.archive-path { display: block; text-decoration: none; padding: 2rem; border: 1px solid var(--line); background: var(--surface); position: relative; overflow: hidden; }
.archive-path::after { content: ''; position: absolute; right: -2rem; top: -2rem; width: 12rem; height: 12rem; border: 1px solid var(--line); transform: rotate(45deg); pointer-events: none; }
.archive-path:hover { border-color: var(--copper); }
.archive-path h2 { border: 0; margin: 0.8rem 0 1rem; padding: 0; color: var(--bone); font-size: 2rem; line-height: 1.15; }
.archive-path h2::before { display: none; }
.archive-path p { max-width: 37ch; color: var(--bone-dim); font-size: 0.85rem; margin-bottom: 1.5rem; }
.timeline__item { flex-wrap: wrap; gap: 0.35rem 1.2rem; }
.footer-title { display: block; margin-bottom: 0.7rem; color: var(--bone); text-transform: uppercase; font-size: 0.66rem; letter-spacing: 0.15em; }
.matrix tbody tr:hover td.cell--0 { background: var(--lv-0); }
.matrix tbody tr:hover td.cell--1 { background: var(--lv-1); }
.matrix tbody tr:hover td.cell--2 { background: var(--lv-2); }
.matrix tbody tr:hover td.cell--3 { background: var(--lv-3); }
.matrix tbody tr:hover td.cell--4 { background: var(--lv-4); }
@media (min-width: 42rem) {
  .collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .archive-paths { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-grid--career { grid-template-columns: 1.35fr 1.35fr 1fr 1fr 1fr; }
  .stat-grid--career .stat + .stat { border-left: 1px solid var(--line); }
}
@media (min-width: 64rem) {
  .collection-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 42rem) {
  .masthead { gap: 1rem; }
  .masthead__nav { width: 100%; justify-content: space-between; gap: 0.5rem; }
  .masthead__nav a { font-size: 0.57rem; }
  .career-hero { min-height: 37rem; align-items: end; padding-top: 12rem; padding-bottom: 3rem; }
  .career-hero__art { background-size: auto 70%; background-position: 68% top; }
  .career-hero__art::after { background: linear-gradient(0deg, var(--ground) 8%, transparent 100%); }
  .career-hero h1 { font-size: clamp(3.5rem, 15vw, 5.5rem); }
  .career-hero .eyebrow { font-size: 0.56rem; }
  .hero-intro { font-size: 0.77rem; }
  .hero-caption { display: none; }
  .stat-grid--career .stat:last-child { grid-column: 1 / -1; border-top: 1px solid var(--line); }
  .stat-grid--career .stat:nth-child(-n+2) .stat__value { font-size: 2.8rem; }
  .archive-path { padding: 1.5rem; }
}

@media (max-width: 34rem) {
  .page { padding-top: 2.2rem; }
  h2 { margin-top: 3rem; }
  .stat { padding: 1.15rem 1rem 1.25rem; }
  .stat__label { letter-spacing: 0.08em; }
  table { font-size: 0.86rem; }
  thead th, tbody th, tbody td { padding-left: 0.55rem; padding-right: 0.55rem; }
}
