/*!
 * Pulse Countdown - styles
 * Six themes, three sizes. Everything is driven by custom properties,
 * so a theme can be retuned without touching the layout.
 */

.pulse {
  --pulse-bg: #101a2e;
  --pulse-fg: #f2f6ff;
  --pulse-muted: #8ea2c4;
  --pulse-accent: #4fc3f7;
  --pulse-radius: 14px;
  --pulse-gap: 10px;
  --pulse-value-size: 34px;
  --pulse-label-size: 11px;
  --pulse-pad: 14px 16px;

  display: inline-block;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--pulse-fg);
  background: var(--pulse-bg);
  border-radius: var(--pulse-radius);
  padding: var(--pulse-pad);
  line-height: 1.1;
}

.pulse__parts {
  display: flex;
  align-items: stretch;
  gap: var(--pulse-gap);
}

.pulse__part {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  padding: 6px 4px;
  border-radius: calc(var(--pulse-radius) - 6px);
  background: rgba(255, 255, 255, 0.06);
}

.pulse__value {
  font-size: var(--pulse-value-size);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.pulse__label {
  margin-top: 4px;
  font-size: var(--pulse-label-size);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pulse-muted);
}

.pulse__done {
  font-size: calc(var(--pulse-value-size) * 0.6);
  font-weight: 600;
  color: var(--pulse-accent);
  padding: 6px 2px;
}

/* sizes */
.pulse--sm { --pulse-value-size: 22px; --pulse-label-size: 9px; --pulse-pad: 10px 12px; --pulse-gap: 7px; }
.pulse--sm .pulse__part { min-width: 46px; }
.pulse--lg { --pulse-value-size: 48px; --pulse-label-size: 12px; --pulse-pad: 20px 24px; --pulse-gap: 14px; }
.pulse--lg .pulse__part { min-width: 88px; }

/* themes */
.pulse--midnight {
  --pulse-bg: #101a2e; --pulse-fg: #f2f6ff; --pulse-muted: #8ea2c4; --pulse-accent: #4fc3f7;
}
.pulse--aurora {
  --pulse-bg: linear-gradient(135deg, #1b2a4a 0%, #26365f 100%);
  --pulse-fg: #eaf1ff; --pulse-muted: #a9bce0; --pulse-accent: #8ef0c0;
}
.pulse--aurora .pulse__part { background: rgba(255, 255, 255, 0.08); }
.pulse--paper {
  --pulse-bg: #ffffff; --pulse-fg: #17202e; --pulse-muted: #6b7a90; --pulse-accent: #2563eb;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 8px 24px rgba(16, 24, 40, 0.08);
}
.pulse--paper .pulse__part { background: #f2f5fa; }
.pulse--sunset {
  --pulse-bg: linear-gradient(135deg, #3a1d3f 0%, #6b2440 100%);
  --pulse-fg: #fff1f4; --pulse-muted: #f0b9c6; --pulse-accent: #ffb703;
}
.pulse--sunset .pulse__part { background: rgba(255, 255, 255, 0.09); }
.pulse--mint {
  --pulse-bg: #eafaf3; --pulse-fg: #0d2b22; --pulse-muted: #4d7a6b; --pulse-accent: #0f9d67;
}
.pulse--mint .pulse__part { background: #d3f2e3; }
.pulse--mono {
  --pulse-bg: #111111; --pulse-fg: #f5f5f5; --pulse-muted: #9a9a9a; --pulse-accent: #ffffff;
  border: 1px solid #2a2a2a;
}
.pulse--mono .pulse__part { background: #1c1c1c; }

/* narrow screens: wrap instead of overflow */
@media (max-width: 420px) {
  .pulse__parts { flex-wrap: wrap; justify-content: center; }
  .pulse__part { min-width: 54px; }
  .pulse--lg { --pulse-value-size: 34px; }
  .pulse--lg .pulse__part { min-width: 64px; }
}
