@import url('https://fonts.googleapis.com/css2?family=Special+Elite&family=Courier+Prime:wght@400;700&display=swap');

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

body {
  font-family: 'Courier Prime', monospace;
  overflow-x: hidden;
}

.bg-sepia {
  background-color: #f4e8d8;
  background-image: 
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(0,0,0,.03) 2px,
      rgba(0,0,0,.03) 4px
    );
}

.bg-paper {
  background-color: #fef9f3;
  background-image: 
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 29px,
      rgba(139, 69, 19, .1) 29px,
      rgba(139, 69, 19, .1) 30px
    );
  box-shadow: 
    inset 0 0 20px rgba(0,0,0,.05),
    0 10px 30px rgba(0,0,0,.2);
}

.font-stamp {
  font-family: 'Special Elite', cursive;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.font-typewriter {
  font-family: 'Courier Prime', monospace;
}

.stamp-shadow {
  text-shadow: 
    3px 3px 0px rgba(0,0,0,.1),
    -1px -1px 0px rgba(255,255,255,.5);
}

.stamp-overlay {
  animation: stampAppear 0.3s ease-out;
}

@keyframes stampAppear {
  0% {
    transform: scale(0) rotate(0deg);
    opacity: 0;
  }
  50% {
    transform: scale(1.2) rotate(15deg);
    opacity: 1;
  }
  100% {
    transform: scale(1) rotate(12deg);
    opacity: 0.9;
  }
}

.stamp-approved {
  filter: drop-shadow(0 0 20px rgba(34, 197, 94, 0.5));
}

.stamp-denied {
  filter: drop-shadow(0 0 20px rgba(220, 38, 38, 0.5));
}

.stamp-expired {
  filter: drop-shadow(0 0 20px rgba(107, 114, 128, 0.5));
}

button {
  cursor: pointer;
  transition: all 0.2s ease;
}

button:active {
  transform: scale(0.95);
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Animations */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.animate-pulse {
  animation: pulse 1s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0) translateX(-50%);
  }
  50% {
    transform: translateY(-25px) translateX(-50%);
  }
}

.animate-bounce {
  animation: bounce 1s infinite;
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .font-stamp {
    letter-spacing: 1px;
  }
  
  h1.text-6xl {
    font-size: 3rem;
  }
  
  h2.text-5xl {
    font-size: 2.5rem;
  }
}

/* Keyboard hint */
@media (min-width: 768px) {
  button:hover::after {
    content: '';
    position: absolute;
    inset: -2px;
    border: 2px dashed rgba(139, 69, 19, 0.3);
    pointer-events: none;
  }
}