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

body {
  background-color: #0a1628;
  overflow: hidden;
}

#title {
  position: fixed;
  top: 2rem;
  left: 0;
  right: 0;
  text-align: center;
  font-family: "Times New Roman", Times, serif;
  font-size: 1.5rem;
  font-weight: normal;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.05em;
}

#timer {
  position: fixed;
  top: 5rem;
  left: 0;
  right: 0;
  text-align: center;
  font-family: "Times New Roman", Times, serif;
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.5);
  font-variant-numeric: tabular-nums;
}

#reader {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  width: 100vw;
}

.word-display {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 90vw;
  font-family: "Times New Roman", Times, serif;
  font-size: clamp(2.5rem, 8vw, 5rem);
  color: white;
  user-select: none;
}

.part-before {
  text-align: right;
}

.part-focus {
  color: #e63946;
}

.part-after {
  text-align: left;
}

#hud {
  position: fixed;
  bottom: 2rem;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  font-family: "Times New Roman", Times, serif;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1rem;
}

#start-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.7);
  font-family: "Times New Roman", Times, serif;
  font-size: 1rem;
  padding: 0.4rem 1.2rem;
  cursor: pointer;
  border-radius: 4px;
  transition: border-color 0.2s, color 0.2s;
}

#start-btn:hover {
  border-color: rgba(255, 255, 255, 0.6);
  color: white;
}

#feedback-btn {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.2s;
}

#feedback-btn:hover {
  color: white;
}
