:root {
  --helix-black-0: #050505;
  --helix-black-1: #0b0b0b;
  --helix-black-2: #121212;
  --helix-green-1: #049d0c;
  --helix-green-2: #196614;
  --helix-green-3: #30e004;
  --helix-text: #edf7f1;
}

.helix-demo-cta {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 12000;
  width: min(92vw, 390px);
  border: 1px solid rgba(79, 221, 143, 0.36);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(17, 17, 17, 0.97), rgba(7, 7, 7, 0.98));
  color: var(--helix-text);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.44);
  padding: 16px;
  text-align: center;
  display: none;
}

.helix-demo-cta.is-visible {
  display: block;
}

.helix-demo-cta__title {
  margin: 0 0 10px 0;
  font-size: 1.02rem;
  font-weight: 800;
  color: #dff6e8;
}

.helix-demo-cta__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 230px;
  max-width: 88%;
  margin-left: auto;
  margin-right: auto;
  text-decoration: none;
  color: #05140d;
  background: linear-gradient(120deg, var(--helix-green-2), var(--helix-green-1));
  border: 1px solid rgba(183, 248, 214, 0.66);
  border-radius: 13px;
  padding: 11px 13px;
  font-size: 0.94rem;
  font-weight: 900;
  box-shadow: 0 12px 22px rgba(24, 164, 95, 0.32);
}

.helix-demo-cta__continue {
  display: block;
  margin-top: 8px;
  font-size: 0.76rem;
  color: #cae9d8;
  opacity: 0.88;
  text-decoration: underline;
  cursor: pointer;
}

.helix-demo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(87, 228, 148, 0.56);
  background: rgba(19, 68, 44, 0.32);
  color: #d9f9e7;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 6px 18px rgba(24, 164, 95, 0.16);
}

body.helix-demo-active .wording-bad,
body.helix-demo-active .retry-text,
body.helix-demo-active .end-text,
body.helix-demo-active .play-text {
  display: none !important;
}

body.helix-demo-active .score-container,
body.helix-demo-active .score-container .best-score,
body.helix-demo-active .score-container .normal-score,
body.helix-demo-active .score-container .new-best-score,
body.helix-demo-active .score-add {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

.helix-demo-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 13000;
  background:
    radial-gradient(780px 420px at 50% -10%, rgba(52, 255, 149, 0.12), rgba(0, 0, 0, 0) 62%),
    linear-gradient(180deg, rgba(2, 7, 12, 0.82), rgba(1, 4, 8, 0.9));
  backdrop-filter: blur(7px);
}

.helix-demo-modal.is-visible {
  display: flex;
  animation: helix-modal-backdrop-in 180ms ease-out both;
}

.helix-demo-modal__card {
  width: min(95vw, 600px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(circle at 10% 6%, rgba(53, 255, 149, 0.12), rgba(53, 255, 149, 0) 30%),
    linear-gradient(170deg, rgba(15, 23, 36, 0.97), rgba(10, 14, 24, 0.97));
  box-shadow:
    0 36px 72px rgba(0, 0, 0, 0.58),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  padding: 28px 24px;
  color: var(--helix-text);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.helix-demo-modal__card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0), rgba(82, 255, 170, 0.92), rgba(0, 0, 0, 0));
  pointer-events: none;
}

.helix-demo-modal__title {
  margin: 0;
  font-size: clamp(1.7rem, 3.2vw, 2.2rem);
  line-height: 1.05;
  text-transform: uppercase;
  color: #f3d409;
  font-family: "Junegull-Regular", "Segoe UI", sans-serif;
  letter-spacing: 0.02em;
  text-shadow: 0 6px 18px rgba(9, 15, 22, 0.4);
  position: relative;
  z-index: 1;
}

.helix-demo-modal__line {
  margin: 11px 0 0 0;
  color: #b6c8dd;
  line-height: 1.4;
  font-size: 1.06rem;
  font-family: "Junegull-Regular", "Segoe UI", sans-serif;
  letter-spacing: 0.02em;
  position: relative;
  z-index: 1;
}

.helix-demo-modal__amount {
  margin: 13px 0 18px 0;
  font-size: clamp(2rem, 4vw, 2.45rem);
  font-weight: 900;
  color: #67ffb4;
  font-family: "voodoo_casual-bold", "Segoe UI", sans-serif;
  text-shadow: 0 10px 22px rgba(52, 255, 149, 0.28);
  position: relative;
  z-index: 1;
}

.helix-demo-modal__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 280px;
  max-width: 88%;
  margin-left: auto;
  margin-right: auto;
  margin-top: 10px;
  padding: 13px 17px;
  border-radius: 14px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #e9ffef;
  font-family: "Junegull-Regular", "Segoe UI", sans-serif;
  background: linear-gradient(135deg, #0f602f, #0f8e43);
  border: 1px solid rgba(74, 255, 164, 0.38);
  box-shadow:
    0 18px 38px rgba(6, 42, 22, 0.5),
    0 0 0 1px rgba(74, 255, 164, 0.14);
  position: relative;
  z-index: 1;
}

.helix-demo-modal.is-visible .helix-demo-modal__card {
  animation: helix-modal-card-in 230ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.helix-demo-modal.is-visible .helix-demo-modal__cta {
  animation: helix-modal-cta-in 280ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes helix-modal-backdrop-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes helix-modal-card-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes helix-modal-cta-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 700px) {
  .helix-demo-modal__card {
    width: min(94vw, 500px);
    padding: 22px 14px;
    border-radius: 18px;
  }

  .helix-demo-modal__title {
    font-size: 1.75rem;
  }

  .helix-demo-modal__line {
    font-size: 0.98rem;
  }

  .helix-demo-modal__amount {
    font-size: 2rem;
  }

  .helix-demo-modal__cta {
    min-width: 220px;
    font-size: 0.9rem;
    padding: 11px 14px;
  }
}
