* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

body {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
}

.container {
  width: 90%;
  max-width: 700px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Heading */

h1 {
  font-size: 2.5rem;
  margin-bottom: 30px;
}

/* Score Board */

.score-board {
  display: flex;
  justify-content: space-around;
  margin-bottom: 35px;
}

.score h2 {
  font-size: 3rem;
  color: #38bdf8;
}

.score p {
  margin-top: 8px;
  color: #cbd5e1;
}

/* Battle Area */

.battle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  margin: 40px 0;
}

.player-side,
.computer-side {
  flex: 1;
}

.player-side h2,
.computer-side h2 {
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.display {
  width: 140px;
  height: 140px;
  margin: auto;
  background: #334155;
  border-radius: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 75px;
  transition: 0.3s ease;
}

.vs h1 {
  color: #38bdf8;
  font-size: 2.8rem;
}

/* Result */

.result {
  margin-bottom: 30px;
}

#message {
  font-size: 1.6rem;
  min-height: 40px;
}

/* Choice Buttons */

.choices {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.choice {
  width: 120px;
  height: 120px;
  border: none;
  border-radius: 18px;
  background: #334155;
  color: white;
  cursor: pointer;
  font-size: 3rem;
  transition: 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.choice span {
  margin-top: 10px;
  font-size: 1rem;
}

.choice:hover:not(:disabled) {
  background: #3b82f6;
  transform: translateY(-8px) scale(1.05);
}

.choice:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Reset Button */

#reset-btn {
  margin-top: 35px;
  padding: 12px 30px;
  border: none;
  border-radius: 10px;
  background: #ef4444;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.3s;
}

#reset-btn:hover {
  background: #dc2626;
}

/* Responsive */
/* =========================
   Responsive Design
========================= */

/* Tablets */
@media (max-width: 768px) {
  .container {
    width: 95%;
    padding: 30px 20px;
  }

  h1 {
    font-size: 2rem;
  }

  .battle {
    flex-direction: column;
    gap: 20px;
  }

  .display {
    width: 120px;
    height: 120px;
    font-size: 60px;
  }

  .vs h1 {
    font-size: 2rem;
  }

  .choices {
    gap: 15px;
  }

  .choice {
    width: 100px;
    height: 100px;
    font-size: 2.2rem;
  }

  .score h2 {
    font-size: 2.2rem;
  }

  #message {
    font-size: 1.3rem;
  }
}
@media (max-width: 600px) {
  .container {
    padding: 25px;
  }

  h1 {
    font-size: 2rem;
  }

  .score h2 {
    font-size: 2.3rem;
  }

  .battle {
    flex-direction: column;
    gap: 25px;
  }

  .display {
    width: 100px;
    height: 100px;
    font-size: 55px;
  }

  .vs h1 {
    font-size: 2rem;
  }

  .choice {
    width: 95px;
    height: 95px;
    font-size: 2.2rem;
  }

  .choice span {
    font-size: 0.9rem;
  }

  #message {
    font-size: 1.3rem;
  }
}
/* Mobile */
@media (max-width: 480px) {
  body {
    padding: 15px;
    align-items: flex-start;
  }

  .container {
    width: 100%;
    padding: 20px 15px;
    border-radius: 15px;
  }

  h1 {
    font-size: 1.7rem;
    margin-bottom: 20px;
  }

  .score-board {
    gap: 20px;
  }

  .score h2 {
    font-size: 1.8rem;
  }

  .score p {
    font-size: 0.9rem;
  }

  .battle {
    margin: 25px 0;
    gap: 15px;
  }

  .player-side h2,
  .computer-side h2 {
    font-size: 1.1rem;
  }

  .display {
    width: 90px;
    height: 90px;
    font-size: 45px;
  }

  .vs h1 {
    font-size: 1.5rem;
  }

  .choices {
    gap: 10px;
  }

  .choice {
    width: 85px;
    height: 85px;
    font-size: 2rem;
    border-radius: 15px;
  }

  .choice span {
    font-size: 0.75rem;
    margin-top: 5px;
  }

  #message {
    font-size: 1.1rem;
    line-height: 1.4;
  }

  #reset-btn {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
  }
}

/* Very Small Devices */
@media (max-width: 360px) {
  h1 {
    font-size: 1.5rem;
  }

  .display {
    width: 80px;
    height: 80px;
    font-size: 38px;
  }

  .choice {
    width: 75px;
    height: 75px;
    font-size: 1.8rem;
  }

  .score h2 {
    font-size: 1.6rem;
  }

  .vs h1 {
    font-size: 1.3rem;
  }
}
