/* Storybook Chunky Nursery Styling */
:root {
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

body {
  font-family: 'Fredoka', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  touch-action: none;
}

/* HUD buttons */
.hud-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  min-width: 42px;
  padding: 0 12px;
  border-radius: 9999px;
  border-width: 3px;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background-color 0.2s ease;
  outline: none;
  cursor: pointer;
}

/* Fruit Spawn Dock Buttons */
.fruit-btn {
  flex: 1 1 0;
  max-width: 104px;
  height: 74px;
  border-radius: 22px;
  border-width: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  transition: transform 0.12s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.12s ease;
  position: relative;
  overflow: hidden;
}

@media (min-width: 640px) {
  .fruit-btn {
    height: 84px;
  }
}

.fruit-btn:active {
  transform: translateY(4px) scale(0.96);
  box-shadow: none !important;
}

.fruit-btn-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.fruit-btn-icon {
  font-size: 2rem;
  line-height: 1;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.15));
}

@media (min-width: 640px) {
  .fruit-btn-icon {
    font-size: 2.3rem;
  }
}

.fruit-btn-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-top: 2px;
  line-height: 1;
  text-transform: uppercase;
}

@media (min-width: 640px) {
  .fruit-btn-label {
    font-size: 13px;
  }
}

/* Gentle floating clouds background animation */
@keyframes floatSlow {
  0% { transform: translateX(0px); }
  50% { transform: translateX(18px); }
  100% { transform: translateX(0px); }
}

@keyframes floatReverse {
  0% { transform: translateX(0px); }
  50% { transform: translateX(-16px); }
  100% { transform: translateX(0px); }
}

.cloud-1 {
  animation: floatSlow 8s ease-in-out infinite;
}

.cloud-2 {
  animation: floatReverse 10s ease-in-out infinite;
}

/* Prevent image ghosting/selection */
img, svg, canvas {
  user-select: none;
  -webkit-user-drag: none;
}