.clock-svg {
  width: min(46vmin, 340px);
  height: min(46vmin, 340px);
}

.clock-face {
  fill: white;
  stroke: var(--gray);
  stroke-width: 3;
}

#clock-numbers text {
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-size: 15px;
  font-weight: bold;
  fill: #888;
  text-anchor: middle;
}

.clock-hand {
  stroke: var(--ink);
  stroke-linecap: round;
  transform-origin: 100px 100px;
  transition: transform 0.6s cubic-bezier(.34,1.2,.64,1);
}

.hand-hour {
  stroke-width: 7;
  stroke: var(--ink);
}

.hand-minute {
  stroke-width: 4.5;
  stroke: var(--accent);
}

.clock-center {
  fill: var(--accent);
}

.clock-svg.reveal .clock-hand {
  animation: handPulse 0.5s ease;
}

@keyframes handPulse {
  0%, 100% { filter: none; }
  50% { filter: drop-shadow(0 0 6px var(--accent)); }
}

.clock-prompt {
  font-size: clamp(1rem, 3vmin, 1.4rem);
  font-weight: bold;
  color: #666;
  min-height: 1.4em;
  text-align: center;
}

.time-readout {
  font-size: clamp(1.3rem, 4vmin, 1.8rem);
  font-weight: bold;
  color: var(--accent);
  min-height: 1.6em;
  opacity: 0;
}

.time-readout.shown {
  animation: popIn 0.4s ease forwards;
}

.time-answer-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
}

.time-box {
  font-family: inherit;
  min-width: 1.6em;
  font-size: clamp(2rem, 7vmin, 3rem);
  font-weight: bold;
  text-align: center;
  letter-spacing: 0.2em;
  border: none;
  border-bottom: 5px solid var(--gray);
  padding: 0 0.15em;
  color: var(--ink);
  background: none;
  cursor: pointer;
}

.time-box.active {
  border-color: var(--accent);
  color: var(--accent);
}

.time-box.correct {
  border-color: var(--good);
  color: var(--good);
}

.time-box.wrong {
  border-color: var(--bad);
  animation: shake 0.35s;
}

.time-label {
  font-size: clamp(1.1rem, 3vmin, 1.5rem);
  color: #999;
  font-weight: bold;
}
