/* Pup Card. Warm, friendly, mobile-first. */
:root {
  --cream: #fff8ef;
  --paper: #ffffff;
  --ink: #2f2620;
  --ink-soft: #6b5d51;
  --coral: #ff7a4d;
  --coral-dark: #e85f30;
  --gold: #ffb020;
  --line: #efe3d4;
  --shadow: 0 12px 40px rgba(120, 80, 40, 0.16);
  --radius: 20px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: ui-rounded, "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 50% -10%, #ffe9d6 0%, transparent 60%),
    var(--cream);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px 48px;
}

.site-head { text-align: center; margin: 12px 0 22px; }
.logo { font-size: clamp(2.2rem, 6vw, 3rem); margin: 0; letter-spacing: -0.5px; }
.tagline { margin: 6px 0 0; color: var(--ink-soft); font-size: 1.05rem; }

main { width: 100%; max-width: 480px; }

/* Dropzone */
.dropzone {
  border: 2.5px dashed #f0c9a8;
  border-radius: var(--radius);
  background: var(--paper);
  padding: 34px 20px;
  text-align: center;
  transition: border-color .18s, background .18s, transform .18s;
}
.dropzone.dragover { border-color: var(--coral); background: #fff3ea; transform: scale(1.01); }
.drop-emoji { font-size: 3rem; }
.drop-title { font-size: 1.25rem; font-weight: 700; margin: 10px 0 2px; }
.drop-sub { color: var(--ink-soft); margin: 6px 0; }
.drop-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 8px 0 14px; }
.drop-note { color: var(--ink-soft); font-size: .82rem; margin: 4px 0 0; }

/* Buttons */
.btn {
  font: inherit; font-weight: 700; cursor: pointer;
  border-radius: 999px; padding: 12px 20px; border: 2px solid transparent;
  transition: transform .12s, box-shadow .12s, background .12s;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.btn-primary { background: var(--coral); color: #fff; box-shadow: 0 6px 16px rgba(232, 95, 48, .3); }
.btn-primary:hover { background: var(--coral-dark); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: #e0cdb6; background: #fffaf3; }

/* Loading */
.loading { text-align: center; padding: 40px 0; }
.sniffer { font-size: 3rem; animation: bounce 1s ease-in-out infinite; }
@keyframes bounce { 0%,100% { transform: translateY(0) rotate(-8deg); } 50% { transform: translateY(-14px) rotate(8deg); } }
.loading p { color: var(--ink-soft); font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .sniffer { animation: none; } }

/* Error */
.error {
  background: #fff0ec; border: 1px solid #ffcbb8; color: #b83a12;
  border-radius: 14px; padding: 14px 16px; text-align: center; font-weight: 600;
}

/* Card */
.result { animation: rise .3s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.card {
  background: var(--paper); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.card-photo-wrap { position: relative; aspect-ratio: 4/3; background: #f3e9dd; }
.card-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.mood-chip {
  position: absolute; left: 14px; bottom: 14px;
  background: rgba(255,255,255,.92); color: var(--ink); font-weight: 700;
  padding: 6px 14px; border-radius: 999px; font-size: .9rem; backdrop-filter: blur(4px);
  box-shadow: 0 4px 12px rgba(0,0,0,.15); text-transform: capitalize;
}
.card-body { padding: 20px 22px 8px; }
.breed-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.breed-name { margin: 0; font-size: 1.5rem; line-height: 1.15; }
.breed-mix { margin: 3px 0 0; color: var(--ink-soft); font-size: .92rem; }
.confidence { text-align: center; flex-shrink: 0; }
.conf-pct { display: block; font-size: 1.35rem; font-weight: 800; color: var(--coral-dark); }
.conf-label { font-size: .72rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .5px; }
.caption {
  margin: 16px 0; padding: 14px 18px; border-left: 4px solid var(--gold);
  background: #fff8ec; border-radius: 0 12px 12px 0; font-size: 1.18rem;
  font-style: italic; font-weight: 600; line-height: 1.4;
}
.body-lang { color: var(--ink-soft); font-size: .95rem; margin: 0 0 14px; }
.care h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .6px; color: var(--ink-soft); margin: 0 0 6px; }
.care ul { margin: 0; padding-left: 20px; }
.care li { margin: 4px 0; line-height: 1.45; }
.fun-fact { margin: 16px 0 0; font-size: .92rem; color: var(--ink-soft); }
.fun-fact::before { content: "💡 "; }
.card-foot {
  display: flex; justify-content: space-between; padding: 14px 22px;
  border-top: 1px dashed var(--line); font-size: .82rem; color: var(--ink-soft); font-weight: 700;
}

.result-actions { display: flex; gap: 10px; justify-content: center; margin: 18px 0 6px; flex-wrap: wrap; }

.site-foot { margin-top: 40px; max-width: 520px; text-align: center; color: var(--ink-soft); font-size: .85rem; }
.site-foot a { color: var(--coral-dark); }
