
/* Polish time ----------------------------------------------------------- */

.clock-card {
  max-width: 620px;
  margin: 0 auto;
  padding: 3rem 2rem 2.4rem;
  background: #05060a;
  border: 1px solid rgb(52 52 52 / 60%);
  border-radius: 18px;
  text-align: center;
  cursor: pointer;
  user-select: none;
}

.clock-card:focus-visible { outline: 2px solid rgb(70, 164, 248); outline-offset: 4px; }

/* Red on near-black, tracked out: the look of the cheap bedside clock this is
   imitating. A real seven-segment face would need a font we do not ship. */
.clock-face {
  font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: clamp(3.4rem, 13vw, 6rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #ff4d55;
  text-shadow: 0 0 24px rgba(255, 77, 85, 0.45);
  line-height: 1;
}

/* Only the separator blinks, and it keeps its width while invisible, so the
   digits either side do not shuffle once a second. */
.clock-face .colon {
  animation: clock-blink 1s steps(1, end) infinite;
}

@keyframes clock-blink {
  0%, 49.9% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .clock-face .colon { animation: none; }
}

.clock-answer {
  min-height: 2.6rem;
  margin-top: 1.6rem;
  font-size: clamp(1.1rem, 3.5vw, 1.5rem);
  color: var(--text-light);
  transition: opacity 0.25s ease;
}

.clock-answer.hidden { opacity: 0.18; }

.clock-hint {
  margin-top: 1.4rem;
  font-size: 0.85rem;
  color: var(--text-gray);
}

.clock-actions { display: flex; gap: 0.7rem; justify-content: center; margin-top: 1.4rem; }

.clock-btn {
  text-decoration: none;
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: var(--text-light);
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
}

.clock-btn:hover { border-color: rgba(70, 164, 248, 0.7); }
.clock-btn.primary { background: rgb(70, 164, 248); border-color: rgb(70, 164, 248); color: #000; font-weight: 600; }

.rule-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; }
.rule-card { padding: 1.4rem 1.5rem; }
.rule-card h3 { font-size: 1.05rem; margin: 0 0 0.5rem; }
.rule-card p { font-size: 0.95rem; margin: 0 0 0.6rem; }
.rule-card .example { color: #7ec8f4; font-size: 0.95rem; display: block; }
.rule-card .example span { color: var(--text-gray); }
