* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #111;
  color: white;
  overflow: hidden;
}

.game {
  width: 100vw;
  height: 100vh;
  display: flex;
  position: relative;
}

.card {
  width: 50%;
  height: 100%;
  position: relative;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.card-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 85%;
  max-width: 700px;
}

.card-content h1 {
  font-size: clamp(2.3rem, 5vw, 5.2rem);
  line-height: 1.05;
  font-weight: 900;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.7);
}

.small-text {
  font-size: clamp(1.2rem, 2vw, 2rem);
  font-weight: 700;
  margin: 18px 0;
}

#leftVisitors,
#rightVisitors {
  font-size: clamp(3.5rem, 7vw, 7rem);
  color: #fff45c;
  font-weight: 900;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.7);
}

.button-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin: 28px 0 22px;
}

.guess-btn,
.next-btn,
#playAgainBtn {
  width: 300px;
  max-width: 90%;
  padding: 18px 34px;
  border: 4px solid white;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  color: #fff45c;
  font-size: 1.5rem;
  font-weight: 900;
  cursor: pointer;
  transition: 0.2s ease;
}

.guess-btn:hover,
.next-btn:hover,
#playAgainBtn:hover {
  transform: scale(1.06);
  background: rgba(255, 255, 255, 0.18);
}

.guess-btn span {
  margin-left: 24px;
  color: white;
}

.compare-text {
  font-size: clamp(1rem, 1.7vw, 1.6rem);
  font-weight: 800;
}

.vs-circle {
  position: absolute;
  z-index: 5;
  width: 145px;
  height: 145px;
  border-radius: 50%;
  background: white;
  color: black;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  font-size: 3rem;
  font-weight: 900;
  box-shadow: 0 0 35px rgba(0, 0, 0, 0.45);
}

.bottom-text {
  position: absolute;
  bottom: 34px;
  z-index: 2;
  font-size: clamp(1.4rem, 2.3vw, 2.3rem);
  font-weight: 900;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.8);
}

.left-bottom {
  left: 34px;
}

.right-bottom {
  right: 34px;
}

.answer-box {
  margin-top: 24px;
}

.answer-box p {
  font-size: 1.8rem;
  font-weight: 900;
  margin: 18px 0;
}

.next-btn {
  color: white;
  background: #222;
}

.hidden {
  display: none;
}

.game-over {
  position: absolute;
  inset: 0;
  z-index: 20;
  background: rgba(0, 0, 0, 0.78);
  display: flex;
  justify-content: center;
  align-items: center;
}

.game-over.hidden {
  display: none;
}

.game-over-card {
  background: #181818;
  border: 3px solid white;
  border-radius: 28px;
  padding: 45px;
  text-align: center;
  width: 380px;
  max-width: 90%;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.7);
}

.game-over-card h2 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.game-over-card p {
  font-size: 1.3rem;
}

.game-over-card h3 {
  font-size: 5rem;
  color: #fff45c;
  margin: 15px 0 30px;
}

@media (max-width: 800px) {
  body {
    overflow-y: auto;
  }

  .game {
    height: auto;
    min-height: 100vh;
    flex-direction: column;
  }

  .card {
    width: 100%;
    height: 50vh;
    min-height: 430px;
  }

  .vs-circle {
    width: 95px;
    height: 95px;
    font-size: 2rem;
    top: 50%;
  }

  .bottom-text {
    font-size: 1.4rem;
    bottom: 20px;
  }

  .left-bottom {
    left: 20px;
  }

  .right-bottom {
    right: 20px;
  }

  .guess-btn,
  .next-btn,
  #playAgainBtn {
    font-size: 1.2rem;
    padding: 14px 26px;
  }
}