* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: #fff;
  color: #111;
  font-family: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 64px 16px 48px;
}

header {
  text-align: center;
  margin-bottom: 48px;
}

h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

/* Day 1 (@mateus_barros441): enchanted title, a glint sweeping over a purple glow */
.enchanted {
  background: linear-gradient(
    110deg,
    #5b2a86 0%,
    #a35cff 35%,
    #fff 45%,
    #a35cff 55%,
    #5b2a86 100%
  );
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 6px rgba(163, 92, 255, 0.6));
  animation: enchant-glint 3s linear infinite,
    enchant-glow 2s ease-in-out infinite alternate;
}

@keyframes enchant-glint {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: -150% 0;
  }
}

@keyframes enchant-glow {
  to {
    filter: drop-shadow(0 0 14px rgba(163, 92, 255, 0.9));
  }
}

.tagline {
  color: #555;
  margin-top: 8px;
}

h2 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #555;
  margin-bottom: 12px;
}

.how {
  margin-bottom: 48px;
}

.how ol {
  padding-left: 20px;
  margin-bottom: 12px;
}

.how li {
  margin-bottom: 4px;
}

.reel {
  text-align: center;
}

.day {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
}

#reel-container {
  display: flex;
  justify-content: center;
}

/* Instagram's embed sets its own inline styles; this keeps it centered and fluid */
#reel-container .instagram-media {
  margin: 0 auto !important;
  max-width: 400px !important;
  width: 100% !important;
}

.reel-video {
  display: block;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 9 / 16;
  background: #111;
  border-radius: 12px;
}

footer {
  border-top: 1px solid #eee;
  padding: 24px 16px;
  text-align: center;
}

footer a {
  color: #111;
  text-decoration: none;
  font-weight: 600;
}

footer a:hover {
  text-decoration: underline;
}

.ghost-67 {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.5s ease;
}

.ghost-67.visible {
  opacity: 1;
}

/* Day 2 (@legendaryhebert): fixed to the screen, so it stays put while the
   page scrolls under it, just like a real dead pixel */
.dead-pixel {
  position: fixed;
  top: 37vh;
  left: 63vw;
  width: 3px;
  height: 3px;
  background: #000;
  z-index: 9998;
  pointer-events: none;
}

.pig-scare {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: 10000;
  pointer-events: none;
  animation: pig-spin-in 0.8s ease-out both;
}

.pig-scare.leaving {
  animation: pig-spin-out 0.6s ease-in both;
}

@keyframes pig-spin-in {
  from {
    transform: scale(0) rotate(-720deg);
    opacity: 0;
  }
  to {
    transform: scale(1) rotate(0);
    opacity: 1;
  }
}

@keyframes pig-spin-out {
  from {
    transform: scale(1) rotate(0);
    opacity: 1;
  }
  to {
    transform: scale(0) rotate(720deg);
    opacity: 0;
  }
}

.changelog-link {
  display: block;
  width: fit-content;
  margin: 32px auto 0;
  padding: 10px 20px;
  border: 1px solid #111;
  border-radius: 999px;
  color: #111;
  text-decoration: none;
  font-weight: 600;
}

.changelog-link:hover {
  background: #111;
  color: #fff;
}

/* Day 3 (@richard.ah681): the shrimp that leads to the agriponics page */
.shrimp-button {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  padding: 16px 20px;
  border: 1px solid #111;
  border-radius: 16px;
  color: #111;
  text-decoration: none;
  line-height: 1.3;
}

.shrimp-button:hover {
  background: #111;
  color: #fff;
}

.shrimp-emoji {
  font-size: 44px;
  line-height: 1;
  animation: shrimp-wiggle 2.4s ease-in-out infinite;
}

.shrimp-text {
  flex: 1;
}

.shrimp-text strong,
.shrimp-text small {
  display: block;
}

.shrimp-text small {
  font-size: 14px;
  opacity: 0.7;
}

.shrimp-arrow {
  font-size: 22px;
  font-weight: 700;
}

@keyframes shrimp-wiggle {
  0%,
  100% {
    transform: rotate(0) translateX(0);
  }
  25% {
    transform: rotate(-8deg) translateX(-3px);
  }
  75% {
    transform: rotate(8deg) translateX(3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .shrimp-emoji {
    animation: none;
  }
}
