/* Object cards share the character-card 5/7 silhouette. No bitmap filters. */
.fm-object-card,
.fm-gear-card.fm-object-card,
.gear.fm-object-card {
  --gear-edge: #b5c9bd;
  --gear-deep: #445f52;
  position: relative;
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 5 / 7;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 13px;
  overflow: hidden;
  isolation: isolate;
  container-type: inline-size;
  background: #0b1416;
  color: #fff;
  box-shadow: 0 10px 24px #0007;
  text-align: left;
  cursor: pointer;
}
.fm-object-card::before {
  content: "";
  display: block;
  padding-top: 140%;
}
.fm-object-card[data-equipment-rarity="peu_commun"] { --gear-edge: #a2e5bb; --gear-deep: #3d7454; }
.fm-object-card[data-equipment-rarity="rare"] { --gear-edge: #9ac9ff; --gear-deep: #3c65a0; }
.fm-object-card[data-equipment-rarity="super_rare"] { --gear-edge: #d3b5ff; --gear-deep: #71519c; }
.fm-object-card[data-equipment-rarity="ultra_rare"] { --gear-edge: #ffcc8a; --gear-deep: #ac7137; }
.fm-object-card[data-equipment-rarity="legendaire"] { --gear-edge: #ffe5a4; --gear-deep: #a4752e; }
.fm-object-card[data-equipment-rarity="mythique"] { --gear-edge: #ffb7cd; --gear-deep: #962f59; }
.fm-object-card[data-equipment-rarity="secrete"] { --gear-edge: #d9ffff; --gear-deep: #6bbfc8; }
.fm-object-art,
.fm-object-shade,
.fm-object-foil,
.fm-object-frame {
  position: absolute;
  display: block;
  inset: 0;
  pointer-events: none;
}
.fm-object-art {
  z-index: 0;
  background: radial-gradient(ellipse at 50% 34%, var(--gear-deep), #071114 75%);
}
.fm-object-card .fm-object-art img {
  display: block;
  position: absolute;
  inset: 2% 2% auto;
  width: 96%;
  height: 78%;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  object-fit: contain;
  object-position: center 12%;
  background: transparent;
}
.fm-object-shade {
  z-index: 1;
  background: linear-gradient(180deg, #06101666, transparent 22%, transparent 46%,
    #071216dd 65%, #071216 84%);
}
.fm-object-frame {
  z-index: 5;
  background: url('./equipment-frame.svg') center / 100% 100% no-repeat;
  box-shadow: inset 0 0 0 2px var(--gear-edge), inset 0 0 0 5px #091215;
  border-radius: inherit;
}
.fm-object-card[data-equipment-rarity="peu_commun"] .fm-object-frame {
  background-image: url('./equipment-frame-peu_commun.svg');
}
.fm-object-card[data-equipment-rarity="rare"] .fm-object-frame {
  background-image: url('./equipment-frame-rare.svg');
}
.fm-object-card[data-equipment-rarity="super_rare"] .fm-object-frame {
  background-image: url('./equipment-frame-super_rare.svg');
}
.fm-object-card[data-equipment-rarity="ultra_rare"] .fm-object-frame {
  background-image: url('./equipment-frame-ultra_rare.svg');
}
.fm-object-card[data-equipment-rarity="legendaire"] .fm-object-frame {
  background-image: url('./equipment-frame-legendaire.svg');
}
.fm-object-card[data-equipment-rarity="mythique"] .fm-object-frame {
  background-image: url('./equipment-frame-mythique.svg');
}
.fm-object-card[data-equipment-rarity="secrete"] .fm-object-frame {
  background-image: url('./equipment-frame-secrete.svg');
}
.fm-object-heading {
  position: absolute;
  z-index: 4;
  inset: 5% 7% auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--gear-edge);
}
.fm-object-kind {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 7px;
  background: #061014cf;
  border: 1px solid #ffffff26;
  border-radius: 5px;
  font: 600 8px/1.1 Inter, system-ui, sans-serif;
  font-size: clamp(6px, 2.9cqi, 9px);
  letter-spacing: .16em;
}
.fm-object-kind svg { width: 13px; height: 13px; }
.fm-object-rank {
  display: grid;
  place-items: center;
  width: 27px;
  height: 31px;
  width: clamp(18px, 10cqi, 32px);
  height: clamp(21px, 11cqi, 36px);
  color: #071014;
  background: linear-gradient(130deg, #fff, var(--gear-edge) 45%, var(--gear-deep));
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  font: 800 12px/1 Inter, system-ui, sans-serif;
  font-size: clamp(8px, 4.1cqi, 14px);
}
.fm-object-copy {
  position: absolute;
  z-index: 4;
  left: 7%;
  right: 7%;
  bottom: 7%;
  display: flex;
  flex-direction: column;
  gap: 5px;
  gap: clamp(3px, 1.65cqi, 6px);
  min-width: 0;
}
.fm-object-universe {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--gear-edge);
  font: 600 9px/1.3 Inter, system-ui, sans-serif;
  font-size: clamp(7px, 3.2cqi, 10px);
  letter-spacing: .06em;
}
.fm-object-card .fm-object-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  color: #fff7e6;
  font: 600 19px/1.1 Fredoka, Georgia, serif;
  font-size: clamp(11px, 6.3cqi, 21px);
  text-shadow: 0 2px 5px #000;
}
.fm-object-rule {
  display: block;
  height: 1px;
  flex: none;
  background: linear-gradient(90deg, var(--gear-edge), #ffffff12);
}
.fm-object-card .fm-object-power {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
  color: #dee5e3;
  font: 400 11px/1.35 Inter, system-ui, sans-serif;
  font-size: clamp(8px, 3.65cqi, 12px);
}
.fm-object-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--gear-edge);
  font: 700 8px/1.2 Inter, system-ui, sans-serif;
  font-size: clamp(6px, 3cqi, 10px);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.fm-object-foil { display: none; z-index: 2; opacity: .22; }
.fm-object-card:is([data-equipment-rarity="legendaire"],
[data-equipment-rarity="mythique"], [data-equipment-rarity="secrete"]) .fm-object-foil {
  display: block;
  background: linear-gradient(115deg, transparent 10%, #e3a5fa14 22%, #aff7ff66 38%,
    #fff9cc99 45%, #efabff55 51%, transparent 64%);
}
.fm-object-card[data-equipment-rarity="secrete"] .fm-object-foil {
  opacity: .26;
  background: repeating-linear-gradient(118deg, transparent 0 13%, #a5edff33 19%,
    #fbabe566 24%, #fff4bf66 28%, transparent 37%);
}
.fm-object-card:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.fm-object-card[aria-pressed="true"] {
  outline: 3px solid #55e6a4;
  outline-offset: 3px;
}
.fm-object-inspect {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}
.fm-object-inspect .fm-object-inspect-card { cursor: default; justify-self: center; }
.fm-object-details { min-width: 0; }
.fm-object-details h3 {
  margin: 8px 0 24px;
  color: #fff7e6;
  font: 600 28px/1.15 Fredoka, Georgia, serif;
}
.fm-object-details h4 {
  margin: 20px 0 7px;
  color: #e7d3a2;
  font: 600 12px/1.3 Inter, system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.fm-object-details p { color: #c2cfcb; font: 400 14px/1.65 Inter, system-ui, sans-serif; }
.fm-object-details .fm-object-eyebrow { color: #8dc6b6; font-size: 11px; letter-spacing: .06em; }
.fm-object-details .fm-object-credit { margin-top: 28px; color: #829c91; font-size: 11px; }
.fm-gear-grid { align-items: start; }
.fm-gear-content .fm-object-card { cursor: pointer; }
.fm-gear-back { aspect-ratio: 5 / 7; }
@media (max-width: 600px) {
  .fm-object-inspect { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .fm-object-inspect .fm-object-inspect-card { width: min(100%, 280px); }
  .fm-object-details h3 { margin: 8px 0 12px; font-size: 23px; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .fm-object-card:hover .fm-object-foil,
  .fm-object-card:focus-visible .fm-object-foil { animation: fm-object-glint .9s ease-out 1; }
}
@keyframes fm-object-glint {
  from { transform: translateX(-45%); opacity: .1; }
  50% { opacity: .38; }
  to { transform: translateX(35%); opacity: .22; }
}
@media (prefers-reduced-motion: reduce) {
  .fm-object-foil { animation: none !important; transform: none !important; }
}
.fm-gear-content-filters label[hidden] { display: none; }

/* Cadre des lieux (18 novembre) : la base des objets, trois différences. L'illustration s'ouvre en arche comme une fenêtre
   sur le décor ; le liseré est double et fin ; des repères de boussole marquent le milieu des quatre bords. */
.fm-location-card .fm-object-art { background: radial-gradient(ellipse at 50% 30%, var(--gear-deep), #071114 78%); }
.fm-location-card .fm-object-art img {
  inset: 4.5% 5% auto;
  width: 90%;
  height: 66%;
  object-fit: cover;
  object-position: center 40%;
  border-radius: 46% 46% 6px 6px / 30% 30% 6px 6px;
  box-shadow: 0 0 0 1.5px var(--gear-edge), 0 0 0 4px #091215, 0 0 0 5px color-mix(in srgb, var(--gear-edge) 45%, transparent);
}
.fm-location-card .fm-object-shade {
  background: linear-gradient(180deg, transparent 52%, #071216e6 70%, #071216 86%);
}
.fm-location-card .fm-location-frame {
  background: none;
  box-shadow: inset 0 0 0 1.5px var(--gear-edge), inset 0 0 0 4px #091215,
    inset 0 0 0 5px color-mix(in srgb, var(--gear-edge) 55%, transparent);
}
.fm-location-frame i {
  position: absolute;
  width: 9px;
  height: 9px;
  width: clamp(6px, 3.4cqi, 11px);
  height: clamp(6px, 3.4cqi, 11px);
  background: linear-gradient(135deg, #fff, var(--gear-edge) 55%, var(--gear-deep));
  transform: translate(-50%, -50%) rotate(45deg);
  box-shadow: 0 0 0 2px #091215;
}
.fm-location-frame i:nth-child(1) { left: 50%; top: 2.5px; }
.fm-location-frame i:nth-child(2) { left: calc(100% - 2.5px); top: 50%; }
.fm-location-frame i:nth-child(3) { left: 50%; top: calc(100% - 2.5px); }
.fm-location-frame i:nth-child(4) { left: 2.5px; top: 50%; }
.fm-location-card .fm-object-heading { inset: 8% 9% auto; }
.fm-location-card .fm-object-kind { letter-spacing: .2em; }

/* Ouverture d'un paquet Objets & lieux (18 novembre) : seule la révélation reste à l'écran, tout en haut. */
html.fm-gear-revealing #page-packs .home-main > :not(#revealZone),
html.fm-gear-revealing #page-packs .home-head,
html.fm-gear-revealing #page-packs #homeSide,
html.fm-gear-revealing #page-packs #bigPullsZone{display:none !important}
html.fm-gear-revealing #page-packs #revealZone{order:-1;grid-column:1/-1;grid-row:auto;padding-top:12px}
