/* ==========================================================================
   2256 : HOMO SYNTHÉSIS — CARTE OBJET LOURDE / POKER CANONIQUE

   FORMAT SOURCE / ZOOM / PRINT : 750 × 1050 px
   Bord ivoire interne : 24 px
   Rayon extérieur : 24 px

   Première proposition de DA lourde : même langage visuel que la carte
   normale, mais composition verticale. Toutes les valeurs sont en pixels
   fixes. Les petites vues réduisent la carte entière via .hs-card__stage.
   ========================================================================== */

.hs-card--heavy-v2 .hs-card__stage {
  width: 750px;
  height: 1050px;
}

.hs-card--heavy-v2 .hs-card__face {
  box-sizing: border-box;
  padding: 0;
  border: 24px solid #f1eed8;
  border-radius: 24px;
  background: #f1eed8;
}

.hs-card--heavy-v2 .hs-heavy-card__face {
  display: grid;
  grid-template-rows: minmax(0, 1fr) 115px;
  overflow: hidden;
  color: #f7f4e2;
  background:
    radial-gradient(circle at 50% 37%, rgba(40, 58, 54, .44), transparent 48%),
    radial-gradient(circle at 50% 45%, #1b2826 0%, #0d1414 52%, #050909 100%);
}

.hs-card--heavy-v2 .hs-heavy-card__face::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/web/img/components/cards/background-lines2.png") right top / auto no-repeat;
  opacity: 1;
  mix-blend-mode: screen;
  filter: brightness(2) contrast(1.4);
  pointer-events: none;
}

.hs-card--heavy-v2 .hs-heavy-card__face::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 43%, transparent 38%, rgba(0,0,0,.18) 72%, rgba(0,0,0,.56) 100%);
  pointer-events: none;
}

/* ==========================================================================
   RECTO — zone haute : 702 × 887 px
   ========================================================================== */

.hs-card--heavy-v2 .hs-heavy-card__top {
  position: relative;
  min-height: 0;
  overflow: hidden;
  z-index: 1;
}

.hs-card--heavy-v2 .hs-heavy-card__line {
  position: absolute;
  left: 325px;
  right: -120px;
  top: 565px;
  height: 125px;
  z-index: 1;
  opacity: .85;
  pointer-events: none;
  transform: scaleY(-1);
  transform-origin: center;
}

.hs-card--heavy-v2 .hs-heavy-card__line svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.hs-card--heavy-v2 .hs-heavy-card__line-main,
.hs-card--heavy-v2 .hs-heavy-card__line-heavy {
  fill: none;
  stroke: #84e6ff;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.hs-card--heavy-v2 .hs-heavy-card__line-main {
  stroke-width: 4px;
  filter:
    drop-shadow(0 0 5px rgba(132,230,255,.72))
    drop-shadow(0 0 15px rgba(132,230,255,.24));
}

.hs-card--heavy-v2 .hs-heavy-card__line-heavy {
  stroke-width: 9px;
  filter:
    drop-shadow(0 0 5px rgba(132,230,255,.78))
    drop-shadow(0 0 18px rgba(132,230,255,.28));
}

.hs-card--heavy-v2 .hs-heavy-card__visual {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.hs-card--heavy-v2 .hs-heavy-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
}

.hs-card--heavy-v2 .hs-heavy-card__title {
  position: absolute;
  top: 31px;
  left: 32px;
  right: 145px;
  z-index: 3;
  margin: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: #f7f4e2;
  font-family: Oswald, "Arial Narrow", sans-serif;
  font-size: 60px;
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: .015em;
  text-align: left;
  text-transform: uppercase;
  text-wrap: balance;
}

.hs-card--heavy-v2 .hs-heavy-card__title--long { font-size: 48px; }
.hs-card--heavy-v2 .hs-heavy-card__title--very-long { font-size: 42px; }

.hs-card--heavy-v2 .hs-heavy-card__markers {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.hs-card--heavy-v2 .hs-heavy-card__tokens {
  position: absolute;
  left: 28px;
  bottom: 18px;
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 58%;
  pointer-events: auto;
}

.hs-card--heavy-v2 .hs-heavy-card__absorption {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hs-card--heavy-v2 .hs-heavy-card__absorption .hs-card__absorption-slot {
  position: absolute;
  width: 376.463px;
  height: 245.854px;
  min-width: 0;
  padding: 0;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  text-align: center;
  border: 10px dashed #8f7a36;
  border-radius: 0;
  background: rgba(216, 182, 63, .035);
  color: #d6b84f;
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .08em;
  opacity: 1;
  pointer-events: auto;
  transform-origin: center center;
}

/*
 * Centres exactement calés sur la pose réelle des cartes Blessure :
 * DMG-01 centre écran = 39.5 / 90 px
 * DMG-02 centre écran = 107.5 / 152 px
 * Le stage Heavy est réduit de 1050 px vers 205 px dans l'inventaire.
 */
.hs-card--heavy-v2 .hs-heavy-card__absorption .hs-card__absorption-slot:nth-child(1) {
  left: 12.622px;
  top: 338.049px;
  transform: rotate(-2deg);
}

.hs-card--heavy-v2 .hs-heavy-card__absorption .hs-card__absorption-slot:nth-child(2) {
  left: 360.915px;
  top: 655.610px;
  transform: rotate(2deg);
}

.hs-card--heavy-v2 .hs-card__token {
  width: 27px;
  height: 27px;
  border: 2px solid #b0432e;
}


.hs-card--heavy-v2 .hs-card__armor-marker {
  z-index: 24;
  top: 29px;
  right: 29px;
  width: 44px;
  height: 44px;
}

/* ==========================================================================
   BANDEAU LOURD — 702 × 115 px
   ========================================================================== */

.hs-card--heavy-v2 .hs-heavy-card__band {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(270px, max-content) minmax(0, 1fr) 145px;
  height: 115px;
  min-height: 0;
  box-sizing: border-box;
  border-top: 1px solid rgba(205,216,212,.20);
  background: rgba(4,10,10,.44);
}

.hs-card--heavy-v2 .hs-heavy-card__band-side {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px 24px;
  overflow: hidden;
}

.hs-card--heavy-v2 .hs-heavy-card__band-side:first-child {
  min-width: 270px;
  width: max-content;
}

.hs-card--heavy-v2 .hs-heavy-card__band-side + .hs-heavy-card__band-center,
.hs-card--heavy-v2 .hs-heavy-card__band-center + .hs-heavy-card__band-side {
  border-left: 1px solid rgba(205,216,212,.12);
}

.hs-card--heavy-v2 .hs-heavy-card__band-label {
  display: block;
  color: #a2b0ab;
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.hs-card--heavy-v2 .hs-heavy-card__band-value {
  display: block;
  margin-top: 4px;
  color: #ca8b3a;
  font-family: Oswald, "Arial Narrow", sans-serif;
  font-size: 67px;
  font-weight: 500;
  line-height: .95;
  white-space: nowrap;
  overflow: hidden;
}

.hs-card--heavy-v2 .hs-heavy-card__band-effect--compact { font-size: 51px; }
.hs-card--heavy-v2 .hs-heavy-card__band-effect--dense { font-size: 39px; letter-spacing: -.025em; }
.hs-card--heavy-v2 .hs-heavy-card__band-side--right { text-align: right; }

.hs-card--heavy-v2 .hs-heavy-card__band-center {
  min-width: 0;
  display: grid;
  place-items: center;
  padding: 0 12px;
  overflow: hidden;
  color: rgba(236,241,237,.75);
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.03em;
  text-align: center;
  white-space: nowrap;
}

/* ==========================================================================
   VERSO LOURD
   ========================================================================== */

.hs-card--heavy-v2 .hs-heavy-card__face--back {
  background:
    radial-gradient(circle at 50% 38%, rgba(70,78,76,.30), transparent 46%),
    radial-gradient(circle at 50% 46%, #242c2a 0%, #0d1414 52%, #050808 100%);
}

.hs-card--heavy-v2 .hs-heavy-card__face--back::before {
  filter: grayscale(.92) brightness(1.75) contrast(1.35);
  opacity: .92;
}

.hs-card--heavy-v2 .hs-heavy-card__back-top {
  position: relative;
  z-index: 2;
  min-height: 0;
  padding: 32px 34px 0;
  overflow: hidden;
}

.hs-card--heavy-v2 .hs-heavy-card__back-title {
  margin: 0;
  padding-right: 220px;
  text-align: left;
  color: #f7f4e2;
  font-family: Oswald, "Arial Narrow", sans-serif;
  font-size: 42px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.hs-card--heavy-v2 .hs-heavy-card__unusable {
  position: absolute;
  top: 30px;
  right: 34px;
  z-index: 3;
  padding: 9px 18px 7px;
  border: 1px solid rgba(182,91,88,.42);
  background: rgba(78,22,22,.26);
  color: #b65b58;
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.hs-card--heavy-v2 .hs-heavy-card__facts {
  margin: 34px 0 0;
  border-top: 1px solid rgba(205,216,212,.12);
}

.hs-card--heavy-v2 .hs-heavy-card__fact {
  display: grid;
  grid-template-columns: 150px 1fr;
  min-height: 66px;
  border-bottom: 1px solid rgba(205,216,212,.12);
}

.hs-card--heavy-v2 .hs-heavy-card__fact:last-child { border-bottom: 0; }
.hs-card--heavy-v2 .hs-heavy-card__fact dt,
.hs-card--heavy-v2 .hs-heavy-card__fact dd { margin: 0; padding: 16px; }

.hs-card--heavy-v2 .hs-heavy-card__fact dt {
  color: #a2b0ab;
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.hs-card--heavy-v2 .hs-heavy-card__fact dd {
  color: #f7f4e2;
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 18px;
  line-height: 1.25;
}

.hs-card--heavy-v2 .hs-heavy-card__fact-value--accent { color: #ca8b3a !important; }

.hs-card--heavy-v2 .hs-heavy-card__description {
  margin-top: 32px;
  padding-top: 24px;
  overflow: hidden;
  border-top: 1px solid rgba(205,216,212,.12);
}

.hs-card--heavy-v2 .hs-heavy-card__description h3 {
  margin: 0 0 17px;
  color: #a2b0ab;
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.hs-card--heavy-v2 .hs-heavy-card__description p {
  margin: 0;
  max-height: 300px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 10;
  color: #edead8;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 24px;
  line-height: 1.34;
  text-align: justify;
  white-space: pre-line;
}

.hs-card--heavy-v2 .hs-heavy-card__band--back { background: rgba(4,10,10,.38); }
.hs-card--heavy-v2 .hs-heavy-card__band--back .hs-heavy-card__band-value { color: #f7f4e2; }

/* ==========================================================================
   MODALE CANONIQUE LOURD

   Le stage source reste 750 × 1050 px.
   En zoom écran, le wrapper est affiché à 75 % : 562,5 × 787,5 px.
   Le host doit suivre cette taille affichée, sinon son ancienne hauteur de
   1050 px force inutilement le scroll de la modale.
   ========================================================================== */

.card-modal__card-host--heavy-canonical {
  width: 562.5px !important;
  height: 787.5px !important;
  flex: 0 0 562.5px !important;
}

.card-modal__content--heavy-canonical {
  max-width: calc(100vw - 48px) !important;
  align-items: center !important;
}
