/* Koboldabzeichen (6.10.2026, ALLEINSTELLUNG.md Paket 4): Popup, Sammlung, Steckbrief. Farben aus style.css. */
.abzpopup { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(20, 16, 12, .55); }
.abzkarte { position: relative; background: var(--karte, #F7F1E1); color: var(--tinte, #2A2118); border-radius: 22px; padding: 18px 18px 14px; max-width: 360px; width: 100%; text-align: center;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .45); border: 4px solid #B07D3A; max-height: 92vh; overflow-y: auto; }
.abzkarte.breit { max-width: 860px; text-align: left; }
.abzkarte.stufe-silber { border-color: #A8B2BC; } .abzkarte.stufe-gold { border-color: #E0B03A; box-shadow: 0 0 0 3px rgba(224, 176, 58, .35), 0 14px 40px rgba(0, 0, 0, .45); }
.abzkopf { font-family: Fredoka, sans-serif; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #8A5A1E; margin: 0; }
.abzkarte h2 { font-family: Fredoka, sans-serif; font-weight: 600; margin: 6px 0 2px; }
.abzspruch { font-style: italic; font-weight: 700; margin: 4px 0; } .abzwie { font-size: .9rem; opacity: .85; margin: 4px 0; } .abzstufe { font-size: .85rem; opacity: .75; }
.abzfigur { width: 72px; height: 72px; object-fit: contain; display: block; margin: 0 auto; }
.abzfigur.gross { width: 150px; height: 150px; animation: abzhuepf 1.6s ease-in-out infinite; }
@keyframes abzhuepf { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-8px) rotate(2deg); } }
.abzleer { display: flex; align-items: center; justify-content: center; border: 2px dashed currentColor; border-radius: 50%; opacity: .35; font-weight: 700; }
.abzweiter { margin-top: 8px; font: inherit; font-weight: 700; padding: 10px 18px; border-radius: 14px; border: 2px solid var(--gruen-dunkel, #4C7A5A); background: var(--gruen-dunkel, #4C7A5A); color: var(--auf-gruen, #fff); cursor: pointer; }   /* App 215: Kontrast (axe), vorher Weiss auf hellem Gruen */
/* Schliessen: roter pulsierender Kreis oben rechts wie ueberall (.popupzu) */
/* Seit 6.10.2026 nachts wie .popupzu/.dpopupzu: sticky oben rechts (bleibt beim Scrollen der Sammlung sichtbar, wird nicht
   abgeschnitten) und fest 40 x 40 rund; "button.abzzu" schlaegt die allgemeinen Knopfregeln (min-height, padding), die ihn oval zogen. */
button.abzzu { position: sticky; top: 0; float: right; z-index: 5; margin: -6px -6px -34px auto; box-sizing: border-box; width: 40px; height: 40px; min-width: 40px; min-height: 40px; max-width: 40px; max-height: 40px;
  aspect-ratio: 1; flex: none; padding: 0; border-radius: 50%; display: grid; place-items: center; font-size: 1.25rem; font-weight: 700; line-height: 1;
  border: 2.5px solid #fff; background: #B0303A; color: #fff; cursor: pointer; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); animation: abzzupuls 1.8s ease-in-out infinite; }
button.abzzu span { display: block; transition: transform .18s; }
button.abzzu:hover span, button.abzzu:focus-visible span { transform: rotate(90deg); }
button.abzzu:active { transform: scale(.9); }
@keyframes abzzupuls { 0%, 100% { box-shadow: 0 2px 6px rgba(0,0,0,.3), 0 0 0 0 rgba(176,48,58,.55); } 60% { box-shadow: 0 2px 6px rgba(0,0,0,.3), 0 0 0 9px rgba(176,48,58,0); } }
.abzkopfzeile { display: flex; gap: 16px; align-items: center; margin-bottom: 8px; padding-right: 40px; }
.abzhinweis { font-size: .85rem; opacity: .8; }
.abzgruppe h3 { display: flex; align-items: center; gap: 8px; font-family: Fredoka, sans-serif; font-weight: 600; margin: 14px 0 6px; }
.abzgruppe h3 small { font-weight: 400; opacity: .7; }
.abzgruppefig { width: 34px; height: 34px; object-fit: contain; }
.abzraster { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.abzfeld { border-radius: 14px; border: 2px solid rgba(0, 0, 0, .12); padding: 6px; text-align: center; font-size: .78rem; display: flex; flex-direction: column; align-items: center; gap: 3px; background: rgba(255, 255, 255, .35); }
/* Noch nicht erhalten: weicher grauer Schemen statt flacher Silhouette (12.10.2026, Fund des Autors: in der flachen Silhouette
   verschmolzen Tunika-Saum und Beine, die Fransen dazwischen wirkten anstoessig). Kleidung bleibt als Kante erkennbar. */
/* Gesperrt: unscharfer Schatten (App 234, Entscheidung des Autors 13.10.2026; vorher grauer Schemen) - man ahnt die Form, mehr nicht. */
.abzfeld:not(.hat) .abzfigur { filter: brightness(0) blur(3px) opacity(.32); }
.abzfeld.hat.stufe-bronze { border-color: #B07D3A; } .abzfeld.hat.stufe-silber { border-color: #A8B2BC; } .abzfeld.hat.stufe-gold { border-color: #E0B03A; background: rgba(224, 176, 58, .12); }
.abzfeld small { opacity: .7; }
.abzbalken { width: 80%; height: 6px; border-radius: 3px; background: rgba(0, 0, 0, .12); overflow: hidden; } .abzbalken i { display: block; height: 100%; background: var(--gruen, #7CA36A); }
.abzsteck { position: relative; display: inline-block; width: var(--px); height: var(--px); flex: none; }
.abzsteckfig { width: 100%; height: 100%; object-fit: contain; }
.abzteil { position: absolute; width: 38%; height: 38%; transform: translate(-50%, -50%); filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .35)); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .abzkarte { background: #2A2520; color: #F2E8C9; } :root:not([data-theme="light"]) .abzkopf { color: #E0B070; } }
:root[data-theme="dark"] .abzkopf { color: #E0B070; }
:root[data-theme="dark"] .abzkarte { background: #2A2520; color: #F2E8C9; }
@media (prefers-reduced-motion: reduce) { .abzfigur.gross, .abzzu { animation: none; } }
@media (max-width: 520px) { .abzraster { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); } .abzkopfzeile { flex-direction: column; align-items: flex-start; } }
/* Spielbericht (6.10.2026, Paket 5) */
.berichtbild img { width: 100%; max-width: 540px; display: block; margin: 8px auto; border-radius: 14px; box-shadow: 0 8px 22px rgba(0,0,0,.35); animation: berichtrein .6s ease-out both; }
@keyframes berichtrein { from { transform: translateY(-20px) rotate(-2deg); opacity: 0; } to { transform: none; opacity: 1; } }
.berichtchronik { padding-left: 1.2em; } .berichtknoepfe { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.berichtknoepfe button { font: inherit; font-weight: 700; padding: 8px 14px; border-radius: 12px; border: 2px solid var(--gruen-dunkel, #4C7A5A); background: var(--karte, #fff); color: inherit; cursor: pointer; }
.berichtmeldung { text-align: center; min-height: 1.2em; } .berichtwarte { text-align: center; font-style: italic; }
@media (prefers-reduced-motion: reduce) { .berichtbild img { animation: none; } }

/* Abzeichen im eigenen Konto (6.10.2026 nachts): Kopf mit Steckbrief und Gesamtbalken, Gruppen als Kaertchen. */
.abzkonto .abzkopfzeile { padding-right: 0; background: var(--karte, #F7F1E1); border-radius: 18px; padding: 12px 14px; box-shadow: 0 2px 8px rgba(42, 33, 24, .12); }
.abzkonto .abzgross { font-family: Fredoka, sans-serif; font-weight: 600; font-size: 1.2rem; margin: 0 0 6px; }
.abzkonto .abzbalken.gross { width: 100%; height: 10px; border-radius: 5px; display: block; margin-bottom: 6px; }
.abzkonto .abzhinweis { font-size: .85rem; opacity: .8; margin: 0 0 8px; }
.abzkonto .abzfeld small { font-size: .7rem; }
.abzgruppen { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.abzgruppen button.abzgruppekarte { display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto; align-items: center; gap: 2px 8px; text-align: left; padding: 8px 10px; min-height: 0;
  border-radius: 14px; border: 2px solid rgba(0, 0, 0, .12); background: rgba(255, 255, 255, .5); color: inherit; cursor: pointer; font: inherit; }
.abzgruppekarte .abzgruppefig { grid-row: span 2; }
.abzgruppekarte b { font-family: Fredoka, sans-serif; font-weight: 600; font-size: .9rem; }
/* Lange Gruppennamen (10.10.2026, Fund des Autors: "Untendrunter", "Schabernack", "Rumpelfeste" ragten ueber die Kachel):
   Kacheln mindestens 160 px breit, alle Namen gleich gross (.84rem, rund 12 Zeichen passen), die Textspalte darf schrumpfen,
   notfalls bricht ein Name statt ueberzustehen. */
.abzgruppen { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.abzgruppen button.abzgruppekarte { grid-template-columns: 34px minmax(0, 1fr); }
.abzgruppekarte b { font-size: .84rem; overflow-wrap: anywhere; }
.abzgruppekarte .abzbalken { width: 100%; }
.abzgruppekarte small { grid-column: 2; font-size: .75rem; opacity: .75; }
.abzgruppekarte.voll { border-color: #E0B03A; background: rgba(224, 176, 58, .14); }
.abzgruppekarte:hover, .abzgruppekarte:focus-visible { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(42, 33, 24, .18); }
/* Mehrfach-Abzeichen (7.10.2026): Schild "x n" an der Ecke, Rueckstand bei Sammel-Abzeichen */
.abzfeld { position: relative; }
.abzmal { position: absolute; top: 4px; right: 4px; font-family: Fredoka, Nunito, sans-serif; font-weight: 600; font-size: .72rem; line-height: 1; padding: 3px 6px; border-radius: 10px; background: #E69F00; color: #2A2118; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.abzmale { margin: 0 0 4px; font-family: Fredoka, Nunito, sans-serif; font-weight: 600; font-size: 1.05rem; color: #B8860B; }
.abzrueck { opacity: .75; font-style: italic; }
/* App 410: Teilziele eines Abzeichens (Betatester: Partien, Meldungen), je eine Zeile; erreicht mit Haken. */
.abzziel { display: block; line-height: 1.25; }
.abzziel.fertig { font-weight: 700; }
/* Zahl statt Bild (Rattensammler, 7.10.2026): runde Plakette mit dem Zaehlerstand */
.abzzahlbild { display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #C9B2D6, #9A6FB0 60%, #6E4A82);
  color: #fff; font-family: Fredoka, Nunito, sans-serif; font-weight: 600; font-size: 1.4rem; text-shadow: 0 2px 0 rgba(0, 0, 0, .35); box-shadow: 0 3px 8px rgba(0, 0, 0, .3), inset 0 0 0 3px rgba(255, 255, 255, .35); }
.abzzahlbild.gross { font-size: 2.6rem; }
.abzfeld:not(.hat) .abzzahlbild { filter: grayscale(.5) opacity(.75); }
/* Erklaerblase der Abzeichen (7.10.2026): runde Ecken, Rumpel-Schrift, kleiner Pfeil zum Abzeichen */
.abztipp { position: fixed; z-index: 1000; pointer-events: none; padding: 8px 12px; border-radius: 14px; background: #FFFDF5; color: #2A2118;
  font-family: Nunito, "Trebuchet MS", sans-serif; font-weight: 600; font-size: .9rem; line-height: 1.3; border: 2px solid #5E8250;
  box-shadow: 0 6px 18px rgba(42, 33, 24, .25); opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .15s; }
.abztipp.da { opacity: 1; transform: none; }
.abztipp::after { content: ""; position: absolute; left: calc(var(--pfeil, 50%) - 7px); bottom: -8px; width: 12px; height: 12px; background: #FFFDF5;
  border-right: 2px solid #5E8250; border-bottom: 2px solid #5E8250; transform: rotate(45deg); }
.abztipp.unten::after { bottom: auto; top: -8px; transform: rotate(225deg); }
@media (prefers-color-scheme: dark) { .abztipp, .abztipp::after { background: #252E23; color: #E6EEDC; } }
@media (prefers-reduced-motion: reduce) { .abztipp { transition: none; } }
.abzfeld:focus-visible { outline: 3px solid #E69F00; outline-offset: 2px; }

/* ===== Stickeralbum (7.10.2026, Wunsch des Autors) ===== */
.stkalbumkopf { padding: 4px 0 8px; } .stkalbumkopf h2 { margin: 0; font-family: Fredoka, Nunito, sans-serif; }
.abzgruppe { background: linear-gradient(#FBF6E6, #F4EDD6); border: 1px solid rgba(42, 33, 24, .12); border-radius: 16px; padding: 10px 12px 14px; margin: 12px 0;
  box-shadow: inset 6px 0 0 rgba(42, 33, 24, .06), 0 3px 10px rgba(42, 33, 24, .12); }
.stkseite { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 14px 10px; padding: 6px 2px; }
.stk { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; font-size: .78rem; outline: none; }
.stknr { position: absolute; top: 4px; left: 6px; font-family: Fredoka, Nunito, sans-serif; font-weight: 600; font-size: .7rem; color: rgba(42, 33, 24, .45); }
.stkname { font-family: Fredoka, Nunito, sans-serif; font-weight: 600; font-size: .82rem; line-height: 1.15; color: #2A2118; }
.stk small { opacity: .7; font-size: .72rem; }
/* leerer Platz: gestrichelter Umriss, Motiv nur als Schatten */
.stk.leer .stkschatten, .stk.leer > .stkzeichen { width: 84px; height: 84px; display: grid; place-items: center; border: 2.5px dashed rgba(42, 33, 24, .25); border-radius: 18px; background: rgba(42, 33, 24, .03); }
.stk.leer .stkschatten > * { filter: grayscale(1) brightness(.2) opacity(.18); }
.stk.leer .stkname { opacity: .55; }
.stk.leer.geheim > .stkzeichen { font-size: 2rem; color: rgba(42, 33, 24, .3); }
/* gesammelt: weisser Stanzrand, schraeg, Glanz, Rand je Stufe */
.stk.hat .stkflaeche { position: relative; width: 84px; height: 84px; display: grid; place-items: center; border-radius: 18px; overflow: hidden;
  background: radial-gradient(circle at 30% 25%, #FFFDF5, #EFE4C4); border: 5px solid #fff; transform: rotate(var(--dreh, 0deg));
  box-shadow: 0 0 0 3px var(--rand, #B87333), 0 6px 12px rgba(42, 33, 24, .3); transition: transform .2s ease-out; }
.stk.hat.stufe-bronze { --rand: #B87333; } .stk.hat.stufe-silber { --rand: #A8B0B8; } .stk.hat.stufe-gold { --rand: #E0B23A; }
.stk.hat.stufe-gold .stkflaeche { background: radial-gradient(circle at 30% 25%, #FFF8DC, #F3D98A); }
.stk.hat:hover .stkflaeche, .stk.hat:focus-visible .stkflaeche { transform: rotate(0deg) scale(1.06); }
.stkbild { width: 92%; height: 92%; object-fit: contain; }
.stkzeichen { font-size: 2.6rem; line-height: 1; }
.stkzahl { font-family: Fredoka, Nunito, sans-serif; font-weight: 600; font-size: 1.8rem; color: #6E4A82; }
.stkglanz { position: absolute; inset: -40%; background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .55) 50%, transparent 60%); transform: translateX(-30%); pointer-events: none; }
.stk.hat:hover .stkglanz { animation: stkglanz 1s ease-out; }
@keyframes stkglanz { to { transform: translateX(30%); } }
.stk .abzmal { top: -4px; right: 2px; }
.stk:focus-visible .stkflaeche, .stk.leer:focus-visible .stkschatten { outline: 3px solid #E69F00; outline-offset: 3px; }
/* Albumcover im Konto: die drei neuesten Sticker gefaechert */
.stkcover { position: relative; width: 130px; height: 120px; flex: 0 0 auto; }
.stkcoverblatt { position: absolute; left: calc(var(--i) * 18px); top: calc(var(--i) * 6px); transform: rotate(calc((var(--i) - 1) * 8deg)); }
.stkcoverblatt .stkname, .stkcoverblatt small { display: none; }
.stkcoverleer { font-size: 4rem; }
@media (prefers-reduced-motion: reduce) { .stk.hat .stkflaeche { transition: none; } .stk.hat:hover .stkglanz { animation: none; } }

/* Tagesserie (7.10.2026, LAUNEN-RANKING.md §2b): Mond je Serie, Wolkenvorrat, Kalender der letzten zwei Wochen. */
.seriekasten { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px 10px; margin: 8px 0; padding: 8px 12px; border-radius: 14px;
  background: rgba(255, 255, 255, .55); border: 1px solid rgba(42, 33, 24, .15); color: #2A2118; text-align: left; font-family: "Nunito", sans-serif; }
.seriemond { font-size: 2rem; line-height: 1; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .25)); }
.serietext { display: flex; flex-direction: column; min-width: 0; }
.serietext b { font-family: "Fredoka", "Nunito", sans-serif; font-weight: 600; font-size: 1.05rem; }
.serietext small { font-size: .82rem; opacity: .85; }
.seriewolken { font-size: 1.3rem; letter-spacing: 2px; color: #7C8DA6; white-space: nowrap; cursor: help; }
.seriewolken .leerwolke { font-style: normal; opacity: .22; }
.seriekalender { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 3px; max-width: 420px; }
.serietag { aspect-ratio: 1; border-radius: 50%; background: rgba(42, 33, 24, .08); display: flex; align-items: center; justify-content: center; font-style: normal; font-size: .7rem; color: #5D6F8A; }
.serietag.gespielt { background: radial-gradient(circle at 35% 35%, #FFF2B0, #E6B422 70%); box-shadow: 0 0 0 1px rgba(42, 33, 24, .25); }
.serietag.wolke { background: #DCE3EE; }
.serietag.heute { outline: 2px solid #E69F00; outline-offset: 1px; }
.seriehinweis { grid-column: 1 / -1; margin: 2px 0 0; font-size: .78rem; opacity: .8; }
.dtagkasten .seriekasten { grid-column: 1 / -1; width: 100%; box-sizing: border-box; }
.abzpopup { padding-top: max(16px, calc(var(--updateh, 0px) + 8px)); }   /* Update-Banner (7.10.2026 abends) */

/* Zahl-Abzeichen als dicke Ratte (8.10.2026, Wunsch des Autors): die Zahl weiss mit schwarzer Kontur auf ihrem Bauch. */
.abzzahlratte { position: relative; display: block; }
.abzzahlratte .abzratbild { width: 100%; height: 100%; object-fit: contain; display: block; }
.abzzahlratte .abzratzahl { position: absolute; left: 50%; top: 62%; transform: translate(-50%, -50%); font-family: Fredoka, Nunito, sans-serif; font-weight: 600;
  font-size: 1.35rem; line-height: 1; color: #fff; -webkit-text-stroke: 2px #1A1410; paint-order: stroke fill; text-shadow: 0 2px 3px rgba(0, 0, 0, .35); white-space: nowrap; }
.abzzahlratte.gross .abzratzahl { font-size: 3rem; -webkit-text-stroke: 3px #1A1410; }
.abzzahlratte.imsticker { width: 100%; height: 100%; }
.abzfeld:not(.hat) .abzzahlratte .abzratbild { filter: grayscale(.6) opacity(.6); }

/* Verdiente Abzeichen leben (8.10.2026, Wunsch des Autors): Die Figur einer erhaltenen Kachel atmet und wippt wie die Kobolde
   der Seiten (figleben/fighupf aus style.css), versetzt je Kachel; nicht erhaltene bleiben still als Schatten. */
.abzfeld.hat .abzfigur, .abzfeld.hat .abzratbild { animation: figleben 6.6s ease-in-out infinite; transform-origin: 50% 100%; }
.abzfeld.hat:nth-child(2n) .abzfigur, .abzfeld.hat:nth-child(2n) .abzratbild { animation-duration: 7.4s; animation-delay: -2.5s; }
.abzfeld.hat:nth-child(3n) .abzfigur, .abzfeld.hat:nth-child(3n) .abzratbild { animation-name: fighupf; animation-duration: 9.8s; animation-delay: -5s; }
.abzfeld.hat:nth-child(5n) .abzfigur { animation-delay: -1.2s; }
@media (prefers-reduced-motion: reduce) { .abzfeld.hat .abzfigur, .abzfeld.hat .abzratbild { animation: none; } }

/* Namen melden (9.10.2026, NORMEN-PLAN.md Schritt 4, app/melden-ui.js): kleine Fahne an oeffentlichen Namen, Popup mit Rueckfrage.
   Die Fahne ist 28 x 28 (WCAG 2.5.8: mindestens 24), dezent, damit die Rangliste ruhig bleibt; deutlich erst bei Zeigen und Fokus. */
button.meldenknopf { box-sizing: border-box; width: 28px; height: 28px; min-width: 28px; min-height: 28px; padding: 0; margin: 0 0 0 6px; flex: none;
  display: inline-grid; place-items: center; border-radius: 50%; border: 1.5px solid currentColor; background: transparent; color: inherit;
  font-size: .85rem; line-height: 1; opacity: .4; cursor: pointer; vertical-align: middle; }
button.meldenknopf:hover, button.meldenknopf:focus-visible { opacity: 1; color: #B0303A; }
.meldenkarte .meldengrundfrage { font-size: .9rem; opacity: .8; margin: 10px 0 4px; }
.meldengruende { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
button.meldengrund { font: inherit; font-size: .9rem; padding: 6px 12px; min-height: 36px; border-radius: 999px; border: 2px solid rgba(0, 0, 0, .2); background: rgba(255, 255, 255, .5); color: inherit; cursor: pointer; }
button.meldengrund.an { border-color: #B07D3A; background: #F0DDB4; font-weight: 700; }
.meldenknoepfe { display: flex; gap: 8px; justify-content: center; margin-top: 12px; }
.meldenknoepfe button { font: inherit; font-weight: 700; padding: 10px 18px; min-height: 44px; border-radius: 14px; cursor: pointer; }
button.meldensenden { border: 2px solid #8A2530; background: #B0303A; color: #fff; }
button.meldenab { border: 2px solid rgba(0, 0, 0, .25); background: transparent; color: inherit; }
.meldenfehler { color: #B0303A; font-weight: 700; }
.meldenfertig { font-weight: 700; margin: 12px 0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) button.meldengrund { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .25); }
  :root:not([data-theme="light"]) button.meldengrund.an { background: #5A4526; } }
:root[data-theme="dark"] button.meldengrund { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .25); }
:root[data-theme="dark"] button.meldengrund.an { background: #5A4526; }
/* Konto: Hinweis nach dem Zuruecksetzen des Namens und Schalter "Im Ranking verbergen" */
.knamewaehlen { border: 3px solid #B07D3A; }
.kverbergen { display: flex; gap: 10px; align-items: flex-start; } .kverbergen input { width: 22px; height: 22px; flex: none; margin-top: 2px; }

/* ===== Bronze, Silber, Gold (9.10.2026, Wunsch des Autors) =====
   Gestufte Abzeichen: Ring in der erreichten Stufe um das Bild (Bronze braun, Silber silbern, Gold golden), dauerhafter sanfter
   Glanz und aufsteigende, funkelnde Funken (Bronze 2, Silber 4, Gold alle). Nur CSS. Bewegt nur unter "no-preference"; bei
   "Bewegung aus" (app/bewegung.js, data-bewegung="aus") und prefers-reduced-motion bleibt ein stiller Glanz, die Funken ruhen.
   Der Balken laeuft in drei Dritteln: bis Bronze, bis Silber, bis Gold, mit Strichen an den Dritteln. */
.abzfeld.gestuft, .abzbildrahmen.gestuft, .stk.gestuft { --stufe: #8C5A2B; --stufe-hell: #C98C55; --glanz: rgba(176, 110, 50, .35); }
.gestuft.stufe2, .stk.gestuft.stufe-silber, .abzbildrahmen.stufe-silber { --stufe: #9AA6B2; --stufe-hell: #EEF3F7; --glanz: rgba(200, 214, 226, .55); }
.gestuft.stufe3, .stk.gestuft.stufe-gold, .abzbildrahmen.stufe-gold { --stufe: #D9A520; --stufe-hell: #FFE68A; --glanz: rgba(255, 214, 90, .6); }
.abzfeld.hat.gestuft.stufe-bronze { border-color: #8C5A2B; background: rgba(140, 90, 43, .08); }
.abzfeld.hat.gestuft.stufe-silber { border-color: #9AA6B2; background: rgba(200, 214, 226, .18); }
.abzfeld.hat.gestuft.stufe-gold { border-color: #D9A520; background: rgba(255, 214, 90, .16); }
.stk.hat.gestuft.stufe-bronze { --rand: #8C5A2B; }
.abzfeld.gestuft, .abzbildrahmen { position: relative; isolation: isolate; }
.abzbildrahmen { display: block; width: max-content; margin: 4px auto; padding: 8px; }
.abzring { position: absolute; z-index: -1; left: 50%; top: 4px; width: 80px; height: 80px; transform: translateX(-50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 35% 30%, var(--stufe-hell), transparent 62%), radial-gradient(circle, var(--glanz) 0 58%, transparent 72%);
  box-shadow: 0 0 0 3px var(--stufe), 0 0 0 5px rgba(255, 255, 255, .7), 0 0 14px 2px var(--glanz); }
.abzbildrahmen .abzring { top: 0; width: 166px; height: 166px; box-shadow: 0 0 0 4px var(--stufe), 0 0 0 7px rgba(255, 255, 255, .7), 0 0 24px 4px var(--glanz); }
.abzfunken { position: absolute; z-index: 2; left: 50%; top: 4px; width: 80px; height: 80px; transform: translateX(-50%); pointer-events: none; overflow: visible; }
.abzbildrahmen .abzfunken { top: 0; width: 166px; height: 166px; }
.stk .abzfunken { top: 0; width: 94px; height: 94px; }
.abzfunken i { position: absolute; bottom: 12%; width: 5px; height: 5px; border-radius: 50%; opacity: 0; background: var(--stufe-hell);
  box-shadow: 0 0 4px 1px var(--stufe-hell), 0 0 8px 2px var(--glanz); }
.abzfunken i:nth-child(1) { left: 18%; } .abzfunken i:nth-child(2) { left: 74%; } .abzfunken i:nth-child(3) { left: 40%; }
.abzfunken i:nth-child(4) { left: 86%; } .abzfunken i:nth-child(5) { left: 8%; } .abzfunken i:nth-child(6) { left: 58%; }
.abzfunken i:nth-child(7) { left: 30%; } .abzfunken i:nth-child(8) { left: 66%; }
/* Bronze dezent (2 Funken), Silber 4, Gold alle */
.stufe-bronze .abzfunken i:nth-child(n+3), .stufe1 .abzfunken i:nth-child(n+3) { display: none; }
.stufe-silber .abzfunken i:nth-child(n+5), .stufe2 .abzfunken i:nth-child(n+5) { display: none; }
.abzfeld.gestuft:not(.hat) .abzfunken, .stk.leer .abzfunken { display: none; }
.abzstufenname { font-family: Fredoka, Nunito, sans-serif; font-weight: 600; letter-spacing: .03em; opacity: 1 !important; }
.abzstufenname.stufe-bronze { color: #7A4A20; } .abzstufenname.stufe-silber { color: #66717C; } .abzstufenname.stufe-gold { color: #A87A0C; }
.abzstufenname.gross { font-size: 1.15rem; margin: 0 0 4px; }
.abzstufenziel { font-size: .72rem; }
/* Balken in drei Dritteln: die Strecke laeuft von Bronze ueber Silber zu Gold, Striche an den Dritteln */
.abzbalken.drittel { position: relative; height: 8px; border-radius: 4px; }
.abzbalken.drittel i { background: linear-gradient(90deg, #A0682F 0 33.33%, #AEB8C2 33.33% 66.66%, #E0B03A 66.66% 100%);
  background-size: calc(100% / var(--w, 1)) 100%; background-repeat: no-repeat; }
.abzbalken.drittel::before, .abzbalken.drittel::after { content: ""; position: absolute; top: 0; bottom: 0; width: 2px; background: rgba(42, 33, 24, .45); }
.abzbalken.drittel::before { left: calc(33.33% - 1px); } .abzbalken.drittel::after { left: calc(66.66% - 1px); }
.abzkarte .abzbalken.drittel { width: 80%; margin: 6px auto 0; display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .abzstufenname.stufe-bronze { color: #D9A06A; } :root:not([data-theme="light"]) .abzstufenname.stufe-silber { color: #C9D2DA; }
  :root:not([data-theme="light"]) .abzstufenname.stufe-gold { color: #F0C850; } }
:root[data-theme="dark"] .abzstufenname.stufe-bronze { color: #D9A06A; } :root[data-theme="dark"] .abzstufenname.stufe-silber { color: #C9D2DA; } :root[data-theme="dark"] .abzstufenname.stufe-gold { color: #F0C850; }
@media (prefers-reduced-motion: no-preference) {
  .gestuft .abzring { animation: abzglanz 4.8s ease-in-out infinite; }
  .gestuft.stufe3 .abzring, .abzbildrahmen.stufe-gold .abzring { animation-duration: 3.6s; }
  .abzfunken i { animation: abzfunke 3.4s ease-out infinite; }
  .abzfunken i:nth-child(2) { animation-delay: -1.1s; animation-duration: 3.9s; } .abzfunken i:nth-child(3) { animation-delay: -2.3s; }
  .abzfunken i:nth-child(4) { animation-delay: -.6s; animation-duration: 4.2s; } .abzfunken i:nth-child(5) { animation-delay: -1.8s; animation-duration: 3.1s; }
  .abzfunken i:nth-child(6) { animation-delay: -2.8s; animation-duration: 3.7s; } .abzfunken i:nth-child(7) { animation-delay: -.3s; } .abzfunken i:nth-child(8) { animation-delay: -1.5s; animation-duration: 4s; }
  .stufe-bronze .abzfunken i, .stufe1 .abzfunken i { animation-duration: 5.2s; }
}
@keyframes abzglanz { 0%, 100% { box-shadow: inset 0 3px 6px rgba(255, 255, 255, .55), inset 0 -4px 8px rgba(42, 33, 24, .22), 0 0 0 3px var(--stufe), 0 0 0 5px rgba(255, 255, 255, .7), 0 0 10px 1px var(--glanz); }
  50% { box-shadow: inset 0 3px 6px rgba(255, 255, 255, .55), inset 0 -4px 8px rgba(42, 33, 24, .22), 0 0 0 3px var(--stufe), 0 0 0 5px rgba(255, 255, 255, .85), 0 0 20px 5px var(--glanz); } }
@keyframes abzfunke { 0% { opacity: 0; transform: translateY(0) scale(.4); } 15% { opacity: 1; transform: translateY(-8px) scale(1); }
  45% { opacity: .35; } 60% { opacity: 1; } 100% { opacity: 0; transform: translateY(-58px) scale(.2); } }
/* Bewegung aus: stiller Glanz, keine Funken */
@media (prefers-reduced-motion: reduce) { .abzfunken { display: none; } .gestuft .abzring { animation: none; } }
html[data-bewegung="aus"] .abzfunken { display: none; }
html[data-bewegung="aus"] .gestuft .abzring { animation: none; }

/* Groesser und erhaben (9.10.2026, Wunsch des Autors): Bei verdienten gestuften Abzeichen ragt der Kreis um ein Drittel
   ueber die Kachel hinaus, und der Kobold, groesser als bisher, ragt wiederum um ein Drittel oben aus dem Kreis.
   Kreis 90 px: 30 px ueber der Kachel; Kobold 120 px hoch, Fuesse unten im Kreis, Kopf 30 px ueber dem Kreis.
   Alle Kacheln der Sammlung tragen den groesseren Kobold gleich hoch (auch ohne Kreis), damit die Reihen gleichmaessig bleiben. */
.abzraster { row-gap: 66px; padding-top: 62px; }
.abzraster > .abzfeld { overflow: visible; }
.abzraster > .abzfeld > .abzfigur, .abzraster > .abzfeld > .abzzahlbild, .abzraster > .abzfeld > .abzzahlratte { width: 104px; height: 120px; margin-top: -66px; object-fit: contain; object-position: 50% 100%; position: relative; z-index: 1; }
.abzraster > .abzfeld > .abzzahlbild { width: 90px; height: 90px; margin-top: -36px; }
.abzfeld.hat.gestuft .abzring, .abzfeld.hat.gestuft .abzfunken { top: -30px; width: 90px; height: 90px; }
.abzfeld.hat.gestuft .abzfunken { z-index: 2; }
@media (max-width: 520px) { .abzraster > .abzfeld > .abzfigur { width: 92px; } }

/* Plastischer (10.10.2026, Wunsch des Autors) */
/* Abzeichen im Album: der Ring wie eine gepraegte Medaille (Innenschatten), erhaltene Kobolde heben sich mit Schatten ab. */
.abzring { box-shadow: inset 0 3px 6px rgba(255, 255, 255, .55), inset 0 -4px 8px rgba(42, 33, 24, .22), 0 0 0 3px var(--stufe), 0 0 0 5px rgba(255, 255, 255, .7), 0 0 14px 2px var(--glanz); }
.abzbildrahmen .abzring { box-shadow: inset 0 4px 10px rgba(255, 255, 255, .55), inset 0 -6px 12px rgba(42, 33, 24, .22), 0 0 0 4px var(--stufe), 0 0 0 7px rgba(255, 255, 255, .7), 0 0 24px 4px var(--glanz); }
.abzfeld.hat .abzfigur, .abzbildrahmen .abzfigur { filter: drop-shadow(0 7px 5px rgba(42, 33, 24, .32)) drop-shadow(0 2px 1px rgba(42, 33, 24, .25)); }

/* Fest-Ankuendigung (App 209, Wunsch des Autors): je Festlaune ihr Abzeichen klein am Launenbild, noch nicht erhalten als
   Silhouette (wie in der Sammlung), erhalten in Farbe mit Haken und goldenem Funkeln (Funken wie bei den Stufen; bei "Bewegung
   aus" und prefers-reduced-motion ruhen sie, die Farbe bleibt). Dazu der grosse Countdown in Fredoka, ohne jede Bewegung. */
.festabz { position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px;
  border-radius: 50%; background: rgba(255, 255, 255, .9); box-shadow: 0 0 0 2px rgba(42, 33, 24, .22); --stufe: #D9A520; --stufe-hell: #FFE68A; --glanz: rgba(255, 214, 90, .6); }
.festabzbild, .festabz img.festabzbild { display: block; width: 30px; height: 30px; object-fit: contain; border-radius: 0; }   /* gegen .festlaune img (72 px) */
.festabzzeichen { font-size: 19px; line-height: 30px; text-align: center; }
.festabz:not(.hat) .festabzbild { filter: brightness(0) blur(3px) opacity(.32); }   /* wie .abzfigur (12.10.2026) */
.festabz.hat { box-shadow: 0 0 0 2px var(--stufe), 0 0 0 4px rgba(255, 255, 255, .75), 0 0 10px 2px var(--glanz); }
.festabz .festabzhaken { position: absolute; z-index: 3; right: -5px; bottom: -5px; width: 16px; height: 16px; border-radius: 50%; background: #2E7D4F; color: #FFF;
  font: 700 11px/16px Nunito, sans-serif; text-align: center; box-shadow: 0 0 0 2px #FFF; }
.festabz .abzfunken { top: -8px; width: 50px; height: 50px; }
.festabz .abzfunken i { width: 4px; height: 4px; }
.festabz .abzfunken i:nth-child(n+5) { display: none; }
.festuhr { display: flex; flex-direction: column; align-items: center; text-align: center; margin: 2px 0; }
.tagzeileinnen > .festuhr, .dfestkasten > .festuhr { flex: 1 1 100%; }
.festuhrkopf, .festuhrfuss { font-size: .78rem; opacity: .85; }
/* Countdown als Kacheln (App 210, Wunsch des Autors): vier gleich grosse, quadratische Kacheln mit abgerundeten Ecken, dezentem
   Verlauf, innerem Glanz oben und weichem Schlagschatten; Ziffern zentriert in Fredoka mit gleich breiten Ziffern; darunter klein
   die Einheit in Grossbuchstaben. Die Reihe steht mittig; die Kachelgroesse folgt der Breite (clamp), auf 360 px passen alle vier. */
.festuhrzahl { display: flex; justify-content: center; align-items: flex-start; gap: clamp(6px, 2.2vw, 12px); margin: 4px auto 2px; }
.festuhrteil { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.festuhrkachel { --kachel: clamp(46px, 13.5vw, 64px); width: var(--kachel); height: var(--kachel); display: grid; place-items: center; border-radius: 12px;
  background: linear-gradient(180deg, #4E6B42 0%, #2F4527 100%); color: #FFF7DE;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .28), inset 0 -3px 0 rgba(0, 0, 0, .25), 0 3px 0 rgba(0, 0, 0, .18), 0 6px 12px rgba(0, 0, 0, .22); }
.festuhrkachel em { font: 600 clamp(1.35rem, 6.4vw, 2rem)/1 "Fredoka", "Nunito", sans-serif; font-style: normal; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.festuhrteil i { font: 700 .58rem/1.1 Nunito, sans-serif; font-style: normal; text-transform: uppercase; letter-spacing: .05em; opacity: .8; white-space: nowrap; }
.festuhr.heute .festuhrkachel { background: linear-gradient(180deg, #C9852A 0%, #8E5A14 100%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .festuhrkachel { background: linear-gradient(180deg, #6C8F5C 0%, #3E5933 100%); } }
:root[data-theme="dark"] .festuhrkachel { background: linear-gradient(180deg, #6C8F5C 0%, #3E5933 100%); }
html[data-kontrast="hoch"] .festuhrkachel { background: var(--karte); color: var(--tinte); box-shadow: none; border: 2px solid var(--tinte); }
html[data-kontrast="hoch"] .festuhrteil i { opacity: 1; }
/* Abzeichen neben dem Launenbild (App 210): eigener Platz, verdeckt das Bild nicht */
.festlaunezeile { display: inline-flex; align-items: flex-end; gap: 4px; }
.festlaunezeile > .festabz { position: static; flex: none; width: 28px; height: 28px; }
.festlaunezeile > .festabz .festabzbild { width: 24px; height: 24px; }
/* App 221 (Fund des Autors: "Abzeichen-Album auf dem Handy schwer zu lesen, Schrift muss schwarz sein auf hellem Grund"):
   Die Gruppen liegen immer auf hellem Papier, also auch im dunklen Design dunkle Schrift, ohne Durchscheinen. */
.abzgruppe, .abzgruppe h3, .abzgruppe .abzfeld, .abzgruppe .abzfeld small, .abzgruppe .stkname { color: #1A1410; }
.abzgruppe h3 small, .abzgruppe .abzfeld small { opacity: 1; color: #3D3226; }
.abzgruppe .abzfeld { background: rgba(255, 255, 255, .7); }
.abzgruppe .abzbalken { background: rgba(0, 0, 0, .18); }
/* Geburtstagsabzeichen (App 239): die Zahl sitzt auf der Torte vor dem Bauch; privat-Hinweis in der Sammlung. */
.abzzahlgeb .abzratzahl { left: 68%; top: 50%; }
.abzprivat { margin: -4px 0 8px; font-size: .9em; opacity: .85; }
/* Jahreskalender der Tages-Abzeichen (App 292, Antwort 74 des Autors): jedes Abzeichen an seinem Tag. */
.abzkalender { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.abzmonat { border-radius: 14px; border: 2px solid rgba(0, 0, 0, .12); background: rgba(255, 253, 245, .7); padding: 6px 8px 8px; }
.abzmonat h4 { margin: 2px 0 6px; font-family: Fredoka, sans-serif; font-weight: 600; text-transform: capitalize; }
.abzmonat h4 small { font-weight: 400; opacity: .7; }
.abzmonatraster { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.abztag { position: relative; aspect-ratio: 1; border-radius: 8px; background: rgba(0, 0, 0, .04); display: flex; align-items: center; justify-content: center; min-width: 0; }
.abztag.hat { background: rgba(224, 176, 58, .18); }
.abztagnr { position: absolute; top: 1px; left: 3px; font-size: .62rem; opacity: .6; pointer-events: none; z-index: 1; }
.abztag .abzfeld { border: 0; padding: 0; background: none; width: 100%; height: 100%; justify-content: center; gap: 0; cursor: zoom-in; }
.abztag .abzfeld .abzfigur { width: 100%; height: 100%; max-width: 44px; max-height: 44px; }
.abztag .abzfeld > :not(.abzfigur):not(img) { display: none; }
/* Zoom (App 292): Kopie des Abzeichens gross in der Mitte, Schleier dahinter; Tipp irgendwo bringt es zurueck. */
.abzfeld[data-tipp], .stk[data-tipp] { cursor: zoom-in; }
.bwzoomschleier { position: fixed; inset: 0; z-index: 1100; background: rgba(20, 16, 12, .45); opacity: 0; }
.bwzoom { position: fixed; z-index: 1101; left: 50%; top: 50%; translate: -50% -50%; pointer-events: none; text-align: center; }
.bwzoom .bwzoomkopie { visibility: visible !important; width: 100%; box-sizing: border-box; margin: 0 auto; padding: 14px 10px 10px; background: #FFFDF5; border-radius: 18px; box-shadow: 0 10px 28px rgba(0, 0, 0, .35); }
.bwzoom .bwzoomkopie > * { display: revert; }
/* 17.10.2026 (Fund des Autors): gross immer auf hellem Grund; die Stufen-Regeln (.abzfeld.hat.gestuft.stufe-gold u. a.) setzen
   halbtransparente Flaechen und waren spezifischer, dann stand das Abzeichen durchsichtig auf dem Schleier. Der Stufenrand bleibt. */
.bwzoom .bwzoomkopie, .bwzoom .bwzoomkopie.abzfeld, .bwzoom .bwzoomkopie.stk { background: #FFFDF5 !important; }
.bwzoom .abzfigur, .bwzoom .stkbild { width: 70%; height: auto; max-width: 210px; aspect-ratio: 1; }
.bwzoommehr { margin-top: 6px; padding: 8px 10px; border-radius: 12px; background: #FFFDF5; color: #2A2118; font-size: .95rem; line-height: 1.35; box-shadow: 0 4px 12px rgba(0, 0, 0, .25); }
.bwzoommehr b { display: block; font-family: Fredoka, sans-serif; font-size: 1.1rem; }
.bwzoommehr p { margin: 4px 0 0; }

/* Mondkreis der Goldmonde (App 343, MYSTIK-PLAN.md §4.2): acht Plaetze im Kreis, erlebte golden mit Schein, fehlende dunkel. */
.abzmondkreis { position: relative; width: 168px; height: 168px; margin: 6px auto 4px; border-radius: 50%; background: radial-gradient(circle, #1B2340 55%, #0F1530); }
.abzmondplatz { position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px; display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; transform: rotate(calc(var(--i) * 45deg - 90deg)) translate(62px) rotate(calc(var(--i) * -45deg + 90deg)); filter: grayscale(1) brightness(.35); }
.abzmondplatz.da { filter: drop-shadow(0 0 6px #F6D57A) sepia(1) saturate(4) hue-rotate(-10deg); }
/* App 408 (F-0071): der Spruch erhaltener Abzeichen in der Erklaerblase, im Zoom und in "Zuletzt verdient" */
.abztipp .abztippspruch { font-weight: 700; }
.abzfeld .abzkachelspruch { display: block; font-style: italic; font-size: .72rem; line-height: 1.25; opacity: .9; margin: 2px 4px 0; overflow-wrap: anywhere; }
