/* ================================================================
   PLAY SCROLL – core/style_rangliste.css   (aus core/style.css ausgelagert, 2026-10-10)
   Gesamt- und Spiel-Ranglisten (inkl. Aktualitaets-Balken), Installier-Knopf.
   REIHENFOLGE ZAEHLT: style.css -> style_ansichten.css -> style_pc.css ->
   style_profil.css -> style_rangliste.css. Die Dateien wurden nur an
   Abschnittsgrenzen geteilt, nicht umsortiert - so bleibt die Kaskade
   genau wie vorher. Farben: Variablen aus style.css (:root / html.ps-hell).
   ================================================================ */
/* ================= Gesamt-Rangliste (seit 2026-09-17) =================
   Liste nach All-Time-Gold, siehe core/goldrang.js. Farben ueber die
   --seite-*-Variablen, damit sie im Hellzug genauso lesbar bleibt wie
   die uebrigen Seitenansichten. */
.gr-unter{font-size:12.5px;color:var(--seite-txt-dim);line-height:1.45;margin:-6px 0 16px}
.gr-laed,.gr-leer,.gr-hinweis{font-size:12.5px;color:var(--seite-txt-dim);
  background:var(--seite-glass);border:1px solid var(--seite-glass-border);
  border-radius:12px;padding:12px 14px;line-height:1.45}
.gr-hinweis{margin-top:14px}
/* Aktualitaet der Liste (seit 2026-10-10, Philipps Wunsch): ob die
   Zahlen frisch sind, ob gerade geladen wird - und ein Balken, der
   zeigt, wie lange es bis zur naechsten Aktualisierung dauert. */
.rang-stand{margin:-6px 0 12px;font-size:11.5px;color:var(--seite-txt-dim);min-height:22px}
.rang-stand:empty{display:none}
.rang-stand-text{display:flex;justify-content:space-between;gap:8px;margin-bottom:5px}
.rang-stand.veraltet .rang-stand-text b{color:var(--gold-txt)}
.rang-stand.fehler .rang-stand-text b{color:var(--pink)}
.rang-balken{height:4px;border-radius:4px;background:var(--seite-glass-border);overflow:hidden}
.rang-balken i{display:block;height:100%;width:0;border-radius:4px;background:var(--cyan-txt)}
.rang-stand.laedt .rang-balken i{background:var(--gold-txt)}
.gr-pruefung{font-size:12px;color:var(--seite-txt-dim);margin:10px 0 0;line-height:1.45}
.gr-liste{display:flex;flex-direction:column;gap:8px}
.gr-zeile{display:flex;align-items:center;gap:11px;
  background:var(--seite-glass);border:1px solid var(--seite-glass-border);
  border-radius:14px;padding:11px 13px}
/* Der eigene Eintrag wird hervorgehoben - in einer Top-10-Liste sucht
   man zuerst sich selbst. */
.gr-zeile.ist-ich{border-color:var(--pink);
  background:linear-gradient(92deg,rgba(255,138,0,.14),transparent 70%)}
.gr-platz{flex:0 0 auto;min-width:30px;text-align:center;
  font-size:13px;font-weight:900;color:var(--seite-txt-dim);
  font-variant-numeric:tabular-nums}
.gr-platz.gr-treppe{font-size:19px}          /* Medaille statt Ziffer */
.gr-name{flex:1 1 auto;min-width:0;font-size:14px;font-weight:700;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gr-du{font-size:9.5px;font-weight:900;letter-spacing:.06em;text-transform:uppercase;
  color:#1c0f00;background:var(--pink);border-radius:6px;padding:2px 5px;margin-left:5px}
.gr-gold{flex:0 0 auto;display:flex;align-items:center;gap:5px;
  font-size:13.5px;font-weight:900;color:var(--gold-txt);
  font-variant-numeric:tabular-nums}
.gr-trenner{font-size:10.5px;font-weight:900;letter-spacing:.09em;text-transform:uppercase;
  color:var(--seite-txt-dim);margin:18px 0 8px}

/* Querbalken in der Games-Ansicht: fuehrt aus der Spieleliste heraus,
   deshalb ueber die ganze Breite statt als Kachel zwischen den Spielen. */
.games-rang-balken{display:flex;align-items:center;gap:12px;width:100%;
  margin:4px 0 20px;padding:13px 15px;cursor:pointer;text-align:left;
  background:linear-gradient(92deg,rgba(255,213,74,.16),var(--seite-glass) 70%);
  border:1px solid var(--seite-glass-border);border-radius:16px;
  color:var(--seite-txt);transition:transform .12s ease,border-color .15s}
.games-rang-balken:hover{border-color:var(--gold)}
.games-rang-balken:active{transform:scale(.985)}
.grb-ic{flex:0 0 auto;display:grid;place-items:center;width:38px;height:38px;
  border-radius:11px;background:rgba(255,213,74,.18);color:var(--gold-txt)}
.grb-txt{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:2px}
.grb-txt b{font-size:14.5px;font-weight:900}
.grb-txt small{font-size:11.5px;color:var(--seite-txt-dim)}
.grb-pfeil{flex:0 0 auto;color:var(--seite-txt-dim)}
@media (prefers-reduced-motion: reduce){ .games-rang-balken{transition:none} }

/* ========== Installier-Ansicht: der grosse Knopf (seit 2026-09-17) ==========
   Philipps Vorgabe: ein extra grosser Knopf, der die Installation
   anstoesst - und bei einer schon installierten App stattdessen nach
   Updates sucht. */
.knopf-auth.install-gross{display:flex;align-items:center;justify-content:center;gap:10px;
  width:100%;min-height:62px;margin:18px 0 6px;padding:18px 20px;
  font-size:18px;font-weight:900;letter-spacing:.01em;border-radius:18px;
  box-shadow:0 8px 28px rgba(255,138,0,.32)}
.knopf-auth.install-gross .i{width:22px;height:22px}
.knopf-auth.install-gross:active{transform:scale(.98)}
.knopf-auth.install-gross[disabled]{opacity:.7;box-shadow:none;cursor:default}
/* Updates sind kein Verkauf, sondern Pflege - deshalb ruhiger als der
   Installier-Knopf, aber genauso gross und gut treffbar. */
.knopf-auth.install-update{background:linear-gradient(92deg,#ffc93c,#ff8a00);
  color:#1c0f00;box-shadow:0 8px 28px rgba(255,201,60,.28)}
.install-untertext{margin:2px 0 6px;font-size:12px;line-height:1.45}

/* Die Schritt-Anleitung, wenn der Browser die Installation nicht selbst
   anbietet (Apple immer, Firefox, oder wenn kein Angebot kommt). */
.install-anleitung{margin:4px 0 10px;padding:14px 16px;
  background:var(--seite-glass);border:1px solid var(--seite-glass-border);
  border-radius:16px}
.install-schritte{margin:0;padding-left:22px;display:flex;flex-direction:column;gap:9px}
.install-schritte li{font-size:13.5px;line-height:1.5;color:var(--seite-txt)}
.install-schritte b{font-weight:900}
.is-ic{display:inline-block;font-size:15px;line-height:1;vertical-align:-1px}
.install-apple-hinweis{margin:12px 0 0;font-size:11.5px;line-height:1.45}
@media (prefers-reduced-motion: reduce){ .knopf-auth.install-gross:active{transform:none} }

/* Nur fuer Google und Screenreader (seit 1.63.0): der Text-Abschnitt ganz
   oben in index.html. Uebliches Ausblende-Muster - nimmt keinen Platz ein
   und verschiebt nichts, bleibt aber lesbar (display:none waere es nicht). */
.nur-leser{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}
/* Lane-Rush-Shop: echtes Autobild (Spiele-Update 2026-09) */
.vc-preview .vc-bild{height:150px;width:auto;max-width:70%;object-fit:contain;filter:drop-shadow(4px 8px 8px rgba(0,0,0,.35))}


/* ================= Ranglisten-Update 2026-10-17: Siegertreppchen =================
   Philipp: Platz 1 bis 3 auf einem Treppchen (1 in der Mitte und am hoechsten), mit
   Profilbild, Name darunter und der Platzzahl auf dem Podest, im Stil der Profilseite.
   Zeichnet core/rang_treppchen.js (Gold- und Spiel-Ranglisten). */
.rt-treppe{display:grid;grid-template-columns:1fr 1.12fr 1fr;align-items:end;gap:10px;margin:8px 0 18px}
.rt-stufe{display:flex;flex-direction:column;align-items:center;text-align:center;min-width:0}
.rt-bild{width:62px;height:62px;border-radius:50%;overflow:hidden;display:grid;place-items:center;
  background:var(--seite-glass);border:3px solid var(--rt-ring,#888);box-shadow:0 6px 18px rgba(0,0,0,.35)}
.rt-p1 .rt-bild{width:78px;height:78px;box-shadow:0 0 0 4px rgba(255,201,60,.18),0 8px 26px rgba(255,160,40,.35)}
.rt-bild svg{width:100%;height:100%;display:block}
.rt-p1{--rt-ring:#ffc93c}.rt-p2{--rt-ring:#c9d3e0}.rt-p3{--rt-ring:#d9925a}
.rt-krone{width:30px;height:20px;fill:#ffc93c;margin-bottom:-4px;filter:drop-shadow(0 2px 4px rgba(255,160,40,.5))}
.rt-name{margin-top:7px;max-width:100%;font-size:13px;font-weight:800;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rt-wert{display:flex;align-items:center;gap:4px;margin-top:2px;font-size:12px;font-weight:900;color:var(--gold-txt);font-variant-numeric:tabular-nums}
.rt-sockel{width:100%;margin-top:8px;border-radius:14px 14px 6px 6px;display:grid;place-items:center;
  background:linear-gradient(180deg,var(--rt-a),var(--rt-b));box-shadow:inset 0 2px 0 rgba(255,255,255,.35),0 6px 16px rgba(0,0,0,.25)}
.rt-sockel b{font-size:30px;font-weight:900;color:rgba(28,15,0,.62);text-shadow:0 1px 0 rgba(255,255,255,.35)}
.rt-p1 .rt-sockel{height:96px;--rt-a:#ffc93c;--rt-b:#ff8a00}
.rt-p1 .rt-sockel b{font-size:38px}
.rt-p2 .rt-sockel{height:72px;--rt-a:#e4e9f1;--rt-b:#9aa5b5}
.rt-p3 .rt-sockel{height:56px;--rt-a:#eab184;--rt-b:#b86b34}
.rt-leer .rt-sockel{opacity:.22}
.rt-ich .rt-bild{outline:2px solid var(--pink);outline-offset:2px}
.rt-initial{display:grid;place-items:center;width:100%;height:100%;font-weight:900;color:#fff;
  background:linear-gradient(135deg,#6a58a8,#2c2a4e)}
/* Plaetze ab 4: Karten wie im Profil */
.rt-liste{display:flex;flex-direction:column;gap:8px}
.rt-zeile{display:flex;align-items:center;gap:11px;background:var(--seite-glass);border:1px solid var(--seite-glass-border);
  border-radius:14px;padding:9px 13px}
.rt-zeile.ist-ich{border-color:var(--pink);background:linear-gradient(92deg,rgba(255,138,0,.14),transparent 70%)}
.rt-nr{flex:0 0 auto;min-width:24px;text-align:center;font-size:13px;font-weight:900;color:var(--seite-txt-dim);font-variant-numeric:tabular-nums}
.rt-mini{flex:0 0 auto;width:30px;height:30px;border-radius:50%;overflow:hidden;display:grid;place-items:center;background:var(--seite-glass)}
.rt-mini svg{width:100%;height:100%;display:block}
.rt-zname{flex:1 1 auto;min-width:0;font-size:14px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rt-zwert{flex:0 0 auto;display:flex;align-items:center;gap:5px;font-size:13.5px;font-weight:900;color:var(--gold-txt);font-variant-numeric:tabular-nums}
.rt-mehr{display:block;width:100%;margin-top:10px;padding:11px 14px;border-radius:14px;cursor:pointer;
  background:var(--seite-glass);border:1px solid var(--seite-glass-border);color:var(--seite-txt);font-size:13px;font-weight:800}
.rt-mehr:active{transform:scale(.985)}
/* Eigener Platz: bleibt beim Scrollen unten sichtbar */
.rt-meinplatz{position:sticky;bottom:8px;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:10px;
  margin-top:14px;padding:10px 12px 10px 14px;border-radius:14px;border:1px solid var(--pink);
  background:linear-gradient(92deg,rgba(255,138,0,.22),rgba(20,18,28,.92) 75%);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);
  font-size:13.5px;box-shadow:0 8px 22px rgba(0,0,0,.35)}
.rt-meinplatz b{font-weight:900;color:var(--gold-txt)}
.rt-zumir{flex:0 0 auto;border:0;border-radius:10px;padding:8px 13px;cursor:pointer;font-size:13px;font-weight:900;
  color:#1c0f00;background:linear-gradient(92deg,#ff8a00,#ffc93c)}
@keyframes rt-blink{0%,100%{box-shadow:none}30%{box-shadow:0 0 0 3px var(--pink)}}
.rt-blink{animation:rt-blink 1.2s ease 2}
@media (prefers-reduced-motion: reduce){ .rt-blink{animation:none} .rt-mehr:active{transform:none} }
