:root {
  /* --navy: #2e3648; */
  /* --green: #00ac7b; */
  --countdown-gold: #f0c860;
  --countdown-card: #191e29;
  --countdown-card-hi: #232937;
}
.text-gold {
  color: var(--countdown-gold);
}
.flap-clock {
  display: flex;
  align-items: center;
  gap: 3px;
}
.flap-group {
  display: flex;
  gap: 2px;
}
.flap-sep {
  color: var(--countdown-gold);
  font-weight: 800;
  /* font-size: 0.9em; */
  font-size: 0.9em;
  padding: 0 1px;
}
.digit {
  position: relative;
  width: 1.06em;
  height: 1.46em;
  perspective: 80px;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}
.digit .panel {
  position: absolute;
  left: 0;
  width: 100%;
  height: 50%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  background: linear-gradient(180deg, var(--countdown-card-hi), var(--countdown-card));
  color: #f2f4f7;
}
.digit .top {
  top: 0;
  border-radius: 0.14em 0.14em 0 0;
  align-items: flex-start;
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.65);
}
.digit .bottom {
  bottom: 0;
  border-radius: 0 0 0.14em 0.14em;
  align-items: flex-end;
  background: linear-gradient(180deg, var(--countdown-card), #12161f);
}
.digit .panel span {
  line-height: 1.46em;
  height: 1.46em;
  display: block;
}
.digit .bottom span {
  transform: translateY(-50%);
  margin-bottom: -0.73em;
}
.digit::before,
.digit::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 0.07em;
  height: 0.16em;
  margin-top: -0.08em;
  background: #0c0f16;
  z-index: 6;
  border-radius: 1px;
}
.digit::before {
  left: 0;
}
.digit::after {
  right: 0;
}
.digit .flap-top,
.digit .flap-bottom {
  position: absolute;
  left: 0;
  width: 100%;
  height: 50%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  backface-visibility: hidden;
  z-index: 4;
  color: #f2f4f7;
}
.digit .flap-top {
  top: 0;
  align-items: flex-start;
  background: linear-gradient(180deg, var(--countdown-card-hi), var(--countdown-card));
  border-radius: 0.14em 0.14em 0 0;
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.65);
  transform-origin: bottom;
  transform: rotateX(0);
}
.digit .flap-bottom {
  bottom: 0;
  align-items: flex-end;
  background: linear-gradient(180deg, var(--countdown-card), #12161f);
  border-radius: 0 0 0.14em 0.14em;
  transform-origin: top;
  transform: rotateX(90deg);
}
.digit .flap-top span,
.digit .flap-bottom span {
  line-height: 1.46em;
  height: 1.46em;
  display: block;
}
.digit .flap-bottom span {
  transform: translateY(-50%);
  margin-bottom: -0.73em;
}
.digit.flipping .flap-top {
  animation: ftop 0.15s ease-in forwards;
}
.digit.flipping .flap-bottom {
  animation: fbot 0.15s ease-out 0.15s forwards;
}
@keyframes ftop {
  from {
    transform: rotateX(0);
  }
  to {
    transform: rotateX(-90deg);
  }
}
@keyframes fbot {
  from {
    transform: rotateX(90deg);
  }
  to {
    transform: rotateX(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .digit.flipping .flap-top,
  .digit.flipping .flap-bottom {
    animation: none;
  }
  .digit .flap-top,
  .digit .flap-bottom {
    display: none;
  }
}
.flap-clock.small {
  /* font-size: 17px; */
  font-size: 20px;
}
.flap-clock.big {
  font-size: 60px;
}
.flap-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cutoff-note {
  width: 100%;
  text-align: center;
  color: #a4adb6;
  font-size: 0.8rem;
}
@media (min-width: 992px) {
  .cutoff-note {
    width: auto;
    text-align: left;
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
  }
}
.flap-unit {
  font-size: 0.16em;
  color: #8a93a3;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.35em;
}

div.cutoff-bar {
  background-color: #cfe2ff;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 52px 0 16px;
  position: relative;
  font-size: 14.5px;
  margin-top: 10px;
  /* padding-top: 5px; */

  &::after {
    /* inset gold rule — stops 30px short of each edge */
    content: "";
    position: absolute;
    left: 60px;
    right: 60px;
    bottom: 0;
    height: 1.5px;
    background: var(--countdown-gold);
    border-radius: 2px;
  }
}

.c {
  @media (min-width: 992px) {
    padding-right: 60px;
  }
}

.closeCountdown {
  width: 20px;
  height: 20px;

  i {
    font-size: 1.2rem;
    color: #a4adb6;
  }
}
