/* KI ARENA V44 — V28 face template + V44 designs adapted (7 rarities / finishes / UI) */
:root{
  --rarity-common:#9aa3ad;
  --rarity-uncommon:#3ecf8e;
  --rarity-rare:#4aa3f0;
  --rarity-super_rare:#c45cff;
  --rarity-epic:#e0485a;
  --rarity-legendary:#f0c45a;
  --rarity-divine:#fff6e8;
  --ki-font-card:"Rajdhani","Segoe UI Semibold",sans-serif;
  --ki-font-name:"Cinzel",Georgia,serif;
  --ki-font-display:"Bebas Neue","Arial Narrow",sans-serif;
}

/* Ensure V30 face CSS applies: body already has class stack from index.html */

.v21-face{
  font-family:var(--ki-font-card)!important;
}
.v21-face .v21-card-copy>strong,
.v21-face .v21-card-top>b{
  font-family:var(--ki-font-name)!important;
}
.v21-face .v21-card-top>span{
  font-family:var(--ki-font-display)!important;
  letter-spacing:.06em;
}

/* 7-rarity colors (cumulative FX still come from v24 layers) */
.v21-face.rarity-common,.v21-face.rarity7-common{--rarity:var(--rarity-common)!important}
.v21-face.rarity-uncommon,.v21-face.rarity7-uncommon{--rarity:var(--rarity-uncommon)!important}
.v21-face.rarity-rare,.v21-face.rarity7-rare{--rarity:var(--rarity-rare)!important}
.v21-face.rarity-super_rare,.v21-face.rarity7-super_rare{
  --rarity:var(--rarity-super_rare)!important;
}
.v21-face.rarity-epic,.v21-face.rarity7-epic{--rarity:var(--rarity-epic)!important}
.v21-face.rarity-legendary,.v21-face.rarity7-legendary{--rarity:var(--rarity-legendary)!important}
.v21-face.rarity-divine,.v21-face.rarity7-divine{
  --rarity:var(--rarity-divine)!important;
  --frame:#d8c8a8!important;
}

/* Super rare — violet pulse (new) */
.v21-face.rarity-super_rare .v21-rarity-fx,
.v21-face.rarity7-super_rare .v21-rarity-fx{
  box-shadow:inset 0 0 18px #c45cff33,0 0 14px #c45cff22!important;
  background:radial-gradient(circle at 30% 20%,#c45cff28,transparent 55%)!important;
}
.v21-face.rarity-super_rare .v21-card-copy>strong,
.v21-face.rarity7-super_rare .v21-card-copy>strong{
  text-shadow:0 1px 0 #4a1a6a,0 0 10px #c45cff66!important;
  color:#f3e8ff!important;
}

/* Divine — ivory corona (new top tier) */
.v21-face.rarity-divine .v21-rarity-fx,
.v21-face.rarity7-divine .v21-rarity-fx{
  box-shadow:inset 0 0 28px #fff6e855,0 0 22px #fff6e833!important;
  background:
    radial-gradient(circle at 50% 15%,#fff8e866,transparent 45%),
    linear-gradient(145deg,#fff6e822,transparent 40%,transparent 60%,#e8d4a822)!important;
}
.v21-face.rarity-divine .v21-card-copy>strong,
.v21-face.rarity7-divine .v21-card-copy>strong{
  color:#fffaf0!important;
  text-shadow:0 1px 0 #8a7040,0 0 16px #fff6e888!important;
  letter-spacing:.02em;
}
.v21-face.rarity-divine .v21-card-top>span,
.v21-face.rarity7-divine .v21-card-top>span{
  color:#fff8e8!important;
  text-shadow:0 0 8px #fff6e8aa;
}

/* Finishes blanche / noire / dorée for ALL cards */
.v21-face.finish-black{--frame:#15202b!important}
.v21-face.finish-white{
  --frame:#f5f4ed!important;
  --copy:#102c3c!important;
}
.v21-face.finish-white .v21-card-copy>strong{color:#0e2430!important}
.v21-face.finish-gold{
  --frame:#c9a227!important;
  box-shadow:1px 5px 0 #5a401855,0 12px 28px #c9a22744,inset 0 0 18px #ffe08a33!important;
}
.v21-face.finish-gold .v21-reflection{
  background:linear-gradient(115deg,transparent 20%,#ffe9a855 45%,transparent 70%)!important;
  opacity:.85;
}

/* Make face fill offer / collection slots like old .card */
.offer .v21-face,
.pack-result .v21-face,
.collection-grid .v21-face,
.draft-offers .v21-face,
.battle-team .v21-face,
.card-hit .v21-face{
  width:100%!important;
  max-width:100%;
}
.card-hit{
  display:block;
  width:100%;
  padding:0;
  border:0;
  background:transparent;
  cursor:pointer;
}

/* Mystery face in V30 spirit */
.v21-face.v44-mystery,
.card.mystery.v30-mystery{
  display:grid;
  place-items:center;
  aspect-ratio:2/3;
  border:4px solid #15202b;
  border-radius:15px;
  background:linear-gradient(160deg,#1a2430,#0c1218 70%);
  color:#e8dcc8;
  text-align:center;
  gap:8px;
  padding:18px;
}
.v30-mystery .mystery-orbit{font-size:2rem;opacity:.7}
.v30-mystery .card-sigil{font-family:var(--ki-font-display);letter-spacing:.2em;opacity:.55}

/* —— Draft: centered pick, less fluff —— */
.draft-bottom{
  display:flex!important;
  justify-content:center!important;
  align-items:center!important;
  gap:12px!important;
  text-align:center!important;
}
.draft-bottom>span{display:none!important}
.draft-bottom .button.primary,
.draft-bottom button.primary{
  min-width:min(420px,92vw);
  margin:0 auto;
  font-size:1.15rem;
  padding:14px 28px;
}
.draft-details{display:none!important}
.draft-layout{
  grid-template-columns:220px 1fr!important;
}
.draft-offers{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(160px,1fr));
  gap:14px;
  align-content:start;
}
.offer-inspect{display:none!important}

/* —— Modes: pick on top, Jouer big centered —— */
.mode-focus{
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  text-align:center!important;
  gap:16px!important;
  padding:22px 18px 28px!important;
}
.mode-focus .mode-focus-art{
  order:-2;
  width:min(720px,100%);
  aspect-ratio:21/9;
  border-radius:14px;
  background-size:cover;
  background-position:center;
}
.mode-focus>div:not(.mode-focus-art){
  order:-1;
  max-width:640px;
}
.mode-focus .button.primary,
.mode-focus button.primary{
  order:3;
  min-width:min(220px,44vw)!important;
  font-size:1.35rem!important;
  padding:16px 36px!important;
  margin:8px auto 0!important;
  display:inline-flex!important;
  justify-content:center;
}
.mode-grid{order:0}

/* Worlds: Jouer / Explorer gros et centré ; sélection en haut */
.world-layout{
  display:flex!important;
  flex-direction:column!important;
  gap:18px!important;
}
.world-layout>.world-grid{
  order:-1;
}
.world-detail{
  order:2;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  text-align:center!important;
  gap:14px!important;
}
.world-detail .world-landscape{
  width:min(900px,100%);
  max-height:280px;
  object-fit:cover;
  border-radius:14px;
}
.world-detail .world-description{
  max-width:640px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:12px;
}
\1min-width:min(220px,44vw)!important;
  font-size:1.3rem!important;
  padding:16px 34px!important;
  margin:6px auto 0!important;
  display:inline-flex!important;
  justify-content:center;
}
.setup-layout{
  display:flex!important;
  flex-direction:column!important;
  gap:18px!important;
}
.setup-layout .world-grid{order:-1}
.setup-layout .setup-panel{
  order:2;
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
}

/* —— Packs: V30 shelf look —— */
.pack-layout{
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:18px;
}
.pack-choice{
  position:relative;
  overflow:hidden;
  border:3px solid #1a2a38;
  border-radius:16px;
  background:linear-gradient(165deg,#243444,#121a22);
  box-shadow:0 10px 22px #0006, inset 0 0 0 1px #ffffff14;
  transition:transform .15s ease, box-shadow .15s ease, border-color .15s;
}
.pack-choice img{
  width:100%;
  aspect-ratio:4/5;
  object-fit:cover;
  display:block;
  filter:saturate(1.05) contrast(1.04);
}
.pack-choice b,.pack-choice span{
  display:block;
  padding:6px 10px;
  text-align:center;
  font-family:var(--ki-font-card);
}
.pack-choice.selected{
  border-color:#f0c45a;
  box-shadow:0 0 0 2px #f0c45a66, 0 14px 28px #0008;
  transform:translateY(-3px);
}
.pack-spot{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  gap:12px;
  min-height:420px;
  border-radius:18px;
  background:
    linear-gradient(180deg,#0c1218cc,#0c1218ee),
    var(--scene) center/cover;
  border:3px solid #243444;
}
.pack-spot .big-pack{
  width:min(260px,70%);
  filter:drop-shadow(0 18px 24px #000a);
  animation:packFloat 3.2s ease-in-out infinite;
}
@keyframes packFloat{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-10px)}
}
.pack-results-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(140px,1fr));
  gap:12px;
}
.pack-result-inner{
  aspect-ratio:2/3;
  transform-style:preserve-3d;
}
.pack-result .back{
  background:linear-gradient(160deg,#1c2a38,#0d141c);
  border:4px solid #15202b;
  border-radius:15px;
  display:grid;
  place-items:center;
  color:#e8dcc8;
  font-family:var(--ki-font-display);
  letter-spacing:.12em;
}

@media (max-width:900px){
  .draft-layout{grid-template-columns:1fr!important}
  .pack-layout{grid-template-columns:1fr}
  .team-panel{display:none}
}


/* Explicit XL play CTA */
.button.primary.play-xl,
button.primary.play-xl{
  min-width:min(220px,46vw)!important;
  font-size:1.4rem!important;
  padding:18px 40px!important;
  margin-left:auto!important;
  margin-right:auto!important;
  display:inline-flex!important;
  justify-content:center!important;
  align-items:center!important;
}

.v44-card-shell{position:relative;width:100%;display:block}
.v44-card-shell.compact{max-width:140px}
.v44-card-shell .card-level{
  position:absolute;right:8px;top:8px;z-index:8;
  background:#0c1218cc;color:#f0e2c4;border:1px solid #c9b08966;
  border-radius:999px;padding:2px 8px;font-size:.75rem;
}
.v44-card-shell[data-action="inspect"]{cursor:pointer}


/* —— Round polish: draft dezoom, mystery V28, packs sans cadre lourd —— */
.draft-offers .offer{
  transform:none!important;
  border:1px solid transparent!important;
  box-shadow:none!important;
  background:transparent!important;
  padding:4px!important;
}
.draft-offers .offer.selected{
  transform:none!important;
  border-color:#eabb4188!important;
  box-shadow:0 0 0 2px #eabb4133!important;
  background:transparent!important;
}
.draft-offers .v21-face,
.draft-offers .v44-card-shell{
  transform:none!important;
  max-width:100%;
}
.draft-offers .v21-face:hover{
  transform:translateY(-2px)!important;
}
.draft-layout{
  align-items:start;
}
.draft-offers{
  grid-template-columns:repeat(auto-fit,minmax(140px,1fr))!important;
  gap:10px!important;
}
.team-power{
  display:flex!important;
  flex-direction:column!important;
  gap:4px!important;
}

/* Mystery V28 */
.v28-mystery{
  aspect-ratio:2/3;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  text-align:center;
  padding:16px 12px;
  border:4px solid #15202b;
  border-radius:15px;
  background:
    radial-gradient(circle at 50% 30%,#2a3a4a88,transparent 55%),
    linear-gradient(160deg,#1a2430,#0c1218 75%);
  color:#e8dcc8;
  box-shadow:1px 5px 0 #0a182739,0 12px 24px #0008;
}
.v28-mystery .v14-mystery-orbit{
  width:72px;height:72px;border-radius:50%;
  display:grid;place-items:center;
  border:2px dashed #c9b08999;
  font-size:2rem;font-weight:700;
  animation:mysterySpin 8s linear infinite;
}
.v28-mystery small{letter-spacing:.14em;opacity:.7;font-size:.68rem}
.v28-mystery strong{font-family:var(--ki-font-name,Georgia,serif);font-size:1rem}
.v28-mystery em{font-style:normal;opacity:.65;font-size:.78rem;max-width:16ch}
@keyframes mysterySpin{to{transform:rotate(360deg)}}

/* Packs: enlever cadres lourds */
.pack-choice{
  border:0!important;
  box-shadow:0 8px 18px #0005!important;
  background:transparent!important;
}
.pack-choice.selected{
  border:0!important;
  box-shadow:0 0 0 3px #f0c45a88, 0 12px 24px #0007!important;
  transform:translateY(-2px);
}
.pack-choice img{border-radius:14px}

/* Solo / battle compact faces stay readable */
.fighter .v21-face,
.battle-team .v21-face,
.pre-team .v21-face{
  transform:none!important;
}
.fighter.compact .v21-face,
.v44-card-shell.compact .v21-face{
  font-size:max(10px,.55rem);
}

/* Damage floaters on fighters */
.damage-float{
  position:absolute;left:50%;top:18%;
  transform:translate(-50%,0);
  font-weight:800;font-size:1.15rem;
  color:#ffe8e0;text-shadow:0 2px 0 #400,0 0 8px #c33;
  animation:damage-rise .9s ease-out forwards;
  pointer-events:none;z-index:20;
}
.damage-float.heal{color:#b8ffe0;text-shadow:0 2px 0 #043,0 0 8px #2a8}
.damage-float.shield{color:#cfe8ff}
.damage-float.crit{color:#ffe08a;font-size:1.35rem}
.fighter{position:relative}
.fighter.flash-heal{filter:brightness(1.35) saturate(1.2)}

/* Inspect: no crazy zoom */
.inspect-layout>div:first-child{width:100%!important;min-width:180px!important;max-width:280px;margin:0 auto;}
.inspect-layout .v21-face{transform:none!important}

/* Setup: cleaner panel */
.setup-panel .facts:empty{display:none}


/* ============================================================
   V44 DESIGN kept → adapted on V28 template (.v21-face)
   Source look: game.css .card / .r-* / .f-* (7 rarities + finishes)
   Structure: V28 arcade face (v21-face + v24 layers)
   ============================================================ */

/* Align V28 face rarity vars with V44 game.css palette */
.v21-face.rarity-common,.v21-face.rarity7-common{--rarity:#bcc5d4!important;--glow:#aab8d725}
.v21-face.rarity-uncommon,.v21-face.rarity7-uncommon{--rarity:#6edf99!important;--glow:#50ff992b}
.v21-face.rarity-rare,.v21-face.rarity7-rare{--rarity:#64c3ff!important;--glow:#40aaff55}
.v21-face.rarity-super_rare,.v21-face.rarity7-super_rare{--rarity:#ca8dff!important;--glow:#ad50ff66}
.v21-face.rarity-epic,.v21-face.rarity7-epic{--rarity:#ff5064!important;--glow:#e7205266}
.v21-face.rarity-legendary,.v21-face.rarity7-legendary{--rarity:#ffda7e!important;--glow:#ffa62d88}
.v21-face.rarity-divine,.v21-face.rarity7-divine{--rarity:#fff6e3!important;--glow:#d6c3ff99}

/* Frame / glow like V44 .card */
.v21-face{
  border-color:var(--rarity)!important;
  box-shadow:
    0 0 0 2px #08122c,
    inset 0 0 0 2px #ffffff20,
    0 4px 15px #0008,
    0 0 12px var(--glow,transparent)!important;
}
.v21-face.rarity-legendary,.v21-face.rarity7-legendary{
  border-width:3px!important;
  box-shadow:0 0 0 1px #fff3bd,0 0 15px #efb2487b,0 7px 20px #0008!important;
}
.v21-face.rarity-divine,.v21-face.rarity7-divine{
  border-width:3px!important;
  box-shadow:0 0 0 1px #fff,0 0 19px #d2bcff94,0 7px 20px #0008!important;
}
.v21-face.rarity-epic .v21-rarity-fx,
.v21-face.rarity7-epic .v21-rarity-fx{
  box-shadow:inset 0 0 13px #ff184570!important;
}
.v21-face.rarity-super_rare .v21-rarity-fx,
.v21-face.rarity7-super_rare .v21-rarity-fx{
  box-shadow:inset 0 0 18px #ad50ff44,0 0 14px #ca8dff33!important;
  background:radial-gradient(circle at 30% 20%,#ca8dff30,transparent 55%)!important;
}
.v21-face.rarity-divine .v21-rarity-fx,
.v21-face.rarity7-divine .v21-rarity-fx{
  opacity:.9!important;
  background:linear-gradient(110deg,transparent 20%,#fff5b244,#e6ceff66,transparent 75%)!important;
  animation:foil 4s ease-in-out infinite;
}
.v21-face.rarity-legendary .v21-rarity-fx,
.v21-face.rarity7-legendary .v21-rarity-fx{
  animation:foil 6s ease-in-out infinite;
}

/* Finishes V44 (noire / blanche / dorée) on V28 face */
.v21-face.finish-black{
  --frame:#15202b!important;
  background:#080e1d!important;
}
.v21-face.finish-white{
  --frame:#e8e8ed!important;
  --copy:#15213c!important;
  background:#e8e8ed!important;
}
.v21-face.finish-white .v21-card-copy{
  background:linear-gradient(transparent,#e9e9efed 35%,#e0e4eb 75%)!important;
}
.v21-face.finish-white .v21-card-copy>strong{
  color:#15213c!important;
  text-shadow:0 1px #fff!important;
}
.v21-face.finish-white .v21-card-form{color:#2d3c59!important}
.v21-face.finish-gold{
  --frame:#ffe2a1!important;
  box-shadow:0 0 0 2px #f0bf5f,0 0 18px #f5bb5166!important;
  border-color:#ffe2a1!important;
}
.v21-face.finish-gold .v21-card-copy{
  border-bottom:3px solid #e8b254;
}
.v21-face.finish-gold .v22-special-mark{
  background:#302210ed!important;
  color:#ffe69a!important;
  border:1px solid #ffe19a!important;
}

/* Top rarity pill like V44 card-rarity */
.v21-face .v21-card-top{
  z-index:7!important;
}
.v21-face .v21-card-top>span{
  border:1px solid var(--rarity)!important;
  background:#091327ed!important;
  color:var(--rarity)!important;
  border-radius:3px!important;
  padding:3px 6px!important;
  font-size:clamp(6px,5.1cqw,11px)!important;
  font-style:italic!important;
  letter-spacing:.04em!important;
  text-transform:uppercase!important;
}
.v21-face.finish-white .v21-card-top>span{
  background:#eef2f8cc!important;
}

/* Stats chips — V44 card-stats spirit */
.v21-face .v21-card-stats>b,
.v21-face .v21-card-stats>small{
  border:1px solid #aebede66!important;
  border-radius:4px!important;
  background:#142548d9!important;
  padding:3px 5px!important;
}
.v21-face .v21-hp{
  background:#8b2c45dd!important;
  border-color:#ef9ca577!important;
}
.v21-face.finish-white .v21-card-stats>b,
.v21-face.finish-white .v21-card-stats>small{
  background:#f2f5fbdb!important;
  color:#1f2940!important;
}

/* Reveal / pick uses V28 face with V44 glow */
.pick-reveal .v21-face{
  width:clamp(200px,25vw,310px)!important;
  box-shadow:0 0 0 2px var(--rarity),0 0 80px var(--glow),0 25px 80px #000!important;
}

/* Ensure solo / map / combat / packs all inherit same adapted face */
.pre-team .v21-face,
.map-roster .v21-face,
.fighter .v21-face,
.reward-option .v21-face,
.shop-offer .v21-face,
.pack-result .v21-face,
.inventory-gear .v21-face,
.collection-grid .v21-face,
.mini-team .v21-face,
.duel-card .v21-face{
  /* same template everywhere */
}


/* Dual CTA: same shape as Jouer, alternate color only */
.actions.dual-cta{
  display:flex!important;
  flex-wrap:wrap;
  gap:14px;
  align-items:center;
}
.button.primary.play-xl.play-alt,
button.primary.play-xl.play-alt{
  background:linear-gradient(110deg,#1e3a5fee,#3d6dbbdd 50%,#1a3355ed)!important;
  border-color:#a8c4ff!important;
  box-shadow:inset 0 0 14px #7eb0ff4a,0 0 12px #4a7fff45!important;
  color:#eef5ff!important;
  text-shadow:0 2px 3px #0a1830!important;
}
.button.primary.play-xl.play-alt:hover:not(:disabled){
  filter:brightness(1.12);
}

/* Worlds/setup: CTA in front, no scroll hunt */
.sticky-cta{
  position:sticky;
  top:12px;
  z-index:5;
}
.world-detail.sticky-cta .actions.dual-cta{
  margin:12px 0 16px!important;
  order:99;
}
.world-detail .world-landscape{
  max-height:200px;
  width:100%;
  object-fit:cover;
  border-radius:10px;
  margin:12px 0;
}
.setup-panel.sticky-cta .actions.dual-cta{
  margin-top:18px;
}

/* Mystery V28 validated */
.a-mystery.v28-mystery{
  aspect-ratio:2/3;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:18px 14px;
  text-align:center;
  border:4px solid #c3a56a!important;
  border-radius:15px;
  background:radial-gradient(ellipse at 50% 35%,#3a3b61,#0a1128 65%)!important;
  color:#e6cc98;
  box-shadow:0 0 0 2px #08122c, inset 0 0 0 2px #c8ab7077, 0 12px 24px #0008!important;
}
.a-mystery .v14-mystery-orbit{
  width:58%;
  aspect-ratio:1;
  border:1px solid #eccb8855;
  border-radius:50%;
  display:grid;
  place-items:center;
  box-shadow:0 0 0 12px #cdb56a0a,0 0 0 25px #cdb56a08;
  font-size:clamp(28px,12cqw,52px);
  font-weight:800;
  color:#ffe4a3;
}
.a-mystery .mystery-title,
.a-mystery h2{
  margin:0;
  font-size:clamp(12px,5cqw,18px);
  color:#e6cc98;
  font-style:italic;
}
.a-mystery .mystery-text{margin:0;font-size:clamp(10px,3.6cqw,13px);opacity:.85;max-width:18ch}
.a-mystery small{letter-spacing:.14em;font-size:clamp(8px,3cqw,11px);opacity:.75}

/* Draft recruited / reveal: center art */
.pick-reveal .v21-face .v21-card-art img,
.draft-offers .v21-face .v21-card-art img,
.v21-face .v21-card-art img{
  object-fit:cover!important;
  object-position:50% 18%!important;
}
.v21-face.v21-equipment .v21-card-art img.v21-equip-photo{
  object-fit:contain!important;
  object-position:50% 50%!important;
  padding:8%!important;
}
.v21-face .v21-card-art.missing{
  background:linear-gradient(160deg,#24344a,#121a28)!important;
}

/* Packs: no grey disabled look on available; preview stable */
.pack-choice{opacity:1!important;filter:none!important}
.pack-choice:disabled,
.pack-choice[disabled]{opacity:1!important}
.pack-choice img{
  width:100%;
  max-width:160px;
  aspect-ratio:2/3;
  object-fit:contain!important;
  object-position:center!important;
  background:transparent;
}
.pack-spot .big-pack{
  width:min(220px,70%);
  height:auto;
  aspect-ratio:2/3;
  object-fit:contain!important;
  rotate:0deg!important;
}
.button.outline:not(:disabled){opacity:1}
.pack-shelf .button[disabled]{
  opacity:.45;
}

/* Design gallery */
.design-gallery{margin-top:18px}
.design-gallery h2{margin:22px 0 14px}
.design-tile{
  display:flex;
  flex-direction:column;
  gap:8px;
  padding:12px!important;
  border:1px solid var(--line);
  background:linear-gradient(145deg,#12213eea,#080f25f2);
  cursor:pointer;
  text-align:left;
}
.design-tile:hover{border-color:var(--gold2);box-shadow:0 0 16px #e8bc6f44}
.design-tile .eyebrow{font-size:10px}
.atelier-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(160px,1fr));
  gap:16px;
}



/* === V44 coherence round 2 === */
.button.primary.play-xl.play-alt,
button.primary.play-xl.play-alt{
  background: linear-gradient(135deg,#2a6f8f,#1a3d55)!important;
  border-color:#7ec8e8!important;
  color:#e8f6ff!important;
  box-shadow:0 8px 24px #0a304488, inset 0 1px 0 #ffffff33!important;
}
.button.primary.play-xl.play-alt:hover:not(:disabled){
  background: linear-gradient(135deg,#3589ad,#214d6a)!important;
  filter:brightness(1.06);
}
.button.primary.play-xl:not(.play-alt){
  background: linear-gradient(135deg,#c9a24a,#8a5a1e)!important;
  border-color:#f0d48a!important;
  color:#1a1208!important;
}
.dual-cta{
  display:flex!important;
  flex-wrap:wrap;
  gap:14px;
  align-items:center;
  justify-content:center;
}
.sticky-cta{
  position:sticky;
  top:12px;
  z-index:8;
  align-self:start;
}
.world-detail.sticky-cta,
.setup-panel.sticky-cta{
  max-height:calc(100vh - 24px);
  overflow:auto;
}
.world-detail .dual-cta,
.setup-panel .dual-cta,
/*.mode-focus dual-cta order neutralized*/
.pick-reveal{
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
}
.pick-reveal .reveal-card-wrap,
.pick-reveal > .v44-card-shell,
.pick-reveal > .v21-face,
.pick-reveal > .card{
  margin-left:auto!important;
  margin-right:auto!important;
  display:block!important;
}
.pick-reveal .v21-face,
.pick-reveal .v44-card-shell,
.pick-reveal .card{
  width:clamp(200px,26vw,320px)!important;
  max-width:90vw!important;
}
.pick-reveal .v21-art,
.pick-reveal .v21-face img,
.pick-reveal .card img{
  object-fit:cover!important;
  object-position:50% 18%!important;
  width:100%!important;
  height:100%!important;
}
/* mystery validated look */
.v28-mystery{
  position:relative;
  overflow:hidden;
  aspect-ratio:2/3;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  text-align:center;
  padding:18px 14px;
  border:4px solid #d4b56a;
  border-radius:16px;
  background:
    radial-gradient(circle at 50% 28%,#3a4d6288,transparent 50%),
    linear-gradient(165deg,#1c2836 0%,#0a1018 70%);
  color:#f2e6d0;
  box-shadow:0 0 0 2px #0a1827, 0 14px 28px #000a, inset 0 0 40px #0006;
}
.v28-mystery-bg{
  position:absolute;inset:0;pointer-events:none;
  background:
    repeating-linear-gradient(135deg,transparent 0 10px,#ffffff05 10px 11px),
    radial-gradient(circle at 50% 80%,#c9a24a22,transparent 55%);
}
.v14-mystery-orbit{
  position:relative;width:84px;height:84px;
  display:grid;place-items:center;
  border-radius:50%;
  border:2px dashed #e0c57a99;
  animation:mystery-spin 12s linear infinite;
}
.v14-mystery-orbit span{
  font:italic 900 42px/1 serif;color:#ffe7a8;
  text-shadow:0 0 18px #f0c35a99;
  animation:mystery-pulse 2.4s ease-in-out infinite;
}
.v14-mystery-orbit i{
  position:absolute;width:8px;height:8px;border-radius:50%;
  background:#f0d48a;box-shadow:0 0 10px #f0d48a;
}
.v14-mystery-orbit i:nth-child(1){top:-3px;left:50%;transform:translateX(-50%)}
.v14-mystery-orbit i:nth-child(2){bottom:8px;left:8px}
.v14-mystery-orbit i:nth-child(3){bottom:8px;right:8px}
.mystery-kicker{letter-spacing:.22em;font-size:9px;color:#d8c18a;z-index:1}
.mystery-title{font:italic 800 18px/1.2 serif;margin:0;z-index:1;color:#fff1c9}
.mystery-text{font-size:11px;line-height:1.35;opacity:.85;z-index:1;max-width:16ch}
.mystery-seal{
  position:absolute;bottom:12px;width:36px;height:36px;border-radius:50%;
  border:1px solid #d4b56a88;display:grid;place-items:center;
  background:#0c1420cc;font:italic 800 12px/1 serif;color:#e8d59a;
}
.mystery-emblem{
  font:italic 900 72px/1 serif;color:#ffe7a8;
  text-shadow:0 0 24px #f0c35a88;margin:12px 0;
}
@keyframes mystery-spin{to{transform:rotate(360deg)}}
@keyframes mystery-pulse{50%{transform:scale(1.08);opacity:.9}}
.design-gallery{margin-top:18px}
.atelier-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(160px,1fr));
  gap:16px;
  margin:12px 0 28px;
}
.design-tile{padding:10px;text-align:center;cursor:pointer}
.design-tile .eyebrow{display:block;margin-bottom:8px;font-size:9px}
.design-tile .v21-face,.design-tile .v44-card-shell{width:100%;max-width:180px;margin:0 auto}
.pack-choice.selected img{filter:drop-shadow(0 0 16px #e9b957aa) brightness(1.05)}
.big-pack{object-fit:contain!important;object-position:center!important}
/* uniform card art */
.v21-face .v21-art,
.v21-face img.v21-art,
.v44-card-shell img{
  object-fit:cover!important;
  object-position:50% 20%!important;
}
.draft-offers .v21-art,
.draft-offers img{
  object-fit:cover!important;
  object-position:50% 18%!important;
}

/* uniform card art v2 */
.v21-face .v21-card-art,
.v21-face .v21-card-art img,
.v44-card-shell img,
.v21-equip-photo{
  object-fit:cover!important;
  object-position:50% 18%!important;
  background:#0b1424;
}
.v21-face .v21-card-art.missing{
  background:linear-gradient(160deg,#1a2740,#0a1220);
}
.v21-icon-face .v21-card-art img{
  object-fit:contain!important;
  object-position:center!important;
  padding:12%;
}
.draft-offers .v21-face,
.pack-result .v21-face,
.pick-reveal .v21-face{
  width:100%;
}
.mode-focus .dual-cta{width:100%;justify-content:center}



/* === ROUND 3 polish === */
/* remove blur bar on card tops */
.v21-face .v21-card-top{
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
  background:transparent!important;
}
.v22-special-mark, .v21-special-mark{display:none!important}

/* home pack shiny */
.home-pack-shiny{
  position:relative;
  overflow:hidden;
  animation:pack-float 3.2s ease-in-out infinite;
}
.home-pack-shiny img{
  height:200px!important;
  width:140px!important;
  object-fit:contain!important;
  filter:drop-shadow(0 0 18px #ffd56acc)!important;
  animation:pack-shine-tilt 4s ease-in-out infinite;
}
.home-pack-shiny::after{
  content:'';
  position:absolute;inset:-20%;
  background:linear-gradient(115deg,transparent 40%,#fff8 48%,transparent 56%);
  animation:pack-sheen 2.8s linear infinite;
  pointer-events:none;
}
@keyframes pack-float{50%{transform:translateY(-8px)}}
@keyframes pack-shine-tilt{0%,100%{transform:rotate(6deg)}50%{transform:rotate(12deg) scale(1.04)}}
@keyframes pack-sheen{from{transform:translateX(-40%)}to{transform:translateX(40%)}}

/* pack shelf previews */
.pack-choice img{
  width:100%!important;
  max-width:180px!important;
  height:auto!important;
  min-height:210px!important;
  aspect-ratio:2/3!important;
  object-fit:contain!important;
  object-position:center!important;
}
.pack-choice.selected img{
  max-width:200px!important;
  filter:drop-shadow(0 0 22px #e9b957cc) brightness(1.08)!important;
}
.pack-spot .big-pack, .big-pack{
  width:min(240px,70%)!important;
  height:auto!important;
  min-height:320px!important;
  max-height:420px!important;
  object-fit:contain!important;
  object-position:center center!important;
  margin:18px auto!important;
  display:block!important;
  rotate:0deg!important;
  filter:drop-shadow(0 0 28px #e9b95799)!important;
}
.pack-layout{
  align-items:start;
}
.pack-spot{
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:flex-start!important;
  text-align:center!important;
}
.pack-auto-check{display:flex;gap:8px;align-items:center;justify-content:center;margin:10px 0;font-size:12px;color:#d7c7a0}
.pack-flash{
  position:fixed;inset:0;z-index:400;pointer-events:none;
  background:radial-gradient(circle,#fffceebb,#ffd56a55 35%,transparent 70%);
  opacity:0;
}
.pack-dissect{transform-origin:center bottom}
.pack-results-grid{
  grid-template-columns:repeat(auto-fit,minmax(140px,1fr))!important;
  gap:18px!important;
  max-width:1100px;
  margin:0 auto;
}
.pack-result{min-height:210px}

/* worlds / modes center */
.world-layout{
  display:grid!important;
  grid-template-columns:minmax(0,1.1fr) minmax(320px,0.9fr)!important;
  gap:22px!important;
  align-items:start!important;
  max-width:1200px;
  margin:0 auto;
}
.world-detail, .setup-panel, .mode-focus{
  scroll-margin-top:24px;
}
.world-detail.sticky-cta, .setup-panel.sticky-cta{
  position:sticky;
  top:16px;
}
.world-detail .dual-cta, .mode-focus .dual-cta, .setup-panel .dual-cta{
  justify-content:center!important;
  width:100%;
}
.mode-focus{
  display:grid!important;
  grid-template-columns:140px 1fr!important;
  gap:18px!important;
  align-items:center!important;
  max-width:1000px;
  margin:22px auto 0!important;
  scroll-margin-top:20px;
}
.mode-focus .actions, .mode-focus .dual-cta{
  grid-column:1/-1;
}

/* mystery V14 */
.v14-mystery, .a-mystery.v14-mystery{
  aspect-ratio:2/3;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  text-align:center;
  padding:18px 14px;
  border:3px solid #d7b56a;
  border-radius:14px;
  background:
    radial-gradient(circle at 50% 30%,#3a4d6288,transparent 55%),
    linear-gradient(160deg,#1a2430,#0b121a 75%);
  color:#f3e7d2;
  box-shadow:0 12px 28px #000a, inset 0 0 30px #0005;
}
.v14-mystery .v14-mystery-orbit{
  width:78px;height:78px;border-radius:50%;
  border:2px dashed #e7c97a99;
  display:grid;place-items:center;
  animation:mystery-spin 10s linear infinite;
}
.v14-mystery .v14-mystery-orbit span{
  font:italic 900 40px/1 serif;color:#ffe7a8;
  text-shadow:0 0 16px #f0c35a99;
}
.v14-mystery small{letter-spacing:.18em;font-size:9px;color:#d8c18a}
.v14-mystery h2{font:italic 800 18px/1.2 serif;margin:0;color:#fff1c9}
.v14-mystery p{font-size:11px;opacity:.85;max-width:16ch}
.v14-mystery strong{color:#f0d48a;font-size:12px;margin-top:6px}

/* inventory card previews */
.inventory-unit .v21-face, .inventory-unit .v44-card-shell{
  width:72px!important;
  min-width:72px;
  flex-shrink:0;
}
.inventory-gear .v21-face, .inventory-gear .v44-card-shell{
  width:100%!important;
  max-width:160px;
  margin:0 auto 8px;
}
.inventory-gear>div{
  display:flex;
  flex-direction:column;
  align-items:center;
}
.inspect-layout .v21-face, .inspect-layout .v44-card-shell{
  width:100%!important;
  max-width:280px;
  margin:0 auto;
}
.inspect-layout .v21-card-art img{
  object-fit:cover!important;
  object-position:50% 18%!important;
}

/* combat impact */
.damage-float{
  font-size:clamp(34px,4.5vw,56px)!important;
  font-weight:900!important;
  z-index:40!important;
  text-shadow:0 3px 0 #4a1020,0 0 22px #ff6a4aaa!important;
}
.damage-float.crit{
  font-size:clamp(42px,5.5vw,68px)!important;
  color:#ffe7a8!important;
  text-shadow:0 3px 0 #5b1523,0 0 28px #ffd35acc!important;
}
.damage-float.mega{
  font-size:clamp(52px,7vw,84px)!important;
  animation:damage-rise-mega 1.35s forwards!important;
}
.damage-float.heal{font-size:clamp(30px,4vw,48px)!important}
@keyframes damage-rise-mega{
  0%{opacity:0;transform:translate(-50%,20px) scale(.7)}
  25%{opacity:1;transform:translate(-50%,-20px) scale(1.25)}
  100%{opacity:0;transform:translate(-50%,-110px) scale(1.05)}
}
.flash-hit{filter:brightness(1.8) saturate(1.4)!important}
.impact-ring{
  position:absolute;left:50%;top:45%;width:20px;height:20px;border-radius:50%;
  border:3px solid #ffe08a;transform:translate(-50%,-50%);
  animation:impact-pop .55s ease-out forwards;pointer-events:none;z-index:35;
}
.impact-ring.brutal{border-color:#ff7a6a;box-shadow:0 0 24px #ff5a4a}
@keyframes impact-pop{to{width:140px;height:140px;opacity:0;border-width:1px}}
.attack-slash{
  position:absolute;left:10%;right:10%;top:40%;height:4px;
  background:linear-gradient(90deg,transparent,#fff,#ffe08a,#fff,transparent);
  transform:rotate(-28deg);animation:slash-fade .4s ease-out forwards;
  pointer-events:none;z-index:36;box-shadow:0 0 12px #fff8;
}
@keyframes slash-fade{from{opacity:1;transform:rotate(-28deg) scaleX(.2)}to{opacity:0;transform:rotate(-28deg) scaleX(1.2)}}
.screen-shake{animation:shake .28s linear}
.screen-shake-hard{animation:shake-hard .4s linear}
@keyframes shake{0%,100%{transform:translate(0)}25%{transform:translate(-4px,2px)}50%{transform:translate(5px,-2px)}75%{transform:translate(-3px,1px)}}
@keyframes shake-hard{0%,100%{transform:translate(0)}20%{transform:translate(-8px,3px)}40%{transform:translate(9px,-4px)}60%{transform:translate(-6px,2px)}80%{transform:translate(5px,-2px)}}

.event-scene{
  background:
    linear-gradient(#09152caa,#09152cf2),
    var(--scene) center/cover no-repeat!important;
  border:1px solid #d4b27366;
  min-height:560px;
}


/* === punchlist: CTA Jouer/Reprendre always centered (modes / mondes / setup) === */
.actions.dual-cta,
.dual-cta,
.mode-focus .dual-cta,
.world-detail .dual-cta,
.setup-panel .dual-cta{
  display:flex!important;
  flex-wrap:wrap!important;
  justify-content:center!important;
  align-items:center!important;
  width:100%!important;
  margin-left:auto!important;
  margin-right:auto!important;
  gap:14px!important;
  text-align:center!important;
}
.mode-focus{
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  text-align:center!important;
  gap:18px!important;
  max-width:1000px!important;
  margin:22px auto 0!important;
  grid-template-columns:none!important;
}
.mode-focus .mode-focus-art{
  width:min(720px,100%)!important;
  order:0!important;
}
.mode-focus > div:not(.mode-focus-art):not(.actions):not(.dual-cta){
  order:1!important;
  max-width:640px!important;
  width:100%!important;
}
.mode-focus .actions,
.mode-focus .dual-cta{
  order:2!important;
  grid-column:auto!important;
  margin-top:8px!important;
  margin-bottom:0!important;
}
.world-detail .dual-cta,
.setup-panel .dual-cta{
  order:0!important;
}
.dual-cta .button.primary.play-xl,
.dual-cta button.primary.play-xl,
.mode-focus .button.primary.play-xl,
.mode-focus button.primary.play-xl,
.world-detail .button.primary.play-xl,
.world-detail button.primary.play-xl,
.setup-panel .button.primary.play-xl,
.setup-panel button.primary.play-xl{
  min-width:min(240px,46vw)!important;
  margin-left:0!important;
  margin-right:0!important;
  display:inline-flex!important;
  justify-content:center!important;
}


/* === KO template hold 1s then vanish === */
.fighter .ko-stamp{
  position:absolute;left:50%;top:42%;z-index:40!important;pointer-events:none;
  translate:-50% -50%;
  font:800 clamp(28px,5cqw,48px)/1 "Arena Display",Impact,sans-serif;letter-spacing:.06em;
  color:#fff4d6;padding:8px 18px;
  border-top:4px solid #f0e0c0;border-bottom:4px solid #f0e0c0;
  background:linear-gradient(180deg,#8a3034ee,#5a181cee);
  box-shadow:0 4px 0 #1a2430,0 10px 28px #000c,0 0 20px #ff5a5a55;
  text-shadow:0 3px #2a1820;opacity:0;transform:scale(.55) rotate(-18deg);
}
.fighter.fallen .ko-stamp,
.fighter.ko-hold .ko-stamp,
.fighter.ko-out .ko-stamp,
.fighter.fx50-dying .ko-stamp{
  animation:koStamp47 .5s cubic-bezier(.2,.85,.3,1) forwards;
  opacity:1;
}
.fighter.fallen .cin47,
.fighter.ko-hold .cin47,
.fighter.ko-out .cin47,
.fighter.fx50-dying .cin47{
  filter:grayscale(1) brightness(.42)!important;
  transition:filter .35s ease;
}
.fighter.ko-hold{opacity:1!important}
.fighter.fallen.ko-out,
.fighter.ko-out{
  animation:koVanish47 .85s ease forwards;
}
@keyframes koStamp47{
  0%{opacity:0;transform:scale(.5) rotate(-26deg)}
  60%{opacity:1;transform:scale(1.1) rotate(-12deg)}
  100%{opacity:1;transform:scale(1) rotate(-14deg)}
}
@keyframes koVanish47{
  0%{opacity:1;transform:none}
  100%{opacity:0;transform:translateY(24px) scale(.84);filter:grayscale(1) brightness(.2);pointer-events:none}
}

/* FX gallery swatches */
.fx-gallery .fx-tile{display:flex;flex-direction:column;align-items:center;gap:8px;min-height:140px;cursor:pointer}
.fx-swatch{width:72px;height:72px;border-radius:50%;display:block;box-shadow:0 0 18px #0008,inset 0 0 12px #fff3}
.fx-punch{background:radial-gradient(circle,#fff 0%,#e5b981 35%,transparent 70%)}
.fx-slash{background:conic-gradient(from 200deg,#fff0,#ffd27a 40%,#fff0 70%)}
.fx-beam{background:linear-gradient(90deg,transparent,#73ccff,#fff,#73ccff,transparent)}
.fx-multi{background:radial-gradient(circle at 30% 40%,#fff,#66b0ff 40%,transparent 70%),radial-gradient(circle at 70% 60%,#fff,#66b0ff 30%,transparent 65%)}
.fx-blast{background:radial-gradient(circle,#fff 0%,#ff7a4a 30%,#5a1020 70%,transparent)}
.fx-critical{background:radial-gradient(circle,#fff,#ffda7c 40%,transparent 70%)}
.fx-counter{background:radial-gradient(circle,#ffb56d,#fff 40%,transparent 70%)}
.fx-heal{background:radial-gradient(circle,#fff,#79f0ac 45%,transparent 70%)}
.fx-shield{background:radial-gradient(circle,#fff,#70d9ff 45%,transparent 70%)}
.fx-dot{background:radial-gradient(circle,#de8dd8,#4a1848 60%,transparent)}
.fx-control{background:radial-gradient(circle,#b7a5ff,#2a2048 60%,transparent)}
.fx-buff{background:radial-gradient(circle,#ffe29a,#d1a0ff 50%,transparent)}
.fx-aura{background:radial-gradient(circle,#fff0c7,#e9bb60 40%,#5a3010 75%,transparent)}
.fx-ko{background:radial-gradient(circle,#ff676b,#3a1014 55%,transparent)}
.fx-revive{background:radial-gradient(circle,#dcfca7,#79f0ac 50%,transparent)}
.atelier-fx-note{opacity:.8;margin:0 0 12px;text-align:center}

/* === mystery blurred face === */
.a-mystery.mystery-blurred,
.v44-card-shell.mystery-blurred{
  position:relative!important;
  overflow:hidden!important;
  isolation:isolate;
}
.mystery-blur-host{
  position:absolute;inset:-2%;z-index:0;
  transform:scale(1.12);
  filter:blur(10px) saturate(.75) brightness(.72);
  opacity:1;
  pointer-events:none;
}
.mystery-blur-host .cin47,
.mystery-blur-host .royal48{
  width:100%!important;height:100%!important;
}
.mystery-blur-host .cin47-name,
.mystery-blur-host .cin47-stats,
.mystery-blur-host .cin47-effect,
.mystery-blur-host .royal48-frame,
.mystery-blur-host .cin47-fade{opacity:.35}
.mystery-blur-veil{
  position:absolute;inset:0;z-index:1;pointer-events:none;
  background:
    radial-gradient(ellipse at 50% 38%,#1a243866,transparent 55%),
    linear-gradient(180deg,#0a122899 0%,#0a122833 40%,#0a1228d0 100%);
}
.a-mystery.mystery-blurred .v28-mystery-bg{z-index:2}
.a-mystery.mystery-blurred .v14-mystery-orbit,
.a-mystery.mystery-blurred .mystery-kicker,
.a-mystery.mystery-blurred .mystery-title,
.a-mystery.mystery-blurred .mystery-text,
.a-mystery.mystery-blurred .mystery-seal{
  position:relative;z-index:3;
}
.a-mystery.mystery-blurred .mystery-title,
.a-mystery.mystery-blurred h2.mystery-title{
  color:#fff1c9!important;
  text-shadow:0 2px 10px #000c;
}
@media (prefers-reduced-motion:reduce){
  .mystery-blur-host{filter:blur(10px) brightness(.4)}
}


/* shop / treasure / atelier */
.shop-heal-box,.shop-sell-box{margin:16px 0;padding:14px}
.shop-heal-row,.shop-sell-grid{display:flex;flex-wrap:wrap;gap:10px;margin-top:10px}
.shop-sell-item{width:min(140px,46%);display:flex;flex-direction:column;gap:6px}
.shop-meta{text-align:center;margin:6px 0}
.treasure-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
@media(max-width:720px){.treasure-options{grid-template-columns:1fr}.shop-sell-item{width:100%}}
.design-gallery .atelier-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:12px}
.design-tile .v44-card-shell,.design-tile .cin47{width:100%!important;max-width:200px;margin:0 auto;aspect-ratio:2/3;height:auto!important;min-height:180px;position:relative}
.design-tile .cin47{position:absolute!important;inset:0!important;height:100%!important}

/* Combat / précombat : faces cinéma (cin47) — plus de .v21-face */
.fighter .v44-card-shell,
.battle-team .v44-card-shell,
.pre-team .v44-card-shell,
.shop-offer .v44-card-shell,
.reward-option .v44-card-shell{
  width:100%!important;
  max-width:100%!important;
  display:block;
  min-width:0;
}
.fighter .cin47,
.battle-team .cin47,
.pre-team .cin47,
.shop-offer .cin47,
.reward-option .cin47{
  width:100%!important;
  max-width:100%!important;
  aspect-ratio:2/3;
  height:auto!important;
  min-height:0;
  display:block;
  container-type:inline-size;
}
.fighter .v44-card-shell.compact{max-width:100%!important}
.fighter .cin47.small-face .cin47-effects{display:none}
.fighter .cin47.small-face .cin47-name small{display:none}
.shop-reroll-box{margin:18px 0;padding:16px 18px}
.shop-reroll-box h3{margin:0 0 6px;font-size:16px}
.shop-reroll-box .subtle{margin:0 0 12px}
