
/* Polish dates ---------------------------------------------------------- */

.date-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;
}

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

/* The clock page borrows a bedside clock's red LED; a date has no such
   object behind it, so it is set as what it is — a line of figures off a
   form, in the page's own blue. */
.date-face {
  font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: clamp(2.6rem, 10vw, 4.4rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #eaf4ff;
  text-shadow: 0 0 26px rgba(70, 164, 248, 0.45);
  line-height: 1;
}

.date-face .dot { color: rgb(70, 164, 248); }

.date-answer {
  min-height: 2.6rem;
  margin-top: 1.6rem;
  font-size: clamp(1.05rem, 3.2vw, 1.45rem);
  line-height: 1.45;
  color: var(--text-light);
  transition: opacity 0.25s ease;
}

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

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

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

.date-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);
}

.date-btn:hover { border-color: rgba(70, 164, 248, 0.7); }
.date-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; font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace; }
.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); }
