:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-300: #fcd34d;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --cream: #fdf8f0;
  --brown-800: #4a2c0a;
  --brown-700: #5c3a12;
  --brown-600: #78501e;
  --teal-500: #5ba896;
  --teal-600: #4a9484;
  --teal-700: #3a7a6c;
  --sage: #8fad90;
}

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

body {
  font-family: 'Nunito', sans-serif;
  background: var(--cream);
  color: var(--brown-800);
  overflow-x: hidden;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--amber-100);
}

::-webkit-scrollbar-thumb {
  background: var(--amber-400);
  border-radius: 4px;
}

@keyframes pawTrail {
  0% { transform: translateX(-100%); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateX(100vw); opacity: 0; }
}

@keyframes floatUp {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes barkPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.9) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes barGrow {
  from { width: 0; }
}

.paw-trail-item {
  animation: pawTrail 12s linear infinite;
}

.float-animation {
  animation: floatUp 3s ease-in-out infinite;
}

.card-hover {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(74, 44, 10, 0.15);
}

.breed-img {
  transition: transform 0.5s ease;
}

.card-hover:hover .breed-img {
  transform: scale(1.05);
}

.fade-in-up {
  animation: fadeInUp 0.5s ease forwards;
}

.shimmer-bg {
  background: linear-gradient(90deg, #f0e6d6 25%, #faf0e0 50%, #f0e6d6 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.modal-enter {
  animation: modalIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.bar-animate {
  animation: barGrow 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.bone-search {
  border-radius: 50px;
  position: relative;
}

.bone-search::before,
.bone-search::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  background: var(--amber-200);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 0;
}

.bone-search::before { left: -6px; }
.bone-search::after { right: -6px; }

.fab-button {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 50;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber-500), var(--amber-600));
  color: white;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(245, 158, 11, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.fab-button:hover {
  transform: scale(1.1) rotate(15deg);
  box-shadow: 0 8px 32px rgba(245, 158, 11, 0.5);
}

.chip {
  transition: all 0.2s ease;
  cursor: pointer;
  user-select: none;
}

.chip:hover {
  transform: translateY(-2px);
}

.chip-active {
  background: var(--brown-800) !important;
  color: white !important;
}

.favorites-panel {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

.meter-bar {
  height: 10px;
  border-radius: 5px;
  position: relative;
  overflow: hidden;
}

.meter-fill {
  height: 100%;
  border-radius: 5px;
  transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.quiz-option {
  transition: all 0.2s ease;
  cursor: pointer;
}

.quiz-option:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(74, 44, 10, 0.1);
}

@media (max-width: 640px) {
  .fab-button {
    bottom: 16px;
    right: 16px;
    width: 56px;
    height: 56px;
    font-size: 24px;
  }
}