/* Inventaire (cartes à collectionner avec reflet selon la rareté) et Classements (scène avec projecteurs + tableau des scores).
   Prévu pour le clair et le sombre : la scène reste sombre (c'est une scène), le reste suit le thème. */

/* ================= en-tête commun ================= */
.pv-top{margin:0 0 1.2rem}
.pv-top h1{margin:.55rem 0 0;font-family:var(--disp,Impact,sans-serif);font-weight:400;font-size:clamp(3rem,15vw,6rem);line-height:.86;text-transform:uppercase}
.pv-top h1 span{color:transparent;-webkit-text-stroke:2px var(--acc)}

/* ================= INVENTAIRE ================= */
/* vitrine : ta carte de membre posée sur un présentoir */
html[data-theme] .ivt .inv-hero{position:relative;overflow:hidden;display:grid;gap:1rem;padding:1.3rem;border-radius:26px;border:1px solid var(--bd2);background:radial-gradient(90% 70% at 50% 0%,rgba(var(--acc-rgb),.25),transparent 70%),var(--card)!important;box-shadow:none}
html[data-theme] .ivt .inv-preview{position:relative;display:flex;flex-direction:column;align-items:center;gap:.5rem;padding:2.6rem 1rem 1.2rem;border-radius:20px;background:linear-gradient(160deg,rgba(var(--acc-rgb),.18),transparent 55%),var(--bg2)!important;border:1px solid var(--bd2);box-shadow:0 18px 40px rgba(0,0,0,.25)}
html[data-theme] .ivt .inv-preview::before{content:"Carte de membre";position:absolute;left:0;right:0;top:.9rem;text-align:center;font-size:.58rem;font-weight:900;letter-spacing:.16em;text-transform:uppercase;color:var(--acc)}
html[data-theme] .ivt .inv-preview>strong{font-family:var(--disp,Impact,sans-serif);font-weight:400;font-size:1.8rem;line-height:1;text-transform:uppercase;color:var(--text)}
html[data-theme] .ivt .inv-slots{display:grid;gap:.5rem}
html[data-theme] .ivt .inv-slot{display:flex;align-items:center;gap:.6rem;padding:.75rem .9rem;border-radius:14px;border:1px dashed var(--bd2);background:none!important}
html[data-theme] .ivt .inv-slot .muted{font-size:.62rem;font-weight:900;letter-spacing:.14em;text-transform:uppercase;color:var(--acc)!important}
html[data-theme] .ivt .inv-slot strong{flex:1;min-width:0;color:var(--text)}
/* boîtes à ouvrir */
html[data-theme] .ivt .inv-boxes{border-radius:22px;border:0;background:var(--acc)!important;color:#fff}
html[data-theme] .ivt .inv-boxes h2,html[data-theme] .ivt .inv-boxes strong,html[data-theme] .ivt .inv-boxes small{color:#fff!important}
html[data-theme] .ivt .inv-boxes .btn{background:#fff!important;color:var(--acc)!important;border-color:#fff!important}
/* badges du profil */
html[data-theme] .ivt .inv-vit-h h2{font-family:var(--disp,Impact,sans-serif);font-weight:400;font-size:1.6rem;text-transform:uppercase}
html[data-theme] .ivt .inv-vit-row{gap:.5rem}
html[data-theme] .ivt .vit-i,html[data-theme] .ivt .vit-empty{border-radius:16px!important}
/* onglets */
html[data-theme] .ivt .inv-tabs{display:flex;gap:.3rem;padding:.3rem;border-radius:16px;border:1px solid var(--bd2);background:var(--card)}
html[data-theme] .ivt .inv-tabs a{flex:1;display:flex;align-items:center;justify-content:center;gap:.3rem;min-height:40px;border-radius:12px;border:0;background:none!important;font-weight:800;font-size:.84rem;color:var(--muted)!important;text-decoration:none!important}
html[data-theme] .ivt .inv-tabs a.on{background:var(--acc)!important;color:#fff!important}
html[data-theme] .ivt .inv-tabs a.on *{color:#fff!important;border-color:rgba(255,255,255,.5)!important}
/* les cartes : reflet selon la rareté */
html[data-theme] .ivt .inv-grid{gap:.7rem}
html[data-theme] .ivt .inv-card{--rc:#9aa0a6;position:relative;overflow:hidden;border-radius:18px!important;border:2px solid transparent!important;padding:0!important;background:linear-gradient(var(--card),var(--card)) padding-box,linear-gradient(160deg,var(--rc),rgba(128,128,128,.15) 45%,var(--rc)) border-box!important;box-shadow:0 10px 24px rgba(0,0,0,.18)!important}
html[data-theme] .ivt .inv-card>*{position:relative;z-index:1}
html[data-theme] .ivt .inv-card.r-common{--rc:#8c939b}
html[data-theme] .ivt .inv-card.r-uncommon{--rc:#3ecf8e}
html[data-theme] .ivt .inv-card.r-rare{--rc:#4f9fe0}
html[data-theme] .ivt .inv-card.r-epic{--rc:#a48be8}
html[data-theme] .ivt .inv-card.r-legendary{--rc:#f2c14e}
html[data-theme] .ivt .inv-card.r-mythic{--rc:#ef5350}
/* reflet holographique sur les cartes épiques et plus */
html[data-theme] .ivt .inv-card.r-epic::after,html[data-theme] .ivt .inv-card.r-legendary::after,html[data-theme] .ivt .inv-card.r-mythic::after{content:"";position:absolute;inset:0;z-index:2;pointer-events:none;border-radius:18px;
  background:linear-gradient(115deg,transparent 30%,rgba(255,255,255,.22) 45%,transparent 60%) 0 0/250% 100%;animation:ivHolo 4.5s ease-in-out infinite}
@keyframes ivHolo{0%{background-position:120% 0}60%,100%{background-position:-120% 0}}
html[data-theme] .ivt .inv-card>.inv-kind{position:absolute;z-index:3;top:.55rem;left:.55rem;margin:0;padding:.2rem .5rem;border-radius:6px;background:var(--rc)!important;color:#0b0b0c!important;font-size:.58rem;font-weight:900;letter-spacing:.12em;text-transform:uppercase}
html[data-theme] .ivt .inv-card .inv-art{margin:2rem .7rem .4rem;padding:.8rem;border-radius:14px;background:radial-gradient(circle at 50% 40%,rgba(255,255,255,.08),transparent 70%),var(--bg2)!important;display:grid;place-items:center;min-height:96px}
html[data-theme] .ivt .inv-card .inv-name{display:block;padding:0 .8rem;font-weight:800;font-size:.9rem;color:var(--text)}
html[data-theme] .ivt .inv-card .inv-meta{padding:.3rem .8rem}
html[data-theme] .ivt .inv-card .inv-act{padding:0 .7rem .4rem}
html[data-theme] .ivt .inv-card .inv-act .btn{border-radius:99px;min-height:40px}
html[data-theme] .ivt .inv-card .inv-act .btn-primary{background:var(--text)!important;border-color:var(--text)!important;color:var(--bg)!important}
html[data-theme] .ivt .inv-card .inv-more{padding:0 .8rem .7rem}
html[data-theme] .ivt .inv-card .inv-more summary{color:var(--muted)}
html[data-theme] .ivt .inv-card.is-eq{box-shadow:0 0 0 2px var(--acc),0 14px 30px rgba(var(--acc-rgb),.25)!important}
html[data-theme] .ivt .inv-card.is-eq>.inv-kind::after{content:" · équipé"}
/* à débloquer : silhouettes */
html[data-theme] .ivt .inv-lock-h{margin:2rem 0 .8rem;font-family:var(--disp,Impact,sans-serif);font-weight:400;font-size:1.7rem;text-transform:uppercase}
html[data-theme] .ivt .inv-card.is-locked{border:2px dashed var(--bd2)!important;background:var(--card)!important;box-shadow:none!important}
html[data-theme] .ivt .inv-card.is-locked .inv-art{filter:grayscale(1) brightness(.6);opacity:.6}
html[data-theme] .ivt .inv-card.is-locked .inv-name{color:var(--soft)}

/* ================= CLASSEMENTS ================= */
.tpx .tpv-head h1{font-size:clamp(3rem,15vw,6rem)!important;line-height:.86!important}
html[data-theme] .tpx .tp-tabs a{border-radius:99px!important;border:1px solid var(--bd2)!important;background:none!important;color:var(--soft)!important}
html[data-theme] .tpx .tp-tabs a.on{background:var(--acc)!important;border-color:var(--acc)!important;color:#fff!important}
html[data-theme] .tpx .tp-sub a{border-radius:99px!important}
html[data-theme] .tpx .tp-sub a.on{background:var(--text)!important;border-color:var(--text)!important;color:var(--bg)!important}
/* la scène : toujours sombre, deux projecteurs qui balaient */
.tp-stage{--text:#f4f4f3;position:relative;isolation:isolate;overflow:hidden;margin:1rem -1rem 0;padding:2.6rem 1rem 0;background:radial-gradient(70% 60% at 50% 100%,rgba(var(--acc-rgb),.35),transparent 70%),linear-gradient(#0b0b0c,#141416)}
.tp-spot{position:absolute;z-index:-1;top:-20%;width:46%;height:140%;background:linear-gradient(180deg,rgba(255,255,255,.22),transparent 75%);clip-path:polygon(45% 0,55% 0,100% 100%,0 100%);filter:blur(6px);transform-origin:50% 0;animation:tpSweep 7s ease-in-out infinite alternate}
.tp-spot.s1{left:2%;transform:rotate(-18deg)}
.tp-spot.s2{right:2%;transform:rotate(18deg);animation-delay:-3.5s}
@keyframes tpSweep{from{transform:rotate(-22deg)}to{transform:rotate(14deg)}}
.tp-spot.s2{animation-name:tpSweep2}
@keyframes tpSweep2{from{transform:rotate(22deg)}to{transform:rotate(-14deg)}}
html[data-theme] .tpx .tp-podium{display:grid;grid-template-columns:1fr 1.15fr 1fr;align-items:end;gap:.4rem;margin:0;padding:0;background:none!important;border:0!important;box-shadow:none!important}
html[data-theme] .tpx .tp-p{color:#f4f4f3!important;padding:0;background:none!important;border:0!important;box-shadow:none!important}
html[data-theme] .tpx .tp-p strong{color:#f4f4f3!important;font-family:var(--disp,Impact,sans-serif);font-weight:400;font-size:1.05rem;text-transform:uppercase;letter-spacing:.02em}
html[data-theme] .tpx .tp-p b{color:#f2c14e!important;font-size:.82rem}
html[data-theme] .tpx .tp-medal{font-size:1.4rem}
html[data-theme] .tpx .tp-step{display:grid;place-items:start center;width:100%;margin-top:.5rem;padding-top:.5rem;border-radius:12px 12px 0 0;font-family:var(--disp,Impact,sans-serif);font-size:2.2rem;line-height:1;color:#0b0b0c!important;
  background:linear-gradient(180deg,var(--pc,#c9ccd3),color-mix(in srgb,var(--pc,#c9ccd3) 55%,#0b0b0c))!important;border:0!important;box-shadow:inset 0 2px 0 rgba(255,255,255,.4)}
html[data-theme] .tpx .tp-p.p1{--pc:#f2c14e}
html[data-theme] .tpx .tp-p.p2{--pc:#c9ccd3}
html[data-theme] .tpx .tp-p.p3{--pc:#d08a5a}
html[data-theme] .tpx .tp-p.p1 .tp-step{height:110px;font-size:3rem}
html[data-theme] .tpx .tp-p.p2 .tp-step{height:78px}
html[data-theme] .tpx .tp-p.p3 .tp-step{height:56px}
/* tableau des scores */
html[data-theme] .tpx .tp-list{margin:0;padding:0;border-radius:0 0 22px 22px;border:1px solid var(--bd2);border-top:0;background:var(--card)!important;overflow:hidden}
html[data-theme] .tpx .tp-row{display:flex;align-items:center;gap:.7rem;padding:.75rem 1rem;border:0;border-bottom:1px solid var(--bd);border-radius:0;background:none!important}
html[data-theme] .tpx .tp-row:last-child{border-bottom:0}
html[data-theme] .tpx .tp-pos{flex:none;min-width:2rem;font-family:var(--disp,Impact,sans-serif);font-size:1.4rem;line-height:1;color:transparent!important;-webkit-text-stroke:1.2px var(--muted);background:none!important;border:0!important}
html[data-theme] .tpx .tp-who strong{color:var(--text)!important}
html[data-theme] .tpx .tp-who small{color:var(--muted)!important}
html[data-theme] .tpx .tp-v{margin-left:auto;font-family:var(--disp,Impact,sans-serif);font-weight:400;font-size:1.15rem;color:var(--text)!important}
html[data-theme] .tpx .tp-row.me{background:rgba(var(--acc-rgb),.12)!important}
html[data-theme] .tpx .tp-row.me .tp-pos{-webkit-text-stroke-color:var(--acc)}
html[data-theme] .tpx .tp-mine{margin-top:.8rem;border-top:1px solid var(--bd2);border-radius:22px}
html[data-theme] .tpx .tp-mvp{border-radius:22px;border:0;background:var(--acc)!important;color:#fff}
html[data-theme] .tpx .tp-mvp *{color:#fff!important}
html[data-theme] .tpx .tp-empty{border-radius:22px}
@media (min-width:760px){
  .tp-stage{margin:1rem 0 0;border-radius:26px 26px 0 0;padding:3rem 3rem 0}
  html[data-theme] .tpx .tp-podium{max-width:560px;margin:0 auto}
  html[data-theme] .ivt .inv-hero{grid-template-columns:280px 1fr;align-items:center}
}
@media (prefers-reduced-motion:reduce){.tp-spot,html[data-theme] .ivt .inv-card::after{animation:none!important}}
