* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --coral: #FF6B6B;
  --hot-pink: #FF2D7B;
  --soft-pink: #FFB5C2;
  --cream: #FFF5F0;
  --charcoal: #2D2D3A;
  --mint: #4ECDC4;
  --gold: #FFD93D;
}

body {
  font-family: 'Nunito', sans-serif;
  background: var(--cream);
  color: var(--charcoal);
  overflow-x: hidden;
  min-height: 100vh;
}

.font-fredoka {
  font-family: 'Fredoka', cursive;
}

.font-nunito {
  font-family: 'Nunito', sans-serif;
}

/* Hanger animation */
@keyframes swing {
  0%, 100% { transform: rotate(-8deg); }
  50% { transform: rotate(8deg); }
}

.hanger-swing {
  animation: swing 2s ease-in-out infinite;
  transform-origin: top center;
  display: inline-block;
}

/* Card swipe animations */
@keyframes slideOutLeft {
  0% { transform: translateX(0) rotate(0deg); opacity: 1; }
  100% { transform: translateX(-150%) rotate(-30deg); opacity: 0; }
}

@keyframes slideOutRight {
  0% { transform: translateX(0) rotate(0deg); opacity: 1; }
  100% { transform: translateX(150%) rotate(30deg); opacity: 0; }
}

@keyframes ripEffect {
  0% { transform: scale(1); clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%); }
  30% { clip-path: polygon(5% 0%, 95% 5%, 100% 95%, 0% 100%); }
  60% { clip-path: polygon(10% 5%, 90% 0%, 95% 100%, 5% 95%); transform: scale(0.9); }
  100% { clip-path: polygon(50% 50%, 50% 50%, 50% 50%, 50% 50%); transform: scale(0.5); opacity: 0; }
}

@keyframes slideInUp {
  0% { transform: translateY(60px) scale(0.95); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes bounceIn {
  0% { transform: scale(0.3); opacity: 0; }
  50% { transform: scale(1.05); }
  70% { transform: scale(0.95); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes confettiFall {
  0% { transform: translateY(-100vh) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

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

.card-swipe-left {
  animation: slideOutLeft 0.5s ease-in forwards;
}

.card-swipe-right {
  animation: slideOutRight 0.5s ease-in forwards;
}

.card-rip {
  animation: ripEffect 0.6s ease-in forwards;
}

.card-enter {
  animation: slideInUp 0.4s ease-out forwards;
}

.badge-pop {
  animation: bounceIn 0.5s ease-out forwards;
}

.confetti-piece {
  position: fixed;
  top: 0;
  width: 10px;
  height: 10px;
  animation: confettiFall 3s ease-in forwards;
  pointer-events: none;
  z-index: 9999;
}

.pulse-animation {
  animation: pulse 2s ease-in-out infinite;
}

/* Nakedness meter gradient */
.meter-fill {
  background: linear-gradient(90deg, var(--mint), var(--gold), var(--hot-pink));
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Card shadow and hover */
.clothing-card {
  box-shadow: 0 8px 32px rgba(255, 107, 107, 0.2), 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.clothing-card:hover {
  box-shadow: 0 12px 40px rgba(255, 107, 107, 0.3), 0 4px 12px rgba(0,0,0,0.1);
}

/* Button styles */
.btn-strip {
  background: linear-gradient(135deg, #FF6B6B, #FF2D7B);
  box-shadow: 0 4px 16px rgba(255, 45, 123, 0.4);
  transition: all 0.2s ease;
}

.btn-strip:hover {
  box-shadow: 0 6px 24px rgba(255, 45, 123, 0.6);
  transform: translateY(-2px);
}

.btn-strip:active {
  transform: translateY(0) scale(0.97);
}

.btn-keep {
  background: linear-gradient(135deg, #4ECDC4, #44B39D);
  box-shadow: 0 4px 16px rgba(78, 205, 196, 0.4);
  transition: all 0.2s ease;
}

.btn-keep:hover {
  box-shadow: 0 6px 24px rgba(78, 205, 196, 0.6);
  transform: translateY(-2px);
}

.btn-keep:active {
  transform: translateY(0) scale(0.97);
}

/* Header gradient */
.header-gradient {
  background: linear-gradient(135deg, #FF6B6B 0%, #FF2D7B 50%, #FF6B6B 100%);
}

/* Donation pile item */
.pile-item {
  transition: all 0.3s ease;
}

.pile-item:hover {
  transform: scale(1.1) rotate(-3deg);
  z-index: 10;
}

/* Touch handling for swipe */
.swipe-container {
  touch-action: pan-y;
  user-select: none;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--soft-pink);
  border-radius: 3px;
}

/* Image pixelated rendering */
.pixel-art {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

/* Category tags */
.category-tag {
  backdrop-filter: blur(8px);
}

/* Loading skeleton */
@keyframes skeletonPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

.skeleton-pulse {
  animation: skeletonPulse 1.5s ease-in-out infinite;
}

/* Dragging states */
.drag-left {
  background: rgba(255, 45, 123, 0.1) !important;
  border-color: var(--hot-pink) !important;
}

.drag-right {
  background: rgba(78, 205, 196, 0.1) !important;
  border-color: var(--mint) !important;
}