/* RESET */
body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background: url("./background.jpg") center center / cover no-repeat;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* BACKGROUND TINT */
#bgTint {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  background: transparent;
}

body.round-1 #bgTint {
  background: rgba(205, 127, 50, 0.22);
}

body.round-2 #bgTint {
  background: rgba(192, 192, 192, 0.22);
}

body.round-3 #bgTint {
  background: rgba(255, 215, 0, 0.18);
}

/* HOME SCREEN */
#home-screen {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.home-container {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  z-index: 1;
}

.home-container img {
  width: 100%;
  display: block;
  pointer-events: none;
}

.play-now-btn {
  position: absolute;
  left: 50%;
  bottom: 18%;
  transform: translateX(-50%);
  width: 300px;
  height: 80px;
  background: transparent;
  color: transparent;
  border: none;
  cursor: pointer;
  z-index: 10;
  pointer-events: auto;
}

/* INFO SECTION */
.info-section {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 30px 20px 50px;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

.info-box {
  background: rgba(255, 255, 255, 0.92);
  padding: 28px 22px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  color: #111;
  line-height: 1.7;
}

.info-box h2 {
  font-size: 2rem;
  margin-top: 0;
  margin-bottom: 20px;
  text-align: center;
}

.info-box h3 {
  font-size: 1.4rem;
  margin-top: 30px;
  margin-bottom: 12px;
}

.info-box p {
  margin-bottom: 16px;
  font-size: 1.05rem;
}

/* GAME CONTAINER */
#game {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
  color: black;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

/* TITLE */
h1 {
  margin-top: 10px;
  margin-bottom: 10px;
  font-size: 32px;
}

/* INFO TEXT */
#game p {
  font-size: 18px;
  margin: 8px 0;
}

/* CURRENT WORD TILE */
#currentWord {
  display: inline-block;
  min-width: 120px;
  padding: 12px 16px;
  background: #5a5a5a;
  color: white;
  font-size: 28px;
  font-weight: bold;
  letter-spacing: 4px;
  text-align: center;
  border-radius: 8px;
  line-height: 1.2;
  margin-bottom: 10px;
}

/* INPUT BOX */
#wordInput {
  width: 80%;
  max-width: 300px;
  padding: 12px;
  font-size: 18px;
  text-align: center;
  border: none;
  border-radius: 6px;
  margin-top: 15px;
  outline: none;
  box-sizing: border-box;
  text-transform: uppercase;
}

/* SUBMIT BUTTON */
#submitBtn {
  display: block;
  margin: 12px auto 0;
  padding: 12px 20px;
  font-size: 18px;
  background-color: #2ecc71;
  color: black;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s;
}

#submitBtn:hover {
  background-color: #27ae60;
}

/* MESSAGE TEXT */
#message {
  margin-top: 12px;
  font-size: 16px;
  min-height: 20px;
  font-weight: bold;
}

/* FINAL SCORE */
#finalScore {
  margin-top: 15px;
  font-size: 22px;
  font-weight: bold;
  color: white;
}

/* ROUND POPUP OVERLAY */
#roundPopup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.popup-box {
  background: #222;
  color: white;
  padding: 30px 25px;
  border-radius: 12px;
  text-align: center;
  width: 85%;
  max-width: 360px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.35);
}

#roundPopupText {
  margin: 0 0 15px;
  font-size: 28px;
}

#roundCountdown {
  font-size: 56px;
  font-weight: bold;
  color: #2ecc71;
}

/* END SCREEN OVERLAY */
#endScreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 3000;
}

.end-box {
  background: #222;
  color: white;
  padding: 30px 25px;
  border-radius: 12px;
  text-align: center;
  width: 85%;
  max-width: 380px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
}

.end-box button {
  display: block;
  width: 100%;
  margin: 10px 0;
  padding: 14px;
  font-size: 18px;
  font-weight: bold;
  background-color: #2ecc71;
  color: black;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s;
}

.end-box button:hover {
  background-color: #27ae60;
}

.end-box button:disabled {
  background-color: #999;
  color: #eee;
  cursor: not-allowed;
}

/* MOBILE */
@media (max-width: 600px) {
  h1 {
    font-size: 26px;
  }

  #game p {
    font-size: 16px;
  }

  #currentWord {
    font-size: 24px;
    letter-spacing: 4px;
    min-width: 100px;
  }

  #wordInput {
    font-size: 16px;
    width: 90%;
  }

  #submitBtn {
    font-size: 16px;
  }

  .play-now-btn {
    width: 220px;
    height: 60px;
  }

  .info-section {
    padding: 24px 16px 40px;
  }

  .info-box {
    padding: 22px 18px;
  }

  .info-box h2 {
    font-size: 1.6rem;
  }

  .info-box h3 {
    font-size: 1.2rem;
  }

  .info-box p {
    font-size: 1rem;
  }

  #roundPopupText {
    font-size: 24px;
  }

  #roundCountdown {
    font-size: 46px;
  }

  #finalScore {
    font-size: 20px;
  }

  .end-box button {
    font-size: 16px;
    padding: 12px;
  }
}
/* HOTSPOT CONTAINER */
/* HOTSPOTS */
.top-hotspots {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 10%;
  z-index: 20;
  pointer-events: none;
}

/* BASE HOTSPOTS */
.hotspot,
.contact-hotspot {
  position: absolute;
  background: transparent;
  border: none;
  display: block;
  z-index: 50;
  pointer-events: auto;
}

/* TOP ROW */
.hotspot.home {
  top: 0.5%;
  left: 0.5%;
  width: 11%;
  height: 8.5%;
}

.hotspot.leaderboard {
  top: 0.5%;
  left: 12%;
  width: 15%;
  height: 8.5%;
}

.hotspot.privacy {
  top: 0.5%;
  left: 27.5%;
  width: 22%;
  height: 8.5%;
}

.hotspot.terms {
  top: 0.5%;
  left: 49.5%;
  width: 19%;
  height: 8.5%;
}

.hotspot.about {
  top: 0.5%;
  left: 68.5%;
  width: 11%;
  height: 8.5%;
}

.hotspot.settings {
  top: 0.5%;
  left: 79.5%;
  width: 10%;
  height: 8.5%;
}

.hotspot.profile {
  top: 0.5%;
  left: 89.5%;
  width: 10%;
  height: 8.5%;
}

/* CONTACT */
.contact-hotspot {
  top: 95%;
  left: 73%;
  width: 24%;
  height: 7%;
}

.contact-label {
  position: absolute;
  bottom: 6px;
  right: 10px;
  color: white;
  font-size: 14px;
  font-weight: bold;
  text-shadow: 0 0 6px rgba(0,0,0,0.7);
  pointer-events: none;
}

.contact-inner {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,0,0,0.35);
  padding: 5px 10px;
  border-radius: 8px;
  color: white;
  font-size: 14px;
  font-weight: bold;
  text-shadow: 0 0 6px rgba(0,0,0,0.7);
  pointer-events: none;
}

.contact-icon {
  position: static;
  font-size: 16px;
}

.contact-text {
  font-size: 10px;
}

.brain-quote {
  margin-top: 25px;
  padding: 18px;
  background: linear-gradient(135deg, rgba(0,195,255,0.08), rgba(255,255,255,0.05));
  border-left: 4px solid #00c3ff;
  border-radius: 8px;
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #333;
}
/* ACCOUNT / LOGIN LINK UNDER PLAY BUTTON */
.account-links {
  position: absolute;
  left: 50%;
  bottom: 9%;
  transform: translateX(-50%);
  width: 76%;
  max-width: 340px;
  text-align: center;
  z-index: 60;
}

.account-links a {
  display: block;
  margin: 0 auto;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.78);
  color: white;
  text-decoration: none;
  font-size: 15px;
  font-weight: bold;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.8);
}

#loggedInBox {
  position: absolute;
  left: 50%;
  bottom: 15%;
  transform: translateX(-50%);
  width: 85%;
  text-align: center;
  color: white;
  font-size: 14px;
  font-weight: bold;
  text-shadow: 0 0 6px black;
  z-index: 61;
}

#gameLoggedInBox {
  margin: 8px auto 12px;
  color: black;
  font-size: 15px;
  font-weight: bold;
}