// Rôle : contient les styles spécifiques aux pages Monster Hunter Wilds.
.monster-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.endemic-grid {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

.mhwilds-card {
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background:
    linear-gradient(rgba(16, 20, 38, 0.88), rgba(16, 20, 38, 0.88)) padding-box,
    radial-gradient(circle at 100% 0%, rgba(34, 211, 238, 0.42), transparent 28%) border-box,
    linear-gradient(135deg, rgba(246, 196, 83, 0.62) 0%, rgba(246, 196, 83, 0.42) 72%, rgba(34, 211, 238, 0.24) 100%) border-box;
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--duration-fast) var(--ease-standard),
    border-color var(--duration-fast) var(--ease-standard),
    background-color var(--duration-fast) var(--ease-standard);
}

@supports (corner-shape: scoop) {
  .mhwilds-card {
    corner-shape: scoop;
  }
}

.mhwilds-card:hover {
  transform: none;
  border-color: transparent;
  background:
    linear-gradient(rgba(21, 26, 48, 0.96), rgba(21, 26, 48, 0.96)) padding-box,
    linear-gradient(135deg, rgba(139, 92, 246, 0.9), rgba(196, 181, 253, 0.72)) border-box;
  box-shadow:
    var(--shadow-sm),
    0 0 18px rgba(139, 92, 246, 0.22),
    0 0 34px rgba(196, 181, 253, 0.12);
}

.monster-card {
  height: 285px;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  perspective: 1200px;
}

.monster-card:hover,
.monster-card:focus-visible {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.mhwilds-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 420ms var(--ease-standard);
}

.monster-card:hover .mhwilds-card-inner,
.monster-card:focus-visible .mhwilds-card-inner,
.monster-card.is-flipped .mhwilds-card-inner {
  will-change: transform;
}

.monster-card.is-flipped .mhwilds-card-inner {
  transform: rotateY(180deg);
}

.mhwilds-card-face {
  position: absolute;
  inset: 0;
  contain: paint;
  display: flex;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background:
    linear-gradient(rgba(16, 20, 38, 0.92), rgba(16, 20, 38, 0.92)) padding-box,
    radial-gradient(circle at 100% 0%, rgba(34, 211, 238, 0.42), transparent 28%) border-box,
    linear-gradient(135deg, rgba(246, 196, 83, 0.62) 0%, rgba(246, 196, 83, 0.42) 72%, rgba(34, 211, 238, 0.24) 100%) border-box;
  box-shadow: var(--shadow-sm);
  backface-visibility: hidden;
}

@supports (corner-shape: scoop) {
  .mhwilds-card-face {
    corner-shape: scoop;
  }
}

.mhwilds-flip-indicator {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(165, 180, 252, 0.12);
  border-radius: var(--radius-md);
  background: rgba(7, 10, 24, 0.36);
  color: var(--color-text-muted);
  pointer-events: none;
  box-shadow: none;
  opacity: 0.78;
  transition:
    border-color var(--duration-fast) var(--ease-standard),
    background-color var(--duration-fast) var(--ease-standard),
    color var(--duration-fast) var(--ease-standard),
    opacity var(--duration-fast) var(--ease-standard),
    box-shadow var(--duration-fast) var(--ease-standard);
}

.mhwilds-flip-indicator .ui-icon {
  width: 18px;
  height: 18px;
}

.mhwilds-card-front {
  transform: rotateY(0deg);
}

.mhwilds-card-back {
  transform: rotateY(180deg);
}

.monster-card:hover .mhwilds-flip-indicator {
  border-color: rgba(196, 181, 253, 0.22);
  background: rgba(16, 20, 38, 0.52);
  color: #c4b5fd;
  opacity: 1;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.1);
}

.monster-card:hover .mhwilds-card-face {
  border-color: transparent;
  background:
    linear-gradient(rgba(16, 20, 38, 0.95), rgba(16, 20, 38, 0.95)) padding-box,
    linear-gradient(135deg, rgba(139, 92, 246, 0.76), rgba(196, 181, 253, 0.58)) border-box;
  box-shadow:
    var(--shadow-sm),
    0 0 14px rgba(139, 92, 246, 0.14),
    0 0 24px rgba(196, 181, 253, 0.08);
}

.mhwilds-card-art {
  display: grid;
  min-height: 112px;
  place-items: center;
  border-bottom: 1px solid rgba(246, 196, 83, 0.42);
  background:
    radial-gradient(circle at 50% 40%, rgba(139, 92, 246, 0.16), transparent 46%),
    rgba(5, 7, 17, 0.36);
}

.endemic-card .mhwilds-card-art {
  min-height: 104px;
}

.mhwilds-card-art img {
  max-width: min(78%, 230px);
  max-height: 92px;
  object-fit: contain;
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.44));
}

.endemic-card .mhwilds-card-art img {
  max-height: 78px;
}

.mhwilds-card-body {
  padding: 12px;
}

.mhwilds-card-body h2 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.monster-card .eyebrow {
  margin-bottom: 6px;
}

.mhwilds-card-back .mhwilds-card-body {
  padding: 10px 12px 6px;
}

.mhwilds-card-back .eyebrow {
  margin-bottom: 4px;
}

.mhwilds-icon-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: var(--space-2);
  align-items: start;
  margin-top: 4px;
}

.mhwilds-icon-row > span {
  color: var(--color-text-muted);
  font-size: 0.82rem;
  line-height: 1.25;
}

.mhwilds-icon-row > div {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.mhwilds-icon-row img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.mhwilds-icon-row em {
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  color: var(--color-text-muted);
  font-style: normal;
}

.damage-table-wrap {
  min-height: 0;
  max-height: 218px;
  overflow-x: hidden;
  overflow-y: auto;
  margin: 0 10px 10px;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.damage-table {
  width: 100%;
  min-width: 0;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  font-size: 0.62rem;
}

.damage-table th,
.damage-table td {
  width: 9%;
  padding: 2px 1px;
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  text-align: center;
}

.damage-table th:first-child,
.damage-table td:first-child {
  position: sticky;
  left: 0;
  width: 26%;
  max-width: 26%;
  overflow: hidden;
  border-left: 1px solid var(--color-border);
  background: var(--color-bg-surface-alt);
  color: var(--color-text-secondary);
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.damage-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(21, 26, 48, 0.96);
}

.damage-table th:first-child {
  z-index: 3;
}

.damage-table img {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.mobile-nav {
  display: none;
}
