/* GlitchEpoch — minimal elapsed time, thoughtfully rendered. */
.glitchepoch,
.glitchepoch * {
  box-sizing: border-box;
}

.glitchepoch {
  --ge-accent: #007aff;
  width: 100%;
  max-width: 860px;
  margin: 1.5rem auto;
  padding: clamp(26px, 5vw, 51px) clamp(14px, 4vw, 40px);
  border: 1px solid #e8ebf0;
  border-radius: 27px;
  background: linear-gradient(146deg, #ffffff 0%, #fcfdff 72%, #f7faff 100%);
  box-shadow: 0 18px 55px rgba(25, 41, 69, .065), 0 3px 11px rgba(25, 41, 69, .026);
  color: #1d2229;
  font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

.glitchepoch__grid {
  display: grid;
  grid-template-columns: 1.44fr repeat(3, minmax(0, 1fr));
  align-items: center;
}

.glitchepoch__unit {
  min-width: 0;
  padding: 2px 5px;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  text-align: center;
}

.glitchepoch__unit + .glitchepoch__unit {
  border-left: 1px solid #e7eaf0;
}

.glitchepoch__number {
  display: block;
  max-width: 100%;
  font-size: clamp(28px, 6.8vw, 62px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.052em;
  white-space: nowrap;
  color: #1d2229;
}

.glitchepoch__unit:last-child .glitchepoch__number {
  color: var(--ge-accent);
}

.glitchepoch__label {
  display: block;
  color: #8e97a5;
  font-size: clamp(10px, 1.5vw, 12px);
  font-weight: 650;
  line-height: 1.5;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.glitchepoch-error {
  color: #9a3412;
  font: inherit;
}

@media (max-width: 540px) {
  .glitchepoch {
    padding: 28px 20px;
    border-radius: 23px;
  }
  .glitchepoch__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 0;
  }
  .glitchepoch__unit {
    padding: 17px 6px;
  }
  .glitchepoch__unit:nth-child(3) {
    border-left: 0;
  }
  .glitchepoch__unit:nth-child(n+3) {
    border-top: 1px solid #e7eaf0;
  }
  .glitchepoch__number {
    font-size: clamp(32px, 9.4vw, 54px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .glitchepoch__number {
    animation: none !important;
    transition: none !important;
  }
}
