/*
Theme Name:        CELM Royale
Theme URI:         https://casino-en-ligne-mondial.com/
Description:       Thème développé spécialement pour le site casino-en-ligne-mondial.com.
Version:           1.0.0
Requires at least: 7.0
Tested up to:      7.1
Requires PHP:      8.5
Author:            CELM
Text Domain:       celm
License:           Proprietary
*/
/* ==========================================================================
   CELM Royale — main stylesheet (style.css, printed by Celm\Assets)
   Clear UI + casino accents. No build step: native nesting, @layer, light-dark(),
   container queries, :has(), scroll-driven animations, view transitions.
   ========================================================================== */

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

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  * { margin: 0; }
  html { -webkit-text-size-adjust: none; text-size-adjust: none; }
  body { min-block-size: 100dvh; }
  img, picture, video, canvas, svg, iframe { display: block; max-inline-size: 100%; }
  img, video { block-size: auto; }
  input, button, textarea, select { font: inherit; color: inherit; }
  button { cursor: pointer; background: none; border: 0; padding: 0; }
  ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
  p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }
  [hidden] { display: none !important; }
}

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

    /* Brand */
    --accent: #e11d48;
    --accent-ink: #fff;
    --accent-hover: color-mix(in oklab, var(--accent) 86%, black);
    --accent-soft: color-mix(in oklab, var(--accent) 11%, transparent);
    --gold: #d4a017;
    --gold-soft: color-mix(in oklab, var(--gold) 16%, transparent);
    --felt: #0f6b4a;
    --felt-deep: #083a28;
    --cta: #12a150;
    --cta-hover: #0e8a44;

    /* Chips */
    --chip-red: #d7263d;
    --chip-black: #22252d;
    --chip-green: #138a55;
    --chip-gold: #c99a14;

    /* Surfaces */
    --bg: light-dark(#ffffff, #0c0e13);
    --bg-alt: light-dark(#f4f5f8, #12151b);
    --surface: light-dark(#ffffff, #171a21);
    --surface-2: light-dark(#f6f7f9, #1e222b);
    --tile: light-dark(#1c1d24, #22252d);
    --text: light-dark(#14151a, #eef0f4);
    --muted: light-dark(#5d6170, #a4a9b6);
    --faint: light-dark(#8a8f9c, #7d8290);
    --line: light-dark(#e4e6ed, #272b35);
    --line-strong: light-dark(#d3d6df, #343946);
    --red-suit: light-dark(#d7263d, #ff5a6e);
    --black-suit: light-dark(#14151a, #eef0f4);

    /* Depth */
    --sh: light-dark(rgb(20 21 26 / .06), rgb(0 0 0 / .32));
    --sh-h: light-dark(rgb(20 21 26 / .15), rgb(0 0 0 / .55));
    --shadow: 0 1px 2px var(--sh), 0 6px 20px var(--sh);
    --shadow-hover: 0 10px 34px var(--sh-h);
    --ring: 0 0 0 3px color-mix(in oklab, var(--accent) 35%, transparent);

    /* Shape & rhythm */
    --radius: 18px;
    --radius-sm: 12px;
    --radius-xs: 8px;
    --w: 1240px;
    --w-text: 760px;
    --gutter: clamp(16px, 4vw, 28px);
    --header-h: 68px;
    --ease: cubic-bezier(.2, .7, .2, 1);
    --ease-spring: linear(0, .25 7%, .87 22%, 1.06 30%, 1.08 34%, 1.02 45%, .99 56%, 1);

    /* Type */
    --font: system-ui, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-display: system-ui, "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --fs-xs: .75rem;
    --fs-sm: .875rem;
    --fs-base: 1rem;
    --fs-prose: 1.0625rem;
    --fs-lg: clamp(1.0625rem, 1rem + .3vw, 1.1875rem);
    --fs-h3: clamp(1.1875rem, 1.1rem + .45vw, 1.375rem);
    --fs-h2: clamp(1.5rem, 1.25rem + 1vw, 2rem);
    --fs-h1: clamp(2.125rem, 1.4rem + 3vw, 3.5rem);
    --fs-hero: clamp(2.5rem, 1.5rem + 4.6vw, 4.5rem);

    accent-color: var(--accent);
  }

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

  /* Relative color syntax (CSS Color 5): hover shades derived in OKLCH, perceptually even. */
  @supports (color: oklch(from red l c h)) {
    :root {
      --accent-hover: oklch(from var(--accent) calc(l - .07) c h);
      --cta-hover: oklch(from var(--cta) calc(l - .06) c h);
    }
  }
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
@layer base {
  /* Cross-document View Transitions: header stays put, the clicked game thumbnail morphs into the demo stage. */
  @view-transition { navigation: auto; }
  .site-header { view-transition-name: site-header; }
  ::view-transition-group(game-thumb) { animation-duration: .38s; animation-timing-function: cubic-bezier(.2, .7, .2, 1); }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .2s; }

  html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
    scrollbar-gutter: stable;
    hanging-punctuation: first last;
    interpolate-size: allow-keywords;
  }

  body {
    background: var(--bg);
    color: var(--text);
    font: 400 var(--fs-base)/1.6 var(--font);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }

  h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 750;
    line-height: 1.15;
    letter-spacing: -.02em;
    text-wrap: balance;
  }

  p, li, dd { text-wrap: pretty; }

  a {
    color: inherit;
    text-decoration-thickness: .08em;
    text-underline-offset: .18em;
  }

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

  ::selection { background: color-mix(in oklab, var(--accent) 25%, transparent); }

  kbd {
    font: 600 .72rem/1 var(--font);
    padding: .3em .5em;
    border: 1px solid var(--line-strong);
    border-bottom-width: 2px;
    border-radius: 6px;
    color: var(--muted);
    background: var(--surface);
  }

  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
      animation-duration: .01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: .01ms !important;
    }
    @view-transition { navigation: none; }
  }
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
@layer layout {
  .container {
    inline-size: min(100% - 2 * var(--gutter), var(--w));
    margin-inline: auto;
  }
  .container--text { inline-size: min(100% - 2 * var(--gutter), var(--w-text)); }

  .site-main { display: block; outline: none; }

  .section { padding-block: clamp(48px, 7vw, 88px); }
  .section--tight { padding-block: clamp(24px, 4vw, 44px); }
  .section--alt { background: var(--bg-alt); }
  .section--alt, .site-footer { content-visibility: auto; contain-intrinsic-size: auto 720px; }

  .entry-layout {
    display: grid;
    gap: 48px;
    padding-block: clamp(28px, 5vw, 56px) clamp(48px, 7vw, 80px);
    grid-template-columns: minmax(0, var(--w-text));
    justify-content: center;

    &.has-toc {
      @media (width >= 1100px) {
        grid-template-columns: 260px minmax(0, var(--w-text));
        justify-content: center;
      }
    }
    &.entry-layout--wide { grid-template-columns: minmax(0, 900px); }
    &.entry-layout--wide.has-toc {
      @media (width >= 1100px) { grid-template-columns: 260px minmax(0, 900px); }
    }
  }

  .entry-aside {
    @media (width >= 1100px) {
      position: sticky;
      inset-block-start: calc(var(--header-h) + 24px);
      align-self: start;
      max-block-size: calc(100dvh - var(--header-h) - 48px);
      overflow: auto;
      overscroll-behavior: contain;
      scrollbar-width: thin;
    }
  }

  .entry-main { min-inline-size: 0; }
  .entry-page { padding-block: 16px 72px; }
}

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

  /* ---- Skip link ---- */
  .skip-link {
    position: fixed;
    inset: 12px auto auto 12px;
    z-index: 1000;
    padding: 10px 16px;
    background: var(--accent);
    color: var(--accent-ink);
    border-radius: 999px;
    font-weight: 600;
    translate: 0 -200%;
    transition: translate .2s var(--ease);
    &:focus { translate: 0; }
  }

  /* ---- Suit badges & eyebrows ---- */
  .suit {
    display: inline-grid;
    place-items: center;
    inline-size: 1.9em;
    block-size: 1.9em;
    border-radius: 10px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    color: var(--black-suit);
    flex: none;
    & .icon { inline-size: 58%; block-size: 58%; }
  }
  .suit--heart, .suit--diamond { color: var(--red-suit); background: var(--accent-soft); border-color: transparent; }
  .suit--joker { background: var(--gold-soft); border-color: transparent; & .icon { inline-size: 72%; block-size: 72%; } }

  /* Joker icon parts (inherited into the <use> shadow tree). */
  :root { --joker-a: var(--red-suit); --joker-b: var(--black-suit); --joker-c: var(--gold); }

  .eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--accent);
    & a { text-decoration: none; &:hover { text-decoration: underline; } }
    & .suit { font-size: .95rem; }
    & > .icon { inline-size: 16px; block-size: 16px; }
  }
  .eyebrow--suits { justify-content: center; }
  .suits {
    display: inline-flex;
    gap: 2px;
    & .icon { inline-size: 14px; block-size: 14px; color: var(--black-suit); }
    & .icon:nth-child(2), & .icon:nth-child(3) { color: var(--red-suit); }
  }

  .icon { inline-size: 1.25em; block-size: 1.25em; flex: none; }

  /* ---- Poker chip (pure CSS) ---- */
  .chip {
    --c: var(--chip, var(--chip-red));
    --size: 28px;
    display: inline-grid;
    place-items: center;
    inline-size: var(--size);
    aspect-ratio: 1;
    border-radius: 50%;
    flex: none;
    background:
      radial-gradient(circle closest-side, var(--c) 0 58%, #fff 59% 63%, var(--c) 64% 72%, transparent 73%),
      repeating-conic-gradient(from 11.25deg, var(--c) 0 22.5deg, #fff 0 45deg);
    box-shadow:
      inset 0 0 0 max(1px, calc(var(--size) * .03)) color-mix(in oklab, var(--c) 70%, black),
      0 calc(var(--size) * .06) calc(var(--size) * .14) rgb(0 0 0 / .25);
    color: #fff;
  }
  .chip--red { --chip: var(--chip-red); }
  .chip--black { --chip: var(--chip-black); }
  .chip--green { --chip: var(--chip-green); }
  .chip--gold { --chip: var(--chip-gold); }
  .chip--sm { --size: 18px; }
  .chip--xl { --size: 72px; }
  .chip--hero { --size: clamp(120px, 16vw, 168px); }
  .chip__label {
    font: 800 calc(var(--size) * .2)/1 var(--font-display);
    letter-spacing: -.02em;
    text-shadow: 0 1px 1px rgb(0 0 0 / .35);
  }
  .chip-row { display: flex; gap: 8px; }

  /* ---- Mini playing card ---- */
  .mini-card {
    display: grid;
    align-content: space-between;
    inline-size: 64px;
    aspect-ratio: 5 / 7;
    padding: 8px;
    background: #fff;
    color: #14151a;
    border-radius: 9px;
    box-shadow: 0 1px 0 rgb(0 0 0 / .06), 0 10px 26px rgb(20 21 26 / .18);
    border: 1px solid rgb(20 21 26 / .08);
    & b { font: 800 1.1rem/1 var(--font-display); }
    & .icon { inline-size: 26px; block-size: 26px; justify-self: end; }
  }
  .mini-card--red { color: #d7263d; }
  .mini-card--lg { inline-size: 96px; & b { font-size: 1.6rem; } & .icon { inline-size: 40px; block-size: 40px; } }

  .badge-18 {
    display: inline-grid;
    place-items: center;
    inline-size: 2.1em;
    block-size: 2.1em;
    border-radius: 50%;
    border: 2px solid var(--chip-red);
    color: var(--chip-red);
    font: 800 .68rem/1 var(--font);
    letter-spacing: -.02em;
    flex: none;
    background: light-dark(#fff, transparent);
  }
  .badge-18--lg { font-size: 1rem; border-width: 3px; }

  /* ---- Buttons ---- */
  .btn {
    --btn-bg: var(--surface);
    --btn-ink: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-block-size: 44px;
    padding: 10px 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: var(--btn-bg);
    color: var(--btn-ink);
    font-weight: 650;
    font-size: var(--fs-sm);
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
    &:hover { transform: translateY(-1px); }
    &:active { transform: translateY(0); }
    & .icon { inline-size: 18px; block-size: 18px; }
  }
  .btn--primary {
    --btn-bg: var(--accent);
    --btn-ink: var(--accent-ink);
    box-shadow: 0 6px 18px color-mix(in oklab, var(--accent) 32%, transparent);
    &:hover { --btn-bg: var(--accent-hover); }
  }
  .btn--ghost { --btn-bg: transparent; border-color: var(--line-strong); &:hover { --btn-bg: var(--surface-2); } }
  .btn--sm { min-block-size: 36px; padding: 6px 14px; font-size: .8125rem; }
  .btn--lg { min-block-size: 52px; padding: 14px 28px; font-size: var(--fs-base); }

  .icon-btn {
    display: inline-grid;
    place-items: center;
    inline-size: 42px;
    block-size: 42px;
    border-radius: 50%;
    color: var(--text);
    transition: background-color .2s var(--ease);
    &:hover { background: var(--bg-alt); }
    & .icon { inline-size: 20px; block-size: 20px; }
  }
  .icon-btn--dark { color: #fff; background: rgb(255 255 255 / .08); &:hover { background: rgb(255 255 255 / .18); } }

  .link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 650;
    font-size: var(--fs-sm);
    color: var(--accent);
    text-decoration: none;
    white-space: nowrap;
    & .icon { inline-size: 16px; block-size: 16px; transition: translate .2s var(--ease); }
    &:hover .icon { translate: 4px 0; }
  }

  .tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: .02em;
  }

  .count-chip {
    display: inline-grid;
    place-items: center;
    min-inline-size: 1.8em;
    padding: 0 .5em;
    block-size: 1.8em;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: .75em;
    vertical-align: middle;
  }

  /* ---- Top bar ---- */
  .topbar {
    background: var(--felt-deep);
    color: #dcebe2;
    font-size: .8125rem;
    @media (width < 760px) { display: none; }
  }
  .topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-block-size: 36px; }
  .topbar__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 600;
    & .badge-18 { background: #fff; font-size: .58rem; }
  }
  .topbar__nav ul { display: flex; gap: 4px 18px; flex-wrap: wrap; }
  .topbar__nav a {
    text-decoration: none;
    opacity: .85;
    &:hover, &[aria-current] { opacity: 1; color: var(--gold); }
  }

  /* ---- Header ---- */
  .site-header {
    position: sticky;
    inset-block-start: 0;
    z-index: 50;
    background: color-mix(in oklab, var(--bg) 86%, transparent);
    backdrop-filter: saturate(1.6) blur(14px);
    border-block-end: 1px solid var(--line);
  }
  .has-admin-bar .site-header { inset-block-start: var(--wp-admin--admin-bar--height, 32px); }

  .site-header__inner {
    display: flex;
    align-items: center;
    gap: 20px;
    min-block-size: var(--header-h);
  }

  .brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    margin-inline-end: auto;
    flex: none;
  }
  .brand__logo { max-block-size: 44px; inline-size: auto; }
  .brand__chip {
    --c: var(--accent);
    display: grid;
    place-items: center;
    inline-size: 40px;
    aspect-ratio: 1;
    border-radius: 50%;
    color: #fff;
    background:
      radial-gradient(circle closest-side, var(--c) 0 60%, #fff 61% 65%, var(--c) 66% 72%, transparent 73%),
      repeating-conic-gradient(from 11.25deg, var(--c) 0 22.5deg, #fff 0 45deg);
    box-shadow: inset 0 0 0 1.5px color-mix(in oklab, var(--c) 70%, black), 0 3px 8px color-mix(in oklab, var(--c) 35%, transparent);
    transition: rotate .6s var(--ease-spring);
    & .icon { inline-size: 16px; block-size: 16px; }
  }
  .brand:hover .brand__chip { rotate: 90deg; }
  .brand__text { display: grid; line-height: 1.05; }
  .brand__name { font: 850 1.25rem/1 var(--font-display); letter-spacing: -.03em; }
  .brand__tagline { font-size: .6875rem; color: var(--muted); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }

  /* Primary nav (desktop) */
  .nav {
    @media (width < 1024px) { display: none; }
  }
  .nav__list { display: flex; align-items: center; gap: 2px; }
  /* The pill lives on the item, so link + submenu toggle share one background. */
  .nav__item {
    position: relative;
    display: flex;
    align-items: center;
    border-radius: 999px;
    transition: background-color .15s;
    &:is(:hover, .is-open, :has(> .nav__link[aria-current])) {
      background: var(--bg-alt);
      & > :is(.nav__link, .nav__toggle) { color: var(--text); }
    }
  }
  .nav__link {
    padding: 8px 12px;
    border-radius: 999px;
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--muted);
    text-decoration: none;
    transition: color .15s;
  }
  .has-menu > .nav__link { padding-inline-end: 4px; }
  .nav__toggle {
    display: grid;
    place-items: center;
    block-size: 36px;
    padding-inline: 2px 8px;
    border-radius: 0 999px 999px 0;
    color: var(--muted);
    & .icon { inline-size: 14px; block-size: 14px; transition: rotate .2s var(--ease); }
    &[aria-expanded="true"] .icon { rotate: 180deg; }
  }

  .nav__menu {
    position: absolute;
    inset-block-start: calc(100% + 10px);
    inset-inline-start: -8px;
    min-inline-size: 260px;
    padding: 8px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    opacity: 0;
    visibility: hidden;
    translate: 0 6px;
    transition: opacity .18s var(--ease), translate .18s var(--ease), visibility 0s .18s;

    &::before { content: ""; position: absolute; inset: -12px 0 auto; block-size: 12px; }
    & a {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 9px 12px;
      border-radius: var(--radius-sm);
      font-size: var(--fs-sm);
      font-weight: 550;
      text-decoration: none;
      &:hover, &[aria-current] { background: var(--bg-alt); }
      &[aria-current] { color: var(--accent); }
    }
  }
  .has-menu:is(:hover, :focus-within, .is-open) > .nav__menu {
    opacity: 1;
    visibility: visible;
    translate: 0;
    transition-delay: 0s;
  }
  /* Diamond bullet of submenu links (pseudo-element: no extra markup per link). */
  .nav__menu a::before {
    content: "";
    inline-size: 8px;
    block-size: 8px;
    rotate: 45deg;
    background: var(--line-strong);
    border-radius: 1px;
    flex: none;
  }
  .nav__menu a:is(:hover, [aria-current])::before { background: var(--accent); }

  .site-header__actions { display: flex; align-items: center; gap: 6px; }

  /* The last dropdown (Partenaires) opens towards the left so it stays on screen. */
  .nav__item:last-child > .nav__menu { inset-inline: auto -8px; }

  /* "Jeux" (catalogue) dropdown: long list of game types → two columns, read top-to-bottom */
  .nav__menu--cols-2 {
    min-inline-size: 440px;
    & ul {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      grid-auto-flow: column;
      grid-template-rows: repeat(var(--rows, 16), auto);
      column-gap: 4px;
    }
    & a { white-space: nowrap; }
  }

  .theme-toggle__sun { display: none; }
  :root[data-theme="dark"] .theme-toggle {
    & .theme-toggle__sun { display: block; }
    & .theme-toggle__moon { display: none; }
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-toggle {
      & .theme-toggle__sun { display: block; }
      & .theme-toggle__moon { display: none; }
    }
  }

  .burger { @media (width >= 1024px) { display: none; } }

  /* Reading progress (scroll-driven, articles only) */
  .read-progress { display: none; }
  @supports (animation-timeline: scroll()) {
    .is-article .read-progress {
      display: block;
      position: absolute;
      inset: auto 0 -1px;
      block-size: 3px;
      background: linear-gradient(90deg, var(--accent), var(--gold));
      transform-origin: 0 50%;
      animation: read-progress linear both;
      animation-timeline: scroll(root block);
    }
  }
  @keyframes read-progress { from { scale: 0 1; } to { scale: 1 1; } }

  /* ---- Dialogs (drawer + search) ---- */
  dialog {
    padding: 0;
    border: 0;
    color: var(--text);
    background: var(--surface);
    max-inline-size: none;
    max-block-size: none;

    &::backdrop {
      background: rgb(8 10 14 / .5);
      backdrop-filter: blur(4px);
      opacity: 0;
      transition: opacity .25s var(--ease), display .25s allow-discrete, overlay .25s allow-discrete;
    }
    &[open]::backdrop { opacity: 1; }
    @starting-style { &[open]::backdrop { opacity: 0; } }
  }

  .drawer {
    position: fixed;
    inset: 0 0 0 auto;
    inline-size: min(380px, 92vw);
    block-size: 100dvh;
    padding: 16px 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow: auto;
    translate: 100% 0;
    transition: translate .3s var(--ease), display .3s allow-discrete, overlay .3s allow-discrete;
    &:not([open]) { display: none; }
    &[open] { translate: 0; }
    @starting-style { &[open] { translate: 100% 0; } }
  }
  .drawer__head { display: flex; align-items: center; justify-content: space-between; }
  .drawer__nav {
    & > ul > li { border-block-end: 1px solid var(--line); }
    & a, & summary {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 14px 4px;
      font-weight: 650;
      text-decoration: none;
      cursor: pointer;
      list-style: none;
      &::-webkit-details-marker { display: none; }
      &[aria-current] { color: var(--accent); }
    }
    & summary .icon { inline-size: 18px; block-size: 18px; transition: rotate .2s var(--ease); }
    & details[open] summary .icon { rotate: 180deg; }
    & details ul { padding: 0 0 10px 12px; }
    & details a { padding: 9px 4px; font-weight: 500; color: var(--muted); }
  }
  .drawer__secondary {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-block-start: 16px;
    & a { padding: 6px 12px !important; border-radius: 999px; background: var(--bg-alt); font-size: var(--fs-sm); font-weight: 550 !important; }
  }
  .drawer__note { margin-block-start: auto; display: flex; gap: 10px; align-items: center; font-size: var(--fs-xs); color: var(--muted); }

  .search-dialog {
    margin: min(12vh, 96px) auto auto;
    inline-size: min(680px, 100% - 24px);
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    border: 1px solid var(--line);
    overflow: hidden;
    opacity: 0;
    translate: 0 -8px;
    transition: opacity .2s var(--ease), translate .2s var(--ease), display .2s allow-discrete, overlay .2s allow-discrete;
    &[open] { opacity: 1; translate: 0; }
    @starting-style { &[open] { opacity: 0; translate: 0 -8px; } }
  }
  .search-dialog__form {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 12px 12px 18px;
    border-block-end: 1px solid var(--line);
    & > .icon { color: var(--faint); }
    & input {
      flex: 1;
      min-inline-size: 0;
      border: 0;
      background: none;
      font-size: 1.0625rem;
      padding-block: 10px;
      outline: none;
      &::-webkit-search-cancel-button { display: none; }
    }
  }
  .search-dialog__results {
    max-block-size: min(60dvh, 520px);
    overflow: auto;
    padding: 8px;
    &:empty { display: none; }
    & h3 { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--faint); padding: 10px 10px 6px; }
    & ul { list-style: none; padding: 0; }
    & a {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 8px 10px;
      border-radius: var(--radius-sm);
      text-decoration: none;
      &:hover, &[aria-selected="true"] { background: var(--bg-alt); }
    }
    & img { inline-size: 56px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; background: var(--tile); }
    & small { display: block; color: var(--muted); font-size: var(--fs-xs); }
    & .search-empty { padding: 18px; color: var(--muted); text-align: center; }
  }

  /* ---- Breadcrumbs ---- */
  .crumbs {
    margin-block-end: 18px;
    font-size: .8125rem;
    color: var(--faint);
    & ol { display: flex; flex-wrap: wrap; gap: 4px; }
    & li { display: flex; align-items: center; gap: 4px; }
    & li:not(:last-child)::after { content: "›"; opacity: .7; }
    & a { text-decoration: none; &:hover { color: var(--text); text-decoration: underline; } }
    & [aria-current] { color: var(--muted); }
  }
  .entry-hero--center .crumbs ol, .hero .crumbs ol { justify-content: center; }

  /* ---- Hero (front) ---- */
  .hero {
    position: relative;
    overflow: clip;
    padding-block: clamp(56px, 9vw, 112px) clamp(48px, 7vw, 80px);
    text-align: center;
    background:
      radial-gradient(60% 55% at 50% 0%, var(--accent-soft), transparent 70%),
      radial-gradient(40% 40% at 90% 100%, color-mix(in oklab, var(--felt) 10%, transparent), transparent 70%),
      var(--bg);
    border-block-end: 1px solid var(--line);
  }
  .hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 22px;
    max-inline-size: 860px;
  }
  .hero__title { font-size: var(--fs-hero); font-weight: 850; letter-spacing: -.035em; line-height: 1.02; }
  .hero__lead { font-size: var(--fs-lg); color: var(--muted); max-inline-size: 620px; }
  .hero__note {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: var(--fs-xs);
    color: var(--faint);
    & a { color: inherit; }
  }

  .hero__search {
    display: flex;
    align-items: center;
    gap: 10px;
    inline-size: min(100%, 580px);
    margin-inline: auto;
    padding: 6px 6px 6px 20px;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    box-shadow: var(--shadow);
    transition: border-color .2s, box-shadow .2s;
    &:focus-within { border-color: var(--accent); box-shadow: var(--shadow), var(--ring); }
    & > .icon { color: var(--faint); }
    & input {
      flex: 1;
      min-inline-size: 0;
      border: 0;
      background: none;
      outline: none;
      block-size: 44px;
      font-size: var(--fs-base);
    }
  }

  .hero__deco { position: absolute; inset: 0; pointer-events: none; @media (width < 900px) { display: none; } }
  .hero__fan {
    position: absolute;
    inset-block-start: 22%;
    display: flex;
    & .mini-card { inline-size: 92px; & b { font-size: 1.5rem; } & .icon { inline-size: 38px; block-size: 38px; } }
    & .mini-card + .mini-card { margin-inline-start: -46px; }
  }
  .hero__fan--left {
    inset-inline-start: max(2vw, calc(50% - 640px));
    & .mini-card:first-child { rotate: -16deg; translate: 0 10px; }
    & .mini-card:last-child { rotate: -4deg; }
  }
  .hero__fan--right {
    inset-inline-end: max(2vw, calc(50% - 640px));
    & .mini-card:first-child { rotate: 5deg; }
    & .mini-card:last-child { rotate: 17deg; translate: 0 10px; }
  }
  .hero__chip { position: absolute; --size: 54px; animation: float 7s ease-in-out infinite; }
  .hero__chip--1 { inset: 64% auto auto 12%; }
  .hero__chip--2 { inset: 72% auto auto 17%; --size: 38px; animation-delay: -2s; }
  .hero__chip--3 { inset: 66% 12% auto auto; animation-delay: -4s; }
  .hero__chip--4 { inset: 14% 22% auto auto; --size: 30px; animation-delay: -1s; }
  @keyframes float {
    50% { translate: 0 -12px; rotate: 25deg; }
  }

  /* Stats */
  .stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px clamp(20px, 5vw, 48px);
    margin-block-start: 8px;
  }
  @media (width < 560px) {
    .stats:not(.stats--inline) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); inline-size: 100%; }
  }
  .stats__item {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    & dd { font: 850 clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem)/1 var(--font-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
    & dt { font-size: .6875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-block-start: 6px; }
  }
  .stats--compact dd { font-size: 1.75rem; }
  .stats--inline { justify-content: start; margin-block-start: 16px; & .stats__item { align-items: start; } }

  /* ---- Section head ---- */
  .section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-block-end: clamp(20px, 3vw, 32px);
  }
  .section-head__title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: var(--fs-h2);
    & .suit { font-size: 1rem; }
  }
  .section-head__lead { color: var(--muted); margin-block-start: 6px; }

  /* ---- Playing cards (markets) ---- */
  .pcard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
    gap: clamp(14px, 2vw, 24px);
  }
  .pcard-grid--compact { grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); }

  .pcard {
    --ink: var(--black-suit);
    position: relative;
    display: grid;
    grid-template-rows: auto 1fr auto auto;
    aspect-ratio: 5 / 7;
    padding: 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    color: var(--text);
    text-decoration: none;
    isolation: isolate;
    transition: translate .35s var(--ease-spring), rotate .35s var(--ease-spring), box-shadow .3s var(--ease), border-color .3s;

    &::after {
      content: "";
      position: absolute;
      inset: 6px;
      border: 1px solid var(--line);
      border-radius: 11px;
      pointer-events: none;
      z-index: -1;
    }
    &:is(a):hover { translate: 0 -8px; rotate: -1.5deg; box-shadow: var(--shadow-hover); border-color: var(--line-strong); }
    &:is(a):nth-child(even):hover { rotate: 1.5deg; }
  }
  .pcard--red { --ink: var(--red-suit); }
  .pcard__corner {
    display: grid;
    justify-items: center;
    inline-size: max-content;
    gap: 2px;
    color: var(--ink);
    & b { font: 850 1rem/1 var(--font-display); letter-spacing: -.02em; }
    & .icon { inline-size: 14px; block-size: 14px; }
  }
  .pcard__corner--end { justify-self: end; rotate: 180deg; }
  .pcard__center {
    display: grid;
    place-items: center;
    position: relative;
    & .pcard__flag {
      inline-size: min(58%, 110px);
      aspect-ratio: 1;
      border-radius: 50%;
      background: var(--flag, var(--felt));
      box-shadow: inset 0 0 0 3px var(--surface), 0 0 0 1px var(--line-strong), var(--shadow);
      grid-area: 1 / 1;
    }
    & .pcard__suit {
      grid-area: 1 / 1;
      inline-size: 30px;
      block-size: 30px;
      translate: 150% 120%;
      color: var(--ink);
      filter: drop-shadow(0 2px 2px rgb(0 0 0 / .15));
    }
  }
  /* Joker (international market): the jester cap replaces the suit, a touch larger to stay readable. */
  .pcard--joker {
    & .pcard__corner .icon { inline-size: 16px; block-size: 16px; }
    & .pcard__center .pcard__suit { inline-size: 36px; block-size: 36px; translate: 125% 100%; }
  }
  .pcard__body { display: grid; gap: 4px; text-align: center; padding-block: 6px 4px; }
  .pcard__title { font-weight: 750; font-size: 1.0625rem; line-height: 1.2; text-wrap: balance; }
  .pcard__excerpt { font-size: .8125rem; color: var(--muted); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .pcard--static { inline-size: clamp(150px, 18vw, 210px); rotate: 4deg; box-shadow: var(--shadow-hover); grid-template-rows: auto 1fr auto; }

  .flag-dot {
    display: inline-block;
    inline-size: 14px;
    block-size: 14px;
    border-radius: 50%;
    background: var(--flag);
    box-shadow: 0 0 0 1px var(--line-strong);
  }

  /* ---- Licence cards (chips) ---- */
  .lcard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
    gap: 14px;
  }
  .lcard {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px 14px 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-decoration: none;
    transition: translate .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
    & .chip { --size: 64px; transition: rotate .6s var(--ease-spring); }
    &:hover { translate: 0 -3px; box-shadow: var(--shadow-hover); border-color: color-mix(in oklab, var(--chip) 40%, var(--line)); }
    &:hover .chip { rotate: 72deg; }
  }
  .lcard__body { display: grid; gap: 4px; flex: 1; min-inline-size: 0; }
  .lcard__title { font-weight: 700; line-height: 1.25; }
  .lcard__region { display: inline-flex; align-items: center; gap: 5px; font-size: .8125rem; color: var(--muted); & .icon { inline-size: 14px; block-size: 14px; color: var(--chip); } }
  .lcard__arrow { color: var(--faint); inline-size: 18px; block-size: 18px; transition: translate .2s var(--ease), color .2s; }
  .lcard:hover .lcard__arrow { translate: 4px 0; color: var(--text); }

  /* ---- Post cards ---- */
  .post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: clamp(16px, 2.4vw, 28px);
  }
  .post-card {
    display: grid;
    grid-template-rows: auto 1fr;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: translate .25s var(--ease), box-shadow .25s var(--ease);
    &:hover { translate: 0 -4px; box-shadow: var(--shadow-hover); }
    &:has(.post-card__title a:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
  }
  .post-card__media {
    display: block;
    aspect-ratio: 16 / 9;
    background: var(--bg-alt);
    overflow: hidden;
    & img { inline-size: 100%; block-size: 100%; object-fit: cover; transition: scale .5s var(--ease); }
  }
  .post-card:hover .post-card__media img { scale: 1.04; }
  .post-card__placeholder {
    display: grid;
    place-items: center;
    block-size: 100%;
    color: var(--faint);
    background:
      radial-gradient(circle at 30% 30%, var(--accent-soft), transparent 60%),
      var(--bg-alt);
    & .icon { inline-size: 44px; block-size: 44px; }
  }
  .post-card__body { display: flex; flex-direction: column; align-items: start; gap: 10px; padding: 18px 20px 20px; }
  .post-card__title {
    font-size: 1.125rem;
    line-height: 1.3;
    & a { text-decoration: none; &::after { content: ""; position: absolute; inset: 0; } }
  }
  .post-card { position: relative; }
  .post-card__excerpt { color: var(--muted); font-size: .9375rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .post-card__meta { margin-block-start: auto; display: flex; gap: 12px; font-size: var(--fs-xs); color: var(--faint); }

  /* ---- Provider tiles ---- */
  .provider-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr));
    gap: 14px;
  }
  .provider-tiles--lg { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
  .provider-tile {
    position: relative;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 6px;
    aspect-ratio: 16 / 9;
    padding: 16px;
    border-radius: var(--radius);
    background: var(--tile);
    color: #fff;
    text-decoration: none;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: translate .25s var(--ease), box-shadow .25s var(--ease);
    &::before {
      content: "";
      position: absolute;
      inset: auto -30% -60% auto;
      inline-size: 70%;
      aspect-ratio: 1;
      border-radius: 50%;
      background: repeating-conic-gradient(rgb(255 255 255 / .05) 0 22.5deg, transparent 0 45deg);
    }
    &:hover { translate: 0 -3px; box-shadow: var(--shadow-hover); }
  }
  .provider-tile__logo { max-block-size: 62%; max-inline-size: 80%; inline-size: auto; object-fit: contain; }
  .provider-tile__name { font-weight: 750; font-size: 1.0625rem; text-align: center; }
  .provider-tile__count { font-size: var(--fs-xs); color: rgb(255 255 255 / .65); }

  /* ---- Entry hero ---- */
  .entry-hero {
    padding-block: clamp(28px, 5vw, 56px) clamp(24px, 4vw, 44px);
    background:
      radial-gradient(50% 80% at 0% 0%, var(--accent-soft), transparent 70%),
      var(--bg);
    border-block-end: 1px solid var(--line);
  }
  .entry-hero--center { text-align: center; & .eyebrow, & .entry-meta { justify-content: center; } & .entry-hero__lead { margin-inline: auto; } }
  .entry-hero--markets { background: radial-gradient(50% 80% at 100% 0%, color-mix(in oklab, var(--felt) 12%, transparent), transparent 70%), var(--bg); }
  .entry-hero--licences { background: radial-gradient(50% 80% at 100% 0%, var(--gold-soft), transparent 70%), var(--bg); }
  .entry-hero__grid {
    display: grid;
    gap: 32px;
    align-items: center;
    & > div:first-child { display: grid; gap: 14px; max-inline-size: 820px; }
    @media (width >= 900px) {
      &:has(> :nth-child(2)) { grid-template-columns: 1fr auto; }
    }
    @media (width < 900px) { & > :nth-child(2) { display: none; } }
  }
  .entry-hero__title { font-size: var(--fs-h1); font-weight: 850; letter-spacing: -.03em; }
  .entry-hero__lead { font-size: var(--fs-lg); color: var(--muted); max-inline-size: 680px; }
  .entry-hero--center .container { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }

  .entry-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 18px;
    font-size: .875rem;
    color: var(--muted);
  }
  .entry-meta__author { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text); text-decoration: none; &:hover span:last-child { text-decoration: underline; } }
  .entry-meta__item { display: inline-flex; align-items: center; gap: 6px; & .icon { inline-size: 16px; block-size: 16px; color: var(--faint); } }

  .entry-figure { margin-block-end: 28px; & img { inline-size: 100%; border-radius: var(--radius); } }
  .entry-footer { display: grid; gap: 24px; margin-block-start: 48px; }

  /* ---- Avatars ---- */
  .avatar {
    --size: 32px;
    display: inline-grid;
    place-items: center;
    inline-size: var(--size);
    block-size: var(--size);
    aspect-ratio: 1;
    align-self: start;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--felt), var(--felt-deep));
    color: #fff;
    font: 750 calc(var(--size) * .38)/1 var(--font-display);
    overflow: hidden;
    flex: none;
    box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--gold);
    & img { inline-size: 100%; block-size: 100%; object-fit: cover; object-position: 50% 20%; }
  }
  .avatar--lg { --size: 72px; }
  .avatar--xl { --size: clamp(96px, 14vw, 150px); box-shadow: 0 0 0 4px var(--surface), 0 0 0 6px var(--gold), var(--shadow-hover); }

  /* ---- Author box ---- */
  .author-box {
    display: flex;
    gap: 20px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
      radial-gradient(40% 60% at 100% 0%, var(--gold-soft), transparent 70%),
      var(--surface);
    box-shadow: var(--shadow);
    @media (width < 560px) { flex-direction: column; }
  }
  .author-box__body { display: grid; gap: 6px; align-content: start; }
  .author-box__name { font-size: 1.125rem; font-weight: 750; & a { text-decoration: none; &:hover { text-decoration: underline; } } }
  .author-box__role { color: var(--accent); font-size: var(--fs-sm); font-weight: 600; }
  .author-box__bio { color: var(--muted); font-size: .9375rem; }

  .author-hero__grid {
    display: flex;
    align-items: center;
    gap: clamp(20px, 4vw, 40px);
    & > div { display: grid; gap: 10px; }
    @media (width < 640px) { flex-direction: column; text-align: center; & .eyebrow, & .stats { justify-content: center; } }
  }

  .link-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr));
    gap: 8px 24px;
    & li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-block-end: 1px solid var(--line); }
    & a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; &:hover { color: var(--accent); } & .icon { inline-size: 16px; block-size: 16px; color: var(--accent); } }
    & time { font-size: var(--fs-xs); color: var(--faint); white-space: nowrap; }
  }

  /* ---- Provider hero ---- */
  .provider-hero {
    display: grid;
    gap: 28px;
    align-items: center;
    @media (width >= 760px) { grid-template-columns: 220px 1fr; }
    & > div:last-child { display: grid; gap: 12px; }
  }
  .provider-hero__logo {
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 10;
    border-radius: var(--radius);
    background: var(--tile);
    color: #fff;
    padding: 20px;
    box-shadow: var(--shadow-hover);
    & img { max-block-size: 100%; inline-size: auto; object-fit: contain; }
    & .icon { inline-size: 56px; block-size: 56px; }
  }
  .provider-hero__facts { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
  .fact { display: inline-flex; align-items: center; gap: 8px; font-size: .9375rem; }

  /* ---- TOC ---- */
  .toc {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    padding: 6px;
    font-size: .875rem;

    & summary {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 10px 12px;
      font-weight: 750;
      cursor: pointer;
      list-style: none;
      &::-webkit-details-marker { display: none; }
      & .icon { inline-size: 18px; block-size: 18px; color: var(--accent); }
    }
    & ol { counter-reset: toc; padding: 0 6px 8px; }
    & ol ol { padding: 2px 0 4px 26px; }
    & > details > ol > li { counter-increment: toc; }
    & a {
      display: flex;
      gap: 10px;
      padding: 7px 8px;
      border-radius: 10px;
      color: var(--muted);
      text-decoration: none;
      line-height: 1.35;
      transition: color .15s, background-color .15s;
      &:hover { color: var(--text); background: var(--bg-alt); }
      &.is-active { color: var(--text); background: var(--accent-soft); font-weight: 600; }
    }
    & > details > ol > li > a::before {
      content: counter(toc);
      display: inline-grid;
      place-items: center;
      flex: none;
      inline-size: 20px;
      block-size: 20px;
      border-radius: 50%;
      font-size: .6875rem;
      font-weight: 750;
      color: var(--muted);
      border: 1.5px dashed var(--line-strong);
    }
    & > details > ol > li > a.is-active::before { background: var(--accent); border-color: var(--accent); color: #fff; }
    @media (width >= 1100px) { & summary { pointer-events: none; } }
  }
  .toc__count { margin-inline-start: auto; font-size: var(--fs-xs); color: var(--faint); font-weight: 600; }

  /* ---- Share ---- */
  .share { display: flex; flex-wrap: wrap; gap: 8px; }

  /* ---- Pagination ---- */
  .pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-block-start: 40px;
    & ol { display: flex; gap: 6px; align-items: center; }
  }
  .pagination__step { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: var(--fs-sm); text-decoration: none; &:hover { background: var(--bg-alt); } & .icon { inline-size: 16px; block-size: 16px; } }
  .pagination__gap { color: var(--faint); padding-inline: 4px; }
  .chip-num {
    --c: var(--chip-red);
    display: inline-grid;
    place-items: center;
    inline-size: 40px;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 1.5px dashed var(--line-strong);
    font-weight: 700;
    font-size: var(--fs-sm);
    text-decoration: none;
    transition: border-color .2s, rotate .4s var(--ease-spring);
    &:is(a):hover { border-color: var(--c); color: var(--c); rotate: 45deg; }
    &.is-current {
      border: 0;
      color: #fff;
      background:
        radial-gradient(circle closest-side, var(--c) 0 62%, #fff 63% 67%, var(--c) 68% 74%, transparent 75%),
        repeating-conic-gradient(from 11.25deg, var(--c) 0 22.5deg, #fff 0 45deg);
      text-shadow: 0 1px 1px rgb(0 0 0 / .3);
    }
  }

  /* ---- Panels & forms ---- */
  .panel {
    padding: clamp(18px, 3vw, 28px);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    & > h2 { font-size: 1.25rem; margin-block-end: 16px; display: flex; align-items: center; gap: 10px; & .suit { font-size: .85rem; } }
  }

  .field {
    display: grid;
    gap: 6px;
    font-size: var(--fs-sm);
    font-weight: 600;
    & > span:first-child { color: var(--muted); }
  }
  :where(.field, .wpcf7-form, .comment-form) :is(input:not([type="checkbox"], [type="radio"], [type="submit"], [type="hidden"]), select, textarea) {
    inline-size: 100%;
    min-block-size: 46px;
    padding: 10px 14px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--surface);
    font-weight: 400;
    font-size: var(--fs-base);
    transition: border-color .2s, box-shadow .2s;
    &:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
    &:user-invalid { border-color: var(--chip-red); }
  }
  :where(.field, .wpcf7-form, .comment-form) textarea { field-sizing: content; min-block-size: 120px; resize: vertical; }
  :where(.field, .games__filters) select {
    appearance: none;
    padding-inline-end: 36px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a8f9c' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
  }

  /* Contact Form 7 */
  .wpcf7-form {
    display: grid;
    gap: 16px;
    & p { display: grid; gap: 6px; margin: 0 !important; font-weight: 600; font-size: var(--fs-sm); }
    & .wpcf7-submit {
      justify-self: start;
      min-block-size: 48px;
      padding: 12px 28px;
      border-radius: 999px;
      border: 0;
      background: var(--accent);
      color: #fff;
      font-weight: 700;
      cursor: pointer;
      &:hover { background: var(--accent-hover); }
    }
    & .wpcf7-not-valid-tip { color: var(--chip-red); font-size: var(--fs-xs); font-weight: 500; }
    & .wpcf7-response-output { margin: 0 !important; padding: 12px 16px !important; border-radius: var(--radius-sm); border: 1px solid var(--line) !important; font-weight: 500; }
    & .wpcf7-spinner { vertical-align: middle; }
  }

  /* ---- Comments ---- */
  .comments {
    margin-block-start: 56px;
    display: grid;
    gap: 24px;
    & > h2 { font-size: 1.5rem; display: flex; align-items: center; gap: 10px; }
  }
  .comments__list { display: grid; gap: 14px; & .comments__list { margin: 14px 0 0 clamp(16px, 4vw, 40px); } }
  .comment article { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); display: grid; gap: 10px; justify-items: start; }
  .comment.is-pending article { border-style: dashed; }
  .comment__head { display: flex; align-items: center; gap: 10px; font-size: var(--fs-sm); & time { color: var(--faint); } }
  .comment__author { font-weight: 700; }
  .comment__pending { font-size: var(--fs-xs); color: var(--gold); font-weight: 600; }
  .comment-form {
    display: grid;
    gap: 16px;
    padding: clamp(18px, 3vw, 28px);
    border-radius: var(--radius);
    background: var(--bg-alt);
    & h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 1.125rem; }
    & > button { justify-self: start; }
  }
  .comment-form__row { display: grid; gap: 16px; @media (width >= 640px) { grid-template-columns: 1fr 1fr; } }
  .comment-form__user { display: flex; align-items: center; gap: 6px; font-weight: 600; }

  /* ---- Not found & empty ---- */
  .not-found {
    padding-block: clamp(56px, 9vw, 110px);
    text-align: center;
    & .container { display: grid; gap: 20px; justify-items: center; }
  }
  .not-found__cards {
    display: flex;
    align-items: center;
    gap: 14px;
    & .mini-card:first-child { rotate: -10deg; }
    & .mini-card:last-child { rotate: 10deg; }
    & .chip { animation: spin 6s linear infinite; }
  }
  @keyframes spin { to { rotate: 1turn; } }
  .empty-state { display: grid; justify-items: center; gap: 10px; padding: 48px 16px; color: var(--muted); & .icon { inline-size: 40px; block-size: 40px; color: var(--faint); } }

  /* ---- Sitemap ---- */
  .sitemap { display: grid; gap: 24px; }
  .sitemap__cols {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    align-items: start;
    & ul { display: grid; gap: 6px; font-size: .9375rem; }
    & ul ul { padding: 6px 0 4px 16px; border-inline-start: 2px solid var(--line); margin-block-start: 4px; }
    & a { text-decoration: none; &:hover { color: var(--accent); text-decoration: underline; } }
  }
  .alphabet { display: flex; flex-wrap: wrap; gap: 6px; margin-block-end: 20px; & .chip-num { inline-size: 36px; } }
  .alphabet__group {
    padding-block: 14px;
    border-block-start: 1px solid var(--line);
    scroll-margin-top: calc(var(--header-h) + 16px);
    & h3 { font-size: 1.25rem; color: var(--accent); margin-block-end: 8px; }
    & ul { columns: 4 200px; column-gap: 24px; font-size: .9rem; }
    & li { break-inside: avoid; padding-block: 2px; }
    & a { text-decoration: none; &:hover { color: var(--accent); text-decoration: underline; } }
  }

  /* ---- /fournisseurs/: A–Z provider index ---- */
  .az__bar {
    position: sticky;
    inset-block-start: var(--header-h);
    z-index: 20;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 24px;
    padding-block: 14px;
    margin-block-end: 8px;
    background: color-mix(in oklab, var(--bg) 92%, transparent);
    backdrop-filter: saturate(1.4) blur(12px);
    border-block-end: 1px solid var(--line);
  }
  .has-admin-bar .az__bar { inset-block-start: calc(var(--header-h) + var(--wp-admin--admin-bar--height, 32px)); }
  .az__search {
    position: relative;
    flex: 0 1 260px;
    & .icon { position: absolute; inset: 50% auto auto 14px; translate: 0 -50%; inline-size: 18px; block-size: 18px; color: var(--faint); pointer-events: none; }
    & input {
      inline-size: 100%;
      min-block-size: 42px;
      padding: 8px 14px 8px 42px;
      border: 1px solid transparent;
      border-radius: 999px;
      background: var(--bg-alt);
      font-size: var(--fs-sm);
      transition: border-color .2s, background-color .2s, box-shadow .2s;
      &:focus { outline: none; background: var(--surface); border-color: var(--accent); box-shadow: var(--ring); }
    }
    @media (width < 640px) { flex-basis: 100%; }
  }
  .az__letters {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    /* Phones: one swipeable row so the sticky bar stays compact */
    @media (width < 640px) {
      flex-wrap: nowrap;
      overflow-x: auto;
      scrollbar-width: none;
      overscroll-behavior-x: contain;
      margin-inline: calc(var(--gutter) * -1);
      padding-inline: var(--gutter);
      mask-image: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent);
      & :is(a, span) { flex: none; }
    }
    & :is(a, span) {
      display: inline-grid;
      place-items: center;
      min-inline-size: 26px;
      block-size: 28px;
      padding-inline: 4px;
      border-radius: 8px;
      font-size: .8125rem;
      font-weight: 750;
      text-decoration: none;
    }
    & a { color: var(--text); transition: background-color .15s, color .15s; &:hover, &.is-active { background: var(--accent-soft); color: var(--accent); } }
    & span, & a.is-empty { color: var(--faint); opacity: .45; pointer-events: none; }
  }
  .az__group {
    padding-block: 26px 6px;
    scroll-margin-top: calc(var(--header-h) + 84px);
  }
  .az__letter {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-block-end: 18px;
    font-size: 1.75rem;
    font-weight: 850;
    color: var(--accent);
    &::after { content: ""; flex: 1; block-size: 1px; background: var(--line); }
  }
  .az__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100% / 2 - 10px, 170px), 1fr));
    gap: 20px;
  }
  .az__tile {
    display: grid;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    border-radius: var(--radius);
    &:focus-visible { outline-offset: 4px; }
  }
  .az__media {
    display: grid;
    place-items: center;
    aspect-ratio: 3 / 2;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--tile);
    box-shadow: var(--shadow);
    transition: translate .25s var(--ease), box-shadow .25s var(--ease);
    & img { inline-size: 100%; block-size: 100%; object-fit: cover; transition: scale .4s var(--ease); }
  }
  .az__media--empty {
    background: var(--surface-2);
    border: 1px solid var(--line);
    box-shadow: none;
  }
  .az__fallback {
    padding: 12px;
    text-align: center;
    font-weight: 800;
    font-size: 1rem;
    line-height: 1.2;
    color: var(--text);
  }
  .az__tile:hover .az__media { translate: 0 -4px; box-shadow: var(--shadow-hover); }
  .az__tile:hover .az__media img { scale: 1.04; }
  .az__meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    min-inline-size: 0;
  }
  .az__name { font-size: .9375rem; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .az__count { flex: none; font-size: .8125rem; color: var(--faint); font-variant-numeric: tabular-nums; }

  /* ---- "Besoin d'aide ?" (helplines) ---- */
  .helplines { border-block-start: 1px solid var(--line); }
  .helpline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100% / 2 - 6px, 150px), 1fr));
    gap: 12px;
  }
  .helpline {
    --hl: var(--accent);
    position: relative;
    display: grid;
    align-content: start;
    gap: 4px;
    padding: 10px 10px 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    transition: translate .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
    &:hover { translate: 0 -3px; box-shadow: var(--shadow-hover); border-color: color-mix(in oklab, var(--hl) 35%, var(--line)); }
    &:has(a:focus-visible) { outline: 2px solid var(--hl); outline-offset: 2px; }
  }
  .helpline__media {
    display: grid;
    place-items: center;
    block-size: 64px;
    margin-block-end: 6px;
    border-radius: 10px;
    background: color-mix(in oklab, var(--hl) 14%, var(--surface));
  }
  .helpline__badge {
    display: grid;
    place-items: center;
    min-inline-size: 42px;
    block-size: 42px;
    padding-inline: 8px;
    border-radius: 999px;
    background: var(--hl);
    color: #fff;
    font: 800 .8125rem/1 var(--font-display);
    letter-spacing: .01em;
    box-shadow: 0 4px 12px color-mix(in oklab, var(--hl) 40%, transparent);
    transition: scale .3s var(--ease-spring);
  }
  .helpline:hover .helpline__badge { scale: 1.08; }
  .helpline__name {
    font-size: .875rem;
    font-weight: 750;
    letter-spacing: 0;
    line-height: 1.3;
    padding-inline: 2px;
    & a { text-decoration: none; &::after { content: ""; position: absolute; inset: 0; border-radius: inherit; } }
    & a:focus-visible { outline: none; }
  }
  .helpline__meta {
    padding-inline: 2px;
    font-size: .75rem;
    color: var(--faint);
  }
  .helpline__phone {
    position: relative;
    z-index: 1;
    color: inherit;
    text-decoration: none;
    font-variant-numeric: tabular-nums;
    &:hover { color: var(--hl); text-decoration: underline; }
  }

  /* ---- Footer (felt) ---- */
  .felt {
    --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background:
      var(--noise),
      radial-gradient(120% 90% at 50% 0%, var(--felt), var(--felt-deep) 70%);
    color: #e3efe8;
  }
  .site-footer {
    padding-block: clamp(48px, 7vw, 72px) 28px;
    font-size: .9375rem;
    & a { color: inherit; text-decoration: none; &:hover { color: var(--gold); text-decoration: underline; } }
    & .brand__tagline { color: rgb(255 255 255 / .6); }
  }
  .site-footer__grid {
    display: grid;
    gap: 36px 28px;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
    @media (width >= 1000px) { grid-template-columns: 1.6fr repeat(3, 1fr); }
  }
  .site-footer__brand { display: grid; gap: 16px; align-content: start; & p { color: rgb(255 255 255 / .72); max-inline-size: 36ch; } }
  .site-footer__col {
    & h2 {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-block-end: 14px;
      font-size: .8125rem;
      letter-spacing: .08em;
      text-transform: uppercase;
      color: var(--gold);
      & .icon { inline-size: 14px; block-size: 14px; }
    }
    & ul { display: grid; gap: 8px; }
    & a { color: rgb(255 255 255 / .82); }
    & h2 a { color: inherit; }
  }
  /* "Besoin d'aide ?" band on the felt */
  .helplines--footer {
    margin-block-start: 44px;
    padding-block-start: 36px;
    border-block-start: 1px solid rgb(255 255 255 / .12);
    scroll-margin-top: calc(var(--header-h) + 16px);

    & .helplines__head {
      display: grid;
      gap: 6px;
      margin-block-end: 20px;
      & h2 {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 1.375rem;
        color: #fff;
        & .icon { inline-size: 20px; block-size: 20px; color: #ff6b7d; }
      }
      & p { font-size: .875rem; color: rgb(255 255 255 / .68); max-inline-size: 72ch; }
    }

    & .helpline {
      background: rgb(255 255 255 / .06);
      border-color: rgb(255 255 255 / .12);
      box-shadow: none;
      backdrop-filter: blur(2px);
      &:hover {
        background: rgb(255 255 255 / .1);
        border-color: color-mix(in oklab, var(--hl) 60%, white 10%);
        box-shadow: 0 10px 26px rgb(0 0 0 / .28);
      }
    }
    & .helpline__media {
      background:
        radial-gradient(circle at 50% 50%, color-mix(in oklab, var(--hl) 45%, transparent), transparent 70%),
        rgb(0 0 0 / .18);
    }
    & .helpline__badge { box-shadow: 0 0 0 3px rgb(255 255 255 / .9), 0 6px 16px rgb(0 0 0 / .35); }
    & .helpline__name a { color: #fff; &:hover { color: #fff; text-decoration: none; } }
    & .helpline__meta { color: rgb(255 255 255 / .6); }
    & .helpline__phone { color: var(--gold); font-weight: 650; &:hover { color: #fff; } }
  }
  .responsible {
    display: flex;
    gap: 20px;
    align-items: start;
    margin-block-start: 44px;
    padding: 22px 24px;
    border: 1px solid rgb(255 255 255 / .14);
    border-radius: var(--radius);
    background: rgb(0 0 0 / .16);
    & h2 { font-size: 1rem; margin-block-end: 6px; }
    & p { font-size: .8125rem; color: rgb(255 255 255 / .7); line-height: 1.65; }
    & .badge-18 { background: #fff; }
  }
  .site-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    margin-block-start: 28px;
    padding-block-start: 20px;
    border-block-start: 1px solid rgb(255 255 255 / .12);
    font-size: .8125rem;
    color: rgb(255 255 255 / .6);
  }
  .site-footer__legal {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin: 0;
    padding: 0;
    list-style: none;
    & a, & .site-footer__link { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
    & a:hover, & .site-footer__link:hover { color: #fff; }
  }
  .site-footer__link {
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    cursor: pointer;
  }

  /* ---- Cookie consent banner (views/partials/consent.php + app.js) ---- */
  .consent {
    position: fixed;
    inset: auto 0 0;
    z-index: 900;
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 16px 28px;
    margin: 0 auto max(12px, env(safe-area-inset-bottom));
    inline-size: min(1100px, calc(100% - 24px));
    padding: 20px 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    box-shadow: 0 18px 50px rgb(0 0 0 / .28);
    max-block-size: calc(100dvh - 24px);
    overflow-y: auto;
    &[hidden] { display: none; }
  }
  .consent__body { flex: 1 1 520px; min-inline-size: 0; display: grid; gap: 10px; }
  .consent__title { font-size: 1.0625rem; margin: 0; }
  .consent__text { margin: 0; font-size: .875rem; line-height: 1.6; color: var(--muted); & a { color: var(--text); } }
  .consent__choices { display: grid; gap: 10px; margin-block-start: 4px; &[hidden] { display: none; } }
  .consent__choice {
    display: flex;
    gap: 12px;
    align-items: start;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    & input { margin-block-start: 3px; inline-size: 18px; block-size: 18px; accent-color: var(--accent); flex: none; }
    & span { display: grid; gap: 2px; font-size: .875rem; }
    & small { color: var(--muted); font-size: .8125rem; line-height: 1.5; }
  }
  .consent__actions { display: flex; flex-wrap: wrap; gap: 10px; & [hidden] { display: none; } }
  @media (width < 640px) {
    .consent__actions { inline-size: 100%; & .btn { flex: 1 1 auto; } }
  }

  /* Information notice under forms (comments, Contact Form 7) */
  .form-notice { margin: 4px 0 12px; font-size: .8125rem; line-height: 1.55; color: var(--muted); & a { color: inherit; text-decoration: underline; } }
}

/* --------------------------------------------------------------------------
   Content (prose) — editor content, including legacy block classes
   -------------------------------------------------------------------------- */
@layer content {
  .prose {
    font-size: var(--fs-prose);
    line-height: 1.72;
    color: var(--text);

    & > * + * { margin-block-start: 1.1em; }
    & > :first-child { margin-block-start: 0; }

    & h2 {
      font-size: var(--fs-h2);
      margin-block-start: 2.1em;
      padding-block-start: .2em;
      scroll-margin-top: calc(var(--header-h) + 20px);
      outline: none;
      &::before {
        content: "";
        display: block;
        inline-size: 36px;
        block-size: 4px;
        margin-block-end: 14px;
        border-radius: 4px;
        background: linear-gradient(90deg, var(--accent) 0 60%, var(--gold) 60%);
      }
    }
    & h3 { font-size: var(--fs-h3); margin-block-start: 1.8em; scroll-margin-top: calc(var(--header-h) + 20px); outline: none; }
    & h4 { font-size: 1.0625rem; margin-block-start: 1.6em; }
    & :is(h2, h3, h4) + * { margin-block-start: .6em; }

    & a:not([class*="button"], .btn) {
      color: var(--accent);
      text-decoration-color: color-mix(in oklab, var(--accent) 40%, transparent);
      &:hover { text-decoration-color: currentColor; }
    }
    & a.is-external::after {
      content: "↗";
      font-size: .75em;
      margin-inline-start: .15em;
      vertical-align: super;
      line-height: 0;
    }

    & strong { font-weight: 700; }

    & :is(ul, ol):not([role]) { padding-inline-start: 1.4em; }
    & li + li { margin-block-start: .4em; }
    & ul:not([role]) > li::marker { content: "◆  "; color: var(--accent); font-size: .7em; }
    & ol:not([role]) > li::marker { font-weight: 750; color: var(--accent); }

    & img { border-radius: var(--radius-sm); }
    & figure { margin-inline: 0; }
    & figcaption { margin-block-start: 8px; font-size: var(--fs-sm); color: var(--muted); text-align: center; }

    & blockquote {
      position: relative;
      padding: 22px 24px 22px 28px;
      border-radius: var(--radius);
      background: linear-gradient(135deg, var(--gold-soft), transparent 70%), var(--surface-2);
      border-inline-start: 4px solid var(--gold);
      font-size: 1.0625rem;
      & > * + * { margin-block-start: .6em; }
      & cite { display: block; font-size: var(--fs-sm); font-style: normal; font-weight: 650; color: var(--muted); }
    }

    & hr {
      border: 0;
      margin-block: 2.4em;
      text-align: center;
      color: var(--faint);
      overflow: visible;
      &::after { content: "♠   ♥   ♦   ♣"; letter-spacing: .2em; font-size: .9rem; }
    }

    & code { font-size: .9em; padding: .1em .35em; border-radius: 6px; background: var(--bg-alt); }

    /* Tables */
    & .table-wrap {
      overflow-x: auto;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      background: var(--surface);
      scrollbar-width: thin;
      overscroll-behavior-x: contain;
      &:focus-visible { outline: 2px solid var(--accent); }
    }
    & table {
      inline-size: 100%;
      border-collapse: separate;
      border-spacing: 0;
      font-size: .9375rem;
      line-height: 1.5;
      min-inline-size: 560px;
    }
    & :is(th, td) { padding: 12px 16px; text-align: start; vertical-align: top; border-block-end: 1px solid var(--line); }
    & thead th {
      position: sticky;
      inset-block-start: 0;
      background: var(--surface-2);
      font-size: .75rem;
      font-weight: 750;
      letter-spacing: .06em;
      text-transform: uppercase;
      color: var(--muted);
      white-space: nowrap;
    }
    & tbody tr:nth-child(even) { background: color-mix(in oklab, var(--bg-alt) 60%, transparent); }
    & tbody tr:hover { background: var(--accent-soft); }
    & tbody tr:last-child :is(th, td) { border-block-end: 0; }
    & tbody td:first-child { font-weight: 650; }

    /* FAQ accordions (<details>) */
    & details.faq {
      border: 1px solid var(--line);
      border-radius: var(--radius-sm);
      background: var(--surface);
      transition: border-color .2s, box-shadow .2s;
      & + details.faq { margin-block-start: 10px; }
      &[open] { border-color: var(--line-strong); box-shadow: var(--shadow); }

      & summary {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 16px 18px;
        font-weight: 700;
        cursor: pointer;
        list-style: none;
        &::-webkit-details-marker { display: none; }
        &::after {
          content: "";
          margin-inline-start: auto;
          flex: none;
          inline-size: 26px;
          block-size: 26px;
          border-radius: 50%;
          background:
            linear-gradient(currentColor 0 0) center / 11px 2px no-repeat,
            linear-gradient(currentColor 0 0) center / 2px 11px no-repeat,
            var(--bg-alt);
          color: var(--accent);
          transition: rotate .25s var(--ease), background-color .2s;
        }
      }
      &[open] summary::after { rotate: 135deg; }
      &::details-content {
        block-size: 0;
        overflow: clip;
        transition: block-size .3s var(--ease), content-visibility .3s allow-discrete;
      }
      &[open]::details-content { block-size: auto; }
      & > :not(summary) { padding-inline: 18px; }
      & > :last-child { padding-block-end: 16px; }
    }

    /* Legacy block-editor classes still present in stored content */
    & .has-text-align-center { text-align: center; }
    & .has-text-align-right { text-align: end; }
    & .has-large-font-size { font-size: 1.5rem; font-weight: 750; letter-spacing: -.02em; }
    & .has-medium-font-size { font-size: 1.25rem; }
    & .has-small-font-size { font-size: .875rem; }
    & .wp-block-image, & .wp-block-table { margin-inline: 0; }
    & .aligncenter { margin-inline: auto; }
    & .alignleft { float: left; margin: 0 1.2em 1em 0; }
    & .alignright { float: right; margin: 0 0 1em 1.2em; }
    & .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
    & .wp-block-button__link {
      display: inline-flex;
      padding: 12px 24px;
      border-radius: 999px;
      background: var(--accent);
      color: #fff;
      font-weight: 700;
      text-decoration: none;
    }
    & .wp-block-columns { display: grid; gap: 24px; @media (width >= 760px) { grid-auto-flow: column; grid-auto-columns: 1fr; } }
    & iframe { inline-size: 100%; aspect-ratio: 16 / 9; block-size: auto; border: 0; border-radius: var(--radius-sm); }

    /* ---- Casino lists from the review-manager plugin ([crm-*] markup) ---- */
    & .crm-casino-list {
      display: grid;
      gap: 14px;
      container: crm / inline-size;
      counter-reset: rank;
      margin-block: 1.6em;
      font-size: var(--fs-base);
      line-height: 1.5;
    }
    & .crm-casino-item {
      counter-increment: rank;
      position: relative;
      display: grid;
      grid-template-columns: 96px minmax(0, .9fr) minmax(0, 1.6fr) auto;
      grid-template-areas: "logo data bonus link";
      align-items: center;
      gap: 12px 22px;
      padding: 18px 22px 18px 34px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: var(--surface);
      box-shadow: var(--shadow);
      transition: box-shadow .25s var(--ease), translate .25s var(--ease);
      &:hover { box-shadow: var(--shadow-hover); translate: 0 -2px; }

      /* Rank chip */
      &::before {
        --c: var(--chip-black);
        content: counter(rank);
        position: absolute;
        inset: 14px auto auto -14px;
        display: grid;
        place-items: center;
        inline-size: 38px;
        aspect-ratio: 1;
        border-radius: 50%;
        color: #fff;
        font: 800 .9rem/1 var(--font-display);
        text-shadow: 0 1px 1px rgb(0 0 0 / .4);
        background:
          radial-gradient(circle closest-side, var(--c) 0 60%, #fff 61% 65%, var(--c) 66% 72%, transparent 73%),
          repeating-conic-gradient(from 11.25deg, var(--c) 0 22.5deg, #fff 0 45deg);
        box-shadow: 0 3px 8px rgb(0 0 0 / .25);
      }
      &:nth-child(1)::before { --c: var(--chip-gold); }
      &:nth-child(2)::before { --c: var(--chip-red); }
      &:nth-child(3)::before { --c: var(--chip-green); }
      &:first-child {
        border-color: color-mix(in oklab, var(--gold) 55%, var(--line));
        background: linear-gradient(135deg, var(--gold-soft), transparent 55%), var(--surface);
      }

      /* Layout follows the list's own width (article column, sidebar, full width…) */
      @container crm (width < 820px) {
        grid-template-columns: 76px minmax(0, 1fr) auto;
        grid-template-areas: "logo data link" "bonus bonus bonus";
      }
      @container crm (width < 540px) {
        grid-template-columns: 64px minmax(0, 1fr);
        grid-template-areas: "logo data" "bonus bonus" "link link";
        padding: 18px 18px 18px 30px;
      }
    }
    & .crm-casino-col--logo { grid-area: logo; }
    & .crm-casino-col--data { grid-area: data; }
    & .crm-casino-col--bonus { grid-area: bonus; }
    & .crm-casino-col--link { grid-area: link; }
    & .crm-casino-thumbnail img {
      inline-size: 100%;
      aspect-ratio: 1;
      object-fit: contain;
      border-radius: 16px;
      background: var(--tile);
      padding: 6px;
    }
    & .crm-casino-name { font: 800 1.125rem/1.2 var(--font-display); margin: 0; }
    & .crm-casino-rating {
      display: flex;
      gap: 2px;
      margin-block-start: 6px;
      & .star {
        inline-size: 13px;
        block-size: 13px;
        background: var(--line-strong);
        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 2.5 2.9 6 6.6.8-4.9 4.6 1.3 6.5L12 17.2l-5.9 3.2 1.3-6.5-4.9-4.6 6.6-.8z'/%3E%3C/svg%3E") center / contain no-repeat;
      }
      & .star.filled { background: var(--gold); }
      & .star.half { background: linear-gradient(90deg, var(--gold) 50%, var(--line-strong) 50%); }
    }
    & .crm-casino-bonuses { display: grid; gap: 8px; }
    & .crm-casino-bonus {
      font-weight: 750;
      color: var(--text);
      & p { margin: 0; }
      & p:empty { display: none; }
    }
    & .crm-casino-extra {
      font-size: .875rem;
      color: var(--muted);
      & p { display: none; }
      & ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 3px; font-size: .875rem !important; }
      & li { margin: 0; padding-inline-start: 20px; position: relative; }
      & li::before {
        content: "";
        position: absolute;
        inset: .45em auto auto 2px;
        inline-size: 9px;
        block-size: 9px;
        rotate: 45deg;
        border-radius: 2px;
        background: var(--cta);
      }
      & ul:not([role]) > li::marker { content: none; }
    }
    & .crm-casino-button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      min-block-size: 48px;
      padding: 12px 22px;
      border-radius: 999px;
      background: var(--cta);
      color: #fff !important;
      font-weight: 750;
      font-size: .9375rem;
      text-decoration: none !important;
      white-space: nowrap;
      box-shadow: 0 6px 16px color-mix(in oklab, var(--cta) 35%, transparent);
      transition: background-color .2s, translate .2s var(--ease);
      &:hover { background: var(--cta-hover); translate: 0 -1px; }
      &::after { content: none !important; }
      @container crm (width < 540px) { inline-size: 100%; }
    }
    & .crm-casino-review { font-size: var(--fs-sm); color: var(--muted); }
    & .crm-casino-more-wrap { display: flex; justify-content: center; }
    & .crm-casino-more {
      padding: 10px 22px;
      border-radius: 999px;
      border: 1px solid var(--line-strong);
      font-weight: 650;
      font-size: var(--fs-sm);
      &:hover { background: var(--bg-alt); }
    }
    & #offers { margin-block-start: 1.6em; }
  }

  .prose--wide { max-inline-size: none; }
  .prose--card {
    padding: clamp(20px, 4vw, 36px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
  }
  .section--prose .prose { font-size: var(--fs-base); }
  .lobby-content { margin-block: 48px 72px; max-inline-size: var(--w-text); margin-inline: auto; }
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */
@layer utilities {
  .visually-hidden {
    position: absolute !important;
    inline-size: 1px;
    block-size: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .is-gold { color: var(--gold); }

  /* Slots Launch prints an empty fullscreen placeholder in wp_footer on every page */
  #slotsl-fullscreen-placeholder, #sl-single-game-popup { display: none !important; }

  /* Toast (Popover API, see core.js) — enters/leaves with @starting-style + allow-discrete */
  .toast {
    inset: auto 0 24px;
    margin-inline: auto;
    inline-size: max-content;
    max-inline-size: calc(100% - 32px);
    padding: 12px 18px;
    border: 0;
    border-radius: 999px;
    background: #14151a;
    color: #fff;
    font: 600 .875rem/1.3 var(--font);
    box-shadow: 0 12px 30px rgb(0 0 0 / .3);
    opacity: 0;
    translate: 0 12px;
    transition: opacity .2s var(--ease), translate .2s var(--ease), display .2s allow-discrete, overlay .2s allow-discrete;
    &:popover-open { opacity: 1; translate: 0; }
    @starting-style { &:popover-open { opacity: 0; translate: 0 12px; } }
  }

  /* Touch screens: no "sticky hover" lift after a tap */
  @media (hover: none) {
    :is(.pcard, .post-card, .lcard, .provider-tile, .helpline, .adjacent__link, .crm-casino-item, .btn, .az__tile .az__media):hover,
    .az__tile:hover .az__media {
      translate: none;
      rotate: none;
    }
  }

  @supports (text-box: trim-both cap alphabetic) {
    .btn, .tag, .chip-num { text-box: trim-both cap alphabetic; }
  }

  @media print {
    .topbar, .site-header, .site-footer, .toc, .share, .comments, .search-dialog, .drawer, .hero__deco { display: none !important; }
    .entry-layout { display: block; }
    body { font-size: 11pt; }
    .prose a::after { content: " (" attr(href) ")"; font-size: .8em; color: #555; }
  }
}
