/* Hidden Atlas easter egg. No visible hint is shown until the trigger is completed. */
body.atlas-easter-egg-open {
  overflow: hidden;
}

.atlas-easter-egg[hidden] {
  display: none !important;
}

.atlas-easter-egg {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(5, 8, 14, 0.72);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  animation: atlas-easter-egg-fade 180ms ease-out;
}

.atlas-easter-egg-card {
  position: relative;
  width: min(560px, calc(100vw - 36px));
  padding: 42px 42px 38px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% -10%, rgba(126, 192, 255, 0.16), transparent 42%),
    rgba(12, 17, 27, 0.96);
  color: #f5f8ff;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.5);
  text-align: center;
  animation: atlas-easter-egg-rise 220ms cubic-bezier(.2,.8,.2,1);
}

.atlas-easter-egg-kicker {
  margin-bottom: 18px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.24em;
  color: #9fcfff;
  text-transform: uppercase;
}

.atlas-easter-egg-message {
  font-size: clamp(25px, 4vw, 36px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.atlas-easter-egg-last-line {
  margin-top: 22px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(232, 239, 250, 0.58);
}

.atlas-easter-egg-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(245, 248, 255, 0.62);
  font: inherit;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.atlas-easter-egg-close:hover,
.atlas-easter-egg-close:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  outline: none;
}

@keyframes atlas-easter-egg-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes atlas-easter-egg-rise {
  from { opacity: 0; transform: translateY(10px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 560px) {
  .atlas-easter-egg {
    padding: 18px;
  }

  .atlas-easter-egg-card {
    padding: 38px 24px 32px;
    border-radius: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .atlas-easter-egg,
  .atlas-easter-egg-card {
    animation: none;
  }
}
