.trfr-trophees [hidden] {
  display: none !important;
}

.trfr-trophees-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: clamp(1rem, 3vw, 2rem);
  border: 1px solid #454b50;
  border-radius: .75rem;
  background: linear-gradient(145deg, #272f34, #15181b 72%);
  color: #f3f4f5;
}

.trfr-trophees-hero--with-image {
  min-block-size: clamp(22rem, 34vw, 29rem);
  padding-top: clamp(5rem, 11vw, 9rem);
}

.trfr-trophees-banner,
.trfr-trophees-hero--with-image::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.trfr-trophees-banner {
  object-fit: cover;
  object-position: center 38%;
  z-index: -2;
}

.trfr-trophees-hero--with-image::after {
  content: "";
  z-index: -1;
  background:
    linear-gradient(0deg, #111418 4%, rgb(17 20 24 / 94%) 24%, rgb(17 20 24 / 82%) 51%, transparent 100%),
    linear-gradient(90deg, rgb(17 20 24 / 46%), transparent 80%);
}

.trfr-trophees-hero-content {
  min-width: 0;
  overflow-wrap: anywhere;
}

.trfr-trophees-hero .trfr-trophees-hero-title {
  max-inline-size: 32ch;
  margin: 0;
  color: inherit;
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.5rem);
  line-height: 1.15;
  text-wrap: balance;
}

.trfr-trophees-hero-intro {
  max-inline-size: 68ch;
  margin: .75rem 0 0;
  color: #e4e7eb;
}

.trfr-trophees-hero-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1rem;
  margin-top: 1.25rem;
}

.trfr-trophees-total {
  margin: 0;
  color: #e4e7eb;
  font-weight: 600;
}

.trfr-trophees-total strong {
  color: #fff;
  font-size: 1.4rem;
  font-variant-numeric: tabular-nums;
}

.trfr-trophees-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(11rem, 100%), 1fr));
  gap: .6rem;
  margin: .65rem 0 0;
}

.trfr-trophees-stat {
  min-width: 0;
  padding: .75rem .85rem;
  border: 1px solid #494f58;
  border-radius: .5rem;
  background: rgb(27 31 36 / 92%);
}

.trfr-trophees-stat dt {
  display: flex;
  align-items: center;
  gap: .45rem;
  color: #dee2e6;
  font-size: .875rem;
}

.trfr-trophees-stat dd {
  margin: .2rem 0 0;
}

.trfr-trophees-stat dd strong {
  color: #fff;
  font-size: 1.5rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.trfr-trophees-stat dd + dd {
  color: #d9e0e7;
  font-size: .875rem;
}

.trfr-trophees-filters,
.trfr-trophees-item {
  border: 1px solid #3d3d3d;
  border-radius: .5rem;
  padding: .9rem;
  background: #1c1c1c;
}

.trfr-trophees-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: .75rem;
  margin-top: 1rem;
}

.trfr-trophees-filters > div {
  flex: 1 1 14rem;
  min-width: 0;
}

.trfr-trophees-filters > .trfr-trophees-list-filter {
  flex-basis: 10.5rem;
}

.trfr-trophees-filters > .trfr-trophees-spoiler-filter {
  flex: 0 1 auto;
}

.trfr-trophees-reveal-all {
  --bs-btn-color: var(--bs-body-color, #dee2e6);
  --bs-btn-bg: var(--bs-body-bg, #212529);
  --bs-btn-border-color: var(--bs-border-color, #495057);
  --bs-btn-hover-color: #f3f4f5;
  --bs-btn-hover-bg: #30363e;
  --bs-btn-hover-border-color: #727e8a;
  --bs-btn-active-color: var(--bs-btn-hover-color);
  --bs-btn-active-bg: var(--bs-btn-hover-bg);
  --bs-btn-active-border-color: var(--bs-btn-hover-border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  width: 100%;
}

.trfr-trophees-filters > .trfr-trophees-sections {
  flex: 0 0 100%;
  padding-top: .75rem;
  border-top: 1px solid #363636;
}

.trfr-trophees-section-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.trfr-trophees-section-button {
  --bs-btn-padding-y: .32rem;
  --bs-btn-padding-x: .75rem;
  --bs-btn-font-size: .875rem;
  --bs-btn-font-weight: 600;
  --bs-btn-border-radius: 999px;
  --bs-btn-color: #d5dae0;
  --bs-btn-bg: #24282c;
  --bs-btn-border-color: #424951;
  --bs-btn-hover-color: #f3f4f5;
  --bs-btn-hover-bg: #30363e;
  --bs-btn-hover-border-color: #727e8a;
  --bs-btn-active-color: var(--bs-btn-hover-color);
  --bs-btn-active-bg: var(--bs-btn-hover-bg);
  --bs-btn-active-border-color: var(--bs-btn-hover-border-color);
  max-inline-size: 100%;
  overflow-wrap: anywhere;
}

.trfr-trophees-section-button[aria-pressed="true"] {
  --bs-btn-color: #edf6ff;
  --bs-btn-bg: #26415a;
  --bs-btn-border-color: #759bc1;
  --bs-btn-hover-color: var(--bs-btn-color);
  --bs-btn-hover-bg: var(--bs-btn-bg);
  --bs-btn-hover-border-color: var(--bs-btn-border-color);
}

.trfr-trophees-filters :is(.trfr-trophees-reveal-all, .trfr-trophees-section-button):focus-visible {
  outline: 2px solid #8fbaff;
  outline-offset: 2px;
}

@media (max-width: 575.98px) {
  .trfr-trophees-filters > .trfr-trophees-spoiler-filter {
    flex: 1 1 11rem;
  }
}

.trfr-trophees-filters [data-trophees-search],
.trfr-trophees-filters [data-trophees-search]:focus {
  background-color: var(--bs-body-bg, #212529);
  color: var(--bs-body-color, #dee2e6);
}

.trfr-trophees-filters [data-trophees-search]::placeholder {
  color: var(--bs-secondary-color, #adb5bd);
  opacity: 1;
}

.trfr-trophees-status {
  margin: .6rem 0 0;
}

.trfr-trophees-status:empty {
  margin: 0;
}

.trfr-trophees-section {
  margin-top: 1.5rem;
  scroll-margin-top: 1rem;
}

.trfr-trophees-section-title {
  margin: 0 0 .75rem;
  font-size: 1.35rem;
}

.trfr-trophees-list,
.trfr-trophees-tags {
  margin: 0;
  padding: 0;
  list-style: none;
}

.trfr-trophees-list {
  display: grid;
  gap: .5rem;
}

.trfr-trophees-item,
.trfr-trophees-reveal {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
}

.trfr-trophees-item--spoiler {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: block;
}

.trfr-trophees-reveal {
  min-block-size: 4rem;
}

.trfr-trophees-reveal[inert] {
  filter: blur(.65rem);
  opacity: .3;
  pointer-events: none;
  user-select: none;
}

.trfr-trophees-reveal .trfr-trophees-name {
  min-block-size: 1.85rem;
  padding-inline-end: 6.25rem;
}

.trfr-trophees-spoiler-controls {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: .35rem;
  pointer-events: none;
}

.trfr-trophees-spoiler-notice {
  text-align: center;
}

.trfr-trophees-spoiler-notice .fa-lock {
  margin-inline-end: .2rem;
  color: #a5b2bf;
}

.trfr-trophees-spoiler-notice p {
  margin: 0;
  color: #b9c2cc;
  font-size: .8rem;
}

.trfr-trophees-item--revealed .trfr-trophees-spoiler-controls {
  inset: .9rem .9rem auto auto;
}

.trfr-trophees-spoiler-toggle {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background-color: #272a2e;
  pointer-events: auto;
}

@media (max-width: 575.98px) {
  .trfr-trophees-reveal .trfr-trophees-name {
    padding-inline-end: 2.65rem;
  }

  .trfr-trophees-item--revealed .trfr-trophees-spoiler-toggle span {
    display: none;
  }
}

.trfr-trophees-icon {
  width: clamp(3rem, 11vw, 4.75rem);
  height: auto;
  flex: none;
  border-radius: .35rem;
}

.trfr-trophees-entry {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.trfr-trophees-name {
  margin: 0 0 .2rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.trfr-trophees-condition {
  margin: 0;
  color: #ddd;
}

.trfr-trophees-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-top: .5rem;
}

.trfr-trophees-tag {
  display: inline-block;
  padding: .1rem .5rem;
  border: 1px solid currentColor;
  border-radius: 1rem;
  color: #ddd;
  font-size: .8rem;
}

.trfr-trophees-tag[data-grade="bronze"] { color: #e5af8c; }
.trfr-trophees-tag[data-grade="argent"] { color: #d6e0eb; }
.trfr-trophees-tag[data-grade="or"] { color: #f1d387; }
.trfr-trophees-tag[data-grade="platine"] { color: #a7dff1; }

.trfr-trophees-platforms {
  justify-content: flex-end;
  gap: .45rem;
  margin-top: .5rem;
  padding-top: .4rem;
  border-top: 1px solid #363636;
}

.trfr-trophees-brand {
  display: inline-flex;
  align-items: center;
  min-block-size: 1.75rem;
  gap: .4rem;
  padding-inline: .55rem;
  border-color: #464b53;
  background-color: #272a2e;
  color: #eceef2;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}

.trfr-trophees-brand .fa-brands {
  font-size: 1rem;
}

:is(.trfr-trophees-brand, .trfr-trophees-stat) .fa-playstation { color: #8fbaff; }
:is(.trfr-trophees-brand, .trfr-trophees-stat) .fa-xbox { color: #93d68a; }
:is(.trfr-trophees-brand, .trfr-trophees-stat) .fa-steam { color: #b5d0eb; }

.trfr-trophees-brand--steam {
  min-inline-size: 2.3rem;
  justify-content: center;
}

.trfr-trophees-help {
  margin-top: .5rem;
}

.trfr-trophees-help summary {
  width: fit-content;
  cursor: pointer;
}

.trfr-trophees-help-content {
  margin-top: .5rem;
  padding-left: .75rem;
  border-left: 2px solid #555;
}

.trfr-trophees-help-content img {
  max-width: 100%;
  height: auto;
}

.trfr-trophees-help-content > :last-child {
  margin-bottom: 0;
}
