/* ============================================================
   BLACKLIST  ::  Ausgabe Nº02 "Der Teich"
   Standard-Stylesheet der Blacklist (vrogs.org/blacklist/). Bei Cookie vrogs-ausgabe=1
   tauscht das Skript im Kopf von index.html auf ausgabe-1.css (Most-Wanted-Stil).
   Markup ist gemeinsam. Bausteine wie seiten.css (Rechtsseiten), aber "Teich bei Nacht":
   schwarzer Grund, dunkle Karten, Akzente Sonne/Bauchgrün/Teich. Die Blacklist ist "black".
   ============================================================ */

@font-face {
  font-family: 'Fredoka'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(../fonts/fredoka-var-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fredoka'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(../fonts/fredoka-var-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Nunito'; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url(../fonts/nunito-var-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Nunito'; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url(../fonts/nunito-var-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face { font-family: 'Space Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/space-mono-400-latin.woff2) format('woff2'); }
@font-face { font-family: 'Space Mono'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/space-mono-700-latin.woff2) format('woff2'); }

:root {
  --pond: #2acca3; --pond-2: #22b28e; --pond-3: #188a6e;
  --deep: #17614d; --deeper: #204633; --mud: #2f3122;
  --ink: #2f3122; --ink-soft: #4d5440;
  --frog: #6e9e60; --frog-lt: #86b874; --olive: #444e30; --belly: #acdd9e;
  --cream: #fff6dc; --paper: #fffbec; --lily: #ff8fb1; --sun: #ffd95a;
  --danger: #c44062;
  /* Nacht-Palette */
  --bg: #0a0c0a; --card: #161a14; --card-2: #1d2219; --line: #3a3d2c; --edge: #204633;
  --txt: #fff6dc; --txt-soft: #c9c7b3; --dash: rgba(255, 246, 220, 0.22);
  --bw: 3px;
  --font-display: "Fredoka", "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
  --font-mono: "Space Mono", ui-monospace, monospace;
  --maxw: 880px; --gutter: clamp(1rem, 4.5vw, 3rem);
  --ease: cubic-bezier(0.2, 0.9, 0.3, 1);
  --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 360 40' preserveAspectRatio='none'%3E%3Cpath d='M0 22 C60 6 120 6 180 22 S300 38 360 22 V40 H0 Z'/%3E%3C/svg%3E");
  --lilypad: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-54 -54 108 108'%3E%3Cpath d='M0 0 L23 -39.8 A46 46 0 1 0 37.7 -26.4 Z' fill='%2386b874' stroke='%232f3122' stroke-width='4' stroke-linejoin='round'/%3E%3Cg stroke='%23444e30' stroke-width='2.5' stroke-linecap='round' opacity='.55'%3E%3Cpath d='M0 0 L-30 -26'/%3E%3Cpath d='M0 0 L-40 6'/%3E%3Cpath d='M0 0 L-22 34'/%3E%3Cpath d='M0 0 L14 40'/%3E%3Cpath d='M0 0 L38 14'/%3E%3C/g%3E%3Cg transform='translate(-18 -14)' fill='%23ff8fb1' stroke='%232f3122' stroke-width='2.5'%3E%3Cellipse cy='-9' rx='6' ry='11'/%3E%3Cellipse cy='-9' rx='6' ry='11' transform='rotate(72)'/%3E%3Cellipse cy='-9' rx='6' ry='11' transform='rotate(144)'/%3E%3Cellipse cy='-9' rx='6' ry='11' transform='rotate(216)'/%3E%3Cellipse cy='-9' rx='6' ry='11' transform='rotate(288)'/%3E%3Ccircle r='5' fill='%23ffd95a'/%3E%3C/g%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background-color: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='120'%3E%3Cg fill='none' stroke='%232acca3' stroke-opacity='.16' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M20 30 q18 -10 36 0'/%3E%3Cpath d='M150 80 q22 -12 44 0'/%3E%3Cpath d='M95 105 q10 -6 20 0'/%3E%3Cpath d='M210 20 q12 -7 24 0'/%3E%3C/g%3E%3C/svg%3E");
  color: var(--txt); font-family: var(--font-body);
  font-size: clamp(1rem, 0.97rem + 0.2vw, 1.1rem); line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column;
}
a { color: inherit; }
a, button, summary, label { -webkit-tap-highlight-color: transparent; }
::selection { background: var(--sun); color: var(--ink); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }

/* ---------- Kopfleiste (wie Rechtsseiten) ---------- */
.topnav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.6rem var(--gutter);
  background: var(--mud); color: var(--txt); border-bottom: var(--bw) solid var(--edge);
}
.topnav .brand {
  display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none; min-width: 0;
  font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: 0.01em;
}
.topnav .brand img {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  border: var(--bw) solid var(--edge); background: var(--pond);
  transition: transform 0.35s var(--bounce);
}
.topnav .brand .b1 { display: none; }
.topnav .brand .sub {
  display: none; /* erst ab 360 px, sonst kollidiert es mit dem Zurück-Knopf */
  font-family: var(--font-mono); font-weight: 700; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em;
  background: var(--sun); color: var(--ink); border-radius: 999px; padding: 0.25em 0.7em; white-space: nowrap;
}
.topnav .back {
  flex: none;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; text-decoration: none;
  background: var(--sun); color: var(--ink);
  border: var(--bw) solid var(--bg); border-radius: 999px; padding: 0.4em 1.1em;
  box-shadow: 0 4px 0 var(--bg);
  transition: transform 0.18s var(--bounce), box-shadow 0.18s var(--ease), background 0.18s;
}
.topnav .back:focus-visible { transform: translateY(-2px); box-shadow: 0 6px 0 var(--bg); background: var(--belly); }
.topnav .back:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--bg); }

/* ---------- Inhalt ---------- */
.wrap {
  flex: 1; width: calc(100% - 2 * var(--gutter)); max-width: var(--maxw);
  margin: clamp(2.2rem, 6vw, 3.5rem) auto clamp(4rem, 9vw, 6rem);
}

/* Papierblatt: Titel und Regeln */
.hero {
  position: relative;
  padding: clamp(1.4rem, 5vw, 2.6rem) clamp(1.1rem, 5vw, 2.6rem) clamp(1rem, 3vw, 1.6rem);
  background: var(--card);
  border: var(--bw) solid var(--line); border-radius: 22px;
  box-shadow: 0 8px 0 var(--edge);
}
.hero::before {
  content: ""; position: absolute; top: -2rem; right: -0.6rem;
  width: clamp(80px, 12vw, 120px); aspect-ratio: 1; pointer-events: none;
  background: var(--lilypad) no-repeat center / contain;
  transform: rotate(12deg);
  filter: drop-shadow(0 5px 0 rgba(0, 0, 0, 0.5));
}
.kicker {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--font-mono); font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em;
  background: var(--belly); color: var(--ink); border: var(--bw) solid var(--bg); border-radius: 999px;
  padding: 0.2em 0.9em; box-shadow: 0 3px 0 var(--bg);
}
.kicker::before { content: ""; width: 0.75em; height: 0.75em; border-radius: 50%; background: var(--frog); border: 2px solid var(--ink); }
h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.8rem, 11vw, 5.4rem); line-height: 0.95; letter-spacing: -0.01em;
  margin: 1rem 0 0.9rem; overflow-wrap: anywhere;
}
h1 .x { color: var(--pond); }
.lead { max-width: 60ch; color: var(--txt-soft); font-weight: 600; }

/* Regeln: aufklappbar, unten auf dem Blatt */
.howto { margin-top: 1.4rem; padding-top: 0.4rem; border-top: 2px dashed var(--dash); }
.howto summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 0.6rem;
  min-height: 44px; padding: 0.5rem 0;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.2rem, 3vw, 1.45rem); line-height: 1.15;
}
.howto summary::-webkit-details-marker { display: none; }
.howto summary::before {
  content: ""; flex: none; width: 0.85em; height: 0.85em; margin-right: 0.1em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-52 -52 104 104'%3E%3Cpath d='M0 0 L23 -39.8 A46 46 0 1 0 37.7 -26.4 Z' fill='%2386b874' stroke='%232f3122' stroke-width='9' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}
.howto summary span { flex: 1; }
.howto summary::after {
  content: ""; flex: none; width: 0.6em; height: 0.6em;
  border-right: var(--bw) solid var(--sun); border-bottom: var(--bw) solid var(--sun);
  transform: translateY(-0.15em) rotate(45deg); transition: transform 0.2s var(--ease);
}
.howto[open] summary::after { transform: translateY(0.15em) rotate(-135deg); }
.howto ol { list-style: none; counter-reset: r; margin: 0.4rem 0 0; padding: 0; }
.howto li {
  counter-increment: r; display: grid; grid-template-columns: auto 1fr; gap: 0.8rem; align-items: start;
  padding: 0.65rem 0; border-top: 2px dashed var(--dash); font-size: 0.95em; max-width: 68ch; color: var(--txt-soft);
}
.howto li:first-child { border-top: 0; }
.howto li::before {
  content: counter(r); flex: none;
  width: 1.9em; height: 1.9em; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  background: var(--sun); color: var(--ink); border: 2px solid var(--bg); border-radius: 50%;
}
.howto b { font-weight: 800; color: var(--txt); }

/* ---------- Spiel-Reiter ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: clamp(1.6rem, 4vw, 2.2rem) 0 1rem; }
.tab {
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; line-height: 1;
  background: var(--card); color: var(--txt);
  border: var(--bw) solid var(--line); border-radius: 999px; padding: 0.7em 1.1em; min-height: 44px;
  box-shadow: 0 3px 0 var(--edge); cursor: pointer;
  transition: transform 0.18s var(--bounce), box-shadow 0.18s var(--ease), background 0.18s;
}
.tab.active { background: var(--sun); color: var(--ink); border-color: var(--sun); }
.tab:active { transform: translateY(3px); box-shadow: 0 0 0 var(--edge); }

/* Hinweis (Claim-Ergebnis, Fehler) */
#note { margin: 0 0 1rem; min-height: 0; }
#note:empty { display: none; }
#note:not(:empty) {
  display: inline-block; font-family: var(--font-mono); font-size: 0.82rem; line-height: 1.5;
  background: var(--card); color: var(--txt); border: 2px solid var(--line); border-radius: 12px; padding: 0.5rem 0.9rem;
}
#note.err { background: #3a1620; color: #ffb3c6; border-color: #7a2c42; }
#note.ok { background: var(--belly); color: var(--ink); border-color: var(--belly); }

/* ---------- Knöpfe ---------- */
.btn {
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; line-height: 1;
  background: var(--sun); color: var(--ink);
  border: var(--bw) solid var(--bg); border-radius: 999px; padding: 0.75em 1.2em; min-height: 44px;
  box-shadow: 0 4px 0 var(--bg); cursor: pointer; white-space: nowrap;
  transition: transform 0.18s var(--bounce), box-shadow 0.18s var(--ease), background 0.18s;
}
.btn:focus-visible { transform: translateY(-2px); box-shadow: 0 6px 0 var(--bg); background: var(--belly); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--bg); }
.btn:disabled { opacity: 0.55; cursor: default; }

/* ---------- Rangliste ---------- */
.roster { display: flex; flex-direction: column; gap: 0.9rem; }
.rival-link { display: block; text-decoration: none; color: inherit; border-radius: 20px; }
.rival {
  --c: var(--frog);
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: auto 56px 1fr; gap: 0.6rem 0.85rem; align-items: center;
  padding: 0.9rem 0.95rem 0.9rem calc(0.95rem + 10px);
  background: var(--card); border: var(--bw) solid var(--line); border-radius: 20px;
  box-shadow: 0 6px 0 var(--edge);
  transition: transform 0.18s var(--bounce), box-shadow 0.18s var(--ease);
}
.rival::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 10px; background: var(--c); border-right: var(--bw) solid var(--bg); }
.rival .status, .rival .btn { grid-column: 2 / -1; justify-self: start; }
.rank {
  font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; line-height: 1;
  color: var(--pond); min-width: 2.3ch; text-align: center;
}
.mug {
  position: relative; width: 56px; height: 56px; border-radius: 50%; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: var(--deeper); border: var(--bw) solid var(--line);
}
.mug .ph { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; color: var(--belly); }
.mug img { width: 100%; height: 100%; object-fit: cover; display: block; position: relative; z-index: 1; }
/* Glitch (freischaltbare Farbe): zwei farbverschobene Kopien des Avatars, kurz alle paar Sekunden */
.mug.glitch::before, .mug.glitch::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0;
  background: var(--mug) center / cover no-repeat; mix-blend-mode: screen;
}
.mug.glitch::before { filter: sepia(1) saturate(6) hue-rotate(var(--gA, -58deg)) contrast(1.1); animation: glitchR 4.2s steps(1, end) infinite; }
.mug.glitch::after { filter: sepia(1) saturate(6) hue-rotate(var(--gB, 135deg)) contrast(1.1); animation: glitchC 4.2s steps(1, end) infinite; }
.mug.gc-gift { --gA: 55deg; --gB: 110deg; }
.mug.gc-eis { --gA: 150deg; --gB: 190deg; }
.mug.gc-neon { --gA: -20deg; --gB: 280deg; }
.mug.gc-gold { --gA: 10deg; --gB: 30deg; }
@keyframes glitchR {
  0%, 90%, 100% { opacity: 0; transform: translate(0); clip-path: inset(0); }
  91% { opacity: .75; transform: translate(2px, -1px); clip-path: inset(10% 0 60% 0); }
  93% { opacity: .7; transform: translate(-3px, 0); clip-path: inset(54% 0 20% 0); }
  95% { opacity: .6; transform: translate(2px, 1px); clip-path: inset(34% 0 42% 0); }
  96% { opacity: 0; transform: translate(0); clip-path: inset(0); }
}
@keyframes glitchC {
  0%, 90%, 100% { opacity: 0; transform: translate(0); clip-path: inset(0); }
  91% { opacity: .75; transform: translate(-2px, 1px); clip-path: inset(8% 0 64% 0); }
  93% { opacity: .7; transform: translate(3px, 0); clip-path: inset(50% 0 24% 0); }
  95% { opacity: .6; transform: translate(-2px, -1px); clip-path: inset(38% 0 38% 0); }
  96% { opacity: 0; transform: translate(0); clip-path: inset(0); }
}
/* Avatar-Rahmen (freischaltbar über gespielte Turniere): Ring außerhalb der Kontur */
.mug.frame-bronze { box-shadow: 0 0 0 3px #b87333; }
.mug.frame-silber { box-shadow: 0 0 0 3px #c3ccd4; }
.mug.frame-gold { box-shadow: 0 0 0 3px #f2c14e, 0 0 10px rgba(242, 193, 78, 0.8); animation: frmPulse 2.4s ease-in-out infinite; }
.mug.frame-platin { box-shadow: 0 0 0 3px #dff1ff, 0 0 12px rgba(180, 225, 255, 0.95); animation: frmPulse 1.8s ease-in-out infinite; }
@keyframes frmPulse { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.2); } }

.info { min-width: 0; }
.name { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; line-height: 1.1; overflow-wrap: anywhere; }
/* Namensschilder (freischaltbar) */
.name.np-tape { display: inline-block; background: var(--lily); color: var(--ink); border: 2px solid var(--bg); border-radius: 6px; padding: 0 0.3em; transform: rotate(-1.5deg); }
.name.np-neon { color: var(--pond); text-shadow: 0 0 6px rgba(42, 204, 163, 0.9), 0 0 16px rgba(42, 204, 163, 0.7); }
.name.np-chrome { background: linear-gradient(180deg, #fff, #9aa3ad 60%, #fff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tag { font-family: var(--font-mono); font-size: 0.78rem; color: var(--belly); margin-top: 0.15rem; }
.main { font-size: 0.92rem; margin-top: 0.3rem; }
.main b { margin-right: 0.35em; font-family: var(--font-mono); font-weight: 700; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--txt-soft); }
.bio { font-size: 0.9rem; font-style: italic; color: var(--txt-soft); margin-top: 0.25rem; }
.rec { font-family: var(--font-mono); font-size: 0.74rem; color: var(--pond); margin-top: 0.35rem; }
.reign {
  display: inline-block; margin-top: 0.3rem;
  font-family: var(--font-mono); font-weight: 700; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em;
  background: var(--sun); color: var(--ink); border: 2px solid var(--bg); border-radius: 999px; padding: 0.15em 0.7em;
}
.status {
  font-family: var(--font-mono); font-weight: 700; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em;
  border: 2px solid var(--belly); color: var(--belly); border-radius: 999px; padding: 0.3em 0.75em; white-space: nowrap;
}
.rival.me { --c: var(--pond); background: var(--card-2); border-color: var(--pond-3); }
.rival.boss { --c: var(--sun); background: #211f12; border-color: #5a521f; }
.rival.boss .rank { color: var(--sun); }
.rival.boss .status { background: var(--sun); color: var(--ink); border-color: var(--sun); }
/* freier Platz: gestrichelt, gleiche Größe wie ein Banner */
.rival.claim { --c: transparent; border-style: dashed; background: transparent; box-shadow: none; }
.rival.claim::before { border-right-style: dashed; border-right-color: var(--line); }
.rival.claim .rank { color: var(--txt-soft); }
.rival.claim .mug { border-style: dashed; background: transparent; }
.rival.claim .mug .ph { color: var(--txt-soft); }
.rival.claim .name { color: var(--txt-soft); }

.empty { border: var(--bw) dashed var(--line); border-radius: 20px; padding: 1.4rem; text-align: center; color: var(--txt-soft); }

/* ---------- Clips ---------- */
.clips { margin-top: clamp(2rem, 5vw, 3rem); }
.clips-h {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.3rem, 3vw, 1.6rem); line-height: 1.15;
  margin: 0 0 0.8rem; display: flex; align-items: center; gap: 0.5rem;
}
.clips-h::before {
  content: ""; flex: none; width: 0.8em; height: 0.8em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-52 -52 104 104'%3E%3Cpath d='M0 0 L23 -39.8 A46 46 0 1 0 37.7 -26.4 Z' fill='%2386b874' stroke='%232f3122' stroke-width='9' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}
.clip {
  display: flex; align-items: center; gap: 0.6rem; min-height: 44px;
  margin-bottom: 0.6rem; padding: 0.6rem 1rem;
  background: var(--card); color: var(--txt); border: var(--bw) solid var(--line); border-radius: 14px;
  box-shadow: 0 3px 0 var(--edge); text-decoration: none; font-weight: 600;
  transition: transform 0.18s var(--bounce), box-shadow 0.18s var(--ease), background 0.18s;
}
.clip::before {
  content: ""; flex: none; width: 0; height: 0;
  border-left: 0.6em solid var(--sun); border-top: 0.4em solid transparent; border-bottom: 0.4em solid transparent;
}
.clip:active { transform: translateY(3px); box-shadow: 0 0 0 var(--edge); }

/* ---------- Fuß: Schlamm mit Wellenkante (wie Rechtsseiten) ---------- */
footer {
  position: relative; margin-top: auto;
  background: var(--mud); color: var(--cream);
  padding: 2.2rem var(--gutter) 2.4rem; text-align: center;
  font-family: var(--font-mono); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em;
}
footer::before, footer::after {
  content: ""; position: absolute; left: 0; right: 0; height: 40px; pointer-events: none;
  -webkit-mask: var(--wave) repeat-x 0 0 / 360px 40px; mask: var(--wave) repeat-x 0 0 / 360px 40px;
}
footer::before { top: -42px; background: var(--edge); }
footer::after { top: -39px; background: var(--mud); }
footer .foot-in { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.2rem 0; }
footer .foot-in > span { display: inline-flex; align-items: center; }
footer a { color: var(--cream); text-decoration: underline; text-decoration-color: var(--frog); text-decoration-thickness: 2px; text-underline-offset: 3px; display: inline-block; padding-block: 0.7rem; }
footer .hof { text-decoration-color: var(--sun); }
/* Trennpunkte hängen am folgenden Link, damit beim Umbruch kein Punkt am Zeilenende bleibt */
footer .foot-in > .sep { display: none; }
footer .foot-in > span + span:not(.hint)::before { content: ""; width: 0.5em; height: 0.5em; margin: 0 0.8em; border-radius: 50%; background: var(--belly); }
footer .hint { flex-basis: 100%; justify-content: center; color: rgba(255, 246, 220, 0.7); font-size: 0.72rem; margin-top: 0.4rem; }

/* ---------- größere Bildschirme ---------- */
@media (min-width: 360px) { .topnav .brand .sub { display: inline-block; } }
@media (min-width: 561px) {
  .hero { border-radius: 28px; }
  .hero::before { top: -2.6rem; right: -1rem; }
  .topnav .brand { font-size: 1.45rem; }
  .rival { grid-template-columns: auto 84px 1fr auto; gap: 1rem; padding: 1rem 1.1rem 1rem calc(1.1rem + 10px); }
  .rival .status, .rival .btn { grid-column: auto; justify-self: auto; }
  .mug { width: 84px; height: 84px; }
  .mug .ph { font-size: 2.2rem; }
  .rank { font-size: 2.4rem; }
  .name { font-size: 1.65rem; }
}

/* Hover nur mit Maus/Trackpad, Touch bekommt :active */
@media (hover: hover) {
  .topnav .brand:hover img { transform: translateY(-4px) rotate(-8deg); }
  .topnav .back:hover, .btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--bg); background: var(--belly); }
  .tab:hover { transform: translateY(-2px); box-shadow: 0 5px 0 var(--edge); background: var(--card-2); border-color: var(--pond-3); }
  .tab.active:hover { background: var(--sun); border-color: var(--sun); }
  .rival-link:hover .rival { transform: translateY(-3px); box-shadow: 0 9px 0 var(--edge); border-color: var(--pond-3); }
  .clip:hover { transform: translateY(-2px); box-shadow: 0 5px 0 var(--edge); border-color: var(--pond-3); }
  footer a:hover { color: var(--sun); text-decoration-color: var(--sun); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.001ms !important; }
  .mug.glitch::before, .mug.glitch::after { animation: none; opacity: 0; }
  .mug.frame-gold, .mug.frame-platin { animation: none; }
}
