:root {
  --grund: #0b0620;
  --text: #f1eaff;
  --leise: #a99bd0;
  --gruen: #6dff7a;
  --pink: #ff7af6;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 120%, #2a1060 0%, var(--grund) 60%);
  color: var(--text);
  font-family: ui-rounded, 'SF Pro Rounded', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

#sterne { position: fixed; inset: 0; width: 100%; height: 100%; }

.mitte {
  position: fixed;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 16px;
  pointer-events: none;
}
h1 {
  margin: 0;
  font-size: clamp(44px, 11vw, 110px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  text-shadow: 0 0 30px rgba(255, 122, 246, 0.35);
}
h1 span {
  background: linear-gradient(90deg, var(--gruen), #7dfcff, var(--pink), var(--gruen));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: schimmer 6s linear infinite;
}
@keyframes schimmer { to { background-position: 300% 0; } }
.unterzeile { margin: 14px 0 4px; color: var(--leise); font-size: clamp(16px, 3.5vw, 20px); }
.zaehler { margin: 0; color: var(--gruen); font-size: 15px; opacity: 0; transition: opacity 0.6s; font-variant-numeric: tabular-nums; }
.zaehler.an { opacity: 0.85; }

#glorp {
  position: fixed;
  left: 0;
  top: 0;
  width: 120px;
  height: 130px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  will-change: transform;
  filter: drop-shadow(0 0 18px rgba(109, 255, 122, 0.45));
  touch-action: manipulation;
}
#glorp svg { display: block; overflow: visible; transition: filter 0.4s; }
#glorp:focus-visible { outline: 3px dashed var(--pink); outline-offset: 6px; border-radius: 20px; }
#glorp .fuehler { transform-origin: 60px 22px; animation: wackeln 1.6s ease-in-out infinite; }
#glorp .schwanz { transform-origin: 88px 104px; animation: wedeln 1.2s ease-in-out infinite; }
#glorp .augen { transform-origin: 60px 50px; animation: blinzeln 4.5s infinite; }
@keyframes wackeln { 50% { transform: rotate(14deg); } }
@keyframes wedeln { 50% { transform: rotate(-12deg); } }
@keyframes blinzeln { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(0.1); } }

#glorp.glorpt svg { animation: quetschen 0.45s ease; }
@keyframes quetschen {
  30% { transform: scale(1.25, 0.8); }
  60% { transform: scale(0.9, 1.15); }
}

.blase {
  position: absolute;
  left: 50%;
  bottom: 100%;
  transform: translate(-50%, 6px) scale(0.6);
  padding: 6px 12px;
  border-radius: 14px;
  background: #fff;
  color: #2a1060;
  font-weight: 800;
  font-size: 18px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.blase::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 100%;
  margin-left: -7px;
  border: 7px solid transparent;
  border-top-color: #fff;
}
.blase.zeigen { opacity: 1; transform: translate(-50%, -4px) scale(1); }

.funke {
  position: fixed;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  pointer-events: none;
  animation: funke 0.8s ease-out forwards;
}
@keyframes funke { to { transform: translate(var(--dx), var(--dy)) scale(0); opacity: 0; } }

.fuss {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(10px + env(safe-area-inset-bottom));
  text-align: center;
  font-size: 13px;
  color: var(--leise);
  opacity: 0.6;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  h1 span, #glorp .fuehler, #glorp .schwanz { animation: none; }
}
