/* Hall of Fame auf der Übersicht. Ergänzt seiten.css, Farben aus karten.css.
   Metallverläufe für die Plätze 1 bis 3 wie im Leaderboard (leaderboard.css). */

.ruhmeshalle{
  position:relative;
  /* Liegt beim Öffnen meist unterhalb des sichtbaren Bereichs: erst zeichnen, wenn er in
     die Nähe kommt. Die Platzhaltergröße hält die Bildlaufleiste ruhig. */
  content-visibility:auto;contain-intrinsic-size:auto 1500px;
  /* Das Zeichnen ist dabei auf den Abschnitt begrenzt. Seitlich und unten etwas Luft,
     damit die Schatten der Spalten nicht abgeschnitten werden; die Trennlinie oben
     bleibt so breit wie der Inhalt. */
  margin:14px -20px 0;padding:30px 20px 36px;
  background:linear-gradient(var(--line), var(--line)) 20px 0 / calc(100% - 40px) 1px no-repeat;
}
.rh-unsichtbar{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* --- Kopf --- */
.rh-kopf{position:relative;display:flex;align-items:flex-end;justify-content:space-between;gap:18px;flex-wrap:wrap;margin-bottom:20px}
/* Zeichenfläche für Funken und Splitter beim Freilegen des Titels, nur um den Titel herum */
.rh-funkenflaeche{position:absolute;left:-24px;top:-40px;width:min(560px, calc(100% + 48px));height:150px;pointer-events:none;z-index:2}
/* Hall of Fame und Ruhmeswand in Cinzel, wie eine Gravur auf einer Ehrentafel */
.rh-titel{
  margin:0;font-family:var(--schrift-ehre, "Cinzel", Georgia, serif);font-weight:800;
  font-size:clamp(32px, 4.8vw, 46px);line-height:1.05;letter-spacing:.04em;color:var(--gold);
  text-shadow:0 2px 0 rgba(0,0,0,.35), 0 0 28px rgba(233,185,73,.18);
}
.rh-unter{margin:6px 0 0;color:var(--muted);font-size:14px}
.rh-wahl{display:flex;gap:6px;flex-wrap:wrap}
.rh-wahl .filter{cursor:pointer;font-variant-numeric:tabular-nums}
.ruhmeshalle button:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.rh-kategoriewahl{display:none;gap:0;margin-bottom:14px;border-bottom:1px solid var(--line)}
.rh-kategoriewahl .filter{
  flex:1;border:0;border-radius:0;border-bottom:2px solid transparent;margin-bottom:-1px;padding:9px 6px;
  background:none;color:var(--muted);font-weight:600;
}
.rh-kategoriewahl .filter[aria-pressed="true"]{background:none;color:var(--ink);border-bottom-color:var(--gold)}

/* --- Spalten --- */
.rh-spalten{display:grid;grid-template-columns:repeat(var(--spalten, 3), minmax(0, 1fr));gap:18px}

/* Glas: halbdurchsichtiges Navy mit Weichzeichner, darüber ein leichter Verlauf in der
   Farbe der Spalte von unten rechts nach oben links. Die Verläufe werden per
   background-blend-mode aufgehellt (screen) statt nur übermalt, oben links liegt ein
   matter Lichtreflex (::before, soft-light). --glut regelt die Stärke des Farbverlaufs. */
.rh-spalte{
  --akzent:var(--gold);
  --glut:28%;
  position:relative;isolation:isolate;overflow:hidden;
  display:flex;flex-direction:column;min-width:0;
  border-radius:14px;padding:16px 14px 14px;
  border:1px solid color-mix(in srgb, var(--akzent) 24%, rgba(255,255,255,.1));
  background:
    linear-gradient(to top left,
      color-mix(in srgb, var(--akzent) var(--glut), transparent) 0%,
      color-mix(in srgb, var(--akzent) calc(var(--glut) * .35), transparent) 38%,
      transparent 72%),
    linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,0) 34%),
    var(--glas-grund, rgba(12,23,52,.26));
  background-blend-mode:screen, soft-light, normal;
  -webkit-backdrop-filter:var(--glas-blur, blur(7px) saturate(150%));
          backdrop-filter:var(--glas-blur, blur(7px) saturate(150%));
  box-shadow:
    inset 0 2px 0 color-mix(in srgb, var(--akzent) 70%, transparent),
    inset 0 1px 18px rgba(255,255,255,.04),
    inset -1px -1px 0 color-mix(in srgb, var(--akzent) 30%, transparent),
    0 18px 40px rgba(0,0,0,.35);
}
.rh-spalte::before{
  content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;border-radius:inherit;
  background:
    radial-gradient(120% 70% at 0% 0%, rgba(255,255,255,.16), rgba(255,255,255,0) 55%),
    radial-gradient(90% 60% at 100% 100%, color-mix(in srgb, var(--akzent) 22%, transparent), transparent 70%);
  mix-blend-mode:soft-light;
}
.rh-bits{--akzent:var(--steel)}
.rh-spenden{--akzent:var(--red);--glut:22%}          /* Rot ist satter, etwas zurücknehmen */
/* Ohne Weichzeichner (ältere Browser): dichter, damit Text lesbar bleibt */
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  .rh-spalte{background-color:rgba(12,23,52,.92)}
}

.rh-spaltenkopf{
  display:grid;grid-template-columns:auto 1fr;column-gap:10px;align-items:center;
  padding:0 6px 12px;margin-bottom:6px;border-bottom:1px solid var(--line);
}
.rh-spaltenkopf .rh-symbol{grid-row:span 2;color:var(--akzent)}
.rh-spenden .rh-spaltenkopf .rh-symbol{color:#F0817D}
.rh-spaltenkopf h3{margin:0;font-family:var(--schrift-anzeige, sans-serif);font-size:21px;font-weight:800;letter-spacing:.01em;line-height:1.1}
.rh-einheit{color:var(--muted);font-size:12.5px}

/* --- Liste --- */
.rh-liste{list-style:none;margin:0;padding:0;display:grid;gap:2px}
.rh-zeile{
  display:grid;grid-template-columns:30px minmax(0,1fr) auto;align-items:center;gap:10px;
  padding:7px 8px;border-radius:8px;
}
.rh-platz{
  justify-self:center;display:grid;place-items:center;width:24px;height:24px;
  color:var(--muted);font-weight:700;font-size:13px;font-variant-numeric:tabular-nums;
}
.rh-name{font-weight:600;font-size:14.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rh-wert{color:var(--ink);font-weight:700;font-size:14px;font-variant-numeric:tabular-nums;white-space:nowrap}

/* Plätze 1 bis 3 als Metallmünze */
.platz-1{--m-hell:#FDE9B0;--m-mitte:#E9B949;--m-dunkel:#86611C}
.platz-2{--m-hell:#F4F7FC;--m-mitte:#B9C3D6;--m-dunkel:#5F6B84}
.platz-3{--m-hell:#F6C9A0;--m-mitte:#C57B45;--m-dunkel:#6E3B1C}
.platz-1 .rh-platz, .platz-2 .rh-platz, .platz-3 .rh-platz{
  position:relative;overflow:hidden;border-radius:50%;color:rgba(12,16,28,.88);font-weight:800;
  background:radial-gradient(circle at 32% 26%, rgba(255,255,255,.7), transparent 40%),
    linear-gradient(160deg, var(--m-hell), var(--m-mitte) 50%, var(--m-dunkel));
  box-shadow:0 0 0 1px rgba(0,0,0,.3), 0 2px 8px rgba(0,0,0,.45);
}
/* Leuchtschein in der Metallfarbe für die Plätze 1 bis 3. In der Hall of Fame bekommt
   Platz 1 darüber hinaus die große Tafel (unten), auf der Ruhmeswand bleibt es bei diesem
   Schein, Gold etwas kräftiger, damit der Sieger auch dort heraussticht. */
.platz-1, .platz-2, .platz-3{
  background:linear-gradient(100deg, color-mix(in srgb, var(--m-mitte) 16%, transparent), transparent 70%);
}
.rh-wandspalten .platz-1{
  background:linear-gradient(100deg, color-mix(in srgb, var(--m-mitte) 24%, transparent), transparent 72%);
}

/* Platz 1 ist die große Tafel jeder Spalte */
.rh-spalten:not(.rh-wandspalten) .platz-1{
  grid-template-columns:42px minmax(0,1fr);grid-template-areas:"platz name" "platz wert";
  column-gap:12px;row-gap:3px;padding:13px 12px;margin:4px 0 6px;
  border:1px solid color-mix(in srgb, var(--m-hell) 30%, var(--line));
  background:
    linear-gradient(180deg, rgba(255,255,255,.07), transparent 55%),
    linear-gradient(100deg, color-mix(in srgb, var(--m-mitte) 34%, transparent),
                            color-mix(in srgb, var(--m-dunkel) 20%, transparent) 40%, transparent 78%),
    rgba(20,34,72,.38);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08), 0 0 24px rgba(233,185,73,.12);
}
.rh-spalten:not(.rh-wandspalten) .platz-1 .rh-platz{grid-area:platz;width:36px;height:36px;font-size:17px}
.rh-spalten:not(.rh-wandspalten) .platz-1 .rh-name{grid-area:name;font-size:17px;font-weight:800}
.rh-spalten:not(.rh-wandspalten) .platz-1 .rh-wert{grid-area:wert;
  font-family:var(--schrift-anzeige, sans-serif);font-weight:900;
  font-size:30px;line-height:1;color:var(--gold);letter-spacing:.01em;
}

/* Eigener Eintrag */
.rh-zeile.ich{box-shadow:inset 0 0 0 1px var(--gold-dim)}
.rh-zeile.ich .rh-name::after{content:"du";margin-left:8px;padding:1px 7px;border-radius:99px;
  background:rgba(233,185,73,.14);color:var(--gold);font-size:11px;font-weight:700;vertical-align:2px}

.rh-eigen{
  margin:10px 0 0;padding:9px 10px 0;border-top:1px dashed var(--line);
  color:var(--muted);font-size:13.5px;
}
.rh-leer{margin:10px 6px 4px;color:var(--muted);font-size:14px;line-height:1.5}
.rh-fehler{color:var(--muted);font-size:14px}

/* --- Ruhmeswand --- */
.rh-wand{margin-top:34px}
.rh-wandkopf{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:14px}
.rh-wandtitel{
  margin:0;font-family:var(--schrift-ehre, "Cinzel", Georgia, serif);font-weight:800;
  font-size:26px;line-height:1.1;color:#E7D9B0;letter-spacing:.04em;
}
.rh-blaettern{display:flex;align-items:center;gap:6px}
.rh-wandmonat{min-width:150px;text-align:center;font-weight:700;font-size:15px}
.rh-pfeil{
  width:34px;height:34px;border-radius:8px;border:1px solid var(--line);background:transparent;
  color:var(--ink);font-size:20px;line-height:1;cursor:pointer;
}
.rh-pfeil:hover:not([disabled]){border-color:var(--steel)}
.rh-pfeil[disabled]{opacity:.3;cursor:default}

/* Ruhmeswand: dasselbe Glas, dunkler und mit schwächerem Farbverlauf */
.rh-wandspalten .rh-spalte, .rh-wandspalten .rh-spenden{
  --glut:14%;
  background-color:rgba(7,14,36,.40);
}
.rh-wandspalten .rh-zeile{padding:5px 8px}
.rh-wandspalten .rh-name{font-size:14px;font-weight:500}
.rh-wandspalten .rh-wert{color:var(--muted);font-weight:600;font-size:13px}

/* --- Auftritt: einmaliger Glanz über die Münzen --- */
.rh-auftritt .rh-spalten:not(.rh-wandspalten) :is(.platz-1, .platz-2, .platz-3) .rh-platz::after{
  content:"";position:absolute;inset:-40%;
  background:linear-gradient(115deg, transparent 35%, rgba(255,255,255,.85) 50%, transparent 65%);
  transform:translateX(-120%);animation:rh-glanz 1.4s .35s ease-out 1 forwards;
}
.rh-auftritt .platz-2 .rh-platz::after{animation-delay:.5s}
.rh-auftritt .platz-3 .rh-platz::after{animation-delay:.65s}
@keyframes rh-glanz{to{transform:translateX(120%)}}
@media (prefers-reduced-motion:reduce){
  .rh-auftritt .rh-platz::after{display:none}
}

/* --- Schmale Bildschirme: eine Kategorie zur Zeit --- */
@media (max-width:760px){
  .ruhmeshalle{margin-inline:-14px;padding-inline:14px;background-position:14px 0;background-size:calc(100% - 28px) 1px}
  .rh-kategoriewahl{display:flex}
  .rh-spalten{grid-template-columns:minmax(0,1fr)}
  .rh-spalten[data-kategorie="subs"]    .rh-spalte:not(.rh-subs),
  .rh-spalten[data-kategorie="bits"]    .rh-spalte:not(.rh-bits),
  .rh-spalten[data-kategorie="spenden"] .rh-spalte:not(.rh-spenden){display:none}
  .rh-kopf{align-items:flex-start}
  .rh-wandmonat{min-width:0}
}


/* --- Bewegung (ruhmeshalle.js, bewegung.js) --- */
/* Titel bis zum Freilegen verdeckt; die glühende Kante ist eine helle Kopie des Titels */
.rh-titel{transition:filter .5s ease;transform-origin:50% 62%}
.rh-titel-zu{clip-path:inset(0 100% 0 0)}
.rh-titel.titel-kante{color:#FFF4D2;text-shadow:0 0 .05em #fff, 0 0 .22em rgba(233,185,73,.9)}

/* Neuer Support im Stream: Zeile leuchtet in der Spaltenfarbe auf */
.rh-zeile.rh-plus{animation:rh-plus 1.8s ease-out}
@keyframes rh-plus{
  0%,12%{background-color:color-mix(in srgb, var(--akzent) 42%, transparent);
         box-shadow:0 0 0 1px color-mix(in srgb, var(--akzent) 75%, transparent),
                    0 0 24px color-mix(in srgb, var(--akzent) 45%, transparent)}
  100%{background-color:transparent;box-shadow:0 0 0 1px transparent, 0 0 0 transparent}
}

/* Neuer Platz 1: die Siegertafel schlägt ein, Funken fliegen von der Münze */
.rh-spalten .platz-1{position:relative}
.rh-einschlag{animation:rh-einschlag .75s cubic-bezier(.2,.9,.3,1.25)}
@keyframes rh-einschlag{
  0%{transform:translateY(-10px) scale(1.12);filter:brightness(1.6)}
  45%{transform:translateY(2px) scale(.97);filter:brightness(1.25)}
  100%{transform:none;filter:none}
}
.rh-funken{position:absolute;left:33px;top:50%;width:0;height:0;pointer-events:none}
.rh-funke{
  position:absolute;left:-2px;top:-2px;width:4px;height:4px;border-radius:50%;
  background:#FFE7A3;box-shadow:0 0 6px 1px rgba(233,185,73,.9);
  animation:rh-funke var(--d, .8s) cubic-bezier(.15,.7,.3,1) forwards;
}
@keyframes rh-funke{
  0%{transform:translate(0,0) scale(1.4);opacity:1}
  100%{transform:translate(var(--x), var(--y)) scale(.3);opacity:0}
}

/* Eigener Eintrag: einmal golden pulsieren */
.rh-zeile.rh-ich-puls{animation:rh-ich-puls 1.6s ease-out}
@keyframes rh-ich-puls{
  0%{box-shadow:inset 0 0 0 1px var(--gold-dim), 0 0 0 0 rgba(233,185,73,.55);background-color:rgba(233,185,73,.18)}
  100%{box-shadow:inset 0 0 0 1px var(--gold-dim), 0 0 0 10px rgba(233,185,73,0);background-color:transparent}
}

/* Ruhmeswand: Bühne für das Umblättern */
.rh-wandbuehne{perspective:1600px}

@media (prefers-reduced-motion:reduce){
  .rh-zeile.rh-plus,.rh-einschlag,.rh-funke,.rh-zeile.rh-ich-puls{animation:none}
}
