/* THE GAME TABLE. Le site ne se consulte pas, il se joue.
   Matières : feutre de table, carte ivoire, encre charbon. Couleurs de pièces réservées aux familles de jeux
   (une par face du dé d'humeur) et au signal corail. Bordures franches, ombres décalées, jamais floues. */
:root {
  --felt: #1E2A4A; --felt-deep: #141D36; --felt-line: rgba(239,227,203,.24);
  --ivory: #EFE3CB; --card: #F8F0DF; --paper: #EFE3CB; --ink: #181512; --muted: #5A5046; --line: rgba(24,21,18,.18);
  --coral: #FF5838; --blue: #3D4DFF; --acid: #FF8CC6; --brass: #E7B43F; --violet: #7246FF;
  --link: #1F2BC7; --focus: #181512; --yes: #2A3FC4; --no: #B5311A; --on-felt: #EFE3CB; --on-felt-muted: #C9CFE0;
  --shadow: 4px 4px 0 var(--ink); --shadow-lg: 7px 7px 0 var(--ink);
  --f-display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --f-text: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --r: 14px; --r-sm: 9px;
  --ease-out: cubic-bezier(.23, 1, .32, 1); --ease-pose: cubic-bezier(.34, 1.56, .64, 1);
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' 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 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --meeple: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1a4 4 0 0 1 2.9 6.8c3.6.4 7.6 1.3 7.6 3.3 0 1.4-1.9 2-4.4 2.1l2.6 6.9c.3.8-.3 1.6-1.1 1.6h-4.4L12 18.6l-3.2 3.1H4.4c-.8 0-1.4-.8-1.1-1.6l2.6-6.9c-2.5-.1-4.4-.7-4.4-2.1 0-2 4-2.9 7.6-3.3A4 4 0 0 1 12 1z'/%3E%3C/svg%3E");
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --paper: #15120F; --card: #211C17; --ink: #EFE3CB; --muted: #BDB19C; --line: rgba(239,227,203,.18);
  --link: #A9B1FF; --focus: #FF8CC6; --yes: #A9B8FF; --no: #FF7A5E; --felt-deep: #0F1629; --shadow: 4px 4px 0 #000; --shadow-lg: 7px 7px 0 #000; color-scheme: dark; } }
:root[data-theme="dark"] {
  --paper: #15120F; --card: #211C17; --ink: #EFE3CB; --muted: #BDB19C; --line: rgba(239,227,203,.18);
  --link: #A9B1FF; --focus: #FF8CC6; --yes: #A9B8FF; --no: #FF7A5E; --felt-deep: #0F1629; --shadow: 4px 4px 0 #000; --shadow-lg: 7px 7px 0 #000; color-scheme: dark; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--f-text); }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; background: var(--noise); opacity: .07; mix-blend-mode: multiply; }
[data-root] { position: relative; z-index: 1; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.05; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.3rem, 1.3rem + 4.2vw, 4.6rem); font-weight: 800; font-stretch: 75%; text-transform: uppercase; letter-spacing: -.005em; line-height: .94; }
h2 { font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.3rem); font-weight: 800; font-stretch: 80%; letter-spacing: -.01em; }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0; text-wrap: pretty; }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.label { font: 700 .7rem/1.25 var(--f-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.mono { font-family: var(--f-mono); font-size: .8rem; }
.lede { font-size: clamp(1.05rem, 1rem + .3vw, 1.22rem); max-width: 60ch; color: var(--muted); }
.prose { max-width: 70ch; }
.meta-line { font-size: .86rem; color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--coral); color: #181512; padding: 10px 14px; border-radius: var(--r-sm); font-weight: 700; }
.skip:focus { top: 12px; }
.stack { display: grid; gap: 14px; align-content: start; }
.section { margin-top: clamp(48px, 6vw, 88px); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 20px; }
.section-head p { color: var(--muted); max-width: 60ch; }
.two { display: grid; gap: 28px 48px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.note { padding: 16px 18px; border-radius: var(--r); background: var(--card); border: 2px solid var(--ink); font-size: .95rem; }
.ticks { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.ticks li { padding-left: 24px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 11px; height: 11px; border-radius: 3px; background: var(--coral); border: 1.5px solid #181512; transform: rotate(8deg); }
.empty { padding: 18px; border: 2px dashed currentColor; border-radius: var(--r); }

/* Pion-curseur : uniquement sur les zones interactives, pointeur fin uniquement. */
@media (pointer: fine) {
  a, button, label, select, summary { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 24 24'%3E%3Cpath d='M12 1a4 4 0 0 1 2.9 6.8c3.6.4 7.6 1.3 7.6 3.3 0 1.4-1.9 2-4.4 2.1l2.6 6.9c.3.8-.3 1.6-1.1 1.6h-4.4L12 18.6l-3.2 3.1H4.4c-.8 0-1.4-.8-1.1-1.6l2.6-6.9c-2.5-.1-4.4-.7-4.4-2.1 0-2 4-2.9 7.6-3.3A4 4 0 0 1 12 1z' fill='%23FF5838' stroke='%23181512' stroke-width='1.4'/%3E%3C/svg%3E") 12 3, pointer; }
}

/* ---------- Boutons, jetons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 2px solid #181512; background: var(--coral); color: #181512; font: 700 .95rem/1 var(--f-text); text-decoration: none; box-shadow: 3px 3px 0 #181512; transition: transform .16s var(--ease-out), box-shadow .16s var(--ease-out), background-color .15s; }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 #181512; }
.btn:active { transform: translate(2px, 2px) scale(.98); box-shadow: 1px 1px 0 #181512; }
.btn:disabled { opacity: .6; }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.btn-small { min-height: 40px; padding: 0 14px; font-size: .88rem; background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn .cmp-on, .btn[aria-pressed="true"] .cmp-off { display: none; }
.btn[aria-pressed="true"] .cmp-on { display: inline; }
.btn[aria-pressed="true"] { background: var(--acid); color: #181512; border-color: #181512; }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.link-btn { background: none; border: 0; padding: 0; color: inherit; font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* Pièces de formulaire génériques (outils secondaires) */
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
.tool-form { display: grid; gap: 18px; }
.form-row { display: grid; gap: 18px 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.tool-form legend.label, .tool-form .label { display: block; margin-bottom: 10px; }
.tiles, .tokens { display: flex; flex-wrap: wrap; gap: 8px; }
.tile, .token { position: relative; }
.tile input, .token input, .pawn-slot input, .notch input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; }
.tile span, .token > span { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 2px solid var(--ink); background: var(--card); color: var(--ink); font-weight: 600; font-size: .92rem; transition: transform .18s var(--ease-pose), background-color .15s, box-shadow .15s; }
.tile input:checked + span, .token input:checked + span { background: var(--brass); color: #181512; border-color: #181512; box-shadow: 3px 3px 0 #181512; transform: translateY(-2px); }
.tile input:focus-visible + span, .token input:focus-visible + span, .pawn-slot input:focus-visible ~ .meeple, .notch input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 3px; }
.checks { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.check { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; font-weight: 600; }
.check input { width: 22px; height: 22px; accent-color: var(--coral); }
select { min-height: 46px; padding: 0 12px; border-radius: var(--r-sm); border: 2px solid var(--ink); background: var(--card); color: var(--ink); font: 600 1rem var(--f-text); width: 100%; }
.board { margin-top: 24px; padding: clamp(16px, 3vw, 28px); border-radius: 18px; background: var(--card); border: 2px solid var(--ink); box-shadow: var(--shadow-lg); }
.board [data-results], .board [data-compare-out] { margin-top: 26px; }
:is(.game-table, .result, .hero, .quick) a.btn { color: #181512; }
:is(.game-table, .result, .hero, .quick) a.btn-small { color: var(--paper); }
:is(.game-table, .result, .hero, .quick) a.btn-ghost { color: var(--ink); }
.board .alt-list a { background: var(--paper); color: var(--ink); border-color: var(--line); }

/* ---------- Bord de plateau (en-tête) ---------- */
.site-head { --focus: var(--acid); position: sticky; top: 0; z-index: 20; background: var(--felt); color: var(--on-felt); border-bottom: 3px solid #181512; }
.site-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: -11px; height: 8px; background: repeating-linear-gradient(90deg, var(--brass) 0 22px, #181512 22px 24px, var(--ivory) 24px 46px, #181512 46px 48px); border-bottom: 2px solid #181512; }
.site-head > .wrap { display: flex; align-items: center; gap: 14px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--on-felt); text-decoration: none; font: 800 1.2rem/1 var(--f-display); font-stretch: 80%; letter-spacing: -.01em; margin-right: auto; }
.logo small { font: 700 .72rem var(--f-mono); color: var(--acid); margin-left: 1px; }
.logo-mark { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; width: 28px; height: 28px; transform: rotate(-8deg); transition: transform .3s var(--ease-pose); }
.logo:hover .logo-mark { transform: rotate(82deg); }
.logo-mark i { border-radius: 3px; border: 1.5px solid #181512; }
.logo-mark i:nth-child(1) { background: var(--coral); } .logo-mark i:nth-child(2) { background: var(--acid); } .logo-mark i:nth-child(3) { background: var(--blue); } .logo-mark i:nth-child(4) { background: var(--brass); }
.nav { display: flex; overflow-x: auto; scrollbar-width: none; align-self: stretch; }
.nav-list { display: flex; align-items: stretch; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav-item { display: flex; align-items: center; }
.nav-toggle { position: relative; display: grid; place-items: center; width: 26px; height: 40px; margin-left: -4px; padding: 0; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--on-felt); }
.nav-toggle::before { content: ""; width: 8px; height: 8px; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s var(--ease-out); }
.nav-item.open .nav-toggle::before { transform: translateY(2px) rotate(-135deg); }
.nav-toggle:hover { background: rgba(239,227,203,.1); }
/* Tuiles attachées au plateau : le panneau pend sous la frise. Le pont ::before évite qu'il se ferme quand le pointeur y descend. */
.subnav { display: none; position: absolute; left: 0; right: 0; top: calc(100% + 11px); z-index: 1; padding: 18px 0 22px; background: var(--felt-deep); color: var(--on-felt); border-bottom: 3px solid #181512; box-shadow: 0 7px 0 rgba(24,21,18,.35); }
.subnav::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.nav-item.open .subnav { display: block; animation: drop .2s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .nav-item:hover .subnav { display: block; animation: drop .2s var(--ease-out); } }
@keyframes drop { from { transform: translateY(-6px); } }
.subnav-inner { display: grid; gap: 14px; max-height: calc(100dvh - 180px); overflow-y: auto; overscroll-behavior: contain; padding-bottom: 6px; }
.subnav-intro { display: flex; align-items: center; gap: 10px; font: 700 1.05rem/1.2 var(--f-display); font-stretch: 85%; }
.subnav-tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.sub-tile { display: grid; gap: 4px; height: 100%; padding: 12px 14px; border-radius: var(--r-sm); background: var(--ivory); color: #181512; text-decoration: none; border: 2px solid #181512; box-shadow: 3px 3px 0 #181512; transition: transform .16s var(--ease-out), box-shadow .16s var(--ease-out); }
.sub-tile b { font: 800 1rem/1.15 var(--f-display); font-stretch: 85%; }
.sub-tile span { font-size: .84rem; color: #4A4136; line-height: 1.35; }
.sub-tile:hover { transform: translate(-1px, -2px); box-shadow: 5px 5px 0 #181512; }
.subnav-tiles li:nth-child(4n+2) .sub-tile { transform: rotate(-.6deg); } .subnav-tiles li:nth-child(4n+3) .sub-tile { transform: rotate(.5deg); }
.subnav-tiles li .sub-tile:hover { transform: translate(-1px, -2px) rotate(0); }
.nav-item > a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: var(--r-sm); color: var(--on-felt); text-decoration: none; font: 800 .82rem/1 var(--f-display); font-stretch: 80%; text-transform: uppercase; letter-spacing: .06em; border: 2px solid transparent; transition: border-color .15s, transform .18s var(--ease-pose); white-space: nowrap; }
.nav-item > a:hover { border-color: var(--felt-line); transform: translateY(-1px); }
.nav-item > a[aria-current="page"] { background: var(--ivory); color: #181512; border-color: #181512; box-shadow: 3px 3px 0 #181512; }
.my-table { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px 0 10px; border-radius: 999px; border: 2px solid #181512; background: var(--acid); color: #181512; font: 800 .82rem/1 var(--f-display); font-stretch: 80%; text-transform: uppercase; letter-spacing: .06em; box-shadow: 3px 3px 0 #181512; white-space: nowrap; }
.my-table:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #181512; }
.meeple { display: inline-block; width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--meeple) center/contain no-repeat; mask: var(--meeple) center/contain no-repeat; }
.mt-count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: #181512; color: var(--acid); font: 700 .72rem/22px var(--f-mono); text-align: center; }
.mt-count[hidden] { display: none; }
@media (max-width: 760px) {
  .site-head > .wrap { flex-wrap: wrap; gap: 6px 10px; padding-top: 8px; padding-bottom: 8px; }
  .nav { order: 3; width: 100%; }
  .nav-list { width: 100%; justify-content: space-between; gap: 0; }
  .nav-item > a { padding: 0 5px; font-size: .74rem; letter-spacing: .02em; }
  .nav-toggle { width: 20px; margin-left: -3px; }
}

.crumbs { margin-top: 28px; font-size: .84rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; list-style: none; margin: 0; padding: 0; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 8px; }
.page-head { margin-top: 18px; display: grid; gap: 14px; max-width: 900px; }

/* ---------- La table vivante (accueil) ---------- */
.hero { --focus: var(--acid); position: relative; background: var(--felt); color: var(--on-felt); padding: clamp(40px, 5vw, 68px) 0 clamp(36px, 5vw, 56px); border-bottom: 3px solid #181512; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--noise); opacity: .5; mix-blend-mode: soft-light; }
.hero::after { content: ""; position: absolute; z-index: -1; width: 1000px; height: 640px; left: 50%; top: -300px; transform: translateX(-50%); border-radius: 50%; background: rgba(239,227,203,.1); filter: blur(70px); }
.hero a { color: var(--acid); }
.hero-head { display: grid; gap: 16px 40px; grid-template-columns: minmax(0, 1fr) minmax(280px, 400px); align-items: end; margin-bottom: 30px; }
.hero-head > :not(.quick-find) { grid-column: 1; }
.hero h1 { max-width: 11ch; font-size: clamp(2.8rem, 1.2rem + 6vw, 6rem); }
.hero .lede { color: var(--on-felt-muted); }
.your-turn { display: inline-flex; align-items: center; gap: 10px; justify-self: start; padding: 6px 14px 6px 8px; border-radius: 999px; background: var(--coral); color: #181512; border: 2px solid #181512; box-shadow: 3px 3px 0 #181512; font: 700 .74rem var(--f-mono); text-transform: uppercase; letter-spacing: .12em; }
.clock { font-weight: 500; letter-spacing: .03em; text-transform: none; }
.clock:empty { display: none; }
.clock::before { content: "· "; }
.quick-find { grid-column: 2; grid-row: 1 / span 3; align-self: end; display: grid; gap: 8px; padding: 16px; border-radius: var(--r); background: var(--felt-deep); border: 2px solid var(--felt-line); }
.quick-find label { font: 700 .72rem var(--f-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--on-felt-muted); }
.qf-row { display: flex; gap: 8px; }
.qf-row input { flex: 1; min-width: 0; min-height: 46px; padding: 0 14px; border-radius: 999px; border: 2px solid #181512; background: var(--ivory); color: #181512; font: 600 1rem var(--f-text); }
.qf-row input::placeholder { color: #6B6152; }
.hero-more { margin-top: 18px; color: var(--on-felt-muted); font-size: .92rem; }
@media (max-width: 860px) { .hero-head { grid-template-columns: 1fr; } .quick-find { grid-column: 1; grid-row: auto; } }

/* Le plateau : formulaire à gauche, table de résultats à droite */
.game-table { --focus: var(--acid); position: relative; display: grid; gap: clamp(18px, 3vw, 36px); grid-template-columns: minmax(0, 400px) minmax(0, 1fr); padding: clamp(18px, 2.8vw, 32px); border-radius: 20px; background: var(--felt-deep); color: var(--on-felt); border: 3px solid #181512; box-shadow: var(--shadow-lg); isolation: isolate; }
.game-table::before { content: ""; position: absolute; inset: 9px; border: 1.5px dashed var(--felt-line); border-radius: 13px; pointer-events: none; z-index: -1; }
.game-table a { color: var(--acid); }
.game-table .label { color: var(--on-felt-muted); }
.game-table .result a:not(.btn), .game-table .result .label { color: inherit; }
@media (max-width: 980px) { .game-table { grid-template-columns: 1fr; } }

.finder { display: grid; gap: 22px; align-content: start; }
.turn > legend { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; font: 800 1.35rem/1.1 var(--f-display); font-stretch: 80%; color: var(--on-felt); }
.turn-n { flex: none; padding: 3px 8px; border-radius: 6px; background: var(--brass); color: #181512; border: 1.5px solid #181512; font: 700 .66rem/1.3 var(--f-mono); text-transform: uppercase; letter-spacing: .1em; transform: rotate(-3deg); }
.turn + .turn { padding-top: 20px; border-top: 1.5px dashed var(--felt-line); }
.turn-row { display: grid; gap: 12px; margin-top: 14px; }
.sub > legend { margin-bottom: 8px; font: 700 .7rem var(--f-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--on-felt-muted); }
.finder .token > span { min-height: 38px; padding: 0 12px; background: transparent; color: var(--on-felt); border-color: var(--felt-line); font-size: .88rem; }
.finder .token input:checked + span { background: var(--ivory); color: #181512; border-color: #181512; box-shadow: 3px 3px 0 #181512; }
.finder .check { color: var(--on-felt); }

/* Tour 1 : les pions. Les pions posés jusqu'au nombre choisi s'allument. */
.pawns { display: flex; flex-wrap: wrap; gap: 2px; }
.pawn-slot { position: relative; display: grid; justify-items: center; gap: 2px; width: 40px; padding: 4px 0; }
.pawn-slot .meeple { position: relative; width: 32px; height: 32px; background: none; -webkit-mask: none; mask: none; transform: translateY(3px) scale(.84); transition: transform .17s var(--ease-pose); }
.pawn-slot .meeple::before { content: ""; position: absolute; inset: 0; background: var(--felt-line); -webkit-mask: var(--meeple) center/contain no-repeat; mask: var(--meeple) center/contain no-repeat; transition: background-color .15s; }
.pawn-n { font: 700 .72rem var(--f-mono); color: var(--on-felt-muted); }
.pawn-slot:hover .meeple { transform: translateY(0) scale(.92); }
.pawn-slot:has(~ .pawn-slot input:checked) .meeple, .pawn-slot:has(input:checked) .meeple { transform: translateY(0) scale(1); }
.pawn-slot:has(~ .pawn-slot input:checked) .meeple::before { background: var(--ivory); }
.pawn-slot:has(input:checked) .meeple::before { background: var(--coral); }
.pawn-slot:has(input:checked) .meeple { filter: drop-shadow(2px 2px 0 #181512); }
.pawn-slot:has(input:checked) .pawn-n { color: var(--on-felt); }

/* Tour 2 : le sablier, un cadran de tempo */
.dial { --size: 220px; position: relative; width: var(--size); height: var(--size); margin: 2px auto 0; border-radius: 50%; background: radial-gradient(circle, var(--felt) 0 46%, transparent 46.5%), repeating-conic-gradient(from -125deg, var(--felt-line) 0 1.2deg, transparent 1.2deg 10deg); border: 2px solid var(--felt-line); }
.notch { position: absolute; left: 50%; top: 50%; width: 44px; height: 36px; margin: -18px 0 0 -22px; display: grid; place-items: center; transform: rotate(var(--a)) translateY(calc(var(--size) / -2 + 22px)) rotate(calc(-1 * var(--a))); }
.notch span:first-of-type { display: grid; place-items: center; min-width: 40px; height: 28px; padding: 0 4px; border-radius: 999px; font: 700 .72rem var(--f-mono); color: var(--on-felt-muted); background: var(--felt-deep); border: 1.5px solid var(--felt-line); transition: background-color .15s, color .15s; }
.notch input:checked + span { background: var(--acid); color: #181512; border-color: #181512; }
.notch:hover span:first-of-type { color: var(--on-felt); }
.needle { position: absolute; left: 50%; top: 50%; width: 4px; height: 58px; margin-left: -2px; margin-top: -58px; border-radius: 2px; background: var(--coral); transform-origin: 50% 100%; transform: rotate(var(--needle)); transition: transform .34s var(--ease-pose); box-shadow: 0 0 0 1.5px #181512; }
.dial-core { position: absolute; inset: 31%; display: grid; place-content: center; text-align: center; border-radius: 50%; background: var(--ivory); color: #181512; border: 2.5px solid #181512; box-shadow: 3px 3px 0 #181512; }
.dial-core b { font: 800 1.5rem/1 var(--f-display); font-stretch: 75%; }
.dial-core small { font: 700 .58rem var(--f-mono); text-transform: uppercase; letter-spacing: .1em; margin-top: 3px; }

/* Tour 3 : le dé d'humeur */
.die-stage { display: flex; align-items: center; gap: 24px; margin-bottom: 16px; padding-left: 6px; }
.die { --s: 74px; position: relative; width: var(--s); height: var(--s); perspective: 540px; flex: none; }
.cube { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .5s var(--ease-pose); transform: rotateX(-24deg) rotateY(-36deg); }
.side { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 3px; border-radius: 12px; border: 2.5px solid #181512; backface-visibility: hidden; background: var(--fam); color: var(--on-fam); }
.side b { font: 800 .6rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; }
.side .face { width: 32px; height: 32px; }
.front { transform: translateZ(calc(var(--s) / 2)); }
.right { transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); }
.top { transform: rotateX(90deg) translateZ(calc(var(--s) / 2)); }
.left { transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); }
.bottom { transform: rotateX(-90deg) translateZ(calc(var(--s) / 2)); }
.back { transform: rotateY(180deg) translateZ(calc(var(--s) / 2)); }
.die[data-face="rire"] .cube { transform: rotateX(-10deg) rotateY(-12deg); }
.die[data-face="tension"] .cube { transform: rotateX(-10deg) rotateY(-102deg); }
.die[data-face="cerveau"] .cube { transform: rotateX(-100deg) rotateY(-12deg); }
.die[data-face="coop"] .cube { transform: rotateX(-10deg) rotateY(78deg); }
.die[data-face="bluff"] .cube { transform: rotateX(80deg) rotateY(-12deg); }
.die[data-face="chill"] .cube { transform: rotateX(-10deg) rotateY(168deg); }
.die-shadow { position: absolute; left: 10%; right: 10%; bottom: -15px; height: 10px; border-radius: 50%; background: rgba(0,0,0,.38); filter: blur(2px); }
.die.rolling .cube { animation: tumble .64s var(--ease-out); }
.die.rolling { animation: hopdie .64s var(--ease-out); }
@keyframes tumble { from { transform: rotateX(-24deg) rotateY(-36deg); } to { transform: rotateX(700deg) rotateY(520deg); } }
@keyframes hopdie { 0% { transform: translateY(0); } 35% { transform: translateY(-34px); } 70% { transform: translateY(0); } 85% { transform: translateY(-6px); } 100% { transform: translateY(0); } }
.btn-roll { background: var(--ivory); }
.faces .token > span { padding-left: 7px; }

/* Faces de dé : points posés comme sur un vrai dé */
.face { display: inline-grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); width: 24px; height: 24px; padding: 3px; border-radius: 5px; background: var(--ivory); border: 1.5px solid #181512; flex: none; }
.face i { width: 100%; aspect-ratio: 1; border-radius: 50%; background: #181512; align-self: center; justify-self: center; transform: scale(.8); }
.face.mini { width: 20px; height: 20px; padding: 2px; border-radius: 4px; }
.f1 i { grid-area: 2 / 2; }
.f2 i:nth-child(1) { grid-area: 1 / 1; } .f2 i:nth-child(2) { grid-area: 3 / 3; }
.f3 i:nth-child(1) { grid-area: 1 / 1; } .f3 i:nth-child(2) { grid-area: 2 / 2; } .f3 i:nth-child(3) { grid-area: 3 / 3; }
.f4 i:nth-child(1) { grid-area: 1 / 1; } .f4 i:nth-child(2) { grid-area: 1 / 3; } .f4 i:nth-child(3) { grid-area: 3 / 1; } .f4 i:nth-child(4) { grid-area: 3 / 3; }
.f5 i:nth-child(1) { grid-area: 1 / 1; } .f5 i:nth-child(2) { grid-area: 1 / 3; } .f5 i:nth-child(3) { grid-area: 2 / 2; } .f5 i:nth-child(4) { grid-area: 3 / 1; } .f5 i:nth-child(5) { grid-area: 3 / 3; }
.f6 i:nth-child(1) { grid-area: 1 / 1; } .f6 i:nth-child(2) { grid-area: 2 / 1; } .f6 i:nth-child(3) { grid-area: 3 / 1; } .f6 i:nth-child(4) { grid-area: 1 / 3; } .f6 i:nth-child(5) { grid-area: 2 / 3; } .f6 i:nth-child(6) { grid-area: 3 / 3; }

/* Familles : une couleur par face du dé */
.fam-rire { --fam: var(--coral); --on-fam: #181512; }
.fam-tension { --fam: var(--brass); --on-fam: #181512; }
.fam-cerveau { --fam: var(--violet); --on-fam: #F8F0DF; }
.fam-coop { --fam: var(--blue); --on-fam: #F8F0DF; }
.fam-bluff { --fam: #181512; --on-fam: var(--brass); }
.fam-chill { --fam: var(--acid); --on-fam: #181512; }

/* ---------- La table de résultats ---------- */
.table-surface { display: grid; gap: 18px; align-content: start; min-width: 0; }
.table-says { font: 700 clamp(1.12rem, 1rem + .55vw, 1.45rem)/1.3 var(--f-display); font-stretch: 85%; color: var(--on-felt); max-width: 52ch; }
.table-says .label { display: block; margin-bottom: 6px; }
.table-says b { color: var(--acid); }
.deal, .results-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.result { --tilt: 0deg; position: relative; display: grid; grid-template-rows: auto 1fr; border-radius: var(--r); background: var(--card); color: var(--ink); border: 2.5px solid #181512; box-shadow: 4px 4px 0 #181512; overflow: hidden; transform: rotate(var(--tilt)); transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out); animation: draw .44s var(--ease-pose) both; animation-delay: calc(var(--i, 0) * 70ms); }
.result:nth-child(1) { --tilt: -1.2deg; } .result:nth-child(2) { --tilt: .8deg; } .result:nth-child(3) { --tilt: -.5deg; }
.result:hover { transform: rotate(0) translateY(-4px); box-shadow: 6px 8px 0 #181512; }
.result a { color: var(--link); }
.result-cover .box { border-width: 0 0 2.5px; border-radius: 0; aspect-ratio: 16 / 10; }
.result-body { display: grid; gap: 10px; padding: 14px; align-content: start; }
.result-top { display: flex; align-items: center; gap: 10px; }
.result-top h3 a { color: var(--ink); text-decoration: none; }
.result-top h3 a:hover { text-decoration: underline; }
.rank { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--coral); color: #181512; border: 2px solid #181512; font: 800 .95rem var(--f-display); }
.fit { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fit-label { font: 700 .62rem var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.fit b { font: 700 .85rem var(--f-mono); }
.why { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: .9rem; }
.why li { padding-left: 18px; position: relative; }
.why li::before { content: "+"; position: absolute; left: 0; font-weight: 800; color: var(--yes); }
.but { font-size: .86rem; color: var(--muted); }
.but span { font-weight: 700; }
.result .row-actions .btn { min-height: 38px; padding: 0 12px; font-size: .82rem; }
.result.discarding { animation: discard .3s var(--ease-out) forwards; }
@keyframes draw { from { opacity: 0; transform: translate(-46px, -34px) rotate(-9deg) scale(.95); } to { opacity: 1; transform: rotate(var(--tilt)); } }
@keyframes discard { to { opacity: 0; transform: translate(130%, 30px) rotate(16deg); } }
@media (max-width: 720px) {
  .game-table .deal { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 86%; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 4px 16px; margin: 0 -4px; }
  .game-table .deal .result { scroll-snap-align: start; }
}
.table-foot { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); align-items: start; }
.alts .label { margin-bottom: 8px; display: block; }
.alt-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.alt-list a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 12px 6px 8px; border-radius: var(--r-sm); background: rgba(239,227,203,.07); border: 1.5px solid var(--felt-line); color: var(--on-felt); text-decoration: none; transition: transform .16s var(--ease-out), background-color .15s; }
.alt-list a:hover { transform: translateX(4px); background: rgba(239,227,203,.14); }
.alt-name { font-weight: 700; flex: 1; }
.alt-meta { font: 500 .74rem var(--f-mono); opacity: .85; }
.alt-score { font: 700 .74rem var(--f-mono); padding: 2px 6px; border-radius: 6px; background: var(--ivory); color: #181512; }
.discard { display: flex; gap: 14px; align-items: center; padding: 12px 14px; border-radius: var(--r); border: 1.5px dashed var(--felt-line); font-size: .9rem; color: var(--on-felt-muted); }
.discard b { color: var(--on-felt); }
.discard-pile { position: relative; flex: none; width: 38px; height: 50px; }
.discard-pile i { position: absolute; inset: 0; border-radius: 6px; border: 2px solid #181512; }
.discard-pile i:nth-child(1) { transform: rotate(-14deg); background: var(--brass); }
.discard-pile i:nth-child(2) { transform: rotate(9deg); background: var(--blue); }
.discard-pile i:nth-child(3) { transform: rotate(-2deg); background: repeating-linear-gradient(45deg, var(--coral) 0 4px, #E64B2D 4px 8px); }
.passed { font-size: .88rem; color: var(--on-felt-muted); }

/* ---------- Boîtes de jeu générées ---------- */
.box { position: relative; container-type: inline-size; display: flex; flex-direction: column; justify-content: space-between; gap: 6px; aspect-ratio: 1; padding: 9% 9% 8%; border-radius: 10px; background: var(--fam); color: var(--on-fam); border: 2.5px solid #181512; overflow: hidden; isolation: isolate; }
.box::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 1.5px 1.5px, currentColor 1px, transparent 1.4px) 0 0 / 9px 9px; opacity: .13; }
.box::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--noise); opacity: .35; mix-blend-mode: multiply; }
.box-top { align-self: flex-start; padding: 3px 7px; border-radius: 5px; background: #181512; color: #EFE3CB; font: 700 max(.58rem, 5.2cqi)/1.2 var(--f-mono); white-space: nowrap; }
.fam-bluff .box-top { background: var(--brass); color: #181512; }
.box-name { font: 800 clamp(.95rem, 13cqi, 3.4rem)/.92 var(--f-display); font-stretch: 75%; text-transform: uppercase; letter-spacing: -.005em; overflow-wrap: anywhere; hyphens: auto; }
.box-face { position: absolute; right: 8%; top: 8%; width: 17cqi; height: 17cqi; min-width: 20px; min-height: 20px; transform: rotate(10deg); }
.box-xs { width: 44px; padding: 5px; border-width: 2px; border-radius: 6px; }
.box-xs .box-top, .box-xs .box-face { display: none; }
.box-xs .box-name { font-size: .46rem; }
.box-sm { width: 76px; padding: 7px; border-radius: 8px; }
.box-sm .box-top { display: none; }
.box-sm .box-face { display: none; }
.box-sm .box-name { font-size: .74rem; }
.box-lg { width: min(100%, 230px); }
.box-xl { width: min(100%, 300px); box-shadow: 9px 9px 0 -2px var(--fam), 9px 9px 0 0 #181512; transform: rotate(-4deg); }

/* Pistes de score : un pion qui avance */
.track { --cell: 11px; position: relative; display: inline-grid; grid-template-columns: repeat(var(--cells), var(--cell)); gap: 2px; vertical-align: middle; padding-top: 2px; }
.track i { height: var(--cell); border-radius: 3px; border: 1.5px solid currentColor; opacity: .35; }
.track i.on { background: currentColor; opacity: .8; }
.track .pawn { position: absolute; top: -9px; left: 0; width: 14px; height: 16px; background: var(--coral); -webkit-mask: var(--meeple) center/contain no-repeat; mask: var(--meeple) center/contain no-repeat; transform: translateX(calc((var(--pos) - 1) * (var(--cell) + 2px) - 1.5px)); animation: advance .5s var(--ease-out) both .2s; }
.track[style$="--pos:0"] .pawn { display: none; }
@keyframes advance { from { opacity: 0; translate: -10px -4px; } to { opacity: 1; translate: 0 0; } }
.pips { display: inline-flex; gap: 4px; vertical-align: middle; }
.pips i { width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid currentColor; opacity: .4; }
.pips i.on { background: var(--coral); border-color: #181512; opacity: 1; }

/* ---------- Tuiles, puces, cartes action ---------- */
.tile-board, .hub-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); }
.tile-card, .hub-card { position: relative; display: grid; gap: 8px; align-content: start; padding: 16px; border-radius: var(--r); background: var(--card); color: var(--ink); text-decoration: none; border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); transition: transform .18s var(--ease-out), box-shadow .18s var(--ease-out); }
.tile-card:hover, .hub-card:hover { transform: translate(-2px, -3px); box-shadow: 6px 7px 0 var(--ink); }
.tile-card b, .hub-card b { font: 800 1.15rem/1.1 var(--f-display); font-stretch: 85%; }
.hub-card span { color: var(--muted); font-size: .9rem; }
.tile-card .mono, .hub-card .mono { color: var(--muted); }
.tile-card { padding-top: 14px; border-top: 8px solid var(--fam); }
.tile-stack { display: flex; height: 54px; margin-bottom: 4px; }
.tile-stack .box { transition: transform .22s var(--ease-pose); }
.tile-stack .box:nth-child(1) { transform: rotate(-9deg); }
.tile-stack .box:nth-child(2) { transform: translate(-10px, -3px) rotate(2deg); }
.tile-stack .box:nth-child(3) { transform: translate(-20px, 1px) rotate(11deg); }
.tile-card:hover .tile-stack .box:nth-child(1) { transform: rotate(-14deg); }
.tile-card:hover .tile-stack .box:nth-child(2) { transform: translate(-2px, -9px) rotate(0); }
.tile-card:hover .tile-stack .box:nth-child(3) { transform: translate(-4px, -1px) rotate(15deg); }
.chip-board { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--ink); background: var(--card); color: var(--ink); text-decoration: none; font-weight: 700; transition: transform .18s var(--ease-pose), background-color .15s; }
.chip-link:hover { background: var(--brass); color: #181512; transform: translateY(-2px) rotate(-1deg); }
.action-cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.action-card { display: grid; gap: 10px; align-content: start; min-height: 200px; padding: 18px; border-radius: var(--r); background: #181512; color: #EFE3CB; text-decoration: none; border: 2px solid #181512; box-shadow: 5px 5px 0 var(--coral); transition: transform .2s var(--ease-out); }
.action-card:nth-child(2) { box-shadow: 5px 5px 0 var(--blue); } .action-card:nth-child(3) { box-shadow: 5px 5px 0 var(--brass); } .action-card:nth-child(4) { box-shadow: 5px 5px 0 var(--acid); } .action-card:nth-child(5) { box-shadow: 5px 5px 0 var(--violet); }
.action-card:hover { transform: translateY(-4px) rotate(-1deg); }
.action-card b { font: 800 1.35rem/1.05 var(--f-display); font-stretch: 80%; }
.action-card span:last-child { color: #CFC4AE; font-size: .92rem; }
.ac-n { color: var(--coral); }

/* Duel (accueil + comparateur) */
.duel-teaser { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; padding: clamp(20px, 4vw, 44px); border-radius: 20px; background: var(--card); border: 2.5px solid var(--ink); box-shadow: var(--shadow-lg); }
.dt-copy { display: grid; gap: 14px; justify-items: start; }
.dt-copy p:not(.label) { color: var(--muted); max-width: 46ch; }
.dt-boxes { display: flex; align-items: center; justify-content: center; }
.dt-boxes .box { width: min(42%, 200px); box-shadow: 5px 5px 0 #181512; }
.dt-boxes .box:first-child { transform: rotate(-7deg); } .dt-boxes .box:last-child { transform: rotate(6deg); }
.vs { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 -14px; z-index: 2; flex: none; border-radius: 50%; background: var(--coral); color: #181512; border: 3px solid #181512; font: 800 1.3rem var(--f-display); font-stretch: 75%; box-shadow: 3px 3px 0 #181512; transform: rotate(-8deg); }
@media (max-width: 760px) { .duel-teaser { grid-template-columns: 1fr; } }
.duel { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: start; margin-bottom: 26px; }
.duel-side { display: grid; gap: 10px; justify-items: center; text-align: center; }
.duel-side h3 a { color: var(--ink); }
.duel-side p { color: var(--muted); font-size: .9rem; }
.duel-side .box { box-shadow: 5px 5px 0 #181512; }
.duel-side.a .box { transform: rotate(-4deg); } .duel-side.b .box { transform: rotate(4deg); }
.duel-mid { display: grid; justify-items: center; gap: 16px; padding-top: 30px; }
.duel-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.duel-rows li { display: grid; grid-template-columns: auto 96px auto; align-items: center; gap: 8px; }
.duel-rows b { font: 700 .66rem var(--f-mono); text-transform: uppercase; letter-spacing: .06em; text-align: center; }
.duel-a .track { transform: scaleX(-1); }
.duel-box { display: block; width: min(100%, 230px); }
.duel-box .box { width: 100%; }
.duel-a, .duel-b { padding: 6px 8px; border-radius: 8px; border: 2px solid transparent; }
.lead { background: var(--acid); color: #181512; border-color: #181512; }
@media (max-width: 760px) {
  .duel { grid-template-columns: 1fr 1fr; }
  .duel-mid { grid-column: 1 / -1; grid-row: 2; padding-top: 0; }
  .duel-side .facts { display: none; }
}

/* ---------- Ludothèque : étagères ---------- */
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; }
.legend li { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; background: var(--fam); color: var(--on-fam); border: 2px solid #181512; font: 700 .76rem var(--f-mono); text-transform: uppercase; letter-spacing: .06em; }
.shelf { margin-top: clamp(36px, 5vw, 60px); min-width: 0; }
.shelves { display: grid; gap: 0 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr)); }
.shelf-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-bottom: 14px; }
.shelf-head .mono { color: var(--muted); }
.shelf-head a { margin-left: auto; font-weight: 700; }
.shelf-row { display: flex; align-items: flex-end; gap: 4px; min-height: 252px; padding: 22px 14px 0; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; border-radius: 12px 12px 0 0; background: var(--felt-deep); border: 2.5px solid #181512; border-bottom: 0; box-shadow: inset 0 18px 0 rgba(0,0,0,.18); }
.shelf::after { content: ""; display: block; height: 16px; border: 2.5px solid #181512; border-radius: 0 0 6px 6px; background: var(--brass); box-shadow: 0 5px 0 #181512; position: relative; z-index: 1; }
.spine { --tilt: 0deg; position: relative; flex: none; display: flex; flex-direction: column; justify-content: space-between; align-items: center; width: var(--w); height: var(--h); padding: 10px 0; border-radius: 5px 5px 2px 2px; background: var(--fam); color: var(--on-fam); border: 2px solid #181512; border-bottom-width: 0; text-decoration: none; overflow: hidden; transform-origin: 50% 100%; transform: rotate(var(--tilt)); transition: transform .22s var(--ease-pose); isolation: isolate; }
.spine::before, .spine::after { content: ""; position: absolute; left: 0; right: 0; height: 4px; background: rgba(24,21,18,.3); z-index: -1; }
.spine::before { top: 14px; } .spine::after { bottom: 14px; }
.spine:nth-child(7n+3) { --tilt: -3deg; } .spine:nth-child(11n+6) { --tilt: 2deg; }
.spine:hover, .spine:focus-visible { transform: translateY(-16px) rotate(0); }
.spine-name { writing-mode: vertical-rl; transform: rotate(180deg); font: 800 1rem/1 var(--f-display); font-stretch: 75%; text-transform: uppercase; letter-spacing: .01em; max-height: calc(var(--h) - 76px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spine-meta { writing-mode: vertical-rl; transform: rotate(180deg); font: 700 .58rem var(--f-mono); opacity: .9; white-space: nowrap; }

/* Grille de boîtes (catalogue, alternatives) */
.game-grid { display: grid; gap: 22px 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.game-card { display: grid; gap: 10px; align-content: start; }
.game-card h3 a { color: var(--ink); text-decoration: none; }
.game-card h3 a:hover { text-decoration: underline; }
.game-card p { font-size: .9rem; color: var(--muted); }
.game-card > a:first-child { display: block; border-radius: 10px; transition: transform .2s var(--ease-out); }
.game-card > a:first-child:hover { transform: translateY(-4px) rotate(-1.5deg); }
.game-card > a .box { box-shadow: 4px 4px 0 #181512; }
.game-card[hidden] { display: none; }

/* ---------- Fiche jeu : le livret ouvert ---------- */
.livret { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); margin-top: 22px; border-radius: 20px; background: var(--card); border: 3px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); }
.livret::before { content: ""; position: absolute; top: 0; bottom: 0; left: 53.5%; width: 36px; margin-left: -18px; background: linear-gradient(90deg, transparent, rgba(24,21,18,.1) 42%, rgba(24,21,18,.2) 50%, rgba(24,21,18,.1) 58%, transparent); pointer-events: none; }
.leaf { display: grid; gap: 16px; align-content: start; padding: clamp(20px, 3.4vw, 44px); min-width: 0; }
.leaf-player h1 { font-size: clamp(2.4rem, 1.4rem + 3.6vw, 4.4rem); overflow-wrap: anywhere; }
.leaf-buyer { position: relative; }
.verdict { font: 700 clamp(1.15rem, 1rem + .6vw, 1.45rem)/1.3 var(--f-display); font-stretch: 90%; }
.verdict .label { display: block; margin-bottom: 6px; }
.stats { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; border: 2px solid var(--ink); border-radius: var(--r); overflow: hidden; background: var(--ink); gap: 2px; }
.stats li { flex: 1 1 84px; display: grid; gap: 2px; padding: 12px 12px 10px; background: var(--paper); }
.stats b { font: 800 1.7rem/1 var(--f-display); font-stretch: 75%; }
.stats small { font-size: .8rem; }
.stats span { font: 700 .62rem var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.pc { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.pc > div { display: grid; gap: 6px; padding: 14px; border-radius: var(--r); border: 2px solid var(--ink); background: var(--paper); font-size: .95rem; }
.pc b { font: 800 .9rem var(--f-display); text-transform: uppercase; letter-spacing: .04em; }
.pc .yes b { color: var(--yes); } .pc .no b { color: var(--no); }
.en-bref { position: relative; max-width: 70ch; font-size: .97rem; padding-left: 16px; }
.en-bref::before { content: ""; position: absolute; left: 0; top: .3em; bottom: .3em; width: 4px; border-radius: 2px; background: var(--brass); }
.livret-box { display: flex; justify-content: center; margin: -58px 0 6px; }
.livret-box .box { width: min(78%, 280px); }
.price-tag { position: relative; display: grid; gap: 4px; padding: 16px 18px 16px 36px; border-radius: 6px var(--r) var(--r) 6px; background: var(--brass); color: #181512; border: 2px solid #181512; clip-path: polygon(20px 0, 100% 0, 100% 100%, 20px 100%, 0 50%); }
.price-tag::before { content: ""; position: absolute; left: 13px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--card); border: 2px solid #181512; }
.price-tag b { font: 800 1.5rem/1 var(--f-display); font-stretch: 80%; }
.price-tag .label { color: #3D3324; }
.price-tag p { font-size: .86rem; }
.leaf-buyer h3 { margin-top: 6px; }
.alt-boxes { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.alt-boxes a { display: grid; gap: 6px; width: 84px; color: var(--ink); text-decoration: none; font-size: .8rem; font-weight: 700; line-height: 1.2; }
.alt-boxes .box { transition: transform .2s var(--ease-pose); box-shadow: 3px 3px 0 #181512; }
.alt-boxes a:hover .box { transform: translateY(-4px) rotate(-3deg); }
.duel-cta { margin-top: 20px; }
@media (min-width: 881px) { .leaf-buyer { border-left: 2px dashed var(--line); } }
@media (max-width: 880px) {
  .livret { grid-template-columns: 1fr; }
  .livret::before { display: none; }
  .leaf-buyer { border-top: 2px dashed var(--line); }
  .livret-box { margin-top: 0; }
}
.metrics { display: grid; gap: 14px; }
.metric { display: grid; grid-template-columns: 110px auto; gap: 4px 14px; align-items: center; }
.metric > span:first-child { font-weight: 700; }
.metric small { grid-column: 2; color: var(--muted); font-size: .86rem; }
.qa h3 { font-size: 1.05rem; margin: 20px 0 4px; } .qa h3:first-child { margin-top: 0; }
.spec { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; font-size: .95rem; }
.spec dt { font: 700 .72rem/1.9 var(--f-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.spec dd { margin: 0; }
.source { margin-top: 48px; padding-top: 16px; border-top: 2px solid var(--ink); display: grid; gap: 6px; font-size: .86rem; color: var(--muted); }

/* ---------- Règle express : une aide de jeu, pas un mur de texte ---------- */
.rule { scroll-margin-top: 96px; }
.rule-cards { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); counter-reset: none; }
.rule-card { position: relative; display: grid; gap: 10px; align-content: start; padding: 22px 18px 18px; border-radius: var(--r); background: var(--card); border: 2.5px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.rule-card:nth-child(2) { transform: rotate(.6deg); } .rule-card:nth-child(3) { transform: rotate(-.5deg); }
.rule-turn { background: var(--felt); color: var(--on-felt); border-color: #181512; box-shadow: 4px 4px 0 #181512; }
.rule-n { position: absolute; top: -16px; left: 16px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--coral); color: #181512; border: 2.5px solid #181512; font: 800 1rem var(--f-display); }
.rule-turn .rule-n { background: var(--acid); }
.rule-card h3 { font-size: 1.2rem; font-weight: 800; font-stretch: 85%; }
.rule-card ol { margin: 0; padding-left: 20px; display: grid; gap: 7px; font-size: .94rem; }
.rule-card ol li::marker { font: 700 .8rem var(--f-mono); }
.rule-card p { font-size: .94rem; }
.table-mode { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0; background: var(--felt); color: var(--on-felt); }
.table-mode[open] { display: grid; place-items: center; animation: tm-in .24s var(--ease-out); }
@keyframes tm-in { from { transform: scale(.985); } }
.table-mode::backdrop { background: #141D36; }
.table-mode::before { content: ""; position: fixed; inset: 0; background: var(--noise); opacity: .45; mix-blend-mode: soft-light; pointer-events: none; }
.tm-inner { position: relative; display: grid; gap: clamp(18px, 3vh, 32px); justify-items: start; width: min(1000px, 100% - 32px); padding: 24px 0; }
.tm-game { font: 700 .9rem var(--f-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--acid); }
.tm-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: clamp(10px, 2vh, 22px); counter-reset: tm; }
.tm-steps li { counter-increment: tm; display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: baseline; font: 800 clamp(2rem, 1.2rem + 4.2vw, 4.6rem)/1.02 var(--f-display); font-stretch: 80%; }
.tm-steps li::before { content: counter(tm); display: grid; place-items: center; width: 1.2em; height: 1.2em; border-radius: 50%; background: var(--ivory); color: #181512; border: 3px solid #181512; font-size: .62em; box-shadow: 3px 3px 0 #181512; }
.tm-goal { max-width: 60ch; font-size: clamp(1rem, .9rem + .5vw, 1.25rem); color: var(--on-felt-muted); }
.tm-goal b { color: var(--on-felt); }

/* ---------- Sélections ---------- */
.quick { --focus: var(--acid); margin-top: 26px; display: grid; gap: 18px; padding: clamp(18px, 3vw, 30px); border-radius: 20px; background: var(--felt); color: var(--on-felt); border: 3px solid #181512; box-shadow: var(--shadow-lg); }
.quick .label { color: var(--acid); }
.quick > p { font: 700 clamp(1.08rem, 1rem + .4vw, 1.3rem)/1.4 var(--f-display); font-stretch: 90%; max-width: 70ch; }
.quick-picks { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 220px)); }
.quick-pick { display: grid; gap: 8px; text-decoration: none; transition: transform .2s var(--ease-pose); }
.quick-pick .label { color: var(--on-felt-muted); }
.quick-pick:nth-child(1) { transform: rotate(-2deg); } .quick-pick:nth-child(3) { transform: rotate(1.5deg); }
.quick-pick:hover { transform: translateY(-6px) rotate(0); }
.quick-pick .box { box-shadow: 4px 4px 0 #181512; }
.table-wrap { overflow-x: auto; border: 2.5px solid var(--ink); border-radius: var(--r); background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th, td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
thead th { font: 700 .68rem var(--f-mono); text-transform: uppercase; letter-spacing: .08em; background: var(--ink); color: var(--paper); border-bottom: 0; }
tbody tr:nth-child(even) { background: color-mix(in srgb, var(--paper) 55%, transparent); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
td.num { font-family: var(--f-mono); font-size: .86rem; white-space: nowrap; }
.cmp tr.diff th[scope="row"] { box-shadow: inset 4px 0 0 var(--coral); }
.sticky { position: sticky; left: 0; background: var(--card); z-index: 1; }
thead .sticky { background: var(--ink); }
.profiles { margin: 8px 0 22px; }
.profiles h3 { margin-bottom: 10px; }
.profiles ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.profiles li { display: grid; gap: 2px; padding: 12px 14px; border-radius: var(--r-sm); border: 2px solid var(--ink); background: var(--paper); }
.profiles li span { font: 700 .66rem var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.profiles li b { font: 800 1.05rem var(--f-display); font-stretch: 85%; }
.picks { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.pick { display: grid; gap: 22px; grid-template-columns: 200px minmax(0, 1fr); padding: clamp(16px, 2.6vw, 26px); border-radius: 18px; background: var(--card); border: 2.5px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); scroll-margin-top: 110px; }
.pick > a .box { box-shadow: 4px 4px 0 #181512; }
.pick:nth-child(odd) > a .box { transform: rotate(-2.5deg); } .pick:nth-child(even) > a .box { transform: rotate(2deg); }
.pick-body { display: grid; gap: 12px; align-content: start; }
.pick-rank { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--coral); color: #181512; border: 2.5px solid #181512; font: 800 1.3rem var(--f-display); box-shadow: 2px 2px 0 #181512; }
.pick-body h3 { font-size: clamp(1.4rem, 1.2rem + 1vw, 2rem); font-weight: 800; font-stretch: 80%; }
.pick-body h3 a { color: var(--ink); text-decoration: none; }
.facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.facts li { display: inline-flex; align-items: baseline; gap: 6px; padding: 5px 10px; border-radius: 999px; border: 1.5px solid var(--ink); font-size: .82rem; }
.facts b { font: 700 .86rem var(--f-mono); }
.facts span { color: var(--muted); }
@media (max-width: 640px) { .pick { grid-template-columns: 1fr; } .pick > a { width: 150px; } }

/* Générateur de soirée : la piste */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 36px; top: 10px; bottom: 10px; width: 4px; background: repeating-linear-gradient(var(--ink) 0 10px, transparent 10px 16px); }
.timeline li { position: relative; display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 4px 16px; align-items: center; padding: 8px 0; }
.timeline li .label { grid-column: 2; }
.timeline li .box { grid-row: 1 / span 2; box-shadow: 3px 3px 0 #181512; }
.timeline li > div { grid-column: 2; }
.timeline h3 a { color: var(--ink); }
.total { margin-top: 14px; font-size: 1rem; }

/* ---------- Bac de duel et Ma table ---------- */
.tray { position: fixed; z-index: 30; left: 50%; bottom: max(16px, env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); display: flex; gap: 6px; align-items: center; padding: 6px; border-radius: 999px; background: #181512; border: 2px solid #181512; box-shadow: 4px 4px 0 var(--coral); animation: rise .24s var(--ease-pose); }
.tray[hidden] { display: none; }
.tray a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--coral); color: #181512; font-weight: 800; text-decoration: none; }
.tray [data-count] { display: grid; place-items: center; min-width: 24px; height: 24px; border-radius: 50%; background: #181512; color: var(--coral); font: 700 .78rem var(--f-mono); }
.tray button { min-height: 44px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: #EFE3CB; font: 600 .9rem var(--f-text); }
@keyframes rise { from { opacity: 0; transform: translate(-50%, 12px); } }
.drawer { position: fixed; inset: 0 0 0 auto; width: min(400px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 22px; border: 0; border-left: 3px solid var(--ink); background: var(--card); color: var(--ink); overflow-y: auto; }
.drawer[open] { display: grid; gap: 20px; align-content: start; animation: slide .26s var(--ease-out); }
.drawer::backdrop { background: rgba(15,12,9,.55); }
@keyframes slide { from { transform: translateX(26px); } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.drawer section { display: grid; gap: 10px; }
.mt-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mt-list li { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 6px 4px 10px; border-radius: var(--r-sm); border: 1.5px solid var(--line); background: var(--paper); }
.mt-list li a { flex: 1; font-weight: 700; color: var(--ink); }
.mt-list li.mt-empty { color: var(--muted); font-size: .9rem; border-style: dashed; }
.mt-x { min-height: 36px; padding: 0 10px; border-radius: 999px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); font: 600 .78rem var(--f-text); }
[data-mt-duel][hidden] { display: none; }

/* ---------- Pied de page ---------- */
.site-foot { --focus: var(--acid); position: relative; margin-top: clamp(64px, 8vw, 110px); padding: 54px 0 calc(84px + env(safe-area-inset-bottom, 0px)); background: #181512; color: #CFC4AE; }
.site-foot::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: repeating-linear-gradient(90deg, var(--coral) 0 22px, var(--brass) 22px 44px, var(--acid) 44px 66px, var(--blue) 66px 88px, var(--violet) 88px 110px); }
.site-foot a { color: #EFE3CB; text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
.site-foot .label { color: var(--brass); margin-bottom: 12px; }
.foot-cols { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); justify-items: center; text-align: center; }
.foot-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; justify-items: center; font-size: .92rem; }
.disclosure { margin: 26px auto 0; font-size: .82rem; max-width: 92ch; color: #B8AD97; text-align: center; }

/* ---------- Mouvement réduit : la logique reste, le mouvement part ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
  .result, .spine, .quick-pick, .tile-stack .box { transform: none !important; }
}
