/* Click / CPS speed-test — tool-specific UI. Layout chrome comes from shared.css. */

.cps-stage { max-width: 720px; margin: 0 auto; }

/* ── Duration pills ── */
.dur-row {
  display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: center; margin: 0 0 16px;
}
.dur-label {
  width: 100%; text-align: center; font-size: .8rem; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px;
}
.dur-btn {
  font: inherit; font-weight: 600; font-size: .9rem;
  padding: 8px 16px; border-radius: 999px; cursor: pointer;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border); transition: all .15s ease;
}
.dur-btn:hover { border-color: var(--accent-light); }
.dur-btn.active {
  background: var(--accent); color: #fff; border-color: var(--accent);
}

/* ── Click pad ── */
.cps-pad {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; min-height: 340px; padding: 24px;
  border: 2px solid var(--border); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface), var(--surface2));
  cursor: pointer; user-select: none; -webkit-user-select: none;
  text-align: center; transition: border-color .15s ease, box-shadow .15s ease;
  outline: none;
}
.cps-pad:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-bg); }
[data-cps].is-running .cps-pad { border-color: var(--accent); background: linear-gradient(180deg, var(--accent-bg), var(--surface)); }
[data-cps].is-done .cps-pad { border-color: var(--teal); }

.cps-big {
  font-family: 'Orbitron', var(--mono); font-weight: 900;
  font-size: clamp(3.5rem, 16vw, 6.5rem); line-height: 1; color: var(--text);
  font-variant-numeric: tabular-nums;
}
[data-cps].is-done .cps-big { color: var(--teal-dark); }
.cps-sub { font-size: 1.05rem; font-weight: 600; color: var(--muted); }
[data-cps].is-running .cps-sub { color: var(--accent-fg); }

/* progress bar pinned to the bottom edge of the pad */
.cps-bar-wrap {
  position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: var(--surface2);
}
.cps-bar { height: 100%; width: 100%; background: var(--accent); transition: width .06s linear; }

/* ── Result card ── */
.cps-result {
  margin-top: 18px; padding: 20px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.cps-result-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; margin-bottom: 14px;
}
.cps-result-head h3 { font-size: 1.15rem; margin: 0; }
.cps-rank {
  font-family: 'Orbitron', sans-serif; font-weight: 700; font-size: 1.1rem; color: var(--accent);
}
.cps-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cps-stat {
  background: var(--surface2); border-radius: var(--radius); padding: 12px 8px; text-align: center;
}
.cps-stat .v { font-family: 'Orbitron', var(--mono); font-weight: 700; font-size: 1.4rem; color: var(--text); font-variant-numeric: tabular-nums; }
.cps-stat .k { font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.cps-best { margin-top: 12px; text-align: center; font-size: .9rem; color: var(--muted); }
.cps-best strong { color: var(--teal-dark); }
.cps-result .btn-row { justify-content: center; margin-top: 14px; }


/* ── In-tool mode switcher ── */
.cps-modes {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 18px 0 0;
}
.cps-mode-link {
  font-size: .85rem; font-weight: 600; padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); color: var(--muted);
}
.cps-mode-link:hover { border-color: var(--accent-light); color: var(--accent); text-decoration: none; }
.cps-mode-link[aria-current="page"] { background: var(--accent-bg); color: var(--accent-fg); border-color: var(--accent-light); }
