/* Hashmonkeyscoin launch countdown — compact bar */
.hmc-launch {
  position: relative;
  margin: 0 0 1rem;
  padding: 1px;
  border-radius: calc(var(--r) - 2px);
  overflow: hidden;
  isolation: isolate;
}

.hmc-launch__orbit {
  position: absolute;
  inset: -50%;
  z-index: 0;
  background: conic-gradient(
    from var(--hmc-orbit, 0deg),
    var(--mint),
    var(--violet),
    var(--coral),
    var(--mint)
  );
  opacity: 0.45;
  animation: hmc-orbit-spin 14s linear infinite;
  filter: blur(22px);
}

.hmc-launch__frame {
  position: relative;
  z-index: 1;
  padding: 0.75rem 0.95rem 0.65rem;
  border-radius: calc(var(--r) - 2px);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(8, 6, 18, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px) saturate(1.3);
}

.hmc-launch__frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    120deg,
    rgba(62, 255, 208, 0.35),
    rgba(167, 139, 250, 0.18) 50%,
    rgba(255, 107, 74, 0.25)
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.hmc-launch__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
}

.hmc-launch__brand {
  flex: 1 1 11rem;
  min-width: 0;
}

.hmc-launch__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.3rem;
  padding: 0.15rem 0.55rem;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--void);
  background: linear-gradient(90deg, var(--mint), #7dffe8);
  border-radius: 999px;
  box-shadow: 0 0 16px rgba(62, 255, 208, 0.28);
}

.hmc-launch__ticker {
  padding-left: 0.35rem;
  margin-left: 0.15rem;
  border-left: 1px solid rgba(5, 4, 10, 0.25);
  letter-spacing: 0.1em;
}

.hmc-launch__badge-dot {
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--void);
  animation: hmc-pulse-dot 1.4s ease-in-out infinite;
}

.hmc-launch__title {
  margin: 0;
  font-family: "Orbitron", "Syne", var(--font-sans);
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.03em;
  background: linear-gradient(95deg, #fff 0%, var(--mint) 50%, var(--violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hmc-launch__when {
  margin: 0.2rem 0 0;
  font-size: 0.72rem;
  color: var(--muted);
}

.hmc-launch__when time {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--muted);
}

.hmc-launch__countdown {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.2rem;
  flex: 0 1 auto;
}

.hmc-unit {
  flex: 0 0 auto;
}

.hmc-unit__shell {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.15rem;
  min-width: 2.65rem;
  padding: 0.28rem 0.38rem;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.22));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.hmc-unit__value {
  font-family: "Orbitron", var(--font-mono);
  font-size: clamp(1.05rem, 2.8vw, 1.45rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--text);
  text-shadow: 0 0 16px rgba(62, 255, 208, 0.2);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s;
}

.hmc-unit--tick .hmc-unit__value {
  transform: scale(1.08);
  color: var(--mint);
}

.hmc-unit__label {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.85;
}

.hmc-launch__sep {
  font-family: "Orbitron", var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--violet);
  opacity: 0.7;
  animation: hmc-sep-blink 1s step-end infinite;
  user-select: none;
  line-height: 1;
  padding-bottom: 0.05rem;
}

.hmc-launch__progress {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.5rem 0.65rem;
  margin-top: 0.55rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.hmc-launch__progress-label {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.hmc-launch__progress-pct {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--mint);
  min-width: 2rem;
  text-align: right;
}

.hmc-launch__progress-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.hmc-launch__progress-fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--violet), var(--mint), var(--coral));
  background-size: 200% 100%;
  animation: hmc-progress-shimmer 3s linear infinite;
  transition: width 1s ease;
  box-shadow: 0 0 8px rgba(62, 255, 208, 0.35);
}

.hmc-launch--live .hmc-launch__badge {
  background: linear-gradient(90deg, var(--coral), var(--rose));
  color: #fff;
}

.hmc-launch--live .hmc-launch__row,
.hmc-launch--live .hmc-launch__progress {
  display: none;
}

.hmc-launch__live {
  display: none;
  text-align: center;
  padding: 0.35rem 0.25rem 0.15rem;
}

.hmc-launch--live .hmc-launch__live {
  display: block;
}

.hmc-launch__live-title {
  margin: 0 0 0.15rem;
  font-family: "Orbitron", var(--font-sans);
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--mint);
  text-shadow: 0 0 20px rgba(62, 255, 208, 0.4);
  animation: hmc-live-glow 2s ease-in-out infinite alternate;
}

.hmc-launch__live-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

@keyframes hmc-orbit-spin {
  to {
    --hmc-orbit: 360deg;
  }
}

@property --hmc-orbit {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@keyframes hmc-pulse-dot {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

@keyframes hmc-sep-blink {
  0%,
  49% {
    opacity: 0.7;
  }
  50%,
  100% {
    opacity: 0.2;
  }
}

@keyframes hmc-progress-shimmer {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

@keyframes hmc-live-glow {
  from {
    filter: brightness(1);
  }
  to {
    filter: brightness(1.2);
  }
}

@media (max-width: 520px) {
  .hmc-launch__row {
    flex-direction: column;
    align-items: stretch;
  }

  .hmc-launch__countdown {
    justify-content: center;
  }

  .hmc-launch__sep {
    display: none;
  }

  .hmc-unit__shell {
    min-width: 2.45rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hmc-launch__orbit,
  .hmc-launch__sep,
  .hmc-launch__progress-fill,
  .hmc-launch__badge-dot,
  .hmc-launch__live-title {
    animation: none;
  }

  .hmc-unit__value {
    transition: none;
  }
}
