/* t115c — compact, deterministic card preview inside ?card=1 iframes.
   The iframe viewport IS the card. Never paint an opaque page background (OBS). */
html.is-card-preview,
html.is-card-preview body {
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  overflow: hidden !important;
  background: transparent !important;
}
html.is-card-preview #mt-card-fit {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  transform-origin: 0 0;
}
html.is-card-preview #stage,
html.is-card-preview body > #stage {
  width: 100%;
  height: 100%;
}

/* t117 — Alerte: freeze entrance, keep username fully visible in the card. */
html.is-card-preview .acx.is-in .acx-hero,
html.is-card-preview .acx.is-in .acx-user,
html.is-card-preview .acx.is-in .acx-meta,
html.is-card-preview .acx.is-in .acx-frame,
html.is-card-preview .acx.is-in .acx-panel,
html.is-card-preview .acx.is-in .acx-gift,
html.is-card-preview .acx-sticker.is-in .acx-side > * {
  animation: none !important;
}
html.is-card-preview .acx-parts,
html.is-card-preview .acx-pt { display: none !important; }
html.is-card-preview .alert-root,
html.is-card-preview .alert-root.is-on { opacity: 1 !important; }
html.is-card-preview .acx-name {
  font-size: 22px !important;
  white-space: nowrap;
  overflow: visible;
  max-width: none;
}
html.is-card-preview .acx-user,
html.is-card-preview .acx,
html.is-card-preview .alert-root {
  overflow: visible;
  max-width: none;
}
html.is-card-preview .acx-combo { font-size: 26px; right: -28px; top: -8px; }

html.is-card-preview .acx-classique .acx-hero::before {
  inset: -8%;
  opacity: .65;
  filter: none;
}
html.is-card-preview .acx-gift {
  filter: drop-shadow(0 3px 5px rgba(0,0,0,.4));
}
