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

.game-box {
  position: relative;
  width: 320px;
  height: 420px; 
  background: black;
  overflow: hidden;
  border-radius: 12px;
  padding: 10px;
  box-sizing: border-box;
}

.container {
  position: relative;
  margin: 0 auto;
  padding: 0.5em;
  width: 100%;
  height: auto;
}

.container h3 {
  font-size: 1em;   /* smaller header */
  text-align: center;
  margin-bottom: 0.5em;
}

.container #question {
  background-color: #eeedf1;
  font-size: 1.2em;  
  font-weight: 600;
  color: #23234c;
  text-align: center;
  padding: 0.6em;
  border-radius: 6px;
  margin: 0.8em 0;
}

.container input {
  font-size: 0.9em;
  width: 2em;
  border: none;
  background-color: transparent;
  border-bottom: 2px solid #23234c;
  margin: 0 0.25em;
  text-align: center;
}
.container input:focus {
  border-color: #49796B;
  outline: none;
}

#error-msg {
  text-align: center;
  font-size: 0.85em;
  margin-top: 0.5em;
  background-color: #ffdde0;
  color: #d62f2f;
  padding: 0.3em;
  border-radius: 4px;
}

#timer, #score {
  font-size: 0.9em;
  text-align: center;
  margin: 0.4em 0;
}

.controls-container {
  position: relative; /* stay inside box */
  background-color: #49796B;
  padding: 0.8em;
  margin-top: 0.6em;
  border-radius: 8px;
  text-align: center;
}

#start-btn {
  font-size: 1em;
  background-color: #ffffff;
  color: #23234c;
  border: none;
  cursor: pointer;
  padding: 0.6em 1.2em;
  border-radius: 6px;
  transition: background 0.2s;
}
#start-btn:hover {
  background-color: #ddd;
}

#result {
  font-size: 1em;
  margin-bottom: 0.5em;
  color: #23234c;
}

.logo-box {
  position: relative;
  margin-top: 0.5em;
  text-align: center;
  height: 40px;
}
.logo-box img {
  height:  100px;
  width: 150px;
}

/* ================================ */
/* 📱 Mobile-Friendly Adjustments */
/* ================================ */
@media (max-width: 500px) {
  .game-box {
    width: 95%;         
    height: auto;        
    padding: 8px;
  }

  .container h3 {
    font-size: 0.9em;
  }

  .container #question {
    font-size: 1em;
    padding: 0.5em;
  }

  .container input {
    font-size: 0.85em;
    width: 1.8em;
  }

  #timer, #score {
    font-size: 0.85em;
  }

  #start-btn {
    font-size: 0.9em;
    padding: 0.5em 1em;
  }

  #result {
    font-size: 0.9em;
  }

  .logo-box {
    height: 30px;
  }
}
