/* frontend/student-battle-arena/battle-arena.css */
.battle-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.battle-card:hover {
  transform: translateY(-4px);
}
.vertical-math-question {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1;
}
.vertical-math-line {
  display: block;
  min-width: 100%;
  text-align: right;
}
.math-answer-input {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
}
.custom-numeric-keyboard {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-top: 1px solid rgb(203 213 225);
  background: rgba(255, 255, 255, 0.98);
  padding: 0.75rem;
  backdrop-filter: blur(12px);
}
.keyboard-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}
.keyboard-key {
  border: 1px solid rgb(203 213 225);
  background: rgb(248 250 252);
  border-radius: 0.9rem;
  color: rgb(15 23 42);
  font-size: 1.25rem;
  font-weight: 700;
  padding: 0.95rem 0;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.keyboard-key:active {
  transform: scale(0.96);
  background: rgb(226 232 240);
}
.keyboard-key.wide {
  grid-column: 1 / -1;
}
.keyboard-key.delete {
  background: rgb(15 23 42);
  border-color: rgb(15 23 42);
  color: white;
}
.keyboard-key.delete:active {
  background: rgb(30 41 59);
}
.battle-content-with-keyboard {
  padding-bottom: 18rem;
}
@media (min-width: 640px) {
  .battle-content-with-keyboard {
    padding-bottom: 0;
  }
  .custom-numeric-keyboard {
    display: none;
  }
}
@keyframes shurikenSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.shuriken-loader {
  animation: shurikenSpin 1.1s linear infinite;
}
@keyframes fallDown {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(720deg);
    opacity: 0;
  }
}

/* frontend/student-shared/battle-matchmaking.css */
@keyframes searchPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.85;
  }
}
@keyframes searchRipple {
  0% {
    transform: scale(0.6);
    opacity: 0.45;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}
@keyframes fadeInModal {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.searching-icon {
  animation: searchPulse 1.8s ease-in-out infinite;
}
.search-ripple {
  position: absolute;
  width: 90px;
  height: 90px;
  border-radius: 9999px;
  border: 2px solid currentColor;
  animation: searchRipple 2.4s ease-out infinite;
}
.search-ripple:nth-child(2) {
  animation-delay: 0.8s;
}
.search-ripple:nth-child(3) {
  animation-delay: 1.6s;
}
.matchmaking-modal-content {
  animation: fadeInModal 0.25s ease-out;
}
