/* ==========================================================
   Easter egg styles
   ========================================================== */

/* ---------- Bat flyby ---------- */

.egg-bat {
  --flight: 7s;
  position: absolute;
  left: -60px;
  z-index: 4;
  pointer-events: none;
  animation: bat-cross var(--flight) linear forwards, bat-bob 0.9s ease-in-out infinite;
}

.egg-bat.reverse {
  animation: bat-cross-rev var(--flight) linear forwards, bat-bob 0.9s ease-in-out infinite;
}

@keyframes bat-cross {
  from { left: -60px; }
  to   { left: calc(100% + 60px); }
}

@keyframes bat-cross-rev {
  from { left: calc(100% + 60px); transform: scaleX(-1); }
  to   { left: -60px; transform: scaleX(-1); }
}

@keyframes bat-bob {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -10px; }
}

/* ---------- Cursor trail ---------- */

.trail-bit {
  position: fixed;
  z-index: 90;
  pointer-events: none;
  animation: trail-fade 0.65s ease-out forwards;
}

.trail-spark {
  font-size: 10px;
  text-shadow: 0 0 6px currentColor;
}

@keyframes trail-fade {
  from { opacity: 0.9; transform: translateY(0) scale(1); }
  to   { opacity: 0; transform: translateY(-12px) scale(0.4); }
}

/* ---------- Doncaster sign (Level 3) ---------- */

.egg-doncaster {
  position: absolute;
  left: 4%;
  bottom: 34%;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

.egg-doncaster-board {
  font-family: var(--font-pixel);
  font-size: clamp(6px, 1.2vmin, 9px);
  color: #f5e6c0;
  background: #4a5e3a;
  border: 2px solid #2e3a24;
  padding: 0.8vmin 1.2vmin;
  white-space: nowrap;
}

.egg-doncaster-post {
  width: 4px;
  height: clamp(16px, 4vmin, 34px);
  background: #6e5228;
}

.egg-football {
  position: absolute;
  right: -22px;
  bottom: -4px;
}

/* ---------- Message in a bottle (Level 4) ---------- */

.egg-bottle {
  position: absolute;
  left: 8%;
  bottom: 5%;
  font-size: clamp(14px, 3vmin, 24px);
  background: none;
  border: none;
  cursor: pointer;
  padding: 1vmin;
  z-index: 2;
  transform: rotate(-24deg);
  filter: drop-shadow(0 0 3px rgba(232, 238, 255, 0.4));
  transition: transform 0.2s ease;
}

.egg-bottle:hover { transform: rotate(-24deg) scale(1.15); }

.egg-bottle-note {
  position: absolute;
  bottom: 28%;
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(8px, 1.7vmin, 13px);
  color: var(--pink-soft);
  text-shadow: 2px 2px 0 var(--night-deep);
  background: rgba(21, 12, 40, 0.75);
  border: 2px solid var(--gold-dim);
  padding: 1.4vmin 2.2vmin;
  max-width: 80%;
  animation: toast-in 0.4s ease;
  z-index: 5;
  pointer-events: none;
}

/* ---------- Bounty in the sand (Level 4) ---------- */

.egg-bounty {
  position: absolute;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 2;
  transform: rotate(18deg);
  /* Half-buried: clip the lower third into the sand */
  clip-path: inset(0 0 35% 0);
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.3));
  transition: transform 0.2s ease;
}

.egg-bounty:hover { transform: rotate(18deg) scale(1.15); }

/* ---------- Floating reaction puff (hearts, coconut) ---------- */

.egg-puff {
  position: absolute;
  font-size: clamp(14px, 3vmin, 24px);
  z-index: 6;
  pointer-events: none;
  animation: puff-rise 1.1s ease-out forwards;
}

@keyframes puff-rise {
  from { opacity: 1; transform: translateY(0) scale(0.7); }
  to   { opacity: 0; transform: translateY(-46px) scale(1.25); }
}

/* ---------- Labubu (Level 2) ---------- */

.egg-labubu {
  position: absolute;
  right: 3vmin;
  bottom: 0;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 4;
  /* Peeking: only head and ears visible above the screen edge */
  transform: translateY(38%);
  transition: transform 0.25s ease;
}

.egg-labubu:hover { transform: translateY(20%); }

.egg-labubu.wiggle {
  animation: labubu-wiggle 0.5s ease;
}

@keyframes labubu-wiggle {
  0%, 100% { transform: translateY(20%) rotate(0deg); }
  25% { transform: translateY(16%) rotate(-8deg); }
  75% { transform: translateY(16%) rotate(8deg); }
}

.egg-puff svg {
  width: clamp(18px, 4cqh, 30px);
  height: auto;
}

.egg-bounty svg {
  width: clamp(26px, 5.5cqh, 42px);
  height: auto;
}

.egg-labubu svg {
  width: clamp(30px, 7cqh, 52px);
  height: auto;
}
