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

body {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 28px;
  min-height: 100vh;
  min-height: 100svh;
  background: #f2edff;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  position: relative; /* važno za toast */
}

#wrap {
  position: relative;
  width: 220px;
  height: 220px;
  cursor: pointer;
  filter: drop-shadow(0 6px 28px rgba(119, 48, 236, 0.38));
  transition: filter 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* SVG clipPath */
#blobOuter {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  -webkit-clip-path: url(#blobClip);
  clip-path: url(#blobClip);
}

#blobFill {
  position: absolute;
  inset: 0;
  background: #7730ec;
}

/* Breathe SVG path */
#blobPath {
  animation: breathe 4.5s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% {
    d: path("M0.509 0.027 C0.718 0.009 0.945 0.164 0.973 0.364 C1.000 0.564 0.900 0.782 0.736 0.873 C0.573 0.964 0.345 0.982 0.200 0.882 C0.055 0.782 -0.018 0.582 0.027 0.400 C0.073 0.218 0.236 0.064 0.400 0.036 C0.436 0.027 0.473 0.027 0.509 0.027 Z");
  }
  50% {
    d: path("M0.491 0.036 C0.700 0.018 0.918 0.182 0.945 0.382 C0.973 0.582 0.891 0.764 0.755 0.855 C0.618 0.945 0.382 0.973 0.236 0.891 C0.091 0.809 0.018 0.600 0.055 0.418 C0.091 0.236 0.245 0.073 0.409 0.045 C0.445 0.036 0.491 0.036 0.491 0.036 Z");
  }
}

/* sun & moon */
.cel {
  position: absolute;
  top: 110px;
  left: 110px;
  will-change: transform;
}

#sun {
  width: 26px;
  height: 26px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 0 10px 4px rgba(255, 255, 255, 0.35);
}

#wave {
  position: absolute;
  bottom: -4px;
  left: -22px;
  width: 264px;
  height: 132px;
  animation: waveFloat 3.6s ease-in-out infinite;
}

@keyframes waveFloat {
  0%   { transform: translateX(0px); }
  28%  { transform: translateX(-11px); }
  60%  { transform: translateX(9px); }
  100% { transform: translateX(0px); }
}

.label-wrap {
  position: relative;
  height: 16px;
  width: 80px;
  pointer-events: none;
}

.lbl {
  position: absolute;
  inset: 0;
  text-align: center;
  font-family: 'Courier New', monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  font-weight: 700;
}

.label-wrap .lbl a {
  pointer-events: auto !important;
  cursor: pointer;
  position: relative;
  z-index: 5;
  text-decoration: none;
  color: inherit;
  outline: none;
}

.copy-toast {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translateX(-50%) translateY(-10px) scale(0.6);
  
  background: rgba(255, 255, 255, 0);
  color: #111;
  padding: 8px 12px;
  border-radius: 5px;
  font-weight: 600;
  font-family: Tahoma, sans-serif;
  font-size: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  border: 2px solid #111;
  text-align: center;
  z-index: 99999;
  
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  
  width: 95px;
  box-sizing: border-box;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
}

.copy-toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-230px) scale(1);
}

/* Mobile */
@media (max-width: 768px) {
  .copy-toast {
    transform: translateX(-50%) translateY(-5px) scale(0.6);
    padding: 6px 6px;
  }

  .copy-toast.show {
    transform: translateX(-50%) translateY(-210px) scale(1);
  }
}