*,
*::before,
*::after {
  box-sizing: border-box;
  border-color: var(--border);
}

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
}

body {
  margin: 0;
  background-color: var(--background);
  color: var(--foreground);
  font-weight: 600;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
  color: inherit;
}

img,
svg {
  display: block;
}

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}

.font-display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.005em;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

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

.shadow-chunky {
  box-shadow: var(--shadow-chunky);
}
.shadow-chunky-sm {
  box-shadow: var(--shadow-chunky-sm);
}
.shadow-soft {
  box-shadow: var(--shadow-soft);
}

.paw-pattern {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='%23f0a5b0' fill-opacity='0.28'%3E%3Cellipse cx='30' cy='38' rx='9' ry='8'/%3E%3Cellipse cx='18' cy='26' rx='4' ry='5'/%3E%3Cellipse cx='26' cy='19' rx='4' ry='5'/%3E%3Cellipse cx='36' cy='19' rx='4' ry='5'/%3E%3Cellipse cx='43' cy='27' rx='4' ry='5'/%3E%3C/g%3E%3Cg fill='%2394a3b8' fill-opacity='0.22'%3E%3Cellipse cx='88' cy='94' rx='9' ry='8'/%3E%3Cellipse cx='76' cy='82' rx='4' ry='5'/%3E%3Cellipse cx='84' cy='75' rx='4' ry='5'/%3E%3Cellipse cx='94' cy='75' rx='4' ry='5'/%3E%3Cellipse cx='101' cy='83' rx='4' ry='5'/%3E%3C/g%3E%3C/svg%3E");
}

.dark .paw-pattern {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='%2394a3b8' fill-opacity='0.055'%3E%3Cellipse cx='30' cy='38' rx='9' ry='8'/%3E%3Cellipse cx='18' cy='26' rx='4' ry='5'/%3E%3Cellipse cx='26' cy='19' rx='4' ry='5'/%3E%3Cellipse cx='36' cy='19' rx='4' ry='5'/%3E%3Cellipse cx='43' cy='27' rx='4' ry='5'/%3E%3C/g%3E%3Cg fill='%2394a3b8' fill-opacity='0.045'%3E%3Cellipse cx='88' cy='94' rx='9' ry='8'/%3E%3Cellipse cx='76' cy='82' rx='4' ry='5'/%3E%3Cellipse cx='84' cy='75' rx='4' ry='5'/%3E%3Cellipse cx='94' cy='75' rx='4' ry='5'/%3E%3Cellipse cx='101' cy='83' rx='4' ry='5'/%3E%3C/g%3E%3C/svg%3E");
}

.paw-bg {
  background-color: var(--surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='%23f0a5b0' fill-opacity='0.28'%3E%3Cellipse cx='30' cy='38' rx='9' ry='8'/%3E%3Cellipse cx='18' cy='26' rx='4' ry='5'/%3E%3Cellipse cx='26' cy='19' rx='4' ry='5'/%3E%3Cellipse cx='36' cy='19' rx='4' ry='5'/%3E%3Cellipse cx='43' cy='27' rx='4' ry='5'/%3E%3C/g%3E%3Cg fill='%2394a3b8' fill-opacity='0.22'%3E%3Cellipse cx='88' cy='94' rx='9' ry='8'/%3E%3Cellipse cx='76' cy='82' rx='4' ry='5'/%3E%3Cellipse cx='84' cy='75' rx='4' ry='5'/%3E%3Cellipse cx='94' cy='75' rx='4' ry='5'/%3E%3Cellipse cx='101' cy='83' rx='4' ry='5'/%3E%3C/g%3E%3C/svg%3E");
}

.bg-celebrate {
  background-image: var(--gradient-celebrate);
}

.animate-bob { animation: bob 2.2s ease-in-out infinite; }
.animate-pop { animation: pop 0.35s cubic-bezier(0.3, 1.6, 0.5, 1); }
.animate-shake { animation: shake 0.4s ease-in-out; }
.animate-pulse-ring { animation: pulse-ring 1.8s ease-out infinite; }
.animate-confetti { animation: confetti-fall 2.8s linear infinite; }
.animate-wiggle { animation: wiggle 1.2s ease-in-out infinite; }
.animate-parsley-right { animation: parsleyPeekRight 4.5s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.animate-parsley-left { animation: parsleyPeekLeft 4.5s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.animate-speech-pop { animation: speechPop 4.5s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.animate-paw-wave { animation: pawWave 0.42s ease-in-out infinite; }
.animate-tail-wag { animation: tailWag 0.36s ease-in-out infinite; }
.cloud-in-left { animation: cloudInLeft 0.78s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.cloud-in-right { animation: cloudInRight 0.78s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.cloud-out-left { animation: cloudOutLeft 0.8s cubic-bezier(0.55, 0, 0.75, 0.35) forwards; }
.cloud-out-right { animation: cloudOutRight 0.8s cubic-bezier(0.55, 0, 0.75, 0.35) forwards; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: 0.75rem;
  border: 2px solid transparent;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.015em;
  cursor: pointer;
  transition: transform 0.14s ease, filter 0.14s ease, background-color 0.14s ease, box-shadow 0.14s ease;
  text-decoration: none;
}
.btn svg {
  flex-shrink: 0;
}
.btn:disabled,
.btn[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-default { height: 2.25rem; padding: 0 1rem; }
.btn-sm { height: 2rem; border-radius: 0.625rem; padding: 0 0.75rem; font-size: 0.75rem; }
.btn-lg { height: 2.65rem; border-radius: 0.875rem; padding: 0 1.5rem; font-size: 0.95rem; }
.btn-xl { height: 3.5rem; border-radius: 1rem; padding: 0 1.75rem; font-size: 1.2rem; }
.btn-jumbo { height: 4rem; border-radius: 1rem; padding: 0 2rem; font-size: 1.35rem; }

.btn-brand {
  background: var(--brand);
  color: var(--brand-foreground);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.25), var(--shadow-chunky-sm);
}
.btn-brand:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-brand:active { transform: translateY(2px); box-shadow: none; }

.btn-teal {
  border-radius: 1rem;
  background: var(--teal);
  color: var(--teal-foreground);
  font-weight: 700;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.35), var(--shadow-chunky);
}
.btn-teal:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn-teal:active { transform: translate(2px, 3px); box-shadow: none; }

.btn-butter {
  border-radius: 1rem;
  background: var(--butter);
  color: var(--heart-ink);
  font-weight: 700;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.45), var(--shadow-chunky);
}
.btn-butter:hover { filter: brightness(1.04); transform: translateY(-1px); }
.btn-butter:active { transform: translate(2px, 3px); box-shadow: none; }

.btn-soft {
  border-radius: 0.875rem;
  border: 2px solid var(--lavender);
  background: var(--lavender-soft);
  color: var(--ink);
  font-weight: 700;
  box-shadow: 0 3px 0 0 color-mix(in oklab, var(--lavender) 85%, transparent);
}
.btn-soft:hover { background: var(--lavender); transform: translateY(-1px); }
.btn-soft:active { transform: translateY(2px); box-shadow: none; }
.dark .btn-soft { border-color: var(--border); box-shadow: 0 3px 0 0 var(--shade); }

.btn-outline {
  border: 2px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  box-shadow: var(--shadow-chunky-sm);
}
.btn-outline:hover { background: var(--lavender-soft); }

.btn-flame {
  border-radius: 1rem;
  background: var(--flame);
  color: var(--flame-foreground);
  font-weight: 700;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.3), var(--shadow-chunky);
}
.btn-flame:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn-flame:active { transform: translateY(3px); box-shadow: none; }

.w-full { width: 100%; }
.flex-1 { flex: 1 1 0%; }

/* Explicit icon & utility sizes */
.size-3 { width: 0.75rem; height: 0.75rem; flex-shrink: 0; }
.size-4 { width: 1rem; height: 1rem; flex-shrink: 0; }
.size-5 { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }
.size-6 { width: 1.5rem; height: 1.5rem; flex-shrink: 0; }
.size-7 { width: 1.75rem; height: 1.75rem; flex-shrink: 0; }
.size-8 { width: 2rem; height: 2rem; flex-shrink: 0; }
.size-9 { width: 2.25rem; height: 2.25rem; flex-shrink: 0; }
.size-20 { width: 5rem; height: 5rem; flex-shrink: 0; }
