/* ============================================================
   CrazyViki — cartes (style « taverne ») : cadre métallique par rareté,
   Crazy cartes (version premium), dos de carte, table d'ouverture de booster.
   Toutes les dimensions internes des cartes sont en cqw (% de la largeur de la carte).
   La carte est un objet physique : même rendu dans les deux thèmes.
   ============================================================ */
:root{
  --parchemin:#f3e7c9; --parchemin2:#e4d3a8; --encre:#2a2017;
  --gold1:#fff1b0; --gold2:#e0b045; --gold3:#8c5a10;
  --display-carte:"Cinzel",Georgia,serif;
}
.hs h3{font-family:var(--display-carte)}
.hs .ecusson b,.hs .rar{font-family:var(--display-carte)}
/* ---------- carte (toutes les dimensions en % de la largeur de la carte : cqw) ---------- */
.hs{width:100%;aspect-ratio:63/88;position:relative;container-type:inline-size;filter:drop-shadow(0 14px 22px rgba(0,0,0,.55));
  --f1:#d9d6cf; --f2:#8f8b84; --f3:#f4f2ee; --gem1:#e9e6df; --gem2:#5a5752; --lueur:transparent}
.hs.inhabituel{--f1:#a6efc2; --f2:#0e8a4b; --f3:#ddffe9; --gem1:#7dffb2; --gem2:#064a27; --lueur:rgba(40,205,115,.4)}
.hs.rare{--f1:#9cc4ff; --f2:#1f4fb3; --f3:#dcebff; --gem1:#8fd0ff; --gem2:#0b2f7a; --lueur:rgba(60,130,255,.35)}
.hs.epique{--f1:#e0b3ff; --f2:#6a1fa8; --f3:#f3dfff; --gem1:#e2a6ff; --gem2:#3f0b6e; --lueur:rgba(170,70,255,.4)}
.hs.legendaire{--f1:#ffcf7e; --f2:#d9730d; --f3:#fff2d8; --gem1:#ffae3d; --gem2:#7e3a00; --lueur:rgba(255,140,30,.5)}
.hs.mythique{--f1:#ff9fa6; --f2:#b50f20; --f3:#ffe4e6; --gem1:#ff5d68; --gem2:#5c0510; --lueur:rgba(255,40,60,.6);
  animation:halo-mythique 3.2s ease-in-out infinite}
@keyframes halo-mythique{0%,100%{filter:drop-shadow(0 0 3cqw rgba(255,40,60,.55)) drop-shadow(0 14px 22px rgba(0,0,0,.55))}50%{filter:drop-shadow(0 0 7cqw rgba(255,60,75,.9)) drop-shadow(0 14px 22px rgba(0,0,0,.55))}}
.cadre{position:absolute;inset:0;border-radius:6.5cqw;padding:5.5cqw 5cqw 4.5cqw;
  background:linear-gradient(155deg,var(--f3) 0%,var(--f1) 18%,var(--f2) 45%,var(--f1) 70%,var(--f3) 100%);
  box-shadow:inset 0 0 0 .7cqw rgba(255,255,255,.35),inset 0 0 0 1.4cqw rgba(0,0,0,.25),0 0 10cqw var(--lueur);
  display:flex;flex-direction:column}
.cadre::before{content:"";position:absolute;inset:2.5cqw;border-radius:4.3cqw;border:.5cqw solid rgba(0,0,0,.35);pointer-events:none}
.cadre::after{content:"";position:absolute;inset:2.1cqw;border-radius:4.7cqw;border:.35cqw solid rgba(255,255,255,.45);pointer-events:none}
.coin{position:absolute;width:12cqw;height:12cqw;color:rgba(40,25,10,.75);z-index:2}
.coin.tl{top:.7cqw;left:.7cqw}.coin.tr{top:.7cqw;right:.7cqw;transform:scaleX(-1)}
.coin.bl{bottom:.7cqw;left:.7cqw;transform:scaleY(-1)}.coin.br{bottom:.7cqw;right:.7cqw;transform:scale(-1)}
.portrait{position:relative;flex:none;height:50cqw;border-radius:46% 46% 3.5cqw 3.5cqw / 34% 34% 3.5cqw 3.5cqw;overflow:hidden;background:#fff;
  box-shadow:inset 0 0 0 1cqw rgba(0,0,0,.6),inset 0 0 14cqw rgba(0,0,0,.55);margin:1.5cqw .7cqw 0}
.portrait img{width:100%;height:100%;object-fit:contain;display:block;background:#fff;padding:1.5cqw;box-sizing:border-box}
.portrait::after{content:"";position:absolute;inset:0;background:radial-gradient(ellipse at 50% 40%,transparent 55%,rgba(0,0,0,.55) 100%);pointer-events:none}
.cat{position:absolute;top:4cqw;left:50%;transform:translateX(-50%);z-index:2;background:var(--c);color:#fff;font-size:3.3cqw;font-weight:800;letter-spacing:.08em;text-transform:uppercase;padding:1.3cqw 3cqw;border-radius:999px;box-shadow:0 .7cqw 2cqw rgba(0,0,0,.5);white-space:nowrap}
.banniere{position:relative;z-index:3;margin:-6cqw 2cqw 0;background:linear-gradient(180deg,var(--parchemin),var(--parchemin2));color:var(--encre);text-align:center;padding:2.4cqw 3cqw;
  border:.7cqw solid var(--f2);border-radius:2cqw;box-shadow:0 1.4cqw 3.5cqw rgba(0,0,0,.45)}
.banniere::before,.banniere::after{content:"";position:absolute;top:50%;width:3.5cqw;height:70%;background:var(--f2);transform:translateY(-50%);z-index:-1}
.banniere::before{left:-3.2cqw;clip-path:polygon(0 0,100% 0,100% 100%,0 100%,40% 50%)}
.banniere::after{right:-3.2cqw;clip-path:polygon(0 0,100% 0,60% 50%,100% 100%,0 100%)}
.banniere h3{font-size:5.4cqw;font-weight:900;line-height:1.1;letter-spacing:.01em}
.gemme{position:relative;z-index:4;width:10.5cqw;height:10.5cqw;margin:-2cqw auto -5cqw;border-radius:50%;background:var(--f3);
  box-shadow:0 0 0 .7cqw var(--f2),0 1cqw 3cqw rgba(0,0,0,.5);display:flex;align-items:center;justify-content:center}
.gemme span{width:7cqw;height:7cqw;border-radius:50%;background:radial-gradient(circle at 35% 30%,#fff 0,var(--gem1) 25%,var(--gem2) 100%);box-shadow:inset 0 -1cqw 1.7cqw rgba(0,0,0,.4),0 0 3.5cqw var(--gem1)}
.texte{margin:1.4cqw 0 0;flex:1 1 auto;min-height:0;overflow:hidden;background:linear-gradient(180deg,var(--parchemin2),var(--parchemin));color:var(--encre);border-radius:2.8cqw;padding:6.5cqw 3.5cqw 2.5cqw;font-size:4.4cqw;line-height:1.35;
  box-shadow:inset 0 0 0 .35cqw rgba(0,0,0,.25);font-weight:600}
.texte.long{font-size:4cqw;line-height:1.3;padding-top:6cqw}
.texte.tres-long{font-size:3.7cqw;line-height:1.28;padding-top:5.8cqw;padding-bottom:2cqw}
.pied{display:flex;justify-content:space-between;align-items:center;padding:2.2cqw 0 .4cqw;gap:1.5cqw;flex:none}
.ecusson{position:relative;min-width:19cqw;padding:1.8cqw 2.4cqw 1.6cqw;border-radius:3cqw 3cqw 7cqw 7cqw / 3cqw 3cqw 8cqw 8cqw;color:#fff;font-size:3cqw;text-transform:uppercase;letter-spacing:.08em;text-align:center;line-height:1;font-weight:800;
  background:radial-gradient(circle at 35% 22%,#ffffff 0,var(--f1) 16%,var(--f2) 70%,var(--gem2) 100%);border:.8cqw solid var(--f3);
  box-shadow:0 0 0 .6cqw var(--gem2),0 1.4cqw 2.6cqw rgba(0,0,0,.55),inset 0 -1.6cqw 2.2cqw rgba(0,0,0,.35),inset 0 1cqw 1.4cqw rgba(255,255,255,.35);text-shadow:0 .4cqw .6cqw rgba(0,0,0,.8)}
.ecusson b{display:block;font-family:var(--display-carte);font-size:7.2cqw;font-weight:900;margin-bottom:.9cqw;text-shadow:0 .6cqw 0 rgba(0,0,0,.7),0 0 2.5cqw rgba(0,0,0,.9),-.3cqw 0 0 rgba(0,0,0,.5),.3cqw 0 0 rgba(0,0,0,.5)}
.rar{font-family:var(--display-carte);font-weight:900;font-size:3.4cqw;flex:1;min-width:0;letter-spacing:.08em;text-transform:uppercase;color:var(--encre);text-shadow:0 1px 0 rgba(255,255,255,.5);text-align:center}

/* ---------- points de duel (centre du pied de carte) : écusson hexagonal marine et or, identique pour toutes les raretés ---------- */
.duel{position:relative;flex:none;width:14.6cqw;height:16cqw;display:flex;flex-direction:column;align-items:center;justify-content:center;filter:drop-shadow(0 .9cqw 1.4cqw rgba(0,0,0,.55))}
.duel svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.duel-fond{fill:#14204a;stroke:#ffd36a;stroke-width:3;stroke-linejoin:round}
.duel-fil{fill:none;stroke:#ffd36a;stroke-opacity:.5;stroke-width:1}
.duel b{position:relative;font-family:var(--display-carte);font-weight:900;font-size:8.2cqw;line-height:1;color:#ffe9a0;text-shadow:0 .5cqw 0 rgba(0,0,0,.6),0 0 2cqw rgba(255,211,106,.55);margin-top:.5cqw}
.duel i{position:relative;font-style:normal;font-family:var(--display-carte);font-weight:900;font-size:2cqw;letter-spacing:.2em;line-height:1;color:#ffd36a;margin-top:.5cqw;padding-left:.2em}

/* ---------- Super (Super article / Article de la semaine) : 3 propositions de style, à choisir ---------- */
.super-bord{position:absolute;inset:0;border-radius:6.5cqw;z-index:8;pointer-events:none;
  box-shadow:inset 0 0 0 2.6cqw #050507,inset 0 0 0 3.1cqw #e8b84a,inset 0 0 0 3.7cqw #050507,0 0 0 .35cqw rgba(255,255,255,.5)}
.hs.crazy .super-bord{border-radius:7.5cqw}
.hs.super.crazy .bijou.tl{top:3.4cqw;left:3.4cqw}.hs.super.crazy .bijou.tr{top:3.4cqw;right:3.4cqw}
.hs.super.crazy .bijou.bl{bottom:3.4cqw;left:3.4cqw}.hs.super.crazy .bijou.br{bottom:3.4cqw;right:3.4cqw}
/* A. « Galaxie » : le contour est un ciel nocturne qui scintille, liseré or */
.sv-galaxie .super-bord{box-shadow:inset 0 0 0 4cqw #07061a,inset 0 0 0 4.5cqw #e8b84a,0 0 0 .35cqw rgba(255,255,255,.5);
  background:radial-gradient(circle at 12% 8%,#fff 0 .35cqw,transparent .5cqw),radial-gradient(circle at 38% 2%,#ffe9a0 0 .3cqw,transparent .45cqw),radial-gradient(circle at 71% 5%,#fff 0 .4cqw,transparent .55cqw),radial-gradient(circle at 93% 14%,#ffe9a0 0 .3cqw,transparent .45cqw),
    radial-gradient(circle at 3% 33%,#fff 0 .3cqw,transparent .45cqw),radial-gradient(circle at 97% 41%,#fff 0 .35cqw,transparent .5cqw),radial-gradient(circle at 2% 62%,#ffe9a0 0 .4cqw,transparent .55cqw),radial-gradient(circle at 96% 70%,#fff 0 .3cqw,transparent .45cqw),
    radial-gradient(circle at 9% 93%,#fff 0 .35cqw,transparent .5cqw),radial-gradient(circle at 33% 98%,#ffe9a0 0 .3cqw,transparent .45cqw),radial-gradient(circle at 64% 96%,#fff 0 .4cqw,transparent .55cqw),radial-gradient(circle at 90% 91%,#ffe9a0 0 .3cqw,transparent .45cqw);
  animation:ciel-etoile 2.6s ease-in-out infinite alternate}
.sv-galaxie .super-bord::before{display:none}
@keyframes ciel-etoile{0%{filter:brightness(.8)}100%{filter:brightness(1.6)}}
/* B. « Médailles » : contour noir + liseré or, deux médailles à étoile sur les flancs */
.sv-medaille .sv-med{position:absolute;z-index:9;top:63cqw;width:12cqw;height:12cqw;border-radius:50%;pointer-events:none;
  background:radial-gradient(circle at 35% 28%,#3a3a48 0,#0b0b12 70%);box-shadow:0 0 0 .7cqw #e8b84a,0 0 0 1.4cqw #050507,0 1.2cqw 2.4cqw rgba(0,0,0,.6);display:flex;align-items:center;justify-content:center}
.sv-medaille .sv-med.l{left:-1.2cqw}.sv-medaille .sv-med.r{right:-1.2cqw}
.sv-med svg{width:8cqw;height:8cqw;filter:drop-shadow(0 0 1.2cqw rgba(255,214,102,.9))}
/* C. « Ruban » : contour noir + liseré or, ruban SUPER or et noir en travers du coin haut gauche */
.sv-ruban .sv-rub{position:absolute;top:0;left:0;width:33cqw;height:33cqw;overflow:hidden;border-radius:6.5cqw 0 0 0;z-index:9;pointer-events:none}
.sv-ruban .sv-rub b{position:absolute;top:6.2cqw;left:-10.5cqw;width:46cqw;transform:rotate(-45deg);text-align:center;padding:1cqw 0;
  background:linear-gradient(180deg,#1b1b24,#050507);color:#ffd36a;font-family:var(--display-carte);font-weight:900;font-size:3.2cqw;letter-spacing:.2em;
  border-top:.4cqw solid #e8b84a;border-bottom:.4cqw solid #e8b84a;box-shadow:0 .8cqw 1.8cqw rgba(0,0,0,.55);text-shadow:0 0 1.5cqw rgba(255,211,106,.7)}

/* ---------- Collector : ruban en haut à droite (ancienne version d'une carte dont la rareté a changé) ---------- */
.collector{position:absolute;top:0;right:0;width:33cqw;height:33cqw;overflow:hidden;border-radius:0 6.5cqw 0 0;z-index:9;pointer-events:none}
.collector b{position:absolute;top:6.2cqw;right:-10.5cqw;width:46cqw;transform:rotate(45deg);text-align:center;padding:1cqw 0;
  background:linear-gradient(180deg,#2d6a73,#143f46);color:#ffe9a0;font-family:var(--display-carte);font-weight:900;font-size:3.2cqw;letter-spacing:.16em;
  border-top:.4cqw solid #ffd36a;border-bottom:.4cqw solid #ffd36a;box-shadow:0 .8cqw 1.8cqw rgba(0,0,0,.55);text-shadow:0 .3cqw .3cqw rgba(0,0,0,.6)}
.hs.crazy .collector{border-radius:0 7.5cqw 0 0}

/* ---------- dorée : cadre spécial ---------- */
.hs.super:not(.crazy){filter:drop-shadow(0 0 2.4cqw rgba(240,194,74,.65)) drop-shadow(0 14px 22px rgba(0,0,0,.55))}
.hs.crazy{--halo:color-mix(in srgb,var(--gem1) 50%,transparent);filter:drop-shadow(0 0 10cqw var(--halo)) drop-shadow(0 14px 22px rgba(0,0,0,.55));animation:halo-or 2.4s ease-in-out infinite}
.hs.crazy .cadre{border-radius:7.5cqw;
  background:
    repeating-conic-gradient(from 0deg at 50% 50%,rgba(255,255,255,.18) 0 2deg,transparent 2deg 6deg),
    linear-gradient(115deg,var(--f2) 0%,var(--f3) 15%,var(--f1) 30%,var(--f3) 45%,var(--f1) 60%,var(--f2) 75%,var(--f3) 90%,var(--f1) 100%);
  background-size:100% 100%,300% 300%;animation:coulee 6s linear infinite;
  box-shadow:inset 0 0 0 .8cqw #ffffff,inset 0 0 0 1.6cqw var(--gem2),inset 0 0 0 2.4cqw var(--f1),inset 0 0 0 3.2cqw rgba(0,0,0,.45),0 0 14cqw var(--halo)}
.hs.crazy .cadre::before{inset:3.9cqw;border:.7cqw solid var(--f2);border-radius:4cqw}
.hs.crazy .cadre::after{inset:3.3cqw;border:.5cqw solid #ffffff;border-radius:4.5cqw}
.hs.crazy .cadre > .portrait,.hs.crazy .cadre > .texte,.hs.crazy .cadre > .pied{position:relative;z-index:1}
.hs .gemme{z-index:6}
.dor-sweep{position:absolute;inset:0;border-radius:inherit;overflow:hidden;z-index:0!important;pointer-events:none;padding:5.4cqw;
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);mask-composite:exclude}
.dor-sweep::before{content:"";position:absolute;inset:-60%;background:conic-gradient(from 0deg,transparent 0 18%,rgba(255,255,255,.95) 23%,transparent 28%,transparent 68%,rgba(255,255,255,.7) 73%,transparent 78%);animation:tourne 3.5s linear infinite}
.hs.crazy .coin{color:var(--gem2);width:11cqw;height:11cqw;top:3cqw!important;left:3cqw!important}
.hs.crazy .coin.tr{left:auto!important;right:3cqw!important}.hs.crazy .coin.bl{top:auto!important;bottom:3cqw!important}
.hs.crazy .coin.br{top:auto!important;left:auto!important;right:3cqw!important;bottom:3cqw!important}
/* Crazy : un diamant qui brille remplace le cercle rouge des coins */
.bijou{position:absolute;width:7.6cqw;height:6.9cqw;z-index:3;overflow:visible;
  filter:drop-shadow(0 0 1.2cqw rgba(150,228,255,.9)) drop-shadow(0 .4cqw .5cqw rgba(0,0,0,.5));animation:diamant-brille 2.6s ease-in-out infinite}
.bijou.tl{top:1.1cqw;left:1.1cqw}.bijou.tr{top:1.1cqw;right:1.1cqw;animation-delay:.65s}
.bijou.bl{bottom:1.1cqw;left:1.1cqw;animation-delay:1.9s}.bijou.br{bottom:1.1cqw;right:1.1cqw;animation-delay:1.3s}
.bijou .gl{animation:diamant-eclat 2.6s ease-in-out infinite;transform-origin:14px 6px}
@keyframes diamant-brille{0%,100%{filter:drop-shadow(0 0 .9cqw rgba(150,228,255,.65)) drop-shadow(0 .4cqw .5cqw rgba(0,0,0,.5)) brightness(1)}
  45%,55%{filter:drop-shadow(0 0 3cqw #ffffff) drop-shadow(0 0 1.2cqw rgba(120,220,255,1)) drop-shadow(0 .4cqw .5cqw rgba(0,0,0,.5)) brightness(1.4)}}
@keyframes diamant-eclat{0%,35%,65%,100%{opacity:.25}50%{opacity:1}}
.crete{position:absolute;top:-4cqw;left:50%;transform:translateX(-50%);width:30cqw;height:15cqw;z-index:10;filter:drop-shadow(0 .7cqw 1.4cqw rgba(0,0,0,.5))}
.hs.crazy .portrait{border-radius:46% 46% 3.5cqw 3.5cqw / 34% 34% 3.5cqw 3.5cqw;box-shadow:inset 0 0 0 1cqw var(--gem2),inset 0 0 0 1.8cqw var(--f1),inset 0 0 14cqw rgba(0,0,0,.5)}
.hs.crazy .banniere{border-color:var(--gem2);box-shadow:0 0 0 .5cqw var(--f1),0 1.4cqw 3.5cqw rgba(0,0,0,.45)}
.hs.crazy .banniere::before,.hs.crazy .banniere::after{background:var(--gem2)}
.hs.crazy .banniere h3{background:linear-gradient(180deg,var(--gem2),var(--f2) 50%,var(--gem2));-webkit-background-clip:text;background-clip:text;color:transparent}
.hs.crazy .gemme{width:13.5cqw;height:12.2cqw;margin:-3cqw auto -6.2cqw;border-radius:0;background:none;box-shadow:none;filter:drop-shadow(0 0 2.4cqw var(--gem1)) drop-shadow(0 .5cqw .8cqw rgba(0,0,0,.55));animation:diamant-brille 2.6s ease-in-out infinite}
.hs.crazy .gemme svg{width:100%;height:100%;overflow:visible;display:block}
.hs.crazy .ecusson{border-color:#ffffff}
.hs.crazy .portrait::before{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(120deg,transparent 35%,rgba(255,255,255,.45) 50%,transparent 65%);background-size:250% 100%;animation:reflet 3.2s ease-in-out infinite;pointer-events:none}
.etincelles i{position:absolute;width:6px;height:6px;border-radius:50%;background:#fff;box-shadow:0 0 8px 2px var(--gem1,#ffe08a);z-index:2;animation:scintille 2.4s ease-in-out infinite;opacity:0}
.etincelles i:nth-child(1){top:18%;left:20%;animation-delay:0s}.etincelles i:nth-child(2){top:30%;left:75%;animation-delay:.5s}
.etincelles i:nth-child(3){top:62%;left:30%;animation-delay:1s}.etincelles i:nth-child(4){top:70%;left:80%;animation-delay:1.5s}
.etincelles i:nth-child(5){top:45%;left:50%;animation-delay:2s;width:4px;height:4px}.etincelles i:nth-child(6){top:15%;left:55%;animation-delay:.8s;width:4px;height:4px}
.etincelles.carte-entiere{position:absolute;inset:0;z-index:6;pointer-events:none}
.etincelles.carte-entiere i{width:5px;height:5px}
.etincelles.carte-entiere i:nth-child(1){top:4%;left:8%}.etincelles.carte-entiere i:nth-child(2){top:6%;left:88%;animation-delay:.7s}
.etincelles.carte-entiere i:nth-child(3){top:50%;left:2%;animation-delay:1.2s}.etincelles.carte-entiere i:nth-child(4){top:55%;left:95%;animation-delay:.3s}
.etincelles.carte-entiere i:nth-child(5){top:92%;left:12%;animation-delay:1.7s}.etincelles.carte-entiere i:nth-child(6){top:94%;left:84%;animation-delay:1s}
.etincelles.carte-entiere i:nth-child(7){top:3%;left:40%;animation-delay:2s;width:8px;height:8px}.etincelles.carte-entiere i:nth-child(8){top:75%;left:50%;animation-delay:.4s}
@keyframes coulee{0%{background-position:0 0,0% 0%}100%{background-position:0 0,100% 100%}}
@keyframes tourne{to{transform:rotate(360deg)}}
@keyframes halo-or{0%,100%{filter:drop-shadow(0 0 6cqw var(--halo)) drop-shadow(0 14px 22px rgba(0,0,0,.55))}50%{filter:drop-shadow(0 0 11cqw var(--halo)) drop-shadow(0 14px 22px rgba(0,0,0,.55))}}
@keyframes reflet{0%,20%{background-position:120% 0}60%,100%{background-position:-40% 0}}
@keyframes scintille{0%,100%{opacity:0;transform:scale(.4)}50%{opacity:1;transform:scale(1)}}
@media (prefers-reduced-motion:reduce){.hs.crazy,.hs.crazy .cadre,.hs.crazy .portrait::before,.etincelles i,.dor-sweep::before{animation:none}.etincelles i{opacity:.8}}

/* ---------- ouverture de booster (interactif) ---------- */
.table-booster{position:relative;width:min(1000px,100%,calc((100dvh - 124px) * 1.3158));margin:0 auto;aspect-ratio:1000/760;background:radial-gradient(ellipse at 50% 60%,#3a2a4d 0%,#1a1424 55%,#0e0b16 100%);border-radius:24px;box-shadow:inset 0 0 80px rgba(0,0,0,.7),0 20px 50px rgba(0,0,0,.5);
  border:3px solid #5b3a12;outline:2px solid #c08a1c;outline-offset:-8px}
.slot{position:absolute;width:22%;perspective:1200px}
.slot:nth-child(1){left:6%;top:12%}.slot:nth-child(2){left:39%;top:3%}.slot:nth-child(3){left:72%;top:12%}
.slot:nth-child(4){left:22.5%;top:55%}.slot:nth-child(5){left:55.5%;top:55%}
.slot .etiquette{position:absolute;left:50%;top:-14px;transform:translateX(-50%);z-index:6;font-family:var(--display-carte);font-weight:900;font-size:.72rem;letter-spacing:.14em;color:#fff;
  text-shadow:0 0 8px var(--aura),0 0 16px var(--aura),0 2px 2px #000;opacity:0;transition:opacity .3s .5s;pointer-events:none;white-space:nowrap}
.slot .sous{position:absolute;left:50%;bottom:-26px;transform:translateX(-50%);z-index:6;font-family:var(--display-carte);font-weight:900;font-size:.8rem;color:#fff;text-shadow:0 2px 3px #000,0 0 10px var(--aura);
  opacity:0;transition:opacity .3s .5s;pointer-events:none;white-space:nowrap}
.slot.vue .etiquette,.slot.vue .sous{opacity:1}
.retournable{position:relative;width:100%;aspect-ratio:63/88;transform-style:preserve-3d;transition:transform .7s cubic-bezier(.2,.7,.2,1);cursor:pointer;border:0;background:transparent;padding:0;display:block}
.retournable .dos,.retournable .face{position:absolute;inset:0;backface-visibility:hidden;border-radius:18px}
.retournable .dos{filter:drop-shadow(0 10px 16px rgba(0,0,0,.6))}
.retournable .face{transform:rotateY(180deg)}
.retournable .face .hs{filter:none}
/* aura : anneau lumineux derrière la carte, couleur de la rareté */
.slot .aura{position:absolute;inset:0;border-radius:6.5% / 4.65%;pointer-events:none;opacity:0;transition:opacity .25s,transform .7s cubic-bezier(.2,.7,.2,1);z-index:-1;
  box-shadow:0 0 7px 2px var(--aura),0 0 20px 6px color-mix(in srgb,var(--aura) 55%,transparent),0 0 40px 12px color-mix(in srgb,var(--aura) 20%,transparent)}
.slot .aura::after{content:"";position:absolute;inset:-8%;border-radius:30px;background:radial-gradient(ellipse at 50% 50%,color-mix(in srgb,var(--aura) 22%,transparent),transparent 68%);filter:blur(14px)}
/* 1-2. face cachée : zoom + aura au survol seulement, suspense */
.slot:not(.vue):hover{z-index:20}
.slot:not(.vue):hover .retournable{transform:scale(1.18) translateY(-3%)}
.slot:nth-child(-n+3):not(.vue):hover .retournable{transform:scale(1.18) translateY(4%)}
.slot:not(.vue):hover .aura{opacity:1;animation:pulse-aura .9s ease-in-out infinite}
.slot:not(.vue):hover .dos{filter:drop-shadow(0 0 4px var(--aura)) drop-shadow(0 0 16px var(--aura)) drop-shadow(0 16px 24px rgba(0,0,0,.6))}
/* 3. retournée : aura permanente à taille normale */
.slot.vue .retournable{transform:rotateY(180deg)}
.slot.vue .aura{opacity:.6;animation:respire 2.6s ease-in-out infinite}
.slot.vue .face::after{content:"";position:absolute;inset:0;border-radius:18px;background:#fff;opacity:0;animation:eclat .9s ease-out .45s;pointer-events:none}
.slot.vue:hover{z-index:20}
.slot.vue:hover{z-index:30}
.slot.vue:hover .retournable{transform:rotateY(180deg) scale(1.4) translateY(-10%)}
.slot:nth-child(-n+3).vue:hover .retournable{transform:rotateY(180deg) scale(1.4) translateY(12%)}
.slot.vue:hover .aura{opacity:1;animation:none}
.slot.vue:hover .etiquette,.slot.vue:hover .sous{opacity:0;transition:opacity .15s}
.slot[data-rarete="commune"]{--aura:#d7dde8}.slot[data-rarete="inhabituel"]{--aura:#2fe08a}.slot[data-rarete="rare"]{--aura:#3d9bff}.slot[data-rarete="epique"]{--aura:#c454ff}.slot[data-rarete="legendaire"]{--aura:#ff9a1f}.slot[data-rarete="mythique"]{--aura:#ff2d3d}
.slot[data-rarete="mythique"] .aura{box-shadow:0 0 9px 3px var(--aura),0 0 28px 9px color-mix(in srgb,var(--aura) 60%,transparent),0 0 60px 20px color-mix(in srgb,var(--aura) 24%,transparent)}
.slot.crazy .aura{border-radius:7.5% / 5.37%;box-shadow:0 0 20px 8px #ffffff,0 0 90px 36px var(--aura),0 0 200px 80px color-mix(in srgb,var(--aura) 70%,transparent)}
/* Aura SUPER : l'aura de rareté reste la base ; des arcs NOIRS tournent autour de la carte, dans l'aura */
@property --ang{syntax:"<angle>";inherits:false;initial-value:0deg}
.slot.super .aura{box-shadow:0 0 7px 2px var(--aura),0 0 20px 6px color-mix(in srgb,var(--aura) 55%,transparent),0 0 40px 12px color-mix(in srgb,var(--aura) 20%,transparent)}
.slot.super .aura::before{content:"";position:absolute;inset:-15px;padding:15px;box-sizing:border-box;border-radius:calc(6.5% + 13.05px) / calc(4.653% + 13.6px);z-index:1;pointer-events:none;
  background:conic-gradient(from var(--ang),transparent 0deg,rgba(0,0,0,.9) 30deg,#000 60deg,#000 100deg,rgba(0,0,0,.9) 130deg,transparent 170deg,transparent 190deg,rgba(0,0,0,.9) 220deg,#000 250deg,#000 290deg,rgba(0,0,0,.9) 320deg,transparent 360deg);
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0);
  filter:blur(3px);animation:super-orbite 3.4s linear infinite}
.slot.super.crazy .aura::before{border-radius:calc(7.5% + 12.75px) / calc(5.369% + 13.39px)}
/* Super Crazy : la grosse aura des Crazy + l'anneau noir des Super */
.slot.super.crazy .aura{box-shadow:0 0 20px 8px #ffffff,0 0 90px 36px var(--aura),0 0 200px 80px color-mix(in srgb,var(--aura) 70%,transparent)}
@keyframes super-orbite{to{--ang:360deg}}
@keyframes respire{0%,100%{opacity:.7}50%{opacity:1}}
@keyframes pulse-aura{0%,100%{opacity:.8}50%{opacity:1}}
@keyframes pulse{0%,100%{opacity:.85;transform:scale(1)}50%{opacity:1;transform:scale(1.03)}}
@keyframes eclat{0%{opacity:.9}100%{opacity:0}}
.actions-booster{position:absolute;left:50%;top:63%;transform:translate(-50%,-50%);z-index:5;display:flex;flex-direction:column;align-items:center;gap:12px;opacity:0;pointer-events:none;transition:opacity .4s}
.table-booster.fini .actions-booster{opacity:1;pointer-events:auto}
.termine{font-family:var(--display-carte);font-weight:900;font-size:1.1rem;letter-spacing:.08em;color:#fff;background:linear-gradient(180deg,#2b6fd6,#143a80);
  border:2px solid #9cc4ff;border-radius:14px;padding:10px 16px;box-shadow:0 0 20px rgba(80,160,255,.6),0 6px 0 #0b2f7a;cursor:pointer;white-space:nowrap}
.termine:active{transform:translateY(3px)}
.termine.encore{font-size:1.3rem;padding:12px 22px;background:linear-gradient(180deg,#f4bc3f,#a85f08);border-color:#ffe49a;box-shadow:0 0 26px rgba(255,190,60,.7),0 6px 0 #6b3b00;animation:pulse 1.6s ease-in-out infinite}
.termine.encore .badge{margin-left:.4em;font-size:.8em;background:rgba(0,0,0,.35);padding:.15em .55em;border-radius:999px}
.termine.encore:disabled{animation:none;cursor:default;font-size:1rem;background:linear-gradient(180deg,#6b6b7a,#3a3a48);border-color:#9a9aa8;box-shadow:0 6px 0 #22222c;opacity:.9}
.aide-booster{text-align:center;color:var(--muted);margin:12px 0 0;font-size:.9rem}
.nav-cartes{display:none}
@media (max-width:720px) and (orientation:portrait){
  /* ---- Téléphone en PORTRAIT, « les 5 cartes ensemble » (défaut, et vue d'ensemble en fin d'ouverture « une carte ») :
     disposition « face de dé » sans chevauchement : 2 cartes en ligne, 1 carte au centre, 2 cartes en ligne ---- */
  .voile.voile-booster:has(.table-booster){overflow-x:hidden}
  .voile.voile-booster:has(.table-booster:not(.une)){padding:max(6px,env(safe-area-inset-top)) 12px calc(8px + env(safe-area-inset-bottom));scrollbar-width:none;align-items:flex-start}
  .voile.voile-booster:has(.table-booster:not(.une))::-webkit-scrollbar{display:none}
  /* case réservée au résumé de fin d'ouverture (hauteur fixe : rien ne saute quand il apparaît) */
  .voile-booster .ouverture:has(.table-booster:not(.une)){display:grid;grid-template-rows:44px auto auto;justify-items:center;gap:6px;padding-block:0}
  .voile-booster .ouverture:has(.table-booster:not(.une)) .resume-booster{grid-area:1/1;align-self:center;width:100%;padding:6px 10px;gap:2px 12px;font-size:.82rem;border-radius:12px}
  .table-booster:not(.une){--sw:min(calc((100vw - 24px) * .44),calc((100dvh - 180px) / 4.19));--rang:calc(var(--sw) * 1.397 + 16px);
    position:relative;display:block;aspect-ratio:auto;width:100%;height:calc(var(--sw) * 4.19 + 54px);margin:0 auto;padding:0;background:none;box-shadow:none;border:0;outline:0;border-radius:0}
  .table-booster:not(.une) .slot,.table-booster:not(.une) .slot:nth-child(n){position:absolute;width:var(--sw);margin:0}
  .table-booster:not(.une) .slot:nth-child(1){left:0;top:16px}
  .table-booster:not(.une) .slot:nth-child(2){left:auto;right:0;top:16px}
  .table-booster:not(.une) .slot:nth-child(3){left:calc(50% - var(--sw) / 2);top:calc(16px + var(--rang))}
  .table-booster:not(.une) .slot:nth-child(4){left:0;top:calc(16px + 2 * var(--rang))}
  .table-booster:not(.une) .slot:nth-child(5){left:auto;right:0;top:calc(16px + 2 * var(--rang))}
  .table-booster:not(.une) .slot .etiquette{font-size:.58rem;letter-spacing:.06em;top:-14px}
  .table-booster:not(.une) .slot .sous,.table-booster:not(.une) .slot .decouvreur{display:none}
  .table-booster:not(.une) .slot:not(.vue):hover .retournable{transform:scale(1.04)}
  .table-booster:not(.une) .slot.vue:hover .retournable,.table-booster:not(.une) .slot:nth-child(-n+3).vue:hover .retournable{transform:rotateY(180deg) scale(1.04)}
  /* boutons : juste sous le pentagone (la place est réservée), à l'endroit où se trouvait « Tout retourner » */
  .table-booster:not(.une) .actions-booster{position:absolute;left:0;right:0;top:calc(100% + 8px);bottom:auto;transform:none;flex-direction:row;flex-wrap:nowrap;justify-content:center;align-items:stretch;gap:8px;margin:0}
  .table-booster:not(.une) .termine{flex:0 0 auto;font-size:.95rem;padding:9px 14px;display:flex;align-items:center}
  .table-booster:not(.une) .termine.encore{flex:1 1 0;min-width:0;font-size:.92rem;letter-spacing:.02em;padding:8px 10px;white-space:normal;line-height:1.15;justify-content:center;text-align:center}
  .ouverture:has(.table-booster:not(.une)) .sous-table{margin-top:2px}
  .voile-booster .ouverture:has(.table-booster:not(.une)) .table-booster{grid-row:2}
  .voile-booster .ouverture:has(.table-booster:not(.une)) .sous-table{grid-row:3}
  /* cartes plus petites : halos des Crazy / Super Crazy réduits en proportion */
  .table-booster:not(.une) .slot.crazy .aura,.table-booster:not(.une) .slot.super.crazy .aura{box-shadow:0 0 9px 3px #fff,0 0 30px 11px var(--aura),0 0 56px 20px color-mix(in srgb,var(--aura) 60%,transparent)}

  /* ---- Téléphone, mode « une carte à la fois » (défaut) : classe .une posée par app.js ---- */
  .voile.voile-booster:has(.table-booster.une){padding:max(6px,env(safe-area-inset-top)) 12px calc(10px + env(safe-area-inset-bottom))}
  /* Les halos et les battements dépassent de la carte : on les empêche de créer des barres de défilement (la page ne « saute » plus) */
  .voile.voile-booster:has(.table-booster.une){overflow-x:hidden;scrollbar-width:none}
  .voile.voile-booster:has(.table-booster.une)::-webkit-scrollbar{display:none}
  .table-booster.une{overflow:clip;overflow-clip-margin:240px}
  .voile-booster .ouverture:has(.table-booster.une){display:grid;grid-template-rows:0 auto auto;justify-items:center;gap:0;padding-block:2px}
  .voile-booster .ouverture:has(.table-booster.une) .resume-booster{grid-area:1/1;align-self:center;width:100%;padding:8px 10px;gap:4px 12px;font-size:.82rem;border-radius:12px}
  .voile-booster .ouverture:has(.table-booster.une) .table-booster{grid-row:2}
  .voile-booster .ouverture:has(.table-booster.une) .sous-table{grid-row:3}
  .table-booster.une{--cw:min(72vw,max(190px,calc((100dvh - 262px) * .716)));aspect-ratio:auto;width:100%;background:none;box-shadow:none;border:0;outline:0;border-radius:0;
    display:flex;flex-direction:column;align-items:center;gap:8px;padding:24px 0 0}
  /* Cartes non affichées : hors du flux mais PAS en display:none — les dégradés SVG des dos sont partagés par identifiant (le premier dos les définit) et disparaîtraient sur les autres cartes */
  .table-booster.une .slot,.table-booster.une .slot:nth-child(n){position:absolute;left:0;top:0;visibility:hidden;pointer-events:none;width:var(--cw);margin:0;grid-column:auto;justify-self:auto}
  .table-booster.une .slot.actif,.table-booster.une .slot.actif:nth-child(n){position:relative;visibility:visible;pointer-events:auto;margin-bottom:30px}
  /* Crazy cartes : halo plus généreux qu'en mode 5 cartes (une seule carte à l'écran) */
  .table-booster.une .slot.crazy .aura,.table-booster.une .slot.super.crazy .aura{box-shadow:0 0 calc(18px * var(--k)) calc(7px * var(--k)) rgba(255,255,255,calc(.35 + .65 * min(var(--k),1))),0 0 calc(64px * var(--k)) calc(28px * var(--k)) color-mix(in srgb,var(--aura) calc(min(var(--k),1) * 100%),transparent),0 0 calc(120px * var(--k)) calc(44px * var(--k)) color-mix(in srgb,var(--aura) calc(min(var(--k),1) * 55%),transparent)}
  .table-booster.une .nav-cartes{display:flex;align-items:center;justify-content:space-between;gap:8px;width:min(100%,calc(var(--cw) + 60px),340px)}
  .table-booster.une .nav-carte{min-height:46px;min-width:46px;border:2px solid #9cc4ff;background:rgba(255,255,255,.1);color:#fff;border-radius:14px;font-family:var(--display-carte);font-weight:900;font-size:1.05rem;padding:8px 14px;cursor:pointer}
  .table-booster.une .nav-carte.suiv:not(:disabled){background:linear-gradient(180deg,#f4bc3f,#a85f08);border-color:#ffe49a;box-shadow:0 0 18px rgba(255,190,60,.6),0 4px 0 #6b3b00;animation:pulse 1.6s ease-in-out infinite}
  .table-booster.une .nav-carte:disabled{opacity:.3;cursor:default}
  .table-booster.une .nav-carte.suiv{white-space:nowrap;padding-inline:8px;font-size:.88rem}
  .table-booster.une .compteur-cartes{font-size:.9rem;white-space:nowrap}
  .table-booster.une .compteur-cartes{color:#fff;font-weight:800;font-variant-numeric:tabular-nums;white-space:nowrap}
  .table-booster.une .actions-booster{display:none;margin-top:2px;gap:8px}
  .table-booster.une.fini .actions-booster{display:flex}
  .table-booster.une .termine{font-size:.95rem;padding:8px 18px;letter-spacing:.05em;box-shadow:0 0 14px rgba(80,160,255,.5),0 4px 0 #0b2f7a}
  .table-booster.une .termine.encore{font-size:1rem;padding:10px 16px;letter-spacing:.03em;white-space:normal;line-height:1.2;box-shadow:0 0 18px rgba(255,190,60,.6),0 4px 0 #6b3b00}
  .table-booster.une .termine.encore:disabled{font-size:.9rem}
  /* l'aura (et la lueur du dos) s'allume seule 1 s après l'apparition de la carte : classe .aura-on posée par app.js */
  .table-booster.une .slot.aura-on:not(.vue) .aura{opacity:1;animation:pulse-aura .9s ease-in-out infinite}
  .table-booster.une .slot.aura-on:not(.vue) .dos{filter:drop-shadow(0 0 4px var(--aura)) drop-shadow(0 0 16px var(--aura)) drop-shadow(0 16px 24px rgba(0,0,0,.6))}
  /* Super : le halo ne pulse JAMAIS (seul l'anneau noir tourne) */
  .table-booster.une .slot.super:not(.crazy).aura-on:not(.vue) .aura,.slot.super:not(.crazy):not(.vue):hover .aura{animation:none;opacity:1}
  /* Crazy : la lueur baisse puis remonte en douceur, en boucle (« wouou… wouou… »), avant ET après le retournement ; plus forte une fois retournée.
     Seule la lueur varie (variable --k) : l'anneau noir d'une Super Crazy reste stable. */
  .table-booster.une .slot.crazy.aura-on:not(.vue) .aura{--lo:.5;--hi:1;opacity:1;animation:crazy-souffle 2.6s ease-in-out infinite}
  .table-booster.une .slot.crazy.vue .aura{--lo:.65;--hi:1.2;animation:crazy-souffle 2.6s ease-in-out infinite}
  .table-booster.une .slot:not(.vue):hover .retournable{transform:scale(1.03)}
  .table-booster.une .slot.vue:hover .retournable{transform:rotateY(180deg) scale(1.03)}
}
@media (prefers-reduced-motion:reduce){.retournable,.slot .aura,.slot .face::after{transition:none;animation:none}}


/* ---------- Crazy : effet holographique + inclinaison 3D ---------- */
.hs.crazy{--mx:50%;--my:40%;--rx:0deg;--ry:0deg;transform:perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));transition:transform .18s ease-out;will-change:transform}
.hs.crazy.inerte{transition:transform .6s ease}
.hs.crazy .portrait img{animation:respiration 7s ease-in-out infinite alternate;transform-origin:50% 55%}
.hs.crazy .portrait .holo{position:absolute;inset:0;z-index:1;pointer-events:none;mix-blend-mode:overlay;opacity:.85;
  background:
    radial-gradient(circle at var(--mx) var(--my),rgba(255,255,255,.9) 0,rgba(255,255,255,.25) 16%,transparent 42%),
    linear-gradient(115deg,transparent 14%,rgba(255,0,170,.85) 28%,rgba(0,210,255,.85) 41%,rgba(255,235,0,.8) 53%,rgba(0,255,150,.75) 64%,rgba(170,0,255,.7) 74%,transparent 86%);
  background-size:100% 100%,260% 260%;background-position:0 0,calc(var(--mx) * 1.6) calc(var(--my) * 1.6);
  filter:saturate(1.6) contrast(1.1)}
.hs.crazy .portrait .holo::after{content:"";position:absolute;inset:0;mix-blend-mode:overlay;opacity:.5;
  background:repeating-linear-gradient(135deg,rgba(255,255,255,.18) 0 2px,transparent 2px 6px)}
.hs.crazy:not(.pointe) .portrait .holo{animation:derive 6s ease-in-out infinite alternate}
@keyframes respiration{0%{transform:scale(1)}100%{transform:scale(1.09)}}
@keyframes derive{0%{background-position:0 0,0% 0%}100%{background-position:0 0,100% 100%}}
@media (prefers-reduced-motion:reduce){.hs.crazy .portrait img,.hs.crazy .portrait .holo{animation:none}.hs.crazy{transform:none}}


/* L'aura suit la carte : mêmes transformations que .retournable (la boîte de l'aura = la boîte de la carte) */
.slot:not(.vue):hover .aura{transform:scale(1.18) translateY(-3%)}
.slot:nth-child(-n+3):not(.vue):hover .aura{transform:scale(1.18) translateY(4%)}
.slot.vue:hover .aura{transform:scale(1.4) translateY(-10%)}
.slot:nth-child(-n+3).vue:hover .aura{transform:scale(1.4) translateY(12%)}

/* Téléphone : l'aura suit la carte (même échelle au survol/toucher) — en fin de fichier pour passer après les règles d'aura générales */
@media (max-width:720px),(orientation:landscape) and (max-height:520px){
  .slot:not(.vue):hover .aura,.slot:nth-child(-n+3):not(.vue):hover .aura{transform:scale(1.04)}
  .slot.vue:hover .aura,.slot:nth-child(-n+3).vue:hover .aura{transform:scale(1.04)}
  .table-booster.une .slot:not(.vue):hover .aura,.table-booster.une .slot:nth-child(-n+3):not(.vue):hover .aura,
  .table-booster.une .slot.vue:hover .aura,.table-booster.une .slot:nth-child(-n+3).vue:hover .aura{transform:scale(1.03)}
}

/* Crazy carte (téléphone, mode une carte) : souffle lent de la lueur, ~2,6 s par aller-retour, sans à-coup */
@property --k{syntax:"<number>";inherits:false;initial-value:1}
@keyframes crazy-souffle{
  0%,100%{--k:var(--lo,.55)}
  50%{--k:var(--hi,1)}
}
@media (prefers-reduced-motion:reduce){
  .table-booster.une .slot.crazy .aura{animation:none!important}
}

/* 1re découverte mondiale : bandeau doré sous la carte, avec le pseudo du joueur (apparaît une fois la carte retournée) */
.slot .decouvreur{position:absolute;left:50%;bottom:-62px;transform:translateX(-50%);z-index:6;display:flex;flex-direction:column;align-items:center;gap:1px;white-space:nowrap;text-align:center;
  padding:3px 12px 4px;border-radius:12px;border:1px solid #fff3b0;background:linear-gradient(180deg,#ffe27a,#e0a526);color:#3b2600;font-size:.62rem;font-weight:800;letter-spacing:.02em;line-height:1.2;
  box-shadow:0 2px 8px rgba(0,0,0,.55),0 0 14px rgba(255,214,90,.65);opacity:0;transition:opacity .25s;pointer-events:none}
.slot .decouvreur .qui{display:inline-flex;align-items:center;gap:.35em}
.slot .decouvreur b{font-family:var(--display-carte);font-size:.82rem;font-weight:900;letter-spacing:0}
.slot .decouvreur .av-fond{width:1.35em;height:1.35em}
.slot.vue .decouvreur{opacity:1}
.slot.vue:hover .decouvreur{opacity:0;transition:opacity .15s}
@media (max-width:720px){
  .table-booster.une .slot.actif.premiere,.table-booster.une .slot.actif.premiere:nth-child(n){margin-bottom:64px}
  .table-booster.une:has(.slot.actif.premiere){--cw:min(72vw,max(190px,calc((100dvh - 346px) * .716)))}
  .table-booster.une .slot.vue:hover .decouvreur{opacity:1}
  .table-booster:not(.une) .slot .decouvreur{font-size:.56rem;padding:2px 8px 3px}
}

/* Super (sans Crazy) : pas de pulsation de l'aura au survol non plus (PC). Une Super Crazy garde la pulsation des Crazy. */
.slot.super:not(.crazy):not(.vue):hover .aura{animation:none;opacity:1}

/* ---- Téléphone en PAYSAGE : les 5 cartes en pentagone LARGE (1 en haut au centre, 2 aux extrémités un peu plus bas, 2 en bas au milieu),
   comme l'ouverture de Hearthstone en paysage. Les « Encore un booster » / « Terminé » prennent la place libre entre les 2 cartes du bas. ---- */
@media (orientation:landscape) and (max-height:520px){
  .voile.voile-booster{padding:max(4px,env(safe-area-inset-top)) max(10px,env(safe-area-inset-right)) calc(4px + env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left));overflow:hidden;align-items:flex-start}
  .voile-booster .ouverture{gap:0;padding-block:0;max-width:none;position:relative}
  /* le résumé de fin d'ouverture se pose dans le coin haut-gauche, libre : plus de bandeau en haut, les cartes gagnent la hauteur */
  .voile-booster .resume-booster{position:absolute;top:2px;left:0;z-index:25;width:min(325px,40%);justify-content:flex-start;text-align:left;font-size:.68rem;line-height:1.25;padding:3px 9px;gap:0 9px;border-radius:10px;pointer-events:none}
  .table-booster,.table-booster.une,.table-booster.apres-une{--Ht:calc(100dvh - 12px);container-type:inline-size;position:relative;display:block;aspect-ratio:auto;width:100%;max-width:1000px;height:var(--Ht);margin:0 auto;padding:0;
    background:none;box-shadow:none;border:0;outline:0;border-radius:0}
  .table-booster .slot,.table-booster .slot:nth-child(n){--sw:min(calc(var(--Ht) * .43),17cqw);position:absolute;width:var(--sw);margin:0;visibility:visible;pointer-events:auto;grid-column:auto;justify-self:auto}
  .table-booster .slot:nth-child(1){left:calc(11% - var(--sw) / 2);top:calc(16px + var(--Ht) * .17)}
  .table-booster .slot:nth-child(2){left:calc(50% - var(--sw) / 2);top:16px}
  .table-booster .slot:nth-child(3){left:calc(89% - var(--sw) / 2);top:calc(16px + var(--Ht) * .17)}
  .table-booster .slot:nth-child(4){left:calc(31% - var(--sw) / 2);top:auto;bottom:0}
  .table-booster .slot:nth-child(5){left:calc(69% - var(--sw) / 2);top:auto;bottom:0}
  .table-booster .slot .etiquette{font-size:.58rem;letter-spacing:.06em;top:-14px}
  .table-booster .slot .sous,.table-booster .slot .decouvreur{display:none}
  .table-booster .slot:not(.vue):hover .retournable{transform:scale(1.04)}
  .table-booster .slot.vue:hover .retournable,.table-booster .slot:nth-child(-n+3).vue:hover .retournable{transform:rotateY(180deg) scale(1.04)}
  .table-booster .slot:not(.vue):hover,.table-booster .slot.vue:hover{z-index:20}
  .table-booster .nav-cartes{display:none}
  /* boutons : dans le vide entre les 2 cartes du bas, empilés */
  .table-booster .actions-booster{position:absolute;left:50%;top:auto;bottom:0;transform:translateX(-50%);width:calc(38cqw - var(--sw) - 12px);max-width:230px;flex-direction:column;gap:6px;margin:0;display:flex}
  .table-booster .termine,.table-booster .termine.encore{font-size:.8rem;padding:6px 8px;letter-spacing:.03em;white-space:normal;line-height:1.15;width:100%;text-align:center;box-shadow:0 0 12px rgba(80,160,255,.5),0 3px 0 #0b2f7a}
  .table-booster .termine.encore{box-shadow:0 0 14px rgba(255,190,60,.6),0 3px 0 #6b3b00}
  /* « Tout retourner » : exactement à la place de « Encore un booster ! » / « Terminé » (entre les 2 cartes du bas) */
  .sous-table{--tw:min(1000px,calc(100vw - 20px));--swl:min(calc((100dvh - 12px) * .43),calc(var(--tw) * .17));position:absolute;left:50%;transform:translateX(-50%);bottom:24px;margin:0;z-index:3;width:calc(var(--tw) * .38 - var(--swl) - 12px);max-width:230px;align-items:stretch}
  .sous-table .btn{width:100%;padding:6px 8px;font-size:.8rem;text-align:center;white-space:normal;line-height:1.15}
  .table-booster .slot.crazy .aura,.table-booster .slot.super.crazy .aura{box-shadow:0 0 9px 3px #fff,0 0 30px 11px var(--aura),0 0 56px 20px color-mix(in srgb,var(--aura) 60%,transparent)}
}

/* Petit globe 🌍 sur les mini-cartes d'une 1re découverte mondiale (téléphone : le bandeau avec le pseudo est dans la fiche de la carte) */
@media (max-width:720px) and (orientation:portrait),(orientation:landscape) and (max-height:520px){
  .table-booster:not(.une) .slot.premiere.vue::after{content:"🌍";position:absolute;right:-5px;top:-9px;z-index:7;font-size:.95rem;line-height:1;filter:drop-shadow(0 1px 2px #000);pointer-events:none}
}

/* ---- Téléphone, 5 cartes ensemble (portrait ET paysage) : la lueur des Crazy / Super Crazy retournées « respire » comme sur PC
   (baisse puis remonte en douceur, 2,6 s), à l'échelle des petites cartes. Seule la lueur varie (--k) : l'anneau noir d'une Super Crazy reste stable. ---- */
@media (max-width:720px) and (orientation:portrait),(orientation:landscape) and (max-height:520px){
  .table-booster:not(.une) .slot.crazy.vue .aura,.table-booster:not(.une) .slot.crazy:not(.vue):hover .aura{opacity:1;--lo:.55;--hi:1.2;animation:crazy-souffle 2.6s ease-in-out infinite;
    box-shadow:0 0 calc(var(--sw) * .074 * var(--k)) calc(var(--sw) * .03 * var(--k)) rgba(255,255,255,calc(.35 + .65 * min(var(--k),1))),0 0 calc(var(--sw) * .28 * var(--k)) calc(var(--sw) * .11 * var(--k)) color-mix(in srgb,var(--aura) calc(min(var(--k),1) * 100%),transparent),0 0 calc(var(--sw) * .53 * var(--k)) calc(var(--sw) * .19 * var(--k)) color-mix(in srgb,var(--aura) calc(min(var(--k),1) * 55%),transparent)}
}
@media (prefers-reduced-motion:reduce){
  .table-booster:not(.une) .slot.crazy.vue .aura,.table-booster:not(.une) .slot.crazy:not(.vue):hover .aura{animation:none!important}
}

/* ---- 5 cartes ensemble sur téléphone (portrait ET paysage) : tous les effets (aura de rareté, Crazy, anneau noir des Super) sont
   proportionnels à la largeur de la carte (--sw), pour que sur de petites cartes ils gardent la finesse validée en vue une carte ---- */
@media (max-width:720px) and (orientation:portrait),(orientation:landscape) and (max-height:520px){
  .table-booster:not(.une) .slot{--r:calc(var(--sw) * .0577)}
  /* aura de rareté (et Super sans Crazy) */
  .table-booster:not(.une) .slot:not(.crazy) .aura{box-shadow:0 0 calc(var(--sw) * .027) calc(var(--sw) * .0077) var(--aura),0 0 calc(var(--sw) * .077) calc(var(--sw) * .023) color-mix(in srgb,var(--aura) 55%,transparent),0 0 calc(var(--sw) * .154) calc(var(--sw) * .046) color-mix(in srgb,var(--aura) 20%,transparent)}
  /* Crazy / Super Crazy au repos (le souffle est défini plus haut, en fonction de --sw lui aussi) */
  .table-booster:not(.une) .slot.crazy .aura,.table-booster:not(.une) .slot.super.crazy .aura{box-shadow:0 0 calc(var(--sw) * .067) calc(var(--sw) * .022) #fff,0 0 calc(var(--sw) * .22) calc(var(--sw) * .08) var(--aura),0 0 calc(var(--sw) * .41) calc(var(--sw) * .15) color-mix(in srgb,var(--aura) 60%,transparent)}
  /* lueur diffuse derrière la carte */
  .table-booster:not(.une) .slot .aura::after{filter:blur(calc(var(--sw) * .054))}
  /* anneau noir des Super : épaisseur proportionnelle (15 px pour une carte de 260 px) */
  .table-booster:not(.une) .slot.super .aura::before{inset:calc(var(--r) * -1);padding:var(--r);border-radius:calc(6.5% + var(--r) * .87) / calc(4.653% + var(--r) * .9);filter:blur(calc(var(--r) * .2))}
  .table-booster:not(.une) .slot.super.crazy .aura::before{border-radius:calc(7.5% + var(--r) * .85) / calc(5.369% + var(--r) * .9)}
}

/* ============================================================
   Look ALPHA : les cartes de la saison Alpha gardent l'habillage d'origine (souvenir de la toute première version du jeu).
   Tout est limité à .alpha-look : rien ne change pour les autres cartes.
   ============================================================ */
/* Légendaire d'origine : or (et non orange) */
.hs.alpha-look.legendaire{--f1:#fff1b0; --f2:#b8821a; --f3:#fff7d6; --gem1:#ffd96a; --gem2:#7a4a00; --lueur:rgba(255,190,60,.45)}
/* cadre : marges d'origine */
.hs.alpha-look .cadre{padding:4.5cqw 4cqw 3.5cqw}
.hs.alpha-look.crazy .cadre{padding:7cqw 6cqw 6cqw}
.hs.alpha-look.crazy .cadre::before{inset:4.6cqw}
.hs.alpha-look.crazy .cadre::after{inset:4cqw}
.hs.alpha-look.crazy .portrait{margin-top:4cqw}
/* rubis rouges dans les coins (à la place des diamants) */
.hs.alpha-look .rubis{position:absolute;width:5.2cqw;height:5.2cqw;border-radius:50%;background:radial-gradient(circle at 35% 30%,#ffb3b3 0,#d61f2c 35%,#5a0710 100%);box-shadow:0 0 0 .7cqw var(--f3),0 0 0 1.2cqw var(--gem2),0 0 4cqw #ff6b6b;z-index:3}
.hs.alpha-look .rubis.tl{top:1.6cqw;left:1.6cqw}.hs.alpha-look .rubis.tr{top:1.6cqw;right:1.6cqw}
.hs.alpha-look .rubis.bl{bottom:1.6cqw;left:1.6cqw}.hs.alpha-look .rubis.br{bottom:1.6cqw;right:1.6cqw}
/* crête dorée en haut au centre */
.hs.alpha-look .crete{z-index:5}
/* gemme ronde sous le portrait (à la place du diamant des Crazy) */
.hs.alpha-look.crazy .gemme{width:10.5cqw;height:10.5cqw;margin:-2cqw auto -5cqw;border-radius:50%;background:#ffffff;
  box-shadow:0 0 0 .7cqw var(--gem2),0 0 0 1.3cqw var(--f1),0 0 4cqw var(--gem1);filter:none;animation:none}
/* pied d'origine : nom de la rareté au centre (pas de points de duel : les Collector ne jouent pas en duel) */
.hs.alpha-look .rar{flex:1}

/* L'aura tourne AVEC la carte : au retournement, elle fait le même demi-tour (même perspective que le .slot) au lieu de rester à plat derrière */
.slot.vue .aura{transform:rotateY(180deg)}
.slot.vue:hover .aura{transform:rotateY(180deg) scale(1.4) translateY(-10%)}
.slot:nth-child(-n+3).vue:hover .aura{transform:rotateY(180deg) scale(1.4) translateY(12%)}
@media (max-width:720px),(orientation:landscape) and (max-height:520px){
  .slot.vue:hover .aura,.slot:nth-child(-n+3).vue:hover .aura{transform:rotateY(180deg) scale(1.04)}
  .table-booster.une .slot.vue:hover .aura,.table-booster.une .slot:nth-child(-n+3).vue:hover .aura{transform:rotateY(180deg) scale(1.03)}
}
