*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: #f6f5f1;
  color: #181818;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 32px 20px;
}

.stack {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cat-btn {
  position: relative;
  z-index: 2;
  margin-bottom: -2px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  line-height: 0;
}

.cat-btn:focus-visible {
  outline: 2px solid #181818;
  outline-offset: 8px;
  border-radius: 10px;
}

.cat-img {
  display: block;
  width: min(245px, 68vw);
  height: auto;
  transform-origin: center bottom;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.12));
  transition: transform 120ms ease;
}

.cat-btn:hover .cat-img {
  transform: scale(1.02);
}

.cat-btn:active .cat-img {
  transform: scale(0.97, 0.94);
}

.cat-img.is-farting {
  animation: cat-boing 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes cat-boing {
  0% {
    transform: scale(1, 1) rotate(0deg);
  }
  22% {
    transform: scale(1.11, 0.86) rotate(-3deg);
  }
  52% {
    transform: scale(0.94, 1.09) rotate(2.5deg);
  }
  78% {
    transform: scale(1.03, 0.97) rotate(-1deg);
  }
  100% {
    transform: scale(1, 1) rotate(0deg);
  }
}

.btn-phoenix {
  position: relative;
  z-index: 1;
  display: inline-block;
  min-width: min(260px, 76vw);
  text-align: center;
  padding: 13px 28px;
  border-radius: 6px;
  background: #181818;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 140ms ease, transform 80ms ease;
}

.btn-phoenix:hover {
  background: #2e2e2e;
}

.btn-phoenix:active {
  transform: translateY(1px);
}

.btn-phoenix:focus-visible {
  outline: 2px solid #181818;
  outline-offset: 3px;
}

.link-sunbird {
  font-size: 0.78rem;
  color: #666660;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 140ms ease;
}

.link-sunbird:hover {
  color: #181818;
}

.link-sunbird:focus-visible {
  outline: 2px solid #181818;
  outline-offset: 2px;
  border-radius: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .cat-img,
  .btn-phoenix,
  .link-sunbird {
    transition: none;
  }

  .cat-img.is-farting {
    animation-duration: 1ms;
  }
}
