* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  color: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  align-items: center;
}
nav {
  display:flex;
  justify-content:center;
  align-items:center;
  background-color:#06141b;
  padding:10px 20px;
  width:100%;
}
.brand { font-size:1.5rem; font-weight:bold; }
.brand .blue { color:#00bfff; }
.brand .white { color:#fff; }
.brand .yellow { color:#ffdd00; }

.container {
  flex:1;
  display:flex;
  flex-direction:column;
  align-items:center;
  padding:20px;
}
h1 { margin:20px 0; font-size:2rem; }

#rosco {
  position: relative;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  margin: 20px 0;
  transition: opacity 0.5s;
}
.letter {
  position: absolute;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  border-radius: 50%;
  background: rgba(0,0,0,0.3);
  border: 2px solid #00bfff;
  color: #fff;
  font-weight: bold;
  transition: 0.3s;
}
.letter.correct { background: #00ff99; color:#06141b; }
.letter.wrong { background: #ff4444; }
.letter.passed { background: #ffdd00; color:#06141b; }

#question {
  font-size: 1.2rem;
  margin: 15px 0;
  text-align: center;
  max-width: 500px;
}
#answerContainer { margin-top: 10px; }
#answerInput {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #00bfff;
  background-color: #06141b;
  color: #fff;
  width: 200px;
}
button {
  padding: 8px 15px;
  margin-left: 10px;
  background-color: #00bfff;
  border: none;
  color: #06141b;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}
button:hover { transform: scale(1.05); }
#message { margin-top: 10px; min-height: 24px; font-size: 1.1rem; }

#configModal, #endModal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
}
#configContent, #endContent {
  background-color: #06141b;
  padding: 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  color: #fff;
}
.time-btn, #startGameBtn, #restartBtn {
  padding: 8px 15px;
  margin: 5px;
  border: 1px solid #00bfff;
  background-color: #06141b;
  color: #00bfff;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s;
}
.time-btn.selected { background-color: #00bfff; color: #06141b; }
#startGameBtn:disabled { opacity:0.5; cursor:not-allowed; }
.time-btn:hover, #startGameBtn:hover, #restartBtn:hover { background-color: #00bfff; color:#06141b; }

footer {
  background-color:#06141b;
  padding:15px 20px;
  color:#fff;
  font-size:0.9rem;
  width:100%;
  text-align:center;
}

#backBtn {
  align-self: flex-start;
  margin-bottom: 10px;
  padding: 5px 10px;
  background-color: #06141b;
  border: 1px solid #00bfff;
  color: #00bfff;
  cursor: pointer;
  border-radius: 5px;
}

#backBtn:hover {
  background-color: #00bfff;
  color: #06141b;
}
