:root {
  --game-bg: linear-gradient(180deg, #ffedd5 0%, #fed7aa 45%, #fdba74 100%);
}

.yummy-field {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  overflow: hidden;
  padding: 8px 16px 16px;
  background: var(--game-bg);
  touch-action: none;
  box-sizing: border-box;
}

.character-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 4px;
}

.yummy-character {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  border-radius: 50%;
  transition: transform 0.15s ease-out;
  user-select: none;
  -webkit-user-select: none;
}

.yummy-character:focus-visible {
  outline: 4px solid #f59e0b;
  outline-offset: 6px;
}

.character-emoji {
  font-size: clamp(80px, min(26vw, 24vh), 150px);
  line-height: 1;
  filter: drop-shadow(0 10px 22px rgba(194, 65, 12, 0.16));
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mouth-indicator {
  position: absolute;
  bottom: 6px;
  font-size: clamp(28px, min(8vw, 7vh), 42px);
  line-height: 1;
  pointer-events: none;
  transition: transform 0.2s ease-out;
}

.mouth-indicator.open-wide {
  transform: scale(1.4) translateY(6px);
}

.character-chew .character-emoji,
.character-chew .mouth-indicator {
  animation: chew-bounce 0.4s ease 3;
}

@keyframes chew-bounce {
  0%, 100% { transform: scale(1, 1); }
  50% { transform: scale(1.18, 0.82) translateY(8px); }
}

.character-jump .character-emoji,
.character-jump .mouth-indicator {
  animation: happy-hop 0.45s ease-out;
}

@keyframes happy-hop {
  0% { transform: scale(1); }
  40% { transform: scale(1.22) translateY(-22px); }
  75% { transform: scale(0.95) translateY(4px); }
  100% { transform: scale(1); }
}

.animal-name {
  font-size: clamp(16px, min(4.5vw, 4vh), 24px);
  font-weight: 800;
  color: #c2410c;
  background: rgba(255, 255, 255, 0.95);
  padding: 4px 18px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  margin-top: 6px;
}

/* Food tray */
.food-tray {
  display: flex;
  gap: clamp(10px, 3.5vw, 24px);
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 480px;
  padding: 8px;
}

.snack-btn {
  width: clamp(66px, min(20vw, 12vh), 92px);
  height: clamp(66px, min(20vw, 12vh), 92px);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.96);
  border: 3.5px solid #fb923c;
  box-shadow: 0 6px 18px rgba(194, 65, 12, 0.16);
  font-size: clamp(36px, min(10vw, 7vh), 52px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.2s ease;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.snack-btn:hover {
  transform: scale(1.08);
}

.snack-btn:focus-visible {
  outline: 4px solid #f59e0b;
  outline-offset: 3px;
}

.snack-btn:active {
  transform: scale(0.95);
}

.snack-btn:disabled {
  cursor: default;
  transform: none;
}

/* Flying & Dragging snacks */
.flying-snack {
  position: fixed;
  font-size: 52px;
  line-height: 1;
  pointer-events: none;
  z-index: 50;
  will-change: transform, opacity;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.45s ease;
}

.dragging-snack {
  position: fixed;
  font-size: 58px;
  line-height: 1;
  pointer-events: none;
  z-index: 100;
  transform: translate(-50%, -50%) scale(1.18);
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.25));
}

/* Next button */
.next-animal-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  padding: 8px 24px;
  border-radius: 24px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.3);
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out, opacity 0.12s ease-out;
  touch-action: manipulation;
}

.next-animal-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 18px rgba(5, 150, 105, 0.4);
}

.next-animal-btn:focus-visible {
  outline: 3px solid #f59e0b;
  outline-offset: 3px;
}

.next-animal-btn:active {
  transform: scale(0.96);
}

.next-animal-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.next-icon {
  font-size: 20px;
  line-height: 1;
}

/* Floating particles */
.yummy-particle {
  position: fixed;
  pointer-events: none;
  font-size: 24px;
  line-height: 1;
  z-index: 60;
  animation: particle-burst 0.8s ease-out forwards;
}

@keyframes particle-burst {
  0% { transform: translate(0, 0) scale(0.6); opacity: 1; }
  100% { transform: translate(var(--pdx), var(--pdy)) scale(1.1); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .character-chew .character-emoji,
  .character-chew .mouth-indicator,
  .character-jump .character-emoji,
  .character-jump .mouth-indicator {
    animation: none;
  }
  .flying-snack {
    transition: opacity 0.3s ease;
  }
  .yummy-particle {
    animation: none;
    opacity: 0;
  }
}
