/* Prestige UI scoped to this page so it can sit safely beside the project's existing style.css. */
.prestige-page {
  --prestige-bg: #151918;
  --prestige-panel: #222725;
  --prestige-panel-dark: #171b1a;
  --prestige-panel-soft: #1c211f;
  --prestige-gunmetal: #353b39;
  --prestige-border: rgba(214, 210, 198, 0.2);
  --prestige-border-strong: rgba(214, 210, 198, 0.34);
  --prestige-text: #dedbd2;
  --prestige-muted: #a49f91;
  --prestige-gold: #c9b997;
  --prestige-gold-bright: #d4c29a;
  --prestige-orange: #cc6d28;
  --prestige-red: #c86a60;
  background: var(--prestige-bg);
  color: var(--prestige-text);
}

.prestige-page .prestige-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 30px 0 70px;
}

/* Main prestige list */
.prestige-page .prestige-page-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
  font-size: clamp(27px, 3vw, 38px);
  line-height: 1;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.prestige-page .prestige-page-heading::before {
  content: "◆";
  color: var(--prestige-orange);
  font-size: 0.64em;
}

.prestige-page .prestige-section {
  margin-bottom: 24px;
  border: 1px solid var(--prestige-border);
  background: rgba(0, 0, 0, 0.08);
}

.prestige-page .prestige-section-title {
  margin: 0;
  padding: 12px 17px;
  border-bottom: 1px solid var(--prestige-border);
  background: rgba(0, 0, 0, 0.28);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.055em;
}

.prestige-page .prestige-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 12px 18px 18px;
}

.prestige-page .prestige-card {
  position: relative;
  min-height: 270px;
  border: 1px solid var(--prestige-border);
  background: rgb(42 48 46 / 0.38);
  overflow: hidden;
}

.prestige-page .prestige-card:nth-child(2),
.prestige-page .prestige-card:nth-child(3),
.prestige-page .prestige-card:nth-child(5),
.prestige-page .prestige-card:nth-child(6) {
  margin-left: -1px;
}

.prestige-page .prestige-card:nth-child(n + 4) {
  margin-top: -1px;
}

.prestige-page .prestige-card-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 270px;
  padding: 24px 20px 58px;
  color: inherit;
  text-decoration: none;
}

.prestige-page .prestige-card-link:focus-visible {
  outline: 2px solid var(--prestige-orange);
  outline-offset: -3px;
}

.prestige-page .prestige-card-image,
.prestige-page .prestige-card-fallback {
  max-width: min(200px, 82%);
  max-height: 200px;
  object-fit: contain;
  filter: drop-shadow(0 10px 14px rgb(0 0 0 / 0.45));
  transition: transform 160ms ease;
}

.prestige-page .prestige-card-fallback,
.prestige-page .prestige-hero-fallback {
  display: grid;
  place-items: center;
  width: 155px;
  aspect-ratio: 1;
  border: 1px solid var(--prestige-border-strong);
  color: var(--prestige-gold);
  font-size: 46px;
  font-weight: 700;
}

.prestige-page .prestige-card-label {
  position: absolute;
  inset: auto 0 0;
  margin: 0;
  padding: 12px 16px;
  border-top: 1px solid rgb(255 255 255 / 0.05);
  background: rgb(0 0 0 / 0.5);
  color: #fff;
  text-align: center;
  font-size: 16px;
  letter-spacing: 0.04em;
  transition: color 160ms ease;
}

.prestige-page .prestige-card:hover .prestige-card-label {
  color: var(--prestige-gold-bright);
}

.prestige-page .prestige-card:hover .prestige-card-image,
.prestige-page .prestige-card:hover .prestige-card-fallback {
  transform: translateY(-3px) scale(1.02);
}

.prestige-page .prestige-intro {
  max-width: 880px;
  margin: 16px 0 0;
  color: var(--prestige-muted);
  line-height: 1.65;
}

/* Detail page, modeled on the current tarkov.dev entity-page structure. */
.prestige-page .prestige-detail-page {
  width: 100%;
}

.prestige-page .prestige-entity-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  min-height: 335px;
  margin-bottom: 28px;
  border: 1px solid var(--prestige-border);
  background: var(--prestige-panel-dark);
}

.prestige-page .prestige-entity-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.prestige-page .prestige-mobile-image {
  display: none;
}

.prestige-page .prestige-entity-titlebar {
  position: relative;
  padding: 21px 23px 18px;
  border-bottom: 1px solid var(--prestige-border);
  background: linear-gradient(180deg, rgb(54 60 57 / 0.6), rgb(31 36 34 / 0.72));
}

.prestige-page .prestige-entity-type {
  display: block;
  margin-bottom: 3px;
  color: var(--prestige-muted);
  font-size: 13px;
  letter-spacing: 0.035em;
}

.prestige-page .prestige-entity-titlebar h1 {
  margin: 0;
  padding-right: 64px;
  color: #fff;
  font-size: clamp(32px, 4vw, 49px);
  line-height: 1.05;
  font-weight: 700;
}

.prestige-page .prestige-wiki-link {
  position: absolute;
  top: 22px;
  right: 22px;
}

.prestige-page .prestige-wiki-link a {
  color: var(--prestige-gold);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-size: 13px;
}

.prestige-page .prestige-wiki-link a:hover {
  color: var(--prestige-gold-bright);
}

.prestige-page .prestige-entity-body {
  flex: 1;
  min-height: 78px;
  padding: 18px 22px;
}

.prestige-page .prestige-connections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0 20px 9px;
  gap: 14px;
}

.prestige-page .prestige-related {
  min-width: 0;
}

.prestige-page .prestige-related h3 {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px;
  color: var(--prestige-text);
  font-size: 14px;
  font-weight: 700;
}

.prestige-page .prestige-related.is-next {
  text-align: right;
}

.prestige-page .prestige-related.is-next h3 {
  justify-content: flex-end;
}

.prestige-page .prestige-related h3 svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
}

.prestige-page .prestige-related a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  color: var(--prestige-gold);
  text-decoration: none;
  line-height: 1.25;
}

.prestige-page .prestige-related.is-next a {
  justify-content: flex-end;
}

.prestige-page .prestige-related a:hover {
  color: var(--prestige-gold-bright);
  text-decoration: underline;
}

.prestige-page .prestige-neighbor-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex: 0 0 auto;
}

.prestige-page .prestige-image-panel {
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 20px;
  border: 0;
  border-left: 1px solid var(--prestige-border);
  background:
    radial-gradient(circle at 50% 46%, rgb(255 255 255 / 0.055), transparent 45%),
    #202523;
  cursor: zoom-in;
}

.prestige-page .prestige-image-panel:focus-visible {
  outline: 2px solid var(--prestige-gold);
  outline-offset: -4px;
}

.prestige-page .prestige-entity-image,
.prestige-page .prestige-mobile-image-img {
  display: block;
  width: min(100%, 300px);
  max-height: 295px;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgb(0 0 0 / 0.48));
}

.prestige-page .prestige-image-panel .prestige-hero-fallback {
  width: 220px;
  font-size: 68px;
}

/* Information sections */
.prestige-page .prestige-information-section {
  margin: 0 0 26px;
  border: 1px solid var(--prestige-border);
  background: rgb(0 0 0 / 0.08);
}

.prestige-page .prestige-information-section > h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 10px 14px;
  border-bottom: 1px solid var(--prestige-border);
  background: rgb(55 61 58 / 0.55);
  color: var(--prestige-text);
  font-size: 21px;
  line-height: 1.2;
  font-weight: 700;
}

.prestige-page .prestige-information-section > h2 svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.prestige-page .prestige-information-content {
  padding: 11px 20px 17px;
}

.prestige-page .prestige-objective-row,
.prestige-page .prestige-reward-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 11px;
  padding: 10px 4px;
  border-bottom: 1px solid rgb(255 255 255 / 0.08);
}

.prestige-page .prestige-objective-row:last-child,
.prestige-page .prestige-reward-row:last-child {
  border-bottom: 0;
}

.prestige-page .prestige-objective-check {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  border: 1px solid var(--prestige-muted);
  background: rgb(0 0 0 / 0.16);
}

.prestige-page .prestige-objective-title,
.prestige-page .prestige-reward-title {
  color: var(--prestige-text);
  font-size: 15px;
  line-height: 1.45;
}

.prestige-page .prestige-objective-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 14px;
  margin-top: 4px;
  color: var(--prestige-muted);
  font-size: 12px;
  line-height: 1.4;
}

.prestige-page .prestige-objective-meta strong {
  color: var(--prestige-gold);
  font-weight: 600;
}

.prestige-page .prestige-reward-group {
  padding: 4px 0 13px;
}

.prestige-page .prestige-reward-group + .prestige-reward-group {
  padding-top: 14px;
  border-top: 1px solid rgb(255 255 255 / 0.08);
}

.prestige-page .prestige-reward-group h3,
.prestige-page .prestige-transfer-subsection h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.prestige-page .prestige-reward-dot {
  width: 8px;
  height: 8px;
  margin: 7px 0 0 5px;
  background: var(--prestige-gold);
  transform: rotate(45deg);
}

.prestige-page .prestige-transfer-content {
  padding-top: 15px;
}

.prestige-page .prestige-transfer-subsection + .prestige-transfer-subsection {
  margin-top: 20px;
  padding-top: 17px;
  border-top: 1px solid rgb(255 255 255 / 0.1);
}

.prestige-page .prestige-transfer-list {
  max-width: 560px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.prestige-page .prestige-transfer-list li {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 6px 0;
  color: var(--prestige-text);
}

.prestige-page .prestige-transfer-list strong {
  color: var(--prestige-gold);
}

.prestige-page .prestige-transfer-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 22px;
}

.prestige-page .prestige-transfer-columns h4 {
  margin: 0 0 4px;
  color: var(--prestige-gold);
  font-size: 13px;
}

.prestige-page .prestige-transfer-columns p,
.prestige-page .prestige-muted-line {
  margin: 0;
  color: var(--prestige-muted);
  font-size: 13px;
}

.prestige-page .prestige-empty,
.prestige-page .prestige-error {
  padding: 16px 20px;
  color: var(--prestige-muted);
}

.prestige-page .prestige-error {
  margin-bottom: 18px;
  border: 1px solid rgb(200 106 96 / 0.36);
  background: rgb(200 106 96 / 0.08);
  color: #d8aaa4;
}

.prestige-page .prestige-detail-warning {
  margin-bottom: 20px;
}

/* Image viewer like tarkov.dev's click-to-enlarge behavior. */
.prestige-page .prestige-lightbox[hidden] {
  display: none;
}

.prestige-page .prestige-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 36px;
  background: rgb(0 0 0 / 0.92);
}

.prestige-page .prestige-lightbox img {
  display: block;
  max-width: min(900px, 92vw);
  max-height: 88vh;
  object-fit: contain;
}

.prestige-page .prestige-lightbox-close {
  position: fixed;
  top: 16px;
  right: 22px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 38px;
  cursor: pointer;
}

body.prestige-lightbox-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .prestige-page .prestige-entity-card {
    grid-template-columns: minmax(0, 1fr) 285px;
  }

  .prestige-page .prestige-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .prestige-page .prestige-card:nth-child(n) {
    margin: 0;
  }

  .prestige-page .prestige-card:nth-child(even) {
    margin-left: -1px;
  }

  .prestige-page .prestige-card:nth-child(n + 3) {
    margin-top: -1px;
  }
}

@media (max-width: 720px) {
  .prestige-page .prestige-shell {
    width: min(100% - 24px, 1180px);
    padding-top: 18px;
  }

  .prestige-page .prestige-entity-card {
    display: block;
  }

  .prestige-page .prestige-image-panel {
    display: none;
  }

  .prestige-page .prestige-mobile-image {
    display: grid;
    place-items: center;
    min-height: 250px;
    padding: 20px;
    border-bottom: 1px solid var(--prestige-border);
    background: #202523;
  }

  .prestige-page .prestige-mobile-image-img {
    width: min(260px, 80vw);
    max-height: 250px;
  }

  .prestige-page .prestige-connections {
    grid-template-columns: 1fr;
    padding-bottom: 14px;
  }

  .prestige-page .prestige-related.is-next,
  .prestige-page .prestige-related.is-next h3 {
    text-align: left;
    justify-content: flex-start;
  }

  .prestige-page .prestige-related.is-next a {
    justify-content: flex-start;
  }

  .prestige-page .prestige-grid {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .prestige-page .prestige-card:nth-child(n) {
    margin: 0 0 -1px;
  }

  .prestige-page .prestige-transfer-columns {
    grid-template-columns: 1fr;
  }

  .prestige-page .prestige-information-content {
    padding-inline: 13px;
  }
}

/* Resolved objective and reward content. */
.prestige-page .prestige-objective-details {
  margin-top: 6px;
}

.prestige-page .prestige-objective-detail-line {
  margin-top: 6px;
  color: var(--prestige-muted);
  font-size: 13px;
  line-height: 1.45;
}

.prestige-page .prestige-optional {
  display: inline-flex;
  margin-top: 7px;
  padding: 2px 7px;
  border: 1px solid var(--prestige-border);
  color: var(--prestige-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.prestige-page .prestige-item-list {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
  margin-top: 8px;
}

.prestige-page .prestige-item-card {
  width: 112px;
  min-width: 112px;
  border: 1px solid var(--prestige-border);
  background: rgb(0 0 0 / 0.23);
  overflow: hidden;
}

.prestige-page .prestige-item-image-wrap {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 86px;
  padding: 7px;
  background:
    radial-gradient(circle at center, rgb(255 255 255 / 0.06), transparent 62%),
    rgb(30 35 33 / 0.66);
}

.prestige-page .prestige-item-image-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.prestige-page .prestige-item-name {
  display: block;
  min-height: 35px;
  padding: 6px 7px;
  color: var(--prestige-gold-bright);
  font-size: 11px;
  line-height: 1.25;
  text-align: center;
  overflow-wrap: anywhere;
}

.prestige-page .prestige-item-count,
.prestige-page .prestige-item-fir {
  position: absolute;
  z-index: 1;
  padding: 2px 4px;
  background: rgb(0 0 0 / 0.78);
  color: #fff;
  font-size: 10px;
  line-height: 1.2;
}

.prestige-page .prestige-item-count {
  right: 4px;
  bottom: 4px;
}

.prestige-page .prestige-item-fir {
  top: 4px;
  left: 4px;
  color: var(--prestige-gold-bright);
}

.prestige-page .prestige-item-placeholder {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--prestige-border-strong);
  color: var(--prestige-muted);
  font-size: 20px;
}

.prestige-page .prestige-item-card-missing {
  opacity: 0.72;
}

.prestige-page .prestige-value-reward {
  display: inline-grid;
  place-items: center;
  min-width: 88px;
  min-height: 72px;
  padding: 12px;
  border: 1px solid var(--prestige-border);
  background: rgb(0 0 0 / 0.25);
  color: var(--prestige-gold-bright);
  font-size: 19px;
  font-weight: 700;
}

.prestige-page .prestige-simple-reward-list,
.prestige-page .prestige-category-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.prestige-page .prestige-simple-reward-list {
  max-width: 560px;
}

.prestige-page .prestige-simple-reward-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 7px 0;
  border-bottom: 1px solid rgb(255 255 255 / 0.06);
}

.prestige-page .prestige-simple-reward-list li:last-child {
  border-bottom: 0;
}

.prestige-page .prestige-simple-reward-list strong {
  color: var(--prestige-gold-bright);
}

.prestige-page .prestige-custom-reward-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.prestige-page .prestige-custom-reward {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 8px 10px;
  border: 1px solid var(--prestige-border);
  background: rgb(0 0 0 / 0.22);
}

.prestige-page .prestige-custom-reward img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.prestige-page .prestige-transfer-block {
  margin-top: 18px;
}

.prestige-page .prestige-transfer-block h4 {
  margin: 0 0 8px;
  color: var(--prestige-gold);
  font-size: 13px;
}

.prestige-page .prestige-category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.prestige-page .prestige-category-list li {
  padding: 5px 8px;
  border: 1px solid var(--prestige-border);
  background: rgb(0 0 0 / 0.2);
  color: var(--prestige-text);
  font-size: 12px;
}

.prestige-page .prestige-transfer-subsection + .prestige-transfer-subsection {
  margin-top: 22px;
}

@media (max-width: 560px) {
  .prestige-page .prestige-item-card {
    width: 96px;
    min-width: 96px;
  }

  .prestige-page .prestige-item-image-wrap {
    height: 76px;
  }
}

/* Tarkov.dev detail-page parity overrides.
   These intentionally mirror the structure used by tarkov.dev's TaskObjective,
   TaskRewards, and prestige transfer settings instead of flattening data into rows. */
.prestige-page .prestige-objectives {
  padding-top: 14px;
  padding-bottom: 18px;
}

.prestige-page .prestige-objective {
  margin: 0 0 16px;
}

.prestige-page .prestige-objective:last-child {
  margin-bottom: 0;
}

.prestige-page .prestige-objective-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 5px;
  color: var(--prestige-text);
  font-size: 15px;
  line-height: 1.35;
  font-weight: 500;
}

.prestige-page .prestige-objective-check {
  position: relative;
  display: inline-block;
  width: 17px;
  height: 17px;
  margin: 0;
  flex: 0 0 17px;
  border: 1px solid #59615f;
  background: transparent;
}

.prestige-page .prestige-objective-check.is-complete::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 6px;
  height: 10px;
  border-right: 2px solid var(--prestige-gold-bright);
  border-bottom: 2px solid var(--prestige-gold-bright);
  transform: rotate(42deg);
}

.prestige-page .prestige-objective-details {
  margin: 0 0 0 20px;
  padding: 10px;
  background: rgb(0 0 0 / 0.25);
  color: var(--prestige-text);
  font-size: 14px;
  line-height: 1.45;
}

.prestige-page .prestige-objective-detail-line {
  margin-top: 7px;
  color: var(--prestige-muted);
  font-size: 13px;
}

.prestige-page .prestige-objective-attributes {
  margin: 8px 0 0;
  padding-left: 20px;
}

.prestige-page .prestige-task-status-detail {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.prestige-page .prestige-task-status-icon {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-right: 2px;
  color: var(--prestige-muted);
  font-size: 17px;
}

.prestige-page .prestige-task-link {
  color: var(--prestige-gold-bright);
}

/* ItemImage-style cards: grid-sized image tiles with the short name on the image,
   count at the bottom-right, and no extra caption row underneath. */
.prestige-page .prestige-item-list {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 3px;
  margin: 8px 0 0;
}

.prestige-page .prestige-item-card {
  position: relative;
  display: block;
  width: var(--prestige-item-w, 64px);
  min-width: var(--prestige-item-w, 64px);
  height: var(--prestige-item-h, 64px);
  max-width: 100%;
  border: 0;
  outline: 1px solid rgb(73 81 84);
  outline-offset: -1px;
  overflow: hidden;
  background-color: rgb(29 29 29 / 0.9);
  background-image:
    linear-gradient(45deg, rgb(44 44 44 / 0.55) 25%, transparent 25%),
    linear-gradient(-45deg, rgb(44 44 44 / 0.55) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgb(44 44 44 / 0.55) 75%),
    linear-gradient(-45deg, transparent 75%, rgb(44 44 44 / 0.55) 75%);
  background-size: 12px 12px;
  background-position: 0 0, 0 6px, 6px -6px, -6px 0;
}

.prestige-page .prestige-item-card-missing {
  opacity: 0.72;
}

.prestige-page .prestige-item-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.prestige-page .prestige-item-name {
  position: absolute;
  top: 4px;
  right: 7px;
  z-index: 2;
  display: block;
  max-width: calc(100% - 14px);
  min-height: 0;
  padding: 0;
  color: #a4aeb4;
  font-size: 11px;
  line-height: 1.1;
  font-weight: 700;
  text-align: right;
  text-shadow:
    1px 1px 0 #000,
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000;
  overflow-wrap: normal;
  pointer-events: none;
}

.prestige-page .prestige-item-count,
.prestige-page .prestige-item-fir {
  position: absolute;
  right: 2px;
  z-index: 3;
  padding: 0 5px;
  background: rgb(0 0 0 / 0.8);
  color: var(--prestige-gold);
  line-height: 18px;
  text-align: center;
}

.prestige-page .prestige-item-count {
  bottom: 2px;
  font-size: 12px;
}

.prestige-page .prestige-item-fir {
  bottom: 22px;
  left: auto;
  top: auto;
  padding-inline: 3px;
  font-size: 9px;
  line-height: 14px;
}

.prestige-page .prestige-item-placeholder {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--prestige-border-strong);
  transform: translate(-50%, -50%);
  color: var(--prestige-muted);
}

/* Reward groups on tarkov.dev are simple stacked content blocks, not table rows. */
.prestige-page .prestige-reward-group {
  padding: 4px 0 0;
}

.prestige-page .prestige-reward-group + .prestige-reward-group {
  margin-top: 22px;
  padding-top: 0;
  border-top: 0;
}

.prestige-page .prestige-reward-group h3,
.prestige-page .prestige-transfer-subsection h3 {
  margin: 0 0 9px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.prestige-page .prestige-plain-list,
.prestige-page .prestige-transfer-list,
.prestige-page .prestige-category-list {
  display: block;
  max-width: none;
  margin: 0;
  padding-left: 20px;
  list-style: disc;
}

.prestige-page .prestige-plain-list li,
.prestige-page .prestige-transfer-list li,
.prestige-page .prestige-category-list li {
  display: list-item;
  margin: 0;
  padding: 2px 0;
  border: 0;
  background: transparent;
  color: var(--prestige-text);
  font-size: 14px;
  line-height: 1.45;
}

.prestige-page .prestige-customization-list,
.prestige-page .prestige-achievement-list {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 3px;
}

.prestige-page .prestige-customization-card,
.prestige-page .prestige-achievement-card {
  position: relative;
  display: inline-block;
  max-width: 220px;
  outline: 1px solid rgb(73 81 84);
  outline-offset: -1px;
  background: rgb(0 0 0 / 0.22);
  overflow: hidden;
  line-height: 0;
}

.prestige-page .prestige-customization-card img,
.prestige-page .prestige-achievement-card img {
  display: block;
  width: auto;
  height: auto;
  max-width: 220px;
  max-height: 140px;
  object-fit: contain;
}

.prestige-page .prestige-customization-name,
.prestige-page .prestige-achievement-card span {
  position: absolute;
  top: 4px;
  right: 7px;
  max-width: calc(100% - 14px);
  color: #a4aeb4;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 700;
  text-align: right;
  text-shadow:
    1px 1px 0 #000,
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000;
}

.prestige-page .prestige-achievement-card span {
  top: auto;
  right: 0;
  bottom: 0;
  left: 0;
  max-width: none;
  padding: 4px;
  background: rgb(0 0 0 / 0.8);
  text-align: left;
}

.prestige-page .prestige-transfer-block {
  margin-top: 18px;
}

.prestige-page .prestige-transfer-block h4 {
  margin: 0 0 7px;
  color: var(--prestige-text);
  font-size: 14px;
  font-weight: 700;
}

@media (max-width: 560px) {
  .prestige-page .prestige-objective-details {
    margin-left: 0;
  }

  .prestige-page .prestige-item-card {
    min-width: min(var(--prestige-item-w, 64px), 100%);
  }

  .prestige-page .prestige-customization-card img,
  .prestige-page .prestige-achievement-card img {
    max-width: min(220px, 82vw);
  }
}
