/* Keep-scrolling easter egg (shared/egg.js), the live homepage's, on this page's black. No height at all: the
   page really ends at the footer. The stage is a fixed overlay that appears only once the reader keeps pushing
   against that bottom. */
.egg {
  position: relative;
  height: 0;
}
.egg__stage {
  position: fixed;
  inset: 0;
  /* above the top bar and the page frame, so the egg owns the whole screen */
  z-index: 180;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
  background-color: var(--bg, #04070c);
  /* the dots slide with raw scroll, so any wheel movement is visible at once */
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.13) 1px, transparent 1px);
  background-size: 26px 26px;
  background-position: 0 var(--egg-dots, 0px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 260ms ease,
    visibility 0s linear 260ms;
}
.egg.is-on .egg__stage {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    opacity 260ms ease,
    visibility 0s;
}
.egg__back {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px 9px 13px;
  border: 0;
  border-radius: 999px;
  background: var(--bg-2, #080d15);
  box-shadow: inset 0 0 0 1px var(--line-2, rgba(255, 255, 255, 0.16));
  color: var(--text, #f2f4f7);
  font:
    500 13px/1 "Inter",
    sans-serif;
  cursor: pointer;
  transition:
    transform 200ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 200ms;
}
.egg__back:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32);
}
.egg__back:active {
  transform: scale(0.98);
}
.egg__back:focus-visible,
.egg__code:focus-visible,
.egg__cta:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
.egg__scroller {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 2%, #000 30%, #000 70%, transparent 98%);
  mask-image: linear-gradient(180deg, transparent 2%, #000 30%, #000 70%, transparent 98%);
}
.egg__track {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  will-change: transform;
}
.egg__slot {
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--egg-slot, 100dvh);
  margin: 0;
  padding: 0 24px;
  font:
    500 clamp(26px, 4.4vw, 46px) / 1.14 "Inter",
    sans-serif;
  font-variation-settings: "opsz" 32;
  letter-spacing: -0.035em;
  color: #fff;
  text-wrap: balance;
}
.egg.is-done .egg__scroller {
  display: none;
}
.egg__confetti {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.egg__prize {
  position: relative;
  z-index: 1;
  max-width: 620px;
  padding: 52px 40px 44px;
  border-radius: 24px;
  background: var(--navy, #06294c);
  background-image: radial-gradient(120% 80% at 50% -10%, rgba(10, 61, 110, 0.6) 0%, rgba(10, 61, 110, 0) 62%);
  box-shadow:
    0 0 0 1px var(--line-2, rgba(255, 255, 255, 0.16)),
    0 40px 80px -40px rgba(0, 0, 0, 0.7);
  animation: eggIn 700ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes eggIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}
.egg__prize h2 {
  margin: 0 0 18px;
  font:
    500 clamp(30px, 4.2vw, 44px) / 1.12 "Inter",
    sans-serif;
  font-variation-settings: "opsz" 32;
  letter-spacing: -0.04em;
  color: #fff;
  text-wrap: balance;
}
.egg__prize h2 span {
  display: block;
  color: var(--gold, #f2ab00);
}
.egg__prize > p {
  margin: 0 auto 28px;
  max-width: 40ch;
  font-size: 16px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
}
.egg__code {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 0 20px;
  padding: 14px 30px;
  border: 1px dashed rgba(242, 171, 0, 0.55);
  border-radius: 16px;
  background: rgba(242, 171, 0, 0.1);
  font-family: "Inter", sans-serif;
  cursor: pointer;
  transition:
    background 200ms,
    transform 200ms cubic-bezier(0.16, 1, 0.3, 1);
}
.egg__code:hover {
  background: rgba(242, 171, 0, 0.18);
}
.egg__code:active {
  transform: scale(0.98);
}
.egg__code b {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold, #f2ab00);
}
.egg__code span {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.6);
}
.egg__cta {
  display: block;
  width: fit-content;
  margin: 0 auto;
  padding: 16px 38px;
  border-radius: 999px;
  background: #fff;
  color: var(--navy, #06294c);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1);
}
.egg__cta:hover {
  transform: translateY(-2px);
}
.egg__prize > .egg__fine {
  margin: 18px 0 0;
  max-width: none;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}
@media (max-width: 600px) {
  .egg__prize {
    padding: 40px 24px 34px;
  }
  .egg__back {
    top: 14px;
    left: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .egg__prize {
    animation: none;
  }
  .egg__stage {
    transition: none;
  }
  .egg__cta:hover,
  .egg__code:active,
  .egg__back:hover,
  .egg__back:active {
    transform: none;
  }
}
