:root {
  color-scheme: dark;
  font-family: "DM Sans", sans-serif;
  background: #0a0a0a;
  color: #f5f2e9;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 15% 15%, rgba(239, 255, 86, 0.08), transparent 26rem),
    radial-gradient(circle at 85% 85%, rgba(117, 96, 255, 0.1), transparent 28rem),
    #0a0a0a;
}

body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.25;
  background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
}

button {
  font: inherit;
}

.shell {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 100vh;
  padding: 32px 20px;
}

.card {
  width: min(100%, 620px);
  padding: clamp(28px, 6vw, 56px);
  border: 1px solid #292929;
  border-radius: 28px;
  background: rgba(17, 17, 17, 0.9);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(16px);
}

.eyebrow {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid #313131;
  border-radius: 999px;
  color: #b8b8b0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #efff56;
  box-shadow: 0 0 12px rgba(239, 255, 86, 0.8);
}

.intro {
  margin: 38px 0 34px;
}

.kicker {
  margin: 0 0 9px;
  color: #efff56;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  max-width: 480px;
  margin: 0;
  font-size: clamp(2.4rem, 8vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.description {
  max-width: 430px;
  margin: 22px 0 0;
  color: #a5a49e;
  font-size: 1.02rem;
  line-height: 1.6;
}

.counter-panel {
  display: grid;
  min-height: 190px;
  padding: 24px 26px;
  border: 1px solid #303030;
  border-radius: 20px;
  background: #0d0d0d;
}

.counter-label,
.updated {
  color: #7e7e78;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.count {
  align-self: center;
  overflow: hidden;
  color: #f7f5ed;
  font-family: "Space Mono", monospace;
  font-size: clamp(4.2rem, 15vw, 7rem);
  line-height: 1;
  letter-spacing: -0.08em;
  text-overflow: ellipsis;
}

.updated {
  align-self: end;
  text-transform: none;
}

.actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin-top: 16px;
}

.actions button {
  min-height: 56px;
  padding: 0 22px;
  border-radius: 15px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 150ms ease, opacity 150ms ease, border-color 150ms ease;
}

.actions button:not(:disabled):active {
  transform: scale(0.98);
}

.actions button:disabled {
  cursor: wait;
  opacity: 0.48;
}

.primary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 0;
  background: #efff56;
  color: #101107;
}

.primary:hover:not(:disabled) {
  background: #f5ff91;
}

.secondary {
  border: 1px solid #353535;
  background: transparent;
  color: #d7d5ce;
}

.secondary:hover:not(:disabled) {
  border-color: #65655f;
}

.message {
  min-height: 20px;
  margin: 15px 2px 0;
  color: #ff8d8d;
  font-size: 0.86rem;
}

footer {
  display: flex;
  gap: 8px;
  margin-top: 24px;
  color: #5e5e59;
  font-size: 0.76rem;
}

footer span {
  color: #898983;
}

@media (max-width: 520px) {
  .actions {
    grid-template-columns: 1fr;
  }

  footer {
    display: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .count.bump {
    animation: bump 220ms ease;
  }

  @keyframes bump {
    50% {
      transform: translateY(-4px);
      color: #efff56;
    }
  }
}

