/* v1.9.5.2: Full-banner trophy mounting. Loaded AFTER both legacy Trophy Room
   and cosmetic stylesheets. This is intentionally scoped to the chamber only.

   The legacy opening was a fixed ~4:1 slit despite 3:1 achievement banners.
   The art is now contained within a stable 3:1 gallery mount, and the stage
   and alcoves participate in document layout rather than overlapping at
   fixed vertical coordinates. Changing the banner's native aspect ratio does
   not move the pedestals or crop the image. */
.ga-trophy-room .ga-tr-chamber {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: auto !important;
  min-height: 0;
  padding: clamp(62px, 6vw, 80px) 0 38px;
  row-gap: clamp(22px, 3vw, 33px);
}
.ga-trophy-room .ga-tr-stage {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  width: min(86%, 1180px) !important;
  min-height: 0 !important;
  flex: 0 0 auto;
  z-index: 5;
}
.ga-trophy-room .ga-tr-feature-panel,
.ga-trophy-room .ga-tr-feature-empty {
  width: 100%;
}
.ga-trophy-room .ga-tr-framed-art {
  position: relative;
  display: block !important;
  width: 100%;
  height: auto !important;
  aspect-ratio: 3 / 1;
  min-height: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  background: radial-gradient(ellipse at center, #30435b 0%, #14243a 58%, #091523 100%) !important;
}
/* Absolute positioning ensures the img is sized against the mount's *actual*
   opening, rather than its intrinsic grid min-size (which caused overflow on
   tall source banners). object-fit:contain shows 100% of every banner. */
.ga-trophy-room .ga-tr-framed-art > img {
  position: absolute !important;
  display: block !important;
  top: 6px !important;
  left: 5px !important;
  width: calc(100% - 10px) !important;
  height: calc(100% - 12px) !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center center !important;
  border-radius: 3px;
}
/* Non-art placeholder retains a properly centered display. */
.ga-trophy-room .ga-tr-feature-empty .ga-tr-framed-art {
  display: flex !important;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 6px;
  padding: 16px !important;
}
.ga-trophy-room .ga-tr-feature-caption {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 88% !important;
  height: 95px;
  min-height: 95px !important;
  margin: 13px auto 0 !important;
  padding: 8px 15px !important;
  overflow: hidden;
  box-sizing: border-box;
}
.ga-trophy-room .ga-tr-pride-preview {
  flex-shrink: 1;
  min-height: 0;
  margin-top: 3px;
  -webkit-line-clamp: 2;
}
.ga-trophy-room .ga-tr-alcoves {
  position: relative !important;
  top: auto !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  width: min(82%, 1080px);
  height: clamp(226px, 25vw, 280px);
  flex: 0 0 auto;
  margin: 0 0 8px;
  z-index: 5;
}
.ga-trophy-room .ga-tr-floor {z-index: 1;}

@media (max-width: 700px) {
  .ga-trophy-room .ga-tr-chamber {
    padding: 60px 0 24px;
    row-gap: 19px;
  }
  .ga-trophy-room .ga-tr-stage {
    width: 93% !important;
  }
  .ga-trophy-room .ga-tr-framed-art > img {
    top: 4px !important;
    left: 3px !important;
    width: calc(100% - 6px) !important;
    height: calc(100% - 8px) !important;
  }
  .ga-trophy-room .ga-tr-feature-caption {
    height: 79px;
    min-height: 79px !important;
    max-width: 97% !important;
    margin-top: 10px !important;
    padding: 5px 9px !important;
  }
  .ga-trophy-room .ga-tr-feature-title h3 {font-size: .96rem;}
  .ga-trophy-room .ga-tr-feature-caption small {font-size: .68rem;}
  .ga-trophy-room .ga-tr-pride-preview {font-size: .64rem;}
  .ga-trophy-room .ga-tr-alcoves {
    width: 94%;
    height: 204px;
    margin-bottom: 0;
    gap: 2%;
  }
  .ga-trophy-room .ga-tr-arch {inset: 0 -2% 12px;}
}
@media (max-width: 390px) {
  .ga-trophy-room .ga-tr-feature-title {gap: 4px;}
  .ga-trophy-room .ga-tr-feature-title h3 {font-size: .88rem;}
  .ga-trophy-room .ga-tr-alcoves {height: 190px;}
}

/* v1.9.5.3: Banner-frame cosmetics decorate the real Trophy Room mount.
   This is the SAME equipped banner_frame cosmetic used on the featured profile
   plaque. The banner image remains contained by the unchanged 3:1 inner mount.
   Ornament assets sit outside the artwork rather than being baked into it. */
.ga-trophy-room .ga-tr-banner-frame {
  position: relative;
  width: 100%;
  min-width: 0;
  isolation: isolate;
}
.ga-trophy-room .ga-tr-banner-frame.border-frost,
.ga-trophy-room .ga-tr-banner-frame.border-aurora {
  --ga-room-frame-outline: #93d3f9;
  --ga-room-frame-glow: #6fb8ff66;
  --ga-room-frame-sheen: #d7f2ff;
  --ga-room-frame-corner: url('/static/media/cosmetic-frames/border-frost-corner.svg');
  border: 2px solid var(--ga-room-frame-outline);
  border-radius: 10px;
  padding: 1px;
  background: #152b43;
  box-shadow: 0 0 0 3px #15243b, 0 0 22px var(--ga-room-frame-glow),
              0 10px 25px #020913aa, inset 0 0 0 1px #ffffff55;
}
.ga-trophy-room .ga-tr-banner-frame.border-aurora {
  --ga-room-frame-outline: #7bdbd6;
  --ga-room-frame-glow: #b188eb77;
  --ga-room-frame-sheen: #d1e8ff;
  --ga-room-frame-corner: url('/static/media/cosmetic-frames/border-aurora-corner.svg');
  background: #252642;
}
.ga-trophy-room .ga-tr-banner-frame:is(.border-frost,.border-aurora)::after {
  content: '';
  position: absolute;
  inset: 1px;
  border: 1px solid var(--ga-room-frame-sheen);
  border-radius: 7px;
  opacity: .55;
  pointer-events: none;
  z-index: 6;
}
.ga-trophy-room .ga-tr-banner-frame:is(.border-frost,.border-aurora) > .ga-banner-corner {
  display: block;
  position: absolute;
  z-index: 7;
  pointer-events: none;
  width: clamp(31px, 4.4vw, 60px);
  aspect-ratio: 1;
  background: var(--ga-room-frame-corner) center / contain no-repeat;
  filter: drop-shadow(0 2px 5px var(--ga-room-frame-glow));
}
.ga-trophy-room .ga-tr-banner-frame > .ga-banner-corner-tl {top: -6px;left: -6px;}
.ga-trophy-room .ga-tr-banner-frame > .ga-banner-corner-tr {top: -6px;right: -6px;transform: scaleX(-1);}
.ga-trophy-room .ga-tr-banner-frame > .ga-banner-corner-bl {bottom: -6px;left: -6px;transform: scaleY(-1);}
.ga-trophy-room .ga-tr-banner-frame > .ga-banner-corner-br {bottom: -6px;right: -6px;transform: scale(-1,-1);}
@media (max-width: 700px) {
  .ga-trophy-room .ga-tr-banner-frame:is(.border-frost,.border-aurora) > .ga-banner-corner {
    width: clamp(23px, 7vw, 39px);
  }
}
