/* reactiontest/audio/audio.css — audio reaction test UI + article.
   Loaded after tailwind + /css/easytest.css + /css/clean-test.css. */

.ra-warning { background: #FFF1EF; border: 1px solid #FFD3CD; border-radius: 14px; padding: 12px 16px; margin-bottom: 16px; color: #3D3550; }
.ra-warning strong { color: #1F1733; }
.ra-latency { font-size: .9rem; color: var(--et-mute, #6B6480); min-height: 1.3em; margin: 8px 0 0; }
.ra-latency.is-high { color: #B4362A; font-weight: 700; }
.ra-steps { list-style: disc; padding-left: 1.25rem; color: #3D3550; }
.ra-steps li { margin-bottom: .35rem; }

.ra-btn { border-radius: 12px; padding: 10px 18px; font-weight: 800; cursor: pointer; border: 1px solid transparent; }
.ra-btn-primary { background: var(--et-purple, #8257E6); color: #fff; }
.ra-btn-primary:hover { background: var(--et-purple-dark, #6C3FD4); }
.ra-btn-ghost { background: #fff; color: var(--et-purple, #8257E6); border-color: #E7E0F5; }
.ra-btn:focus-visible, .ra-pad:focus-visible { outline: 3px solid #A98BF0; outline-offset: 2px; }

/* The pad deliberately does NOT change when the beep plays: a visual cue would turn this into a visual test. */
.ra-pad {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 280px; padding: 20px; border-radius: 18px; text-align: center; cursor: pointer;
  user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  background: #2E2448; color: #fff; border: 2px solid #2E2448;
}
.ra-pad[data-tone="hit"] { background: #1F6F4A; border-color: #1F6F4A; }
.ra-pad[data-tone="early"] { background: #B4562A; border-color: #B4562A; }
.ra-pad-title { font-size: 1.9rem; font-weight: 800; line-height: 1.2; font-variant-numeric: tabular-nums; }
.ra-pad-sub { font-size: 1rem; opacity: .9; max-width: 36ch; }

.ra-hud { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin: 12px 0 4px; font-size: .95rem; }
.ra-hud span { color: var(--et-mute, #6B6480); }
.ra-hud strong { font-variant-numeric: tabular-nums; }

.ra-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 16px 0; }
.ra-stat { background: #FAF8FE; border: 1px solid #EEE8FA; border-radius: 14px; padding: 12px; text-align: center; }
.ra-stat-label { font-size: .8rem; color: var(--et-mute, #6B6480); }
.ra-stat-value { font-size: 1.4rem; font-weight: 800; color: var(--et-purple, #8257E6); font-variant-numeric: tabular-nums; }
.ra-rounds li { display: flex; justify-content: space-between; padding: 6px 4px; border-bottom: 1px solid #EEE8FA; }
.ra-note { font-size: .9rem; color: var(--et-mute, #6B6480); }
.ra-result a, .ra-article a { color: var(--et-purple-dark, #6C3FD4); text-decoration: underline; overflow-wrap: anywhere; }

.ra-article h2 { font-size: 1.5rem; font-weight: 800; margin: 2rem 0 .75rem; }
.ra-article h3 { font-size: 1.1rem; font-weight: 800; margin: 1.25rem 0 .4rem; }
.ra-article p, .ra-article li { color: #3D3550; line-height: 1.65; }
.ra-article p { margin-bottom: .8rem; }
.ra-article ul { list-style: disc; padding-left: 1.25rem; margin-bottom: 1rem; }
.ra-article li { margin-bottom: .4rem; }
.ra-article code { font-size: .88em; background: #F3EFFB; padding: 1px 5px; border-radius: 6px; overflow-wrap: anywhere; }
.ra-table-wrap { overflow-x: auto; margin: .5rem 0 1rem; }
.ra-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.ra-table th, .ra-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #EEE8FA; vertical-align: top; }
.ra-faq dt { font-weight: 800; color: var(--et-ink, #1F1733); margin-top: 1rem; }
.ra-faq dd { margin: .25rem 0 0; color: #3D3550; line-height: 1.6; }
.ra-sources li { overflow-wrap: anywhere; font-size: .92rem; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.hidden { display: none !important; }

@media (max-width: 560px) {
  .ra-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ra-pad { min-height: 240px; }
  .ra-pad-title { font-size: 1.5rem; }
}
