body {
  margin: 0;
  font-family: Arial;
  background: radial-gradient(circle at top, #1e293b, #020617);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

/* Container */
.game-container {
  text-align: center;
}

/* Title */
.title {
  font-size: 28px;
  margin-bottom: 10px;
}

/* Arena */
.arena {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin: 20px 0;
}

/* Side */
.side {
  text-align: center;
}

/* Hand */
.hand {
  font-size: 60px;
  margin-top: 10px;
  transition: transform 0.3s;
}

/* VS */
.vs {
  font-size: 26px;
  font-weight: bold;
  color: #facc15;
  text-shadow: 0 0 15px #facc15;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  50% { transform: scale(1.2); }
}

/* Result */
.result {
  font-size: 22px;
  margin: 15px 0;
}

/* Buttons */
.buttons button {
  font-size: 28px;
  margin: 8px;
  padding: 15px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: #334155;
  transition: 0.2s;
}

.buttons button:hover {
  transform: scale(1.2);
  background: #475569;
}

/* Controls */
.controls button {
  margin: 5px;
  padding: 8px 12px;
  border-radius: 8px;
  border: none;
  background: #0ea5e9;
  color: white;
  cursor: pointer;
}

/* Win Lose Tie */
.win-color { color: #22c55e; }
.lose-color { color: #ef4444; }
.tie-color { color: #eab308; }



.buttons button svg {
  transition: transform 0.2s, filter 0.2s;
}

.buttons button:hover svg {
  transform: scale(1.2);
  filter: drop-shadow(0 0 6px #38bdf8);
}

/*---Efek tabrakan ---*/
/* posisi awal */
.player-hand {
  transform: translateX(-40px);
}

.computer-hand {
  transform: translateX(40px);
}

/* animasi tabrakan */
.clash-left {
  animation: clashLeft 0.4s ease;
}

.clash-right {
  animation: clashRight 0.4s ease;
}

@keyframes clashLeft {
  0% { transform: translateX(-40px); }
  50% { transform: translateX(0); }
  100% { transform: translateX(-40px); }
}

@keyframes clashRight {
  0% { transform: translateX(40px); }
  50% { transform: translateX(0); }
  100% { transform: translateX(40px); }
}

/*--- Glow + shake----*/

.win-glow {
  animation: glow 0.8s ease;
}

@keyframes glow {
  0% { 
    filter: drop-shadow(0 0 0px #22c55e);
    transform: scale(1);
  }
  50% { 
    filter: drop-shadow(0 0 25px #22c55e);
    transform: scale(1.1);
  }
  100% { 
    filter: drop-shadow(0 0 0px #22c55e);
    transform: scale(1);
  }
}

.lose-effect {
  animation: loseEffect 0.6s ease;
}

@keyframes loseEffect {
  0% { 
    transform: translateX(0) scale(1);
    filter: drop-shadow(0 0 0px #ef4444);
  }
  25% { 
    transform: translateX(-6px) scale(0.95);
  }
  50% { 
    transform: translateX(6px) scale(0.9);
    filter: drop-shadow(0 0 30px #ef4444);
  }
  75% { 
    transform: translateX(-4px) scale(0.95);
  }
  100% { 
    transform: translateX(0) scale(1);
    filter: drop-shadow(0 0 0px #ef4444);
  }
}

/* --------impact flash --------*/

.impact-flash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  opacity: 0;
  pointer-events: none;
  z-index: 999;
}

/* animasi flash */
.flash-active {
  animation: flash 0.25s ease;
}

@keyframes flash {
  0% { opacity: 0; }
  50% { opacity: 0.4; }
  100% { opacity: 0; }
}

