/* ================== Reset ================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ================== Base ================== */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: #0e0e0e;  /* force dark theme */
  color: #fff;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color 0.5s ease; /* smooth bg changes */
}

/* ================== Wrapper & Central Button ================== */
#lizard-wrapper {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 2;
}

#lizard-circle {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: #ffffff;
  border: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  touch-action: manipulation;

  /* 3D effect */
  box-shadow:
    0 12px 24px rgba(0,0,0,0.4),
    inset 0 -6px 8px rgba(0,0,0,0.25),
    inset 0 6px 8px rgba(255,255,255,0.6);

  transition: transform .15s ease, box-shadow .15s ease;
}

#lizard-circle:hover {
  transform: scale(1.05);
  box-shadow:
    0 16px 32px rgba(0,0,0,0.5),
    inset 0 -6px 8px rgba(0,0,0,0.3),
    inset 0 6px 8px rgba(255,255,255,0.7);
}

#lizard-circle:active {
  transform: scale(.95);
  box-shadow:
    0 6px 12px rgba(0,0,0,0.35),
    inset 0 -3px 6px rgba(0,0,0,0.3),
    inset 0 3px 6px rgba(255,255,255,0.4);
}

#main-lizard {
  width: 120px;
  pointer-events: none;
  user-select: none;
}

/* ================== Counters ================== */
.counter-bar {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 10;
}

.counter {
  background: rgba(45,45,45,0.9);
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 15px;
  font-weight: bold;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
  color: white;
  user-select: none;
}

/* ================== Roaming Lizards ================== */
.lizard {
  position: fixed;
  width: 50px;
  height: auto;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

/* ================== Confetti ================== */
.confetti-piece {
  position: fixed;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  opacity: 0.9;
  z-index: 2000;
  animation: fall 3s linear forwards;
}

@keyframes fall {
  from {
    transform: translateY(-10px) rotate(0deg);
  }
  to {
    transform: translateY(100vh) rotate(720deg);
  }
}

/* ================== Footer Notification ================== */
.unmute-notification {
  position: fixed;
  bottom: 42px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(45, 45, 45, 0.9);
  padding: 8px 16px;
  border-radius: 16px;
  font-size: 14px;
  color: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
  user-select: none;
  z-index: 1000;
  white-space: nowrap;
  max-width: 90vw;
  text-align: center;
}
