main.wrap > .hero:has(+ .profile-trophy-strip) {
  border-end-start-radius: 0;
  border-end-end-radius: 0;
}

main.wrap > section.profile-trophy-strip {
  --rail-art-size: 60px;
  position: relative;
  display: grid;
  gap: 2px;
  min-inline-size: 0;
  margin-block-start: 0;
  padding: 6px 12px 5px;
  border: 1px solid #353237;
  border-block-start: 0;
  border-radius: 0 0 8px 8px;
  background: var(--card);
}

.profile-trophy-controls:not([hidden]) {
  display: flex;
  justify-self: end;
  gap: 6px;
}
.profile-trophy-controls button {
  display: grid;
  place-items: center;
  inline-size: 36px;
  block-size: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--raised);
  color: var(--ink);
  cursor: pointer;
}

.profile-trophy-controls button[aria-disabled="true"] { opacity: .42; cursor: default; }
.profile-trophy-controls button:not([aria-disabled="true"]):hover { border-color: #aa684c; color: #ff9a72; }
.profile-trophy-controls svg { inline-size: 16px; block-size: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.profile-trophy-track {
  display: flex;
  align-items: flex-start;
  gap: 0;
  min-inline-size: 0;
  margin: 0;
  padding: 1px 0 2px;
  overflow-x: auto;
  list-style: none;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: #684536 transparent;
  overscroll-behavior-inline: contain;
}

.profile-trophy-track:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

.profile-trophy-item {
  display: grid;
  flex: 0 0 94px;
  color: var(--ink);
  text-align: center;
  font-size: 12px;
  font-weight: 740;
  line-height: 1.3;
  scroll-snap-align: start;
}

.profile-trophy-item + .profile-trophy-item { border-inline-start: 1px solid var(--line); }
.profile-trophy-winner,
.profile-trophy-club,
.profile-trophy-mvp {
  display: grid;
  justify-items: center;
  gap: 2px;
  padding-block: 1px 3px;
  border-radius: 3px;
}

.profile-trophy-item > a { text-decoration: none; }
.profile-trophy-item > a:hover { background: #ffffff09; color: #ffab85; }
.profile-trophy-item > a:focus-visible { outline-offset: -2px; }

.profile-trophy-trigger {
  display: grid;
  place-items: center;
  padding: 0 4px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.profile-trophy-trigger:focus-visible { outline: 2px solid var(--orange); outline-offset: 0; }
.profile-trophy-tooltip:not([hidden]) {
  position: absolute;
  z-index: 5;
  padding: 5px 9px;
  border: 1px solid #614139;
  border-radius: 5px;
  background: #21191d;
  color: var(--ink);
  box-shadow: 0 4px 12px #0007;
  font-size: 12px;
  font-weight: 740;
  line-height: 1.3;
  max-inline-size: min(280px, calc(100% - 8px));
  white-space: normal;
  overflow-wrap: anywhere;
  pointer-events: none;
}

.profile-trophy-item img {
  display: block;
  inline-size: 100%;
  block-size: var(--rail-art-size);
  object-fit: contain;
  filter: drop-shadow(0 4px 5px #050505b3);
}

.profile-trophy-winner-icon { display: grid; place-items: center; block-size: var(--rail-art-size); color: #ffc47c; }
.profile-trophy-winner-icon svg { inline-size: 34px; block-size: 34px; }
.profile-trophy-winner-label { max-inline-size: 88px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
#palmares .place[id] { scroll-margin-block-start: 16px; }
#palmares .place:target { border-color: #ff8a57; }

@media (max-width: 560px) {
  main.wrap > section.profile-trophy-strip { --rail-art-size: 56px; padding-inline: 11px; }
  .profile-trophy-item { flex-basis: 90px; }
  .profile-trophy-winner-icon svg { inline-size: 32px; block-size: 32px; }
}
