:root {
  --prestige-bg: #05080d;
  --prestige-panel: rgba(9, 15, 24, 0.94);
  --prestige-panel-2: rgba(13, 20, 31, 0.96);
  --prestige-gold: #d7a43a;
  --prestige-bright: #ffe08a;
  --prestige-gold-soft: rgba(215, 164, 58, 0.28);
  --prestige-line: rgba(215, 164, 58, 0.38);
  --prestige-cream: #f7efdf;
  --prestige-muted: #b7afa3;
  --prestige-shadow: rgba(0, 0, 0, 0.58);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.treasure-hall-page {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--prestige-cream);
  background:
    linear-gradient(180deg, rgba(3, 6, 11, 0.72), rgba(3, 6, 11, 0.93) 50%, #04070c 100%),
    url('assets/losttloot-detailed-map-v119.webp') center top / cover scroll,
    var(--prestige-bg);
}
body.treasure-hall-page::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle at 83% 8%, rgba(197, 220, 255, 0.12), transparent 16%),
    radial-gradient(circle at 15% 20%, rgba(38, 86, 131, 0.14), transparent 30%),
    radial-gradient(circle at 77% 45%, rgba(175, 95, 15, 0.10), transparent 25%);
}

.treasure-hall-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(4, 7, 12, 0.94);
  border-bottom: 1px solid rgba(215, 164, 58, 0.18);
  backdrop-filter: blur(10px);
}
.treasure-hall-header .site-nav a.active { color: var(--prestige-bright); }

.prestige-main {
  position: relative;
  isolation: isolate;
}

.prestige-shell {
  width: min(1540px, calc(100% - 48px));
  margin-inline: auto;
}

.prestige-hero {
  position: relative;
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: 54px;
  align-items: center;
  padding: 88px 0 72px;
}
.prestige-hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(215, 164, 58, 0.58), transparent);
}
.prestige-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--prestige-gold);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.prestige-kicker::before,
.prestige-kicker::after {
  content: '';
  width: 42px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--prestige-gold));
}
.prestige-kicker::after { transform: scaleX(-1); }
.prestige-hero h1 {
  max-width: 930px;
  margin: 22px 0 20px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(3.8rem, 6.5vw, 7rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
  color: #fff4dc;
  text-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}
.prestige-hero h1 span {
  display: block;
  color: var(--prestige-bright);
  background: linear-gradient(180deg, #fff5c8 0%, #e3ac45 48%, #9a5b15 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.prestige-hero p {
  max-width: 780px;
  margin: 0;
  color: var(--prestige-muted);
  font-size: clamp(1rem, 1.5vw, 1.22rem);
  line-height: 1.75;
}
.prestige-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.prestige-button {
  min-height: 56px;
  padding: 0 24px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0.04em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.prestige-button:hover { transform: translateY(-2px); }
.prestige-button--gold {
  color: #080808;
  background: linear-gradient(135deg, #ffe28c, #c8851e);
  box-shadow: 0 12px 30px rgba(198, 128, 24, 0.25);
}
.prestige-button--dark {
  color: var(--prestige-cream);
  background: rgba(12, 18, 28, 0.84);
  border: 1px solid var(--prestige-line);
}
.prestige-hero__visual {
  position: relative;
  min-height: 390px;
  display: grid;
  place-items: center;
}
.prestige-hero__visual::before {
  content: '';
  position: absolute;
  width: min(520px, 92%);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    conic-gradient(from 30deg, transparent 0 12%, rgba(215, 164, 58, 0.2) 18%, transparent 28% 45%, rgba(77, 137, 218, 0.17) 53%, transparent 63% 78%, rgba(189, 67, 33, 0.17) 86%, transparent 96%),
    radial-gradient(circle, rgba(215, 164, 58, 0.12), transparent 68%);
  animation: prestigeHeroOrbit 18s linear infinite;
  filter: blur(0.2px);
}
.prestige-hero__visual-frame {
  position: relative;
  width: min(600px, 100%);
  min-height: 330px;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(215, 164, 58, 0.42);
  background: rgba(5, 9, 15, 0.88);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.55), inset 0 0 60px rgba(215, 164, 58, 0.05);
}
.prestige-hero__visual-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(2, 5, 10, 0.78) 0%, transparent 42%, rgba(215, 164, 58, 0.12) 100%);
}
.prestige-hero__visual-frame img {
  width: 100%;
  height: 100%;
  min-height: 330px;
  object-fit: cover;
  object-position: 62% center;
  display: block;
  opacity: 0.9;
}
.prestige-hero__seal {
  position: absolute;
  left: 28px;
  bottom: 28px;
  z-index: 2;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(46, 31, 12, 0.98), rgba(7, 10, 16, 0.98) 70%);
  border: 2px solid rgba(215, 164, 58, 0.68);
  box-shadow: 0 0 0 10px rgba(215, 164, 58, 0.05), 0 0 40px rgba(215, 164, 58, 0.18);
}
.prestige-hero__seal img { width: 96px; height: 96px; object-fit: contain; }

.prestige-section {
  padding: 82px 0;
}
.prestige-section-heading {
  max-width: 1040px;
  margin: 0 auto 34px;
  text-align: center;
}
.prestige-section-heading h2 {
  margin: 14px 0 14px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2.6rem, 4.6vw, 5rem);
  line-height: 1;
  color: #fff3dc;
}
.prestige-section-heading p {
  max-width: 900px;
  margin: 0 auto;
  color: var(--prestige-muted);
  line-height: 1.72;
  font-size: 1.05rem;
}

.prestige-rank-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.prestige-rank-card {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(220px, 0.82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: 16px;
  padding: 26px 30px;
  border-radius: 24px;
  border: 1px solid rgba(215, 164, 58, 0.42);
  background:
    linear-gradient(145deg, rgba(12, 19, 30, 0.96), rgba(5, 9, 15, 0.96)),
    radial-gradient(circle at 10% 50%, rgba(32, 83, 124, 0.14), transparent 40%);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.38), inset 0 0 50px rgba(255, 224, 138, 0.025);
}
.prestige-rank-card::before,
.prestige-rank-card::after {
  content: '';
  position: absolute;
  width: 70px;
  height: 70px;
  pointer-events: none;
  opacity: 0.7;
}
.prestige-rank-card::before {
  left: 13px;
  top: 13px;
  border-left: 2px solid rgba(215, 164, 58, 0.66);
  border-top: 2px solid rgba(215, 164, 58, 0.66);
  border-radius: 14px 0 0 0;
}
.prestige-rank-card::after {
  right: 13px;
  bottom: 13px;
  border-right: 2px solid rgba(215, 164, 58, 0.66);
  border-bottom: 2px solid rgba(215, 164, 58, 0.66);
  border-radius: 0 0 14px 0;
}
.prestige-rank-card--wide {
  grid-column: 1 / -1;
  grid-template-columns: minmax(330px, 0.8fr) minmax(0, 1.2fr);
  min-height: 380px;
  border-color: rgba(255, 205, 91, 0.68);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.44), 0 0 45px rgba(215, 164, 58, 0.1), inset 0 0 70px rgba(255, 220, 125, 0.04);
}
.prestige-rank-card__number {
  position: absolute;
  top: 22px;
  left: 24px;
  z-index: 4;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--prestige-bright);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  background: rgba(6, 10, 17, 0.9);
  border: 1px solid rgba(215, 164, 58, 0.48);
}
.prestige-rank-card__copy {
  position: relative;
  z-index: 3;
  padding-right: 12px;
}
.prestige-rank-card__eyebrow {
  display: block;
  color: var(--prestige-gold);
  font-size: 0.69rem;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.prestige-rank-card h3 {
  margin: 10px 0 12px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2rem, 3vw, 3.15rem);
  line-height: 1;
  color: #fff3dc;
}
.prestige-rank-card p {
  margin: 0;
  color: var(--prestige-muted);
  line-height: 1.65;
}
.prestige-rank-card__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}
.prestige-rank-card__facts span {
  min-height: 82px;
  padding: 13px 15px;
  border-radius: 14px;
  display: grid;
  align-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(215, 164, 58, 0.18);
}
.prestige-rank-card__facts small {
  color: var(--prestige-gold);
  font-size: 0.63rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}
.prestige-rank-card__facts strong {
  color: #f7eddd;
  font-size: 0.95rem;
}

.prestige-crest {
  position: relative;
  z-index: 3;
  margin: 0;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 10px;
  min-width: 0;
}
.prestige-crest__stage {
  position: relative;
  width: var(--crest-size, 220px);
  height: var(--crest-size, 220px);
  display: grid;
  place-items: center;
  isolation: isolate;
}
.prestige-crest__stage::before {
  content: '';
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 216, 115, 0.12), transparent 68%);
  filter: blur(8px);
  z-index: -2;
}
.prestige-crest img {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.55));
  transform: translateZ(0);
}
.prestige-crest figcaption {
  color: #ffe9b7;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.1rem;
  text-align: center;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.75);
}
.prestige-crest--large { --crest-size: clamp(210px, 17vw, 265px); }
.prestige-crest--captain { --crest-size: clamp(300px, 27vw, 430px); }
.prestige-crest--history { --crest-size: 150px; }
.prestige-crest--profile { --crest-size: 240px; }
.prestige-crest--captain .prestige-crest__stage,
.prestige-crest--captain img {
  width: min(430px, 100%);
  height: auto;
  aspect-ratio: 3 / 2;
}
.prestige-crest--captain .prestige-crest__stage { min-height: 280px; }

.prestige-crest__ring,
.prestige-crest__spark {
  position: absolute;
  pointer-events: none;
}
.prestige-crest__ring {
  inset: 11%;
  border-radius: 50%;
  opacity: 0;
  z-index: 1;
}
.prestige-crest__ring::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: inherit;
  background: conic-gradient(from 0deg, transparent 0 12%, #9b1f2e 17%, transparent 23% 37%, #345ec7 44%, transparent 51% 65%, #f2b83f 72%, transparent 79% 91%, #565b66 96%, transparent 100%);
  -webkit-mask: radial-gradient(circle, transparent 59%, #000 61% 66%, transparent 68%);
  mask: radial-gradient(circle, transparent 59%, #000 61% 66%, transparent 68%);
  filter: blur(0.3px) drop-shadow(0 0 8px rgba(255, 191, 62, 0.55));
}
.prestige-crest__ring--two { inset: 2%; }
.prestige-crest__ring--two::before {
  background: conic-gradient(from 180deg, transparent 0 17%, rgba(42, 88, 194, 0.9) 22%, transparent 29% 47%, rgba(244, 185, 58, 0.85) 52%, transparent 60% 78%, rgba(130, 28, 39, 0.85) 83%, transparent 91%);
  -webkit-mask: radial-gradient(circle, transparent 69%, #000 71% 73%, transparent 75%);
  mask: radial-gradient(circle, transparent 69%, #000 71% 73%, transparent 75%);
}
.prestige-crest__spark {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffcf65;
  box-shadow: 0 0 16px currentColor;
  opacity: 0;
  z-index: 4;
}
.prestige-crest__spark--one { left: 5%; top: 35%; color: #b62935; }
.prestige-crest__spark--two { right: 4%; top: 24%; color: #3f70df; }
.prestige-crest__spark--three { right: 15%; bottom: 10%; color: #f2bd4a; }

.prestige-crest--relic .prestige-crest__ring,
.prestige-crest--legendary .prestige-crest__ring,
.prestige-crest--captain .prestige-crest__ring,
.prestige-crest--relic .prestige-crest__spark,
.prestige-crest--legendary .prestige-crest__spark,
.prestige-crest--captain .prestige-crest__spark {
  opacity: 1;
}
.prestige-crest--relic .prestige-crest__ring--one { animation: prestigeOrbit 6s linear infinite; }
.prestige-crest--relic .prestige-crest__ring--two { animation: prestigeOrbit 9s linear infinite reverse; }
.prestige-crest--relic img { animation: prestigeRelicFloat 4.8s ease-in-out infinite; }
.prestige-crest--legendary .prestige-crest__ring--one { animation: prestigeOrbit 5s linear infinite; }
.prestige-crest--legendary .prestige-crest__ring--two { animation: prestigeOrbit 8s linear infinite reverse; }
.prestige-crest--legendary img { animation: prestigeLegendaryPulse 5.4s ease-in-out infinite; }
.prestige-crest--captain .prestige-crest__ring { border-radius: 42%; }
.prestige-crest--captain .prestige-crest__ring--one { animation: prestigeOrbit 4.8s linear infinite; }
.prestige-crest--captain .prestige-crest__ring--two { animation: prestigeOrbit 7.5s linear infinite reverse; }
.prestige-crest--captain img { animation: prestigeCaptainPulse 5.8s ease-in-out infinite; }
.prestige-crest--relic .prestige-crest__spark,
.prestige-crest--legendary .prestige-crest__spark,
.prestige-crest--captain .prestige-crest__spark { animation: prestigeSpark 2.9s ease-in-out infinite; }
.prestige-crest__spark--two { animation-delay: -0.9s !important; }
.prestige-crest__spark--three { animation-delay: -1.8s !important; }

.prestige-purchase-section {
  position: relative;
  padding: 82px 0 100px;
}
.prestige-purchase-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(215, 164, 58, 0.58), transparent);
}
.prestige-status {
  padding: 24px;
  border-radius: 18px;
  text-align: center;
  color: var(--prestige-muted);
  background: rgba(7, 12, 20, 0.88);
  border: 1px dashed var(--prestige-line);
}
.prestige-purchase-feed {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
.prestige-purchase-card {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 190px;
  gap: 28px;
  align-items: center;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(215, 164, 58, 0.46);
  background:
    radial-gradient(circle at 88% 22%, rgba(215, 164, 58, 0.08), transparent 26%),
    linear-gradient(140deg, rgba(13, 20, 31, 0.98), rgba(5, 9, 15, 0.98));
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.38), inset 0 0 50px rgba(255, 220, 132, 0.025);
}
.prestige-purchase-card::before {
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: 18px;
  border: 1px solid rgba(215, 164, 58, 0.1);
  pointer-events: none;
}
.prestige-purchase-card__product {
  position: relative;
  z-index: 2;
  height: 225px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: #03060b;
  border: 1px solid rgba(215, 164, 58, 0.26);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.42);
}
.prestige-purchase-card__product img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.35s ease;
}
.prestige-purchase-card__product:hover img { transform: scale(1.035); }
.prestige-purchase-card__body {
  position: relative;
  z-index: 2;
  min-width: 0;
}
.prestige-purchase-card__identity {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.prestige-purchase-card__identity a {
  color: var(--prestige-bright);
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 900;
}
.prestige-purchase-card__avatar {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  overflow: hidden;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #050505;
  background: linear-gradient(135deg, #ffe28a, #a86614);
  border: 2px solid rgba(255, 218, 117, 0.74);
  font-weight: 900;
}
.prestige-purchase-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.prestige-verified-chip {
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 7px 10px;
  border-radius: 999px;
  color: #8ae5ad;
  background: rgba(31, 126, 79, 0.17);
  border: 1px solid rgba(72, 196, 121, 0.36);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}
.prestige-purchase-card h3 {
  margin: 16px 0 8px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.7rem, 2.5vw, 2.65rem);
  line-height: 1.04;
  color: #fff3df;
}
.prestige-purchase-card__body p {
  margin: 0;
  color: var(--prestige-muted);
  line-height: 1.55;
}
.prestige-purchase-card__total {
  display: grid;
  gap: 6px;
  margin-top: 22px;
  color: #ffd471;
  font-size: 1.65rem;
}
.prestige-purchase-card__total small {
  color: var(--prestige-gold);
  font-size: 0.63rem;
  letter-spacing: 0.18em;
}
.prestige-purchase-card__extra {
  display: block;
  margin-top: 10px;
  color: #8e887e;
  font-size: 0.82rem;
}
.prestige-purchase-card__rank {
  position: relative;
  z-index: 2;
  min-height: 190px;
  display: grid;
  place-items: center;
  border-left: 1px solid rgba(215, 164, 58, 0.16);
}

.prestige-footer {
  padding: 34px 20px;
  text-align: center;
  color: #8f887d;
  background: rgba(3, 6, 10, 0.92);
  border-top: 1px solid rgba(215, 164, 58, 0.16);
}
.prestige-footer a { color: #d8b65e; }
.prestige-footer span { margin: 0 9px; }
.prestige-footer p { margin: 12px 0 0; }

.collector-main-premium { padding: 64px 0 90px; }
.collector-profile-shell {
  width: min(1540px, calc(100% - 48px));
  margin-inline: auto;
}
.collector-profile-hero {
  position: relative;
  min-height: 390px;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 300px;
  gap: 30px;
  align-items: center;
  padding: 34px;
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(13, 20, 31, 0.97), rgba(5, 9, 15, 0.97));
  border: 1px solid var(--prestige-line);
  box-shadow: 0 28px 65px rgba(0, 0, 0, 0.4);
}
.collector-profile-avatar {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ffe28a, #965a12);
  border: 4px solid rgba(255, 217, 111, 0.78);
  box-shadow: 0 0 0 12px rgba(215, 164, 58, 0.06), 0 20px 45px rgba(0, 0, 0, 0.42);
  color: #050505;
  font-family: Georgia, serif;
  font-size: 4.8rem;
}
.collector-profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.collector-profile-copy h1 {
  margin: 12px 0 14px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(3rem, 6vw, 6.5rem);
  line-height: 0.95;
}
.collector-profile-copy p { color: var(--prestige-muted); }
.collector-profile-verified {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  color: #83e0a4;
  background: rgba(31, 126, 79, 0.17);
  border: 1px solid rgba(72, 196, 121, 0.36);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}
.collector-profile-rank { min-height: 280px; display: grid; place-items: center; }
.collector-stats-premium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0 72px;
}
.collector-stats-premium article {
  padding: 24px;
  border-radius: 18px;
  background: rgba(10, 16, 25, 0.94);
  border: 1px solid rgba(215, 164, 58, 0.28);
}
.collector-stats-premium span {
  display: block;
  color: var(--prestige-gold);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}
.collector-stats-premium strong {
  display: block;
  margin-top: 14px;
  font-family: Georgia, serif;
  font-size: 2.1rem;
}

@keyframes prestigeHeroOrbit { to { transform: rotate(360deg); } }
@keyframes prestigeOrbit { to { transform: rotate(360deg); } }
@keyframes prestigeRelicFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-5px) scale(1.025); }
}
@keyframes prestigeLegendaryPulse {
  0%, 100% { transform: translateY(0) scale(1); filter: drop-shadow(0 14px 24px rgba(0,0,0,.55)) drop-shadow(0 0 10px rgba(255,186,62,.18)); }
  50% { transform: translateY(-5px) scale(1.035); filter: drop-shadow(0 16px 26px rgba(0,0,0,.58)) drop-shadow(0 0 22px rgba(72,114,255,.32)); }
}
@keyframes prestigeCaptainPulse {
  0%, 100% { transform: translateY(0) scale(1); filter: drop-shadow(0 16px 26px rgba(0,0,0,.55)) drop-shadow(0 0 12px rgba(255,186,62,.2)); }
  50% { transform: translateY(-6px) scale(1.025); filter: drop-shadow(0 18px 30px rgba(0,0,0,.58)) drop-shadow(0 0 30px rgba(255,198,74,.42)); }
}
@keyframes prestigeRoyalColor {
  0% { filter: hue-rotate(0deg) saturate(1.05) drop-shadow(0 14px 24px rgba(0,0,0,.55)); }
  25% { filter: hue-rotate(18deg) saturate(1.18) drop-shadow(0 14px 24px rgba(0,0,0,.55)); }
  50% { filter: hue-rotate(-14deg) saturate(1.12) drop-shadow(0 14px 24px rgba(0,0,0,.55)); }
  75% { filter: hue-rotate(28deg) saturate(1.2) drop-shadow(0 14px 24px rgba(0,0,0,.55)); }
  100% { filter: hue-rotate(0deg) saturate(1.05) drop-shadow(0 14px 24px rgba(0,0,0,.55)); }
}
@keyframes prestigeSpark {
  0%, 100% { transform: scale(0.65); opacity: 0.2; }
  50% { transform: scale(1.45); opacity: 1; }
}

@media (max-width: 1180px) {
  .prestige-hero { grid-template-columns: 1fr; }
  .prestige-hero__visual { min-height: 330px; }
  .prestige-rank-card { grid-template-columns: 200px 1fr; }
  .prestige-purchase-card { grid-template-columns: 220px minmax(0, 1fr) 170px; }
  .collector-profile-hero { grid-template-columns: 160px 1fr; }
  .collector-profile-rank { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .prestige-shell,
  .collector-profile-shell { width: min(100% - 24px, 1540px); }
  .prestige-rank-grid { grid-template-columns: 1fr; }
  .prestige-rank-card--wide { grid-column: auto; }
  .prestige-rank-card,
  .prestige-rank-card--wide { grid-template-columns: 1fr; text-align: center; }
  .prestige-rank-card__facts { max-width: 520px; margin: 22px auto 0; }
  .prestige-purchase-card { grid-template-columns: 190px 1fr; }
  .prestige-purchase-card__rank { grid-column: 1 / -1; border-left: 0; border-top: 1px solid rgba(215,164,58,.16); padding-top: 18px; }
  .collector-profile-hero { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .collector-stats-premium { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .prestige-hero { padding-top: 60px; min-height: 0; }
  .prestige-hero h1 { font-size: 3.25rem; }
  .prestige-hero__visual-frame { min-height: 260px; }
  .prestige-hero__visual-frame img { min-height: 260px; }
  .prestige-hero__seal { width: 108px; height: 108px; left: 18px; bottom: 18px; }
  .prestige-hero__seal img { width: 70px; height: 70px; }
  .prestige-section { padding: 60px 0; }
  .prestige-rank-card { padding: 24px 18px; }
  .prestige-rank-card__facts { grid-template-columns: 1fr; }
  .prestige-crest--large { --crest-size: 220px; }
  .prestige-crest--captain { --crest-size: 280px; }
  .prestige-purchase-card { grid-template-columns: 1fr; padding: 18px; }
  .prestige-purchase-card__product { height: 230px; }
  .prestige-purchase-card__rank { grid-column: auto; }
  .prestige-crest--history { --crest-size: 170px; }
  .collector-profile-avatar { width: 135px; height: 135px; font-size: 3.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
.prestige-hero__seal img { min-height: 0 !important; object-fit: contain !important; }


/* LOSTTLOOT V12.6.6 performance refinements */
.prestige-section{content-visibility:auto;contain-intrinsic-size:720px}.prestige-rank-card,.prestige-purchase-card,.collector-stats-premium article{content-visibility:auto;contain-intrinsic-size:420px;contain:layout style}
.prestige-crest img{will-change:transform}
.prestige-crest__ring,.prestige-crest__spark{will-change:transform,opacity}
.prestige-crest--relic .prestige-crest__ring,
.prestige-crest--relic img,
.prestige-crest--legendary .prestige-crest__ring,
.prestige-crest--legendary img,
.prestige-crest--captain .prestige-crest__ring,
.prestige-crest--captain img,
.prestige-crest--captain .prestige-crest__spark{animation-play-state:paused!important}
.prestige-crest--active.prestige-crest--relic .prestige-crest__ring,
.prestige-crest--active.prestige-crest--relic img,
.prestige-crest--active.prestige-crest--legendary .prestige-crest__ring,
.prestige-crest--active.prestige-crest--legendary img,
.prestige-crest--active.prestige-crest--captain .prestige-crest__ring,
.prestige-crest--active.prestige-crest--captain img,
.prestige-crest--active.prestige-crest--captain .prestige-crest__spark{animation-play-state:running!important}
@keyframes prestigeRelicFloat{0%,100%{transform:translateY(0) scale(1)}50%{transform:translateY(-4px) scale(1.025)}}
@keyframes prestigeLegendaryPulse{0%,100%{transform:translateY(0) scale(1)}50%{transform:translateY(-5px) scale(1.025)}}
@keyframes prestigeCaptainPulse{0%,100%{transform:translateY(0) scale(1)}50%{transform:translateY(-5px) scale(1.02)}}
@media(max-width:760px){body.treasure-hall-page{background-attachment:scroll}.treasure-hall-header{backdrop-filter:none;background:rgba(4,7,12,.98)}}
@media(prefers-reduced-motion:reduce){.prestige-hero__visual::before,.prestige-crest__ring,.prestige-crest__spark,.prestige-crest img{animation:none!important}}


/* Losttloot V12.6.18 — badge frame fit refinements */
.prestige-rank-card{
  align-items:center;
}
.prestige-rank-card__copy,
.prestige-rank-card__facts,
.prestige-rank-card__facts span,
.prestige-rank-card h3,
.prestige-rank-card p{
  min-width:0;
}
.prestige-rank-card .prestige-crest{
  align-self:center;
  justify-self:center;
  width:100%;
}
.prestige-rank-card .prestige-crest__stage{
  max-width:100%;
  margin-inline:auto;
}
.prestige-rank-card .prestige-crest img{
  max-width:100%;
  max-height:100%;
}
.prestige-rank-card--legendary{
  grid-template-columns:minmax(200px, 0.75fr) minmax(0, 1.25fr);
}
.prestige-rank-card--legendary .prestige-crest--large{
  --crest-size:clamp(185px, 14.5vw, 228px);
}
.prestige-rank-card--legendary .prestige-crest__stage{
  padding:10px;
}
.prestige-rank-card--legendary .prestige-crest__ring{ inset:14%; }
.prestige-rank-card--legendary .prestige-crest__ring--two{ inset:6%; }
.prestige-rank-card--legendary .prestige-crest__spark--one{ left:9%; top:34%; }
.prestige-rank-card--legendary .prestige-crest__spark--two{ right:9%; top:19%; }
.prestige-rank-card--legendary .prestige-crest__spark--three{ right:18%; bottom:12%; }
.prestige-rank-card--captain .prestige-crest{
  width:100%;
  justify-self:center;
}
.prestige-rank-card--captain .prestige-crest__stage{
  width:min(410px,100%);
  min-height:260px;
  margin-inline:auto;
}


/* Losttloot V12.6.19 — legendary badge containment refinement */
.prestige-rank-card--legendary{
  grid-template-columns:minmax(240px, 0.72fr) minmax(0, 1.28fr);
  padding-left:34px;
}
.prestige-rank-card--legendary .prestige-crest{
  padding-left:6px;
}
.prestige-rank-card--legendary .prestige-crest--large{
  --crest-size:clamp(168px, 12.4vw, 198px);
}
.prestige-rank-card--legendary .prestige-crest__stage{
  width:calc(var(--crest-size) + 22px);
  height:calc(var(--crest-size) + 22px);
  padding:0;
  margin-inline:auto;
}
.prestige-rank-card--legendary .prestige-crest img{
  width:88%;
  height:88%;
  margin:auto;
}
.prestige-rank-card--legendary .prestige-crest__ring{ inset:15%; }
.prestige-rank-card--legendary .prestige-crest__ring--two{ inset:8%; }
.prestige-rank-card--legendary .prestige-crest__spark--one{ left:12%; top:38%; }
.prestige-rank-card--legendary .prestige-crest__spark--two{ right:12%; top:22%; }
.prestige-rank-card--legendary .prestige-crest__spark--three{ right:18%; bottom:15%; }
