/* Easter eggs: hidden clickable things, a toast, and the "found" counter */
.garland__ball { pointer-events: auto; cursor: pointer; }
.garland__ball:hover { filter: brightness(1.25); }

.egg-toast {
  position: fixed;
  left: 50%;
  bottom: clamp(1rem, 4vw, 2rem);
  z-index: 80;
  width: min(92vw, 26rem);
  padding: 1.1rem 1.4rem 1.2rem;
  background: #fffdf8;
  border: 1px solid var(--line);
  box-shadow: 0 1rem 2.2rem -1rem rgba(43, 42, 40, 0.5);
  text-align: center;
  translate: -50% 150%;
  opacity: 0;
  transition: translate 0.7s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s var(--ease);
  pointer-events: none;
}
.egg-toast.is-open { translate: -50% 0; opacity: 1; pointer-events: auto; }
.egg-toast__eyebrow { margin: 0 0 0.2rem; font-family: var(--font-sans); font-size: var(--step--1); letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-soft); }
.egg-toast__title { margin: 0 0 0.4rem; font-family: var(--font-script); font-size: clamp(2rem, 1.7rem + 1.2vw, 2.6rem); line-height: 1.1; color: var(--accent-strong); }
.egg-toast__msg { margin: 0 auto; max-width: none; font-size: 1.1rem; line-height: 1.45; }
.egg-toast__extra { margin: 0.6rem auto 0; max-width: none; font-size: 0.95rem; color: var(--text-soft); font-style: italic; }

.egg-counter {
  position: fixed;
  right: clamp(0.75rem, 3vw, 1.5rem);
  bottom: clamp(0.75rem, 3vw, 1.5rem);
  z-index: 81;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 1rem 0.55rem 0.8rem;
  background: var(--accent-strong);
  color: var(--accent-ink);
  border: 0;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  box-shadow: 0 0.6rem 1.2rem -0.6rem rgba(43, 42, 40, 0.6);
  scale: 0;
  transition: scale 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.egg-counter.is-on { scale: 1; }
.egg-counter.bump { animation: eggBump 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); }
.egg-counter__star { width: 1rem; height: 1rem; background: #f3d675; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
@keyframes eggBump { 0% { scale: 1; } 35% { scale: 1.3; } 100% { scale: 1; } }

.egg-panel {
  position: fixed;
  right: clamp(0.75rem, 3vw, 1.5rem);
  bottom: calc(clamp(0.75rem, 3vw, 1.5rem) + 3.4rem);
  z-index: 81;
  width: min(92vw, 22rem);
  max-height: min(70vh, 30rem);
  overflow: auto;
  padding: 1.2rem 1.3rem;
  background: #fffdf8;
  border: 1px solid var(--line);
  box-shadow: 0 1rem 2.2rem -1rem rgba(43, 42, 40, 0.5);
  transform-origin: 100% 100%;
  scale: 0.85;
  opacity: 0;
  pointer-events: none;
  transition: scale 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s var(--ease);
}
.egg-panel.is-open { scale: 1; opacity: 1; pointer-events: auto; }
.egg-panel h2 { font-family: var(--font-script); font-weight: 400; font-size: 2.3rem; margin: 0 0 0.3rem; color: var(--accent-strong); }
.egg-panel__bar { height: 6px; background: var(--surface); border-radius: 3px; overflow: hidden; margin: 0.4rem 0 1rem; }
.egg-panel__bar i { display: block; height: 100%; width: var(--w, 0%); background: var(--accent-strong); transition: width 0.6s var(--ease); }
.egg-panel ul { list-style: none; margin: 0; padding: 0; }
.egg-panel li { padding: 0.55rem 0; border-top: 1px solid var(--line); font-size: 0.95rem; line-height: 1.4; }
.egg-panel li b { display: block; font-weight: 600; color: var(--accent-strong); }
.egg-panel li.is-locked { color: var(--text-soft); }
.egg-panel li.is-locked b { color: var(--text-soft); letter-spacing: 0.2em; }
.egg-panel li em { display: block; font-size: 0.85rem; }
.egg-panel button.egg-reset { margin-top: 0.9rem; background: none; border: 0; padding: 0; font: inherit; font-size: 0.8rem; color: var(--text-soft); text-decoration: underline; cursor: pointer; }

.egg-bit { position: fixed; z-index: 90; pointer-events: none; top: 0; left: 0; }

@media (prefers-reduced-motion: reduce) {
  .egg-toast, .egg-counter, .egg-panel { transition: none; }
  .egg-counter.bump { animation: none; }
}

/* "klik på mig" nudge pointing at a disco ball */
.egg-hint { position: absolute; left: calc(50% + 1.6rem); top: 5.2rem; z-index: 2; pointer-events: none; color: var(--accent-strong); opacity: 0.5; transition: opacity 0.6s var(--ease); animation: hintFloat 3s ease-in-out infinite alternate; }
.egg-hint svg { width: 4.2rem; height: auto; display: block; }
.egg-hint span { position: absolute; left: 3.1rem; top: 3.2rem; white-space: nowrap; font-family: var(--font-script); font-size: 1.7rem; line-height: 1; }
.egg-hint.is-gone { opacity: 0; }
.egg-hint--narrow { display: none; }
@keyframes hintFloat { from { translate: 0 0; } to { translate: 3px 5px; } }
@media (max-width: 40rem) {
  .egg-hint--wide { display: none; }
  .egg-hint--narrow { display: block; left: auto; right: 50%; top: 3.2rem; }
  .egg-hint--narrow svg { scale: -1 1; width: 3.6rem; }
  .egg-hint--narrow span { left: auto; right: 2.9rem; top: 2.2rem; font-size: 1.6rem; }
}
@media (prefers-reduced-motion: reduce) { .egg-hint { animation: none; } }
