/* French Touch Cards : feuille de style.
   Concept : une planche de sérigraphie sur table de nuit. Le site reste sobre (encre, papier, un jaune), toute la couleur vient des cartes, imprimées en aplats avec un léger défaut de repérage. */

:root {
  color-scheme: dark;
  --bg: #100E15;
  --bg2: #181521;
  --bg3: #221E2E;
  --line: #342E42;
  --fg: #F6EFDD;
  --mut: #ADA6BA;
  --faint: #756E84;
  --ink: #17131C;
  --paper: #FFF6E0;
  --y: #FFD22E;
  --r: #F0472E;
  --b: #4A67FF;
  --pk: #F7A8C0;
  --gr: #3FA36A;
  --hl: #FFD22E;
  --hand: #FFD22E;
  --off: #F0472E;
  --err: #FF7A63;
  --r-C: #A39DB1;
  --r-PC: #3FA36A;
  --r-R: #4D6BFF;
  --r-SR: #A56CF0;
  --r-UR: #FF4F87;
  --r-L: #FFC21E;
  --r-A: #E9ECF5;
  --holo: conic-gradient(from 20deg, #FF8CBE, #78DCFF, #FFEE78, #A0FFBE, #FF8CBE);
  --f-display: "Bricolage Grotesque", "Arial Narrow", "Helvetica Neue", Impact, sans-serif;
  --f-body: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --f-hand: "Caveat", "Bradley Hand", "Segoe Script", cursive;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --maxw: 1180px;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #F4EFE3; --bg2: #FBF8F1; --bg3: #EAE3D2; --line: #D5CCB6;
    --fg: #17131C; --mut: #5C5566; --faint: #8C8497;
    --b: #2548D1; --off: #17131C; --hl: #2548D1; --hand: #E8402A; --err: #B8301B;
    --r-C: #8C8698; --r-A: #17131C;
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #F4EFE3; --bg2: #FBF8F1; --bg3: #EAE3D2; --line: #D5CCB6;
  --fg: #17131C; --mut: #5C5566; --faint: #8C8497;
  --b: #2548D1; --off: #17131C; --hl: #2548D1; --hand: #E8402A; --err: #B8301B;
  --r-C: #8C8698; --r-A: #17131C;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.5 var(--f-body);
  padding-left: var(--gutter);
  padding-right: var(--gutter-r);
  min-height: 100vh;
  overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg);
}
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
img, svg { max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--y); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.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; background: var(--y); color: var(--ink); padding: 10px 14px; z-index: 200; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 12px; }

h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); font-weight: 800; font-stretch: 75%; font-variation-settings: "wdth" 75; letter-spacing: -.015em; line-height: .95; text-wrap: balance; text-transform: uppercase; }
p { margin: 0; text-wrap: pretty; }
.eyebrow { font: 500 12px/1.5 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mut); }
.hand { font-family: var(--f-hand); font-weight: 700; color: var(--hand); font-size: 1.35rem; line-height: 1; }
.lead { font-size: 18px; color: var(--mut); max-width: 52ch; }
.lead b { color: var(--fg); font-weight: 600; }
.muted { color: var(--mut); font-size: 14px; }
.muted.small { font-size: 12.5px; }
.muted.pad { padding: 28px 20px; }
.callout { display: inline-block; margin-top: 24px; padding: 12px 16px; max-width: 46ch; border: 2px solid var(--ink); border-radius: 14px; background: var(--y); color: var(--ink); font-size: 15px; line-height: 1.4; box-shadow: 4px 4px 0 var(--r); }
.callout b { font-weight: 700; }
.boot { padding: 140px 0; text-align: center; font: 500 13px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }

/* ---------- en-tête ---------- */
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  margin-inline: calc(var(--gutter) * -1) calc(var(--gutter-r) * -1);
  padding-inline: var(--gutter) var(--gutter-r);
}
.top-in { max-width: var(--maxw); margin-inline: auto; display: flex; align-items: center; gap: 20px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.logo-mark { width: 34px; height: 34px; flex: none; }
.logo-txt { display: flex; flex-direction: column; font: 800 19px/.86 var(--f-display); font-stretch: 75%; font-variation-settings: "wdth" 75; letter-spacing: -.01em; text-transform: uppercase; }
.logo-txt b { font-weight: 800; color: var(--hl); display: block; }
.nav { display: flex; gap: 4px; margin-left: 12px; }
.nav a { text-decoration: none; font: 600 12.5px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mut); padding: 10px 12px; border-radius: 999px; display: inline-flex; gap: 8px; align-items: center; white-space: nowrap; }
.nav a:hover { color: var(--fg); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--y); }
.nav .badge { background: var(--r); color: #fff; border-radius: 999px; padding: 3px 6px; font-size: 11px; letter-spacing: 0; }
.nav .badge.dot { width: 8px; height: 8px; padding: 0; }
.nav a[aria-current="page"] .badge { background: var(--ink); color: var(--y); }
.tools { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--bg2); border-radius: 999px; padding: 9px 14px; font: 500 12.5px/1 var(--f-mono); color: var(--fg); letter-spacing: .04em; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; }
.chip:hover { border-color: var(--faint); }
.chip-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--r-PC); }

/* ---------- boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: 15px 24px; border: 2px solid var(--ink); border-radius: 999px;
  background: var(--y); color: var(--ink);
  font: 700 15px/1 var(--f-body); text-decoration: none; letter-spacing: .01em;
  box-shadow: 4px 4px 0 var(--off);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 6px 6px 0 var(--off); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--off); }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: 2px 2px 0 var(--off); }
.btn.ghost { background: transparent; color: var(--fg); border-color: var(--fg); box-shadow: none; }
.btn.ghost:hover { background: var(--fg); color: var(--bg); transform: none; box-shadow: none; }
.btn.small { padding: 11px 16px; font-size: 13px; box-shadow: 3px 3px 0 var(--off); }
.btn.ghost.small { box-shadow: none; }
.btn.red { background: var(--r); color: #fff; border-color: var(--ink); }
.link { background: none; border: 0; padding: 0; color: var(--mut); text-decoration: underline; text-underline-offset: 3px; font-size: 13px; }
.link:hover { color: var(--fg); }
a.src { display: inline-block; margin-top: 16px; color: var(--mut); font-size: 14px; text-underline-offset: 3px; }
a.src:hover { color: var(--fg); }

main { max-width: var(--maxw); margin-inline: auto; padding-block: 36px 80px; outline: none; }
.sec { margin-top: 88px; }
.sec-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.sec-h h2 { font-size: clamp(32px, 5vw, 52px); }
.sec-h .aside { color: var(--mut); font-size: 14px; max-width: 46ch; }
.page-head { max-width: 780px; }
.page-t { margin-top: 14px; font-size: clamp(44px, 7vw, 92px); line-height: .86; }
.page-head .lead { margin-top: 20px; }
.panel { min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--bg2); }
.panel h2 { font-size: 30px; margin-bottom: 14px; }
.panel p { color: var(--mut); font-size: 14.5px; }
.panel p + p { margin-top: 10px; }
.panel .btn { margin-top: 16px; }
.panel .muted { margin-top: 12px; }
.bar { height: 6px; background: var(--bg3); border-radius: 6px; overflow: hidden; margin-top: 12px; }
.bar i { display: block; height: 100%; background: var(--y); border-radius: 6px; }

/* ---------- accueil ---------- */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; min-height: 560px; }
.hero h1 { font-size: clamp(54px, 7.4vw, 108px); line-height: .84; letter-spacing: -.025em; }
.hero h1 span { display: block; }
.hero h1 .l2 { color: var(--hl); }
.hero h1 .l3 { color: var(--fg); text-shadow: .035em .035em 0 var(--r); }
.hero p.lead { margin-top: 28px; max-width: 46ch; }
.hero .cta { margin-top: 30px; display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.hero .note { margin-top: 18px; color: var(--faint); font: 500 12px/1.4 var(--f-mono); letter-spacing: .03em; }
.fan { position: relative; height: 520px; }
.fan .fcw { position: absolute; width: 46%; }
.fan .fcw:nth-child(1) { left: 2%; top: 14%; transform: rotate(-9deg); z-index: 1; }
.fan .fcw:nth-child(2) { left: 28%; top: 0; transform: rotate(2deg); z-index: 3; }
.fan .fcw:nth-child(3) { left: 52%; top: 18%; transform: rotate(10deg); z-index: 2; }
.fan .fcw .fc { transition: transform .3s ease; }
.fan-hand { position: absolute; left: 4%; bottom: 0; z-index: 4; transform: rotate(-4deg); }

.marquee { margin-top: 56px; border-block: 1px solid var(--line); overflow: hidden; position: relative; margin-inline: calc(var(--gutter) * -1) calc(var(--gutter-r) * -1); }
.marquee-track { display: flex; width: max-content; animation: scroll 110s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-set { display: flex; align-items: center; gap: 28px; padding: 16px 14px; }
.marquee-set span { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; font: 800 22px/1 var(--f-display); font-stretch: 75%; font-variation-settings: "wdth" 75; text-transform: uppercase; color: var(--fg); }
.marquee-set i { width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--faint)); display: inline-block; }
.marquee-set span small { font: 500 11px/1 var(--f-mono); letter-spacing: .1em; color: var(--faint); }
@keyframes scroll { to { transform: translateX(-50%); } }

.fams { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.fam {
  position: relative; text-decoration: none; border-radius: 18px; overflow: hidden; background: var(--tile, #2F55E0);
  border: 2px solid var(--ink); display: flex; flex-direction: column; min-height: 280px; isolation: isolate; color: var(--tc, var(--ink));
  box-shadow: 5px 5px 0 var(--off); transition: transform .15s ease, box-shadow .15s ease; text-align: left;
}
.fam:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--off); }
.fam .m { position: absolute; right: -14px; top: -6px; width: 62%; z-index: -1; transform: rotate(6deg); }
.fam .m svg { width: 100%; height: auto; display: block; }
.fam .in { margin-top: auto; padding: 18px 18px 16px; background: linear-gradient(to top, var(--tile) 62%, transparent); }
.fam h3 { font-size: 27px; color: inherit; }
.fam p { margin-top: 8px; font-size: 13.5px; line-height: 1.35; opacity: .88; }
.fam .prog { margin-top: 12px; display: flex; align-items: center; gap: 10px; font: 500 12px/1 var(--f-mono); letter-spacing: .04em; }
.fam .prog .bar { flex: 1; margin: 0; background: color-mix(in srgb, currentColor 24%, transparent); height: 7px; }
.fam .prog .bar i { background: currentColor; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.step { padding: 28px 28px 8px 0; }
.step + .step { padding-left: 28px; border-left: 1px solid var(--line); }
.step .n { font: 800 64px/1 var(--f-display); font-stretch: 75%; color: var(--hl); font-variation-settings: "wdth" 75; }
.step h3 { margin-top: 10px; font-size: 24px; }
.step p { margin-top: 10px; color: var(--mut); max-width: 34ch; }

.rars { display: flex; flex-wrap: wrap; gap: 10px; }
.rar-pill { display: inline-flex; align-items: center; gap: 10px; padding: 11px 16px 11px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg2); font-size: 14px; }
.rar-pill .sym { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--rc); color: var(--ink); font: 800 11px/1 var(--f-mono); }
.rar-pill small { color: var(--faint); font: 500 12px/1 var(--f-mono); }

.live-box { border: 1px solid var(--line); border-radius: 18px; background: var(--bg2); padding: 6px 20px; }
.live-box > .muted, .live > div > .muted { padding: 14px 0; }
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.feed li:first-child { border-top: 0; }
.feed li i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--rc); }
.feed li span { min-width: 0; color: var(--mut); }
.feed li span b { color: var(--fg); font-weight: 600; }
.feed li small { margin-left: 6px; font: 500 11px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--faint); white-space: nowrap; }
.feed time { font: 500 11.5px/1 var(--f-mono); color: var(--faint); white-space: nowrap; }

/* tableau de bord (connecté) */
.dash { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: 48px; align-items: center; padding-top: 24px; }
.dash h1 { margin-top: 18px; font-size: clamp(46px, 6.6vw, 92px); line-height: .86; }
.dash .lead { margin-top: 20px; }
.dash .cta { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 18px; background: var(--bg2); overflow: hidden; }
.kpis div { padding: 18px 16px; border-left: 1px solid var(--line); }
.kpis div:first-child { border-left: 0; }
.kpis b { display: block; font: 800 clamp(28px, 3.4vw, 42px)/1 var(--f-display); font-stretch: 75%; font-variation-settings: "wdth" 75; font-variant-numeric: tabular-nums; }
.kpis small { font-size: .5em; color: var(--mut); }
.kpis span { display: block; margin-top: 6px; font: 500 11px/1.3 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mut); }
.todo { list-style: none; margin: 14px 0 0; padding: 0; border: 1px solid var(--line); border-radius: 18px; background: var(--bg2); overflow: hidden; }
.todo li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 16px; border-top: 1px solid var(--line); font-size: 14.5px; }
.todo li:first-child { border-top: 0; }
.todo li span { color: var(--mut); }
.todo li b { font: 500 12.5px/1 var(--f-mono); letter-spacing: .03em; text-align: right; }
.todo li.on b { padding: 6px 10px; border-radius: 999px; background: var(--y); color: var(--ink); }

.gate { max-width: 700px; margin: 32px auto 0; padding: 52px 36px; text-align: center; border: 1px solid var(--line); border-radius: 26px; background: var(--bg2); }
.gate h1 { margin-top: 16px; font-size: clamp(38px, 5.4vw, 64px); }
.gate .lead { margin: 18px auto 0; }
.gate .cta { margin-top: 30px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- carte ---------- */
.fcw { container-type: inline-size; aspect-ratio: 5 / 7; width: 100%; position: relative; }
.fc { --rc: var(--r-C); position: absolute; inset: 0; transform-style: preserve-3d; transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .18s ease-out; border-radius: 5.8cqw; }
.fc[data-r="PC"] { --rc: var(--r-PC); } .fc[data-r="R"] { --rc: var(--r-R); } .fc[data-r="SR"] { --rc: var(--r-SR); }
.fc[data-r="UR"] { --rc: var(--r-UR); } .fc[data-r="L"] { --rc: var(--r-L); } .fc[data-r="A"] { --rc: var(--r-A); }
.fc.is-hot { transition: transform .05s linear; }
.fc-in { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .75s cubic-bezier(.2, .75, .2, 1); border-radius: inherit; }
.fc[data-down] .fc-in { transform: rotateY(180deg); }
.fc-front, .fc-back, .fc-lock { position: absolute; inset: 0; border-radius: 5.8cqw; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.fc-front {
  /* Gecko (Firefox, Zen) ignore backface-visibility sur une face sans transform propre : la carte retournée montrait sa face en miroir au lieu du dos. */
  transform: rotateY(0deg);
  background: var(--paper); border: .9cqw solid var(--ink); padding: 3.2cqw; display: flex; flex-direction: column; gap: 2cqw; overflow: hidden;
  color: var(--ink); box-shadow: 0 1.5cqw 5cqw -1cqw rgba(0, 0, 0, .55);
}
.fc[data-r="PC"] .fc-front { box-shadow: inset 0 0 0 1cqw var(--paper), inset 0 0 0 1.7cqw var(--rc), 0 1.5cqw 5cqw -1cqw rgba(0, 0, 0, .55); }
.fc[data-r="R"] .fc-front { box-shadow: inset 0 0 0 1cqw var(--paper), inset 0 0 0 1.9cqw var(--rc), 0 1.5cqw 5cqw -1cqw rgba(0, 0, 0, .55); }
.fc[data-r="SR"] .fc-front, .fc[data-r="UR"] .fc-front { box-shadow: inset 0 0 0 1cqw var(--paper), inset 0 0 0 2.4cqw var(--rc), 0 1.5cqw 5cqw -1cqw rgba(0, 0, 0, .55), 0 0 6cqw -1cqw var(--rc); }
.fc[data-r="L"] .fc-front { box-shadow: inset 0 0 0 1cqw var(--paper), inset 0 0 0 2.8cqw var(--rc), 0 1.5cqw 5cqw -1cqw rgba(0, 0, 0, .55), 0 0 9cqw 0 color-mix(in srgb, var(--rc) 70%, transparent); }
.fc[data-r="A"] .fc-front { background: #1B1824; color: #EDEAF5; border-color: #EDEAF5; box-shadow: inset 0 0 0 1cqw #1B1824, inset 0 0 0 1.8cqw #EDEAF5, 0 1.5cqw 5cqw -1cqw rgba(0, 0, 0, .55), 0 0 8cqw -1cqw rgba(233, 236, 245, .5); }
/* Les planchers en px gardent l'en-tête et le sous-titre lisibles sur les petites cartes de la grille. */
.fc-top { display: flex; align-items: center; justify-content: space-between; gap: 2cqw; font: 500 max(3.6cqw, 8px)/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; padding: .4cqw 1cqw 0; white-space: nowrap; }
.fc-top span { overflow: hidden; text-overflow: ellipsis; }
.fc-top span:first-child { display: inline-flex; align-items: center; gap: 1.4cqw; }
.fc-top i { flex: none; width: max(2.6cqw, 6px); height: max(2.6cqw, 6px); border-radius: 50%; background: var(--rc); display: inline-block; border: max(.5cqw, 1px) solid currentColor; }
.fc-art { position: relative; aspect-ratio: 300 / 285; border: .8cqw solid var(--ink); border-radius: 3cqw; overflow: hidden; background: #ccc; flex: none; }
.fc[data-r="A"] .fc-art { border-color: #EDEAF5; }
.fc-art .art-svg { display: block; width: 100%; height: 100%; }
.fc-art::after { content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: multiply; opacity: .5; background: radial-gradient(circle at 100% 100%, rgba(23, 19, 28, .55) 0 1.2px, transparent 1.6px) 0 0 / 2.6cqw 2.6cqw; -webkit-mask-image: linear-gradient(to top left, #000, transparent 45%); mask-image: linear-gradient(to top left, #000, transparent 45%); }
.fc-foot { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: center; padding: 0 1.2cqw; gap: 1.6cqw; }
.fc-name { font: 800 9.6cqw/.92 var(--f-display); font-stretch: 75%; font-variation-settings: "wdth" 75; text-transform: uppercase; letter-spacing: -.012em; overflow-wrap: anywhere; }
.fc[data-r="R"] .fc-name, .fc[data-r="SR"] .fc-name, .fc[data-r="UR"] .fc-name, .fc[data-r="L"] .fc-name { text-shadow: .5cqw .5cqw 0 color-mix(in srgb, var(--rc) 60%, transparent); }
.fc-name.long { font-size: 7.6cqw; }
.fc-name.xlong { font-size: 6.4cqw; }
.fc-kick { font: 500 max(3.6cqw, 9px)/1.25 var(--f-mono); letter-spacing: .01em; opacity: .78; padding-right: 11cqw; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.fc-rar { position: absolute; right: 3.6cqw; bottom: 3.4cqw; width: 10cqw; height: 10cqw; border-radius: 50%; display: grid; place-items: center; background: var(--rc); border: .8cqw solid var(--ink); color: var(--ink); font: 800 3.5cqw/1 var(--f-mono); box-shadow: .6cqw .6cqw 0 var(--ink); }
.fc[data-r="A"] .fc-rar { border-color: #EDEAF5; color: #1B1824; box-shadow: .6cqw .6cqw 0 #EDEAF5; font-size: 5cqw; }
.fc-foil { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: color-dodge; opacity: 0; transition: opacity .25s; border-radius: inherit;
  background: linear-gradient(115deg, transparent 18%, rgba(255, 140, 190, .75) 34%, rgba(120, 220, 255, .75) 44%, rgba(255, 238, 120, .75) 54%, rgba(160, 255, 190, .6) 62%, transparent 76%) var(--mx, 50%) var(--my, 50%) / 260% 260%; }
.fc[data-r="SR"].is-hot .fc-foil { opacity: .42; } .fc[data-r="UR"].is-hot .fc-foil { opacity: .6; }
.fc[data-r="L"] .fc-foil { opacity: .5; animation: foil 5s ease-in-out infinite alternate; }
.fc[data-r="A"] .fc-foil { opacity: .32; animation: foil 6.5s ease-in-out infinite alternate; filter: grayscale(.7); }
.fc[data-shiny] .fc-foil { opacity: .62; animation: foil 3.8s ease-in-out infinite alternate; filter: none; }
@keyframes foil { from { background-position: 0% 30%; } to { background-position: 100% 70%; } }
.fc-tag { position: absolute; left: 3.6cqw; top: 12cqw; z-index: 3; background: var(--ink); color: var(--y); font: 700 max(3cqw, 8px)/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; padding: 1.5cqw 2.4cqw; border-radius: 2cqw; transform: rotate(-4deg); box-shadow: .6cqw .6cqw 0 var(--r); }
.fc-count { position: absolute; right: 3.6cqw; top: 12cqw; z-index: 3; background: var(--paper); color: var(--ink); border: .7cqw solid var(--ink); font: 800 max(3.6cqw, 9px)/1 var(--f-mono); padding: 1.1cqw 2.2cqw; border-radius: 999px; }
.fc-shine { position: absolute; right: 6cqw; top: 84cqw; z-index: 3; width: 9cqw; height: 9cqw; border-radius: 50%; display: grid; place-items: center; background: var(--holo); border: .7cqw solid var(--ink); color: var(--ink); font: 800 5cqw/1 var(--f-body); box-shadow: .5cqw .5cqw 0 var(--ink); }

.cb { position: absolute; inset: 0; border-radius: 5.8cqw; border: .9cqw solid var(--ink); overflow: hidden; background-color: #2F55E0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='60'><path d='M30 20Q30 30 40 30Q30 30 30 40Q30 30 20 30Q30 30 30 20Z' fill='%23FFD22E' opacity='.55'/><circle cx='0' cy='0' r='2.4' fill='%23FFF6E0' opacity='.35'/><circle cx='60' cy='0' r='2.4' fill='%23FFF6E0' opacity='.35'/><circle cx='0' cy='60' r='2.4' fill='%23FFF6E0' opacity='.35'/><circle cx='60' cy='60' r='2.4' fill='%23FFF6E0' opacity='.35'/></svg>");
  background-size: 11cqw 11cqw; box-shadow: inset 0 0 0 2.4cqw #2F55E0, inset 0 0 0 3.2cqw var(--paper), 0 1.5cqw 5cqw -1cqw rgba(0, 0, 0, .55); }
.cb-mark { position: absolute; left: 50%; top: 50%; width: 46cqw; height: 46cqw; transform: translate(-50%, -50%); border-radius: 50%; background: var(--y); border: .9cqw solid var(--ink); display: grid; place-items: center; font: 800 17cqw/1 var(--f-display); font-stretch: 75%; font-variation-settings: "wdth" 75; font-style: normal; color: var(--ink); box-shadow: 1.6cqw 1.6cqw 0 var(--r); }
.fc-back { overflow: hidden; transform: rotateY(180deg); }
.fc-lock { overflow: hidden; backface-visibility: visible; }
.slot { position: absolute; inset: 0; border: .9cqw dashed var(--faint); border-radius: 5.8cqw; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2.4cqw; background: color-mix(in srgb, var(--bg2) 60%, transparent); }
.slot-n { font: 800 30cqw/.9 var(--f-display); font-stretch: 75%; font-variation-settings: "wdth" 75; color: var(--fg); opacity: .12; letter-spacing: -.02em; }
.slot-l { font: 500 max(3.4cqw, 8.5px)/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.slot .dot { position: absolute; right: 7cqw; top: 7cqw; width: 4.6cqw; height: 4.6cqw; border-radius: 50%; background: var(--rc); }

.cardbtn { display: block; width: 100%; padding: 0; margin: 0; background: none; border: 0; text-align: inherit; border-radius: 14px; }
.cardbtn:focus-visible { outline-offset: 4px; }

/* ---------- pack ---------- */
.open { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; min-height: 600px; }
.packwrap { display: grid; place-items: center; position: relative; min-height: 520px; }
.pack { position: relative; width: min(300px, 70vw); aspect-ratio: 300 / 430; cursor: pointer; filter: drop-shadow(0 22px 28px rgba(0, 0, 0, .5)); transition: transform .25s ease; background: none; border: 0; padding: 0; }
.pack:hover { transform: translateY(-6px) rotate(-1.5deg); }
.pack[disabled] { cursor: not-allowed; filter: grayscale(.7) drop-shadow(0 22px 28px rgba(0, 0, 0, .5)); opacity: .75; }
.pack.is-wait { cursor: progress; opacity: 1; filter: drop-shadow(0 22px 28px rgba(0, 0, 0, .5)); animation: packwait .6s ease-in-out infinite alternate; }
@keyframes packwait { from { rotate: -2deg; translate: 0 -4px; } to { rotate: 2deg; translate: 0 -10px; } }
.pack-part { position: absolute; inset: 0; background-color: #2F55E0; }
.pack-art { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; overflow: hidden; color: var(--ink);
  background:
    radial-gradient(circle at 50% 46%, var(--y) 0 30%, transparent 30.4%),
    repeating-conic-gradient(from 0deg at 50% 46%, rgba(255, 255, 255, .16) 0 9deg, transparent 9deg 18deg),
    #2F55E0; }
.pack-art::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle, rgba(23, 19, 28, .4) 0 1.3px, transparent 1.8px) 0 0 / 9px 9px; -webkit-mask-image: linear-gradient(to top, #000, transparent 55%); mask-image: linear-gradient(to top, #000, transparent 55%); }
.pack-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .5) 46%, transparent 62%) 0 0 / 260% 100%; mix-blend-mode: soft-light; animation: sheen 4.6s ease-in-out infinite; }
@keyframes sheen { from { background-position: 120% 0; } to { background-position: -60% 0; } }
.pack-star { position: absolute; top: 8%; left: 50%; width: 18%; transform: translateX(-50%); }
.pack-title { position: relative; z-index: 2; margin-top: 4%; font: 800 clamp(50px, 17cqw, 76px)/.82 var(--f-display); font-stretch: 75%; font-variation-settings: "wdth" 75; text-transform: uppercase; letter-spacing: -.02em; color: var(--paper); text-shadow: 3px 3px 0 var(--ink), 6px 6px 0 var(--r); }
.pack-title b { display: block; color: var(--y); font-weight: 800; }
.pack-sub { position: absolute; z-index: 2; bottom: 11%; left: 0; right: 0; font: 500 12px/1 var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--paper); }
.pack-sub::before { content: ""; display: block; width: 52px; height: 2px; background: var(--paper); margin: 0 auto 12px; }
.pack-cap { transition: transform .7s cubic-bezier(.5, 0, .8, .4), opacity .6s ease .1s; transform-origin: 0% 100%; }
.pack.is-tear .pack-cap { transform: translate(34%, -120%) rotate(26deg); opacity: 0; }
.pack.is-tear { animation: shake .45s ease-in-out; }
.pack.is-gone { transform: scale(.92) translateY(30px); opacity: 0; transition: transform .6s ease, opacity .5s ease; pointer-events: none; }
@keyframes shake { 0%, 100% { rotate: 0deg; } 20% { rotate: -3deg; } 40% { rotate: 3deg; } 60% { rotate: -2deg; } 80% { rotate: 2deg; } }
.open-side h1 { font-size: clamp(44px, 6.4vw, 84px); line-height: .88; }
.open-side p { margin-top: 18px; color: var(--mut); max-width: 44ch; }
.open-side p.callout { color: var(--ink); }
.stock { margin-top: 28px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.stock i { width: 22px; height: 30px; border-radius: 4px; border: 2px solid var(--faint); display: block; position: relative; background: transparent; }
.stock i.on { background: var(--y); border-color: var(--ink); box-shadow: 2px 2px 0 var(--off); }
.stock-bonus { margin-left: 10px; font: 600 12.5px/1 var(--f-mono); letter-spacing: .04em; color: var(--hl); }
.stock-t { margin-top: 12px; font: 500 13px/1.3 var(--f-mono); letter-spacing: .04em; color: var(--mut); }
.stock-t b { color: var(--fg); font-weight: 500; }
.open-side .cta { margin-top: 26px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

/* ---------- ouverture : la pile ---------- */
.op-bar { max-width: 1040px; margin: 0 auto 10px; min-height: 44px; display: flex; align-items: center; gap: 16px; }
.op-hint { font: 500 12px/1.3 var(--f-mono); letter-spacing: .04em; color: var(--faint); }
.op-bar .btn { margin-left: auto; white-space: nowrap; }
.op-stage { display: grid; grid-template-columns: auto minmax(0, 460px); gap: 72px; justify-content: center; align-items: center; }
.op-left { display: flex; flex-direction: column; align-items: center; }
.op-stack {
  --sx: 8px; --sy: -7px; --sr: 1.7deg;
  position: relative; aspect-ratio: 5 / 7; margin: 40px 60px 0 0; cursor: pointer; border-radius: 24px; outline-offset: 12px;
  width: min(400px, 86vw);
  width: max(220px, min(400px, 86vw, calc((100svh - 250px) * .714)));
}
.op-card {
  --d: 0;
  position: absolute; inset: 0;
  transform: translate(calc(var(--d) * var(--sx)), calc(var(--d) * var(--sy))) rotate(calc(var(--d) * var(--sr)));
  transition: transform .55s cubic-bezier(.2, .8, .2, 1), opacity .45s ease, translate .25s ease;
  animation: opin .65s cubic-bezier(.2, .8, .2, 1) backwards; animation-delay: calc(var(--k, 0) * 90ms + 60ms);
}
.op-card.is-out { transform: translate(-125%, 30px) rotate(-14deg); opacity: 0; pointer-events: none; }
.op-stack:hover .op-card.is-top:not(.is-up) { translate: 0 -8px; }
@keyframes opin { from { opacity: 0; translate: 0 90px; scale: .9; } }
/* La lueur vit sur la carte entière, pas sur une face : Gecko rogne les ombres des faces 3D. */
.op-card::before { content: ""; position: absolute; inset: -5%; z-index: -1; border-radius: 9%; pointer-events: none; background: var(--g, transparent); filter: blur(22px); opacity: 0; transition: opacity .4s ease; }
.op-card[data-r="SR"] { --g: var(--r-SR); }
.op-card[data-r="UR"] { --g: var(--r-UR); }
.op-card[data-r="L"] { --g: var(--r-L); }
.op-card[data-shiny]::before { background: var(--holo); }
.op-card.is-top:is([data-r="SR"], [data-r="UR"], [data-r="L"], [data-shiny])::before { opacity: 1; animation: pulse 1.6s ease-in-out infinite; }
.op-card.is-top.is-charge::before { animation: chargeglow 1s ease-in forwards; }
.op-card.is-top.is-up::before { animation: none; opacity: .6; }
.op-card.is-charge > .fcw { animation: charge 1s linear; }
.op-card.is-up > .fcw { animation: lift .8s cubic-bezier(.2, .8, .2, 1); }
@keyframes pulse { 50% { opacity: .55; scale: .97; } }
@keyframes chargeglow { from { opacity: .7; scale: .97; } to { opacity: 1; scale: 1.16; } }
@keyframes charge { 0%, 100% { translate: 0 0; } 10% { translate: -1px 1px; } 20% { translate: 2px -1px; } 30% { translate: -2px 0; } 40% { translate: 3px 1px; } 50% { translate: -3px -1px; } 60% { translate: 4px 1px; } 70% { translate: -4px -2px; } 80% { translate: 5px 1px; } 90% { translate: -5px 0; } }
@keyframes lift { 40% { scale: 1.05; } }
.op-dots { display: flex; gap: 9px; margin-top: 28px; }
.op-dots i { width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--faint); transition: transform .2s ease, background .2s ease; }
.op-dots i.cur { border-color: var(--fg); transform: scale(1.25); }
.op-dots i.seen { background: var(--rc, var(--faint)); border-color: var(--rc, var(--faint)); }
.op-info { min-height: 340px; display: flex; align-items: center; }
.op-info > div { width: 100%; animation: infoin .35s ease both; }
@keyframes infoin { from { opacity: 0; translate: 0 12px; } }
.op-big { margin-top: 14px; font: 800 clamp(32px, 4.2vw, 50px)/.95 var(--f-display); font-stretch: 75%; font-variation-settings: "wdth" 75; text-transform: uppercase; letter-spacing: -.01em; text-wrap: balance; }
.op-tease { margin-top: 20px; font: 700 30px/1 var(--f-hand); color: var(--hand); animation: tease 1.2s ease-in-out infinite alternate; }
@keyframes tease { to { opacity: .55; translate: 0 -3px; } }
.op-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.op-badges span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 2px solid var(--line); border-radius: 999px; font: 700 12px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; }
.op-badges .op-rar { background: var(--rc); color: var(--ink); border-color: var(--ink); }
.op-badges .op-rar i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.op-badges .op-new { background: var(--ink); color: var(--y); border-color: var(--y); }
.op-badges .op-dup { color: var(--mut); }
.op-badges .op-shiny { background: var(--holo); color: var(--ink); border-color: var(--ink); }
.op-card-info h2 { margin-top: 12px; font-size: clamp(36px, 5vw, 62px); }
.op-kick { margin-top: 12px; font: 500 14px/1.4 var(--f-mono); letter-spacing: .02em; color: var(--mut); }
.op-txt { margin-top: 18px; font-size: 17px; line-height: 1.55; max-width: 46ch; }
.op-next { margin-top: 24px; font: 500 12px/1.3 var(--f-mono); letter-spacing: .04em; color: var(--faint); }

.op-sum { max-width: 1120px; margin-inline: auto; }
.op-sum-h { margin-top: 12px; font-size: clamp(40px, 6vw, 76px); }
.op-sum-t { font: 500 14px/1.4 var(--f-mono); letter-spacing: .03em; color: var(--mut); }
.op-sum-t b { color: var(--fg); font-weight: 500; }
.sum-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.sum-card { display: block; width: 100%; padding: 0; margin: 0; border: 0; background: none; text-align: inherit; border-radius: 14px; animation: dealin .5s cubic-bezier(.2, .8, .2, 1) backwards; }
.sum-card:nth-child(2) { animation-delay: 70ms; } .sum-card:nth-child(3) { animation-delay: 140ms; }
.sum-card:nth-child(4) { animation-delay: 210ms; } .sum-card:nth-child(5) { animation-delay: 280ms; }
@keyframes dealin { from { opacity: 0; translate: 0 30px; scale: .94; } }
.alpha-note.big { margin-top: 28px; padding: 18px 20px; border-color: var(--r-A); }
.sum-alpha { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 18px; }
.sum-alpha .sum-card { width: min(240px, 46%); }
.sum-achs { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.ach-chip { padding: 9px 14px; border: 2px solid var(--ink); border-radius: 999px; background: var(--y); color: var(--ink); font: 500 13px/1.2 var(--f-mono); box-shadow: 3px 3px 0 var(--off); }
.ach-chip b { margin-right: 6px; font: 700 13px/1.2 var(--f-body); }
.op-sum-acts { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* ---------- bonus ---------- */
.bonus-grid { margin-top: 36px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.bonus-grid > .panel { grid-column: span 2; }
.bonus-grid > .wheel-panel, .bonus-grid > .quiz-panel { grid-column: span 3; }
.wheel-panel { text-align: center; }
.wheel-wrap { position: relative; width: min(300px, 100%); aspect-ratio: 1; margin: 26px auto 0; border-radius: 50%; box-shadow: 6px 6px 0 var(--off); }
.wheel { width: 100%; height: 100%; border-radius: 50%; transition: transform 4.2s cubic-bezier(.14, .62, .12, 1); }
.wheel.is-wait { animation: wobble .5s ease-in-out infinite alternate; }
@keyframes wobble { from { rotate: -4deg; } to { rotate: 4deg; } }
.wheel-svg { display: block; width: 100%; height: 100%; }
.wheel-svg text { font-family: var(--f-display); font-weight: 800; font-stretch: 75%; font-size: 21px; text-anchor: middle; dominant-baseline: central; }
.wheel-svg .w-ft { font-size: 26px; fill: #17131C; }
.needle { position: absolute; left: 50%; top: -14px; z-index: 2; width: 0; height: 0; border-left: 13px solid transparent; border-right: 13px solid transparent; border-top: 28px solid var(--r); transform: translateX(-50%); filter: drop-shadow(2px 2px 0 var(--ink)); }
.panel .w-res { margin: 20px auto 0; max-width: 38ch; min-height: 3em; }
.q-fam { font: 500 12px/1.4 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.q-fam span { text-transform: none; letter-spacing: .02em; }
.q-txt { margin: 12px 0 0; padding: 14px 16px; background: var(--bg); border-left: 4px solid var(--hl); border-radius: 0 12px 12px 0; font-size: 15px; line-height: 1.55; color: var(--fg); }
.mask { display: inline-block; min-width: 2.2em; height: .92em; vertical-align: -.1em; overflow: hidden; border-radius: 3px; background: var(--mut); color: transparent; user-select: none; -webkit-user-select: none; }
.panel .q-ask { margin-top: 16px; color: var(--fg); font-weight: 600; }
.q-opts { margin-top: 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.q-opt { display: block; padding: 13px 14px; border: 2px solid var(--line); border-radius: 14px; background: var(--bg); color: var(--fg); font: 600 14.5px/1.25 var(--f-body); text-align: left; }
button.q-opt:hover { border-color: var(--fg); }
.q-opt.good { border-color: var(--r-PC); background: color-mix(in srgb, var(--r-PC) 22%, var(--bg)); }
.q-opt.bad { border-color: var(--r); background: color-mix(in srgb, var(--r) 16%, var(--bg)); text-decoration: line-through; }
.panel .q-res { margin-top: 14px; }
.streak { margin: 4px 0 14px; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.streak i { aspect-ratio: 1; display: grid; place-items: center; border: 2px solid var(--line); border-radius: 10px; font: 700 13px/1 var(--f-mono); font-style: normal; color: var(--faint); }
.streak i.on { background: var(--y); border-color: var(--ink); color: var(--ink); box-shadow: 2px 2px 0 var(--off); }
.streak i.gift { border-style: dashed; color: var(--fg); }
.streak i.gift.on { border-style: solid; background: var(--r); color: #fff; }
.panel .big-n { margin-top: 14px; font: 800 46px/1 var(--f-display); font-stretch: 75%; font-variation-settings: "wdth" 75; color: var(--fg); }
.big-n small { margin-left: 6px; font: 500 12px/1 var(--f-mono); letter-spacing: .04em; color: var(--mut); }
.code-form { margin-top: 4px; display: flex; gap: 10px; }
.code-form input { flex: 1; min-width: 0; padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--fg); font: 600 16px/1.2 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; }
.code-form input::placeholder { color: var(--faint); }
.code-form input:focus { outline: none; border-color: var(--hl); }
.panel .code-form .btn { margin-top: 0; }
.achs { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.ach { padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg2); }
.ach.done { background: var(--y); color: var(--ink); border-color: var(--ink); box-shadow: 3px 3px 0 var(--off); }
.ach-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.ach-top b { font: 800 20px/1 var(--f-display); font-stretch: 75%; font-variation-settings: "wdth" 75; text-transform: uppercase; }
.ach-top span { font: 500 11.5px/1 var(--f-mono); color: var(--mut); white-space: nowrap; }
.ach p { margin-top: 6px; font-size: 13.5px; color: var(--mut); }
.ach .bar { height: 5px; margin-top: 12px; }
.ach p.ach-at { font: 500 11.5px/1.2 var(--f-mono); letter-spacing: .03em; }
.ach.done p, .ach.done .ach-top span { color: var(--ink); opacity: .78; }

/* ---------- collection ---------- */
.coll-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.coll-head h1 { font-size: clamp(44px, 7vw, 92px); line-height: .86; }
.coll-prog { min-width: 260px; flex: 0 1 400px; }
.coll-prog b { font: 800 40px/1 var(--f-display); font-stretch: 75%; font-variation-settings: "wdth" 75; font-variant-numeric: tabular-nums; }
.coll-prog span { color: var(--mut); font: 500 12px/1.4 var(--f-mono); letter-spacing: .06em; margin-left: 8px; }
.tabs { margin-top: 32px; display: flex; gap: 8px; overflow-x: auto; padding: 2px 6px 10px 2px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; border: 1px solid var(--line); background: var(--bg2); border-radius: 999px; padding: 11px 16px; font: 600 13px/1 var(--f-body); display: inline-flex; align-items: center; gap: 10px; }
.tab small { font: 500 11px/1 var(--f-mono); color: var(--faint); letter-spacing: .04em; }
.tab:hover { border-color: var(--faint); }
.tab[aria-pressed="true"] { background: var(--y); color: var(--ink); border-color: var(--ink); box-shadow: 3px 3px 0 var(--off); }
.tab[aria-pressed="true"] small { color: var(--ink); opacity: .7; }
.filters { margin-top: 14px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--bg2); }
.seg button { border: 0; background: none; padding: 10px 14px; font: 500 12.5px/1 var(--f-mono); letter-spacing: .04em; color: var(--mut); }
.seg button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.rf { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.rf button { border: 1.5px solid var(--rc); background: transparent; color: var(--fg); border-radius: 999px; padding: 8px 11px; font: 800 11px/1 var(--f-mono); letter-spacing: .04em; opacity: .55; }
.rf button[aria-pressed="true"] { background: var(--rc); color: var(--ink); opacity: 1; }
.search { margin-left: auto; position: relative; }
.search input { background: var(--bg2); border: 1px solid var(--line); border-radius: 999px; color: var(--fg); padding: 10px 16px; font: 500 14px/1 var(--f-body); width: 240px; max-width: 100%; }
.search input::placeholder { color: var(--faint); }
.grid { margin-top: 28px; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 24px 18px; }
.fcw-cell { min-width: 0; }
.grid .fcw { content-visibility: auto; contain-intrinsic-size: 200px 280px; }
.empty { margin-top: 48px; padding: 44px; text-align: center; border: 1px dashed var(--line); border-radius: 18px; color: var(--mut); }
.empty h3 { font-size: 28px; color: var(--fg); margin-bottom: 10px; }
.alpha-note { margin-top: 20px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg2); color: var(--mut); font-size: 14px; display: flex; gap: 14px; align-items: center; }
.alpha-note b { color: var(--fg); }
.alpha-note .sym { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--r-A); color: var(--bg); font: 800 17px/1 var(--f-mono); }

/* ---------- fenêtres ---------- */
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px max(16px, env(safe-area-inset-left, 0px)); background: rgba(10, 8, 14, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fadein .2s ease; overflow-y: auto; overscroll-behavior: contain; }
@keyframes fadein { from { opacity: 0; } }
.modal-x { position: absolute; right: 14px; top: 14px; z-index: 3; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--bg3); color: var(--fg); font-size: 22px; line-height: 1; }
.modal-x:hover { border-color: var(--faint); }
/* Le panneau est opaque : sur fond clair, le texte sombre se lisait mal directement sur le voile. */
.modal-box { position: relative; width: min(960px, 100%); margin-block: auto; display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 40px; align-items: center; padding: 36px; border: 1px solid var(--line); border-radius: 26px; background: var(--bg2); color: var(--fg); box-shadow: 8px 8px 0 var(--off); }
.m-card { min-width: 0; }
.m-info .eyebrow { display: block; padding-right: 40px; }
.m-info h2 { margin-top: 12px; font-size: clamp(36px, 5.2vw, 62px); }
.m-meta { margin-top: 16px; display: flex; gap: 8px; flex-wrap: wrap; }
.m-meta span { border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; font: 500 12px/1 var(--f-mono); letter-spacing: .04em; color: var(--mut); display: inline-flex; gap: 8px; align-items: center; }
.m-meta span i { width: 10px; height: 10px; border-radius: 50%; background: var(--rc); display: inline-block; }
.m-meta .m-shiny { background: var(--holo); color: var(--ink); border-color: var(--ink); }
.m-kick { margin-top: 16px; font: 500 14px/1.45 var(--f-mono); color: var(--mut); }
.m-info p.txt { margin-top: 16px; font-size: 17.5px; line-height: 1.55; max-width: 46ch; }

.auth-box { position: relative; width: min(460px, 100%); margin-block: auto; padding: 28px; border: 1px solid var(--line); border-radius: 24px; background: var(--bg2); color: var(--fg); box-shadow: 8px 8px 0 var(--off); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 0 52px 24px 0; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); }
.auth-tabs button { border: 0; background: none; border-radius: 999px; padding: 11px 8px; font: 600 13.5px/1 var(--f-body); color: var(--mut); }
.auth-tabs button[aria-selected="true"] { background: var(--y); color: var(--ink); }
.auth-box h2 { font-size: 36px; padding-right: 44px; }
.auth-box .form .btn { width: 100%; margin-top: 14px; }
.auth-box .form .link { justify-self: center; margin-top: 6px; }
.rescue .eyebrow { display: block; }
.rescue h2 { margin-top: 12px; }
.rescue .muted { margin-top: 12px; }
.rescue-code { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 14px 16px; border: 2px dashed var(--hl); border-radius: 14px; background: var(--bg); }
.rescue-code code { flex: 1 1 220px; min-width: 0; font: 500 clamp(17px, 4.4vw, 21px)/1.25 var(--f-mono); letter-spacing: .06em; overflow-wrap: anywhere; user-select: all; -webkit-user-select: all; }
.rescue-code .btn { margin-top: 0; }
.rescue .btn:not(.small) { width: 100%; margin-top: 16px; }

.form { display: grid; gap: 8px; }
.form h2 + .muted { margin-top: 6px; }
.form label { margin-top: 10px; font: 500 12px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mut); }
.form input:not([type="checkbox"]) { width: 100%; padding: 13px 14px; border: 2px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--fg); font: 600 16px/1.2 var(--f-body); }
.form input:focus { outline: none; border-color: var(--hl); }
.form .hint, .panel .hint { margin-top: -2px; font-size: 12.5px; color: var(--faint); }
.form-err, .panel .form-err { color: var(--err); font-size: 14px; font-weight: 600; }
.form-err:empty { display: none; }
.form .btn { justify-self: start; margin-top: 12px; }
.check, .form .check { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; font: 500 14px/1.4 var(--f-body); letter-spacing: 0; text-transform: none; color: var(--fg); cursor: pointer; }
.check input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--y); }
.pw { position: relative; }
.form .pw input { padding-right: 96px; }
.pw-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); padding: 8px 10px; border: 0; border-radius: 8px; background: var(--bg3); color: var(--mut); font: 500 11.5px/1 var(--f-mono); letter-spacing: .04em; }

/* ---------- compte ---------- */
.acc-grid { margin-top: 32px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.acc-grid .panel h2 { margin-bottom: 8px; }
#rcOut .rescue-code { margin-top: 16px; }
.danger-zone { border-color: color-mix(in srgb, var(--r) 50%, var(--line)); }

/* ---------- classement ---------- */
.lb-grid { margin-top: 32px; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.rank-wrap { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--bg2); }
.rank { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.rank th { text-align: left; font: 500 11.5px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); padding: 16px 18px; border-bottom: 1px solid var(--line); }
.rank td { padding: 14px 18px; border-bottom: 1px solid var(--line); }
.rank tr:last-child td { border-bottom: 0; }
.rank .pos { width: 64px; font: 800 22px/1 var(--f-display); font-stretch: 75%; color: var(--faint); }
.rank tr:nth-child(-n+3) .pos { color: var(--hl); }
.rank .who { font-weight: 600; overflow-wrap: anywhere; }
.rank .num { text-align: right; font-family: var(--f-mono); font-size: 14px; }
.rank th.num { text-align: right; }
.rank tr.me td { background: color-mix(in srgb, var(--y) 14%, transparent); }
.rank tr.me .who::after { content: "toi"; margin-left: 10px; background: var(--y); color: var(--ink); font: 700 10.5px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; }
.rank tr.gap td { padding: 6px 18px; text-align: center; color: var(--faint); }
.rank-foot { padding: 12px 18px; border-top: 1px solid var(--line); font: 500 12px/1.3 var(--f-mono); letter-spacing: .04em; color: var(--faint); }
.live { padding: 18px 20px 8px; border: 1px solid var(--line); border-radius: 18px; background: var(--bg2); }
.live h2 { font-size: 28px; margin-bottom: 4px; }

/* ---------- règles ---------- */
.rules { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; margin-top: 36px; }
.rules h2 { font-size: 34px; margin-bottom: 16px; }
.rules section + section { margin-top: 44px; }
.rules p, .rules li { color: var(--mut); }
.rules p + p { margin-top: 12px; }
.rules ul { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 8px; }
.rules b { color: var(--fg); font-weight: 600; }
.tbl { width: 100%; border-collapse: collapse; margin-top: 8px; font-variant-numeric: tabular-nums; }
.tbl th { text-align: left; font: 500 11.5px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); padding: 10px 8px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 11px 8px; border-bottom: 1px solid var(--line); font-size: 15px; }
.tbl td:not(:first-child), .tbl th:not(:first-child) { text-align: right; font-family: var(--f-mono); font-size: 14px; }
.tbl .sym { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--rc); color: var(--ink); font: 800 10.5px/1 var(--f-mono); margin-right: 10px; vertical-align: middle; }

/* ---------- pied de page ---------- */
.foot { border-top: 1px solid var(--line); margin-inline: calc(var(--gutter) * -1) calc(var(--gutter-r) * -1); padding: 36px var(--gutter-r) 56px var(--gutter); }
.foot-in { max-width: var(--maxw); margin-inline: auto; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; color: var(--mut); font-size: 14px; }
.foot-in b { color: var(--fg); font-weight: 600; }
.foot-in p + p { margin-top: 10px; }
.foot a { text-underline-offset: 3px; }

/* ---------- toasts, confettis, éclairs ---------- */
.toasts { position: fixed; left: 0; right: 0; bottom: max(18px, env(safe-area-inset-bottom, 0px)); z-index: 120; display: grid; justify-items: center; gap: 10px; pointer-events: none; padding-inline: 16px; }
.toast { max-width: min(520px, 100%); padding: 12px 18px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--bg3); color: var(--fg); font: 600 14px/1.3 var(--f-body); box-shadow: 4px 4px 0 rgba(0, 0, 0, .28); animation: toast 3.8s ease forwards; }
.toast.gold { background: var(--y); color: var(--ink); border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--r); }
@keyframes toast { 0% { opacity: 0; transform: translateY(14px); } 8%, 88% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(8px); } }
.confetti { position: fixed; z-index: 110; pointer-events: none; width: 10px; height: 14px; top: 0; left: 0; }
.flash { position: fixed; inset: 0; z-index: 105; pointer-events: none; animation: flash .9s ease-out forwards; }
.flash.gold { background: radial-gradient(circle at 50% 40%, rgba(255, 194, 30, .55), transparent 65%); }
.flash.holo { background: radial-gradient(circle at 50% 40%, rgba(120, 220, 255, .4), rgba(255, 140, 190, .25) 40%, transparent 70%); }
.flash.soft { background: radial-gradient(circle at 50% 40%, rgba(165, 108, 240, .38), transparent 60%); }
@keyframes flash { 0% { opacity: 0; } 15% { opacity: 1; } 100% { opacity: 0; } }

/* ---------- adaptation ---------- */
@media (max-width: 1020px) {
  .hero { grid-template-columns: 1fr; gap: 12px; min-height: 0; }
  .fan { height: 440px; max-width: 520px; margin-inline: auto; width: 100%; }
  .fams { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .open { grid-template-columns: 1fr; gap: 24px; }
  .rules { grid-template-columns: 1fr; gap: 36px; }
  .foot-in { grid-template-columns: 1fr; }
  .dash { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .bonus-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bonus-grid > .panel, .bonus-grid > .wheel-panel, .bonus-grid > .quiz-panel { grid-column: auto; }
  .bonus-grid > .panel:last-child { grid-column: 1 / -1; }
  .lb-grid { grid-template-columns: minmax(0, 1fr); }
  .op-stage { grid-template-columns: minmax(0, 1fr); gap: 30px; justify-items: center; }
  .op-info { min-height: 0; width: 100%; max-width: 600px; }
  .modal-box { grid-template-columns: minmax(0, 1fr); gap: 26px; padding: 64px 26px 28px; }
  .m-card { width: min(340px, 80vw); margin-inline: auto; }
  .sum-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .top-in { height: auto; flex-wrap: wrap; padding-block: 10px; gap: 8px 12px; }
  .nav { order: 3; width: 100%; margin: 0; gap: 0; overflow-x: auto; scrollbar-width: none; justify-content: space-between; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: 9px 5px; gap: 5px; font-size: 10.5px; letter-spacing: .02em; }
  .nav .badge { padding: 2px 5px; font-size: 10px; }
  main { padding-block: 22px 56px; }
  .sec { margin-top: 64px; }
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 22px 0 8px; border-left: 0; border-top: 1px solid var(--line); }
  .steps .step:first-child { border-top: 0; }
  .fams { grid-template-columns: minmax(0, 1fr); }
  .fam { min-height: 210px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px 12px; }
  .search { margin-left: 0; width: 100%; } .search input { width: 100%; }
  .rank th, .rank td { padding: 12px 10px; } .rank .pos { width: 40px; }
  .rank .hide-s { display: none; }
  .packwrap { min-height: 440px; }
  .bonus-grid, .acc-grid { grid-template-columns: minmax(0, 1fr); }
  .bonus-grid > .panel:last-child { grid-column: auto; }
  .q-opts { grid-template-columns: minmax(0, 1fr); }
  .panel { padding: 20px; }
  .gate { padding: 36px 20px; }
  .op-stack { --sx: 5px; --sy: -6px; --sr: 1.2deg; margin: 30px 34px 0 0; width: max(200px, min(280px, 74vw)); width: max(200px, min(280px, 74vw, calc((100svh - 400px) * .714))); }
  .op-txt { font-size: 16px; }
  .sum-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .modal { padding: 16px 12px; }
  .modal-box { padding: 62px 18px 24px; }
  .m-card { width: min(300px, 76vw); }
  .auth-box { padding: 22px 18px; }
}
@media (hover: none) {
  .op-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .marquee-track { animation: none; }
  .fc-in { transition: none; }
}
