@charset "UTF-8";
/* wp_imerod_2k27_theme: global stylesheet, ported from the validated prototype (themes/2027_proto). */

@font-face {
  font-family: "Open Sans";
  src: url("../fonts/open-sans-latin-wght.woff2") format("woff2");
  font-weight: 300 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Open Sans";
  src: url("../fonts/open-sans-latin-ext-wght.woff2") format("woff2");
  font-weight: 300 800;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Metric-matched fallback keeps CLS at 0 while Open Sans loads. */
@font-face {
  font-family: "Open Sans Fallback";
  src: local("Arial");
  size-adjust: 105.4%;
  ascent-override: 101%;
  descent-override: 27.7%;
  line-gap-override: 0%;
}

@layer reset, tokens, base, layout, components, pages, utilities;

/* ---------- reset ---------- */
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  * { margin: 0; }
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  img, svg, video, iframe { display: block; max-inline-size: 100%; }
  img { block-size: auto; }
  input, button, textarea, select { font: inherit; color: inherit; }
  ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
  button { cursor: pointer; }
  [hidden] { display: none !important; }
}

/* ---------- tokens ---------- */
@layer tokens {
  :root {
    color-scheme: light dark;

    --primary: #175e80;
    --primary-dark: color-mix(in oklch, #175e80, black 25%);
    --primary-tint: color-mix(in oklch, #175e80, white 62%);

    --page: light-dark(#fff, #141d25);
    --surface: light-dark(#fff, #1b2630);
    --surface-2: light-dark(#f2f5f7, #202d38);
    --text: light-dark(#222b33, #e8eef2);
    --text-muted: light-dark(#55616c, #b3c0cb);
    --border: light-dark(#e0e6ea, #2f3f4e);
    --link: light-dark(var(--primary), var(--primary-tint));
    --link-hover: light-dark(var(--primary-dark), #fff);
    --focus: light-dark(var(--primary), var(--primary-tint));
    --chip-bg: light-dark(#e6eff4, color-mix(in oklch, var(--primary) 32%, #141d25));
    --chip-text: light-dark(var(--primary), var(--primary-tint));
    --score-ring: #f08a00;
    --score-track: light-dark(#e3e7ea, #3a4b5c);
    --bg-veil: light-dark(rgb(0 0 0 / 0), rgb(10 15 20 / 0.88));
    --success: light-dark(#1d7a46, #6fd69b);
    --danger: light-dark(#b42318, #ff8a80);

    --ps-platinum: light-dark(#5f86ad, #a9c6e2);
    --ps-gold: light-dark(#b8901c, #e6c24f);
    --ps-silver: light-dark(#87929b, #c6cfd6);
    --ps-bronze: light-dark(#9a5f35, #d49c6e);

    --radius: 3px;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.05), 0 4px 14px -8px rgb(0 0 0 / 0.18);

    --font: "Open Sans", "Open Sans Fallback", system-ui, sans-serif;
    --step--1: 0.75rem;
    --step-0: 0.9375rem;
    --step-1: clamp(1rem, 0.97rem + 0.12vw, 1.0625rem);
    --step-2: clamp(1.25rem, 1.2rem + 0.2vw, 1.375rem);
    --step-3: clamp(1.375rem, 1.25rem + 0.5vw, 1.75rem);
    --step-4: clamp(1.625rem, 1.35rem + 1.2vw, 2.25rem);

    --page-max: 78rem;
    --container: 74rem;
    --gutter: clamp(1rem, 3vw, 1.5rem);
    --navbar-h: 3.5rem;
  }

  :root[data-theme="light"] { color-scheme: light; }
  :root[data-theme="dark"] { color-scheme: dark; }
}

/* ---------- base ---------- */
@layer base {
  html { scroll-padding-top: calc(var(--navbar-h) + 1rem); }

  body {
    font-family: var(--font);
    font-size: var(--step-0);
    line-height: 1.6;
    color: var(--text);
    background: light-dark(#ececec, #0d1318);
  }

  /* The site background (PS 30th anniversary pattern) only where it is visible: wide screens. */
  @media (width >= 80rem) {
    body {
      background:
        linear-gradient(var(--bg-veil), var(--bg-veil)),
        url("../img/bg-ps-30th-anniversary-full-bw.jpg") center top / cover fixed,
        #ececec;
    }
  }

  h1, h2, h3, h4 {
    line-height: 1.25;
    font-weight: 700;
    text-wrap: balance;
  }

  p, li { text-wrap: pretty; }

  a {
    color: var(--link);
    text-underline-offset: 0.2em;
    text-decoration-thickness: from-font;
  }

  @media (hover: hover) {
    a:hover { color: var(--link-hover); }
  }

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

  ::selection { background: color-mix(in oklch, var(--primary) 30%, transparent); }

  .icon {
    inline-size: 1.25em;
    block-size: 1.25em;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .icon-brand {
    inline-size: 1rem;
    block-size: 1rem;
    flex: none;
    fill: currentColor;
  }

  @media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
  }
}

/* ---------- layout ---------- */
@layer layout {
  .icon-button {
    display: inline-grid;
    place-items: center;
    inline-size: 2.75rem;
    block-size: 2.75rem;
    border: 0;
    border-radius: 2px;
    background: transparent;
    color: inherit;
  }

  .container {
    inline-size: min(100% - 2 * var(--gutter), var(--container));
    margin-inline: auto;
  }

  /* White "page" over the site background, like imerod.fr. Not `.page`: WordPress puts that class on <body> and
     <article> of every page. */
  .site-page {
    inline-size: min(100%, var(--page-max));
    margin-inline: auto;
    background: var(--page);
    box-shadow: 0 0 0 1px rgb(0 0 0 / 0.04), 0 0 30px rgb(0 0 0 / 0.1);
  }

  .site-banner {
    padding: 0.6rem var(--gutter);
    background: var(--primary);
    color: #fff;
    font-size: 0.875rem;
    text-align: center;
    --link: #fff;
    --link-hover: #fff;
    --focus: #fff;
  }

  .site-banner a { font-weight: 700; }

  .topbar {
    background: light-dark(#f5f5f5, #10181f);
    border-block-end: 1px solid var(--border);
    color: var(--topbar-text);
    font-size: 0.75rem;
    --topbar-text: light-dark(#444, #c9d4dd);
  }

  .topbar .icon {
    inline-size: 1rem;
    block-size: 1rem;
  }

  .topbar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.25rem 1rem;
    padding-block: 0.25rem;
  }

  .topbar a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--topbar-text);
    font-weight: 600;
    text-decoration: none;
  }

  .topbar-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.25rem;
  }

  .topbar-right {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
  }

  @media (width < 40rem) {
    .topbar-links {
      flex-basis: 100%;
      justify-content: center;
      padding-block-end: 0.25rem;
      border-block-end: 1px solid var(--border);
    }
  }

  @media (hover: hover) {
    .topbar-links a:hover, .topbar-login:hover { color: var(--link); }
  }

  .branding {
    background: var(--page);
    color: var(--text);
  }

  .branding-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
    padding-block: 1.25rem;
  }

  .logo img { inline-size: clamp(13rem, 50vw, 367px); }

  /* The logo is dark grey on an opaque white box: dark mode inverts it (hues kept) and blends the box away.
     A transparent white logo file would be better. */
  :root[data-theme="dark"] .logo img { filter: invert(1) hue-rotate(180deg); mix-blend-mode: lighten; }

  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .logo img { filter: invert(1) hue-rotate(180deg); mix-blend-mode: lighten; }
  }

  .tagline {
    margin-block-start: 0.35rem;
    color: light-dark(#2d424b, #c9d4dd);
    font-size: 0.9rem;
    font-weight: 700;
  }

  .search-form input {
    flex: 1;
    min-inline-size: 0;
    block-size: 2.75rem;
    padding-inline: 0.9rem;
    border: 1px solid light-dark(#b9c5ce, #5d7083);
    border-inline-end: 0;
    border-radius: 2px 0 0 2px;
    background: var(--surface);
    color: var(--text);
  }

  .search-form input::placeholder { color: var(--text-muted); }

  .search-form button {
    inline-size: 2.75rem;
    block-size: 2.75rem;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 0 2px 2px 0;
    background: var(--primary);
    color: #fff;
  }

  /* Mobile: search is a popover (Esc and light dismiss for free). */
  .search-form[popover] {
    inset: 0 0 auto;
    inline-size: 100%;
    margin: 0;
    padding: 1rem var(--gutter);
    border: 0;
    border-block-end: 3px solid var(--primary);
    background: var(--page);
    box-shadow: 0 8px 24px rgb(0 0 0 / 0.2);
  }

  .search-form[popover]:popover-open { display: flex; }

  /* Navigation bar: the only sticky part. */
  .navbar {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--primary);
    color: #fff;
    box-shadow: 0 2px 8px rgb(0 0 0 / 0.15);
    view-transition-name: navbar;
    --focus: #fff;
  }

  .navbar-inner {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    min-block-size: var(--navbar-h);
  }

  .navbar-title {
    color: #fff;
    font-size: 1.375rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    text-decoration: none;
  }

  .navbar-actions {
    display: flex;
    margin-inline-start: auto;
  }

  /* Phones: menu on the left, blog name centred, actions on the right (the open panels are out of flow). */
  @media (width < 64rem) {
    .navbar-inner {
      display: grid;
      grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr);
    }
  }

  @media (hover: hover) {
    .navbar .icon-button:hover { background: var(--primary-dark); }
  }

  .nav[popover] {
    inset: 0 auto 0 0;
    inline-size: min(20rem, 88%);
    block-size: 100dvh;
    max-block-size: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: var(--page);
    color: var(--text);
    box-shadow: 8px 0 24px rgb(0 0 0 / 0.25);
    overscroll-behavior: contain;
  }

  .nav[popover]::backdrop { background: rgb(8 12 16 / 0.55); }

  /* Sticky so the close button stays on screen while the panel scrolls. */
  .nav-head {
    position: sticky;
    inset-block-start: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-block-size: var(--navbar-h);
    padding-inline: 1.25rem 0.5rem;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    --focus: #fff;
  }

  /* Phone menu: name and tagline on one line, rows at the 44 px touch minimum. */
  .nav-list a {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    align-content: center;
    gap: 0 0.4rem;
    min-block-size: 2.75rem;
    padding: 0.3rem 1.25rem;
    border-block-end: 1px solid var(--border);
    color: var(--text);
    line-height: 1.35;
    text-decoration: none;
  }

  .nav-name {
    color: var(--link);
    font-weight: 700;
  }

  .nav-tagline {
    color: var(--text-muted);
    font-size: var(--step--1);
  }

  .nav-tagline::before { content: "\2013\00A0" / ""; }

  .nav-list a[aria-current] { box-shadow: inset 4px 0 0 var(--link); }

  @media (prefers-reduced-motion: no-preference) and (width < 64rem) {
    .nav[popover] {
      translate: -100% 0;
      transition: translate 0.25s ease, overlay 0.25s allow-discrete, display 0.25s allow-discrete;
    }

    .nav[popover]:popover-open { translate: 0 0; }

    @starting-style {
      .nav[popover]:popover-open { translate: -100% 0; }
    }
  }

  @media (width >= 64rem) {
    .menu-toggle, .search-toggle, .nav-head, .navbar-title, .nav-follow { display: none; }

    .search-form[popover] {
      display: flex;
      position: static;
      inline-size: min(24rem, 100%);
      margin: 0;
      padding: 0;
      border: 0;
      background: none;
      box-shadow: none;
    }

    /* Stretched to the bar height so the hover and current backgrounds fill it. */
    .nav[popover] {
      display: flex;
      position: static;
      flex: 1;
      align-self: stretch;
      inline-size: auto;
      block-size: auto;
      background: none;
      color: inherit;
      box-shadow: none;
      overflow: visible;
      --focus: #fff;
    }

    .nav-list {
      display: flex;
      flex: 1;
    }

    .nav-list li {
      display: grid;
      flex: 1;
    }

    .nav-list a {
      display: grid;
      justify-items: center;
      align-content: center;
      padding: 0.45rem 0.5rem;
      border: 0;
      color: #fff;
      text-align: center;
    }

    .nav-name {
      color: #fff;
      font-size: 0.875rem;
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }

    .nav-tagline {
      color: rgb(255 255 255 / 0.82);
      font-size: 0.75rem;
    }

    .nav-tagline::before { content: none; }

    .nav-list a[aria-current] {
      background: var(--primary-dark);
      box-shadow: none;
    }
  }

  @media (width >= 64rem) and (hover: hover) {
    .nav-list a:hover { background: var(--primary-dark); }
  }

  /* Vertical spacing comes from the section titles, so both columns start at the same height. */
  .with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    column-gap: 2.5rem;
  }

  @media (width >= 64rem) {
    .with-sidebar {
      grid-template-columns: minmax(0, 1fr) 19rem;
      align-items: start;
    }
  }

  .site-footer {
    margin-block-start: 3rem;
    border-block-start: 4px solid var(--primary);
    background: var(--surface-2);
    color: var(--text);
    font-size: 0.9rem;
  }

  .footer-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
    padding-block: 2.5rem;
  }

  .footer-title {
    margin-block-end: 0.9rem;
    padding-block-end: 0.45rem;
    border-block-end: 1px solid var(--border);
    color: var(--link);
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }

  .footer-about { display: grid; gap: 1rem; }

  .footer-links { display: grid; gap: 0.35rem; }

  .footer-comments { display: grid; gap: 0.8rem; }

  .footer-comments a {
    display: grid;
    color: var(--text-muted);
    text-decoration: none;
    line-height: 1.4;
  }

  .footer-comments strong { color: var(--text); }

  @media (hover: hover) {
    .footer-comments a:hover { color: var(--link); }
  }

  .archives-years {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(3.5rem, 1fr));
    gap: 0.3rem;
  }

  .archives-years a {
    display: grid;
    place-items: center;
    min-block-size: 2.5rem;
    border: 1px solid var(--border);
    border-radius: 2px;
    background: var(--surface);
    font-weight: 600;
    text-decoration: none;
  }

  @media (hover: hover) {
    .archives-years a:hover { background: var(--primary); color: #fff; }
  }

  .footer-bottom {
    background: var(--primary);
    color: #fff;
    font-size: var(--step--1);
    --link: #fff;
    --link-hover: #fff;
    --focus: #fff;
  }

  .footer-bottom-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    padding-block: 0.75rem;
  }

  .footer-bottom a {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
  }
}

/* ---------- components ---------- */
@layer components {

  .button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-block-size: 2.75rem;
    padding: 0.5rem 1.25rem;
    border: 0;
    border-radius: 2px;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
  }

  @media (hover: hover) {
    .button:hover { background: var(--primary-dark); }
  }

  .social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
  }

  .social a {
    display: grid;
    place-items: center;
    inline-size: 2.5rem;
    block-size: 2.5rem;
    border-radius: 2px;
    background: var(--social-bg, light-dark(#e9e9e9, #26343f));
    color: var(--social-fg, var(--text));
  }

  .site-footer .social {
    --social-bg: var(--surface);
    --social-fg: var(--text);
  }

  .topbar .social a {
    inline-size: 1.75rem;
    block-size: 1.75rem;
  }

  .topbar .icon-brand {
    inline-size: 0.8rem;
    block-size: 0.8rem;
  }

  @media (hover: hover) {
    .social a:hover { background: var(--primary); color: #fff; }
  }

  /* Section title: the 2021 blue label, sitting on a blue line. */
  .section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    margin-block: 2.5rem 1.25rem;
    border-block-end: 2px solid var(--primary);
  }

  /* Inside a sidebar, boxes after the first sit a bit closer. */
  .sidebar section + section > .section-head { margin-block-start: 1.75rem; }

  .section-title {
    padding: 0.4rem 0.85rem;
    background: var(--primary);
    color: #fff;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }

  .section-more {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding-block-end: 0.35rem;
    font-size: var(--step--1);
    font-weight: 700;
    text-decoration: none;
  }

  .chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  .chip {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.55rem;
    border-radius: 2px;
    background: var(--chip-bg);
    color: var(--chip-text);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
  }

  @media (hover: hover) {
    a.chip:hover { background: var(--primary); color: #fff; }
  }

  /* Score ring in rating orange; the value is always written as text. */
  .score {
    --size: 2.75rem;
    inline-size: var(--size);
    block-size: var(--size);
    display: grid;
    place-content: center;
    border-radius: 50%;
    background:
      radial-gradient(closest-side, var(--surface) 76%, transparent 78% 100%),
      conic-gradient(var(--tier, var(--score-ring)) calc(var(--score) / 20 * 100%), var(--score-track) 0);
    box-shadow: 0 2px 6px rgb(0 0 0 / 0.25);
    color: var(--text);
    line-height: 1;
    text-align: center;
  }

  .score-value {
    font-size: calc(var(--size) * 0.36);
    font-weight: 800;
  }

  .score-max {
    font-size: calc(var(--size) * 0.2);
    color: var(--text-muted);
  }

  .score--xl { --size: 5.5rem; }

  /* Tier set by PHP from the score: low 0-9, mid 10-14, good 15-17, top 18-20 (Metacritic colours). */
  .tier-low { --tier: #d32f2f; --tier-text: #fff; }
  .tier-mid { --tier: #f2c200; --tier-text: #111; }
  .tier-good, .tier-top { --tier: #2ea44f; --tier-text: #111; }

  /* Score set by PHP as a class (no style attribute, CSP-ready). */
  .score-0 { --score: 0; } .score-1 { --score: 1; } .score-2 { --score: 2; } .score-3 { --score: 3; }
  .score-4 { --score: 4; } .score-5 { --score: 5; } .score-6 { --score: 6; } .score-7 { --score: 7; }
  .score-8 { --score: 8; } .score-9 { --score: 9; } .score-10 { --score: 10; } .score-11 { --score: 11; }
  .score-12 { --score: 12; } .score-13 { --score: 13; } .score-14 { --score: 14; } .score-15 { --score: 15; }
  .score-16 { --score: 16; } .score-17 { --score: 17; } .score-18 { --score: 18; } .score-19 { --score: 19; }
  .score-20 { --score: 20; }

  .rating {
    display: grid;
    justify-items: center;
    gap: 0.3rem;
  }

  /* Big ratings (latest test, verdict): word as a label under the ring. */
  .score-word {
    padding: 0.15rem 0.6rem;
    border-radius: 2px;
    background: var(--tier);
    color: var(--tier-text);
    font-size: 0.8125rem;
    font-weight: 800;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-shadow: none;
  }

  /* Cards: word next to the category chip, after a dot in the tier colour. */
  .card-kicker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.6rem;
  }

  .tier-label {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--text);
    font-size: 0.75rem;
    font-weight: 700;
  }

  .tier-label::before {
    content: "";
    inline-size: 0.55rem;
    block-size: 0.55rem;
    border-radius: 50%;
    background: var(--tier);
  }

  /* PlayStation trophy grade: the word is always written, the cup colour only helps. */
  .ps-grade-platinum { --trophy-color: var(--ps-platinum); }
  .ps-grade-gold { --trophy-color: var(--ps-gold); }
  .ps-grade-silver { --trophy-color: var(--ps-silver); }
  .ps-grade-bronze { --trophy-color: var(--ps-bronze); }
  /* Hidden trophy: a black cup, like on the console (thin light outline in dark mode). */
  .ps-grade-hidden { --trophy-color: #000; }

  .ps-grade-hidden .ps-grade-icon { stroke: light-dark(transparent, #8a96a0); }

  .ps-grade-icon {
    inline-size: 1.1em;
    block-size: 1.1em;
    flex: none;
    color: var(--trophy-color, currentColor);
    fill: currentColor;
  }

  .ps-grade {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.1rem 0.55rem;
    border-radius: 2px;
    background: var(--surface-2);
    color: var(--text);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.6;
  }

  /* Post content has no SVG (trophy guides of migration/06): the cup and the back arrow are drawn by CSS. */
  .ps-grade:not(:has(> svg))::before {
    content: "";
    inline-size: 1.1em;
    block-size: 1.1em;
    flex: none;
    background: var(--trophy-color, currentColor);
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 3h10v6a5 5 0 0 1-10 0zM11 13.5h2V18h-2zM7 19h10v2H7z'/%3E%3Cpath d='M7 5H4v2a3 3 0 0 0 3 3M17 5h3v2a3 3 0 0 1-3 3' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat;
  }

  .ps-grade-hidden:not(:has(> svg))::before { background: light-dark(#000, #8a96a0); }

  .trophy-back a:not(:has(svg))::before {
    content: "";
    inline-size: 1.1em;
    block-size: 1.1em;
    background: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 15l6-6 6 6' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  }

  /* Card: one link stretched over the card; chips and score stay above it. */
  .card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
  }

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

  .card-media {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--surface-2);
  }

  .card-media img {
    inline-size: 100%;
    block-size: 100%;
    object-fit: cover;
  }

  .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.75rem 0.9rem 0.85rem;
  }

  .card-body > .chip { align-self: flex-start; }

  .card-title {
    font-size: 1.0625rem;
    line-height: 1.3;
    text-wrap: pretty;
  }

  .card-link {
    color: var(--text);
    text-decoration: none;
  }

  .card-link:focus-visible { outline: none; }

  .card-link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
  }

  .card-excerpt {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.5;
  }

  .card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.75rem;
    margin-block-start: auto;
    color: var(--text-muted);
    font-size: var(--step--1);
  }

  .card-meta > span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
  }

  .card > .rating {
    position: absolute;
    inset: 0.5rem 0.5rem auto auto;
    z-index: 2;
  }

  @media (hover: hover) {
    .card:hover .card-link { color: var(--link); }
  }

  @media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .card-media img { transition: scale 0.4s ease; }
    .card:hover .card-media img { scale: 1.05; }
  }

  .mini {
    position: relative;
    display: grid;
    grid-template-columns: 7.5rem 1fr;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem;
    border-block-end: 1px solid var(--border);
  }

  .mini img {
    inline-size: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 2px;
  }

  .mini-title { font-size: 1rem; }

  .mini .card-meta { margin-block-start: 0.25rem; }

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

  @media (hover: hover) {
    .mini:hover { background: var(--surface-2); }
    .mini:hover .card-link { color: var(--link); }
  }

  .platinums { display: grid; gap: 0.8rem; }

  .platinum {
    display: grid;
    grid-template-columns: 3rem minmax(0, 1fr);
    align-items: center;
    gap: 0.7rem;
  }

  /* Text stays in the 2nd column when the icon is missing. */
  .platinum > div { grid-column: 2; }

  .platinum img {
    inline-size: 3rem;
    block-size: 3rem;
    object-fit: cover;
    border-radius: 2px;
    background: var(--surface-2);
  }

  /* One line only; ellipsis is a fallback for very long game names. */
  .platinum-name {
    overflow: hidden;
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .platinum-meta {
    color: var(--text-muted);
    font-size: var(--step--1);
  }

  .partners { display: grid; gap: 0.75rem; }

  .partner { display: block; }

  .partner img {
    inline-size: 100%;
    max-inline-size: 17rem;
  }

  /* White Red Art Games logo: black plate, same look as the VR Optician image. */
  .partner--dark {
    padding: 1.1rem 1.25rem;
    background: #000;
  }

  @media (hover: hover) {
    .partner:hover { opacity: 0.85; }
  }

  /* One row of small tiles: icon + follower count. */
  .follow-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.3rem;
  }

  .follow-list a {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 0.25rem;
    min-block-size: 3.25rem;
    padding: 0.4rem 0.1rem;
    border-radius: 2px;
    background: var(--surface-2);
    color: var(--text);
    font-size: 0.8125rem;
    font-weight: 700;
    text-decoration: none;
  }

  @media (hover: hover) {
    .follow-list a:hover { background: var(--primary); color: #fff; }
  }

  /* Phone menu panel: the "Suivez-moi" tiles under the categories. */
  .nav-follow { padding: 0 1.25rem 1.5rem; }

  .nav-follow .section-head { margin-block: 1.5rem 0.75rem; }

  .popular { counter-reset: popular; }

  .popular li {
    display: grid;
    grid-template-columns: 1.25rem 1fr;
    align-items: first baseline;
    gap: 0.4rem;
    padding-block: 0.35rem;
    border-block-end: 1px solid var(--border);
    font-size: 0.8125rem;
    line-height: 1.35;
    counter-increment: popular;
  }

  /* Same font size and line height as the title, aligned on its first line's baseline. */
  .popular li::before {
    content: counter(popular);
    color: var(--link);
    font-weight: 800;
  }

  .popular a {
    color: var(--text);
    font-weight: 700;
    text-decoration: none;
  }

  .popular .card-meta {
    margin-block-start: 0.05rem;
    font-size: 0.75rem;
  }

  @media (hover: hover) {
    .popular a:hover { color: var(--link); text-decoration: underline; }
  }

  .pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.3rem;
    margin-block-start: 2rem;
  }

  .pagination a,
  .pagination span {
    display: inline-grid;
    place-items: center;
    min-inline-size: 2.75rem;
    min-block-size: 2.75rem;
    padding-inline: 0.75rem;
    border-radius: 2px;
    font-weight: 700;
    text-decoration: none;
  }

  .pagination a {
    border: 1px solid var(--border);
    background: var(--surface);
  }

  .pagination [aria-current] {
    background: var(--primary);
    color: #fff;
  }

  .pagination .prev,
  .pagination .next {
    display: inline-flex;
    gap: 0.25rem;
  }

  .pagination .dots {
    min-inline-size: 1.5rem;
    padding-inline: 0;
    color: var(--text-muted);
  }

  @media (hover: hover) {
    .pagination a:hover { border-color: var(--link); }
  }

  /* News ticker: real links in the HTML; JS only adds the scrolling copy. */
  .ticker {
    display: flex;
    align-items: stretch;
    margin-block-start: 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    font-size: 0.9rem;
  }

  .ticker-label {
    flex: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding-inline: 0.85rem;
    background: var(--primary);
    color: #fff;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }

  .ticker-viewport {
    flex: 1;
    display: flex;
    min-inline-size: 0;
    overflow-x: auto;
  }

  .ticker-track {
    flex: none;
    display: flex;
    gap: 2.5rem;
    padding-inline: 1rem 2.5rem;
    white-space: nowrap;
  }

  .ticker-track li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-block-size: 2.75rem;
  }

  .ticker-track time {
    color: var(--text-muted);
    font-size: var(--step--1);
    font-weight: 700;
  }

  .ticker-track a {
    color: var(--text);
    font-weight: 600;
    text-decoration: none;
  }

  @media (hover: hover) {
    .ticker-track a:hover { color: var(--link); text-decoration: underline; }
  }

  .ticker-toggle {
    flex: none;
    border-inline-start: 1px solid var(--border);
    color: var(--text-muted);
  }

  .ticker-toggle[aria-pressed="true"] .icon-pause,
  .ticker-toggle[aria-pressed="false"] .icon-play { display: none; }

  .ticker.is-animated .ticker-viewport {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 1.5rem, #000 calc(100% - 1.5rem), transparent);
  }

  .ticker.is-animated .ticker-track { animation: ticker 45s linear infinite; }

  /* Hover / focus pause only over the links: on the button they would cancel a click on « play ». */
  :is(.ticker.is-paused, .ticker-viewport:is(:hover, :focus-within)) .ticker-track { animation-play-state: paused; }

  @keyframes ticker {
    to { translate: -100% 0; }
  }

  .rail {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    padding-block-end: 0.5rem;
  }

  .rail > ul {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: min(78%, 16rem);
    gap: 1rem;
  }

  .rail li { scroll-snap-align: start; display: grid; }

  @media (width >= 64rem) {
    .rail { overflow: visible; }

    .rail > ul {
      grid-auto-flow: row;
      grid-template-columns: repeat(4, 1fr);
    }
  }

  .breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.5rem;
    font-size: var(--step--1);
    color: var(--text-muted);
  }

  .breadcrumb li + li::before {
    content: "\203A" / "";
    margin-inline-end: 0.5rem;
  }

  .breadcrumb a { color: var(--text-muted); }

  .form-field { display: grid; align-content: start; gap: 0.35rem; }

  .form-field label { font-weight: 700; }

  .form-field input,
  .form-field textarea {
    inline-size: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid light-dark(#7d8b97, #5d7083);
    border-radius: 2px;
    background: var(--surface);
  }

  /* Text fields: the grey border turns into a 2 px focus border instead of a ring around it. */
  :is(input:not([type="checkbox"], [type="radio"]), textarea):focus-visible {
    outline: none;
    border-color: var(--focus);
    box-shadow: inset 0 0 0 1px var(--focus);
  }

  .form-hint {
    color: var(--text-muted);
    font-size: var(--step--1);
  }

  .icon-fill { fill: currentColor; stroke: none; }

  /* Privacy facades: nothing comes from YouTube, X, TikTok or Facebook before a click. */
  .video { display: grid; gap: 0.4rem; }

  .video-facade,
  .video iframe {
    inline-size: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 2px;
  }

  .video-facade {
    position: relative;
    display: grid;
    overflow: hidden;
    background: #000;
    color: #fff;
    text-decoration: none;
  }

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

  .video-facade img {
    inline-size: 100%;
    block-size: 100%;
    object-fit: cover;
  }

  .video-title {
    align-self: start;
    padding: 0.75rem 1rem 2.5rem;
    background: linear-gradient(rgb(0 0 0 / 0.75), transparent);
    font-weight: 700;
    line-height: 1.35;
  }

  .video-play {
    place-self: center;
    display: grid;
    place-items: center;
    inline-size: 4.5rem;
    block-size: 3.25rem;
    border-radius: var(--radius);
    background: rgb(0 0 0 / 0.72);
  }

  .video-play .icon {
    inline-size: 1.75rem;
    block-size: 1.75rem;
  }

  .video figcaption {
    display: flex;
    align-items: center;
    gap: 0.4rem;
  }

  @media (hover: hover) {
    .video-facade:hover .video-play { background: var(--primary); }
  }

  .social-embed {
    display: grid;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border: 1px solid var(--border);
    border-inline-start: 4px solid var(--primary);
    border-radius: var(--radius);
    background: var(--surface-2);
  }

  .social-embed-card { display: grid; gap: 0.5rem; }

  .social-embed-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    line-height: 1.3;
  }

  .social-embed-head a {
    color: var(--text);
    text-decoration: none;
  }

  .social-embed-head span {
    color: var(--text-muted);
    font-weight: 400;
  }

  .social-embed blockquote {
    display: grid;
    gap: 0.5rem;
    line-height: 1.55;
  }

  .social-embed-meta { font-size: var(--step--1); }

  .social-embed-consent {
    display: grid;
    justify-items: start;
    gap: 0.35rem;
    padding-block-start: 0.75rem;
    border-block-start: 1px solid var(--border);
  }

  .social-embed.is-loaded {
    justify-items: center;
    padding: 0;
    border: 0;
    background: none;
  }

  .social-embed-frame {
    inline-size: min(100%, 325px);
    aspect-ratio: 9 / 16;
    border: 0;
  }

  /* The Facebook plugin cannot resize its frame without the Facebook SDK: fixed height. */
  .social-embed-frame-facebook {
    inline-size: min(100%, 500px);
    aspect-ratio: auto;
    block-size: 36rem;
  }

  /* Back to top: shown by JS after one screen of scrolling, aligned with the right edge of the page block. */
  .to-top {
    position: fixed;
    inset-block-end: 1rem;
    inset-inline-end: max(1rem, calc((100% - var(--page-max)) / 2 + 1rem));
    z-index: 15;
    display: grid;
    place-items: center;
    inline-size: 3rem;
    block-size: 3rem;
    border-radius: var(--radius);
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 14px rgb(0 0 0 / 0.25);
    visibility: hidden;
    opacity: 0;
    translate: 0 0.5rem;
  }

  .to-top .icon {
    inline-size: 1.5rem;
    block-size: 1.5rem;
    stroke-width: 2.5;
  }

  .to-top.is-visible {
    visibility: visible;
    opacity: 1;
    translate: 0 0;
  }

  @media (hover: hover) {
    .to-top:hover { background: var(--primary-dark); }
  }

  @media (prefers-reduced-motion: no-preference) {
    .to-top { transition: opacity 0.2s, translate 0.2s, visibility 0.2s; }
  }

  @media print {
    .to-top { display: none; }
  }
}

/* ---------- pages ---------- */
@layer pages {
  .container.home { padding-block-end: 1rem; }

  .grid-3 {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
  }

  @media (width >= 64rem) {
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
  }

  /* Next to a sidebar, 3 columns only when there is room for them. */
  @media (64rem <= width < 80rem) {
    .with-sidebar .grid-3 { grid-template-columns: repeat(2, 1fr); }
  }

  .more-list { display: grid; }

  /* "L'actualité en chiffre". */
  .number {
    display: grid;
    gap: 0.75rem 2rem;
    align-items: center;
    margin-block-start: 2.5rem;
    padding: 1.25rem 1.5rem;
    border-inline-start: 6px solid var(--primary);
    border-radius: var(--radius);
    background: var(--chip-bg);
  }

  @media (width >= 48rem) {
    .number { grid-template-columns: auto 1fr; }
    .number-title { grid-column: 1 / -1; }
  }

  .number-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--link);
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }

  .number-figure {
    color: var(--link);
    font-size: clamp(1.75rem, 1.5rem + 1vw, 2.25rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
  }

  .number-text { font-size: 0.95rem; }

  /* Latest test: lightly blurred cover, dark veil only behind the text. */
  .spotlight {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin-block-start: 3rem;
    padding-block: 2.5rem;
    background: #1b2630;
    color: #fff;
    color-scheme: dark;
    --link: #fff;
    --link-hover: #fff;
    --focus: #fff;
    --surface: #1b2630;
    --text: #fff;
    --text-muted: #d5dee5;
    --score-track: rgb(255 255 255 / 0.25);
  }

  .spotlight-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    inline-size: 100%;
    block-size: 100%;
    max-inline-size: none;
    object-fit: cover;
    filter: blur(3px);
    scale: 1.04;
  }

  .spotlight::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgb(12 20 27 / 0.2), rgb(12 20 27 / 0.6) 45%, rgb(12 20 27 / 0.72));
  }

  .spotlight-inner > div { text-shadow: 0 1px 3px rgb(0 0 0 / 0.6); }

  .spotlight + .site-footer { margin-block-start: 0; }

  .spotlight-inner {
    display: grid;
    gap: 2rem;
    align-items: center;
  }

  @media (width >= 48rem) {
    .spotlight-inner { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  }

  .spotlight-cover {
    border-radius: var(--radius);
    box-shadow: 0 16px 32px -16px rgb(0 0 0 / 0.7);
  }

  .spotlight-label {
    color: var(--primary-tint);
    font-size: var(--step--1);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
  }

  .spotlight h2 {
    margin-block: 0.4rem 0.9rem;
    font-size: var(--step-3);
  }

  .spotlight h2 a { text-decoration: none; }

  .spotlight-facts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem 2rem;
    margin-block-start: 1.5rem;
  }

  .spotlight-facts dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.25rem 1rem;
    font-size: 0.95rem;
  }

  .spotlight-facts dt { color: var(--text-muted); }

  .spotlight-facts dd { font-weight: 700; }

  /* Single post: reading progress, full width on top, same colour as the selected menu item. */
  .progress {
    position: fixed;
    inset: 0 0 auto;
    z-index: 20;
    block-size: 4px;
    background: var(--primary-dark);
    transform-origin: 0 50%;
    scale: 0 1;
    pointer-events: none;
  }

  @supports (animation-timeline: scroll()) {
    .progress {
      animation: reading-progress linear both;
      animation-timeline: scroll(root block);
    }
  }

  @supports not (animation-timeline: scroll()) {
    .progress { display: none; }
  }

  @keyframes reading-progress {
    to { scale: 1 1; }
  }

  .entry-header {
    display: grid;
    gap: 1rem;
    padding-block: 2rem 1.5rem;
  }

  /* Lines fill the whole width (owner, 2026-11-17): no balance / pretty. */
  .entry-title {
    font-size: var(--step-4);
    text-wrap: wrap;
  }

  .entry-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1.25rem;
    color: var(--text-muted);
    font-size: 0.95rem;
  }

  .entry-meta > * {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
  }

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

  .facts li {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.7rem;
    border: 1px solid var(--border);
    border-radius: 2px;
    background: var(--surface);
    font-size: var(--step--1);
  }

  .entry-hero img {
    inline-size: 100%;
    aspect-ratio: 12 / 5;
    object-fit: cover;
    border-radius: var(--radius);
  }

  .entry-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
    margin-block-start: 2.5rem;
  }

  /* Row 1: content + verdict next to the summary. Its rail ends with the verdict, so the sticky summary stops there
     (browsers limit a sticky grid item to the whole grid, not to its row). Row 2: the rest + related posts. */
  @media (width >= 64rem) {
    .entry-layout {
      grid-template-columns: minmax(0, 1fr) 18rem;
      column-gap: 3rem;
    }

    .entry-layout > .toc-rail {
      grid-column: 2;
      grid-row: 1;
    }

    .toc[popover] {
      display: block;
      position: sticky;
      inset: auto;
      top: calc(var(--navbar-h) + 1.5rem);
      inline-size: auto;
      block-size: auto;
      margin: 0;
      padding: 0;
      border: 0;
      background: none;
      color: inherit;
      overflow: visible;
    }

    .entry-layout > .entry-main {
      grid-column: 1;
      grid-row: 1;
    }

    .entry-layout > .entry-more {
      grid-column: 1;
      grid-row: 2;
    }

    .entry-layout > .related {
      grid-column: 2;
      grid-row: 2;
      align-self: start;
    }

    /* No summary: « À lire aussi » + side boxes fill the right column from the top. */
    .entry-layout:has(> .entry-side) { grid-template-rows: auto 1fr; }

    .entry-layout > .entry-side {
      grid-column: 2;
      grid-row: 1 / span 2;
      align-self: start;
    }
  }

  .entry-side > :first-child > .section-head:first-child { margin-block-start: 0; }

  /* Mobile: the summary is a side panel opened from the right, like the main menu from the left. */
  @media (width < 64rem) {
    .entry-layout > .toc-rail { display: contents; }

    .toc[popover] {
      inset: 0 0 0 auto;
      inline-size: min(22rem, 88%);
      block-size: 100dvh;
      max-block-size: none;
      margin: 0;
      padding: 0;
      border: 0;
      background: var(--page);
      color: var(--text);
      box-shadow: -8px 0 24px rgb(0 0 0 / 0.25);
      overflow-y: auto;
      overscroll-behavior: contain;
    }

    .toc[popover]::backdrop { background: rgb(8 12 16 / 0.55); }

    .toc-box > summary { display: none; }

    .toc-box { padding-block-start: 0.6rem; }
  }

  @media (prefers-reduced-motion: no-preference) and (width < 64rem) {
    .toc[popover] {
      translate: 100% 0;
      transition: translate 0.25s ease, overlay 0.25s allow-discrete, display 0.25s allow-discrete;
    }

    .toc[popover]:popover-open { translate: 0 0; }

    @starting-style {
      .toc[popover]:popover-open { translate: 100% 0; }
    }
  }

  @media (width >= 64rem) {
    .toc-box {
      border: 1px solid var(--border);
      border-radius: var(--radius);
      background: var(--surface);
    }
  }

  .toc-box > summary {
    padding: 0.9rem 1.1rem;
    color: var(--link);
    font-size: var(--step--1);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
  }

  .toc ol {
    display: grid;
    gap: 0.1rem;
    padding: 0 0.6rem 0.9rem;
    counter-reset: toc;
  }

  .toc a {
    display: grid;
    grid-template-columns: 1.75rem 1fr;
    padding: 0.4rem 0.5rem;
    border-radius: 2px;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.35;
    text-decoration: none;
    counter-increment: toc;
  }

  .toc a::before {
    content: counter(toc, decimal-leading-zero);
    color: var(--link);
    font-weight: 700;
  }

  .toc a[aria-current] {
    background: var(--chip-bg);
    color: var(--text);
    font-weight: 600;
  }

  /* Trophy guide: under "Guide des trophées", one foldable group per game / extension; a dot in the grade colour. */
  .toc ol ol { padding: 0 0 0.4rem 0.6rem; }

  .toc-sub > summary {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.4rem 0.5rem 0.4rem 2.25rem;
    border-radius: 2px;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    list-style: none;
    cursor: pointer;
  }

  .toc-sub > summary::-webkit-details-marker { display: none; }

  .toc-sub > summary::before {
    content: "\203A" / "";
    margin-inline-start: -1rem;
    color: var(--link);
    font-size: 1rem;
    line-height: 1;
    transition: rotate 0.2s;
  }

  .toc-sub[open] > summary::before { rotate: 90deg; }

  .toc-sub > summary span:first-child { flex: 1; }

  .toc-count { font-weight: 600; }

  @media (hover: hover) {
    .toc-sub > summary:hover { background: var(--surface-2); }
  }

  .toc-trophies a {
    grid-template-columns: 1.1rem 1fr;
    padding-block: 0.3rem;
    font-size: 0.85rem;
  }

  .toc-trophies a::before {
    content: "";
    inline-size: 0.55rem;
    block-size: 0.55rem;
    margin-block-start: 0.4em;
    border-radius: 50%;
    background: var(--trophy-color);
  }

  /* The list is longer than the screen: it scrolls inside the sticky rail. */
  @media (width >= 64rem) {
    .toc-scroll {
      max-block-size: calc(100dvh - var(--navbar-h) - 7rem);
      overflow-y: auto;
      overscroll-behavior: contain;
      scrollbar-width: thin;
    }
  }

  .prose {
    font-size: 1rem;
    line-height: 1.65;
  }

  .prose > * + * { margin-block-start: 1.15em; }

  .prose > :first-child { margin-block-start: 0; }

  .prose .lead {
    font-size: var(--step-1);
    line-height: 1.6;
  }

  .prose h2 {
    margin-block-start: 2.25em;
    font-size: var(--step-2);
    text-wrap: wrap;
  }

  .prose figure img { border-radius: 2px; }

  .prose figure:not(.wp-caption) img { inline-size: 100%; }

  /* Centred pictures of old posts keep their width / height attributes; the zoom link fits the picture. */
  .prose :is(img.aligncenter, a.zoom:has(> img.aligncenter), .wp-caption.aligncenter) { margin-inline: auto; }

  .prose a.zoom:has(> img.aligncenter) { inline-size: fit-content; }

  /* Small pictures inside the text, glued to the word before them (migration/21). */
  .prose img.inline-icon {
    display: inline;
    vertical-align: middle;
  }

  .prose .with-icon { white-space: nowrap; }

  /* [caption]: as wide as its picture (no inline width, inc/setup.php), the text wraps under it. */
  .prose .wp-caption {
    inline-size: fit-content;
    max-inline-size: 100%;
  }

  .prose .wp-caption figcaption { contain: inline-size; }

  .prose figcaption {
    margin-block-start: 0.4rem;
    color: var(--text-muted);
    font-size: var(--step--1);
  }

  .prose .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
    gap: 0.75rem;
  }

  /* [gallery] of old posts (inc/content.php): its column count, 16:9 thumbnails, the lightbox shows the whole picture. */
  .prose .gallery figure { margin: 0; }

  .prose [class*="gallery-columns-"] img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
  }

  @media (width < 40rem) {
    .prose :is(.gallery-columns-3, .gallery-columns-4) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }

  @media (width >= 40rem) {
    .prose .gallery-columns-1 { grid-template-columns: minmax(0, 1fr); }
    .prose .gallery-columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .prose .gallery-columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .prose .gallery-columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  }

  /* Links to the other guides of a game (migration/24): the whole card is the link. */
  .guide-links {
    display: grid;
    gap: 1rem;
  }

  .guide-link {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 8rem) minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
  }

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

  .guide-link-media { background: var(--surface-2); }

  .guide-link-media img {
    inline-size: 100%;
    block-size: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
  }

  .guide-link-body {
    display: grid;
    align-content: center;
    gap: 0.35rem;
    padding: 0.75rem 1rem;
  }

  .guide-link-title {
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.3;
  }

  .guide-link-kicker {
    display: block;
    margin-block-end: 0.2rem;
    color: var(--link);
    font-size: var(--step--1);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .guide-link-text {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.5;
  }

  @media (hover: hover) {
    .guide-link:hover .card-link { color: var(--link); }
  }

  @media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .guide-link-media img { transition: scale 0.4s ease; }
    .guide-link:hover .guide-link-media img { scale: 1.05; }
  }

  @media (width >= 40rem) {
    .guide-link { grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); }
    .guide-link-body { padding: 1rem 1.25rem; }

    /* 2 or 3 guides: cards side by side, picture on top. */
    .guide-links:has(> :nth-child(2)) { grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
    .guide-links:has(> :nth-child(2)) .guide-link { grid-template-columns: minmax(0, 1fr); align-content: start; }
  }

  /* Font Awesome icons of old posts (the font is not loaded): same drawing style as the theme icons. */
  :is(.fa, .fa-solid, .fa-regular)[class*="fa-"] {
    display: inline-block;
    inline-size: 1.1em;
    block-size: 1.1em;
    flex: none;
    vertical-align: -0.15em;
    background: currentColor;
    mask: var(--fa-icon) center / contain no-repeat;
  }

  .fa-shopping-cart { --fa-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4h2l2.4 10.2a1 1 0 0 0 1 .8h8.9a1 1 0 0 0 1-.8L20 8H6.2'/%3E%3Ccircle cx='9' cy='19.5' r='1.5'/%3E%3Ccircle cx='17' cy='19.5' r='1.5'/%3E%3C/svg%3E"); }
  .fa-star { --fa-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.9 6.1 6.6.8-4.9 4.5 1.3 6.6L12 17.2l-5.9 3.3 1.3-6.6-4.9-4.5 6.6-.8z'/%3E%3C/svg%3E"); }
  .fa-regular.fa-star { --fa-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M12 2.5l2.9 6.1 6.6.8-4.9 4.5 1.3 6.6L12 17.2l-5.9 3.3 1.3-6.6-4.9-4.5 6.6-.8z'/%3E%3C/svg%3E"); }
  .fa-map-o { --fa-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M9 4 3 6v14l6-2 6 2 6-2V4l-6 2zM9 4v14M15 6v14'/%3E%3C/svg%3E"); }
  .fa-check { --fa-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E"); }
  .fa-trophy { --fa-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 3h10v6a5 5 0 0 1-10 0zM11 13.5h2V18h-2zM7 19h10v2H7z'/%3E%3Cpath d='M7 5H4v2a3 3 0 0 0 3 3M17 5h3v2a3 3 0 0 1-3 3' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E"); }
  .fa-warning { --fa-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.3 3.9 1.8 18a2 2 0 0 0 1.7 3h17a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0zM12 9v4M12 17h.01'/%3E%3C/svg%3E"); }
  .fa-file, .fa-file-text { --fa-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M6 2h8l4 4v16H6zM14 2v4h4M9 13h6M9 17h6'/%3E%3C/svg%3E"); }
  .fa-music { --fa-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M9 18V5l11-2v13'/%3E%3Ccircle cx='6' cy='18' r='3'/%3E%3Ccircle cx='17' cy='16' r='3'/%3E%3C/svg%3E"); }
  .fa-refresh { --fa-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 11a8 8 0 1 0-2.3 5.7M20 4v7h-7'/%3E%3C/svg%3E"); }
  .fa-pencil { --fa-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M4 20h4L19 9l-4-4L4 16zM13 7l4 4'/%3E%3C/svg%3E"); }
  .fa-plus { --fa-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E"); }
  .fa-eye { --fa-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E"); }
  .fa-eye-slash { --fa-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12zM3 3l18 18'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E"); }
  .fa-info-circle { --fa-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v6M12 7h.01'/%3E%3C/svg%3E"); }

  .prose .infoquote {
    padding: 1rem 1.25rem;
    border-inline-start: 4px solid var(--link);
    background: var(--chip-bg);
  }

  /* Plain blockquote of old posts (QTE second opinion, press texts); its last <cite> names the author. */
  .prose > blockquote:not(.tiktok-embed) {
    position: relative;
    padding: 1rem 1.25rem 1rem 3.25rem;
    border-inline-start: 4px solid var(--link);
    border-radius: var(--radius);
    background: var(--surface-2);
    font-style: italic;
    line-height: 1.6;
  }

  .prose > blockquote:not(.tiktok-embed)::before {
    content: "";
    position: absolute;
    inset-block-start: 1.1rem;
    inset-inline-start: 1.1rem;
    inline-size: 1.4rem;
    block-size: 1.4rem;
    background: var(--link);
    rotate: 180deg;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 5h6v7c0 4-2 7-6 7v-3c2 0 3-1.5 3-4H4zM14 5h6v7c0 4-2 7-6 7v-3c2 0 3-1.5 3-4h-3z'/%3E%3C/svg%3E") center / contain no-repeat;
  }

  .prose > blockquote > * + * { margin-block-start: 0.75em; }

  .prose > blockquote cite {
    display: block;
    margin-block-start: 0.75rem;
    font-style: normal;
    font-weight: 700;
  }

  .prose > blockquote cite::before { content: "\2014\00A0" / ""; }

  /* wpautop puts a <br> before a <cite> written on its own line. */
  .prose > blockquote br:has(+ cite) { display: none; }

  .prose h3 {
    margin-block-start: 1.75em;
    font-size: var(--step-1);
  }

  /* Controller buttons: Kenney Input Prompts (CC0) in the sprite, the name stays as hidden text. */
  .prose kbd.ps-button {
    display: inline-flex;
    vertical-align: -0.4em;
    min-inline-size: 0;
    padding: 0;
    border: 0;
    background: none;
  }

  .ps-button-icon {
    inline-size: 1.65em;
    block-size: 1.65em;
    flex: none;
    fill: var(--text);
    color: var(--link);
  }

  .prose .ps-buttons-demo {
    display: grid;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-inline-start: 4px solid var(--link);
    background: var(--chip-bg);
  }

  .ps-buttons-demo-title {
    color: var(--link);
    font-size: var(--step--1);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }

  .ps-buttons-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
    gap: 0.4rem 1rem;
    font-size: 0.9rem;
  }

  .ps-buttons-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .prose kbd {
    display: inline-block;
    min-inline-size: 1.8em;
    padding-inline: 0.35em;
    border: 1px solid var(--border);
    border-block-end-width: 2px;
    border-radius: 3px;
    background: var(--surface-2);
    font: 700 0.8em/1.5 var(--font);
    text-align: center;
  }

  /* Key / value facts (release, difficulty…): a definition list, two columns when there is room. */
  .prose .key-facts {
    display: grid;
    gap: 0.15rem 1.5rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    background: var(--surface-2);
    line-height: 1.5;
  }

  .key-facts dt { font-weight: 700; }

  .key-facts dd + dt { margin-block-start: 0.6rem; }

  @media (width >= 40rem) {
    .prose .key-facts { grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); }
    .key-facts dd + dt { margin-block-start: 0; }
    .key-facts :is(dt, dd):not(:nth-last-child(-n + 2)) {
      padding-block-end: 0.45rem;
      border-block-end: 1px solid var(--border);
    }
  }

  .ps-grade-count {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
  }

  .ps-grade-count > :first-child { margin-inline-end: 0.15rem; }

  .ps-grade-count .ps-grade { font-size: 0.875rem; }

  .affiliate {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 0.75rem;
  }

  /* Shop buttons of posts (inc/content.php): same look as the listing shops (light blue like the tags), shop logo. */
  .prose .shop-button {
    /* Keeps the two-line Amazon label at the 2.75rem height of the other buttons. */
    padding-block: 0.25rem;
    background: var(--chip-bg);
    color: var(--chip-text);
  }

  .shop-label {
    display: grid;
    line-height: 1.2;
  }

  .shop-note {
    color: var(--text-muted);
    font-size: var(--step--1);
    font-weight: 400;
  }

  @media (hover: hover) {
    .prose .shop-button:hover {
      background: var(--primary);
      color: #fff;
    }

    .shop-button:hover .shop-note { color: inherit; }
  }

  /* Product listings (DualSense…): photo, name, note, shops; subgrid keeps each part on one line across a row. */
  .prose .pad-count {
    display: inline-block;
    margin-inline-start: 0.3rem;
    padding: 0.1rem 0.5rem;
    border-radius: 2px;
    background: var(--chip-bg);
    color: var(--chip-text);
    font-size: 0.75em;
    vertical-align: 0.15em;
  }

  .toc a:has(.toc-count) { grid-template-columns: 1.75rem 1fr auto; }

  .toc a .toc-count {
    padding-inline-start: 0.5rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-variant-numeric: tabular-nums;
  }

  /* Same row gap as the cards' subgrid; card rows spaced by a margin. */
  .prose .pad-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 11rem), 1fr));
    gap: 0.5rem 1rem;
    margin-block-start: 1.5rem;
  }

  @media (width < 40rem) {
    .prose .pad-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      column-gap: 0.75rem;
    }
  }

  /* Three rows: name (with its remark number), photo (year on it), shops. */
  .pad {
    display: grid;
    grid-row: span 3;
    grid-template-rows: subgrid;
    margin-block-end: 1.5rem;
  }

  /* Post content: the photo link sits in div.pad-media (wpautop would wrap a bare link in a <p>). */
  .pad-media { grid-area: 2 / 1; }

  /* Product photos are shot on white: the plate stays white in dark mode too. */
  .pad-photo {
    grid-area: 2 / 1;
    display: block;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
  }

  .pad-photo img {
    inline-size: 100%;
    aspect-ratio: 1;
    object-fit: contain;
  }

  .pad-year {
    grid-area: 2 / 1;
    align-self: start;
    justify-self: start;
    z-index: 1;
    margin: 0.4rem;
    padding-inline: 0.4rem;
    border-radius: 2px;
    background: var(--primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.25rem;
    pointer-events: none;
  }

  .prose .pad-name {
    grid-row: 1;
    margin: 0;
    font-size: 1rem;
    line-height: 1.3;
    text-wrap: pretty;
  }

  /* Footnote number like the live page; line-height 0 keeps the name rows the same height. */
  .pad-ref {
    font-size: 0.75em;
    line-height: 0;
  }

  .pad-ref a {
    padding-inline: 0.1rem;
    text-decoration: none;
  }

  /* Both shops always on one line, as one segmented bar. */
  .pad-shops {
    grid-row: 3;
    align-self: start;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    border-radius: var(--radius);
    background: var(--chip-bg);
  }

  .pad-shops li + li { border-inline-start: 1px solid var(--surface); }

  .pad-shops a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-block-size: 2.75rem;
    padding-inline: 0.35rem;
    color: var(--chip-text);
    font-size: 0.8125rem;
    font-weight: 700;
    text-decoration: none;
  }

  .pad-shop-label {
    display: grid;
    line-height: 1.2;
  }

  .pad-shop-note {
    color: var(--text-muted);
    font-size: 0.6875rem;
    font-weight: 400;
  }

  /* 320 px phones: logos only, the shop name stays for screen readers (a container query breaks the subgrid rows). */
  @media (width < 22.5rem) {
    .pad-shop-name, .pad-shop-note {
      position: absolute;
      inline-size: 1px;
      block-size: 1px;
      overflow: hidden;
      clip-path: inset(50%);
      white-space: nowrap;
    }
  }

  @media (hover: hover) {
    .pad-shops a:hover { background: var(--primary); color: #fff; }
    .pad-shops a:hover .pad-shop-note { color: inherit; }
    .pad-ref a:hover { text-decoration: underline; }
    .pad-photo:hover { border-color: var(--link); }
  }

  @media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .pad-photo img { transition: scale 0.3s ease; }
    .pad-photo:hover img { scale: 1.05; }
  }

  .prose .pad-notes {
    display: grid;
    gap: 0.25rem;
    font-size: 0.9375rem;
    line-height: 1.6;
  }

  .pad-notes > li {
    display: grid;
    grid-template-columns: 2rem minmax(0, 1fr);
    padding: 0.35rem 0.5rem;
    border-radius: 2px;
  }

  /* Reached from a card note: the remark is highlighted. */
  .pad-notes > li:target { background: var(--chip-bg); }

  .pad-note-num {
    color: var(--link);
    font-weight: 700;
  }

  .pad-notes ul {
    margin-block-start: 0.35rem;
    padding-inline-start: 1.1rem;
  }

  .prose .pad-notes p { margin: 0; }

  /* Wide tables scroll in their own focusable box, never the page. */
  .table-scroll { overflow-x: auto; }

  .prose table {
    inline-size: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    line-height: 1.45;
  }

  .prose caption {
    padding-block-end: 0.4rem;
    font-weight: 700;
    text-align: start;
  }

  .prose th,
  .prose td {
    padding: 0.45rem 0.75rem;
    border-block-end: 1px solid var(--border);
    text-align: start;
    vertical-align: top;
  }

  .prose thead th {
    background: var(--primary);
    color: #fff;
    vertical-align: bottom;
  }

  .prose tbody tr:nth-child(even) { background: var(--surface-2); }

  /* One trophy = a section: icon, name (bold), official description, grade; then the guide text. */
  .prose .trophy { margin-block-start: 3.5rem; }

  .trophy > * + * { margin-block-start: 1.15em; }

  .trophy-head {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .trophy-icon {
    flex: none;
    inline-size: 4rem;
    block-size: 4rem;
    border-radius: var(--radius);
    background: var(--surface-2);
  }

  @media (width >= 40rem) {
    .trophy-icon {
      inline-size: 5rem;
      block-size: 5rem;
    }
  }

  .trophy-id {
    display: grid;
    gap: 0.3rem;
    min-inline-size: 0;
  }

  /* Name at the text size, description a bit smaller: secondary text. */
  .trophy-desc {
    color: var(--text-muted);
    font-size: var(--step-0);
    font-style: italic;
    line-height: 1.45;
  }

  .trophy-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
  }

  .trophy-back a {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: var(--step--1);
    font-weight: 700;
    text-decoration: none;
  }

  /* Lore dossier (Kingdom Hearts): episodes in story order, compilations tree, one head block per episode. */
  /* Story timeline: one column, a line through numbered markers, one card per episode. */
  .prose .saga {
    display: grid;
    gap: 0.6rem;
    counter-reset: saga;
  }

  .saga-item {
    position: relative;
    display: grid;
    grid-template-columns: 7rem minmax(0, 1fr);
    align-items: center;
    gap: 0.85rem;
    margin-inline-start: 2.75rem;
    padding: 0.4rem 0.75rem 0.4rem 0.4rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    line-height: 1.35;
    counter-increment: saga;
  }

  .saga-item::before {
    content: counter(saga) / "";
    position: absolute;
    inset-block-start: 50%;
    inset-inline-start: calc(-2.75rem - 1px);
    z-index: 1;
    display: grid;
    place-items: center;
    inline-size: 2rem;
    block-size: 2rem;
    border-radius: var(--radius);
    background: var(--primary);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 800;
    translate: 0 -50%;
  }

  /* Each item draws the line from the previous gap to its bottom; first and last stop at their marker. */
  .saga-item::after {
    content: "";
    position: absolute;
    inset-block: calc(-0.6rem - 1px) -1px;
    inset-inline-start: calc(-1.75rem - 2px);
    border-inline-start: 2px solid var(--border);
  }

  .saga-item:first-child::after { inset-block-start: 50%; }

  .saga-item:last-child::after { inset-block-end: 50%; }

  .saga-item:has(.card-link:focus-visible) {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
  }

  @media (hover: hover) {
    .saga-item:hover { border-color: var(--link); }
    .saga-item:hover .card-link { color: var(--link); }
  }

  /* The logos are drawn on white: the plate stays white in dark mode too. */
  .saga-logos {
    display: flex;
    gap: 1px;
    overflow: hidden;
    border-radius: 2px;
    background: #fff;
  }

  .saga-logos img {
    flex: 1;
    min-inline-size: 0;
    aspect-ratio: 10 / 7;
    object-fit: contain;
  }

  .saga-names {
    display: grid;
    gap: 0.15rem;
    font-size: 0.9rem;
  }

  /* Story time, written like the release dates: on its own line above the name. */
  .saga-when {
    color: var(--link);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  .saga-names > :nth-child(2) { font-weight: 700; }

  .saga-names > :nth-child(n + 3) {
    color: var(--text-muted);
    font-size: 0.8125rem;
  }

  .prose .tree,
  .prose .tree ul {
    padding: 0;
    list-style: none;
  }

  .prose .tree ul {
    margin-inline-start: 0.45rem;
    padding-inline-start: 1.25rem;
    border-inline-start: 2px solid var(--border);
    font-weight: 400;
  }

  .tree li {
    position: relative;
    padding-block: 0.15rem;
    line-height: 1.5;
  }

  .tree ul > li::before {
    content: "";
    position: absolute;
    inset-block-start: 0.9em;
    inset-inline-start: -1.25rem;
    inline-size: 0.9rem;
    border-block-start: 2px solid var(--border);
  }

  .tree > li,
  .tree-branch { font-weight: 700; }

  .tree > li > .tree-branch { color: var(--link); }

  .prose .episode-head {
    display: grid;
    gap: 1rem 1.5rem;
    padding: 1rem;
    border-block-start: 4px solid var(--primary);
    border-radius: var(--radius);
    background: var(--surface-2);
  }

  @media (width >= 40rem) {
    .prose .episode-head {
      grid-template-columns: 15rem minmax(0, 1fr);
      align-items: start;
    }
  }

  .episode-logo {
    inline-size: 100%;
    max-inline-size: 20rem;
    border-radius: 2px;
    background: #fff;
  }

  .prose .episode-head h3 {
    margin-block: 0 0.6rem;
    color: var(--link);
    font-size: var(--step--1);
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }

  /* Release dates: a small vertical timeline, the date on its own line (some are long). */
  .releases {
    display: grid;
    font-size: 0.9rem;
    line-height: 1.45;
  }

  .releases li {
    position: relative;
    padding: 0 0 0.6rem 1.1rem;
    border-inline-start: 2px solid var(--border);
  }

  .releases li:last-child {
    padding-block-end: 0;
    border-color: transparent;
  }

  .releases li::before {
    content: "";
    position: absolute;
    inset-block-start: 0.35em;
    inset-inline-start: -0.4rem;
    inline-size: 0.7rem;
    block-size: 0.7rem;
    border-radius: 2px;
    background: var(--primary);
  }

  .release-date {
    display: block;
    font-weight: 700;
  }

  .prose h4 {
    margin-block-start: 1.5em;
    font-size: 1.0625rem;
  }

  /* Small story pictures (480 px sources) float next to the text on wide screens. */
  @media (width >= 40rem) {
    .prose .inset {
      float: inline-end;
      inline-size: 18rem;
      margin: 0.35rem 0 1rem 1.5rem;
    }

    .prose :is(h2, h3) { clear: both; }
  }

  .prose .quote {
    padding: 1rem 1.25rem;
    border-inline-start: 4px solid var(--link);
    background: var(--chip-bg);
  }

  .quote blockquote {
    font-size: var(--step-1);
    font-style: italic;
    line-height: 1.6;
  }

  .prose .quote figcaption {
    margin-block-start: 0.5rem;
    font-weight: 700;
  }

  .quote figcaption::before { content: "\2014\00A0" / ""; }

  .prose .spoiler-note {
    position: relative;
    padding: 0.9rem 1.25rem 0.9rem 3.25rem;
    border-inline-start: 4px solid var(--primary);
    border-radius: var(--radius);
    background: var(--chip-bg);
    line-height: 1.5;
  }

  /* No SVG in post content: the alert icon is drawn here. */
  .spoiler-note::before {
    content: "";
    position: absolute;
    inset-block-start: 1rem;
    inset-inline-start: 1.25rem;
    inline-size: 1.25rem;
    block-size: 1.25rem;
    background: var(--link);
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.3 3.9 1.8 18a2 2 0 0 0 1.7 3h17a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0zM12 9v4M12 17h.01'/%3E%3C/svg%3E") center / contain no-repeat;
  }

  .spoiler-note strong { color: var(--link); }

  .verdict {
    display: grid;
    gap: 1.5rem;
    margin-block-start: 3rem;
    padding: clamp(1.25rem, 4vw, 2rem);
    border: 1px solid var(--border);
    border-block-start: 4px solid var(--primary);
    border-radius: var(--radius);
    background: var(--surface);
  }

  .verdict-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem;
  }

  .verdict-head h2 { font-size: var(--step-2); }

  .verdict-head p { color: var(--text-muted); }

  @media (width < 40rem) {
    .verdict-head {
      flex-direction: column;
      text-align: center;
    }
  }

  .verdict-lists {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  }

  .verdict-lists h3 {
    margin-block-end: 0.6rem;
    font-size: var(--step-0);
  }

  .verdict-lists ul {
    display: grid;
    gap: 0.5rem;
    padding: 0;
    list-style: none;
  }

  .verdict-lists li {
    display: grid;
    grid-template-columns: 1.5rem 1fr;
    line-height: 1.45;
  }

  .pros li::before {
    content: "+" / "";
    color: var(--success);
    font-weight: 800;
  }

  .cons li::before {
    content: "\2212" / "";
    color: var(--danger);
    font-weight: 800;
  }

  .entry-footer {
    display: grid;
    gap: 2.5rem;
  }

  .entry-footer h2 {
    margin-block-end: 0.6rem;
    color: var(--text-muted);
    font-size: var(--step--1);
    text-transform: uppercase;
    letter-spacing: 0.1em;
  }

  .share-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  .share-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-block-size: 2.75rem;
    padding-inline: 0.9rem;
    border-radius: 2px;
    background: var(--surface-2);
    color: var(--text);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
  }

  @media (hover: hover) {
    .share-links a:hover { background: var(--primary); color: #fff; }
  }

  .post-nav ul {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
    margin-block-start: 3rem;
  }

  .post-nav a {
    display: grid;
    gap: 0.25rem;
    block-size: 100%;
    padding: 1rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    text-decoration: none;
  }

  .post-nav .next a { text-align: end; }

  .post-nav span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--link);
    font-size: var(--step--1);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }

  .post-nav .next span { justify-content: flex-end; }

  @media (hover: hover) {
    .post-nav a:hover { border-color: var(--link); }
  }

  .comments {
    display: grid;
    gap: 1.25rem;
    margin-block-start: 3rem;
  }

  .comments h2 { font-size: var(--step-2); }

  .comment-list { display: grid; gap: 1rem; }

  .comment {
    display: grid;
    gap: 0.4rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    background: var(--surface-2);
  }

  .comment-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.75rem;
    color: var(--text-muted);
    font-size: var(--step--1);
  }

  .comment-meta strong {
    color: var(--text);
    font-size: var(--step-0);
  }

  .comment-reply {
    font-size: var(--step--1);
    font-weight: 700;
  }

  /* Replies sit inside their parent comment, on the page colour. */
  .comment-children { margin-block-start: 0.5rem; }

  .comment .comment { background: var(--surface); }

  .comment .comment .comment { background: var(--surface-2); }

  .comment .comment .comment .comment { background: var(--surface); }

  /* Phones: 4 reply levels would leave a narrow column; nested replies get a thinner frame. */
  @media (width < 40rem) {
    .comment .comment { padding-inline: 0.75rem; }
  }

  .comment-badge {
    align-self: center;
    padding: 0.05rem 0.4rem;
    border-radius: 2px;
    background: var(--primary);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }

  .comment-respond { display: grid; gap: 1rem; }

  .comment-reply-title small {
    margin-inline-start: 0.75rem;
    font-size: var(--step--1);
  }

  .comment-form { display: grid; gap: 1rem; }

  @media (width >= 40rem) {
    .comment-form .row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1rem;
    }
  }

  .related { display: grid; gap: 0.5rem; }

  .related .mini-title {
    font-size: 0.875rem;
    line-height: 1.3;
  }

  .related > h2 {
    color: var(--link);
    font-size: var(--step--1);
    text-transform: uppercase;
    letter-spacing: 0.1em;
  }

  /* Pages (Qui suis-je, Contact): content + right column, both starting with a title at the same height. */
  .page-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem 3rem;
    margin-block-start: 2.5rem;
  }

  @media (width >= 64rem) {
    .page-layout {
      grid-template-columns: minmax(0, 1fr) 18rem;
      align-items: start;
    }
  }

  .page-layout > * > :first-child,
  .page-layout > * > :first-child > .section-head:first-child { margin-block-start: 0; }

  .entry-header + .page-layout { margin-block-start: 1rem; }

  .topbar-links a[aria-current] { color: var(--link); }

  .footer-links a[aria-current] {
    color: var(--text);
    font-weight: 700;
    text-decoration: none;
  }

  @media (hover: hover) {
    :is(.cta-box, .contact-actions) .button:hover {
      background: var(--primary-dark);
      color: #fff;
    }
  }

  /* "Qui suis-je ?": who writes the blog, and the blog in figures. */
  .profile {
    display: grid;
    gap: 1.25rem 2.5rem;
    align-items: center;
    padding: clamp(1.25rem, 4vw, 1.75rem);
    border-block-start: 4px solid var(--primary);
    border-radius: var(--radius);
    background: var(--surface-2);
  }

  @media (width >= 56rem) {
    .profile { grid-template-columns: auto minmax(0, 1fr); }
  }

  .profile-id {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .avatar {
    flex: none;
    inline-size: 6rem;
    block-size: 6rem;
    border-radius: var(--radius);
    background: var(--primary);
    object-fit: cover;
  }

  .profile-name {
    font-size: var(--step-2);
    font-weight: 800;
    line-height: 1.2;
  }

  .profile-role {
    color: var(--text-muted);
    font-size: 0.95rem;
  }

  .profile-stats {
    display: grid;
    gap: 0.5rem;
  }

  .stats {
    display: grid;
    gap: 0.5rem;
  }

  /* Phones: one row per figure (figure, then label). Wider: tiles, figure on top. The source order (label,
     figure) stays for screen readers. */
  .stats div {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    align-items: baseline;
    gap: 0.6rem;
    padding: 0.6rem 0.9rem;
    border-radius: 2px;
    background: var(--surface);
  }

  @media (width >= 40rem) {
    .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }

    .stats div {
      flex-direction: column-reverse;
      align-items: stretch;
      gap: 0;
      padding-block: 0.7rem;
    }
  }

  .stats dd {
    color: var(--link);
    font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem);
    font-weight: 800;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
  }

  .stats dt {
    color: var(--text-muted);
    font-size: var(--step--1);
    font-weight: 600;
  }

  .cta-box {
    display: grid;
    justify-items: start;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border-inline-start: 4px solid var(--primary);
    background: var(--chip-bg);
    font-size: 0.875rem;
    line-height: 1.5;
  }

  /* Contact: the address first and big; the copy button only exists with JS. */
  .contact-card {
    display: grid;
    gap: 1rem;
    padding: clamp(1.25rem, 4vw, 2rem);
    border-inline-start: 6px solid var(--primary);
    border-radius: var(--radius);
    background: var(--chip-bg);
  }

  .contact-mail {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: var(--step-2);
    font-weight: 800;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  .contact-mail .icon { color: var(--link); }

  .contact-mail a { text-decoration: none; }

  @media (hover: hover) {
    .contact-mail a:hover { text-decoration: underline; }
  }

  .contact-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
  }

  .contact-actions .contact-copy {
    background: var(--surface);
    color: var(--link);
    box-shadow: inset 0 0 0 2px var(--link);
  }

  .contact-copied {
    color: var(--success);
    font-size: var(--step--1);
    font-weight: 700;
  }

  .reasons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
    gap: 1rem;
  }

  .reason {
    display: grid;
    grid-template-columns: 2.5rem minmax(0, 1fr);
    align-content: start;
    gap: 0.2rem 0.9rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
  }

  .reason-icon {
    grid-row: span 2;
    display: grid;
    place-items: center;
    inline-size: 2.5rem;
    block-size: 2.5rem;
    border-radius: 2px;
    background: var(--chip-bg);
    color: var(--link);
  }

  .reason h3 { font-size: 1rem; }

  .reason p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
  }

  /* Archives (category, tag, date) and search results share one header. */
  .archive-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    padding-block-start: 2rem;
  }

  .archive-heading {
    display: grid;
    justify-items: start;
    gap: 0.5rem;
  }

  .archive-kind {
    padding: 0.2rem 0.6rem;
    border-radius: 2px;
    background: var(--primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }

  .archive-title {
    font-size: var(--step-4);
    text-wrap: pretty;
  }

  .archive-desc { color: var(--text-muted); }

  .term-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  /* Phones: one scrolling row instead of four rows of links above the posts. */
  @media (width < 48rem) {
    .term-links {
      flex-wrap: nowrap;
      overflow-x: auto;
      overscroll-behavior-x: contain;
      scrollbar-width: thin;
      padding-block-end: 0.4rem;
    }

    .term-links li { flex: none; }
  }

  .term-links a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-block-size: 2.75rem;
    padding-inline: 0.85rem;
    border: 1px solid var(--border);
    border-radius: 2px;
    background: var(--surface);
    color: var(--link);
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
  }

  .term-count {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
  }

  @media (hover: hover) {
    .term-links a:hover {
      border-color: var(--primary);
      background: var(--primary);
      color: #fff;
    }

    .term-links a:hover .term-count { color: rgb(255 255 255 / 0.85); }
  }

  .section-info {
    padding-block-end: 0.35rem;
    color: var(--text-muted);
    font-size: var(--step--1);
    font-weight: 600;
  }

  /* Two columns: 8 (category), 16 (search) and 18 (tag, date) posts per page fill every row. */
  .archive-grid {
    display: grid;
    gap: 1.25rem;
  }

  @media (width >= 36rem) {
    .archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }

  .archive-grid .card-title { font-size: var(--step-1); }

  .search-again {
    display: grid;
    gap: 0.35rem;
    max-inline-size: 36rem;
  }

  .search-again-label {
    font-size: 0.875rem;
    font-weight: 700;
  }

  .search-again-row { display: flex; }

  .result-list { display: grid; }

  .result {
    position: relative;
    display: grid;
    grid-template-columns: 7rem minmax(0, 1fr);
    align-items: start;
    gap: 0.9rem;
    padding-block: 1rem;
    border-block-end: 1px solid var(--border);
  }

  .result:first-child { padding-block-start: 0; }

  @media (width >= 40rem) {
    .result {
      grid-template-columns: 14rem minmax(0, 1fr);
      gap: 1.25rem;
    }
  }

  .result-media {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 2px;
    background: var(--surface-2);
  }

  .result-media img {
    inline-size: 100%;
    block-size: 100%;
    object-fit: cover;
  }

  .result-body {
    display: grid;
    gap: 0.35rem;
  }

  .result-title {
    font-size: var(--step-1);
    line-height: 1.3;
    text-wrap: pretty;
  }

  .result-excerpt {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.5;
  }

  /* The searched words, in the main colour (no yellow marker). */
  .result mark {
    padding-inline: 0.1em;
    border-radius: 2px;
    background: var(--chip-bg);
    color: inherit;
    font-weight: 700;
  }

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

  @media (hover: hover) {
    .result:hover .card-link { color: var(--link); }
  }

  @media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .result-media img { transition: scale 0.4s ease; }
    .result:hover .result-media img { scale: 1.05; }
  }
}

/* ---------- features of 2026-11-03 (reading helpers, tests, guides, ranking, hub, 404) ---------- */

/* The score is animatable: the ring fills while it scrolls into view. */
@property --score {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}

@keyframes score-fill {
  from { --score: 0; }
}

@layer pages {
  @media (prefers-reduced-motion: no-preference) {
    @supports (animation-timeline: view()) {
      .score {
        animation: score-fill linear both;
        animation-timeline: view();
        animation-range: entry 10% cover 35%;
      }
    }
  }

  /* Theme panel, under its button when anchor positioning exists (else centred, the popover default). */
  .display-panel {
    inline-size: min(16rem, calc(100vw - 2rem));
    max-block-size: calc(100dvh - 5rem);
    overflow-y: auto;
    padding: 1rem;
    border: 1px solid var(--border);
    border-block-start: 4px solid var(--primary);
    border-radius: var(--radius);
    background: var(--page);
    color: var(--text);
    box-shadow: 0 12px 32px rgb(0 0 0 / 0.25);
    --focus: light-dark(var(--primary), var(--primary-tint));
  }

  @supports (position-anchor: --a) {
    .theme-toggle { anchor-name: --theme-toggle; }

    .display-panel {
      position-anchor: --theme-toggle;
      inset: auto;
      top: anchor(bottom);
      right: anchor(right);
      margin: 0.4rem 0 0;
    }
  }

  .theme-choice {
    display: grid;
    gap: 0.2rem;
    padding: 0;
    border: 0;
  }

  .theme-choice legend {
    margin-block-end: 0.5rem;
    padding: 0;
    color: var(--link);
    font-size: var(--step--1);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }

  .theme-choice label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-block-size: 2.75rem;
    padding-inline: 0.6rem;
    border-radius: 2px;
    font-weight: 600;
    cursor: pointer;
  }

  .theme-choice label:has(:checked) { background: var(--chip-bg); }

  .theme-choice input {
    inline-size: 1.1rem;
    block-size: 1.1rem;
    margin: 0;
    accent-color: var(--primary);
  }

  .theme-choice .icon { color: var(--link); }

  @media (hover: hover) {
    .theme-choice label:hover { background: var(--surface-2); }
  }

  .display-panel .form-hint { margin-block-start: 0.6rem; }

  .display-panel fieldset + fieldset,
  .display-panel .form-hint + fieldset { margin-block-start: 1rem; }

  /* Text size and line spacing: segmented buttons, the radio stays for keyboard and screen readers. */
  .display-row {
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: 0;
  }

  .display-row label {
    position: relative;
    justify-content: center;
    padding-inline: 0.4rem;
    border: 1px solid var(--border);
    border-radius: 0;
  }

  .display-row label + label { border-inline-start: 0; }

  .display-row label:first-of-type { border-radius: 2px 0 0 2px; }

  .display-row label:last-of-type { border-radius: 0 2px 2px 0; }

  .display-row input {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    opacity: 0;
  }

  .theme-choice.display-row label:has(:checked) {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
  }

  .display-row label:has(:focus-visible) {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
    z-index: 1;
  }

  .display-row .size-small { font-size: 0.8125rem; }

  .display-row .size-large { font-size: 1.1875rem; }

  /* The whole site scales (sizes are in rem). */
  :root[data-text="small"] { font-size: 90%; }

  :root[data-text="large"] { font-size: 115%; }

  :root[data-leading="large"] body { line-height: 1.9; }

  :root[data-leading="large"] .prose { line-height: 2.05; }

  /* Section link after each content heading: shown on hover / focus with a mouse, always on touch screens. */
  .heading-link {
    position: relative;
    display: inline-grid;
    place-items: center;
    inline-size: 1.75rem;
    block-size: 1.75rem;
    vertical-align: middle;
    border-radius: 2px;
    color: var(--text-muted);
    text-decoration: none;
  }

  .heading-link .icon {
    inline-size: 1.05rem;
    block-size: 1.05rem;
  }

  @media (hover: hover) {
    .heading-link { opacity: 0; }

    :is(h2, h3, h4, .trophy-name):hover > .heading-link,
    .heading-link:focus-visible,
    .heading-link.is-copied { opacity: 1; }

    .heading-link:hover {
      background: var(--chip-bg);
      color: var(--link);
    }
  }

  .heading-link.is-copied { color: var(--success); }

  .heading-link.is-copied::after {
    content: "Lien copi\E9";
    position: absolute;
    inset-block-end: calc(100% + 0.25rem);
    inset-inline-start: 50%;
    translate: -50% 0;
    padding: 0.15rem 0.45rem;
    border-radius: 2px;
    background: var(--text);
    color: var(--page);
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
  }

  /* Resume reading: bottom left, the back-to-top button stays bottom right. */
  .resume {
    position: fixed;
    inset-block-end: 1rem;
    inset-inline-start: max(1rem, calc((100% - var(--page-max)) / 2 + 1rem));
    z-index: 15;
    display: flex;
    align-items: center;
    gap: 0.5rem 0.75rem;
    max-inline-size: min(32rem, calc(100% - 5.5rem));
    padding: 0.5rem 0.25rem 0.5rem 1rem;
    border-inline-start: 4px solid var(--primary);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    box-shadow: 0 8px 24px rgb(0 0 0 / 0.25);
    font-size: 0.875rem;
    line-height: 1.4;
  }

  .resume p { flex: 1; min-inline-size: 0; }

  .resume .button { flex: none; }

  /* Phones: the question on its own line, the buttons under it. */
  @media (width < 40rem) {
    .resume {
      flex-wrap: wrap;
      justify-content: flex-end;
      padding-block-start: 0.75rem;
    }

    .resume p { flex-basis: 100%; padding-inline-end: 0.75rem; }
  }

  @media (hover: hover) {
    .resume .button:hover { background: var(--primary-dark); }
    .resume .icon-button:hover { background: var(--surface-2); }
  }

  /* Trophy head as a grid: picture (or placeholder + « Afficher » on it), texts on the right. */
  .trophy-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 0.4rem 1rem;
  }

  .trophy-head > :is(.trophy-icon, .trophy-reveal) { grid-area: 1 / 1; }

  .trophy-head > .trophy-id { grid-area: 1 / 2; }

  /* Hidden trophy, until « Afficher » or « Obtenu » is checked (CSS only, no flash, works without JS): blurred name
     and description, grey placeholder instead of the icon, no guide text. « Afficher » cannot be undone. */
  .trophy-placeholder,
  .trophy-reveal { display: none; }

  .trophy-secret:not(:has(:is(.trophy-reveal, .trophy-check) input:checked)) {
    & .trophy-head > img.trophy-icon,
    & .trophy-check { display: none; }

    & .trophy-placeholder {
      display: grid;
      place-items: center;
      background: light-dark(#c5cdd4, #2f3f4e);
      color: light-dark(#e8ecef, #4d6173);
    }

    & .trophy-placeholder svg {
      inline-size: 58%;
      block-size: 58%;
      fill: currentColor;
    }

    & :is(.trophy-name, .trophy-desc) {
      filter: blur(5px);
      user-select: none;
      pointer-events: none;
    }

    /* Centred on the placeholder, with room around it (the picture is 64 px, 80 px from 40rem). */
    & .trophy-reveal {
      position: relative;
      place-self: center;
      z-index: 1;
      display: inline-flex;
      align-items: center;
      min-block-size: 1.5rem;
      padding-inline: 0.35rem;
      border-radius: 2px;
      background: var(--primary);
      color: #fff;
      font-size: 0.6875rem;
      font-weight: 700;
      box-shadow: 0 2px 6px rgb(0 0 0 / 0.2);
      cursor: pointer;
    }

    @media (width < 40rem) {
      & .trophy-reveal {
        padding-inline: 0.25rem;
        font-size: 0.625rem;
      }
    }

    & > :not(.trophy-head, .trophy-back) { display: none; }
  }

  .trophy-reveal:has(input:focus-visible) {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
  }

  .trophy-reveal input {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    opacity: 0;
  }

  @media (hover: hover) {
    .trophy-reveal:hover { background: var(--primary-dark); }
  }

  /* Screenshots open in a lightbox. */
  .prose a.zoom {
    display: block;
    cursor: zoom-in;
  }

  @media (hover: hover) {
    .prose a.zoom:hover img { opacity: 0.88; }
  }

  .lightbox {
    inline-size: 100%;
    block-size: 100%;
    max-inline-size: none;
    max-block-size: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgb(8 12 16 / 0.94);
    color: #fff;
    overscroll-behavior: contain;
    --focus: #fff;
  }

  .lightbox[open] {
    display: grid;
    place-items: center;
  }

  .lightbox::backdrop { background: transparent; }

  .lightbox figure {
    display: grid;
    justify-items: center;
    gap: 0.6rem;
    padding: 3.5rem 0.5rem 1rem;
  }

  .lightbox img {
    inline-size: auto;
    block-size: auto;
    max-inline-size: 100%;
    max-block-size: calc(100dvh - 7rem);
  }

  .lightbox figcaption {
    color: #d5dee5;
    font-size: 0.875rem;
    text-align: center;
  }

  .lightbox .icon-button {
    position: fixed;
    background: rgb(0 0 0 / 0.55);
    color: #fff;
  }

  .lightbox-close { inset: 0.75rem 0.75rem auto auto; }

  .lightbox-prev,
  .lightbox-next {
    inset-block-start: 50%;
    translate: 0 -50%;
  }

  .lightbox-prev { inset-inline-start: 0.5rem; }

  .lightbox-next { inset-inline-end: 0.5rem; }

  @media (hover: hover) {
    .lightbox .icon-button:hover { background: var(--primary); }
  }

  html:has(.lightbox[open]) { overflow: hidden; }

  /* Comparison slider: two pictures in one frame, the range (invisible, over the frame) moves the split. */
  .compare { display: grid; gap: 0.4rem; }

  .compare-frame {
    position: relative;
    display: grid;
    overflow: hidden;
    border-radius: 2px;
    --pos: 50%;
  }

  .compare-frame > img,
  .compare-range { grid-area: 1 / 1; }

  .prose .compare-frame img { border-radius: 0; }

  .compare-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }

  /* Prototype only: the same picture on both sides, blurred on the PS4 side. */
  .compare-demo .compare-before { filter: blur(2px) saturate(0.5); }

  .compare-frame::before {
    content: "";
    position: absolute;
    inset-block: 0;
    inset-inline-start: var(--pos);
    z-index: 1;
    inline-size: 2px;
    margin-inline-start: -1px;
    background: #fff;
    box-shadow: 0 0 6px rgb(0 0 0 / 0.6);
    pointer-events: none;
  }

  .compare-frame::after {
    content: "\2039\00A0\203A" / "";
    position: absolute;
    inset-block-start: 50%;
    inset-inline-start: var(--pos);
    z-index: 1;
    display: grid;
    place-items: center;
    inline-size: 2.75rem;
    block-size: 2.75rem;
    translate: -50% -50%;
    border-radius: var(--radius);
    background: var(--primary);
    color: #fff;
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1;
    pointer-events: none;
  }

  .compare-frame:has(.compare-range[hidden])::after { display: none; }

  .compare-tag {
    position: absolute;
    inset-block-start: 0.5rem;
    z-index: 1;
    padding: 0.1rem 0.5rem;
    border-radius: 2px;
    background: rgb(0 0 0 / 0.72);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    pointer-events: none;
  }

  .compare-tag-before { inset-inline-start: 0.5rem; }

  .compare-tag-after { inset-inline-end: 0.5rem; }

  .compare-range {
    position: relative;
    z-index: 2;
    inline-size: 100%;
    block-size: 100%;
    margin: 0;
    opacity: 0;
    cursor: ew-resize;
  }

  .compare-frame:has(.compare-range:focus-visible) {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
  }

  /* Native share sheet (phones): first in the share row, in the main colour. */
  .share-native {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-block-size: 2.75rem;
    padding-inline: 0.9rem;
    border: 0;
    border-radius: 2px;
    background: var(--primary);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
  }

  .share-native .icon {
    inline-size: 1rem;
    block-size: 1rem;
  }

  @media (hover: hover) {
    .share-native:hover { background: var(--primary-dark); }
  }

  /* Trophy checklist: progress above the list, « Obtenu » on the back-link line of each trophy. */
  .prose .trophy-progress {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.5rem 1rem;
    padding: 1rem 1.25rem;
    border-inline-start: 4px solid var(--success);
    border-radius: var(--radius);
    background: var(--surface-2);
    line-height: 1.4;
  }

  /* Placeholder of the content (filled by main.js): nothing without JS. */
  .prose .trophy-progress:empty { display: none; }

  .trophy-progress-count { font-weight: 600; }

  .trophy-progress-count strong {
    color: var(--success);
    font-size: var(--step-2);
  }

  .trophy-progress-bar {
    grid-column: 1 / -1;
    block-size: 0.5rem;
    overflow: hidden;
    border-radius: 2px;
    background: var(--score-track);
  }

  .trophy-progress-bar span {
    display: block;
    inline-size: 0;
    block-size: 100%;
    background: var(--success);
  }

  .trophy-progress .form-hint { grid-column: 1 / -1; }

  .trophy-reset {
    grid-column: 2;
    grid-row: 1;
    min-block-size: 2.75rem;
    padding-inline: 0.8rem;
    border: 1px solid var(--border);
    border-radius: 2px;
    background: var(--surface);
    color: var(--link);
    font-size: 0.8125rem;
    font-weight: 700;
  }

  .trophy-back {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
  }

  /* A chip after the grade and « Caché » chips: same size and colours until checked. */
  .trophy-check {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.1rem 0.55rem;
    border-radius: 2px;
    background: var(--surface-2);
    color: var(--text);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.6;
    cursor: pointer;
  }

  .trophy-check input {
    inline-size: 0.85rem;
    block-size: 0.85rem;
    margin: 0;
    accent-color: var(--success);
  }

  .trophy-check:has(:checked) {
    background: color-mix(in oklch, var(--success) 14%, var(--surface));
    color: var(--success);
  }

  .trophy-check:has(:focus-visible) {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
  }

  @media (hover: hover) {
    .trophy-check:hover { box-shadow: inset 0 0 0 1px var(--success); }
    .trophy-reset:hover { border-color: var(--link); }
  }

  .trophy.is-done .trophy-icon { box-shadow: 0 0 0 3px var(--success); }

  .toc-trophies a.is-done::before {
    content: "\2713" / "";
    inline-size: auto;
    block-size: auto;
    margin: 0;
    border-radius: 0;
    background: none;
    color: var(--success);
    font-weight: 800;
  }

  /* Collectible checklist (ul.checklist of guides): main.js puts a box in place of each bullet. */
  .prose .checklist:has(> li > .checklist-box) {
    padding-inline-start: 2rem;
    list-style: none;
  }

  .checklist > li { position: relative; }

  .checklist > li + li { margin-block-start: 0.4rem; }

  .checklist-box {
    position: absolute;
    inset-block-start: 0;
    inset-inline-start: -2rem;
    display: grid;
    place-items: center;
    inline-size: 1.75rem;
    block-size: 1.65em;
    min-block-size: 1.5rem;
    cursor: pointer;
  }

  .checklist-box input {
    inline-size: 1.1rem;
    block-size: 1.1rem;
    margin: 0;
    accent-color: var(--success);
    cursor: pointer;
  }

  .checklist > li.is-done { color: var(--text-muted); }

  /* Tag hub: the test first, then guides, then news. */
  .hub-test {
    position: relative;
    display: grid;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
  }

  @media (width >= 40rem) {
    .hub-test { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  }

  .hub-test .card-media { aspect-ratio: 16 / 9; }

  .hub-test .card-body {
    gap: 0.6rem;
    padding: 1.1rem 1.25rem;
  }

  .hub-test .card-title { font-size: var(--step-2); }

  .hub-test .card-excerpt {
    -webkit-line-clamp: 4;
    line-clamp: 4;
  }

  .hub-test .rating {
    position: absolute;
    inset: 0.75rem auto auto 0.75rem;
    z-index: 2;
  }

  .hub-test:has(.card-link:focus-visible) {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
  }

  @media (hover: hover) {
    .hub-test:hover .card-link { color: var(--link); }
  }

  /* Ranking of tests: rank, ring, title, platforms, year. No pictures: light page. */
  .ranking-filters {
    display: grid;
    gap: 0.75rem;
  }

  .ranking-filter {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.35rem;
  }

  .ranking-filter-label {
    color: var(--text-muted);
    font-size: var(--step--1);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }

  .term-links a[aria-current] {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
  }

  .term-links a[aria-current] .term-count { color: rgb(255 255 255 / 0.85); }

  .ranking { display: grid; }

  .rank {
    position: relative;
    display: grid;
    grid-template-columns: 2.25rem 2.75rem minmax(0, 1fr);
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0.5rem;
    border-block-end: 1px solid var(--border);
  }

  .rank-num {
    color: var(--text-muted);
    font-size: var(--step-1);
    font-weight: 800;
    text-align: end;
    font-variant-numeric: tabular-nums;
  }

  .rank-title {
    font-size: 1rem;
    line-height: 1.3;
  }

  .rank .card-meta {
    gap: 0.25rem 0.5rem;
    margin-block-start: 0.25rem;
  }

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

  @media (hover: hover) {
    .rank:hover { background: var(--surface-2); }
    .rank:hover .card-link { color: var(--link); }
  }

  .tier-range {
    padding-block-end: 0.35rem;
    color: var(--text-muted);
    font-size: var(--step--1);
    font-weight: 600;
  }

  /* 404: a game over screen. ✕ = search, ○ = home, as on a European PlayStation. */
  .game-over {
    display: grid;
    justify-items: center;
    gap: 0.75rem;
    margin-block-start: 1.5rem;
    padding: clamp(1.5rem, 5vw, 2.5rem) 1.25rem;
    border-radius: var(--radius);
    background: #10181f;
    color: #fff;
    text-align: center;
    color-scheme: dark;
    --focus: #fff;
    --link: #fff;
    --link-hover: #fff;
  }

  .game-over-title {
    font-size: clamp(2.25rem, 1.5rem + 4vw, 4rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-shadow: 0 0 18px color-mix(in oklch, var(--primary-tint), transparent 40%);
  }

  .game-over-sub { color: #d5dee5; }

  .game-over-question {
    margin-block-start: 0.5rem;
    font-size: var(--step-2);
    font-weight: 700;
  }

  .game-over-choices {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.5rem;
  }

  .game-over-choices a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-block-size: 2.75rem;
    padding: 0.25rem 0.9rem 0.25rem 0.4rem;
    border-radius: 2px;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
  }

  .game-over-choices .ps-button-icon {
    inline-size: 2rem;
    block-size: 2rem;
    fill: #fff;
  }

  @media (hover: hover) {
    .game-over-choices a:hover { background: var(--primary); }
  }

  @media (prefers-reduced-motion: no-preference) {
    .game-over-title { animation: game-over-in 1.2s ease-out both; }
  }

  @keyframes game-over-in {
    from {
      opacity: 0;
      letter-spacing: 0.4em;
    }
  }

  /* Konami code: a trophy notification, top left like on the console. */
  .trophy-toast {
    position: fixed;
    inset: 1rem auto auto 1rem;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-inline-size: calc(100% - 2rem);
    padding: 0.75rem 1.1rem 0.75rem 0.85rem;
    border-radius: var(--radius);
    background: rgb(16 24 31 / 0.95);
    color: #fff;
    box-shadow: 0 8px 24px rgb(0 0 0 / 0.35);
    font-size: 0.875rem;
    line-height: 1.35;
  }

  .trophy-toast .icon {
    inline-size: 2rem;
    block-size: 2rem;
    color: #d49c6e;
  }

  .trophy-toast p { display: grid; }

  .trophy-toast span { color: #d5dee5; }

  @media (prefers-reduced-motion: no-preference) {
    .trophy-toast { animation: toast-in 0.35s ease-out both, toast-in 0.35s ease-in 5.5s reverse forwards; }
  }

  @keyframes toast-in {
    from {
      opacity: 0;
      translate: 0 -1rem;
    }
  }
}

/* ---------- walkthrough (Lies of P soluce, 2026-11-03): one post, one chapter per page ---------- */
@layer pages {
  /* Summary « Soluce »: numbered chapters (links to their page); only the chapter read shows its zones, with dashes.
     Same dashed list for the H3 of a summary with H3 (postSummary = h3). */
  .toc-chapter.is-current > a {
    color: var(--text);
    font-weight: 700;
  }

  .toc .toc-zones {
    display: grid;
    gap: 0.1rem;
    padding: 0 0 0.3rem 1.75rem;
  }

  .toc-zones a {
    grid-template-columns: 1rem 1fr;
    padding-block: 0.3rem;
    font-size: 0.85rem;
    counter-increment: none;
  }

  .toc-zones a::before {
    content: "\2013" / "";
    color: var(--text-muted);
    font-weight: 400;
  }

  /* Folded chapter (postSummary = h3-fold / h4-fold): numbered or dashed like a link, chevron at the end. */
  .toc-fold > summary {
    display: grid;
    grid-template-columns: 1.75rem 1fr auto;
    gap: 0.25rem;
    padding: 0.4rem 0.5rem;
    border-radius: 2px;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.35;
    list-style: none;
    cursor: pointer;
    counter-increment: toc;
  }

  .toc-fold > summary::-webkit-details-marker { display: none; }

  .toc-fold > summary::before {
    content: counter(toc, decimal-leading-zero);
    color: var(--link);
    font-weight: 700;
  }

  .toc-fold > summary::after {
    content: "\203A" / "";
    color: var(--link);
    font-size: 1rem;
    line-height: 1.2;
    transition: rotate 0.2s;
  }

  .toc-fold[open] > summary::after { rotate: 90deg; }

  .toc-zones .toc-fold > summary {
    grid-template-columns: 1rem 1fr auto;
    padding-block: 0.3rem;
    font-size: 0.85rem;
    counter-increment: none;
  }

  .toc-zones .toc-fold > summary::before {
    content: "\2013" / "";
    color: var(--text-muted);
    font-weight: 400;
  }

  .toc .toc-zones .toc-zones { padding-inline-start: 1rem; }

  .toc-fold:has([aria-current]) > summary {
    color: var(--text);
    font-weight: 600;
  }

  @media (hover: hover) {
    .toc-fold > summary:hover { background: var(--surface-2); }
  }

  /* Summary with H3 (postSummary = h3 / h3-trophies): the H2 stays a link, a chevron at its end opens its H3. */
  .toc-parent { position: relative; }

  .toc-parent > a { padding-inline-end: 2rem; }

  .toc-more > summary {
    position: absolute;
    inset-block-start: 0;
    inset-inline-end: 0;
    display: grid;
    place-items: center;
    inline-size: 2rem;
    block-size: calc(0.9rem * 1.35 + 0.8rem);
    border-radius: 2px;
    color: var(--link);
    list-style: none;
    cursor: pointer;
  }

  .toc-more > summary::-webkit-details-marker { display: none; }

  .toc-more > summary::after {
    content: "\203A" / "";
    font-size: 1rem;
    line-height: 1;
    transition: rotate 0.2s;
  }

  .toc-more[open] > summary::after { rotate: 90deg; }

  @media (hover: hover) {
    .toc-more > summary:hover { background: var(--surface-2); }
  }

  /* Chapter title: big roman numeral + « Chapitre I » label + name, on the blue line of the section titles. */
  .chapter-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-block-end: 1rem;
    border-block-end: 2px solid var(--primary);
  }

  .chapter-mark {
    display: grid;
    place-items: center;
    flex: none;
    min-inline-size: 3.5rem;
    block-size: 3.5rem;
    padding-inline: 0.5rem;
    border-radius: 2px;
    background: var(--primary);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.04em;
  }

  .chapter-title { font-size: var(--step-3); }

  .chapter-num {
    display: block;
    margin-block-end: 0.2rem;
    color: var(--link);
    font-size: var(--step--1);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
  }

  @media (width < 40rem) {
    .chapter-mark {
      min-inline-size: 2.75rem;
      block-size: 2.75rem;
      font-size: 1.15rem;
    }
  }

  /* « Dans ce chapitre »: zones, boss (links to their card), quests, trophies. */
  .chapter-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.75rem;
    margin-block: 1rem 2rem;
    font-size: 0.875rem;
  }

  .chapter-facts div {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
  }

  .chapter-facts dt {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }

  .chapter-facts dd { font-weight: 600; }

  /* Zones are h3 under the chapter h2: they look like the h2 of other posts. */
  .walkthrough .prose > h3 {
    margin-block-start: 2.25em;
    font-size: var(--step-2);
    text-wrap: wrap;
  }

  .walkthrough .prose > h3:first-child { margin-block-start: 0; }

  /* Boxes of a guide (info, quest, NG+): generic; the game layer adds its icons. */
  .prose .guide-note {
    --note-color: var(--text);
    --note-bg: var(--surface-2);
    --note-line: var(--text-muted);
    position: relative;
    padding: 1rem 1.25rem;
    border-inline-start: 4px solid var(--note-line);
    border-radius: 0 var(--radius) var(--radius) 0;
    background: var(--note-bg);
    line-height: 1.65;
  }

  .guide-note > * + * { margin-block-start: 0.75em; }

  .prose .guide-note h4 {
    margin-block-start: 0;
    color: var(--note-color);
    font-size: var(--step-0);
    font-weight: 800;
  }

  .prose .guide-note-quest {
    --note-color: var(--link);
    --note-bg: var(--chip-bg);
    --note-line: var(--link);
  }

  .prose .guide-note-ngplus {
    --note-color: var(--danger);
    --note-bg: light-dark(#fdf1f0, #2b1c21);
    --note-line: var(--danger);
  }

  /* Lies of P: Lies Of P France icons (info = pocket watch, quest = butterfly, NG+ = last resort), same size as there:
     63 px (50 px on phones) next to the title only; the text below uses the full width. */
  .game-lies-of-p .guide-note::before {
    content: "";
    position: absolute;
    inset: 0.5rem auto auto 0.9rem;
    inline-size: 63px;
    block-size: 63px;
    background: var(--note-icon) center / contain no-repeat;
  }

  .game-lies-of-p .prose .guide-note > h4:first-child {
    display: flex;
    align-items: center;
    min-block-size: 63px;
    margin-block-start: -0.5rem;
    padding-inline-start: 4.25rem;
  }

  .game-lies-of-p .guide-note-info { --note-icon: url("../img/lies-of-p/moonphase-pocket-watch.png"); }

  .game-lies-of-p .guide-note-quest { --note-icon: url("../img/lies-of-p/blue-butterfly.png"); }

  .game-lies-of-p .guide-note-ngplus { --note-icon: url("../img/lies-of-p/last-resort.png"); }

  @media (width < 40rem) {
    .game-lies-of-p .guide-note::before {
      inline-size: 50px;
      block-size: 50px;
    }

    .game-lies-of-p .prose .guide-note > h4:first-child {
      min-block-size: 50px;
      padding-inline-start: 3.5rem;
    }
  }

  /* Item names in italics: old gold (trial, owner 2026-11-03). */
  .walkthrough .prose em { color: light-dark(#7d5a12, #dcb866); }

  /* Boss card (generic): darkened banner, « BOSS » label, name. */
  .prose .guide-boss {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface-2);
    overflow: clip;
  }

  .guide-boss > :not(.guide-boss-head) { margin-inline: 1.25rem; }

  .guide-boss > * + * { margin-block-start: 1em; }

  .guide-boss > :last-child { margin-block-end: 1.25rem; }

  .guide-boss-head {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-content: center;
    align-items: center;
    gap: 0.6rem 1rem;
    min-block-size: 7.5rem;
    padding: 0.85rem 1rem 0.85rem 1.25rem;
    color: #fff;
  }

  .guide-boss-banner {
    position: absolute;
    inset: 0;
    z-index: -1;
    inline-size: 100%;
    block-size: 100%;
    object-fit: cover;
    filter: brightness(0.55);
  }

  .prose .guide-boss-head h4 {
    grid-column: 1;
    grid-row: 1;
    margin-block-start: 0;
    font-size: var(--step-2);
    text-shadow: 0 2px 4px rgb(0 0 0 / 0.6);
  }

  .guide-boss-kind {
    display: block;
    inline-size: fit-content;
    margin-block-end: 0.4rem;
    padding: 0.1rem 0.45rem;
    border-radius: 2px;
    background: var(--primary);
    font-size: 0.6875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-shadow: none;
  }

  /* Lies of P: kill emblem of the family (puppet, stalker, carcass); the claw mark lands once the boss title is
     on screen (proto.js adds .is-reached, like on Lies Of P France). */
  .guide-boss-emblem { display: none; }

  .game-lies-of-p .guide-boss-emblem {
    position: relative;
    grid-column: 2;
    grid-row: 1;
    display: block;
    inline-size: 6rem;
    block-size: 6rem;
    background: var(--boss-emblem) center / contain no-repeat, var(--boss-frame) center / contain no-repeat;
    filter: drop-shadow(1px 1px 1px rgb(0 0 0 / 0.3));
  }

  .game-lies-of-p .guide-boss-emblem::after {
    content: "";
    position: absolute;
    inset: 0;
    background: url("../img/lies-of-p/bosses/killed.png") center / contain no-repeat;
    opacity: 0;
  }

  .game-lies-of-p .guide-boss.is-reached .guide-boss-emblem::after { opacity: 1; }

  @media (prefers-reduced-motion: no-preference) {
    .game-lies-of-p .guide-boss.is-reached .guide-boss-emblem::after { animation: lop-claw 0.45s ease-out both; }
  }

  .lop-boss-puppet {
    --boss-frame: url("../img/lies-of-p/bosses/puppet-kill-bg.png");
    --boss-emblem: url("../img/lies-of-p/bosses/puppet-kill-emblem.png");
  }

  .lop-boss-stalker {
    --boss-frame: url("../img/lies-of-p/bosses/stalker-kill-bg.png");
    --boss-emblem: url("../img/lies-of-p/bosses/stalker-kill-emblem.png");
  }

  .lop-boss-carcass {
    --boss-frame: url("../img/lies-of-p/bosses/carcass-kill-bg.png");
    --boss-emblem: url("../img/lies-of-p/bosses/carcass-kill-emblem.png");
  }

  @media (width < 40rem) {
    .guide-boss-head { min-block-size: 6rem; }

    .game-lies-of-p .guide-boss-emblem {
      inline-size: 4.5rem;
      block-size: 4.5rem;
    }
  }

  @keyframes lop-claw {
    from {
      opacity: 0;
      transform: translate(2.5rem, -2.5rem) scale(1.4);
    }

    60% {
      opacity: 1;
      transform: translate(-0.3rem, 0.3rem) scale(0.95);
    }
  }

  .guide-reward {
    padding: 0.6rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: 2px;
    background: var(--surface);
    text-align: center;
  }

  .guide-phase {
    display: block;
    color: var(--link);
  }

  /* Inline marks: shortcut (trail sign, green), trophy (cup, grade colour), humanity (heart, blue). Ionicons, MIT. */
  .guide-shortcut,
  .guide-trophy,
  .lop-humanity { font-weight: 700; }

  .guide-shortcut::before,
  .guide-trophy::before,
  .lop-humanity::before {
    content: "";
    display: inline-block;
    inline-size: 0.9em;
    block-size: 0.9em;
    margin-inline-end: 0.25em;
    vertical-align: -0.08em;
    background: currentColor;
    mask: var(--mark-icon) center / contain no-repeat;
  }

  .guide-shortcut {
    --mark-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M491.31 324.69L432 265.37a31.8 31.8 0 00-22.63-9.37H272v-32h144a32 32 0 0032-32V96a32 32 0 00-32-32H272V48a16 16 0 00-32 0v16H102.63A31.8 31.8 0 0080 73.37l-59.31 59.32a16 16 0 000 22.62L80 214.63a31.8 31.8 0 0022.63 9.37H240v32H96a32 32 0 00-32 32v96a32 32 0 0032 32h144v48a16 16 0 0032 0v-48h137.37a31.8 31.8 0 0022.63-9.37l59.31-59.32a16 16 0 000-22.62z'/%3E%3C/svg%3E");
    color: var(--success);
    scroll-margin-block-start: 30vh;
  }

  .guide-trophy {
    --mark-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M464 80h-60.1a4 4 0 01-4-4V63.92a32 32 0 00-32-31.92l-223.79.26a32 32 0 00-31.94 31.93V76a4 4 0 01-4 4H48a16 16 0 00-16 16v16c0 54.53 30 112.45 76.52 125.35a7.82 7.82 0 015.55 5.9c5.77 26.89 23.52 52.5 51.41 73.61 20.91 15.83 45.85 27.5 68.27 32.48a8 8 0 016.25 7.8V444a4 4 0 01-4 4h-59.55c-8.61 0-16 6.62-16.43 15.23A16 16 0 00176 480h159.55c8.61 0 16-6.62 16.43-15.23A16 16 0 00336 448h-60a4 4 0 01-4-4v-86.86a8 8 0 016.25-7.8c22.42-5 47.36-16.65 68.27-32.48 27.89-21.11 45.64-46.72 51.41-73.61a7.82 7.82 0 015.55-5.9C450 224.45 480 166.53 480 112V96a16 16 0 00-16-16zM112 198.22a4 4 0 01-6 3.45c-10.26-6.11-17.75-15.37-22.14-21.89-11.91-17.69-19-40.67-19.79-63.63a4 4 0 014-4.15h40a4 4 0 014 4c-.02 27.45-.07 58.87-.07 82.22zm316.13-18.44c-4.39 6.52-11.87 15.78-22.13 21.89a4 4 0 01-6-3.46c0-26.51 0-56.63-.05-82.21a4 4 0 014-4h40a4 4 0 014 4.15c-.79 22.96-7.9 45.94-19.81 63.63z'/%3E%3C/svg%3E");
    color: var(--trophy-color);
  }

  .lop-humanity {
    --mark-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M256 448a32 32 0 01-18-5.57c-78.59-53.35-112.62-89.93-131.39-112.8-40-48.75-59.15-98.8-58.61-153C48.63 114.52 98.46 64 159.08 64c44.08 0 74.61 24.83 92.39 45.51a6 6 0 009.06 0C278.31 88.81 308.84 64 352.92 64c60.62 0 110.45 50.52 111.08 112.64.54 54.21-18.63 104.26-58.61 153-18.77 22.87-52.8 59.45-131.39 112.8a32 32 0 01-18 5.56z'/%3E%3C/svg%3E");
    color: var(--link);
  }

  /* A link to a shortcut flashes the place where it was first seen (pure CSS, :target). */
  .guide-shortcut:target {
    border-radius: 2px;
    background: color-mix(in oklch, var(--success) 22%, transparent);
  }

  @media (prefers-reduced-motion: no-preference) {
    .guide-shortcut:target { animation: guide-flash 2.6s ease-out 3 alternate; }
  }

  @keyframes guide-flash {
    from { background: color-mix(in oklch, var(--success) 45%, transparent); }
  }

  /* NG+ tag: red square chip, same red in both modes (white text stays readable). */
  .guide-ngplus {
    display: inline-block;
    padding-inline: 0.3em;
    border-radius: 2px;
    background: #b42318;
    color: #fff;
    font-size: 0.75em;
    font-weight: 700;
    line-height: 1.6;
    text-decoration: none;
    vertical-align: 0.1em;
    cursor: help;
  }

  /* Merchant tables: item names keep a readable width, numbers on the right. */
  .prose .guide-merchant td:first-child { min-inline-size: 13rem; }

  .prose :is(td, th).num {
    text-align: end;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
  }

  /* Every table: a click highlights a row (reading aid), a second click clears it (proto.js). */
  .prose tbody tr { cursor: pointer; }

  @media (hover: hover) {
    .prose tbody tr:not(.is-selected):hover { background: color-mix(in oklch, var(--link) 8%, var(--surface)); }
  }

  .prose tbody tr.is-selected { background: color-mix(in oklch, var(--link) 22%, var(--surface)); }

  /* Previous / next chapter (pages of the post): a blue band like on Lies Of P France, an icon in the middle. */
  .chapter-pager {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
    margin-block-start: 3rem;
    padding: 0.4rem 1.25rem;
    border-radius: var(--radius);
    background: var(--primary);
    color: #fff;
  }

  .chapter-pager-next { text-align: end; }

  .chapter-pager a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-block-size: 2.75rem;
    color: inherit;
    font-weight: 700;
    line-height: 1.35;
    text-align: start;
    text-decoration: none;
  }

  .chapter-pager-next a { text-align: end; }

  @media (hover: hover) {
    .chapter-pager a:hover { text-decoration: underline; }
  }

  .chapter-pager-icon {
    inline-size: 2rem;
    block-size: 1.65rem;
    background: currentColor;
    opacity: 0.7;
    mask: var(--pager-icon) center / contain no-repeat;
    visibility: hidden;
  }

  /* Lies of P: the ornament of Lies Of P France. */
  .game-lies-of-p .chapter-pager-icon {
    --pager-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 9'%3E%3Cpath fill-rule='evenodd' d='M8.103.029C9.137.158 9.889.592 10.4 1.234c.354.444.576.987.598 1.69.039 1.394-.752 2.361-1.622 2.952-.465.315-.941.536-1.492.82-.47.245-.953.591-1.3 1.022a6 6 0 0 0-.465.686c-.125.21-.333.631-.626.594-.315-.041-.466-.363-.595-.58a6 6 0 0 0-.465-.686c-.34-.417-.859-.804-1.3-1.035-.547-.288-1.026-.485-1.524-.821C.758 5.299-.054 4.28.003 2.862.06 1.512.919.643 2.01.23c.258-.098.62-.176.963-.214C4.117-.11 4.838.588 5.494.58 6.262.57 6.94-.123 8.103.029m-2.115 6.26a.67.67 0 0 0-.047-.44c-.158-.279-.712-.275-.866 0-.186.329.057.74.175 1.004.043.095.09.187.129.275.043.095.086.204.143.258.075-.323.398-.737.466-1.096m3.915-2.636c.25-.746-.064-1.476-.465-1.873-.347-.343-.802-.61-1.46-.608-.949 0-1.912.7-1.99 1.738-.036.458.042.73.225 1.065a1.99 1.99 0 0 0 1.911.991c.935-.07 1.55-.614 1.783-1.31zm-6.31 1.249c.705-.197 1.346-.818 1.414-1.646.136-1.693-1.869-2.66-3.21-1.707-.466.33-.86.93-.788 1.72.046.503.325.927.658 1.219.33.288.866.519 1.479.472.19-.014.307-.02.45-.062z'/%3E%3C/svg%3E");
    visibility: visible;
  }

  /* Phones: only « Chapitre II », the name stays for screen readers. */
  @media (width < 40rem) {
    .chapter-pager { padding-inline: 0.75rem; }

    .chapter-pager-name {
      position: absolute;
      inline-size: 1px;
      block-size: 1px;
      overflow: hidden;
      clip-path: inset(50%);
      white-space: nowrap;
    }
  }
}

/* ---------- utilities ---------- */
@layer utilities {
  .visually-hidden:not(:focus):not(:active) {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .skip-link {
    position: absolute;
    inset: 0.5rem auto auto 0.5rem;
    z-index: 100;
    padding: 0.75rem 1rem;
    background: #fff;
    color: var(--primary);
    font-weight: 700;
    translate: 0 -200%;
  }

  .skip-link:focus { translate: 0 0; }

  /* Printing is off (owner's choice: guides are not printed, less paper): one short message instead of the page. */
  @media print {
    body > * { display: none !important; }

    body::after {
      content: "L\2019impression est d\E9sactiv\E9 e sur imerod.fr. Retrouvez cette page en ligne sur www.imerod.fr.";
      display: block;
      padding: 2rem;
      color: #000;
      font: 1rem/1.5 sans-serif;
    }
  }
}

/* ---------- page transitions (cross-document, needs http://) ---------- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }

  ::view-transition-group(post-image) { animation-duration: 0.45s; }

  ::view-transition-old(post-image),
  ::view-transition-new(post-image) {
    block-size: 100%;
    object-fit: cover;
  }
}

/* The article image always has the name; on lists JS names only the clicked card's image (a name must be unique). */
.entry-hero img { view-transition-name: post-image; }
