* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0a0a0f;
  --card: #0e0e16;
  --border: #2a2a3a;

  --white: #ffffff;

  --cyan: #00f0ff;
  --cyan-soft: #7afaff;

  --pink: #ff2bd6;
  --pink-soft: #ff9be8;

  --green: #39ff8a;
  --muted: #6a6a7e;
}

body {
  min-height: 100vh;
  font-family: "Orbitron", sans-serif;
  background: var(--bg);
  color: var(--cyan);
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}

.game {
  width: min(100%, 650px);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 22px;
  transition: 0.3s;
}

.themeBtn {
  align-self: flex-end;
  width: 150px;
  background: var(--card);
  color: var(--cyan);
  border: 1px solid var(--cyan);
  border-radius: 999px;
  padding: 8px 12px;
  font-family: inherit;
  cursor: pointer;
  transition: 0.3s;
}

.themeBtn:hover {
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.35);
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  font-size: 16px;
  letter-spacing: 1px;
}

.logo i {
  color: var(--cyan);
  font-size: 22px;
  margin-right: 8px;
}

.round {
  border: 1px solid var(--pink);
  color: var(--pink);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  white-space: nowrap;
}

.players {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.score-card {
  background: var(--card);
  border-radius: 14px;
  padding: 1.2rem;
  transition: 0.3s;
}

.player-card {
  border: 1px solid var(--cyan);
}

.cpu-card {
  border: 1px solid var(--pink);
}

.score-card p {
  font-size: 12px;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.player-card p {
  color: var(--cyan-soft);
}

.cpu-card p {
  color: var(--pink-soft);
}

.score-card span {
  font-size: 36px;
  font-weight: 600;
}

.cpu-card span {
  color: var(--pink);
}

.battle-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 18px;
  transition: 0.3s;
}

.choice-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--cyan-soft);
}

.choice-side:last-child {
  color: var(--pink-soft);
}

.circle {
  width: 135px;
  height: 135px;
  background: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  text-transform: uppercase;
  transition: 0.3s;
  
}

.animate {
  animation: pop 0.3s ease;
}

@keyframes pop {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.15);
  }

  100% {
    transform: scale(1);
  }
}
#player1,
#player2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 18px;
  }
  #player1 i,
  #player2 i {
    font-size: 35px;
   
}
.cyan {
  border: 2px solid var(--cyan);
  color: var(--cyan);
}

.pink {
  border: 2px solid var(--pink);
  color: var(--pink);
}

.vs {
  color: var(--muted);
  font-size: 18px;
  font-weight: 600;
}

.result-text {
  background: var(--bg);
  border: 1px solid var(--green);
  color: var(--green);
  border-radius: 999px;
  padding: 12px 16px;
  text-align: center;
  font-size: 14px;
  letter-spacing: 0.5px;
  transition: 0.3s;
}

.choices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.btn {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 14px;
  padding: 1.2rem 0.5rem;
  cursor: pointer;
  font-family: inherit;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;

  transition: 0.3s;
}

.btn i {
  font-size: 28px;
}

.btn span {
  font-size: 13px;
  letter-spacing: 1px;
}

.btn.active {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.35);
}

.btn:hover {
  border-color: var(--green);
  color: var(--green);
  box-shadow: 0 0 15px rgba(57, 255, 138, 0.35);
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}

#again {
  width: 100%;
  background: var(--card);
  border: 2px solid var(--pink);
  color: var(--pink);
  border-radius: 14px;
  padding: 14px;
  font-family: inherit;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  letter-spacing: 1px;
  transition: 0.3s;
}

#again:hover {
  box-shadow: 0 0 18px rgba(255, 43, 214, 0.4);
}
#Histo{
  display: flex;
       gap:30px;

}
#History{
   display: flex;
   gap: 60px;
}
/* ===========================
   LIGHT MODE
=========================== */

body.light {
  --bg: #f4f7fb;
  --card: #ffffff;
  --border: #dbe4f0;

  --cyan: #2563eb;
  --cyan-soft: #60a5fa;

  --pink: #f97316;
  --pink-soft: #fb923c;

  --green: #16a34a;
  --muted: #64748b;

  --white: #ffffff;
}

body.light .game {
  box-shadow: 0 20px 40px rgba(193, 108, 18, 0.08);
}

body.light .btn {
  background: var(--card);
  color: var(--muted);
}


body.light .btn.active {
  color: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 0 14px rgba(5, 238, 83, 0.6);
}

body.light .player-card {
  border-color: var(--cyan);
}

body.light .cpu-card {
  border-color: var(--pink);
}

body.light .result-text {
  background: #f8fafc;
}

body.light #again {
  background: var(--card);
  border-color: var(--pink);
  color: var(--pink);
}

body.light #again:hover {
  
  box-shadow: 0 0 18px rgba(249, 115, 22, 0.6);
  scale: 1.01;
}

body.light .circle {
  background: #f8fafc;
}

body.light .vs {
  color: #94a3b8;
}

body.light .themeBtn {
  background: var(--cyan);
  color: white;
  border-color: var(--cyan);
}

body.light .themeBtn:hover {
  background: #1d4ed8;
  box-shadow: 0 0 14px rgba(37, 99, 235, 0.25);
}
body.light  .btn:hover{
  border-color: var(--green);
  color: var(--green);
  box-shadow: 0 0 15px rgba(57, 255, 138, 0.35);
}
/* Tablet */
@media (max-width: 768px) {
  .game {
    padding: 1.4rem;
  }

  header {
    flex-direction: row;
    align-items: flex-start;
  }

  .round {
    align-self: flex-end;
  }

  .battle-box {
    padding: 1.3rem;
  }

  .circle {
    width: 100px;
    height: 100px;
    font-size: 16px;
  }
  #player1 ,
#player2  {
    font-size: 13px;
}
  #player1 i ,
#player2 i {
    font-size: 30px;
}
}

/* Mobile */
@media (max-width: 480px) {
  body {
    padding: 0.7rem;
  }

  .game {
    padding: 1rem;
    gap: 16px;
  }

  .players {
    grid-template-columns: 1fr;
  }

  .battle-box {
    flex-direction: column;
  }

  .choices {
    grid-template-columns: 1fr;
  }

  .score-card span {
    font-size: 30px;
  }

  .logo {
    font-size: 14px;
  }

  .result-text {
    font-size: 12px;
  }
}

/* Result glow states */
.circle.win-glow {
  border-color: #39ff8a !important;
  color: #39ff8a !important;
  box-shadow:
    0 0 12px rgba(57, 255, 138, 0.9),
    0 0 28px rgba(57, 255, 138, 0.55);
}

.circle.lose-glow {
  border-color: #ff3b3b !important;
  color: #ff3b3b !important;
  box-shadow:
    0 0 12px rgba(255, 59, 59, 0.9),
    0 0 28px rgba(255, 59, 59, 0.55);
}

.circle.draw-glow {
  border-color: #ffe600 !important;
  color: #ffe600 !important;
  box-shadow:
    0 0 12px rgba(255, 230, 0, 0.95),
    0 0 28px rgba(255, 230, 0, 0.6);
}