/* Go/No-Go — test-specific overrides */
:root { --test-accent: #059669; }
.t-intro-icon::before {
  content: 'traffic';
}


/* ── STIMULUS PANEL ── */
.gng-panel {
  border-radius: 22px;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  padding: 60px 24px 80px;
  position: relative;
}

.gng-panel[data-state] {
  background: var(--color-surface-container-low) !important;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.gng-panel[data-state="waiting"] {
  border-top: 1px solid var(--color-outline) !important;
  border-bottom: 1px solid var(--color-outline) !important;
  box-shadow: none !important;
}
.gng-panel[data-state="go"] {
  border-top: 2.5px solid #22c55e !important;
  border-bottom: 2.5px solid #22c55e !important;
  box-shadow: inset 0 0 40px rgba(34, 197, 94, 0.15) !important;
}
.gng-panel[data-state="nogo"] {
  border-top: 2.5px solid #ef4444 !important;
  border-bottom: 2.5px solid #ef4444 !important;
  box-shadow: inset 0 0 40px rgba(239, 68, 68, 0.15) !important;
}
.gng-panel[data-state="hit"] {
  border-top: 2.5px solid #10b981 !important;
  border-bottom: 2.5px solid #10b981 !important;
  box-shadow: inset 0 0 40px rgba(16, 185, 129, 0.2) !important;
  cursor: default;
}
.gng-panel[data-state="correct-hold"] {
  border-top: 2.5px solid #10b981 !important;
  border-bottom: 2.5px solid #10b981 !important;
  box-shadow: inset 0 0 40px rgba(16, 185, 129, 0.2) !important;
  cursor: default;
}
.gng-panel[data-state="miss"] {
  border-top: 2.5px solid #ef4444 !important;
  border-bottom: 2.5px solid #ef4444 !important;
  box-shadow: inset 0 0 40px rgba(239, 68, 68, 0.2) !important;
  cursor: default;
}
.gng-panel[data-state="false-alarm"] {
  border-top: 2.5px solid #f59e0b !important;
  border-bottom: 2.5px solid #f59e0b !important;
  box-shadow: inset 0 0 40px rgba(245, 158, 11, 0.2) !important;
  cursor: default;
}
.gng-shape-area {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
}

/* ── SHAPES ── */
.gng-shape {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  animation: shapePop 0.2s cubic-bezier(0.34,1.56,0.64,1) both;
}

.gng-go {
  background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 32px rgba(34, 197, 94, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.3);
}

.gng-nogo {
  background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(239, 68, 68, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.3);
}

@keyframes shapePop {
  from { transform: scale(0.4); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* ── CROSSHAIR ── */
.gng-plus {
  font-family: 'Manrope', sans-serif;
  font-size: 48px;
  font-weight: 300;
  color: var(--color-outline-variant);
  line-height: 1;
}

.gng-status-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

/* ── STATUS ── */
.gng-status {
  font-family: 'Manrope', sans-serif;
  font-size: 36px;
  font-weight: 900;
  color: var(--text);
  line-height: 1;
  pointer-events: none;
}

.gng-panel[data-state="go"] .gng-status           { color: #10b981; }
.gng-panel[data-state="nogo"] .gng-status          { color: #ef4444; }
.gng-panel[data-state="hit"] .gng-status           { color: #10b981; }
.gng-panel[data-state="correct-hold"] .gng-status  { color: #10b981; }
.gng-panel[data-state="miss"] .gng-status          { color: #ef4444; }
.gng-panel[data-state="false-alarm"] .gng-status   { color: #f59e0b; }

.gng-sub {
  font-family: 'Lexend', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  pointer-events: none;
}

/* ── LEGEND ── */
.gng-legend {
  position: absolute;
  bottom: 28px;
  left: 0;
  right: 0;
  display: flex;
  gap: 24px;
  justify-content: center;
  padding: 0 4px;
}

.gng-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Lexend', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.gng-legend-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.gng-legend-dot.go { background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%); }
.gng-legend-dot.nogo { background: linear-gradient(135deg, #f87171 0%, #ef4444 100%); border-radius: 4px; }

/* ── SCORE RANGE TABLE (reuse) ── */
/* ── SCORE RANGE TABLE ── */
.rt-range-table {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.rt-range-row {
  display: grid;
  grid-template-columns: 10px 100px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  font-family: 'Lexend', sans-serif;
  font-size: 13px;
  opacity: 0.55;
  background: var(--color-surface-container-low) !important;
  border: 1.5px solid var(--color-outline) !important;
  transform: scale(0.98);
  transition: all 0.2s ease;
}

.rt-range-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  opacity: 0.5;
}

.rt-range-label {
  font-weight: 700;
  color: var(--text);
}

.rt-range-val {
  color: var(--text-muted);
}

.rt-range-pct {
  font-weight: 700;
  text-align: right;
  color: var(--text-muted) !important;
}

/* Active Highlighted State */
.rt-range-row.active {
  opacity: 1 !important;
  transform: scale(1.025) !important;
  border-width: 1.5px !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08) !important;
  font-weight: 700 !important;
}

.rt-range-row.active .rt-range-dot {
  opacity: 1 !important;
  transform: scale(1.3) !important;
}

/* Elite Active (Green) */
.rt-range-row.active.elite {
  background: color-mix(in srgb, #10b981 12%, var(--color-surface)) !important;
  border-color: #10b981 !important;
}
.rt-range-row.active.elite .rt-range-dot {
  background: #10b981 !important;
}
.rt-range-row.active.elite .rt-range-pct {
  color: #10b981 !important;
}

/* Fast Active (Blue) */
.rt-range-row.active.fast {
  background: color-mix(in srgb, #0ea5e9 12%, var(--color-surface)) !important;
  border-color: #0ea5e9 !important;
}
.rt-range-row.active.fast .rt-range-dot {
  background: #0ea5e9 !important;
}
.rt-range-row.active.fast .rt-range-pct {
  color: #0ea5e9 !important;
}

/* Avg Active (Orange) */
.rt-range-row.active.avg {
  background: color-mix(in srgb, #f5a623 12%, var(--color-surface)) !important;
  border-color: #f5a623 !important;
}
.rt-range-row.active.avg .rt-range-dot {
  background: #f5a623 !important;
}
.rt-range-row.active.avg .rt-range-pct {
  color: #f5a623 !important;
}

/* Slow Active (Red) */
.rt-range-row.active.slow {
  background: color-mix(in srgb, #ef4444 12%, var(--color-surface)) !important;
  border-color: #ef4444 !important;
}
.rt-range-row.active.slow .rt-range-dot {
  background: #ef4444 !important;
}
.rt-range-row.active.slow .rt-range-pct {
  color: #ef4444 !important;
}

/* Dark Mode Overrides */
html.dark .rt-range-row.active.elite {
  background: color-mix(in srgb, #2ecc71 15%, var(--color-surface)) !important;
  border-color: #2ecc71 !important;
}
html.dark .rt-range-row.active.elite .rt-range-dot {
  background: #2ecc71 !important;
}
html.dark .rt-range-row.active.elite .rt-range-pct {
  color: #2ecc71 !important;
}

html.dark .rt-range-row.active.fast {
  background: color-mix(in srgb, #0ea5e9 15%, var(--color-surface)) !important;
  border-color: #0ea5e9 !important;
}
html.dark .rt-range-row.active.fast .rt-range-dot {
  background: #0ea5e9 !important;
}
html.dark .rt-range-row.active.fast .rt-range-pct {
  color: #0ea5e9 !important;
}

html.dark .rt-range-row.active.avg {
  background: color-mix(in srgb, #f5a623 15%, var(--color-surface)) !important;
  border-color: #f5a623 !important;
}
html.dark .rt-range-row.active.avg .rt-range-dot {
  background: #f5a623 !important;
}
html.dark .rt-range-row.active.avg .rt-range-pct {
  color: #f5a623 !important;
}

html.dark .rt-range-row.active.slow {
  background: color-mix(in srgb, #e74c3c 15%, var(--color-surface)) !important;
  border-color: #e74c3c !important;
}
html.dark .rt-range-row.active.slow .rt-range-dot {
  background: #e74c3c !important;
}
html.dark .rt-range-row.active.slow .rt-range-pct {
  color: #e74c3c !important;
}

@media (max-width: 480px) {
  .gng-shape { width: 100px; height: 100px; }
  .gng-nogo { border-radius: 18px; }
  .gng-status { font-size: 28px; }
  .gng-panel { min-height: 320px; padding: 40px 16px 60px; }
  .gng-shape-area { min-height: 110px; }
  .gng-legend { bottom: 16px; }
}
