/* DraftArena v1.1.10 — Natural Divinidad podium frame.
   Keep the original 452x692 artwork unwarped. The first 35% of the card
   is reserved for the skull and flames, the final 17% for the chains.
   Percentage positioning is relative to the frame itself, not the viewport. */
.podium-grid:has(.podium-card.tier-divinity) {
  padding-top: clamp(20px, 3vw, 42px);
  padding-bottom: 28px;
  overflow: visible;
}

/* Special presentation only for the Divinidad league. Other podium cards unchanged. */
.podium-card.tier-divinity {
  position: relative;
  isolation: isolate;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  aspect-ratio: 452 / 692;
  height: auto;
  min-height: 0;
  width: 100%;
  padding: 0;
  border: 0 !important;
  border-radius: 0;
  overflow: visible;
  background: transparent !important;
  box-shadow: none !important;
  transform: none;
}
.podium-card.tier-divinity:hover { transform: translateY(-4px) !important; }

/* The frame is not stretched: its container has exactly the artwork aspect ratio. */
.podium-card.tier-divinity > .rank-frame {
  position: absolute;
  inset: 0;
  z-index: 7;
  border: 0;
  pointer-events: none;
  background-image: url('/assets/frames/divinity-original-tall.png?v=1.1.10');
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: center;
  filter: drop-shadow(0 12px 14px rgba(0, 0, 0, .65));
}

/* Only the middle transparent window holds the actual player UI. */
.podium-card.tier-divinity .podium-art {
  position: absolute;
  z-index: 2;
  top: 35%;
  left: 12%;
  right: 12%;
  height: 19%;
  flex: none;
  margin: 0;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 75%,rgba(104,48,44,.19),transparent 72%),#1b1b1b !important;
}
.podium-card.tier-divinity .podium-art::before { opacity: .2; }
.podium-card.tier-divinity .podium-picture,
.podium-card.tier-divinity.place-1 .podium-picture {
  position: absolute;
  top: auto;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 82%;
  height: 95%;
  max-width: 90%;
  margin: 0;
  object-fit: contain;
  object-position: center bottom;
}
.podium-card.tier-divinity .podium-picture.illustration,
.podium-card.tier-divinity.place-1 .podium-picture.illustration {
  width: 90%;
  max-width: 90%;
  height: 100%;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.podium-card.tier-divinity .podium-position {
  top: 2px;
  left: auto;
  right: 2px;
  transform: none;
  z-index: 8;
  min-width: 32px;
  height: 23px;
  font-size: 11px;
  border-radius: 5px;
  color: #e4c9a0;
  background: rgba(18,18,18,.9);
}
.podium-card.tier-divinity .podium-content {
  position: absolute;
  z-index: 8;
  top: 54%;
  right: 12%;
  bottom: 17%;
  left: 12%;
  display: flex;
  flex: none;
  min-height: 0;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 0;
  padding: 4px 3px;
  text-align: center;
  background: rgba(20,20,20,.86) !important;
  border: 0 !important;
}
/* The skull and ruby already communicate the rank: avoid a redundant big badge. */
.podium-card.tier-divinity .podium-league-symbol { display: none; }
.podium-card.tier-divinity .podium-name {
  font-size: clamp(15px, 1.6vw, 19px);
  line-height: 1.1;
  color: #e5bc62 !important;
}
.podium-card.tier-divinity .league-pill {
  font-size: 9px;
  min-height: 22px;
  padding: 2px 6px;
}
.podium-card.tier-divinity .league-pill .rank-crest { width: 18px; height: 18px; }
.podium-card.tier-divinity .podium-numbers { gap: 6px; justify-content: center; flex-wrap: wrap; }
.podium-card.tier-divinity .podium-numbers b { font-size: 19px; }
.podium-card.tier-divinity .podium-numbers span { font-size: 10px; }
.podium-card.tier-divinity .podium-team { gap: 4px; min-height: 20px; font-size: 9px; }
.podium-card.tier-divinity .podium-team .team-logo { width: 18px; height: 18px; }
.podium-card.tier-divinity .podium-foot {
  position: relative;
  z-index: 6;
  flex: 0 0 26px;
  min-height: 26px;
  width: auto;
  margin: 0 3px;
  padding: 0;
  border: 0 !important;
  border-radius: 0;
  background: #1b1b1b !important;
}
.podium-card.tier-divinity .podium-foot strong { font-size: 20px; color: #e5bc62; }
.podium-card.tier-divinity .podium-foot span { display: none; }

/* Avoid a postage-stamp-sized Divinidad card on tablet/mobile. */
@media(max-width:1120px) {
  .podium-grid:has(.podium-card.tier-divinity) {
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    gap: 14px;
    padding-top: 22px;
    padding-bottom: 26px;
  }
  .podium-card.place-1 {
    grid-column: 1 / -1;
    grid-row: 1;
    width: 100%;
    max-width: 362px;
    justify-self: center;
  }
  .podium-card.place-2,.podium-card.place-3 { grid-row: 2; }
}
@media(max-width:520px) {
  .podium-grid:has(.podium-card.tier-divinity) { gap: 9px; padding-top: 16px; }
  .podium-card.tier-divinity { max-width: 320px; }
  .podium-card.tier-divinity .podium-art { height: 19%; }
  .podium-card.tier-divinity .podium-picture,
  .podium-card.tier-divinity.place-1 .podium-picture { height: 95%; width: 82%; }
  .podium-card.tier-divinity .podium-picture.illustration,
  .podium-card.tier-divinity.place-1 .podium-picture.illustration { height: 100%; }
  .podium-card.tier-divinity .podium-content { gap: 3px; padding: 2px 3px; }
  .podium-card.tier-divinity .podium-foot { min-height: 22px; flex-basis: 22px; }
}

/* Keep the portrait and labels on the same dark surface instead of making
   two rectangular blocks across the transparent frame opening. */
.podium-card.tier-divinity::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 34%;
  right: 14%;
  bottom: 16%;
  left: 14%;
  border-radius: 7px;
  background: linear-gradient(180deg,rgba(32,32,32,.88),rgba(22,22,22,.96));
  pointer-events: none;
}
.podium-card.tier-divinity .podium-art,
.podium-card.tier-divinity .podium-content {
  background: transparent !important;
}
/* The placement number is already displayed in the image area. The original
   duplicate footer was overlapping the lower ornament and hanging chains. */
.podium-card.tier-divinity .podium-foot { display: none; }
