body {
  margin: 0;
  background-color: #f4e4bc;
  background-image: url("https://www.transparenttextures.com/patterns/old-paper.png");
  background-attachment: fixed;
  min-height: 100vh;
  color: #3e2723;
  overflow-x: hidden;
  font-family: "Rye", serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-western {
  font-family: "Rye", cursive;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
p,
li,
a,
input,
textarea {
  font-family: "Courier Prime", monospace;
  font-weight: 600;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.vintage-filter {
  position: relative;
}
.vintage-filter::after {
  content: "";
  position: absolute;
  inset: 0;
  background: sepia(0.3) contrast(1.1) brightness(0.9);
  mix-blend-mode: multiply;
  pointer-events: none;
  transition: opacity 0.3s ease;
  opacity: 0.6;
}
.vintage-filter:hover::after {
  opacity: 0;
}

.wood-bg {
  background-color: #5d4037;
  background-image: url("./assets/wood-pattern.png");
  border: 4px solid #3e2723;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.6);
}

.wanted-paper {
  background-color: #fff8e1;
  background-image: url("./assets/cream-paper.png");
  box-shadow:
    0 10px 20px rgba(0, 0, 0, 0.4),
    inset 0 0 30px rgba(139, 69, 19, 0.2);
  border: 1px solid #d7ccc8;
  position: relative;
}
.nail {
  width: 12px;
  height: 12px;
  background: radial-gradient(circle at 30% 30%, #bcaaa4, #5d4037);
  border-radius: 50%;
  box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  position: absolute;
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.8s ease-out,
    transform 0.8s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.delay-100 {
  transition-delay: 100ms;
}
.delay-200 {
  transition-delay: 200ms;
}
.delay-300 {
  transition-delay: 300ms;
}

.btn-western:active {
  transform: translateY(2px);
  box-shadow: none !important;
}

@keyframes slow-zoom {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}
.animate-slow-zoom {
  animation: slow-zoom 20s ease-in-out infinite;
}

.spark {
  position: absolute;
  bottom: -10px;
  width: 4px;
  height: 4px;
  background-color: #ffca28;
  border-radius: 50%;
  box-shadow:
    0 0 10px #ffca28,
    0 0 20px #d84315;
  opacity: 0;
  animation: fly-up 4s linear infinite;
}

.spark:nth-child(1) {
  left: 10%;
  animation-duration: 3s;
  animation-delay: 0s;
}
.spark:nth-child(2) {
  left: 20%;
  animation-duration: 5s;
  animation-delay: 1s;
}
.spark:nth-child(3) {
  left: 35%;
  animation-duration: 4s;
  animation-delay: 2s;
}
.spark:nth-child(4) {
  left: 50%;
  animation-duration: 6s;
  animation-delay: 0.5s;
}
.spark:nth-child(5) {
  left: 65%;
  animation-duration: 3.5s;
  animation-delay: 1.5s;
}
.spark:nth-child(6) {
  left: 80%;
  animation-duration: 4.5s;
  animation-delay: 0.2s;
}
.spark:nth-child(7) {
  left: 90%;
  animation-duration: 5.5s;
  animation-delay: 1.2s;
}
.spark:nth-child(8) {
  left: 25%;
  animation-duration: 4.2s;
  animation-delay: 0.8s;
}
.spark:nth-child(9) {
  left: 75%;
  animation-duration: 3.8s;
  animation-delay: 2.5s;
}
.spark:nth-child(10) {
  left: 45%;
  animation-duration: 5.2s;
  animation-delay: 1.8s;
}

@keyframes fly-up {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  80% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(-100vh) scale(0.5);
    opacity: 0;
  }
}

#game-modal {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
#game-modal.show {
  opacity: 1;
  pointer-events: auto;
}
#game-modal-content {
  transform: scale(0.95) rotate(-1deg);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
#game-modal.show #game-modal-content {
  transform: scale(1) rotate(0deg);
}
