/* Telling the Time — page-specific styles */

.face-wrap { display: flex; justify-content: center; padding: 0.4rem 0; }

#face {
  width: min(19rem, 82vw);
  height: auto;
  touch-action: none;          /* dragging a hand must not scroll the page */
  cursor: grab;
  filter: drop-shadow(0 6px 10px rgba(120, 100, 70, 0.2));
}

#face:active { cursor: grabbing; }

.dial { fill: #fffdf7; stroke: #c9b894; stroke-width: 3; }
.tick { stroke: #d8cbb2; stroke-width: 1.4; stroke-linecap: round; }
.tick--hour { stroke: #a89574; stroke-width: 3; }

.numeral {
  fill: var(--color-text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  text-anchor: middle;
  dominant-baseline: central;
}

.hand { stroke-linecap: round; }
.hand--hour { stroke: var(--color-text); stroke-width: 8; }
.hand--minute { stroke: var(--color-orange); stroke-width: 5; }
.pin { fill: var(--color-coral); }

.task {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.1rem, 5vw, 1.5rem);
  color: var(--color-coral);
  min-height: 1.2em;
}

.digital {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 9vw, 2.8rem);
  line-height: 1.1;
  color: var(--color-text);
}

.words {
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1rem, 4.5vw, 1.3rem);
  color: var(--color-text-muted);
  min-height: 1.3em;
}

.choices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.choice {
  padding: 0.7rem 0.6rem;
  border: 2px solid #e8e2d8;
  border-radius: var(--radius-sm);
  background: var(--color-bg-alt);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text);
  cursor: pointer;
}

.choice:hover:not(:disabled), .choice:focus-visible { border-color: var(--color-orange); outline: none; }
.choice:disabled { cursor: default; opacity: 0.75; }
.choice.is-right { background: #e8f8f0; border-color: #7ad0a8; color: #1c6b4e; opacity: 1; }
.choice.is-wrong { background: #ffe9e6; border-color: #ffb0a5; color: #b8352a; opacity: 1; }

.choose-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin: 0.7rem 0 0.35rem;
}

.chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }

.chip {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 2px solid #e8e2d8;
  background: var(--color-bg);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  cursor: pointer;
}

.chip:hover, .chip:focus-visible { border-color: var(--color-orange); outline: none; }
.chip.is-on { background: var(--color-orange); border-color: var(--color-orange); color: #fff; }
