:root {
  --bg: #fdf6f0;
  --card: #ffffff;
  --accent: #f6b8c6;
  --accent-2: #c8e6e0;
  --accent-3: #fce4d6;
  --text: #5b4a54;
  --muted: #9a8b95;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(160deg, #fdf6f0 0%, #f7ecf7 50%, #eef7f4 100%);
  min-height: 100vh;
  line-height: 1.6;
}

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.emoji-logo {
  font-size: 3.2rem;
  display: block;
  margin-bottom: 0.25rem;
}

h1 {
  font-size: 2.3rem;
  margin: 0 0 0.4rem;
  color: #6b4a5a;
  letter-spacing: -0.5px;
}

.subtitle {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0;
}

.card {
  background: var(--card);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 1.75rem;
  margin-bottom: 1.75rem;
}

.card h2 {
  margin-top: 0;
  font-size: 1.35rem;
  color: #6b4a5a;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.8rem 1.3rem;
  border-radius: 999px;
  background: var(--accent);
  color: #5b3a46;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  box-shadow: 0 6px 16px rgba(246, 184, 198, 0.5);
}

.btn:hover {
  transform: translateY(-2px);
  background: #f3a6ba;
}

.btn.secondary {
  background: var(--accent-2);
  color: #2f5c56;
  box-shadow: 0 6px 16px rgba(200, 230, 224, 0.6);
}

.btn.secondary:hover {
  background: #b4dcd3;
}

.cat-stage {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 320px;
  background: var(--accent-3);
  border-radius: 16px;
  overflow: hidden;
  margin-top: 1rem;
}

.cat-stage img {
  max-width: 100%;
  max-height: 460px;
  object-fit: contain;
  border-radius: 16px;
}

.cat-stage .placeholder {
  color: var(--muted);
  font-size: 1.1rem;
}

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.9rem;
  margin-top: 1rem;
}

.fact {
  background: #fff7fa;
  border: 1px solid #f6dde5;
  border-radius: 14px;
  padding: 0.9rem 1rem;
  font-size: 0.98rem;
}

#preview {
  margin-top: 1rem;
  max-width: 100%;
  border-radius: 14px;
  display: none;
}

input[type="file"] {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: var(--muted);
}

footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 2rem;
}

@media (max-width: 600px) {
  h1 { font-size: 1.8rem; }
  .card { padding: 1.25rem; }
  .cat-stage { min-height: 240px; }
}
