/* ══════════════════════════════════════════════════════════════════════
   CARTES À COLLECTIONNER — cartes 3D (CSS), reflets qui suivent le pointeur,
   finitions holographique / feuille d'or / éclipse, ouverture des boosters.
   ══════════════════════════════════════════════════════════════════════ */
@property --ang { syntax: "<angle>"; inherits: true; initial-value: 0deg; }
@keyframes tcAng { to { --ang: 360deg; } }
@keyframes tcIdle { 0% { background-position: 10% 10%; } 100% { background-position: 90% 90%; } }
@keyframes tcSweep { 0%, 55% { background-position: 160% 0; } 100% { background-position: -60% 0; } }
@keyframes tcFloat { 50% { translate: 0 -8px; } }
@keyframes tcTwinkle { 50% { opacity: .35; } }
.tc { --w: 220px; --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%; --bx: 50%; --by: 50%; --hyp: 0; --rc: #b9c2d0;
  position: relative; display: block; flex: none; width: var(--w); aspect-ratio: 5 / 7; perspective: 1100px; container-type: inline-size;
  color: #fff; text-align: left; -webkit-tap-highlight-color: transparent; user-select: none; }
.tc-xs { --w: 78px; } .tc-sm { --w: 128px; } .tc-md { --w: 100%; } .tc-xl { --w: min(340px, 74vw); }
.tc-in { position: absolute; inset: 0; border-radius: 4.6cqw; transform-style: preserve-3d; transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .65s var(--spring); }
.tc.is-on .tc-in { transition: transform .12s ease-out; }
.tc.is-spin .tc-in { transition: none; }
.tc.is-back .tc-in { transform: rotateX(var(--rx)) rotateY(calc(180deg + var(--ry))); }
.tc.is-idle .tc-in { animation: tcFloat 5s ease-in-out infinite; }
.tc-face { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; transform: translateZ(1px);
  background: #15111f; box-shadow: 0 3cqw 7cqw -3cqw rgba(10, 4, 22, .6), 0 0 0 .4cqw rgba(255, 255, 255, .08); }
.tc-back { transform: rotateY(180deg) translateZ(1px); }
.tc[data-r="l"] .tc-front { box-shadow: 0 3cqw 7cqw -3cqw rgba(10, 4, 22, .6), 0 0 9cqw -2cqw rgba(255, 195, 74, .75); }
.tc[data-r="m"] .tc-front { box-shadow: 0 3cqw 7cqw -3cqw rgba(10, 4, 22, .6), -3cqw 0 10cqw -3cqw rgba(255, 95, 168, .8), 3cqw 0 10cqw -3cqw rgba(94, 200, 255, .8); }

.tc-art { position: absolute; inset: 0; overflow: hidden; }
.tc-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; transform: scale(1.12) translate(calc((50% - var(--mx)) * .07), calc((50% - var(--my)) * .07)); transition: transform .6s var(--ease), filter .4s; }
.tc.is-on .tc-art img { transition: transform .12s ease-out; }
.tc-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 5, 18, .62) 0%, transparent 19%, transparent 50%, rgba(8, 5, 18, .78) 74%, rgba(8, 5, 18, .96) 100%); }
.tc-top { position: absolute; top: 5.4cqw; left: 6.5cqw; right: 6.5cqw; display: flex; justify-content: space-between; align-items: center; gap: 3cqw; z-index: 1; }
.tc-uni { font: 700 max(5px, 4.4cqw)/1.1 var(--display); text-transform: uppercase; letter-spacing: .05em; opacity: .92; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 .4cqw 1.6cqw rgba(0, 0, 0, .7); }
.tc-gems { display: inline-flex; gap: 1.6cqw; flex: none; }
.tc-gems i { width: 3.3cqw; height: 3.3cqw; rotate: 45deg; background: var(--rc); border: .5cqw solid rgba(255, 255, 255, .85); border-radius: .5cqw; box-shadow: 0 0 2.2cqw var(--rc); }
.tc-plate { position: absolute; left: 6.5cqw; right: 6.5cqw; bottom: 14cqw; z-index: 1; }
.tc-plate b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font: 800 9.6cqw/1.02 var(--display); letter-spacing: -.01em; text-shadow: 0 .6cqw 2.4cqw rgba(0, 0, 0, .7); }
.tc-plate small { display: block; margin-top: 1.4cqw; font: 400 4.8cqw/1.15 var(--jp); opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-foot { position: absolute; left: 6.5cqw; right: 6.5cqw; bottom: 5.2cqw; z-index: 1; display: flex; justify-content: space-between; padding-top: 2.6cqw; border-top: .45cqw solid rgba(255, 255, 255, .28);
  font: 600 max(5px, 4.2cqw)/1 var(--display); letter-spacing: .06em; opacity: .88; }
.tc-frame { position: absolute; inset: 0; z-index: 2; border-radius: inherit; padding: 2.7cqw; pointer-events: none;
  background: var(--frame, linear-gradient(140deg, #f4f6fa, #9aa4b4 42%, #eef1f6 58%, #7d8696));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.tc[data-r="r"] { --frame: linear-gradient(140deg, #dcefff, #3d8fe0 42%, #a8d6ff 58%, #2563b0); }
.tc[data-r="e"] { --frame: linear-gradient(140deg, #f1e4ff, #8a4dff 42%, #d6b8ff 58%, #6328d1); }
.tc[data-r="l"] { --frame: conic-gradient(from var(--ang), #fff3c4, #ffb627, #fff8e2, #d98a00, #ffe08a, #fff3c4); }
.tc[data-r="m"] { --frame: conic-gradient(from var(--ang), #ff5fa8, #ffcf5c, #6cf5c2, #5ec8ff, #b07bff, #ff5fa8); }
.tc[data-r="l"] .tc-frame { animation: tcAng 6s linear infinite; }
.tc[data-r="m"] .tc-frame { animation: tcAng 3.5s linear infinite; padding: 3.1cqw; }
.tc-holo, .tc-spark, .tc-glare { position: absolute; inset: 0; z-index: 3; border-radius: inherit; pointer-events: none; }
.tc-holo, .tc-spark { opacity: 0; transition: opacity .4s; }
.tc-glare { opacity: 0; transition: opacity .4s; mix-blend-mode: overlay;
  background: radial-gradient(farthest-corner circle at var(--mx) var(--my), rgba(255, 255, 255, .75) 0%, rgba(255, 255, 255, .18) 26%, rgba(0, 0, 0, .38) 92%); }
.tc.is-on .tc-glare, .tc.is-spin .tc-glare { opacity: .95; }
.tc:not([data-f="base"]):not(.is-on):not(.is-spin) .tc-glare { opacity: 1; background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .55) 50%, transparent 62%) 0 0 / 260% 100%; animation: tcSweep 6s ease-in-out infinite; }
/* holographique : arc-en-ciel qui glisse avec l'inclinaison, paillettes */
.tc[data-f="holo"] .tc-holo { opacity: calc(.32 + var(--hyp) * .5); mix-blend-mode: color-dodge; filter: saturate(1.4) brightness(.72) contrast(1.7);
  background: repeating-linear-gradient(115deg, #ff7ba8 0%, #ffd36e 5%, #8dffb0 10%, #6fdcff 15%, #a98bff 20%, #ff7ba8 25%) var(--bx) var(--by) / 400% 400%; }
.tc[data-f="holo"] .tc-spark { opacity: calc(.25 + var(--hyp) * .65); mix-blend-mode: color-dodge;
  background: radial-gradient(circle at 20% 30%, #fff 0 .55cqw, transparent 1cqw) var(--mx) var(--my) / 17cqw 17cqw, radial-gradient(circle at 70% 60%, #fff 0 .45cqw, transparent .9cqw) var(--my) var(--mx) / 23cqw 23cqw; }
/* feuille d'or : cadre doré tournant, reflet métallique, poussière d'or autour du pointeur */
.tc[data-f="or"] { --frame: conic-gradient(from var(--ang), #fff6d2, #e0a526, #fffbe8, #b9790c, #ffe39a, #fff6d2); }
.tc[data-f="or"] .tc-frame { animation: tcAng 5s linear infinite; }
.tc[data-f="or"] .tc-art img { filter: sepia(.28) saturate(1.3) contrast(1.06); }
.tc[data-f="or"] .tc-holo { opacity: calc(.6 + var(--hyp) * .35); mix-blend-mode: overlay;
  background: linear-gradient(115deg, transparent 25%, rgba(255, 226, 150, .85) 46%, #fffae1 50%, rgba(255, 200, 90, .85) 54%, transparent 70%) var(--bx) var(--by) / 300% 300%; }
.tc[data-f="or"] .tc-spark { opacity: .95; mix-blend-mode: color-dodge;
  background: radial-gradient(circle, #ffecaa 0 .35cqw, transparent .6cqw) var(--mx) var(--my) / 7cqw 7cqw, radial-gradient(circle, #fffae6 0 .25cqw, transparent .5cqw) var(--my) var(--mx) / 11cqw 11cqw;
  -webkit-mask: radial-gradient(circle at var(--mx) var(--my), #000 0%, transparent 62%); mask: radial-gradient(circle at var(--mx) var(--my), #000 0%, transparent 62%); }
.tc[data-f="or"] .tc-plate b { background: linear-gradient(180deg, #fffbe6, #ffd056 58%, #c98a10); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* éclipse (secrète) : cadre noir à lueur tournante, couronne lumineuse, ciel étoilé */
.tc[data-f="eclipse"] { --frame: conic-gradient(from var(--ang), #0b0614, #ff3d8b, #0b0614 30%, #6c5cff, #0b0614 62%, #19e3ff, #0b0614); }
.tc[data-f="eclipse"] .tc-frame { animation: tcAng 3s linear infinite; padding: 3.2cqw; }
.tc[data-f="eclipse"] .tc-art img { filter: contrast(1.15) saturate(1.4); }
.tc[data-f="eclipse"] .tc-art::after { content: ""; position: absolute; inset: 0; mix-blend-mode: screen;
  background: radial-gradient(circle at 50% 30%, transparent 25%, rgba(255, 110, 190, .55) 27%, rgba(120, 140, 255, .3) 31%, transparent 40%); }
.tc[data-f="eclipse"] .tc-shade { background: radial-gradient(circle at 50% 36%, transparent 32%, rgba(5, 0, 18, .55) 78%), linear-gradient(180deg, rgba(8, 5, 18, .62), transparent 20%, transparent 50%, rgba(8, 5, 18, .96)); }
.tc[data-f="eclipse"] .tc-holo { opacity: .85; mix-blend-mode: soft-light; animation: tcAng 7s linear infinite;
  background: conic-gradient(from var(--ang) at var(--mx) var(--my), #ff3d8b, #ffb35c, #6cffc8, #19c8ff, #8a5cff, #ff3d8b); }
.tc[data-f="eclipse"] .tc-spark { opacity: 1; mix-blend-mode: screen; animation: tcTwinkle 2.4s ease-in-out infinite;
  background: radial-gradient(circle at 15% 20%, #fff 0 .4cqw, transparent .7cqw) 0 0 / 21cqw 19cqw, radial-gradient(circle at 60% 70%, #cfe8ff 0 .3cqw, transparent .6cqw) 0 0 / 13cqw 17cqw; }
.tc[data-f="eclipse"] .tc-plate b { background: linear-gradient(90deg, #ff8ac2, #ffe08a, #84ffd6, #8ac2ff, #ff8ac2) 0 0 / 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: tcSweep 5s linear infinite; }
.tc:not(.is-on):not(.is-spin)[data-f="holo"] .tc-holo, .tc:not(.is-on):not(.is-spin)[data-f="or"] .tc-holo { animation: tcIdle 5s ease-in-out infinite alternate; }
/* dos de carte */
.tc-back { background: radial-gradient(circle at 50% 50%, color-mix(in oklab, var(--accent) 65%, #1a0f24) 0%, #1a1128 72%); }
.tc-back::before { content: ""; position: absolute; inset: 3.2cqw; border-radius: 3cqw; border: .7cqw solid rgba(255, 255, 255, .38);
  background: repeating-conic-gradient(from 45deg, rgba(255, 255, 255, .06) 0 25%, transparent 0 50%) 0 0 / 9cqw 9cqw; }
.tc-back-in, .tc-lock-in { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 2.4cqw; text-align: center; }
.tc-back-logo { --logo-sheet: #fff; --logo-hole: #241634; width: 30cqw; height: 30cqw; display: grid; place-items: center; border-radius: 50%; color: #fff; background: rgba(255, 255, 255, .1); border: .8cqw solid rgba(255, 255, 255, .55); }
.tc-back-logo svg { width: 18cqw; height: 18cqw; }
.tc-back-in b { font: 800 9cqw/1 var(--display); letter-spacing: .01em; }
.tc-back-in small { font: 600 max(5px, 3.8cqw)/1 var(--display); opacity: .7; text-transform: uppercase; letter-spacing: .14em; }
.tc.is-locked .tc-front { background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .035) 0 6cqw, transparent 6cqw 12cqw), linear-gradient(160deg, #2b2338, #16111e); }
.tc.is-locked .tc-front::before { content: ""; position: absolute; inset: 2.8cqw; border-radius: 3cqw; border: .6cqw dashed color-mix(in oklab, var(--rc) 65%, transparent); }
.tc-lock-in { color: rgba(255, 255, 255, .78); gap: 3cqw; }
.tc-lock-in .tc-back-logo { width: 22cqw; height: 22cqw; opacity: .3; }
.tc-lock-in .tc-back-logo svg { width: 13cqw; height: 13cqw; }
.tc-lock-in b { font: 800 15cqw/1 var(--display); color: rgba(255, 255, 255, .32); }
.tc-lock-in small { font: 600 max(6px, 5cqw)/1 var(--display); letter-spacing: .06em; }
.tc-new { position: absolute; top: -2.6cqw; left: 50%; translate: -50% 0; z-index: 5; padding: max(3px, 1.5cqw) max(7px, 3.8cqw); border-radius: 99px; white-space: nowrap;
  background: var(--accent); color: var(--on-accent); font: 700 max(9px, 4.4cqw)/1 var(--display); text-transform: uppercase; letter-spacing: .04em; box-shadow: 0 4px 12px -4px rgba(0, 0, 0, .5); }

/* ── paquet (booster) ── */
@keyframes pkFloat { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-12px) rotate(2deg); } }
@keyframes pkShake { 0% { translate: var(--shake) 0; rotate: .8deg; } 50% { translate: calc(var(--shake) * -1) 1px; rotate: -.8deg; } 100% { translate: var(--shake) 0; rotate: .8deg; } }
@keyframes pkFoil { 0%, 100% { background-position: 150% 0, 0 0; } 50% { background-position: -50% 0, 100% 100%; } }
@keyframes pkTear { to { transform: translate(45%, -170%) rotate(32deg); opacity: 0; } }
@keyframes pkDrop { to { transform: translateY(80%) scale(.92); opacity: 0; } }
.pk { --pc: #8e7bff; --shake: 0px; position: relative; flex: none; width: 210px; aspect-ratio: 5 / 8; container-type: inline-size; filter: drop-shadow(0 22px 26px rgba(10, 4, 22, .5)); }
.pk-mini { width: 112px; }
.pk-top { position: absolute; inset: 0 0 auto; height: 11%; z-index: 2; border-radius: 6px 6px 0 0;
  background: linear-gradient(90deg, color-mix(in oklab, var(--pc) 55%, #fff), var(--pc) 50%, color-mix(in oklab, var(--pc) 55%, #fff));
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 9px 100%; mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 9px 100%; }
.pk-top span { position: absolute; left: 6%; right: 6%; top: 42%; border-top: 2px dashed rgba(255, 255, 255, .6); }
.pk-body { position: absolute; inset: 9.5% 0 0; overflow: hidden; border-radius: 0 0 8px 8px;
  background: linear-gradient(160deg, color-mix(in oklab, var(--pc) 72%, #fff), var(--pc) 45%, color-mix(in oklab, var(--pc) 50%, #120a1c)); }
.pk-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.pk-pattern { background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .28) 0 8%, transparent 9%) 0 0 / 28px 28px, repeating-linear-gradient(135deg, rgba(255, 255, 255, .1) 0 10px, transparent 10px 20px); }
.pk-label { position: absolute; left: 0; right: 0; bottom: 0; padding: 26% 8% 12%; display: grid; justify-items: center; gap: 4px; text-align: center; color: #fff;
  background: linear-gradient(transparent, rgba(12, 6, 22, .88) 55%); }
.pk-logo { --logo-sheet: #fff; --logo-hole: var(--pc); display: grid; } .pk-logo svg { width: 28px; height: 28px; }
.pk-label b { font: 800 clamp(11px, 9cqw, 20px)/1.05 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.pk-label small { font: 600 clamp(9px, 5.6cqw, 12px)/1.2 var(--display); opacity: .8; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pk-foil { position: absolute; inset: 0; mix-blend-mode: overlay; animation: pkFoil 4.5s ease-in-out infinite;
  background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, .6) 46%, transparent 58%) 0 0 / 260% 100%, repeating-linear-gradient(115deg, rgba(255, 120, 180, .22) 0 6%, rgba(120, 220, 255, .22) 6% 12%, rgba(255, 230, 120, .22) 12% 18%) 0 0 / 200% 200%; }
.pk.is-shaking { animation: pkShake .09s linear infinite; }
.pk.is-torn .pk-top { animation: pkTear .7s var(--ease) forwards; }
.pk.is-torn .pk-body { animation: pkDrop .8s .22s var(--ease) forwards; }

/* ── ouverture plein écran ── */
@keyframes poRise { from { transform: translateY(55vh) scale(.6) rotate(-10deg); opacity: 0; } }
@keyframes poCharge { 0%, 100% { translate: 0 0; } 25% { translate: -3px 1px; } 75% { translate: 3px -1px; } }
@keyframes poGlow { from { box-shadow: 0 0 0 3px var(--rc), 0 0 30px 4px var(--rc); } to { box-shadow: 0 0 0 5px var(--rc), 0 0 70px 18px var(--rc); } }
@keyframes poSpark { from { transform: translate(-50%, -50%) scale(1); opacity: 1; } to { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(.15); opacity: 0; } }
@keyframes quake { 10%, 90% { translate: -2px 0; } 20%, 80% { translate: 4px 2px; } 30%, 50%, 70% { translate: -9px -2px; } 40%, 60% { translate: 9px 2px; } }
@keyframes poStars { to { background-position: 0 -400px, 0 -300px; } }
@keyframes poHint { 50% { opacity: .35; } }
@keyframes poFlash { 0% { opacity: 0; } 25% { opacity: .9; } 100% { opacity: 0; } }
html.po-open { overflow: hidden; }
.po { --best: #8e7bff; --rc: #fff; position: fixed; inset: 0; z-index: 500; display: grid; grid-template-rows: 1fr auto auto; justify-items: center; color: #fff; opacity: 0; transition: opacity .25s; overflow: hidden; }
.po.is-in { opacity: 1; }
.po-bg { position: absolute; inset: 0; background: radial-gradient(circle at 50% 45%, color-mix(in oklab, var(--best) 22%, #1c1129) 0%, #0b0711 72%); }
.po-bg::after { content: ""; position: absolute; inset: 0; opacity: .55; animation: poStars 40s linear infinite;
  background: radial-gradient(1.5px 1.5px at 20% 30%, #fff, transparent) 0 0 / 260px 200px, radial-gradient(1px 1px at 70% 80%, #fff, transparent) 0 0 / 180px 150px; }
/* Glow rayonnant : deux halos colorés + particules lumineuses flottantes */
.po-beams { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .6s cubic-bezier(.2,.8,.2,1); overflow: hidden; }
.po-beams::before {
  content: ""; position: absolute; inset: -30%;
  background:
    radial-gradient(ellipse 55% 65% at 50% 44%, color-mix(in oklab, var(--rc) 32%, transparent) 0%, transparent 70%),
    radial-gradient(ellipse 35% 42% at 50% 44%, color-mix(in oklab, var(--rc) 18%, transparent) 0%, transparent 60%);
  animation: beamPulse 2.4s ease-in-out infinite alternate;
}
.po-beams::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 100%, color-mix(in oklab, var(--rc) 20%, transparent) 0%, transparent 55%);
  animation: beamPulse 3s .6s ease-in-out infinite alternate;
}
@keyframes beamPulse { from { opacity: .6; transform: scale(.97); } to { opacity: 1; transform: scale(1.03); } }
.po.is-beams .po-beams { opacity: 1; }
.po-flash { position: absolute; inset: 0; z-index: 6; background: #fff; opacity: 0; pointer-events: none; }
.po.is-flash .po-flash { animation: poFlash .6s ease-out; }
.po.is-quake .po-stage { animation: quake .5s; }
.po-x { position: absolute; top: 16px; right: 16px; z-index: 7; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(255, 255, 255, .12); border: 2px solid rgba(255, 255, 255, .25); }
.po-stage { position: relative; z-index: 2; width: 100%; min-height: 0; display: grid; place-items: center; }
.po-stage > * { grid-area: 1 / 1; }
.po .pk { width: min(230px, 52vw); animation: pkFloat 3.6s ease-in-out infinite; cursor: pointer; touch-action: none; }
.po .pk.is-shaking { animation: pkShake .09s linear infinite; }
.po.is-stack .pk, .po.is-done .pk { display: none; }
.po-stack { position: relative; width: min(300px, 62vw, 40vh); aspect-ratio: 5 / 7; display: none; }
.po.is-stack .po-stack { display: block; }
.po-card { --w: 100%; position: absolute !important; inset: 0; cursor: pointer; transform: translateY(calc(var(--k, 0) * -7px)) rotate(calc(var(--k, 0) * 1.8deg));
  transition: transform .55s var(--spring), opacity .45s; animation: poRise .75s var(--spring) both; animation-delay: calc(var(--k, 0) * 70ms); }
.po-card .tc-in { transition: transform .85s var(--spring); }
.po-card.is-charge .tc-in { animation: poCharge .1s linear infinite; }
.po-card.is-charge .tc-back { animation: poGlow .45s ease-in-out infinite alternate; }
.po-card.is-gone { transform: translate(-75vw, 12vh) rotate(-28deg) scale(.45) !important; opacity: 0; pointer-events: none; }
.po-info { position: absolute; bottom: 2vh; left: 0; right: 0; z-index: 3; display: grid; justify-items: center; gap: 6px; text-align: center; padding: 0 16px; min-height: 52px; }
.po-info small { opacity: .7; font: 600 12.5px/1.2 var(--display); }
.po-name { display: flex; gap: 8px; align-items: center; justify-content: center; flex-wrap: wrap; animation: pop .35s var(--spring); }
.po-name b { font: 800 clamp(20px, 3vw, 28px)/1.1 var(--display); }
.po-r, .po-f, .po-new { display: inline-flex; align-items: center; padding: 5px 10px; border-radius: 99px; font: 700 11.5px/1 var(--display); text-transform: uppercase; letter-spacing: .04em; color: #150c22; }
.po-r { background: var(--rc); box-shadow: 0 0 14px var(--rc); }
.po-f { background: linear-gradient(90deg, #ff9ac1, #ffe28a, #9cffd0, #9ad8ff, #c9a8ff); }
.po-f[data-f="base"] { background: #d7dbe3; }
.po-f[data-f="or"] { background: linear-gradient(90deg, #fff1b8, #f2b52e, #fff6d6); }
.po-f[data-f="eclipse"] { background: #120a1c; color: #fff; box-shadow: inset 0 0 0 2px #ff3d8b, 0 0 12px rgba(108, 92, 255, .8); }
.po-new { background: var(--accent); color: var(--on-accent); }
.po-hint { opacity: .75; font: 600 13px/1 var(--display); animation: poHint 2s ease-in-out infinite; }
.po-tray { position: relative; z-index: 3; display: flex; gap: 8px; justify-content: center; min-height: 8px; padding: 0 12px 10px; }
.po-mini { animation: pop .35s var(--spring); }
.po-mini .tc { --w: 54px; }
.po-cta { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 0 0 5vh; }
.po-hold { display: flex; align-items: center; gap: 12px; padding: 7px 22px 7px 7px; border-radius: 99px; color: #fff; background: rgba(255, 255, 255, .12); border: 2px solid rgba(255, 255, 255, .3); font: 700 15px/1 var(--display); touch-action: none; user-select: none; }
.po-hold svg { width: 44px; height: 44px; rotate: -90deg; }
.po-hold circle { fill: none; stroke: rgba(255, 255, 255, .22); stroke-width: 4; }
.po-hold .po-ring { stroke: var(--best); stroke-dasharray: 119.4; stroke-dashoffset: 119.4; stroke-linecap: round; filter: drop-shadow(0 0 6px var(--best)); }
.po-spark { position: absolute; left: 50%; top: 50%; z-index: 5; width: var(--s); height: var(--s); border-radius: 50%; background: var(--c); box-shadow: 0 0 12px var(--c); pointer-events: none; animation: poSpark 1.15s var(--ease) both; }
.po-done { position: absolute; inset: 0; z-index: 4; overflow: auto; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 8vh 20px 48px; text-align: center; }
.po-done h2 { font: 800 clamp(24px, 4vw, 40px)/1.05 var(--display); text-transform: uppercase; }
.po-done h2 span { opacity: .7; }
.po-done p { opacity: .8; }
.po-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px 18px; margin: 16px 0 10px; }
.po-cell { display: grid; gap: 8px; justify-items: center; animation: poRise .6s var(--spring) both; animation-delay: var(--d); }
.po-cell .tc { --w: clamp(128px, 15vw, 186px); }
.po-cell small { font: 600 12px/1 var(--display); opacity: .8; }
.po-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* ── fiche d'une carte ── */
.cs { position: fixed; inset: 0; z-index: 480; display: grid; place-items: center; padding: 18px; background: rgba(12, 7, 20, .74); backdrop-filter: blur(8px); opacity: 0; transition: opacity .2s; }
.cs.is-in { opacity: 1; }
.cs-box { position: relative; width: min(1000px, 100%); max-height: calc(100vh - 36px); overflow: auto; display: grid; grid-template-columns: minmax(270px, 400px) 1fr;
  background: var(--sheet); border: 3px solid var(--rim); border-radius: 28px; box-shadow: var(--pop); animation: pop .3s var(--spring); }
.cs-box .po-x { color: var(--ink); background: var(--sheet-2); border-color: var(--line); }
.cs-load { grid-column: 1 / -1; padding: 90px; display: grid; place-items: center; color: var(--ink-2); }
.cs-card { position: relative; overflow: hidden; display: grid; place-items: center; align-content: center; gap: 14px; padding: 40px 24px; border-radius: 25px 0 0 25px;
  background: radial-gradient(circle at 50% 42%, color-mix(in oklab, var(--rc, #8e7bff) 26%, #1c1129), #100a17); }
.cs-glow { position: absolute; inset: -30%; animation: tcAng 22s linear infinite; pointer-events: none;
  background: repeating-conic-gradient(from var(--ang), color-mix(in oklab, var(--rc) 32%, transparent) 0 7deg, transparent 7deg 21deg);
  -webkit-mask: radial-gradient(circle, #000, transparent 62%); mask: radial-gradient(circle, #000, transparent 62%); }
.cs-card .tc { cursor: grab; touch-action: none; }
.cs-card .tc.is-spin { cursor: grabbing; }
.cs-tip { position: relative; display: flex; gap: 6px; align-items: center; color: rgba(255, 255, 255, .6); font: 600 12px/1 var(--display); }
.cs-tip .i { width: 14px; height: 14px; }
.cs-info { display: grid; gap: 12px; align-content: start; padding: 34px 32px 30px; min-width: 0; }
.cs-r { display: inline-flex; align-items: center; gap: 10px; color: var(--rc); font: 700 13px/1 var(--display); text-transform: uppercase; letter-spacing: .05em; }
.cs-r .tc-gems { gap: 5px; } .cs-r .tc-gems i { width: 9px; height: 9px; border-width: 1.5px; border-radius: 2px; box-shadow: 0 0 6px var(--rc); }
.cs-info h2 { font: 800 clamp(28px, 4vw, 42px)/1.02 var(--display); }
.cs-jp { font-family: var(--jp); color: var(--ink-2); margin-top: -6px; }
.cs-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.cs-meta > * { padding: 6px 11px; border-radius: 99px; background: var(--sheet-2); border: 1px solid var(--line); font: 600 12px/1 var(--display); }
.cs-meta a:hover { border-color: var(--accent); color: var(--accent); }
.cs-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 10px; }
.cs-stats div { padding: 12px 14px; border-radius: 16px; background: var(--sheet-2); border: 1px solid var(--line); }
.cs-stats b { display: block; font: 800 22px/1 var(--display); margin-bottom: 4px; }
.cs-stats small { color: var(--ink-3); font-size: 12px; }
.cs-info h3 { display: flex; gap: 8px; align-items: center; margin-top: 8px; font: 700 16px/1 var(--display); }
.cs-info h3 span { color: var(--ink-3); }
.cs-copies { display: flex; gap: 8px; flex-wrap: wrap; }
.cs-copy { display: grid; gap: 5px; justify-items: start; padding: 9px 12px; border-radius: 14px; border: 2px solid var(--line); background: var(--sheet-2); text-align: left; }
.cs-copy[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 22%, transparent); }
.cs-copy b { font: 700 14px/1 var(--display); }
.cs-copy small { color: var(--ink-3); font-size: 11px; }
.cs-copy .po-f { font-size: 10px; padding: 4px 8px; }
.cs-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.cs-lock { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; color: var(--ink-2); background: var(--sheet-2); }
.cs-odds { display: grid; gap: 6px; }
.cs-odds div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: 12px; background: var(--sheet-2); font-size: 13.5px; }
.cs-odds b { font-family: var(--display); white-space: nowrap; }
.cs-fine, .cd-fine { color: var(--ink-3); font-size: 12.5px; }
/* ── éditeur de clip staff ── */
.cs-clip-editor { border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; margin-top: 2px; }
.cs-clip-editor summary { font-size: 13px; font-weight: 700; cursor: pointer; color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
.cs-clip-editor summary small { font-weight: 400; color: var(--ink-3); }
.cs-clip-form { display: flex; flex-direction: column; gap: 10px; padding-top: 10px; }
.cs-clip-form label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--ink-2); }
.cs-clip-form input[type=text], .cs-clip-form input[type=number] { background: var(--sheet-2); border: 1px solid var(--border); border-radius: 10px; padding: 8px 11px; font-size: 13px; color: var(--ink); width: 100%; }
.cs-clip-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cs-clip-current, .cs-clip-none { font-size: 12.5px; color: var(--ink-2); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cs-clip-clear { margin-left: auto; }
.cs-clip-tip { margin: 10px 0 0; padding: 9px 12px; border-radius: 10px; background: color-mix(in oklab, #ff5fa8 12%, var(--sheet-2)); font-size: 12.5px; line-height: 1.45; color: var(--ink-2); }
.cs-clip-tip b { color: var(--ink); }
.cs-clip-form h4 { margin: 0; font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.cs-clip-alt { border-top: 1px dashed var(--border); margin-top: 6px; }
.cs-clip-preview { width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; background: #000; margin-top: 10px; }
.cs-clip-form .spin { width: 12px; height: 12px; margin-right: 6px; vertical-align: -2px; }
/* film : extrait découpé, plein cadre, bandes cinéma fixes */
.cn-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; animation: cnVidIn .5s ease-out both; }
@keyframes cnVidIn { from { opacity: 0; transform: scale(1.06); filter: brightness(2.2) contrast(1.3); } to { opacity: 1; transform: none; filter: none; } }
.cn-bars-vid { animation: none; border-width: 7vh 0; z-index: 1; }
.cs-others { display: flex; gap: 10px; flex-wrap: wrap; padding-top: 6px; }
.cs-other { padding: 0; background: none; border: 0; }

/* ── page /cartes ── */
.cd-tabs { margin: 0 0 22px; flex-wrap: wrap; }
.cd-tabs a { height: 40px; padding: 0 15px; display: inline-flex; align-items: center; gap: 7px; font: 600 13.5px/1 var(--body); color: var(--ink-2); border-left: 1px solid var(--line-2); transition: background .15s, color .15s; }
.cd-tabs a:first-child { border-left: 0; }
.cd-tabs a .i { width: 15px; height: 15px; }
.cd-tabs a:hover { color: var(--ink); background: var(--sheet-2); }
.cd-tabs a[aria-selected="true"] { background: var(--accent); color: var(--on-accent); }
.cd-tabs em:not(:empty) { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--danger); color: #fff; font: 700 11px/18px var(--display); font-style: normal; text-align: center; }
.cd-load { padding: 70px; display: grid; place-items: center; }
.cd-hero { --pc: #8e7bff; position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr; gap: 30px; align-items: center; padding: 26px 32px; margin-bottom: 22px; color: #fff;
  border-radius: 28px; border: 3px solid var(--rim); box-shadow: var(--pop); background: linear-gradient(120deg, color-mix(in oklab, var(--pc) 70%, #140c1e), #140c1e 82%); }
.cd-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .3; -webkit-mask: linear-gradient(90deg, transparent 10%, #000 70%); mask: linear-gradient(90deg, transparent 10%, #000 70%); }
.cd-hero > * { position: relative; }
.cd-hero > .cd-hero-bg { position: absolute; }
.cd-hero .label { color: #fff; opacity: .9; }
.cd-hero h2 { margin: 6px 0; font: 800 clamp(26px, 4vw, 42px)/1.04 var(--display); text-transform: uppercase; }
.cd-hero p { max-width: 540px; margin-bottom: 16px; opacity: .85; }
.cd-hero-pack .pk { width: 150px; animation: pkFloat 3.6s ease-in-out infinite; }
.cd-welcome, .cd-welcome .pk { --pc: #ff5fa8; }
.cd-shop { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 16px; }
.cd-pack { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; padding: 18px; border-radius: 24px; background: var(--sheet); border: 3px solid var(--rim); box-shadow: var(--lift); }
.cd-pack[data-kind="classic"] .pk { --pc: #4aa8ff; } .cd-pack[data-kind="univers"] .pk { --pc: #2fb58c; } .cd-pack[data-kind="etoile"] .pk { --pc: #f2a516; }
.cd-pack .pk { transition: transform .35s var(--spring); }
.cd-pack:hover .pk { transform: rotate(-5deg) translateY(-5px); }
.cd-pack h3 { font: 800 19px/1.1 var(--display); }
.cd-pack p { margin: 6px 0 10px; color: var(--ink-2); font-size: 13.5px; }
.cd-select { display: grid; gap: 4px; margin-bottom: 10px; color: var(--ink-3); font-size: 12px; }
.cd-select select { height: 38px; max-width: 100%; padding: 0 10px; border-radius: 12px; border: 2px solid var(--line); background: var(--sheet-2); color: var(--ink); }
.cd-fine { margin: 16px 0 26px; }
.cd-odds-tbl { margin-bottom: 26px; }
.cd-rar { display: flex; flex-wrap: wrap; gap: 10px; }
.cd-rar > div { display: flex; align-items: center; gap: 9px; padding: 10px 14px; border-radius: 16px; background: var(--sheet); border: 2px solid var(--line); }
.cd-rar i { width: 12px; height: 12px; rotate: 45deg; border-radius: 2px; background: var(--rc); box-shadow: 0 0 8px var(--rc); }
.cd-rar small { color: var(--ink-3); }
.cd-pulls { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.cd-pull { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 18px; background: var(--sheet); border: 2px solid var(--line); }
.cd-pull small { display: block; color: var(--ink-3); font-size: 12px; }
.cd-drops { display: grid; grid-template-columns: 1fr auto auto; gap: 20px; align-items: center; padding: 20px 24px; margin-bottom: 22px; border-radius: 24px; background: var(--sheet); border: 3px solid var(--accent); box-shadow: var(--lift); }
.cd-drops h2 { font: 800 24px/1.1 var(--display); }
.cd-drops p { color: var(--ink-2); font-size: 13.5px; }
.cd-drop-row { display: flex; gap: 10px; flex-wrap: wrap; }
.cd-drop-row .tc { cursor: pointer; }
.cd-sum { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
.cd-sum h2 { font: 800 26px/1 var(--display); }
.cd-sum p { color: var(--ink-3); }
.cd-ring { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--sheet-3) 0); }
.cd-ring b { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); font: 800 16px/1 var(--display); }
.cd-search { margin-left: auto; display: flex; align-items: center; gap: 8px; height: 44px; min-width: 230px; padding: 0 14px; border-radius: 99px; border: 3px solid var(--rim); background: var(--sheet); }
.cd-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--ink); }
.cd-search .i { color: var(--ink-3); }
.cd-unis { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 12px; }
.cd-uni { --pc: #8e7bff; display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 20px; background: var(--sheet); border: 2px solid var(--line); transition: transform .25s var(--spring), border-color .2s; }
.cd-uni:hover { transform: translateY(-3px); border-color: var(--pc); }
.cd-uni img { width: 52px; height: 74px; flex: none; object-fit: cover; border-radius: 10px; }
.cd-uni > div { flex: 1; min-width: 0; }
.cd-uni b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 7px; font: 700 14.5px/1.2 var(--display); }
.cd-uni .lvl-bar { width: 100%; }
.cd-uni small { color: var(--ink-3); font-size: 12px; }
.cd-uni.full { border-color: #ffc34a; background: linear-gradient(120deg, color-mix(in oklab, #ffc34a 14%, var(--sheet)), var(--sheet)); }
.cd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 20px 14px; }
.cd-cell { position: relative; display: block; padding: 0; border: 0; background: none; border-radius: 12px; cursor: pointer; }
.cd-cell.is-sel { outline: 4px solid var(--accent); outline-offset: 4px; }
.cd-x { position: absolute; top: -8px; right: -6px; z-index: 6; display: inline-flex; align-items: center; gap: 4px; min-width: 26px; height: 26px; padding: 0 8px; border-radius: 13px; background: var(--ink); color: var(--bg); font: 700 12px/26px var(--display); font-style: normal; }
.cd-x .i { width: 14px; height: 14px; }
.cd-need { top: auto; bottom: -9px; right: 50%; translate: 50% 0; white-space: nowrap; background: var(--green); color: #fff; font-size: 10.5px; }
.cd-uhead { --pc: #8e7bff; position: relative; overflow: hidden; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 20px 24px; margin-bottom: 22px; color: #fff;
  border-radius: 26px; border: 3px solid var(--rim); background: linear-gradient(120deg, color-mix(in oklab, var(--pc) 70%, #140c1e), #140c1e 85%); }
.cd-uhead > * { position: relative; }
.cd-uhead > .cd-hero-bg { position: absolute; }
.cd-uhead img { width: 70px; height: 100px; object-fit: cover; border-radius: 12px; border: 3px solid rgba(255, 255, 255, .6); }
.cd-uhead > div:not(.cd-hero-bg) { flex: 1; min-width: 200px; }
.cd-uhead h2 { font: 800 28px/1.05 var(--display); }
.cd-uhead p { opacity: .8; }
.cd-uhead .lvl-bar { width: 220px; margin-top: 8px; }
.cd-tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.cd-tools .grow { flex: 1; }
.cd-friends { margin-bottom: 26px; }
.cd-frow { display: flex; gap: 10px; flex-wrap: wrap; }
.cd-friend { display: grid; justify-items: center; gap: 6px; min-width: 124px; padding: 14px 18px; border-radius: 20px; background: var(--sheet); border: 2px solid var(--line); }
.cd-friend:hover { border-color: var(--accent); }
.cd-friend .av-ph { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font: 800 18px/1 var(--display); }
.cd-friend small { color: var(--ink-3); }
.cd-trade { padding: 16px 18px; margin-bottom: 12px; border-radius: 22px; background: var(--sheet); border: 2px solid var(--line); }
.cd-trade[data-st="open"] { border-color: var(--accent); }
.cd-trade header { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.cd-trade header small { margin-left: auto; color: var(--ink-3); }
.cd-trade footer { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; }
.cd-trade-row, .cd-deal-sum { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: center; }
.cd-trade-row small, .cd-deal-sum small { display: block; margin-bottom: 6px; color: var(--ink-3); font-size: 12px; }
.cd-mini-row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; min-height: 44px; }
.cd-mini-row em { color: var(--ink-3); }
.cd-arrow { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--sheet-2); color: var(--accent); }
.cd-note { margin-bottom: 8px; font-style: italic; color: var(--ink-2); }
.cd-deal header { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.cd-deal h2 { font: 800 24px/1 var(--display); }
.cd-deal-sum { padding: 16px; border-radius: 22px; background: var(--sheet); border: 2px solid var(--line); }
.cd-deal-go { display: flex; gap: 10px; margin: 14px 0 22px; }
.cd-deal-go input { flex: 1; height: 44px; padding: 0 16px; border-radius: 99px; border: 3px solid var(--rim); background: var(--sheet); color: var(--ink); }
.cd-sides { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.cd-sides h3 { margin-bottom: 10px; font: 700 17px/1 var(--display); }
.cd-side .cd-search { min-width: 0; margin: 0 0 12px; }
.cd-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 16px 10px; max-height: 70vh; overflow: auto; padding: 10px 6px; }
.cd-pick .tc { --w: 100%; }
/* vitrine de cartes sur le profil */
.b-cards h3 span { color: var(--ink-3); font-weight: 500; }
.pf-cards { display: flex; gap: 16px; overflow-x: auto; padding: 14px 6px 20px; }
.pf-cards .tc { --w: 150px; cursor: pointer; }
.pf-cards .tc:nth-child(odd) { rotate: -2deg; } .pf-cards .tc:nth-child(even) { rotate: 2deg; translate: 0 6px; }
@media (max-width: 760px) {
  .cd-hero { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 22px; }
  .cd-drops { grid-template-columns: 1fr; }
  .cd-sides { grid-template-columns: 1fr; }
  .cd-grid { grid-template-columns: repeat(auto-fill, minmax(116px, 1fr)); gap: 16px 10px; }
  .cd-trade-row, .cd-deal-sum { grid-template-columns: 1fr; }
  .cd-arrow { justify-self: center; rotate: 90deg; }
  .cs-box { grid-template-columns: 1fr; }
  .cs-card { border-radius: 25px 25px 0 0; padding: 30px 20px; }
  .cs-info { padding: 24px 20px; }
  .cd-search { margin-left: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .tc-frame, .tc-holo, .tc-spark, .tc-glare, .tc-plate b, .po-beams, .po-beams::before, .po-beams::after, .po-bg::after, .cs-glow, .pk, .pk-foil, .cd-hero-pack .pk, .tc.is-idle .tc-in { animation: none !important; }
}
.po [hidden], .po-cta[hidden], .po-done[hidden] { display: none !important; }
.tc-new { transition: opacity .3s .5s; }
.tc.is-back .tc-new { opacity: 0; transition: none; }
.cd-pack-body { min-width: 0; }
.cd-select select { width: 100%; }
.po-mini .tc-new { display: none; }

/* ── gemmes de rareté : losanges taillés ── */
.tc-gems i { rotate: none; width: 3.1cqw; height: 4.4cqw; border: 0; border-radius: 0; box-shadow: none; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  background: linear-gradient(135deg, #fff 0 22%, var(--rc) 40% 62%, color-mix(in oklab, var(--rc) 55%, #000) 100%); filter: drop-shadow(0 0 1.6cqw var(--rc)); }
.tc[data-r="m"] .tc-gems i { background: linear-gradient(135deg, #fff 0 20%, #ff5fa8 38%, #ffcf5c 55%, #5ec8ff 75%, #b07bff 100%); }
.cs-r .tc-gems i { width: 9px; height: 13px; }
.cd-rar i { rotate: none; width: 11px; height: 15px; border-radius: 0; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); background: linear-gradient(135deg, #fff 0 22%, var(--rc) 45%, color-mix(in oklab, var(--rc) 55%, #000)); }
/* tampon de saison */
.tc-season { position: absolute; right: 6.5cqw; bottom: 13cqw; z-index: 2; padding: 1cqw 2.6cqw; border-radius: 99px; font: 700 max(5px, 3.6cqw)/1 var(--display); text-transform: uppercase; letter-spacing: .06em;
  color: #2a0c1c; background: linear-gradient(90deg, #ffd1e6, #fff, #c9f0ff); box-shadow: 0 0 2.4cqw rgba(255, 180, 220, .7); }
.tc-season ~ .tc-foot { }
.tc:has(.tc-season) .tc-plate { bottom: 19cqw; }
.cs-season { background: linear-gradient(90deg, #ffd1e6, #c9f0ff) !important; color: #2a0c1c; border: 0 !important; }

/* ── booster : éventail de personnages ── */
.pk-fan { position: absolute; inset: 0; overflow: hidden; }
.pk-fan img { position: absolute; bottom: 18%; width: 62%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; border-radius: 8px; border: 2px solid rgba(255, 255, 255, .85); box-shadow: 0 8px 18px rgba(0, 0, 0, .45);
  left: calc(19% + (var(--k) - 1) * 24%); rotate: calc((var(--k) - 1) * 12deg); translate: 0 calc(var(--k) * 0px); transform-origin: 50% 120%; }
.pk-fan img:nth-child(2) { z-index: 2; bottom: 22%; rotate: 0deg; width: 66%; left: 17%; }
.pk-fan::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 30%, transparent 30%, color-mix(in oklab, var(--pc) 55%, transparent) 90%); }

/* ── saison ── */
.cd-season { --pc: #ff5fa8; position: relative; overflow: hidden; padding: 24px 30px 26px; margin-bottom: 22px; color: #fff; border-radius: 28px; border: 3px solid var(--rim); box-shadow: var(--pop);
  background: linear-gradient(120deg, color-mix(in oklab, var(--pc) 60%, #140c1e), #140c1e 80%); }
.cd-season > * { position: relative; }
.cd-season > .cd-hero-bg { position: absolute; }
.cd-season-head { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: flex-start; }
.cd-season .label { color: #fff; opacity: .9; }
.cd-season h2 { margin: 6px 0; font: 800 clamp(26px, 4vw, 40px)/1.04 var(--display); text-transform: uppercase; }
.cd-season p { max-width: 600px; opacity: .85; }
.cd-season-time { display: grid; justify-items: end; gap: 2px; padding: 10px 14px; border-radius: 16px; background: rgba(0, 0, 0, .3); }
.cd-season-time span { font-size: 12px; opacity: .7; } .cd-season-time b { font: 800 20px/1 var(--display); }
.cd-track { position: relative; height: 70px; margin: 34px 26px 6px; }
.cd-track-bar { position: absolute; left: 0; right: 0; top: 14px; height: 10px; border-radius: 99px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.cd-track-bar i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: linear-gradient(90deg, #ff5fa8, #ffcf5c, #6cf5c2); box-shadow: 0 0 14px #ff5fa8; }
.cd-ms { position: absolute; top: 0; translate: -50% 0; display: grid; justify-items: center; gap: 3px; padding: 0; border: 0; background: none; color: #fff; }
.cd-ms span { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #2a1d38; border: 3px solid rgba(255, 255, 255, .35); }
.cd-ms span .i { width: 17px; height: 17px; }
.cd-ms b { font: 800 13px/1 var(--display); } .cd-ms small { font-size: 11px; opacity: .7; }
.cd-ms.done span { background: #ffcf5c; color: #2a1500; border-color: #fff; box-shadow: 0 0 16px #ffcf5c; animation: msPulse 1.4s ease-in-out infinite; }
.cd-ms.claimed span { background: #6cf5c2; color: #04281b; animation: none; box-shadow: none; }
.cd-ms:disabled { cursor: default; }
@keyframes msPulse { 50% { scale: 1.12; } }
.cd-season-sum { margin-top: 4px; font-size: 13.5px; opacity: .85; }

/* ── effets de révélation ── */
.po-fx { position: absolute; inset: 0; z-index: 4; pointer-events: none; overflow: hidden; }
.po-wave { position: absolute; left: 50%; top: 45%; width: 40vmin; height: 40vmin; margin: -20vmin 0 0 -20vmin; border-radius: 50%; border: 6px solid var(--c); box-shadow: 0 0 30px var(--c), inset 0 0 30px var(--c); animation: poWave 1.2s var(--ease) both; }
@keyframes poWave { from { scale: .3; opacity: 1; } to { scale: 3.2; opacity: 0; border-width: 1px; } }
.po-bolts { position: absolute; left: 50%; top: 45%; width: 120vmin; height: 120vmin; translate: -50% -50%; fill: none; stroke: var(--c); stroke-width: 1.4; stroke-linejoin: round;
  filter: drop-shadow(0 0 4px var(--c)) drop-shadow(0 0 12px var(--c)); stroke-dasharray: 400; animation: poBolt .85s ease-out both; }
.po-bolts path { stroke: #fff; stroke-width: .6; }
.po-bolts { stroke: var(--c); }
@keyframes poBolt { 0% { stroke-dashoffset: 400; opacity: 1; } 35% { stroke-dashoffset: 0; opacity: 1; } 50% { opacity: .3; } 60% { opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.po-shard { position: absolute; top: -20px; width: var(--s); height: calc(var(--s) * 1.6); background: linear-gradient(135deg, #fff, var(--c)); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  filter: drop-shadow(0 0 6px var(--c)); animation: poRain var(--dur) linear both; }
@keyframes poRain { to { transform: translateY(110vh) rotate(var(--rot)); } }
.po::before { content: ""; position: absolute; left: 50%; top: -10%; bottom: -10%; width: 0; z-index: 1; translate: -50% 0; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, transparent, color-mix(in oklab, var(--rc) 70%, #fff), #fff, color-mix(in oklab, var(--rc) 70%, #fff), transparent); filter: blur(6px); transition: width .5s var(--ease), opacity .5s; }
.po.is-pillar::before { width: min(420px, 70vw); opacity: .55; }
.po.is-prism .po-beams::before {
  background:
    radial-gradient(ellipse 60% 70% at 50% 44%, rgba(255, 95, 168, .35) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 50% 44%, rgba(94, 200, 255, .2) 0%, transparent 55%),
    radial-gradient(ellipse 30% 36% at 50% 44%, rgba(255, 207, 92, .2) 0%, transparent 50%);
}
.po.is-prism .po-beams::after {
  background: radial-gradient(ellipse 90% 55% at 50% 105%, rgba(255, 95, 168, .3) 0%, transparent 55%);
}
.po.is-prism .po-bg { background: radial-gradient(circle at 50% 45%, #3a1440 0%, #0b0711 70%); }

/* ── film d'une Mythique ── */
.po-cine { position: absolute; inset: 0; z-index: 8; overflow: hidden; background: #000; }
.po.is-cine .po-x { z-index: 9; }
/* ── variante YouTube plein écran ── */
.cn-yt-wrap { position: absolute; inset: 0; }
.cn-yt {
  position: absolute;
  /* sur-dimensionner pour couvrir les bandes noires YouTube (16:9 → plein écran) */
  left: 50%; top: 50%;
  width: max(100%, calc(100vh * 16 / 9));
  height: max(100%, calc(100vw * 9 / 16));
  transform: translate(-50%, -50%);
  border: 0; pointer-events: none;
}
.cn-yt-overlay {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(to top, rgba(0,0,0,.72) 0%, transparent 45%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 5vh 6vw;
  cursor: pointer;
}
.cn-yt-info { display: flex; flex-direction: column; gap: 6px; }
.cn-yt-info .cn-jp { font: 400 clamp(16px,2.5vw,28px)/1 var(--jp); color: #ffcf5c; letter-spacing: .1em; }
.cn-yt-info b { font: 900 clamp(28px,6vw,80px)/.92 var(--display); text-transform: uppercase; letter-spacing: -.02em; color: #fff; text-shadow: 3px 3px 0 rgba(255,95,168,.7); }
.cn-yt-info em { align-self: flex-start; padding: 5px 12px; border-radius: 99px; font: 800 12px/1 var(--display); font-style: normal; text-transform: uppercase; letter-spacing: .14em; color: #1a0816; background: linear-gradient(90deg,#ff5fa8,#ffcf5c,#6cf5c2,#5ec8ff); }
.cn-yt-skip { margin-top: 14px; font: 500 13px/1 var(--ui); color: rgba(255,255,255,.5); letter-spacing: .06em; }
/* le lecteur YouTube ne doit jamais se voir : zoom (titre et logo hors champ) + cache noir jusqu'à la lecture */
.cn-yt-wrap { overflow: hidden; }
.cn-yt { transform: translate(-50%, -50%) scale(1.34); }
.cn-yt-cover { position: absolute; inset: 0; z-index: 1; background: #000; transition: opacity .35s ease-out; pointer-events: none; }
.cn-yt-cover.is-off { opacity: 0; }
/* le flash du montage ne doit pas tourner pendant une vidéo : seul le flash final (is-flash-now) reste */
.cn-yt-wrap ~ .cn-white { animation: none; opacity: 0; }
.cn-yt-wrap ~ .cn-white.is-flash-now { opacity: 1 !important; }
.cn-yt-overlay { z-index: 2; }
.cn-white.is-flash-now { animation: none !important; opacity: 1 !important; transition: opacity .35s; }
.cn-bars { position: absolute; inset: 0; z-index: 6; pointer-events: none; border-top: 0 solid #000; border-bottom: 0 solid #000; animation: cnBars 3.3s var(--ease) both; }
@keyframes cnBars { 0% { border-width: 50vh 0; } 12%, 88% { border-width: 11vh 0; } 100% { border-width: 0; } }
.cn-shot, .cn-clash, .cn-hero { position: absolute; inset: 0; opacity: 0; }
.cn-img { position: absolute; inset: -8%; background-size: cover; background-position: center; filter: contrast(1.2) saturate(1.3); }
/* plan large : 0,35 s → 1,25 s, poussée rapide, aberration rouge/cyan */
.cn-wide { animation: cnShow 3.3s linear both; --a: .1; --b: .38; }
.cn-wide .cn-img { animation: cnPush 1s .35s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes cnPush { from { transform: scale(1.5) rotate(-3deg); filter: contrast(1.4) saturate(1.5) drop-shadow(-12px 0 0 rgba(255, 0, 80, .7)) drop-shadow(12px 0 0 rgba(0, 220, 255, .7)); } to { transform: scale(1.08) rotate(0); filter: contrast(1.2) saturate(1.3); } }
.cn-speed { position: absolute; inset: -50%; mix-blend-mode: screen; opacity: .8; animation: tcAng .6s linear infinite;
  background: repeating-conic-gradient(from var(--ang), rgba(255, 255, 255, .9) 0 .4deg, transparent .4deg 4deg);
  -webkit-mask: radial-gradient(circle, transparent 18%, #000 45%); mask: radial-gradient(circle, transparent 18%, #000 45%); }
/* percussion : deux panneaux en diagonale qui se rentrent dedans (1,25 s → 1,95 s) */
.cn-clash { animation: cnShow2 3.3s linear both; }
.cn-panel { position: absolute; inset: 0; background-size: cover; background-position: center 25%; }
.cn-a { clip-path: polygon(0 0, 62% 0, 38% 100%, 0 100%); animation: cnA .7s 1.25s cubic-bezier(.2, .9, .2, 1) both; filter: grayscale(.2) contrast(1.3) brightness(.8) hue-rotate(-20deg); }
.cn-b { clip-path: polygon(62% 0, 100% 0, 100% 100%, 38% 100%); animation: cnB .7s 1.25s cubic-bezier(.2, .9, .2, 1) both; filter: contrast(1.25) saturate(1.4); background-size: contain; background-repeat: no-repeat; background-position: center 25%; }
@keyframes cnA { from { transform: translateX(-60%); } 60% { transform: translateX(3%); } to { transform: translateX(0); } }
@keyframes cnB { from { transform: translateX(60%); } 60% { transform: translateX(-3%); } to { transform: translateX(0); } }
.cn-spark { position: absolute; left: 50%; top: 0; bottom: 0; width: 8px; translate: -50% 0; rotate: 13.5deg; scale: 1 1.2; background: #fff; box-shadow: 0 0 30px 10px #fff, 0 0 80px 30px #ff5fa8; animation: cnSpark .7s 1.6s ease-out both; }
@keyframes cnSpark { from { opacity: 0; width: 0; } 20% { opacity: 1; width: 22px; } to { opacity: 0; width: 2px; } }
/* héros : portrait en contre-plongée + typo (1,95 s → 3,1 s) */
.cn-hero { animation: cnShow3 3.3s linear both; background: radial-gradient(circle at 70% 50%, #ff5fa8 0%, #3a0d33 45%, #07040c 80%); }
.cn-portrait { position: absolute; right: 4%; top: 6%; bottom: 6%; width: min(46vw, 420px); background-size: cover; background-position: top center; border-radius: 6px;
  clip-path: polygon(14% 0, 100% 0, 86% 100%, 0 100%); animation: cnRise 1.2s 1.95s cubic-bezier(.15, .8, .2, 1) both; box-shadow: 0 0 60px #ff5fa8; }
@keyframes cnRise { from { transform: translateY(14%) scale(1.25); filter: brightness(2); } to { transform: none; filter: none; } }
.cn-speed-2 { opacity: .35; }
.cn-type { position: absolute; left: 6%; top: 50%; translate: 0 -50%; display: grid; gap: 8px; max-width: 48vw; }
.cn-type b { font: 900 clamp(34px, 7vw, 96px)/.92 var(--display); text-transform: uppercase; letter-spacing: -.02em; color: #fff; text-shadow: 4px 4px 0 #ff5fa8, 8px 8px 0 rgba(94, 200, 255, .6); animation: cnType .5s 2.1s cubic-bezier(.2, 1.4, .3, 1) both; }
.cn-jp { font: 400 clamp(18px, 3vw, 36px)/1 var(--jp); color: #ffcf5c; letter-spacing: .1em; animation: cnType .5s 2.0s ease-out both; }
.cn-type em { justify-self: start; padding: 6px 14px; border-radius: 99px; font: 800 14px/1 var(--display); font-style: normal; text-transform: uppercase; letter-spacing: .14em; color: #1a0816;
  background: linear-gradient(90deg, #ff5fa8, #ffcf5c, #6cf5c2, #5ec8ff); animation: cnType .4s 2.35s ease-out both; }
@keyframes cnType { from { opacity: 0; transform: translateX(-40px) skewX(-12deg); } to { opacity: 1; transform: none; } }
/* coup de lame d'ouverture et éclair final */
.cn-slash { position: absolute; left: -10%; right: -10%; top: 50%; height: 3px; z-index: 5; background: #fff; box-shadow: 0 0 20px 6px #fff; rotate: -12deg; animation: cnSlash .45s .05s ease-out both; }
@keyframes cnSlash { from { scale: 0 1; opacity: 1; } 70% { scale: 1 1; opacity: 1; } to { scale: 1 8; opacity: 0; } }
.cn-white { position: absolute; inset: 0; z-index: 7; background: #fff; opacity: 0; animation: cnWhite 3.3s linear both; }
@keyframes cnWhite { 0%, 8% { opacity: 0; } 10% { opacity: .9; } 14%, 90% { opacity: 0; } 95% { opacity: 1; } 100% { opacity: 0; } }
@keyframes cnShow { 0%, 10% { opacity: 0; } 11%, 38% { opacity: 1; } 39%, 100% { opacity: 0; } }
@keyframes cnShow2 { 0%, 37% { opacity: 0; } 38%, 59% { opacity: 1; } 60%, 100% { opacity: 0; } }
@keyframes cnShow3 { 0%, 58% { opacity: 0; } 59%, 96% { opacity: 1; } 100% { opacity: 0; } }
.po.is-cine .po-cine ~ * { }
@media (prefers-reduced-motion: reduce) { .po-cine { display: none; } .po-wave, .po-bolts, .po-shard { display: none; } }
@media (max-width: 760px) { .cn-portrait { width: 56vw; right: 2%; opacity: .9; } .cn-type { max-width: 70vw; } .cd-track { margin: 30px 18px 6px; } .cd-ms b { font-size: 11px; } }
.pk-fan img { width: 52%; bottom: 24%; rotate: 0deg; }
.pk-fan img:nth-child(1) { left: -2%; rotate: -14deg; }
.pk-fan img:nth-child(3) { left: 50%; rotate: 14deg; }
.pk-fan img:nth-child(2) { left: 19%; width: 62%; bottom: 26%; rotate: 0deg; }
