* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", system-ui, sans-serif;
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at top, #fff7e8, #f6d6ff 45%, #c9f1ff 100%);
  color: #1b1b1f;
}

.card {
  width: min(520px, 92vw);
  padding: 2.5rem 2.5rem 2.75rem;
  border-radius: 24px;
  background: #ffffffcc;
  box-shadow: 0 30px 60px rgba(27, 27, 31, 0.18);
  text-align: center;
  backdrop-filter: blur(10px);
}

h1 {
  margin: 0 0 0.25rem;
  font-size: clamp(1.75rem, 2.2vw + 1.2rem, 2.5rem);
  letter-spacing: -0.02em;
}

.subtitle {
  margin: 0 0 2rem;
  color: #4a4a58;
}

#emoji-container {
  font-size: clamp(5rem, 12vw, 8rem);
  margin: 0 0 2rem;
  line-height: 1;
  transition: transform 200ms ease;
}

#emoji-container.pop {
  transform: scale(1.1);
}

#generate-button {
  padding: 0.9rem 2.2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: 999px;
  background: #1b1b1f;
  color: white;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease;
  box-shadow: 0 12px 24px rgba(27, 27, 31, 0.2);
}

#generate-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(27, 27, 31, 0.25);
}

#generate-button:active {
  transform: translateY(0);
}

.easter-egg {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
}

.easter-egg input {
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(27, 27, 31, 0.2);
  background: #ffffffcc;
  color: #1b1b1f;
  font-family: inherit;
  box-shadow: 0 10px 20px rgba(27, 27, 31, 0.12);
  width: min(200px, 60vw);
}

.easter-egg input:focus {
  outline: 2px solid #1b1b1f;
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
