/* Easter eggs: small, optional surprises. Nothing here can cover or block a
   button, link or the survey (overlays use pointer-events: none). */

/* Toasts (top of the screen, under the header) */
.egg-toast { position: fixed; z-index: 120; left: 50%; top: calc(86px + env(safe-area-inset-top, 0px)); transform: translate(-50%, -20px); opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: 12px; max-width: min(92vw, 460px); padding: 12px 18px 12px 12px; background: var(--snow); color: var(--ink); border: var(--line); border-radius: 16px; box-shadow: 5px 5px 0 var(--mint);
  font: 700 .95rem/1.3 var(--body); transition: opacity .3s ease, transform .35s cubic-bezier(.4, 1.5, .5, 1); }
.egg-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.egg-toast img { width: 44px; height: 44px; object-fit: contain; flex: none; }
.egg-toast b { display: block; font: 800 1.05rem/1.2 var(--display); font-variation-settings: "SOFT" 100; }
.egg-toast a { pointer-events: auto; color: var(--mint-ink); }

/* Full-screen snow layer (avalanche, summit puff, snowball splats) */
.egg-layer { position: fixed; inset: 0; z-index: 110; pointer-events: none; }

/* 1. Hide-and-seek Yetis peeking over a card edge */
.egg-peek { position: absolute; z-index: 4; bottom: calc(100% - 3px); width: 74px; height: 58px; overflow: hidden; pointer-events: none; }
.egg-peek--right { right: 34px; } .egg-peek--left { left: 34px; }
.egg-peek button { position: absolute; left: 0; right: 0; bottom: 0; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; pointer-events: auto; transform: translateY(100%); transition: transform .45s cubic-bezier(.4, 1.6, .5, 1); }
.egg-peek button img { display: block; width: 100%; height: auto; position: absolute; bottom: 0; }
.egg-peek.is-up button { transform: translateY(8%); }
.egg-peek.is-up button:hover { transform: translateY(14%) rotate(-4deg); }
.egg-peek button:focus-visible { outline: 3px solid var(--glow); outline-offset: -3px; border-radius: 10px; }
.egg-peek.is-found button { transform: translateY(100%); transition-duration: .3s; }

.egg-badge { position: fixed; z-index: 121; left: 18px; bottom: 18px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; max-width: min(92vw, 400px); padding: 16px 44px 16px 16px;
  background: var(--ink); color: var(--on-dark); border: 2.5px solid var(--night); border-radius: 20px; box-shadow: 6px 6px 0 var(--glow); }
.egg-badge img { width: 70px; }
.egg-badge b { display: block; font: 800 1.2rem/1.15 var(--display); font-variation-settings: "SOFT" 100; color: var(--glow); }
.egg-badge p { margin: 4px 0 0; font-size: .9rem; color: var(--on-dark-soft); }
.egg-badge button { position: absolute; top: 8px; right: 10px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(243, 235, 221, .12); color: var(--on-dark); font-size: 1rem; cursor: pointer; }
@media (max-width: 900px) { .egg-badge { bottom: 84px; } }

/* 3. Birthday candles */
.egg-cake { position: relative; display: inline-block; }
.egg-cake img { display: block; }
.egg-cake > img:first-child { transition: opacity .35s ease; }
.egg-cake__out { position: absolute; left: 0; top: 0; width: 100% !important; height: 100%; object-fit: contain; margin: 0 !important; opacity: 0; transition: opacity .35s ease; pointer-events: none; }
.egg-cake.is-out .egg-cake__out { opacity: 1; }
.egg-cake.is-out > img:first-child { opacity: 0; }
.egg-cake__btn { position: absolute; left: 0; top: 10%; width: 42%; height: 26%; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.egg-cake__btn:focus-visible { outline: 3px solid var(--glow); outline-offset: 2px; }
.egg-cake__tag { position: absolute; left: 50%; top: -6px; transform: translate(-50%, -100%) rotate(-3deg); width: max-content; max-width: 240px; padding: 8px 12px; background: #ffd36b; color: var(--ink); border: 2px solid var(--ink); border-radius: 12px; box-shadow: 3px 3px 0 var(--ink); font: 800 .9rem/1.25 var(--display); text-align: center; }
.egg-cake__tag[hidden] { display: none; }
.egg-hint { position: absolute; padding: 5px 10px; background: var(--glow); color: var(--ink); border: 2px solid var(--ink); border-radius: 999px; font: 800 .74rem/1 var(--body); white-space: nowrap; box-shadow: 2px 2px 0 var(--ink); pointer-events: none; animation: egg-bob 1.8s ease-in-out infinite; }
@keyframes egg-bob { 50% { translate: 0 -4px; } }

/* 4. Desk phone */
.egg-phone { position: absolute; left: 66%; top: 54%; width: 22%; height: 15%; border: 0; border-radius: 40%; background: transparent; cursor: pointer; }
.egg-phone:focus-visible { outline: 3px solid var(--glow); outline-offset: 2px; }
.egg-phone__ring { position: absolute; left: 80%; top: 50%; pointer-events: none; font: 900 1rem/1 var(--display); color: var(--glow-ink); opacity: 0; white-space: nowrap; }
.egg-phone__bubble { position: absolute; right: -6%; top: 26%; z-index: 3; width: min(220px, 64%); padding: 12px 14px; background: var(--snow); border: var(--line); border-radius: 16px; box-shadow: 4px 4px 0 var(--ink); font-size: .92rem; line-height: 1.35; color: var(--ink-soft); text-align: left; }
.egg-phone__bubble b { display: block; color: var(--ink); font: 800 1rem/1.2 var(--display); }
.egg-phone__bubble a { font-weight: 800; color: var(--mint-ink); }
.egg-phone__bubble[hidden] { display: none; }

/* 5. Summit pennant */
.egg-pennant { position: fixed; z-index: 120; right: 22px; bottom: 22px; display: grid; justify-items: center; gap: 2px; padding: 14px 22px 22px; background: var(--glow); color: var(--ink); border: var(--line); box-shadow: 5px 5px 0 var(--ink); clip-path: polygon(0 0, 100% 0, 100% 82%, 50% 100%, 0 82%); text-align: center; pointer-events: none; }
.egg-pennant b { font: 900 1.15rem/1.1 var(--display); font-variation-settings: "SOFT" 100; }
.egg-pennant small { font: 800 .72rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; }
@media (max-width: 900px) { .egg-pennant { bottom: 88px; right: 14px; } }

/* 6. Sleepy hero Yeti */
.egg-zzz { position: absolute; z-index: 6; pointer-events: none; font: 900 1.4rem/1 var(--display); color: var(--ink); opacity: 0; }

/* 8. Sunset mode */
html.is-sunset { --paper: #f7dccb; --paper-2: #f1cbb3; --snow: #fff2e8; --ice: #f4c6b0; --ice-2: #e9a487; }
html.is-sunset .hero { background: linear-gradient(#f4b08c, #f7dccb 70%); }
html.is-sunset body { background-color: var(--paper); }
html.egg-fade, html.egg-fade body, html.egg-fade .hero, html.egg-fade .band { transition: background .9s ease, background-color .9s ease; }

/* 9. Jargon stamp */
.egg-stamp { position: absolute; z-index: 5; left: 50%; top: 50%; display: grid; place-items: center; width: 220px; height: 220px; margin: -110px 0 0 -110px; border-radius: 50%; border: 6px double var(--glow); color: var(--glow); background: rgba(15, 39, 48, .82); pointer-events: none; text-align: center; transform: rotate(-12deg); }
.egg-stamp b { font: 900 1.6rem/1.05 var(--display); font-variation-settings: "SOFT" 100; letter-spacing: .02em; }
.egg-stamp small { display: block; margin-top: 4px; font: 800 .7rem/1 var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--on-dark); }

@media (prefers-reduced-motion: reduce) { .egg-hint { animation: none; } .egg-peek button { transition: none; } }
