:root {
  --bg: #0b1026;
  --bg2: #1d1458;
  --panel: rgba(255, 255, 255, 0.07);
  --panel-strong: rgba(255, 255, 255, 0.12);
  --line: rgba(255, 255, 255, 0.14);
  --text: #f5f7ff;
  --muted: #aab1d8;
  --accent: #ffd43b;
  --good: #3ddc84;
  --bad: #ff5c7a;
  --opt0: #ef476f;
  --opt1: #118ab2;
  --opt2: #e9a23b;
  --opt3: #06b48a;
  --radius: 18px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: radial-gradient(1200px 700px at 15% 0%, #2b1f7a 0%, transparent 60%),
    radial-gradient(900px 600px at 100% 100%, #5a1458 0%, transparent 55%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: 'Fredoka', 'Nunito', 'Segoe UI', system-ui, sans-serif;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: none;
}

.avatar {
  display: inline-grid;
  place-items: center;
  width: 2.2em;
  height: 2.2em;
  border-radius: 50%;
  border: 3px solid #fff;
  font-size: 1em;
  line-height: 1;
  flex: none;
}
.avatar.off { opacity: 0.4; filter: grayscale(1); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.25em 0.7em;
  border-radius: 999px;
  background: var(--panel-strong);
  font-weight: 600;
  white-space: nowrap;
}
.chip.good { background: rgba(61, 220, 132, 0.2); color: #9ff5c4; }
.chip.bad { background: rgba(255, 92, 122, 0.2); color: #ffb3c1; }
.chip.star { background: rgba(255, 212, 59, 0.22); color: #ffe58a; }
.chip.sip { background: rgba(234, 179, 8, 0.2); color: #fde68a; }

/* Karten, Bilder, Flaggen */
.geo-map { display: block; width: 100%; height: 100%; overflow: hidden; touch-action: manipulation; }
.geo-map .sea { fill: #0f1d45; }
.geo-map .countries { fill: #2f3d8f; stroke: #8d9bff; }
.geo-map .home { fill: #5468d4; }
.geo-map .pin-line { stroke: rgba(255,255,255,.75); stroke-dasharray: 4 4; }
.geo-map .target { fill: #ffd43b; stroke: #fff; }
.geo-map .pin { stroke: #fff; }
.geo-map .pin-label { fill: #fff; font-weight: 700; text-anchor: middle; dominant-baseline: middle; paint-order: stroke; stroke: rgba(0,0,0,.6); }
.zoom-frame { aspect-ratio: 1; overflow: hidden; border-radius: 22px; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 40%, #fff7d6, #f4d38b); box-shadow: inset 0 0 0 4px rgba(255,255,255,.4); }
.zoom-img { font-size: 1em; line-height: 1; animation-name: zoomOut; animation-timing-function: cubic-bezier(.3,.1,.4,1); animation-fill-mode: both; }
@keyframes zoomOut { 0% { transform: scale(9); filter: blur(7px); } 88% { transform: scale(1); filter: blur(0); } 100% { transform: scale(1); filter: blur(0); } }
.zoom-img.done { animation: none; transform: none; filter: none; }
.flag-svg { display: block; width: 100%; height: auto; border-radius: 6px; box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.sil-svg { display: block; width: 100%; height: auto; }
.sil-svg path { fill: #ffd43b; stroke: #fff6c2; stroke-width: 1.5; stroke-linejoin: round; }
.eq { display: inline-flex; align-items: flex-end; gap: .25em; height: 1em; }
.eq i { width: .22em; background: var(--accent); border-radius: 2px; animation: eq 0.9s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.3s; } .eq i:nth-child(3) { animation-delay: -.6s; } .eq i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { 0%, 100% { height: 20%; } 50% { height: 100%; } }

.offline-bar {
  position: fixed;
  left: 50%;
  top: 12px;
  transform: translateX(-50%);
  background: #b91c1c;
  color: #fff;
  padding: 8px 16px;
  border-radius: 999px;
  z-index: 1000;
  font-weight: 600;
  display: none;
}
.offline-bar.show { display: block; }
