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

body {
  height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #0a0a0a;
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(120, 0, 255, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(255, 40, 80, 0.08) 0%, transparent 50%);
  font-family: sans-serif;
  overflow: hidden;
}

.container {
  width: 100%;
  height: 100%;
  max-width: 720px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.credit {
  display: block;
  text-align: center;
  color: rgba(255, 255, 255, 0.2);
  font-size: 14px;
  padding: 10px 0;
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 4dvh, 48px);
  flex: 1;
  min-height: 0;
  padding: 24px;
}

/* Cat image */
.cat-wrapper {
  width: min(450px, 50dvh, 80vw);
  height: min(450px, 50dvh, 80vw);
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  flex-shrink: 1;
}

.cat-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.cat-wrapper img.loaded {
  opacity: 1;
}

/* Generated text */
.text-display {
  font-size: clamp(36px, 8vw, 63px);
  font-weight: 700;
  color: #fff;
  text-align: center;
  min-height: 80px;
  text-shadow: 0 0 30px rgba(255, 87, 87, 0.4);
  letter-spacing: 2px;
  word-break: break-word;
  padding: 0 8px;
}

/* Button */
.btn {
  font-family: sans-serif;
  font-size: clamp(18px, 4vw, 27px);
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #ff5757, #ff2d7b);
  border: none;
  border-radius: 20px;
  padding: clamp(14px, 3vw, 24px) clamp(32px, 8vw, 60px);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  box-shadow: 0 4px 24px rgba(255, 87, 87, 0.3);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 32px rgba(255, 87, 87, 0.45);
}

.btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 12px rgba(255, 87, 87, 0.3);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 4px 24px rgba(255, 87, 87, 0.15);
}

