/* Le scanner X-ray (client/xray.ts) : le booster en négatif bleu-blanc, un faisceau qui le traverse une fois,
   puis les raretés en cartes par-dessus le booster estompé et le choix garder/remplacer.

   Aucun cadre : la trame et le faisceau sont masqués par l'image du sachet (`mask-image`, comme `.b-shine` dans
   styles.css), donc l'effet épouse sa silhouette et ne déborde nulle part en rectangle. Le halo du faisceau, lui,
   dépasse un peu et s'éteint sur les côtés par un dégradé, jamais sur un bord droit (Théo, le 05/10/2026 : « la
   barre s'arrête net aux bords du rectangle »).

   Comme la révélation de note (grading-reveal.css), tout ce qui bouge est une classe posée sur `.xr` par le
   JavaScript (`xr--scan`, `xr--found`, `xr--shown`, `xr--wait`) et les animations ne touchent que `transform`,
   `opacity` et `filter` ; `will-change` n'est posé que pendant le scan. Le z-index reste sous celui de `.sheet`
   (50, app.css).

   La page tient sur un 390 x 844 sans défilement : la rangée du booster est la seule qui cède (`minmax(0, 1fr)`),
   et les raretés ne prennent plus de hauteur à elles puisqu'elles se posent sur le booster.

   `prefers-reduced-motion` : le JavaScript ne joue aucune séquence, et toutes les règles animées d'ici sont
   neutralisées à la fin du fichier. */

.xr {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  row-gap: 12px;
  justify-items: center;
  overflow: hidden;
  color: #eaf3ff;
  /* Le fond est sombre quel que soit le thème : un scanner s'éclaire dans le noir. */
  background: radial-gradient(120% 90% at 50% 22%, #10213a 0%, #070d18 58%, #04070c 100%);
  animation: xr-in .24s ease both;
}

.xr-sky {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(60% 45% at 50% 34%, rgba(120, 190, 255, .16), transparent 72%), radial-gradient(130% 110% at 50% 50%, transparent 46%, rgba(0, 0, 0, .74) 100%);
}

.xr-skip {
  position: absolute;
  top: max(12px, env(safe-area-inset-top));
  right: 12px;
  z-index: 3;
  min-height: 44px;
  padding: 7px 16px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  color: rgba(255, 255, 255, .78);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

@media (hover: hover) {
  .xr-skip:hover {
    color: #fff;
    background: rgba(255, 255, 255, .14);
  }
}

/* Le booster radiographié et ce qui se pose dessus. Rien ici n'a de bord ni de fond : ce qu'on voit est le sachet. */
.xr-scope {
  position: relative;
  display: grid;
  place-items: center;
  align-self: center;
  width: min(300px, 64vw);
  max-height: 100%;
  margin-top: max(14px, env(safe-area-inset-top));
  isolation: isolate;
}

/* La boîte du sachet, au pixel : le booster garde son format (508 / 718, styles.css), et la trame comme le faisceau
   se masquent sur cette même image. */
.xr-art {
  position: relative;
  width: 100%;
  max-height: 100%;
  aspect-ratio: 508 / 718;
  pointer-events: none;
}

.xr-pack {
  position: absolute;
  inset: 0;
  /* Le booster passe en négatif bleu-blanc : c'est la radiographie, pas l'illustration. Il n'est qu'une image ici :
     le bouton que rend `boosterHtml` ne doit ni se cliquer ni prendre le focus. */
  pointer-events: none;
  filter: invert(1) grayscale(1) brightness(1.15) contrast(1.1) sepia(1) hue-rotate(160deg) saturate(2.4);
  transition: opacity .3s ease;
}

/* Le scan est fini : le booster s'efface derrière ce qu'il contient. */
.xr--found .xr-pack { opacity: .2; }

.xr-pack .booster {
  width: 100%;
  height: 100%;
  margin: 0;
}

/* La trame de l'image radiographiée et le cœur du faisceau vivent dans la silhouette du sachet : ils n'en sortent
   pas, et aucun bord droit ne les coupe. */
.xr-grain,
.xr-beam {
  position: absolute;
  inset: 0;
  pointer-events: none;
  -webkit-mask: url(/pack-front.webp?v=7cc6581117) center / 100% 100% no-repeat;
  mask: url(/pack-front.webp?v=7cc6581117) center / 100% 100% no-repeat;
}

.xr-art.fr .xr-grain,
.xr-art.fr .xr-beam {
  -webkit-mask-image: url(/pack-front-fr.webp?v=aebafb98d54d);
  mask-image: url(/pack-front-fr.webp?v=aebafb98d54d);
}

.xr-art.ru .xr-grain,
.xr-art.ru .xr-beam {
  -webkit-mask-image: url(/pack-front-ru.webp?v=c26605167320);
  mask-image: url(/pack-front-ru.webp?v=c26605167320);
}

.xr-art.es .xr-grain,
.xr-art.es .xr-beam {
  -webkit-mask-image: url(/pack-front-es.webp?v=4f964339d55e);
  mask-image: url(/pack-front-es.webp?v=4f964339d55e);
}
.xr-art.de .xr-grain,
.xr-art.de .xr-beam {
  -webkit-mask-image: url(/pack-front-de.webp?v=b647954a0d44);
  mask-image: url(/pack-front-de.webp?v=b647954a0d44);
}
.xr-art.it .xr-grain,
.xr-art.it .xr-beam {
  -webkit-mask-image: url(/pack-front-it.webp?v=d0afeae819d6);
  mask-image: url(/pack-front-it.webp?v=d0afeae819d6);
}


.xr-art.nl .xr-grain,
.xr-art.nl .xr-beam {
  -webkit-mask-image: url(/pack-front-nl.webp?v=4997e4c33def);
  mask-image: url(/pack-front-nl.webp?v=4997e4c33def);
}



.xr-art.br .xr-grain,
.xr-art.br .xr-beam {
  -webkit-mask-image: url(/pack-front-br.webp?v=8e17dadf7aa0);
  mask-image: url(/pack-front-br.webp?v=8e17dadf7aa0);
}

/* Le faisceau : une barre de lumière peinte dans un dégradé plein cadre, donc elle traverse exactement la hauteur
   du sachet quelle que soit cette hauteur. */
.xr-beam {
  z-index: 1;
  opacity: 0;
}

.xr-beam::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    transparent calc(50% - 26px),
    rgba(120, 200, 255, .3) calc(50% - 12px),
    rgba(190, 230, 255, .95) calc(50% - 5px),
    #fff 50%,
    rgba(190, 230, 255, .95) calc(50% + 5px),
    rgba(120, 200, 255, .3) calc(50% + 12px),
    transparent calc(50% + 26px));
}

/* Le halo du faisceau, lui, n'est pas masqué : il déborde un peu de chaque côté du sachet et s'éteint en dégradé,
   pour que la lumière n'ait aucun bord. */
.xr-glow {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -9%;
  right: -9%;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  filter: blur(7px);
  background: linear-gradient(to bottom,
    transparent calc(50% - 22px),
    rgba(120, 200, 255, .28) calc(50% - 9px),
    rgba(200, 235, 255, .7) 50%,
    rgba(120, 200, 255, .28) calc(50% + 9px),
    transparent calc(50% + 22px));
  -webkit-mask: linear-gradient(to right, transparent, #000 26%, #000 74%, transparent);
  mask: linear-gradient(to right, transparent, #000 26%, #000 74%, transparent);
}

.xr--scan .xr-beam,
.xr--scan .xr-glow { opacity: 1; }

.xr--scan .xr-beam::before,
.xr--scan .xr-glow {
  will-change: transform;
  animation: xr-beam .9s linear both;
}

/* La trame de l'image radiographiée, à peine visible, immobile sous reduced-motion. */
.xr-grain {
  opacity: .16;
  mix-blend-mode: screen;
  background-image: repeating-linear-gradient(0deg, rgba(255, 255, 255, .5) 0 1px, transparent 1px 3px);
}

.xr--scan .xr-grain {
  animation: xr-grain .18s steps(2, end) infinite;
}

.xr--found .xr-grain,
.xr--wait .xr-grain { opacity: 0; }

.xr--scan .xr-pack {
  animation: xr-hum .9s ease-in-out both;
}

.xr-panel {
  z-index: 2;
  display: grid;
  row-gap: 10px;
  width: min(430px, 100%);
  padding: 14px 16px calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(140, 200, 255, .18);
  background: linear-gradient(to top, rgba(6, 12, 22, .96), rgba(6, 12, 22, .72));
}

.xr-say {
  margin: 0;
  color: #bcd9f7;
  font-size: 13px;
  letter-spacing: .08em;
  text-align: center;
  text-transform: uppercase;
}

/* Le bandeau de la grosse rareté : il annonce ce qu'il y a dedans, sans dire quelle carte. */
.xr-crown {
  margin: 0;
  padding: 9px 12px;
  border: 1px solid rgba(255, 180, 69, .55);
  border-radius: 12px;
  background: rgba(255, 180, 69, .14);
  color: #ffd79a;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

/* Les raretés se posent sur le booster, en cartes : les communes en haut et derrière, les autres un peu plus bas et
   devant. La boîte est un peu plus large que le sachet pour que trois cartes pleines tiennent à 390 px. */
.xr-reveal {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -22px;
  right: -22px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.xr-slots {
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Les communes sont derrière, plus petites, et les autres cartes les recouvrent par le bas. */
.xr-back {
  position: relative;
  z-index: 1;
  gap: 5px;
  transform: scale(.7);
  transform-origin: bottom center;
}

.xr-front {
  position: relative;
  z-index: 2;
  gap: 8px;
  /* Un peu plus bas que les communes, et par-dessus elles. */
  margin-top: -16px;
  max-width: 100%;
}

/* Une rareté, une carte : fond sombre teinté de sa couleur, bordure de sa couleur, son nom en bas. La largeur cède
   quand il y a plus de trois cartes de front, le format carte ne cède jamais. */
.xr-slot {
  position: relative;
  display: flex;
  flex: 0 1 76px;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  aspect-ratio: 2 / 3;
  padding: 6px 4px 7px;
  border: 2px solid currentcolor;
  border-radius: 9px;
  /* Presque opaque : le nom reste lisible sur l'illustration du booster, même estompée. */
  background: linear-gradient(to bottom, color-mix(in srgb, currentcolor 20%, rgba(6, 12, 22, .93)), rgba(5, 10, 20, .95));
  box-shadow: 0 8px 18px rgba(0, 0, 0, .45);
  /* Avant son temps, la carte est là mais invisible : rien ne saute quand les raretés arrivent. */
  visibility: hidden;
}

.xr-slot.is-on {
  visibility: visible;
  animation: xr-slot .3s ease both;
}

/* Le numéro de l'emplacement n'est plus montré — les raretés ne sont plus en rangée numérotée — mais il reste dit
   aux lecteurs d'écran. */
.xs-no {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.xs-rar {
  /* `.r-<rareté>` pose la couleur sur la carte ; son nom la porte en gras, sans transparence. */
  color: inherit;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  text-wrap: balance;
}

.xs-var {
  margin-bottom: auto;
  padding: 1px 6px;
  border: 1px solid currentcolor;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
}

.xs-parts {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 9px;
  pointer-events: none;
}

/* Chaque particule part du milieu de la carte dans sa direction (--a), à sa distance (--r), avec son retard (--d). */
.xs-parts i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 2px;
  opacity: 0;
  background: currentcolor;
  transform: translate(-50%, -50%);
  will-change: transform, opacity;
  animation: xr-part .8s ease-out both;
  animation-delay: var(--d);
}

/* La couleur du niveau : `.r-<rareté>` (styles.css) ne pose qu'un dégradé de remplissage, invisible sur un texte. Sur
   le fond sombre du scanner, chaque niveau prend ici sa couleur pleine, éclaircie pour rester lisible. */
.xr-slot.r-common { color: #b7c4be; }
.xr-slot.r-uncommon { color: #6fd38a; }
.xr-slot.r-rare { color: #6bc0ff; }
.xr-slot.r-epic { color: #c38dff; }
.xr-slot.r-legendary { color: #ffb445; }
.xr-slot.r-mythic { color: var(--mythic); }

/* Une légendaire ou une mythique ne se contente pas d'une carte sombre : elle s'allume, puis elle bat deux fois. */
.xr-slot[data-tier="legendary"].is-on {
  background: linear-gradient(to bottom, color-mix(in srgb, currentcolor 34%, rgba(6, 12, 22, .92)), rgba(5, 10, 20, .95));
  box-shadow: 0 0 30px color-mix(in srgb, currentcolor 45%, transparent);
  animation: xr-pop .42s cubic-bezier(.2, 1.5, .4, 1) both, xr-pulse 1s ease-in-out .42s 2;
}

.xr-slot[data-tier="legendary"] .xs-rar { font-size: 13px; }

.xr-slot[data-tier="epic"].is-on {
  box-shadow: 0 0 22px color-mix(in srgb, currentcolor 30%, transparent);
}

.xr-choice {
  display: grid;
  row-gap: 8px;
}

.xr-ask {
  margin: 0;
  font-size: 15px;
  text-align: center;
}

.xr-acts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

/* Garder est l'action sûre : elle porte le bouton plein du jeu, remplacer le bouton secondaire (docs/design/
   boutons.md). Les deux gardent la taille des gros boutons du jeu, icône comprise, et tiennent sur une ligne à
   390 px. */
.xr-acts .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  width: 100%;
  padding-inline: 10px;
  font-size: 17px;
  white-space: nowrap;
}

.xr-acts .btn svg {
  flex: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentcolor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.xr-warn {
  margin: 0;
  color: #9fb6ce;
  font-size: 12px;
  text-align: center;
}

/* Après un scan, pour qui n'est pas EXPERT : une ligne dorée qui mène à l'offre, sous le choix, jamais devant lui. */
.xr-more {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 2px;
  padding: 6px 12px;
  border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--gold) 14%, transparent);
  color: #eaf3ff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
}

.xr-more b {
  flex: none;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .1em;
}

.xr-more span { flex: 1; min-width: 0; text-wrap: balance; }

.xr-more i {
  flex: none;
  color: var(--gold);
  font-size: 20px;
  font-style: normal;
  line-height: 1;
}

.xr-choice[hidden] .xr-more { opacity: 0; pointer-events: none; }

/* ---------- Le scanner en recharge ---------- */

.xr-wait-box {
  display: grid;
  justify-items: center;
  row-gap: 8px;
  margin: 0;
}

/* Le cadran du scanner : son icône, et l'onde qui tourne autour tant qu'il recharge. */
.xr-dial {
  position: relative;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
}

.xr-dial-ring {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 2px solid rgba(107, 192, 255, .3);
  background: radial-gradient(circle at 50% 50%, rgba(107, 192, 255, .22), transparent 70%);
  animation: xr-dial 2.4s ease-in-out infinite;
}

.xr-dial-ico svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: #8ed0ff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.xr-wait-lead {
  margin: 0;
  color: #9fb6ce;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* Le temps qui reste, à la seconde : deux ou trois blocs de chiffres, le plus gros texte de l'écran. */
.xr-clock {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin: 0;
  color: #eaf3ff;
  font-variant-numeric: tabular-nums;
}

.xr-clock b {
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
}

.xr-clock small {
  margin-right: 4px;
  margin-left: 2px;
  color: #9fb6ce;
  font-size: 12px;
  font-weight: 700;
}

.xr-clock i {
  margin-right: 2px;
  color: #567a9b;
  font-size: 22px;
  font-style: normal;
}

/* La part déjà rechargée, du scan précédent au prochain (--f, posé à la seconde par client/xray.ts). */
.xr-fill {
  display: block;
  width: min(260px, 100%);
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
}

.xr-fill i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(to right, #3f86c8, #8ed0ff);
  transform: scaleX(var(--f, 0));
  transform-origin: left center;
  transition: transform 1s linear;
}

.xr-rule {
  margin: 0;
  color: #9fb6ce;
  font-size: 13px;
  text-align: center;
}

/* L'offre EXPERT : le doré de l'abonnement partout sur le site, jamais le violet ; un seul bouton qui mène à sa page.
   L'écran est sombre dans les deux thèmes : --gold y reste lisible, et --on-gold donne l'encre du bouton (blanc sur l'orange clair). */
.xr-xp {
  display: grid;
  justify-items: center;
  row-gap: 8px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--gold) 14%, transparent);
}

.xr-xp-t {
  display: grid;
  justify-items: center;
  row-gap: 2px;
  margin: 0;
  text-align: center;
}

.xr-xp-t b {
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.xr-xp-t span {
  color: #eaf3ff;
  font-size: 17px;
  font-weight: 800;
}

.xr-xp-go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  background: var(--gold-grad);
  color: var(--on-gold);
  font-size: 15px;
  text-decoration: none;
}

.xr-xp-go svg {
  flex: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentcolor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* En recharge, il ne reste qu'un bouton : il prend toute la largeur. */
.xr--wait .xr-acts {
  grid-template-columns: 1fr;
}

.xr--wait .xr-pack {
  filter: invert(1) grayscale(1) brightness(.8) sepia(1) hue-rotate(160deg) saturate(1.1);
  opacity: .5;
}

@keyframes xr-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Une seule passe : la barre entre par le haut du sachet et sort par le bas. */
@keyframes xr-beam {
  from { transform: translateY(-50%); }
  to { transform: translateY(50%); }
}

@keyframes xr-hum {
  from, to { filter: invert(1) grayscale(1) brightness(1.15) contrast(1.1) sepia(1) hue-rotate(160deg) saturate(2.4); }
  50% { filter: invert(1) grayscale(1) brightness(1.5) contrast(1.25) sepia(1) hue-rotate(160deg) saturate(2.8); }
}

@keyframes xr-grain {
  from { transform: translateY(0); }
  to { transform: translateY(3px); }
}

@keyframes xr-dial {
  from, to { transform: scale(1); opacity: .9; }
  50% { transform: scale(1.1); opacity: .55; }
}

@keyframes xr-slot {
  from { opacity: 0; transform: translateY(8px) scale(.94); }
  to { opacity: 1; transform: none; }
}

@keyframes xr-pop {
  from { opacity: 0; transform: scale(.88); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes xr-pulse {
  from, to { transform: scale(1); }
  50% { transform: scale(1.04); }
}

@keyframes xr-part {
  from { opacity: 1; transform: translate(-50%, -50%) rotate(var(--a)) translateY(0) rotate(0deg); }
  to { opacity: 0; transform: translate(-50%, -50%) rotate(var(--a)) translateY(calc(var(--r) * -1)) rotate(240deg); }
}

/* Sous 820 px, le sachet servi est sa version téléphone (app.css) : les masques prennent la même image, sinon le
   scanner ferait télécharger le gros fichier pour rien. */
@media (max-width: 820px) {
  .xr-grain,
  .xr-beam {
    -webkit-mask-image: url(/pack-front-mobile.webp?v=1f349fff50);
    mask-image: url(/pack-front-mobile.webp?v=1f349fff50);
  }

  .xr-art.fr .xr-grain,
  .xr-art.fr .xr-beam {
    -webkit-mask-image: url(/pack-front-fr-mobile.webp?v=aebafb98d54d);
    mask-image: url(/pack-front-fr-mobile.webp?v=aebafb98d54d);
  }

  .xr-art.ru .xr-grain,
  .xr-art.ru .xr-beam {
    -webkit-mask-image: url(/pack-front-ru-mobile.webp?v=c26605167320);
    mask-image: url(/pack-front-ru-mobile.webp?v=c26605167320);
  }

  .xr-art.es .xr-grain,
  .xr-art.es .xr-beam {
    -webkit-mask-image: url(/pack-front-es-mobile.webp?v=4f964339d55e);
    mask-image: url(/pack-front-es-mobile.webp?v=4f964339d55e);
  }
  .xr-art.de .xr-grain,
  .xr-art.de .xr-beam {
    -webkit-mask-image: url(/pack-front-de-mobile.webp?v=b647954a0d44);
    mask-image: url(/pack-front-de-mobile.webp?v=b647954a0d44);
  }
  .xr-art.it .xr-grain,
  .xr-art.it .xr-beam {
    -webkit-mask-image: url(/pack-front-it-mobile.webp?v=d0afeae819d6);
    mask-image: url(/pack-front-it-mobile.webp?v=d0afeae819d6);
  }


  .xr-art.nl .xr-grain,
  .xr-art.nl .xr-beam {
    -webkit-mask-image: url(/pack-front-nl-mobile.webp?v=4997e4c33def);
    mask-image: url(/pack-front-nl-mobile.webp?v=4997e4c33def);
  }



  .xr-art.br .xr-grain,
  .xr-art.br .xr-beam {
    -webkit-mask-image: url(/pack-front-br-mobile.webp?v=8e17dadf7aa0);
    mask-image: url(/pack-front-br-mobile.webp?v=8e17dadf7aa0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .xr,
  .xr * {
    animation: none !important;
    transition: none !important;
    will-change: auto !important;
  }

  .xs-parts { display: none; }
}

/* ---------- Le panneau garde sa taille du début à la fin ----------
   Le choix (la question, « Je le garde », « Remplacer », la note) surgissait d'un coup à la fin du balayage : le
   panneau grandissait et le pack remontait sous les yeux. Il tient maintenant sa place dès l'ouverture, en squelette
   de la forme exacte de ce qui arrive (deux boutons, deux lignes), et se remplit sur place. Le bandeau de la grosse
   rareté prend la case de la ligne « Ce pack contient », de la même hauteur : rien ne se décale. */
.xr-say, .xr-crown { grid-area: 1 / 1; align-self: center; box-sizing: border-box; display: grid; place-items: center; min-height: 44px; }
.xr-say { transition: opacity .2s ease; }
.xr-crown { padding-block: 4px; line-height: 1.2; }
.xr-crown[hidden] { display: grid !important; visibility: hidden; }
.xr-panel:has(.xr-crown:not([hidden])) .xr-say { opacity: 0; }
.xr:not(.xr--wait) .xr-choice[hidden] { display: grid !important; }
.xr-choice > *, .xr-acts .btn > * { transition: opacity .25s ease; }
.xr-choice[hidden] .xr-acts .btn > * { opacity: 0; }
.xr-choice > :is(.xr-ask, .xr-warn) { justify-self: center; border-radius: 6px; }
.xr-choice[hidden] > :is(.xr-ask, .xr-warn) { color: transparent; }
.xr-choice[hidden] > :is(.xr-ask, .xr-warn), .xr-choice[hidden] .xr-acts .btn { border-color: transparent; box-shadow: none; pointer-events: none;
  background: linear-gradient(90deg, rgba(140, 200, 255, .1) 0%, rgba(140, 200, 255, .24) 50%, rgba(140, 200, 255, .1) 100%) 0 0 / 200% 100%; animation: xr-skel 1.3s linear infinite; }
@keyframes xr-skel { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) {
  .xr-choice[hidden] .xr-acts .btn, .xr-choice[hidden] > :is(.xr-ask, .xr-warn) { animation: none; }
  .xr-say, .xr-choice > *, .xr-acts .btn > * { transition: none; }
}
