/* ================================================================
   Timer — Units, amounts, labels, digit roller
   ================================================================ */

.left {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  position: relative; padding: 10px 0;
}

.left h2 {
  font-family: "SystemaEncephale"; margin: 0 0 12px;
  font-size: clamp(14px, 4vw, 16px); color: var(--text-primary);
  text-align: center; animation: fadeIn 1s ease-out 0.8s both;
}

.timer {
  display: flex; flex-wrap: nowrap; gap: 6px;
  width: 100%; max-width: 700px; justify-content: center;
}

.unit {
  background: linear-gradient(180deg, var(--white-dim), rgba(255,255,255,0.02));
  padding: 10px 4px; border-radius: 10px; text-align: center;
  border: 1px solid var(--white-dim);
  flex: 1 1 0; min-width: 0; max-width: 140px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: unitPopIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.unit:nth-child(1) { animation-delay: 0.9s; }
.unit:nth-child(2) { animation-delay: 1.0s; }
.unit:nth-child(3) { animation-delay: 1.1s; }
.unit:nth-child(4) { animation-delay: 1.2s; }
.unit:nth-child(5) { animation-delay: 1.3s; }

@keyframes unitPopIn {
  from { opacity: 0; transform: scale(0.5) rotateX(45deg); }
  to   { opacity: 1; transform: scale(1) rotateX(0deg); }
}

.unit::before {
  content: ''; position: absolute; top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, var(--purple-dim) 0%, transparent 70%);
  opacity: 0; transition: opacity 0.3s ease;
}

.unit:hover {
  transform: translateY(-4px) scale(1.05);
  border-color: var(--purple-glow);
  box-shadow: 0 8px 25px rgba(163,107,255,0.2), 0 0 15px rgba(163,107,255,0.1);
}

.unit:hover::before { opacity: 1; }

.amount {
  display: block; font-size: clamp(18px, 5vw, 28px);
  font-weight: 700; color: #fff; line-height: 1.2;
  position: relative; z-index: 1;
  transition: transform 0.2s ease, color 0.2s ease;
}

.amount.tick { animation: tickPulse 0.3s ease-out; }

@keyframes tickPulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.15); color: var(--accent); }
  100% { transform: scale(1); }
}

.label {
  display: block; font-size: clamp(8px, 2.5vw, 11px);
  color: var(--text-muted); margin-top: 4px;
  text-transform: uppercase; letter-spacing: 0.05em;
  line-height: 1.2; position: relative; z-index: 1;
}

/* ── Digit Roller ──────────────────────────────────────────────── */
.digit-roller {
  display: inline-flex; overflow: hidden;
  height: 1.2em; vertical-align: top; position: relative;
}

.digit-column {
  display: flex; flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  will-change: transform;
}

.digit-char {
  height: 1.2em; line-height: 1.2em;
  text-align: center; flex-shrink: 0;
}
