/* Standard Reset */
*, *::before, *::after {
    box-sizing: border-box;
}

:root {
  --teal-main: #008080;
  --gold-or: #ffdd57;
  --bg-dark: #111;
}

body {
  margin: 0;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: Inter, sans-serif;
  background: #000;
  color: #fff;
}

#container {
  width: 560px;
  background: var(--bg-dark);
  border: 1px solid #333;
  padding: 40px;
  border-radius: 16px;
}

.hidden { display: none !important; }

/* Buttons */
.btn {
  width: 100%;
  padding: 14px;
  margin-top: 10px;
  background: #000;
  color: #fff;
  border: 1px solid #fff;
  cursor: pointer;
}

.btn:hover { background: #fff; color: #000; }

input, select {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  margin-bottom: 10px;
  background: #000;
  color: #fff;
  border: 1px solid #444;
}

/* Choice Section */
.choice {
  display: flex;
  gap: 40px;
  margin-top: 20px;
  justify-content: center;
}

.btn-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.choice button {
  width: 100%;
  padding: 18px;
  border: 1px solid var(--teal-main);
  background: #000;
  color: var(--teal-main);
  cursor: pointer;
  font-weight: bold;
}

.choice button:hover {
  background: var(--teal-main);
  color: #000;
}

/* Mechanical Keyboard Key Styling */
.input-hint {
  margin-top: 15px;
  text-align: center;
}

.or-text {
  color: var(--gold-or);
  font-weight: 800;
  font-size: 0.75rem;
  display: block;
  margin-bottom: 5px;
}

.kbd-key {
  background: #2a2a2a;
  color: var(--teal-main);
  padding: 6px 14px;
  border-radius: 4px;
  font-family: monospace;
  font-weight: bold;
  border: 1px solid #444;
  border-bottom: 4px solid #000;
  display: inline-block;
}

/* Small inline version for instructions */
.kbd-key-inline {
    background: #2a2a2a;
    color: var(--teal-main);
    padding: 2px 8px;
    border-radius: 3px;
    font-family: monospace;
    font-weight: bold;
    border: 1px solid #444;
    border-bottom: 2px solid #000;
    margin: 0 4px;
}

/* Modal Overlay */
#modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-card {
  background: #111;
  border: 1px solid var(--teal-main);
  padding: 40px;
  border-radius: 12px;
  text-align: center;
  max-width: 400px;
}

#modal-btn {
  background: var(--teal-main);
  color: #000;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  font-weight: bold;
  margin-top: 20px;
}

/* Trial Counter Styling */
#fix {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--teal-main);
    font-size: 2.5rem;
    font-weight: 600;
    margin: 60px 0;
    min-height: 60px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Practice Stage Styling */
.practice-instructions {
    background: #1a1a1a;
    border: 1px solid #333;
    border-left: 4px solid var(--teal-main);
    padding: 20px;
    margin-bottom: 25px;
    text-align: left;
    font-size: 1rem;
    line-height: 1.6;
    color: #ccc;
    border-radius: 8px;
}

.practice-instructions p { margin: 8px 0; }
.practice-instructions b { color: var(--teal-main); }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }