/* cps-test/cps.css — click speed test pad, controls, results and chart.
   Loaded after tailwind + /css/easytest.css + /css/clean-test.css. */

.cps-controls { display: grid; gap: 12px; margin-bottom: 16px; }
.cps-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cps-group-label { font-size: .85rem; font-weight: 700; color: var(--et-mute, #6B6480); min-width: 72px; }
.cps-chip {
  border: 1px solid #E7E0F5; background: #fff; color: var(--et-ink, #1F1733);
  border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: .9rem; cursor: pointer;
  min-height: 36px;
}
.cps-chip[aria-pressed="true"] { background: var(--et-purple, #8257E6); border-color: var(--et-purple, #8257E6); color: #fff; }
.cps-chip:focus-visible, .cps-pad:focus-visible, .cps-btn:focus-visible { outline: 3px solid #A98BF0; outline-offset: 2px; }

.cps-pad {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 260px; 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: #F3EFFB; border: 2px solid #E7E0F5; color: var(--et-ink, #1F1733);
  transition: background-color .12s ease;
}
.cps-pad[data-tone="running"] { background: #8257E6; border-color: #6C3FD4; color: #fff; }
.cps-pad[data-tone="done"] { background: #E5F6EC; border-color: #B9E5C9; }
.cps-pad-title { font-size: 1.6rem; font-weight: 800; line-height: 1.2; }
.cps-pad-sub { font-size: .95rem; opacity: .85; max-width: 34ch; }

.cps-hud { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.cps-hud div { background: #FAF8FE; border: 1px solid #EEE8FA; border-radius: 12px; padding: 8px 10px; text-align: center; }
.cps-hud dt { font-size: .75rem; color: var(--et-mute, #6B6480); }
.cps-hud dd { font-size: 1.25rem; font-weight: 800; font-variant-numeric: tabular-nums; margin: 0; }

.cps-best { font-size: .9rem; color: var(--et-mute, #6B6480); margin-top: 10px; min-height: 1.3em; }
.cps-btn { border-radius: 12px; padding: 8px 16px; font-weight: 700; border: 1px solid #E7E0F5; background: #fff; color: var(--et-purple, #8257E6); cursor: pointer; }

.cps-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 12px 0; }
.cps-stat { background: #FAF8FE; border: 1px solid #EEE8FA; border-radius: 14px; padding: 12px; text-align: center; }
.cps-stat-label { font-size: .8rem; color: var(--et-mute, #6B6480); }
.cps-stat-value { font-size: 1.6rem; font-weight: 800; color: var(--et-purple, #8257E6); font-variant-numeric: tabular-nums; }

.cps-chart { width: 100%; height: auto; display: block; }
.cps-bar { fill: #8257E6; }
.cps-grid { stroke: #EEE8FA; stroke-width: 1; }
.cps-axis { fill: #6B6480; font-size: 12px; font-family: inherit; }
.cps-value { fill: #1F1733; font-size: 12px; font-weight: 700; font-family: inherit; }

.cps-article h2 { font-size: 1.5rem; font-weight: 800; margin: 2rem 0 .75rem; }
.cps-article h3 { font-size: 1.1rem; font-weight: 800; margin: 1.25rem 0 .4rem; }
.cps-article p, .cps-article li { color: #3D3550; line-height: 1.65; }
.cps-article p { margin-bottom: .8rem; }
.cps-article ul { list-style: disc; padding-left: 1.25rem; margin-bottom: 1rem; }
.cps-article li { margin-bottom: .4rem; }
.cps-article a { color: var(--et-purple-dark, #6C3FD4); text-decoration: underline; overflow-wrap: anywhere; }
.cps-caution { background: #FFF1EF; border: 1px solid #FFD3CD; border-radius: 14px; padding: 12px 16px; margin: 1rem 0; }
.cps-faq dt { font-weight: 800; color: var(--et-ink, #1F1733); margin-top: 1rem; }
.cps-faq dd { margin: .25rem 0 0; color: #3D3550; line-height: 1.6; }
.cps-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: 480px) {
  .cps-pad { min-height: 220px; }
  .cps-pad-title { font-size: 1.35rem; }
  .cps-stat-value { font-size: 1.3rem; }
  .cps-group-label { min-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .cps-pad { transition: none; }
}
