:root {
  --bg: #0f172a;
  --panel: #111827;
  --dial: #1f2937;
  --dial-edge: #334155;
  --tick: #94a3b8;
  --hour-tick: #e2e8f0;
  --text: #e5e7eb;
  --muted: #94a3b8;
  --hour-hand: #f8fafc;
  --minute-hand: #cbd5e1;
  --second-hand: #ef4444;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: radial-gradient(circle at top, #1e293b, var(--bg));
  color: var(--text);
}

.page {
  text-align: center;
  padding: 2rem;
}

h1 {
  margin: 0 0 1rem;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.clock-wrap {
  width: min(80vw, 360px);
  margin: 0 auto;
}

#clock {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.4));
}

.dial {
  fill: var(--dial);
  stroke: var(--dial-edge);
  stroke-width: 4;
}

.tick {
  stroke: var(--tick);
  stroke-width: 1;
}

.tick.hour {
  stroke: var(--hour-tick);
  stroke-width: 2.5;
}

.hour-number {
  fill: var(--text);
  font-size: 10px;
  font-weight: 600;
  text-anchor: middle;
  dominant-baseline: middle;
}

.hand {
  stroke-linecap: round;
  transform-origin: 100px 100px;
}

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

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

.hand.second {
  stroke: var(--second-hand);
  stroke-width: 2;
}

.center-cap {
  fill: var(--second-hand);
  stroke: #fff;
  stroke-width: 1.5;
}

.time-readout {
  margin-top: 1rem;
  font-size: 1.75rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.caption {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}
