/* Reset & Base styling */
* {
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

body {
  margin: 0;
  padding: 0;
  height: 100vh;
  width: 100vw;
  background-color: #F6EFE6;
  font-family: 'Readex Pro', 'Tajawal', sans-serif;
}

/* Hide scrollbar while preserving scrollability */
.scrollbar-none::-webkit-scrollbar {
  display: none;
}
.scrollbar-none {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Animations */
@keyframes bounceShort {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-8deg); }
  75% { transform: rotate(8deg); }
}

.animate-bounce-short {
  animation: bounceShort 2.2s infinite ease-in-out;
}

.animate-wiggle {
  animation: wiggle 1.2s infinite ease-in-out;
}

/* Alphabet Tray Button Styling */
.letter-chip {
  flex-shrink: 0;
  width: 44px;
  height: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-weight: 800;
  transition: all 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 3px 6px rgba(66, 49, 34, 0.12);
  cursor: pointer;
}

@media (min-width: 640px) {
  .letter-chip {
    width: 52px;
    height: 58px;
    border-radius: 16px;
  }
}

.letter-chip:hover {
  transform: translateY(-3px) scale(1.05);
}

.letter-chip:active {
  transform: translateY(1px) scale(0.96);
}

.letter-chip .char {
  font-size: 1.25rem;
  line-height: 1.1;
}

@media (min-width: 640px) {
  .letter-chip .char {
    font-size: 1.5rem;
  }
}

.letter-chip .icon {
  font-size: 0.75rem;
  line-height: 1;
  opacity: 0.85;
}

/* Three.js canvas */
#canvas-container {
  touch-action: none;
}