/* ===== TYPING REACTION TIME TEST (Enhanced UI) ===== */
.typing-reaction {
  text-align: center;
  padding: 80px 20px;
  background: radial-gradient(circle at top center, #162447 0%, #0a1128 40%, #000814 100%);
  padding-top: 100px;
  box-shadow: 0 0 45px rgba(0, 0, 0, 0.6);
}

.typing-reaction .section-title {
  color: #ffffff;
  font-size: 2.7rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.typing-reaction .section-subtitle {
  color: #94a3b8;
  font-size: 1.2rem;
  margin-bottom: 25px;
}

/* Tester Card Glass Style */
.tester-box {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 35px;
  max-width: 600px;
  width: 100%;
  margin-inline: auto;
  box-shadow: 0 0 35px rgba(0,0,0,0.35);
  animation: fadeIn .5s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Reaction Text */
.reaction-display {
  background: rgba(255,255,255,0.1);
  padding: 30px;
  border-radius: 15px;
  font-size: 1.7rem;
  font-weight: 800;
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.15);
  margin-bottom: 20px;
  transition: .3s ease-in-out;
}

.reaction-display.ready {
  color: #fbbf24; /* Yellow */
  text-shadow: 0 0 12px rgba(251,191,36,0.8);
}

.reaction-display.go {
  color: #22c55e; /* Green */
  text-shadow: 0 0 12px rgba(34,197,94,0.9);
}

/* Buttons */
.btn {
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  border: none;
  color: #ffffff;
  padding: 12px 32px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  border-radius: 50px;
  margin: 12px;
  transition: 0.3s ease;
}

.btn:hover {
  transform: scale(1.08);
  box-shadow: 0 0 20px rgba(37,99,235,0.8);
}

.result {
  margin-top: 20px;
  font-size: 1.35rem;
  font-weight: 700;
  color: #f3f4f6;
}
