/* Custom Child-friendly Styles for Smart Coins */

:root {
  --color-green: #00A859;
  --color-red: #E63946;
  --color-gold: #FFB703;
}

body {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* Smooth transitions for screens */
.screen-view {
  animation: fadeIn 0.3s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-scale-in {
  animation: scaleIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.animate-bounce-slow {
  animation: floatBounce 3s ease-in-out infinite;
}

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

/* Avatar Option Buttons */
.avatar-option {
  aspect-ratio: 1;
  border-radius: 1rem;
  border: 2px solid #E2E8F0;
  background-color: #F8FAFC;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  cursor: pointer;
}

.avatar-option:hover {
  background-color: #F1F5F9;
  transform: translateY(-2px);
}

.avatar-option.active {
  border-color: #00A859;
  background-color: #E6F7EF;
  box-shadow: 0 4px 12px rgba(0, 168, 89, 0.25);
  transform: scale(1.05);
}

/* 3px custom border helper */
.border-3 {
  border-width: 3px;
}

/* Habit Card micro-interactions */
.habit-card {
  will-change: transform, box-shadow;
}

/* Disabled touch selection on active game elements */
button, input, select {
  font-family: inherit;
}

/* Clean Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #F1F5F9;
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}