:root{
  --bg:#0f1724;
  --card:#111827;
  --accent:#7dd3fc;
  --muted:#9ca3af;
}
*{box-sizing:border-box}
body{
  font-family:Inter, system-ui, Arial;
  background:linear-gradient(180deg,#071129 0%, #071a2a 100%);
  color:#e6f2ff;
  margin:0;
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center
}
.container{width:min(900px,96%); padding:2rem}
h1{text-align:center; margin:0 0 1rem}
.test-area{
  background:rgba(255,255,255,0.03);
  padding:1.25rem;
  border-radius:12px;
  box-shadow:0 6px 24px rgba(2,6,23,0.6)
}
.text-display{
  background:rgba(0,0,0,0.3);
  padding:1rem;
  border-radius:8px;
  min-height:100px;
  margin-bottom:1rem;
  line-height:1.6
}
.text-display .char{padding:0 1px}
.text-display .correct{color:var(--accent)}
.text-display .wrong{background:#7f1d1d; color:#fff}
.text-display .current{border-left:2px solid #fff}
.input{
  width:100%;
  padding:0.75rem;
  border-radius:8px;
  border:1px solid rgba(255,255,255,0.06);
  margin-top:0.75rem;
  background:transparent;
  color:inherit
}
.controls{display:flex; gap:0.5rem; align-items:center; margin-top:0.75rem}
.controls button, .controls select{
  padding:0.5rem 0.75rem;
  border-radius:8px;
  border:none;
  background:rgba(255,255,255,0.04);
  color:inherit
}
.stats{display:flex; gap:1rem; margin-top:0.75rem; flex-wrap:wrap}
.results{
  margin-top:1rem;
  background:rgba(255,255,255,0.02);
  padding:0.75rem;
  border-radius:8px
}
.hidden{display:none}
.footer{text-align:center; margin-top:1rem; color:var(--muted)}
