* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 30px 20px;

  font-family: Arial, Helvetica, sans-serif;
  color: white;

  background:
    radial-gradient(
      circle at top,
      #25396f,
      #080e1f 55%
    );
}

.game-container {
  width: min(850px, 100%);
  text-align: center;
}

.back-button {
  display: block;
  width: fit-content;

  margin-bottom: 35px;

  color: #aebce8;
  text-decoration: none;

  transition: 0.2s;
}

.back-button:hover {
  color: #6ff3ff;
}

/* HEADER */

.game-header p {
  margin-bottom: 8px;

  color: #70efff;

  font-size: 0.85rem;
  font-weight: bold;

  letter-spacing: 2px;
}

.game-header h1 {
  margin-bottom: 10px;

  font-size: clamp(
    2.3rem,
    6vw,
    4rem
  );
}

.game-header > span {
  color: #b8c3e5;
}

/* SCOREBOARD */

.scoreboard {
  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 15px;

  margin: 35px 0;
}

.score-box {
  padding: 18px;

  border:
    1px solid
    rgba(255,255,255,0.12);

  border-radius: 16px;

  background:
    rgba(255,255,255,0.06);
}

.score-box > span {
  display: block;

  margin-bottom: 7px;

  font-size: 1.5rem;
}

.score-box p {
  margin-bottom: 6px;

  color: #b9c4e8;
}

.score-box strong {
  font-size: 1.8rem;
}

/* BATTLE */

.battle-area {
  display: flex;

  align-items: center;
  justify-content: center;

  gap: 45px;

  padding: 35px;

  border:
    1px solid
    rgba(255,255,255,0.12);

  border-radius: 22px;

  background:
    rgba(255,255,255,0.06);

  box-shadow:
    0 20px 50px
    rgba(0,0,0,0.3);
}

.fighter {
  flex: 1;
}

.fighter p {
  margin-bottom: 15px;

  color: #c5cff0;

  font-weight: bold;
}

.choice-display {
  display: grid;
  place-items: center;

  width: 140px;
  height: 140px;

  margin: auto;

  border:
    1px solid
    rgba(92,242,255,0.25);

  border-radius: 28px;

  background:
    rgba(92,242,255,0.07);

  font-size: 4.5rem;

  transition:
    transform 0.25s ease;
}

.choice-display.pop {
  transform: scale(1.15);
}

.versus {
  color: #70efff;

  font-size: 1.5rem;
  font-weight: bold;
}

/* RESULT */

.result-area {
  margin: 28px 0;
}

.result-area h2 {
  margin-bottom: 7px;

  font-size: 1.8rem;
}

.result-area p {
  color: #aebae0;
}

/* CHOICES */

.choices {
  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 15px;
}

.choice-button {
  padding: 20px 12px;

  border:
    1px solid
    rgba(255,255,255,0.12);

  border-radius: 16px;

  color: white;

  background:
    rgba(255,255,255,0.07);

  font-weight: bold;

  cursor: pointer;

  transition:
    transform 0.2s,
    border-color 0.2s,
    background 0.2s;
}

.choice-button span {
  display: block;

  margin-bottom: 8px;

  font-size: 2.5rem;
}

.choice-button:hover {
  transform:
    translateY(-5px);

  border-color:
    rgba(92,242,255,0.5);

  background:
    rgba(92,242,255,0.12);
}

/* RESET */

.reset-button {
  margin-top: 25px;

  padding: 11px 18px;

  border:
    1px solid
    rgba(255,255,255,0.12);

  border-radius: 11px;

  color: #c4cdec;

  background:
    rgba(255,255,255,0.06);

  cursor: pointer;
}

.reset-button:hover {
  color: white;
}

/* MOBILE */

@media (max-width: 600px) {

  .battle-area {
    gap: 15px;
    padding: 25px 15px;
  }

  .choice-display {
    width: 100px;
    height: 100px;

    font-size: 3.2rem;
  }

  .versus {
    font-size: 1rem;
  }

  .choices {
    grid-template-columns: 1fr;
  }
}
/* =========================
   JARVIS DIFFICULTY
========================= */

.difficulty-section {
  margin: 28px 0 10px;
}

.difficulty-section > p:first-child {
  margin-bottom: 12px;

  color: #c5cff1;

  font-weight: bold;
}

.difficulty-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;

  gap: 10px;
}

.difficulty-button {
  padding: 10px 16px;

  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;

  color: #cbd4f7;

  background: rgba(255,255,255,0.06);

  font-weight: bold;

  cursor: pointer;

  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.difficulty-button:hover {
  transform: translateY(-2px);

  border-color:
    rgba(92,242,255,0.45);
}

.difficulty-button.active {
  color: #06101d;

  background:
    linear-gradient(
      135deg,
      #5cf2ff,
      #82ffb4
    );
}

.jarvis-message {
  min-height: 24px;

  margin-top: 15px;

  color: #70efff;

  font-size: 0.95rem;
}
.lifetime-box {
  display: flex;
  align-items: center;
  justify-content: space-between;

  max-width: 420px;
  margin: -15px auto 30px;
  padding: 14px 18px;

  border: 1px solid rgba(92, 242, 255, 0.25);
  border-radius: 14px;

  background: rgba(92, 242, 255, 0.07);
}

.lifetime-box span {
  color: #bfcaf0;
}

.lifetime-box strong {
  color: #70efff;
  font-size: 1.35rem;
}