/* --- basic grid --- */
.clock-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap:1rem; margin:1rem 0; }

/* --- clock card --- */
.clock-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 12px;
  padding:16px;
  box-shadow: 0 6px 18px rgba(13, 38, 59, 0.08);
  text-align:center;
  display:flex;
  flex-direction:column;
  gap:10px;
  align-items:center;
}

/* --- clock face --- */
.clock {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  position: relative;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.06), 0 6px 18px rgba(2,6,23,0.06);
  background: radial-gradient(circle at 30% 20%, #fff, #f1f5f9 60%);
  border: 6px solid rgba(10,20,40,0.06);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:visible;
}

/* markers and numerals */
.clock .marker { position:absolute; width:8px; height:8px; border-radius:50%; background: rgba(0,0,0,0.55); transform-origin:50% 100%; }
.clock .num { position:absolute; font-weight:600; color:#111827; font-size:20px; transform-origin:center; pointer-events:none; }

/* hands */
/* hands: position at center; no negative margins */
.hand {
  position: absolute;
  left: 50%;
  top: 50%;
  transform-origin: 50% 100%; /* bottom end is the pivot (center of clock) */
  pointer-events: none;
  /* smooth rotation */
  transition: transform 120ms linear;
}

/* individual hand lengths & thickness (no margins) */
.hand.hour {
  width: 6px;
  height: 52px;
  border-radius: 4px;
  background: #0f172a;
  z-index: 6;
  box-shadow: 0 1px 2px rgba(0,0,0,0.25);
  transition: none !important;
  will-change: transform;  
}
.hand.minute {
  width: 4px;
  height: 70px;
  border-radius: 4px;
  background: #0f172a;
  z-index: 5;
  box-shadow: 0 1px 2px rgba(0,0,0,0.18);
  transition: none !important;
  will-change: transform;
}
.hand.second {
  width: 2px;
  height: 86px;
  border-radius: 2px;
  background: #ef4444;
  z-index: 4;
  transition: none !important;
  will-change: transform;
}

/* center pin */
.pin { position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); width:8px;height:8px;border-radius:50%; background:#111827; z-index:10; }

/* inner small date label */
.clock .date-label { position:absolute; bottom:12px; left:50%; transform:translateX(-50%); font-size:13px; color:#374151; background:rgba(255,255,255,0.6); padding:2px 8px; border-radius:6px; backdrop-filter: blur(2px); }

/* meta text under clock */
.clock-meta { font-size:13px; color:#374151; margin-top:6px; }

/* DST badge */
.dst-badge { font-size:12px; color:#065f46; background:#ecfdf5; border-radius:6px; padding:4px 8px; display:inline-block; margin-top:4px; }

/* accessible fallback text */
.time-text { font-size:14px; color:#0b1220; margin-top:6px; }

/* hover effect */
.clock-card:hover { transform: translateY(-4px); transition: transform 220ms ease; }

/* responsive tuning */
@media (max-width:420px) {
  .clock { width:170px; height:170px; }
  .hand.hour { height:44px; margin-top:-44px; }
  .hand.minute { height:60px; margin-top:-60px; }
  .hand.second { height:74px; margin-top:-74px; }
}

/* small utility */
.kv { font-weight:600; color:#0b1220; }