/* ============================================================
   RIFTLE – Wild-Rift-Look: tiefes Nachtblau + Hextech-Gold
   ============================================================ */

:root {
  --bg-0: #050b16;
  --bg-1: #0a1428;
  --panel: #0d1d38;
  --panel-2: #12264a;
  --line: #1e3a5f;
  --gold: #c8963c;
  --gold-hell: #f0c96c;
  --teal: #0ac8b9;
  --text: #e8eef7;
  --muted: #8fa3bf;
  --ok: #1f8a4c;
  --teil: #c9a227;
  --falsch: #7f2d3a;
  --radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

[hidden] { display: none !important; }

/* Schlanke Hextech-Scroll-Leisten statt Systemstandard */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(200, 150, 60, 0.45) transparent;
}
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(240, 201, 108, 0.55), rgba(200, 150, 60, 0.55));
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--gold-hell), var(--gold));
}

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: "Alegreya", Georgia, "Times New Roman", serif;
  font-size: 17px;
  background:
    radial-gradient(1100px 500px at 50% -150px, rgba(10, 200, 185, 0.10), transparent 60%),
    radial-gradient(900px 600px at 85% 110%, rgba(200, 150, 60, 0.08), transparent 55%),
    linear-gradient(180deg, var(--bg-1), var(--bg-0) 60%);
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 12px 40px;
}

/* Zufälliger Splash-Art-Hintergrund (Data Dragon), dunkel überblendet */
#hintergrund {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-size: cover;
  background-position: center 22%;
  opacity: 0;
  transition: opacity 1.4s ease;
  pointer-events: none;
}
#hintergrund.sichtbar { opacity: 1; }
#hintergrund::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 600px at 50% 0%, rgba(5, 11, 22, 0.35), transparent 65%),
    linear-gradient(180deg, rgba(5, 11, 22, 0.60) 0%, rgba(5, 11, 22, 0.78) 55%, rgba(5, 11, 22, 0.92) 100%);
}

/* League-artige Schmuck-Schrift für Überschriften und Bedienelemente */
.logo, .modus-titel, .modus-karte h3, .ergebnis h3, .overlay-karte h3,
.reihe.kopf .zelle, .taste-knopf, .teilen-knopf, .weiter-name,
.rang-titel, .badge-bald {
  font-family: "Cinzel", "Times New Roman", serif;
}

.untertitel, .aufgabe, .intro, .gestern, .hinweis-text, .fund-label {
  font-style: italic;
}

/* ---------- Kopf ---------- */

header { text-align: center; margin-bottom: 24px; }

.kopf-knoepfe {
  position: fixed;
  top: 14px; right: 14px;
  display: flex;
  gap: 8px;
  z-index: 30;
}

.kopf-knopf {
  width: 44px; height: 44px;
  padding: 0;
  font-size: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  overflow: hidden;
}
.kopf-knopf:hover { border-color: var(--gold); }
.kopf-knopf img { width: 100%; height: 100%; object-fit: cover; }
.kopf-knopf svg {
  width: 24px; height: 24px;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.55));
}

.logo {
  font-size: clamp(44px, 9vw, 72px);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: linear-gradient(180deg, var(--gold-hell) 20%, var(--gold) 55%, #8a6526 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 10px rgba(200, 150, 60, 0.25));
  line-height: 1.1;
}

.logo-bild {
  display: block;
  margin: -28px auto -34px;
  width: min(460px, 92vw);
  height: auto;
  filter: drop-shadow(0 4px 18px rgba(200, 150, 60, 0.3));
}

.untertitel {
  color: var(--muted);
  font-size: 15px;
  letter-spacing: 0.06em;
  margin-top: 4px;
}

/* Gold-Trenner mit Raute (League-Ornament) */
.trenner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 14px auto 0;
  width: min(320px, 70vw);
}
.trenner::before, .trenner::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.trenner::after { background: linear-gradient(90deg, var(--gold), transparent); }
.trenner .raute {
  width: 9px; height: 9px;
  flex: 0 0 auto;
  background: linear-gradient(135deg, var(--gold-hell), var(--gold));
  transform: rotate(45deg);
  box-shadow: 0 0 8px rgba(240, 201, 108, 0.5);
}

/* Runde Modus-Schnellnavigation im Spiel */
.modus-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
}
.modus-nav button {
  position: relative;
  width: 46px; height: 46px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid rgba(10, 200, 185, 0.5);
  background: var(--panel);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 20px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.modus-nav button.geloest::after {
  content: "✓";
  position: absolute;
  right: -4px; bottom: -4px;
  width: 17px; height: 17px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(160deg, #26a35c, var(--ok));
  border: 2px solid var(--bg-0);
  border-radius: 50%;
}
.modus-nav button:hover { border-color: var(--gold); }
.modus-nav button.aktiv {
  border-color: var(--gold-hell);
  box-shadow: 0 0 12px rgba(240, 201, 108, 0.35);
}
.modus-nav .nav-icon {
  display: grid; place-items: center;
  width: 100%; height: 100%;
  border-radius: 50%;
  overflow: hidden;
}
.modus-nav .nav-icon img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Modus-Auswahl ---------- */

#menu { width: 100%; max-width: 560px; display: flex; flex-direction: column; gap: 14px; }

.intro { text-align: center; color: var(--muted); font-size: 14px; margin-bottom: 2px; }

.karte-check {
  margin-left: auto;
  flex: 0 0 auto;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(160deg, #26a35c, var(--ok));
  color: #fff;
  font-weight: 700;
  font-size: 15px;
}

.gestern {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin-top: 8px;
  line-height: 1.7;
}
.gestern strong { color: var(--gold-hell); font-weight: 600; }

.nachhol-chip {
  display: inline-block;
  padding: 3px 12px;
  margin: 2px;
  color: var(--teal);
  border: 1px solid rgba(10, 200, 185, 0.5);
  border-radius: 99px;
  text-decoration: none;
  font-style: normal;
  font-weight: 600;
}
.nachhol-chip:hover { border-color: var(--gold); color: var(--gold-hell); }

.nachhol-banner {
  margin-top: 12px;
  color: var(--teal);
  font-size: 14px;
}
.nachhol-banner a { color: var(--gold-hell); }

a.teilen-knopf { text-decoration: none; display: inline-block; }

.modus-karte {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  text-align: left;
  background: linear-gradient(160deg, rgba(18, 38, 74, 0.92), rgba(13, 29, 56, 0.92));
  border: 1px solid rgba(10, 200, 185, 0.45);
  border-radius: var(--radius);
  padding: 14px 18px;
  color: var(--text);
  font: inherit;
  cursor: pointer;
  box-shadow: 0 0 14px rgba(10, 200, 185, 0.10), inset 0 0 22px rgba(10, 200, 185, 0.05);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.modus-karte:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: var(--gold);
  box-shadow: 0 6px 24px rgba(200, 150, 60, 0.2);
}

.modus-karte:disabled { opacity: 0.45; cursor: default; }

/* rundes Gold-Medaillon wie bei LoLdle */
.modus-icon {
  width: 56px; height: 56px; flex: 0 0 56px;
  display: grid; place-items: center;
  font-size: 26px;
  background: radial-gradient(circle at 50% 35%, #14284e, #08101f 75%);
  border: 2px solid var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(5, 11, 22, 0.9), 0 0 0 4px rgba(200, 150, 60, 0.45), 0 3px 12px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
.modus-icon [data-icon] { display: grid; place-items: center; width: 100%; height: 100%; }
.modus-icon img { width: 100%; height: 100%; object-fit: cover; }

.gold-frage {
  font-family: "Cinzel", "Times New Roman", serif;
  font-weight: 800;
  font-size: 26px;
  background: linear-gradient(180deg, var(--gold-hell), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.modus-karte h3 {
  font-size: 18px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold-hell);
}

.modus-karte p { color: var(--muted); font-size: 13.5px; margin-top: 2px; }

.badge-bald {
  margin-left: auto;
  flex: 0 0 auto;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  border: 1px solid rgba(10, 200, 185, 0.4);
  border-radius: 99px;
  padding: 4px 10px;
}

/* ---------- Spielansicht (gemeinsam) ---------- */

.spiel { width: 100%; max-width: 980px; display: flex; flex-direction: column; align-items: center; }

.zurueck {
  align-self: flex-start;
  background: none;
  border: none;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  padding: 4px 0;
  margin-bottom: 10px;
}
.zurueck:hover { color: var(--gold-hell); }

.modus-titel {
  font-size: 26px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-hell);
}

.aufgabe { color: var(--muted); margin: 6px 0 18px; text-align: center; }
.aufgabe strong { color: var(--teal); font-weight: 600; }

/* Rätsel-Anzeige (Icon / Text / Stats) */

.raetsel-box {
  width: 100%;
  max-width: 480px;
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.laden-hinweis { color: var(--muted); font-size: 14px; }

.faehigkeit-icon {
  width: 96px; height: 96px;
  border-radius: 14px;
  border: 2px solid var(--gold);
  box-shadow: 0 6px 24px rgba(200, 150, 60, 0.2);
}

.hinweis-text { color: var(--text); font-size: 15.5px; line-height: 1.55; }

.extra-hinweis { color: var(--teal); font-size: 14px; }

.stat-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

.stat-chips .stat {
  font-size: 13px;
  color: var(--gold-hell);
  border: 1px solid rgba(200, 150, 60, 0.45);
  border-radius: 99px;
  padding: 4px 12px;
  background: rgba(200, 150, 60, 0.08);
}

/* Suche + Vorschläge */

.suche-wrap { position: relative; width: 100%; max-width: 420px; margin-bottom: 22px; }

.suche-wrap input {
  width: 100%;
  padding: 13px 56px 13px 16px;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: rgba(13, 29, 56, 0.92);
  border: 1px solid rgba(10, 200, 185, 0.55);
  border-radius: var(--radius);
  outline: none;
  box-shadow: 0 0 12px rgba(10, 200, 185, 0.12);
}
.suche-wrap input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(10, 200, 185, 0.18); }

/* goldener Pfeil-Knopf im Eingabefeld */
.senden {
  position: absolute;
  top: 50%;
  right: 7px;
  transform: translateY(-50%);
  width: 36px; height: 36px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(180deg, var(--gold-hell), var(--gold));
  color: #1c1608;
  font-size: 15px;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.senden:hover { filter: brightness(1.12); }
.suche-wrap input::placeholder { color: var(--muted); }
.suche-wrap input:disabled { opacity: 0.5; }

.vorschlaege {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  max-height: 320px;
  overflow-y: auto;
  z-index: 20;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
}
.vorschlaege:empty { display: none; }

.vorschlag {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 9px 12px;
  background: none;
  border: none;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}
.vorschlag:hover, .vorschlag.aktiv { background: rgba(200, 150, 60, 0.12); }

.mini-icon, .vorschlag img {
  width: 34px; height: 34px; flex: 0 0 34px;
  border-radius: 8px;
  border: 1px solid var(--line);
  object-fit: cover;
  background: var(--panel-2);
}
.mini-icon { display: grid; place-items: center; font-weight: 700; color: var(--gold-hell); }

/* Falsche Versuche als Chips */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  max-width: 560px;
  margin-bottom: 14px;
}

.chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 6px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 99px;
  border: 1px solid #b5495c;
  background: linear-gradient(160deg, #963848, var(--falsch));
}

.chip img, .chip .mini-icon { width: 28px; height: 28px; flex: 0 0 28px; border-radius: 50%; }

/* Bonus: Tasten-Frage */

.bonus {
  width: 100%;
  max-width: 480px;
  text-align: center;
  margin-bottom: 14px;
}

.bonus-frage { color: var(--gold-hell); font-weight: 600; margin-bottom: 10px; }

.tasten-reihe { display: flex; gap: 10px; justify-content: center; }

.taste-knopf {
  min-width: 64px;
  padding: 14px 0;
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.taste-knopf:hover:not(:disabled) { border-color: var(--gold); }
.taste-knopf:disabled { cursor: default; }
.taste-knopf.richtig { background: linear-gradient(160deg, #26a35c, var(--ok)); border-color: #2ecc71; }
.taste-knopf.daneben { background: linear-gradient(160deg, #963848, var(--falsch)); border-color: #b5495c; }

/* Rateverlauf / Brett (Klassisch) */

.brett-scroll { width: 100%; overflow-x: auto; padding-bottom: 8px; }

.brett { display: flex; flex-direction: column; gap: 8px; min-width: max-content; margin: 0 auto; }

.reihe { display: flex; gap: 8px; }

.zelle {
  width: 88px;
  min-height: 88px;
  border-radius: 10px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 4px;
  text-align: center;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.25;
  background: var(--panel);
  overflow: hidden;
}

.reihe.kopf .zelle {
  min-height: 0;
  padding: 8px 4px;
  background: none;
  border: none;
  border-bottom: 2px solid var(--gold);
  border-radius: 0;
  color: var(--gold-hell);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.zelle.portrait { padding: 0; }
.zelle.portrait img { width: 100%; height: 88px; object-fit: cover; border-radius: 9px; }
.zelle.portrait .name-tag {
  font-size: 10.5px;
  padding: 2px 4px;
  width: 100%;
  background: rgba(5, 11, 22, 0.75);
  position: relative;
  margin-top: -22px;
  border-radius: 0 0 9px 9px;
}

.zelle.ok     { background: linear-gradient(160deg, #26a35c, var(--ok));     border-color: #2ecc71; }
.zelle.teil   { background: linear-gradient(160deg, #d9b02e, var(--teil));   border-color: #ffd95e; color: #1c1608; }
.zelle.falsch { background: linear-gradient(160deg, #963848, var(--falsch)); border-color: #b5495c; }

.zelle .pfeil { font-size: 15px; opacity: 0.9; }

/* Aufdeck-Animation */

@keyframes aufdecken {
  0%   { transform: rotateX(90deg); opacity: 0; }
  100% { transform: rotateX(0deg); opacity: 1; }
}
.reihe.neu .zelle { animation: aufdecken 0.4s ease backwards; }

/* Ergebnis */

.ergebnis {
  width: 100%;
  max-width: 480px;
  margin-top: 22px;
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(200, 150, 60, 0.12);
}

.ergebnis-icon { display: flex; justify-content: center; margin-bottom: 8px; }

.ergebnis-icon img, .ergebnis-icon .mini-icon {
  width: 84px; height: 84px;
  border-radius: 12px;
  border: 2px solid var(--gold);
  font-size: 36px;
}

.ergebnis h3 { color: var(--gold-hell); font-size: 22px; letter-spacing: 0.05em; }

/* Sieges-Panel im "gg wp"-Stil */
.ergebnis.sieg {
  border-color: #2ecc71;
  box-shadow: 0 0 34px rgba(46, 204, 113, 0.22), inset 0 0 24px rgba(46, 204, 113, 0.05);
}
.ergebnis .gg {
  color: #2ecc71;
  font-size: 26px;
  letter-spacing: 0.14em;
  text-shadow: 0 0 14px rgba(46, 204, 113, 0.5);
  margin-bottom: 10px;
}
.fund-label { color: var(--muted); font-size: 13px; margin-top: 4px; }
.fund-name {
  font-family: "Cinzel", "Times New Roman", serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--gold-hell);
  margin: 2px 0 4px;
}
.fund-detail { color: var(--muted); font-size: 14px; }
.fund-detail strong { color: var(--text); }

.platz-zeile {
  color: var(--teal);
  font-size: 14px;
  margin-top: 8px;
}
.platz-zeile strong { color: var(--teal); font-size: 16px; }

.gitter { margin: 12px 0 4px; display: flex; flex-direction: column; gap: 4px; align-items: center; }
.gitter-reihe { display: flex; gap: 4px; align-items: center; }
.q {
  width: 16px; height: 16px;
  border-radius: 4px;
  display: inline-block;
}
.q.ok { background: linear-gradient(160deg, #26a35c, var(--ok)); }
.q.teil { background: linear-gradient(160deg, #d9b02e, var(--teil)); }
.q.falsch { background: linear-gradient(160deg, #963848, var(--falsch)); }
.q-text { font-size: 14px; margin-left: 4px; }
.q-taste {
  display: inline-grid;
  place-items: center;
  width: 18px; height: 18px;
  margin-left: 4px;
  color: #fff;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  vertical-align: -4px;
}
.inline-gold { width: 18px; height: 18px; vertical-align: -3px; }

.countdown-label { color: var(--muted); font-size: 13px; margin-top: 14px; }
.countdown-gross {
  font-size: 36px;
  font-weight: 700;
  color: var(--teal);
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  text-shadow: 0 0 16px rgba(10, 200, 185, 0.4);
}
.countdown-gross .countdown { color: inherit; }

.weiter-label { color: var(--muted); font-size: 13px; margin-top: 14px; }
.weiter-karte {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 8px 18px 8px 8px;
  font: inherit;
  color: var(--text);
  background: rgba(13, 29, 56, 0.9);
  border: 1px solid rgba(10, 200, 185, 0.55);
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(10, 200, 185, 0.15);
}
.weiter-karte:hover { border-color: var(--gold); }
.weiter-icon { width: 40px; height: 40px; display: grid; place-items: center; }
.weiter-icon img { width: 100%; height: 100%; }
.weiter-name {
  font-family: "Cinzel", "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--gold-hell);
}

.ergebnis-knoepfe { display: flex; gap: 10px; justify-content: center; margin-top: 14px; }
.ergebnis-knoepfe .teilen-knopf { margin-top: 0; }
.ergebnis p { color: var(--muted); margin-top: 6px; font-size: 14.5px; }
.ergebnis p strong { color: var(--text); }
.ergebnis .countdown { color: var(--teal); font-variant-numeric: tabular-nums; font-weight: 600; }

.teilen-knopf {
  margin-top: 14px;
  padding: 10px 22px;
  font: inherit;
  font-weight: 600;
  color: #1c1608;
  background: linear-gradient(180deg, var(--gold-hell), var(--gold));
  border: none;
  border-radius: 8px;
  cursor: pointer;
}
.teilen-knopf:hover { filter: brightness(1.1); }

/* ---------- Statistik-Overlay ---------- */

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 14, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 40;
  padding: 16px;
}

.overlay-karte {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 14px 50px rgba(0, 0, 0, 0.6);
}

.overlay-karte h3 {
  color: var(--gold-hell);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  text-align: center;
}

.overlay-zu {
  position: absolute;
  top: 10px; right: 12px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 16px;
  cursor: pointer;
}
.overlay-zu:hover { color: var(--gold-hell); }

.statistik-zeile {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.statistik-zeile:last-child { border-bottom: none; }
.statistik-zeile .modus { color: var(--gold-hell); font-weight: 600; flex: 0 0 auto; }
.statistik-zeile .werte { color: var(--muted); text-align: right; }
.statistik-zeile .werte strong { color: var(--text); }

/* ---------- Profil & Challenge ---------- */

.profil-label {
  display: block;
  color: var(--muted);
  font-size: 13.5px;
  margin: 12px 0 6px;
}

.profil-eingabe {
  width: 100%;
  padding: 11px 14px;
  font: inherit;
  font-size: 15px;
  color: var(--text);
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
}
.profil-eingabe:focus { border-color: var(--gold); }

.avatar-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 52px;
  gap: 8px;
  margin: 10px 0 16px;
  max-height: 246px;
  overflow-y: auto;
  padding-right: 4px;
  align-content: start;
}

.avatar {
  padding: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-1);
  border: 2px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar .mini-icon { width: 100%; height: 100%; border: none; border-radius: 0; }
.avatar:hover { border-color: var(--gold); }
.avatar.gewaehlt { border-color: var(--gold-hell); box-shadow: 0 0 0 2px rgba(240, 201, 108, 0.35); }

#profil-mitnehmen {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.klein-hinweis {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.5;
  margin-top: 6px;
}

.schummel-karte { text-align: center; }

.schummel-text {
  font-size: 17px;
  line-height: 1.65;
  margin: 12px 0 6px;
}
.schummel-text strong { color: var(--gold-hell); }

.challenge-punkte {
  text-align: center;
  font-size: 40px;
  color: var(--gold-hell);
  line-height: 1.1;
}
.challenge-punkte small { font-size: 15px; color: var(--muted); display: block; }

.challenge-name { text-align: center; color: var(--teal); font-weight: 600; margin: 2px 0 12px; }

.challenge-leer { text-align: center; color: var(--muted); font-size: 14px; padding: 10px 0; }

.challenge-info {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
  margin-top: 12px;
}

.rang-titel {
  color: var(--gold-hell);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
  margin: 16px 0 4px;
  text-align: center;
}

.rang-avatar {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1px solid var(--line);
  vertical-align: -5px;
  margin-right: 6px;
}

.statistik-zeile.ich {
  background: rgba(200, 150, 60, 0.10);
  border-radius: 8px;
  padding-left: 8px;
  padding-right: 8px;
}

/* ---------- Fuß ---------- */

footer {
  margin-top: auto;
  padding-top: 36px;
  max-width: 640px;
  text-align: center;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.5;
}

/* ---------- Mobil ---------- */

@media (max-width: 640px) {
  body { padding: 72px 8px 32px; } /* Platz für die fixierten Kopf-Knöpfe */
  .zelle { width: 66px; min-height: 66px; font-size: 11.5px; }
  .zelle.portrait img { height: 64px; }
  .zelle.portrait .name-tag { margin-top: -18px; font-size: 9px; }
  .reihe { gap: 5px; }
  .brett { gap: 5px; }
  .taste-knopf { min-width: 56px; }

  /* Vorschläge in Daumengröße */
  .vorschlaege { max-height: 46vh; }
  .vorschlag { padding: 13px 14px; font-size: 17px; gap: 14px; }
  .vorschlag img, .vorschlag .mini-icon { width: 42px; height: 42px; flex: 0 0 42px; }
}
