* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #0d1117;
  color: #e6edf3;
  font-family: 'Courier New', monospace;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.game-container {
  width: 100%;
  max-width: 640px;
  text-align: center;
}

h1 {
  font-size: 2rem;
  margin-bottom: 8px;
  color: #38bdf8;
}

.subtitle {
  color: #8b949e;
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.stats {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
}

.stat-box {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 8px;
  padding: 10px 20px;
  min-width: 80px;
}

.stat-box .label {
  display: block;
  font-size: 0.75rem;
  color: #8b949e;
  margin-bottom: 4px;
}

.stat-box span:last-child {
  font-size: 1.3rem;
  font-weight: bold;
  color: #38bdf8;
}

.text-display {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 8px;
  padding: 20px;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 16px;
  min-height: 80px;
  text-align: left;
}

.text-display .correct {
  color: #3fb950;
}

.text-display .incorrect {
  color: #f85149;
  text-decoration: underline;
}

.text-input {
  width: 100%;
  padding: 12px;
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 8px;
  color: #e6edf3;
  font-family: 'Courier New', monospace;
  font-size: 1rem;
  resize: none;
  height: 70px;
  margin-bottom: 16px;
}

.text-input:focus {
  outline: none;
  border-color: #38bdf8;
}

.start-btn, .restart-btn {
  background: #38bdf8;
  color: #0d1117;
  border: none;
  padding: 10px 28px;
  border-radius: 8px;
  font-family: 'Courier New', monospace;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: opacity 0.2s;
}

.start-btn:hover, .restart-btn:hover {
  opacity: 0.85;
}

.result {
  margin-top: 20px;
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 8px;
  padding: 24px;
}

.result h2 {
  color: #38bdf8;
  margin-bottom: 12px;
}

.result p {
  color: #e6edf3;
  margin-bottom: 16px;
}

.hidden {
  display: none;
}
