/* ── Hall of Fame & öffentliches Trainerprofil ── */
    #hallOfFameView {
      display: none;
      flex-direction: column;
      gap: 1.5rem;
    }

    #hallOfFameView.active { display: flex; }

    .lb-name-button {
      appearance: none;
      border: 0;
      background: transparent;
      padding: 0;
      margin: 0;
      color: inherit;
      font: inherit;
      font-weight: 900;
      cursor: pointer;
      max-width: 100%;
      text-align: left;
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      text-decoration: none;
    }

    .lb-name-button:hover,
    .lb-name-button:focus-visible {
      color: var(--accent);
      outline: none;
      text-decoration: underline;
      text-underline-offset: 3px;
    }

    .profile-modal {
      width: min(980px, calc(100vw - 2rem));
      max-height: min(94dvh, 880px);
      overflow-y: auto;
      overflow-x: hidden;
      display: grid;
      gap: 1.15rem;
      text-align: center;
      padding: clamp(1.25rem, 2vw, 2.1rem);
      scrollbar-width: thin;
      scrollbar-color: rgba(255,203,5,0.62) rgba(255,255,255,0.055);
    }

    .profile-modal::-webkit-scrollbar,
    .profile-achievement-grid::-webkit-scrollbar {
      width: 10px;
    }

    .profile-modal::-webkit-scrollbar-track,
    .profile-achievement-grid::-webkit-scrollbar-track {
      background: rgba(255,255,255,0.045);
      border-radius: 999px;
      margin: 0.55rem 0;
      box-shadow: inset 0 0 0 1px rgba(255,255,255,0.035);
    }

    .profile-modal::-webkit-scrollbar-thumb,
    .profile-achievement-grid::-webkit-scrollbar-thumb {
      background: linear-gradient(180deg, rgba(255,203,5,0.88), rgba(61,126,255,0.70));
      border: 2px solid rgba(15,15,31,0.92);
      border-radius: 999px;
      box-shadow: 0 0 12px rgba(255,203,5,0.18);
    }

    .profile-modal::-webkit-scrollbar-thumb:hover,
    .profile-achievement-grid::-webkit-scrollbar-thumb:hover {
      background: linear-gradient(180deg, rgba(255,218,72,0.98), rgba(91,151,255,0.86));
    }

    .profile-card-display {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(190px, 250px);
      gap: 1.15rem;
      align-items: stretch;
      background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.02));
      border: 1px solid rgba(255,255,255,0.08);
      border-radius: 24px;
      padding: 1.15rem;
      overflow: hidden;
    }

    .profile-sprite-stage {
      min-height: clamp(300px, 38dvh, 420px);
      border-radius: 20px;
      background:
        radial-gradient(circle at 50% 20%, rgba(255,203,5,0.20), transparent 52%),
        linear-gradient(180deg, rgba(61,126,255,0.10), rgba(255,255,255,0.02));
      border: 1px solid rgba(255,255,255,0.08);
      display: grid;
      place-items: end center;
      overflow: hidden;
      padding: 0.5rem 0.2rem 0;
    }

    .profile-sprite-stage img {
      width: min(430px, 128%);
      max-height: 430px;
      object-fit: contain;
      image-rendering: auto;
      filter: drop-shadow(0 16px 18px rgba(0,0,0,0.42));
    }

    .profile-badge-display {
      min-height: clamp(300px, 38dvh, 420px);
      border-radius: 20px;
      background: rgba(13,13,26,0.42);
      border: 1px solid rgba(255,203,5,0.32);
      display: grid;
      grid-template-rows: auto 1fr auto;
      align-items: center;
      justify-items: center;
      gap: 0.7rem;
      padding: 0.9rem;
    }

    .profile-badge-label {
      color: var(--muted);
      font-size: 0.66rem;
      font-weight: 900;
      text-transform: uppercase;
      letter-spacing: 0.7px;
    }

    .profile-badge-icon {
      width: 118px;
      height: 118px;
      display: grid;
      place-items: center;
      border-radius: 22px;
      border: 1px solid rgba(255,255,255,0.10);
      background: rgba(255,255,255,0.05);
      color: var(--muted);
      font-size: 2rem;
    }

    .profile-badge-icon img {
      width: 104px;
      height: 104px;
      object-fit: contain;
    }

    .profile-badge-name {
      color: var(--accent);
      font-size: 0.78rem;
      font-weight: 900;
      line-height: 1.2;
      min-height: 1.2em;
    }

    .profile-name {
      color: #fff;
      font-family: 'Press Start 2P', monospace;
      font-size: clamp(0.82rem, 2.4vw, 1.05rem);
      line-height: 1.5;
      overflow-wrap: anywhere;
    }

    .profile-title-pill {
      justify-self: center;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 999px;
      border: 1px solid rgba(255,203,5,0.42);
      background: rgba(255,203,5,0.10);
      color: var(--accent);
      padding: 0.42rem 0.75rem;
      font-weight: 900;
      line-height: 1.2;
      min-height: 2.1rem;
    }

    .profile-tabs {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 0.55rem;
      background: rgba(255,255,255,0.035);
      border: 1px solid rgba(255,255,255,0.08);
      border-radius: 16px;
      padding: 0.35rem;
    }

    .profile-tab-btn {
      border: 1px solid transparent;
      border-radius: 12px;
      background: transparent;
      color: var(--muted);
      padding: 0.65rem 0.8rem;
      font-family: 'Nunito', sans-serif;
      font-weight: 950;
      cursor: pointer;
      transition: all 0.15s ease;
      min-height: 44px;
    }

    .profile-tab-btn:hover,
    .profile-tab-btn.active {
      color: var(--accent);
      border-color: rgba(255,203,5,0.40);
      background: rgba(255,203,5,0.10);
      box-shadow: 0 0 18px rgba(255,203,5,0.10);
    }

    .profile-tab-panel[hidden] { display: none !important; }

    .profile-achievements-panel {
      display: grid;
      gap: 0.85rem;
      text-align: left;
      min-height: 0;
    }

    .profile-achievements-total {
      border: 1px solid rgba(255,203,5,0.18);
      border-radius: 16px;
      background: rgba(255,203,5,0.07);
      padding: 0.85rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 0.75rem;
      color: var(--muted);
      font-weight: 900;
      line-height: 1.35;
    }

    .profile-achievements-total strong {
      color: var(--accent);
      font-family: 'Press Start 2P', monospace;
      font-size: 0.62rem;
      line-height: 1.5;
      text-align: right;
    }

    .profile-achievement-filters {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 0.7rem;
      align-items: start;
    }

    .profile-achievement-filter-row {
      display: grid;
      gap: 0.35rem;
    }

    .profile-achievement-filter-label {
      color: var(--muted);
      font-size: 0.62rem;
      font-weight: 950;
      text-transform: uppercase;
      letter-spacing: 0.65px;
    }

    .profile-achievement-filter-options {
      display: flex;
      flex-wrap: wrap;
      gap: 0.4rem;
    }

    .profile-achievement-filter-btn {
      border: 1px solid rgba(61,126,255,0.34);
      border-radius: 12px;
      background: rgba(61,126,255,0.07);
      color: #a9c4ff;
      padding: 0.45rem 0.58rem;
      min-height: 38px;
      font-family: 'Nunito', sans-serif;
      font-weight: 950;
      font-size: 0.74rem;
      cursor: pointer;
      transition: all 0.15s ease;
    }

    .profile-achievement-filter-btn:hover,
    .profile-achievement-filter-btn.active {
      border-color: var(--accent);
      color: var(--accent);
      background: rgba(255,203,5,0.10);
    }

    .profile-achievement-summary {
      color: var(--muted);
      font-weight: 900;
      line-height: 1.35;
      text-align: center;
      background: rgba(255,255,255,0.035);
      border: 1px solid rgba(255,255,255,0.08);
      border-radius: 14px;
      padding: 0.7rem;
    }

    .profile-achievement-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(172px, 1fr));
      gap: 0.72rem;
      max-height: min(58dvh, 560px);
      overflow-y: auto;
      padding-right: 0.45rem;
      scrollbar-width: thin;
      scrollbar-color: rgba(255,203,5,0.62) rgba(255,255,255,0.055);
    }

    .profile-achievement-card {
      min-height: 216px;
      border: 1px solid rgba(255,255,255,0.08);
      border-radius: 16px;
      background: rgba(255,255,255,0.035);
      padding: 0.7rem 0.55rem;
      display: grid;
      grid-template-rows: 66px auto 1fr auto;
      justify-items: center;
      gap: 0.35rem;
      text-align: center;
      position: relative;
      overflow: hidden;
    }

    .profile-achievement-card.unlocked {
      border-color: rgba(255,203,5,0.48);
      background: radial-gradient(circle at 50% 0%, rgba(255,203,5,0.14), transparent 65%), rgba(255,255,255,0.04);
    }

    .profile-achievement-card.locked { opacity: 0.70; }

    .profile-achievement-card img {
      width: 58px;
      height: 58px;
      object-fit: contain;
      image-rendering: pixelated;
      filter: grayscale(1) brightness(0.58) drop-shadow(0 0 10px rgba(0,0,0,0.35));
    }

    .profile-achievement-card.unlocked img {
      filter: drop-shadow(0 0 12px rgba(255,203,5,0.24));
    }

    .profile-achievement-card img[src^="data:image/svg+xml"] { image-rendering: auto; }

    .profile-achievement-card-name {
      color: #fff;
      font-size: 0.73rem;
      font-weight: 950;
      line-height: 1.18;
    }

    .profile-achievement-card-desc {
      color: var(--muted);
      font-size: 0.66rem;
      font-weight: 850;
      line-height: 1.25;
    }

    .profile-achievement-card-status {
      border-radius: 999px;
      border: 1px solid rgba(255,255,255,0.10);
      color: var(--muted);
      background: rgba(255,255,255,0.04);
      padding: 0.22rem 0.48rem;
      font-size: 0.6rem;
      font-weight: 950;
    }

    .profile-achievement-card.unlocked .profile-achievement-card-status {
      color: #86efac;
      border-color: rgba(74,222,128,0.42);
      background: rgba(74,222,128,0.10);
    }

    .profile-achievements-empty {
      color: var(--muted);
      font-weight: 900;
      text-align: center;
      border: 1px dashed rgba(255,255,255,0.14);
      border-radius: 14px;
      padding: 0.9rem;
    }

    .hall-points {
      color: var(--accent);
      font-family: 'Press Start 2P', monospace;
      font-size: 0.62rem;
      text-align: right;
    }

    @media (max-width: 820px) {
      .profile-modal { width: min(720px, calc(100vw - 1rem)); max-height: min(94dvh, 820px); }
      .profile-card-display { grid-template-columns: 1fr; }
      .profile-achievement-filters { grid-template-columns: 1fr; }
      .profile-sprite-stage { min-height: 280px; }
      .profile-badge-display { min-height: 210px; }
      .profile-sprite-stage img { width: min(360px, 118%); max-height: 330px; }
    }

    @media (max-width: 560px) {
      .profile-modal { width: min(100%, calc(100vw - 0.6rem)); padding: 1rem; }
      .profile-card-display { grid-template-columns: 1fr; padding: 0.85rem; }
      .profile-sprite-stage { min-height: 235px; }
      .profile-badge-display { min-height: 180px; }
      .profile-sprite-stage img { width: min(320px, 118%); max-height: 275px; }
      .profile-badge-icon { width: 94px; height: 94px; }
      .profile-badge-icon img { width: 82px; height: 82px; }
      .profile-achievement-grid { grid-template-columns: 1fr; max-height: min(55dvh, 500px); padding-right: 0.25rem; }
    }
