/* Oeffentliche Spielerprofile: gemeinsamer Rahmen fuer alle Detailansichten */

body.player-profile-page {
  min-width: 0;
}

.player-profile-layout {
  padding: 20px 30px 38px;
}

.player-profile-content {
  min-width: 0;
}

.player-profile-content > * + * {
  margin-top: 22px;
}

.player-profile-breadcrumb {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.86rem;
}

.player-profile-breadcrumb a {
  color: inherit;
  font-weight: 750;
}

.player-profile-breadcrumb span {
  margin: 0 8px;
  color: var(--gold);
}

.card-stage--profile {
  height: 286px;
}

.player-profile-top100-pocket {
  top: 20px;
  height: 265px;
}

.player-profile-top100-card {
  position: absolute;
  top: 30px;
  left: 43px;
  display: flex;
  width: 218px;
  height: 276px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 2px solid #202820;
  border-radius: 14px;
  color: var(--green-950);
  background:
    radial-gradient(circle at 50% 34%, rgb(221 163 0 / 18%), transparent 36%),
    linear-gradient(145deg, #fff, #f7f5ed);
  box-shadow:
    inset 0 0 0 4px #fff,
    inset 0 0 0 6px rgb(195 136 15 / 32%),
    11px 13px 18px rgb(0 0 0 / 34%);
  text-align: center;
  transform: rotate(-7deg);
}

.card-stage--profile-animated .player-profile-top100-card {
  opacity: 0;
  animation: player-profile-card-rise 820ms cubic-bezier(0.18, 0.82, 0.2, 1) 90ms both;
  will-change: transform, opacity;
}

@keyframes player-profile-card-rise {
  0% {
    opacity: 0;
    transform: translateY(225px) rotate(-7deg);
  }

  18% {
    opacity: 1;
  }

  58% {
    transform: translateY(-17px) rotate(-9deg);
  }

  72% {
    transform: translateY(7px) rotate(-6deg);
  }

  84% {
    transform: translateY(-4px) rotate(-7.6deg);
  }

  93% {
    transform: translateY(2px) rotate(-6.7deg);
  }

  100% {
    opacity: 1;
    transform: translateY(0) rotate(-7deg);
  }
}

.player-profile-top100-card::before,
.player-profile-top100-card::after {
  position: absolute;
  color: #b67b0a;
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  content: "OD";
}

.player-profile-top100-card::before {
  top: 14px;
  left: 15px;
}

.player-profile-top100-card::after {
  top: auto;
  right: 15px;
  bottom: 78px;
  transform: rotate(180deg);
}

.player-profile-top100-kicker {
  color: #9a6812;
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  line-height: 1;
  text-transform: uppercase;
}

.player-profile-top100-card strong {
  margin: 1px 0 3px;
  color: #c3880f;
  font-family: var(--font-display);
  font-size: 4.7rem;
  font-weight: 900;
  line-height: 0.9;
  text-shadow: 0 3px 0 #fff, 0 6px 12px rgb(93 62 8 / 22%);
}

.player-profile-top100-label {
  color: var(--green-900);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-transform: uppercase;
}

.player-profile-top100-place {
  margin-top: 12px;
  padding: 5px 11px;
  border-radius: 999px;
  color: #fff;
  background: var(--green-800);
  font-size: 0.72rem;
  font-weight: 850;
}

.player-profile-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto;
}

.player-profile-heading {
  position: relative;
  display: flex;
  min-height: 210px;
  grid-column: 1;
  grid-row: 1;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  margin-left: 0;
  padding: 24px 28px;
  border: 1px solid var(--cream-400);
  border-radius: 14px;
  background:
    radial-gradient(circle at 8% 12%, rgb(221 163 0 / 11%), transparent 28%),
    linear-gradient(145deg, rgb(255 255 255 / 98%), rgb(249 246 234 / 96%));
  box-shadow: 0 7px 21px rgb(34 49 32 / 11%);
}

.player-profile-achievement-summary {
  display: inline-grid;
  min-width: 0;
  min-height: 0;
  justify-items: end;
  gap: 7px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--green-950);
  background: none;
  box-shadow: none;
  text-decoration: none;
}

.player-profile-achievement-summary:hover .player-profile-achievement-total,
.player-profile-achievement-summary:focus-visible .player-profile-achievement-total {
  color: var(--green-700);
  text-decoration-color: var(--gold);
}

.player-profile-medals {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.player-profile-medal {
  position: relative;
  display: grid;
  width: 104px;
  min-height: 104px;
  flex: 0 0 104px;
  grid-template-rows: 1fr auto;
  place-items: center;
  padding: 8px 7px 7px;
  border: 1px solid var(--cream-400);
  border-radius: 11px;
  background: linear-gradient(145deg, #fff, #fbf8ed);
  box-shadow: 0 4px 12px rgb(42 49 36 / 10%);
}

.player-profile-medal img {
  display: block;
  width: 76px;
  height: 68px;
  object-fit: contain;
}

.player-profile-medal--gold { border-color: #d7ad36; }
.player-profile-medal--silver { border-color: #aaaeb3; }
.player-profile-medal--bronze { border-color: #b78a60; }

.player-profile-medal-label {
  color: var(--ink-600);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  line-height: 1;
}

.player-profile-medal strong {
  position: absolute;
  z-index: 2;
  top: 4px;
  right: 4px;
  min-width: 31px;
  color: var(--green-950);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 0.92;
  text-align: center;
  text-shadow:
    -2px -2px 0 #fff,
    2px -2px 0 #fff,
    -2px 2px 0 #fff,
    2px 2px 0 #fff,
    0 3px 6px rgb(19 42 27 / 22%);
}

.player-profile-medal--silver strong {
  top: 3px;
  right: 3px;
  min-width: 34px;
  font-size: 1.52rem;
  font-weight: 925;
}

.player-profile-medal--gold strong {
  top: 1px;
  right: 1px;
  min-width: 38px;
  font-size: 1.82rem;
  font-weight: 950;
  text-shadow:
    -3px -3px 0 #fff,
    3px -3px 0 #fff,
    -3px 3px 0 #fff,
    3px 3px 0 #fff,
    0 4px 8px rgb(19 42 27 / 28%);
}

.player-profile-achievement-total {
  margin: 0;
  color: var(--green-800);
  font-size: 0.8rem;
  font-weight: 750;
  text-decoration: underline;
  text-decoration-color: rgb(7 95 49 / 35%);
  text-underline-offset: 3px;
}

.player-profile-identity {
  display: flex;
  width: 100%;
  min-width: 0;
  flex-direction: column;
  align-items: flex-end;
  padding-right: 0;
}

.player-profile-identity-main {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}

.player-profile-identity-copy {
  min-width: 0;
  text-align: right;
}

.player-profile-heading .player-avatar--large {
  width: 94px;
  height: 94px;
  flex: 0 0 94px;
  border: 4px solid #fff;
  box-shadow: 0 0 0 2px rgb(7 95 49 / 22%), 0 7px 16px rgb(25 48 30 / 20%);
  font-size: 2.25rem;
}

.player-profile-eyebrow,
.player-profile-kicker {
  margin: 0 0 5px;
  color: #9a6812;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.player-profile-heading h1 {
  margin: 0;
  color: var(--green-950);
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 5vw, 3.8rem);
  line-height: 1;
  white-space: nowrap;
}

.player-profile-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px 18px;
  margin: 13px 0 0;
  padding: 0;
  color: var(--ink-600);
  font-size: 0.88rem;
  list-style: none;
}

.player-profile-meta li {
  white-space: nowrap;
}

.player-profile-achievement-preview {
  padding: 22px 24px 24px;
  border: 1px solid #dfca82;
  border-radius: 13px;
  background: linear-gradient(145deg, #fffdf5, #fbf6e4);
  box-shadow: 0 5px 16px rgb(61 48 17 / 9%);
}

.player-profile-achievement-preview > header,
.player-achievements-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.player-profile-achievement-preview h2,
.player-achievements-heading h2 {
  margin: 0;
  color: var(--green-950);
  font-family: var(--font-display);
}

.player-profile-achievement-preview > header a {
  color: var(--green-800);
  font-size: 0.84rem;
  font-weight: 800;
}

.player-profile-achievement-list,
.player-achievements-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  margin-top: 17px;
}

.player-achievement-card {
  display: grid;
  min-width: 0;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid var(--cream-400);
  border-radius: 10px;
  background: rgb(255 255 255 / 82%);
}

.player-achievement-card--gold { border-color: #d7ad36; }
.player-achievement-card--silver { border-color: #aaaeb3; }
.player-achievement-card--bronze { border-color: #b78a60; }

.player-achievement-card img {
  width: 54px;
  height: 49px;
  object-fit: contain;
}

.player-achievement-card p,
.player-achievement-card small {
  margin: 0;
}

.player-achievement-card p {
  color: var(--ink-700);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
}

.player-achievement-card small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.7rem;
}

.player-achievements-panel {
  padding: 24px;
  border: 1px solid var(--cream-400);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 5px 16px rgb(39 50 36 / 8%);
}

.player-achievements-heading p {
  max-width: 660px;
  margin: 7px 0 0;
  color: var(--ink-600);
  line-height: 1.55;
}

.player-achievement-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.player-achievement-filters a {
  padding: 8px 13px;
  border: 1px solid var(--cream-400);
  border-radius: 999px;
  color: var(--green-900);
  background: #fffdf7;
  font-size: 0.78rem;
  font-weight: 800;
}

.player-achievement-filters a:hover,
.player-achievement-filters a.is-active {
  border-color: var(--green-700);
  color: #fff;
  background: var(--green-700);
}

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

.player-achievements-grid .player-achievement-card {
  min-height: 96px;
  grid-template-columns: 64px minmax(0, 1fr);
  padding: 16px;
}

.player-achievements-grid .player-achievement-card img {
  width: 64px;
  height: 58px;
}

.player-achievements-grid .player-achievement-card p {
  font-size: 0.9rem;
}

.player-achievement-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

.player-profile-meta li + li::before {
  margin-right: 18px;
  color: var(--gold);
  content: "•";
}

.player-profile-meta a {
  color: var(--green-800);
  font-weight: 750;
}

.player-profile-navigation {
  overflow: hidden;
  border: 1px solid var(--cream-400);
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 3px 11px rgb(39 50 36 / 8%);
}

.player-profile-navigation ul {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

.player-profile-navigation li {
  flex: 1 1 118px;
}

.player-profile-navigation a {
  position: relative;
  display: grid;
  min-height: 50px;
  place-items: center;
  padding: 9px 12px;
  border-right: 1px solid var(--cream-300);
  color: var(--green-900);
  text-align: center;
  font-size: 0.82rem;
  font-weight: 800;
}

.player-profile-navigation a:hover {
  background: var(--cream-100);
}

.player-profile-navigation a.is-active {
  color: #fff;
  background: linear-gradient(120deg, var(--green-800), var(--green-700));
}

.player-profile-navigation a.is-active::after {
  position: absolute;
  inset: auto 16px 0;
  height: 3px;
  background: var(--gold);
  content: "";
}

.player-profile-notice,
.player-profile-empty {
  padding: 14px 17px;
  border: 1px solid #d7c99e;
  border-radius: 9px;
  color: #5f5127;
  background: #fffbea;
}

.player-profile-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.player-profile-overview-title {
  margin: 0;
  color: var(--green-950);
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2.15rem);
}

.player-profile-scorecard,
.player-profile-panel,
.player-profile-stat {
  border: 1px solid var(--cream-400);
  border-radius: 12px;
  background: linear-gradient(145deg, rgb(255 255 255 / 98%), rgb(250 247 237 / 97%));
  box-shadow: 0 5px 16px rgb(35 49 34 / 9%);
}

.player-profile-scorecard {
  position: relative;
  display: flex;
  min-height: 260px;
  flex-direction: column;
  overflow: hidden;
  padding: 21px;
}

.player-profile-scorecard::before {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--green-800), var(--gold));
  content: "";
}

.player-profile-scorecard h2,
.player-profile-panel h2,
.player-profile-section-heading h2 {
  margin: 0;
  color: var(--green-950);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
}

.player-profile-period-label {
  min-height: 42px;
  margin: 7px 0 17px;
  color: var(--ink-600);
  line-height: 1.4;
}

.player-profile-rank {
  margin: 0;
  color: var(--green-800);
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.7rem);
  font-weight: 800;
  line-height: 1;
}

.player-profile-rank small {
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
}

.player-profile-rank-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.player-profile-movement {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 900;
}

.player-profile-movement i {
  position: relative;
  display: inline-block;
  width: 12px;
  height: 17px;
  flex: 0 0 auto;
}

.player-profile-movement i::before,
.player-profile-movement i::after {
  position: absolute;
  left: 50%;
  content: "";
  transform: translateX(-50%);
}

.player-profile-movement i::after {
  width: 4px;
  height: 10px;
  border-radius: 2px;
  background: currentColor;
}

.player-profile-movement--up {
  color: #08713b;
  background: #edf9f1;
}

.player-profile-movement--up i::before {
  top: 0;
  border-right: 6px solid transparent;
  border-bottom: 7px solid currentColor;
  border-left: 6px solid transparent;
}

.player-profile-movement--up i::after {
  top: 6px;
}

.player-profile-movement--down {
  color: #a53d32;
  background: #fff1ef;
}

.player-profile-movement--down i::before {
  bottom: 0;
  border-top: 7px solid currentColor;
  border-right: 6px solid transparent;
  border-left: 6px solid transparent;
}

.player-profile-movement--down i::after {
  bottom: 6px;
}

.player-profile-solo {
  overflow: hidden;
  border: 1px solid var(--cream-400);
  border-radius: 12px;
  background: linear-gradient(145deg, #fffdf8, #f8f3e5);
  box-shadow: 0 5px 16px rgb(35 49 34 / 8%);
}

.player-profile-solo > summary {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 20px;
  color: var(--green-950);
  cursor: pointer;
  list-style: none;
}

.player-profile-solo > summary::-webkit-details-marker {
  display: none;
}

.player-profile-solo > summary:hover {
  background: rgb(255 255 255 / 62%);
}

.player-profile-solo > summary span,
.player-profile-solo > summary strong,
.player-profile-solo > summary small {
  display: block;
}

.player-profile-solo > summary strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.player-profile-solo > summary small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
}

.player-profile-solo > summary > i {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  border-right: 3px solid var(--green-800);
  border-bottom: 3px solid var(--green-800);
  transform: rotate(45deg) translate(-2px, 2px);
  transition: transform 160ms ease;
}

.player-profile-solo[open] > summary {
  border-bottom: 1px solid var(--cream-400);
}

.player-profile-solo[open] > summary > i {
  transform: rotate(225deg) translate(-2px, 2px);
}

.player-profile-solo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 16px;
}

.player-profile-solo-spacer {
  min-height: 1px;
}

.player-profile-solo-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--cream-400);
  border-radius: 10px;
  background: rgb(255 255 255 / 82%);
}

.player-profile-solo-card h3 {
  margin: 0;
  color: var(--green-950);
  font-family: var(--font-display);
  font-size: 1.28rem;
}

.player-profile-solo-rank {
  margin: 14px 0 0;
  color: var(--green-800);
  font-family: var(--font-display);
  font-size: 2.55rem;
  font-weight: 850;
  line-height: 1;
}

.player-profile-solo-rank small {
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 0.72rem;
}

.player-profile-solo-card dl {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 16px 0 0;
}

.player-profile-solo-card dl div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--cream-300);
}

.player-profile-solo-card dl div:last-child {
  border-bottom: 0;
}

.player-profile-solo-card dt {
  color: var(--muted);
  font-size: 0.73rem;
  line-height: 1.35;
}

.player-profile-solo-card dd {
  margin: 0;
  color: var(--green-950);
  font-weight: 850;
  text-align: right;
  white-space: nowrap;
}

.player-profile-competition-panel {
  padding: 23px 25px;
  border: 1px solid var(--cream-400);
  border-radius: 12px;
  background: linear-gradient(145deg, rgb(255 255 255 / 98%), rgb(250 247 237 / 97%));
  box-shadow: 0 5px 16px rgb(35 49 34 / 9%);
}

.player-profile-competition-panel h2 {
  margin: 0;
  color: var(--green-950);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
}

.player-profile-competition-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.player-profile-competition-card {
  display: grid;
  min-width: 0;
  min-height: 96px;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 14px;
  border: 1px solid var(--cream-400);
  border-radius: 10px;
  color: inherit;
  background: #fff;
  transition: border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.player-profile-competition-card:hover {
  border-color: var(--gold);
  box-shadow: 0 5px 14px rgb(45 55 38 / 12%);
  transform: translateY(-1px);
}

.player-profile-competition-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--green-800);
}

.player-profile-competition-icon .od-icon {
  transform: scale(0.82);
}

.player-profile-competition-copy,
.player-profile-competition-copy strong,
.player-profile-competition-copy small {
  display: block;
  min-width: 0;
}

.player-profile-competition-copy strong {
  overflow: hidden;
  color: var(--green-950);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-profile-competition-copy small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.73rem;
  line-height: 1.35;
}

.player-profile-competition-rank {
  color: var(--green-800);
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.player-profile-competition-rank small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 0.62rem;
}

.player-profile-competition-arrow {
  color: var(--gold);
  font-size: 1.8rem;
  font-weight: 900;
}

.player-profile-recent-games {
  overflow: hidden;
}

.player-profile-recent-games .player-profile-section-heading {
  align-items: center;
}

.player-profile-recent-games .player-profile-link {
  margin-top: 0;
  padding-top: 0;
}

.player-profile-recent-games .account-game-list {
  overflow: hidden;
  border: 1px solid var(--cream-300);
  border-radius: 10px;
}

.player-profile-scorecard dl,
.player-profile-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 0;
}

.player-profile-scorecard dl div,
.player-profile-facts div {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--cream-300);
  border-radius: 8px;
  background: rgb(255 255 255 / 70%);
}

.player-profile-scorecard dt,
.player-profile-facts dt {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.player-profile-scorecard dd,
.player-profile-facts dd {
  margin: 4px 0 0;
  color: var(--green-950);
  font-weight: 850;
}

.player-profile-scorecard > a,
.player-profile-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 5px;
  margin-top: auto;
  padding-top: 17px;
  color: var(--green-800);
  font-weight: 850;
}

.player-profile-scorecard > a:hover,
.player-profile-link:hover {
  text-decoration: underline;
}

.player-profile-panel {
  padding: 23px 25px;
}

.player-profile-panel > p {
  color: var(--ink-600);
  line-height: 1.6;
}

.player-profile-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.player-profile-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.player-profile-stat {
  padding: 17px;
}

.player-profile-stat span {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 750;
}

.player-profile-stat strong {
  display: block;
  margin-top: 5px;
  color: var(--green-800);
  font-family: var(--font-display);
  font-size: 1.7rem;
}

.player-profile-controls,
.player-profile-controls form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px 14px;
}

.player-profile-controls {
  justify-content: space-between;
  padding: 15px 17px;
  border: 1px solid var(--cream-400);
  border-radius: 10px;
  background: linear-gradient(120deg, #fff, var(--cream-100));
}

.player-profile-controls label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.player-profile-controls select,
.player-profile-controls button {
  min-height: 40px;
  padding: 7px 11px;
  border: 1px solid rgb(7 95 49 / 28%);
  border-radius: 7px;
  color: var(--green-950);
  background: #fff;
  font: inherit;
}

.player-profile-best-controls > div:first-child,
.player-profile-best-links {
  flex: 1 1 240px;
}

.player-profile-best-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  text-align: center;
}

.player-profile-controls button {
  cursor: pointer;
  color: #fff;
  background: var(--green-800);
  font-weight: 800;
}

.player-profile-table-wrap {
  max-width: 100%;
  overflow: auto;
  border: 1px solid var(--cream-400);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 13px rgb(39 50 36 / 8%);
}

.player-profile-table {
  width: 100%;
  border-collapse: collapse;
  color: #20382a;
  font-size: 0.84rem;
}

.player-profile-table th,
.player-profile-table td {
  padding: 11px 12px;
  border-right: 1px solid rgb(215 209 190 / 62%);
  border-bottom: 1px solid #ddd7c5;
  line-height: 1.35;
  text-align: left;
  vertical-align: middle;
}

.player-profile-table th:last-child,
.player-profile-table td:last-child {
  border-right: 0;
}

.player-profile-table thead th {
  color: var(--green-950);
  background: #eaf0e5;
  font-size: 0.74rem;
  font-weight: 850;
  white-space: nowrap;
}

.player-profile-table tbody tr:nth-child(even) {
  background: #fdfbf5;
}

.player-profile-table tbody tr:hover {
  background: #fff9e5;
}

.player-profile-table .is-number {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.player-profile-table .is-positive {
  color: #08713b;
  font-weight: 800;
}

.player-profile-table .is-negative {
  color: #a53d32;
  font-weight: 800;
}

.player-profile-table .player-identity {
  min-width: 150px;
}

.player-profile-table .player-avatar--small,
.player-profile-table .player-avatar--compact {
  flex: 0 0 auto;
}

.player-profile-two-column,
.player-profile-best-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.player-profile-table-section > h2,
.player-profile-best-card h2 {
  margin: 0 0 12px;
  color: var(--green-950);
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.player-profile-best-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--cream-400);
  border-radius: 11px;
  background: #fffdf8;
}

.player-profile-season-picker .season-picker,
.player-profile-season-picker.season-picker {
  margin: 0;
}

.player-profile-page .season-picker {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) 50px;
  align-items: center;
  gap: 12px;
  padding: 15px;
  border: 1px solid var(--cream-400);
  border-radius: 10px;
  background: linear-gradient(145deg, #fffdf6, #f6f1df);
}

.player-profile-page .season-picker form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.player-profile-page .season-picker form > span {
  width: 100%;
  color: var(--green-900);
  text-align: center;
  font-weight: 800;
}

.player-profile-page .season-picker select,
.player-profile-page .season-picker button {
  min-height: 40px;
  padding: 7px 10px;
  border: 1px solid var(--cream-500);
  border-radius: 7px;
  color: var(--green-950);
  background: #fff;
  font: inherit;
}

.player-profile-page .season-picker button {
  color: #fff;
  background: var(--green-800);
  cursor: pointer;
}

.player-profile-page .season-picker small {
  width: 100%;
  color: var(--ink-500);
  text-align: center;
}

.player-profile-page .month-picker-arrow {
  display: grid;
  min-height: 82px;
  place-items: center;
  border: 1px solid var(--cream-400);
  border-radius: 9px;
  color: var(--green-800);
  background: linear-gradient(145deg, #fff, var(--cream-100));
  box-shadow: 0 3px 9px rgb(39 50 36 / 9%);
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
}

.player-profile-page .month-picker-arrow:hover:not(.is-disabled) {
  border-color: var(--gold);
  background: #fff9df;
}

.player-profile-page .month-picker-arrow.is-disabled {
  cursor: default;
  opacity: 0.38;
}

.player-profile-intro {
  max-width: 850px;
  margin: 0;
  color: var(--ink-600);
  font-size: 1rem;
  line-height: 1.65;
}

@media (max-width: 1040px) {
  .player-profile-top100-pocket {
    top: 20px;
    height: 223px;
  }

  .player-profile-top100-card {
    top: 34px;
    left: 29px;
    width: 164px;
    height: 222px;
  }

  .player-profile-top100-card strong {
    font-size: 3.55rem;
  }

  .player-profile-top100-kicker {
    font-size: 0.92rem;
  }

  .player-profile-top100-label {
    font-size: 0.7rem;
  }

  .player-profile-top100-place {
    margin-top: 8px;
    padding: 4px 8px;
    font-size: 0.62rem;
  }

  .player-profile-top100-card::before,
  .player-profile-top100-card::after {
    font-size: 0.8rem;
  }

  .player-profile-top100-card::after {
    bottom: 63px;
  }
}

@media (max-width: 900px) {
  .player-profile-layout {
    padding: 18px 20px 32px;
  }

  .player-profile-overview-grid {
    grid-template-columns: 1fr;
  }

  .player-profile-solo-grid {
    grid-template-columns: 1fr;
  }

  .player-profile-solo-spacer {
    display: none;
  }

  .player-profile-competition-grid {
    grid-template-columns: 1fr;
  }

  .player-profile-heading {
    width: 100%;
    min-height: 210px;
    margin-left: 0;
    padding-inline: 20px;
  }

  .player-profile-achievement-summary {
    width: auto;
    min-height: 0;
    padding: 0;
  }

  .player-profile-identity {
    padding-right: 0;
  }

  .player-profile-medals {
    justify-content: flex-end;
    gap: 10px;
  }

  .player-profile-achievement-total {
    margin-top: 2px;
  }

  .player-profile-medal {
    width: 98px;
    min-height: 100px;
    flex-basis: 98px;
  }

  .player-profile-medal img {
    width: 72px;
    height: 65px;
  }

  .player-profile-achievement-list,
  .player-achievements-grid {
    grid-template-columns: 1fr;
  }

  .player-profile-medal strong {
    min-width: 32px;
    font-size: 1.45rem;
  }

  .player-profile-medal--silver strong {
    min-width: 36px;
    font-size: 1.65rem;
  }

  .player-profile-medal--gold strong {
    min-width: 40px;
    font-size: 1.88rem;
  }

  .player-profile-navigation ul {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .player-profile-navigation li {
    min-width: 0;
  }

  .player-profile-scorecard {
    min-height: 0;
  }

  .player-profile-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .player-profile-two-column,
  .player-profile-best-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .player-profile-layout {
    padding: 13px 12px 27px;
  }

  .player-profile-heading {
    width: 100%;
    min-height: 0;
    margin-left: 0;
    padding: 18px;
  }

  .player-profile-identity {
    align-items: flex-end;
    gap: 12px;
  }

  .player-profile-achievement-summary {
    min-height: 0;
    width: 100%;
    justify-items: start;
    padding: 0;
  }

  .player-profile-medals {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .player-profile-achievement-total {
    text-align: left;
  }

  .player-profile-medal {
    width: 100%;
    min-width: 0;
    min-height: 100px;
    padding-inline: 5px;
  }

  .player-profile-medal img {
    width: 70px;
    max-width: 100%;
    height: 63px;
  }

  .player-profile-medal strong {
    min-width: 34px;
    font-size: 1.55rem;
  }

  .player-profile-medal--silver strong {
    min-width: 38px;
    font-size: 1.78rem;
  }

  .player-profile-medal--gold strong {
    min-width: 42px;
    font-size: 2rem;
  }

  .player-profile-identity-copy {
    flex: 1;
    text-align: right;
  }

  .player-profile-identity-main {
    align-items: flex-start;
    gap: 13px;
  }

  .player-profile-heading .player-avatar--large {
    width: 60px;
    height: 60px;
    flex-basis: 60px;
    font-size: 1.5rem;
  }

  .player-profile-heading h1 {
    overflow-wrap: anywhere;
    font-size: clamp(1.55rem, 7.8vw, 2.25rem);
    white-space: normal;
  }

  .player-profile-meta {
    display: flex;
    width: 80%;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 5px 12px;
    margin-left: auto;
  }

  .player-profile-meta li + li::before {
    margin-right: 8px;
  }

  .player-profile-navigation ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .player-profile-navigation li {
    min-width: 0;
  }

  .player-profile-navigation a {
    min-height: 46px;
    padding: 7px;
    font-size: 0.75rem;
  }

  .player-profile-achievement-preview,
  .player-achievements-panel {
    padding: 18px;
  }

  .player-profile-achievement-preview > header,
  .player-achievements-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .player-profile-scorecard,
  .player-profile-panel,
  .player-profile-competition-panel {
    padding: 18px;
  }

  .player-profile-solo > summary {
    padding-inline: 16px;
  }

  .player-profile-solo-grid {
    gap: 12px;
    padding: 12px;
  }

  .player-profile-solo-card {
    padding: 17px;
  }

  .player-profile-recent-games .player-profile-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .player-profile-stats,
  .player-profile-scorecard dl,
  .player-profile-facts {
    grid-template-columns: 1fr 1fr;
  }

  .player-profile-controls,
  .player-profile-controls form {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr;
  }

  .player-profile-controls select,
  .player-profile-controls button {
    width: 100%;
  }

  .player-profile-page .season-picker {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    gap: 7px;
    padding: 10px;
  }

  .player-profile-page .season-picker form {
    display: grid;
    grid-template-columns: 1fr;
  }

  .player-profile-page .season-picker select,
  .player-profile-page .season-picker button {
    width: 100%;
  }

  .player-profile-page .month-picker-arrow {
    min-height: 116px;
  }

  .player-profile-table {
    min-width: 610px;
  }

  .player-profile-table-wrap::before {
    display: block;
    padding: 7px 10px;
    color: var(--muted);
    background: #f8f5e9;
    content: "Tabelle seitlich verschieben";
    font-size: 0.7rem;
  }
}

@media (max-width: 400px) {
  .player-profile-meta {
    width: 90%;
  }

  .player-profile-medal {
    min-height: 94px;
  }

  .player-profile-medal img {
    width: 64px;
    height: 58px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .card-stage--profile-animated .player-profile-top100-card {
    opacity: 1;
    animation: none;
    transform: rotate(-7deg);
  }

  .player-profile-navigation a {
    scroll-behavior: auto;
  }
}
