/* Mouse & Click Tester - tool-specific styles (scoped with the mt- prefix) */

.mt-card { padding: 28px 32px 34px; }

.mt-title-bar { text-align: center; margin-bottom: 6px; }
.mt-title-bar h1 { font-size: 1.6em; font-weight: 800; margin: 0; color: #23272f; }

.mt-intro { text-align: center; color: #6b7280; font-size: .95em; line-height: 1.6; max-width: 720px; margin: 8px auto 26px; }

/* ===== Shared panel shell ===== */
.mt-panel { background: #f7f8fa; border: 1px solid #eee; border-radius: 14px; padding: 22px 24px; margin-bottom: 20px; }
.mt-panel:last-child { margin-bottom: 0; }

.mt-panel-title { display: flex; align-items: center; gap: 10px; font-size: 1.15em; font-weight: 700; margin: 0 0 6px; color: #23272f; }
.mt-panel-title i { color: var(--site-accent); }

.mt-panel-desc { font-size: .88em; color: #6b7280; margin: 0 0 16px; line-height: 1.55; }

/* ===== Stat row (shared by double-click / CPS / wheel panels) ===== */
.mt-stats-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.mt-stat { flex: 1 1 120px; background: #fff; border: 1px solid #e6e8ec; border-radius: 10px; padding: 12px 10px; text-align: center; }
.mt-stat-value { display: block; font-size: 1.5em; font-weight: 800; color: var(--site-dark); font-variant-numeric: tabular-nums; }
.mt-stat-label { display: block; font-size: .76em; color: #6b7280; margin-top: 2px; text-transform: uppercase; letter-spacing: .03em; }

.mt-reset-btn { margin-top: 16px; display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #d8dbe2; color: #3d4148; font-weight: 600; font-size: .86em; padding: 9px 16px; border-radius: 8px; cursor: pointer; transition: background .2s ease, border-color .2s ease; }
.mt-reset-btn:hover { background: #f0f1f4; border-color: #c4c8d1; }

/* ===== Button test ===== */
.mt-btn-area { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; background: #fff; border: 2px dashed #d8dbe2; border-radius: 12px; padding: 28px 16px; user-select: none; outline: none; }
.mt-btn-area:focus-visible { border-color: var(--site-light); }

.mt-btn-box { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: #f0f1f4; border: 2px solid #e2e4e9; border-radius: 12px; padding: 22px 10px; font-weight: 700; color: #6b7280; transition: transform .08s ease, background .2s ease, border-color .2s ease, color .2s ease; }
.mt-btn-box i { font-size: 1.6em; }
.mt-btn-box.mt-active { transform: scale(.94); }
.mt-btn-box.mt-hit { background: linear-gradient(135deg, var(--site-dark), var(--site-light)); border-color: var(--site-dark); color: #fff; }
.mt-btn-box.mt-hit.mt-active { background: linear-gradient(135deg, var(--site-dark-2), var(--site-light)); }

.mt-btn-log { margin-top: 14px; text-align: center; font-size: .88em; font-weight: 600; color: #3d4148; background: #fff; border: 1px solid #e6e8ec; border-radius: 8px; padding: 10px 14px; min-height: 1.4em; }

/* ===== Double-click test ===== */
.mt-dbl-area { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: #fff; border: 2px dashed #d8dbe2; border-radius: 12px; padding: 40px 16px; text-align: center; font-weight: 700; color: #6b7280; cursor: pointer; user-select: none; outline: none; transition: border-color .2s ease, background .12s ease; }
.mt-dbl-area i { font-size: 1.8em; color: var(--site-accent); }
.mt-dbl-area:hover, .mt-dbl-area:focus-visible { border-color: var(--site-light); }
.mt-dbl-area:active { background: #f0f1f4; }

.mt-dbl-verdict { margin-top: 14px; padding: 12px 16px; border-radius: 8px; font-size: .88em; line-height: 1.55; font-weight: 600; }
.mt-dbl-verdict.mt-ok { background: #eafbf3; border: 1px solid #c9f0dd; color: #0e6b46; }
.mt-dbl-verdict.mt-warn { background: #fff4e5; border: 1px solid #fadfb0; color: #92400e; }

/* ===== CPS test ===== */
.mt-cps-controls { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.mt-cps-duration { display: flex; gap: 8px; background: #fff; border: 1px solid #e2e4e9; border-radius: 10px; padding: 4px; }
.mt-dur-btn { border: none; background: transparent; padding: 8px 16px; border-radius: 7px; font-size: .86em; font-weight: 700; color: #6b7280; cursor: pointer; transition: background .2s ease, color .2s ease; }
.mt-dur-btn.active { background: var(--site-dark); color: #fff; }
.mt-dur-btn:disabled { cursor: not-allowed; opacity: .6; }

.mt-cps-start { display: inline-flex; align-items: center; gap: 8px; background: var(--site-accent); color: #fff; border: none; font-weight: 700; font-size: .92em; padding: 11px 22px; border-radius: 9px; cursor: pointer; transition: background .2s ease, opacity .2s ease; white-space: nowrap; }
.mt-cps-start:hover:not(:disabled) { background: var(--site-accent); }
.mt-cps-start:disabled { cursor: default; opacity: .9; }

.mt-cps-area { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: #fff; border: 2px dashed #d8dbe2; border-radius: 12px; padding: 40px 16px; text-align: center; user-select: none; outline: none; cursor: pointer; transition: border-color .2s ease, background .08s ease; }
.mt-cps-area:focus-visible { border-color: var(--site-light); }
.mt-cps-area:active { background: #f0f1f4; }
.mt-cps-count { font-size: 3em; font-weight: 800; color: var(--site-dark); line-height: 1; font-variant-numeric: tabular-nums; }
.mt-cps-hint { font-size: .86em; color: #6b7280; font-weight: 600; }

.mt-cps-results { display: none; }
.mt-cps-results.show { display: flex; }

/* ===== Wheel test ===== */
.mt-wheel-area { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: #fff; border: 2px dashed #d8dbe2; border-radius: 12px; padding: 34px 16px; user-select: none; outline: none; transition: border-color .2s ease; }
.mt-wheel-area:focus-visible { border-color: var(--site-light); }
.mt-wheel-hint { font-size: .86em; color: #6b7280; font-weight: 600; }

.mt-wheel-indicator { width: 64px; height: 64px; border-radius: 50%; background: #f0f1f4; border: 2px solid #e2e4e9; display: flex; align-items: center; justify-content: center; font-size: 1.5em; color: #6b7280; transition: background .15s ease, border-color .15s ease, color .15s ease; }

@keyframes mtFlashUp { 0% { background: var(--site-light); border-color: var(--site-dark); color: #fff; transform: scale(1.08); } 100% { background: #f0f1f4; border-color: #e2e4e9; color: #6b7280; transform: scale(1); } }
@keyframes mtFlashDown { 0% { background: var(--site-accent); border-color: var(--site-accent); color: #fff; transform: scale(1.08); } 100% { background: #f0f1f4; border-color: #e2e4e9; color: #6b7280; transform: scale(1); } }

.mt-wheel-indicator.mt-flash-up { animation: mtFlashUp .5s ease; }
.mt-wheel-indicator.mt-flash-down { animation: mtFlashDown .5s ease; }

@media (max-width: 600px) {
    .mt-card { padding: 22px 18px 26px; }
    .mt-panel { padding: 18px 16px; }
    .mt-btn-area { grid-template-columns: 1fr; }
    .mt-cps-controls { flex-direction: column; align-items: stretch; }
    .mt-cps-start { justify-content: center; }
}
