/* ===== JUST STOP GAME ===== */

.js-target-display {
  background: var(--card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 24px 40px;
  text-align: center;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow);
}

.js-target-label {
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}

.js-target-time {
  font-size: 3.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 2px;
  line-height: 1;
}

.js-target-unit {
  color: var(--muted);
  font-size: 1rem;
  margin-top: 4px;
}

.js-clock-area {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto;
}

.js-clock-bg {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--card-border);
  box-shadow: var(--shadow), 0 0 40px rgba(139, 92, 246, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.js-clock-number {
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 8px rgba(139, 92, 246, 0.5);
  transition: opacity 0.3s;
}

.js-clock-number.hidden {
  opacity: 0;
}

.js-ring {
  position: absolute;
  top: -6px; left: -6px;
  width: calc(100% + 12px);
  height: calc(100% + 12px);
  border-radius: 50%;
  border: 4px solid transparent;
  border-top-color: var(--primary);
  border-right-color: var(--secondary);
  animation: jsRingSpin 1s linear infinite;
  opacity: 0;
  transition: opacity 0.3s;
}
.js-ring.active {
  opacity: 1;
}

@keyframes jsRingSpin {
  to { transform: rotate(360deg); }
}

.js-stop-btn {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: none;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.5);
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: none;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  position: relative;
  overflow: hidden;
}

.js-stop-btn::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 50%;
  background: rgba(255,255,255,0.1);
  border-radius: 50% 50% 0 0;
}

.js-stop-btn:hover  { transform: scale(1.08); box-shadow: 0 12px 40px rgba(236, 72, 153, 0.6); }
.js-stop-btn:active { transform: scale(0.92); }

.js-feedback {
  font-size: 1.2rem;
  font-weight: 700;
  text-align: center;
  min-height: 1.8em;
  transition: opacity 0.3s;
}

.js-feedback.hit    { color: var(--accent); }
.js-feedback.miss   { color: var(--secondary); }

.js-history {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 120px;
  overflow-y: auto;
}

.js-history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 8px 16px;
  font-size: 0.9rem;
  animation: slideIn 0.2s ease;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform:  translateY(0); }
}

.js-history-item .target { color: var(--muted); }
.js-history-item .diff   { font-weight: 700; }
.js-history-item .diff.good { color: var(--accent); }
.js-history-item .diff.ok   { color: #facc15; }
.js-history-item .diff.miss { color: var(--secondary); }
.js-history-item .pts    { color: #c4b5fd; font-weight: 700; }
@media (max-height: 750px) {
  .js-target-display { padding: 12px 20px; }
  .js-target-time { font-size: 2.8rem; }
  .js-clock-area { width: 140px; height: 140px; }
  .js-clock-number { font-size: 2.22rem; }
  .js-stop-btn { width: 140px; height: 140px; font-size: 1.1rem; }
  .js-history { max-height: 80px; gap: 4px; }
  .js-history-item { padding: 6px 12px; font-size: 0.8rem; }
}
