/* ============================================================
   COUNTDOWN STYLE
   - Inter ExtraBold 800 SOLO números/separadores
   - Sin milisegundos
   - Centrado y responsive (no se sale)
   ============================================================ */

/* Snow canvas por detrás */
#snow{
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* tu ambient */
.ambient{
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ===== Layout Base ===== */
.countdownPage{
  min-height: 100vh;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 2;
  padding-top: 74px;
  overflow: hidden;
}

.cdWrap{
  width: min(1200px, 95vw);
  min-height: calc(100vh - 100px);
  display: grid;
  grid-template-rows: auto auto auto auto;
  justify-items: center;
  align-items: center;
  text-align: center;
  padding: 20px 0;
  gap: 10px;
}

/* Tag */
.cdTag{
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(193, 186, 255, .15);
  background: rgba(255, 255, 255, .03);
  color: rgba(255, 255, 255, .80);
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 10px;
  backdrop-filter: blur(12px);
}

/* ===== RELOJ (responsive y centrado) ===== */
.cdBig{
  width: min(1100px, 95vw);
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: nowrap;
  white-space: nowrap;
  gap: clamp(6px, 1.2vw, 16px);

  /* la escala la controla el contenedor */
  font-size: clamp(30px, 9vw, 120px);

  user-select: none;
  cursor: default;

  pointer-events: none;

  position: relative;

  z-index: 2;
}

/* fija el cursor (evita que el mouse “atraviese” el reloj) */
.cdBig{
  pointer-events: auto;
}
.cdBig *{
  pointer-events: none;
}

/* Unidades */
.cdUnit{
  display: grid;
  justify-items: center;
  gap: 0px;
  min-width: 0;
}

/* anchos fijos para que no brinque */
#days{ width: auto; }
#hours, #minutes, #seconds{ width: 2ch; }

/* NÚMEROS */
.cdNum{
  font-family: "Inter", sans-serif !important;
  font-weight: 800 !important;
  letter-spacing: -0.05em;
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 20px 60px rgba(0, 0, 0, .5);

  display: block;
  text-align: center;
  font-size: 1em; /* usa el size del contenedor */
}

/* Separadores */
.cdSep{
  font-family: "Inter", sans-serif !important;
  font-weight: 800 !important;
  opacity: .3;
  transform: translateY(-5%);
  font-size: 1em; /* usa el size del contenedor */
}

/* Labels */
.cdLabel{
  font-family: inherit;
  font-weight: 800;
  font-size: clamp(8px, 1vw, 12px);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
}

/* Fecha (Neue Haas Display) */
.cdDate{
  font-family: "Neue Haas Grotesk Display Pro","Neue Haas Grotesk Display","Neue Haas Grotesk",sans-serif !important;
  font-weight: 900 !important;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.82);
  font-size: clamp(12px, 1.2vw, 16px);
  margin-top: 4px;
}

/* Footer */
.cdFooter{ margin-top: 10px; }

.discordBtn{
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid rgba(193, 186, 255, .2);
  background: rgba(255, 255, 255, .05);
  font-weight: 900;
  font-size: 13px;
  transition: .3s;
  text-decoration: none;
  color: white;

  white-space: nowrap;
  flex-wrap: nowrap;
}

.discordBtn .btnText{
  white-space: nowrap !important;
  display: inline !important;
}

.discordBtn:hover{
  background: rgba(193, 186, 255, .1);
  transform: translateY(-2px);
}

.discordIcon{
  width: 1.1em;
  height: 1.1em;
  display: inline-block;
  flex: 0 0 auto;
}

/* Días: ceros a la izquierda invisibles */
#days{
  display: flex;
  justify-content: center;
  gap: 0;
}
#days .dDigit{
  display: inline-block;
}
#days .isLead{
  display: none; /* elimina el ancho de los 0 iniciales */
}

