/* pc-trophy-room-v250 isolated styles */
.pc250-open-button,
.pc250-play-button {
  flex: 0 0 auto;
}

.pc250-profile-empty {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  background: var(--panel-2);
}

.pc250-profile-empty > span {
  font-size: 28px;
}

.pc250-profile-empty strong,
.pc250-profile-empty small {
  display: block;
}

.pc250-profile-empty small {
  color: var(--muted);
  margin-top: 3px;
}

.pc250-dialog {
  width: min(980px, 96vw) !important;
  max-width: min(980px, 96vw) !important;
}

.pc250-dialog #dialog-content {
  max-width: 100%;
  overflow-x: hidden;
}

.pc250-room {
  width: 100%;
  max-height: 88dvh;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 3px 2px 18px;
  box-sizing: border-box;
}

.pc250-room *,
.pc250-room *::before,
.pc250-room *::after {
  box-sizing: border-box;
}

.pc250-room-head {
  padding-right: 44px;
}

.pc250-room-head h2 {
  margin: 7px 0 8px;
  font-size: clamp(28px, 5vw, 46px);
}

.pc250-room-head p {
  color: var(--muted);
  max-width: 680px;
}

.pc250-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 24px;
}

.pc250-summary > div {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--panel-2);
}

.pc250-summary small,
.pc250-summary strong {
  display: block;
}

.pc250-summary small {
  color: var(--muted);
  margin-bottom: 5px;
}

.pc250-summary strong {
  font-family: Georgia, serif;
  font-size: 28px;
}

.pc250-section {
  margin-top: 24px;
}

.pc250-section-head {
  margin-bottom: 12px;
}

.pc250-section-head h3 {
  margin: 4px 0 0;
}

.pc250-trophy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 12px;
}

.pc250-trophy-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(186, 126, 31, .38);
  border-radius: 17px;
  background:
    radial-gradient(
      circle at 90% 10%,
      rgba(221, 175, 82, .18),
      transparent 38%
    ),
    linear-gradient(145deg, var(--panel), var(--panel-2));
  box-shadow: 0 12px 28px rgba(13, 31, 25, .08);
}

.pc250-trophy-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #f2d58f, #b77a20);
  font-size: 30px;
  box-shadow: 0 10px 22px rgba(108, 67, 12, .2);
}

.pc250-trophy-copy {
  min-width: 0;
}

.pc250-trophy-copy > span {
  color: var(--brand);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.pc250-trophy-copy h3 {
  margin: 5px 0 9px;
  font-size: 18px;
  overflow-wrap: anywhere;
}

.pc250-trophy-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.pc250-trophy-meta small {
  color: var(--muted);
}

.pc250-trophy-meta strong {
  white-space: nowrap;
}

.pc250-award-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
}

.pc250-award-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-2);
}

.pc250-award-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--panel-3);
  font-size: 21px;
}

.pc250-award-card small,
.pc250-award-card strong,
.pc250-award-card em {
  display: block;
}

.pc250-award-card small {
  color: var(--brand);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.pc250-award-card strong {
  margin-top: 3px;
}

.pc250-award-card em {
  color: var(--muted);
  font-size: 9px;
  font-style: normal;
  margin-top: 4px;
}

.pc250-empty {
  grid-column: 1 / -1;
  display: grid;
  justify-items: center;
  text-align: center;
  padding: 30px 18px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  background: var(--panel-2);
}

.pc250-empty > span {
  font-size: 38px;
  margin-bottom: 8px;
}

.pc250-empty p {
  color: var(--muted);
  margin: 5px 0 0;
  max-width: 430px;
}

@media (max-width: 700px) {
  .pc250-dialog {
    width: calc(100vw - 20px) !important;
    max-width: calc(100vw - 20px) !important;
  }

  .pc250-room {
    max-height: 89dvh;
  }

  .pc250-room-head h2 {
    font-size: 31px;
  }

  .pc250-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .pc250-summary > div {
    padding: 11px;
  }

  .pc250-summary strong {
    font-size: 23px;
  }

  .pc250-trophy-grid,
  .pc250-award-grid {
    grid-template-columns: 1fr;
  }

  .pc250-trophy-meta {
    display: grid;
    gap: 3px;
  }

  .pc250-open-button,
  .pc250-play-button {
    width: 100%;
    margin-top: 8px;
  }
}

/* Mobile prestige profile trophy-heading correction */
@media (max-width: 640px) {
  #page-profile #profile-trophies {
    width: 100%;
  }

  #page-profile #profile-trophies + * {
    min-width: 0;
  }

  #page-profile #profile-trophies
    .pc250-open-button {
    width: 100%;
  }

  #page-profile .card:has(#profile-trophies)
    .card-heading {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 14px;
  }

  #page-profile .card:has(#profile-trophies)
    .card-heading > div {
    min-width: 0;
  }

  #page-profile .card:has(#profile-trophies)
    .pc250-open-button {
    position: static;
    width: 100%;
    max-width: 100%;
    margin: 0;
    white-space: normal;
    min-height: 48px;
    font-size: 15px;
  }
}