:root {
  --color-brown: #725349;
  --color-ink: #312522;
  --color-terracotta: #e05a47;
  --color-terracotta-2: #d65d4b;
  --color-gold: #f2c94c;
  --color-tan: #e6be91;
  --color-pink: #f3b0b0;
  --color-cream: #f6f3eb;
  --color-cream-2: #ede9e0;
}

* { box-sizing: border-box; }

.toy-border {
  border: 3px solid var(--color-brown);
}

.toy-shadow {
  box-shadow: 2px 4px 0px var(--color-ink);
}

.toy-button {
  transition: transform 0.1s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s, color 0.2s;
  cursor: pointer;
  text-decoration: none;
}

.toy-button:active:not(:disabled) {
  transform: scale(0.95);
}

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

@keyframes popIn {
  0% { transform: scale(0.5); opacity: 0; }
  80% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.animate-pop {
  opacity: 0;
  animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.wheel-pointer {
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-top: 40px solid var(--color-terracotta);
  filter: drop-shadow(0px 2px 0px var(--color-ink));
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

@media (min-width: 1024px) {
  .wheel-pointer {
    border-left-width: 30px;
    border-right-width: 30px;
    border-top-width: 60px;
    top: -20px;
  }
}

/* Modal animation */
.modal-enter {
  opacity: 0;
}
.modal-enter-active {
  opacity: 1;
  transition: opacity 300ms;
}
.modal-enter-active .modal-content {
  animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
