/* Classic official countdown — landing + member dashboard */

.ec-cdown-host {
  display: grid;
  gap: 1.25rem;
}

.ec-cdown-host[hidden] {
  display: none !important;
}

.ec-cdown-host--landing {
  max-width: 44rem;
  margin: 0 auto;
}

.ec-cdown-host--dashboard {
  margin: 0 0 1rem;
}

.ec-cdown {
  position: relative;
  color: inherit;
}

.ec-cdown__frame {
  position: relative;
  padding: 1.65rem 1.5rem 1.45rem;
  background: #f7f4ee;
  border: 1px solid #cbb894;
  box-shadow: 0 18px 40px rgba(28, 22, 12, 0.08);
}

.ec-cdown__frame::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(176, 138, 58, 0.45);
  pointer-events: none;
}

html.dark .ec-cdown__frame {
  background: #10161f;
  border-color: rgba(201, 168, 92, 0.38);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

html.dark .ec-cdown__frame::before {
  border-color: rgba(201, 168, 92, 0.28);
}

.ec-cdown-host--landing .ec-cdown__frame {
  text-align: center;
  padding: 2.1rem 1.75rem 1.7rem;
}

.ec-cdown__kicker {
  margin: 0 0 0.55rem;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #8a7340;
}

html.dark .ec-cdown__kicker {
  color: #d4b56a;
}

.ec-cdown__title {
  margin: 0;
  font-family: "Lora", Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem, 2.4vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: #1c1914;
}

html.dark .ec-cdown__title {
  color: #f4efe4;
}

.ec-cdown__meta {
  margin: 0.55rem 0 0;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  line-height: 1.5;
  color: #6b6254;
}

html.dark .ec-cdown__meta {
  color: #b7ae9e;
}

.ec-cdown__rule {
  width: 4.5rem;
  height: 1px;
  margin: 1.1rem auto 1.2rem;
  background: linear-gradient(90deg, transparent, #b08a3a, transparent);
}

.ec-cdown-host--dashboard .ec-cdown__rule {
  margin-left: 0;
}

.ec-cdown__live {
  margin: 0.2rem 0 0;
  font-family: "Lora", Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-style: italic;
  color: #2f6b45;
}

.ec-cdown__clock {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.35rem 0.45rem;
  flex-wrap: wrap;
}

.ec-cdown-host--dashboard .ec-cdown__clock {
  justify-content: flex-start;
}

.ec-cdown__unit {
  display: grid;
  justify-items: center;
  gap: 0.4rem;
  min-width: 4.15rem;
}

.ec-cdown__colon {
  display: flex;
  align-items: center;
  min-height: 3.6rem;
  padding-top: 0.05rem;
  font-family: "Lora", Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  line-height: 1;
  color: #b08a3a;
}

.ec-cdown__flip {
  position: relative;
  width: 100%;
  min-width: 3.6rem;
  min-height: 3.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid #8d7340;
  border-radius: 3px;
  background:
    linear-gradient(180deg, #2a3140 0%, #1b212c 48%, #141920 52%, #10141c 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -8px 12px rgba(0, 0, 0, 0.28);
}

.ec-cdown__flip::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(0, 0, 0, 0.45);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.ec-cdown__value {
  position: relative;
  z-index: 1;
  display: block;
  font-family: "Lora", Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: #f3ead4;
}

.ec-cdown__label {
  font-size: 0.6rem;
  font-weight: 650;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8a7d68;
}

html.dark .ec-cdown__label {
  color: #b7ae9e;
}

.ec-cdown__caption {
  margin: 0.95rem 0 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8a7340;
}

.ec-cdown__unit.is-tick .ec-cdown__value {
  animation: ec-cdown-tick 0.42s ease;
}

@keyframes ec-cdown-tick {
  0% {
    opacity: 0.35;
    transform: translateY(6px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.ec-dash-cal__cell.has-countdown {
  box-shadow: inset 0 0 0 1px rgba(176, 138, 58, 0.55);
}

.ec-dash-cal__cell.has-countdown .ec-dash-cal__titles::after {
  content: " · countdown";
  color: #b08a3a;
  font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
  .ec-cdown__unit.is-tick .ec-cdown__value {
    animation: none;
  }
}

@media (max-width: 560px) {
  .ec-cdown__frame {
    padding: 1.25rem 1rem 1.15rem;
  }

  .ec-cdown__unit {
    min-width: 3.2rem;
  }

  .ec-cdown__flip {
    min-width: 2.85rem;
    min-height: 2.85rem;
  }

  .ec-cdown__value {
    font-size: 1.2rem;
  }

  .ec-cdown__colon {
    min-height: 2.85rem;
    font-size: 1.2rem;
  }

  .ec-cdown__label {
    letter-spacing: 0.1em;
  }
}
