
:root {
  --sst-primary: #45116B;
  --sst-secondary: #37067B;
  --sst-soft: #F4EFFE;
  --sst-text: #28143d;
}

.sst-wrap {
  width: 100%;
  max-width: 760px;
  margin: 10px auto 18px;
  font-family: inherit;
}

.sst-wrap [hidden] {
  display: none !important;
}

.sst-panel,
.sst-stage {
  width: 100%;
}

.sst-panel {
  text-align: center;
}

.sst-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.sst-runner {
  width: min(520px, 100%);
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: stretch;
  gap: 14px;
  margin: 0 auto;
}

.sst-go-button {
  width: 112px;
  height: 112px;
  border: 2px solid rgba(244,239,254,.82);
  border-radius: 50%;
  background: linear-gradient(145deg, var(--sst-primary), var(--sst-secondary));
  color: #fff;
  font: inherit;
  font-size: 26px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(30, 5, 55, .20);
  transition: transform .2s ease, opacity .2s ease, box-shadow .2s ease;
}

.sst-go-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(30, 5, 55, .28);
}

.sst-go-button:disabled {
  cursor: wait;
  opacity: .68;
}

.sst-stage[data-sst-stage="running"] .sst-go-button {
  animation: sstPulse 1.4s ease-in-out infinite;
}

.sst-live-panel {
  min-height: 112px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 16px 22px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 20px;
  background: rgba(255,255,255,.10);
  box-shadow: 0 12px 30px rgba(34,5,61,.08);
  backdrop-filter: blur(5px);
  text-align: left;
  box-sizing: border-box;
}

.sst-phase {
  margin-bottom: 5px;
  color: rgba(255,255,255,.76);
  font-size: 14px;
  font-weight: 600;
}

.sst-live-number {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: #fff;
}

.sst-live-number strong {
  font-size: clamp(38px, 6vw, 58px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.035em;
}

.sst-live-number span {
  font-size: 17px;
  font-weight: 500;
  color: rgba(255,255,255,.78);
}

.sst-progress {
  width: min(520px, 100%);
  margin: 0 auto;
}

.sst-progress-track {
  width: 100%;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  box-shadow: inset 0 1px 3px rgba(35, 4, 60, .12);
}

.sst-progress-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--sst-soft), #fff);
  transition: width .28s ease;
}

.sst-progress-text {
  display: block;
  margin-top: 8px;
  color: rgba(255,255,255,.72);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
}

.sst-metrics {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.sst-metric {
  min-height: 82px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 13px 10px;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 17px;
  background: rgba(255,255,255,.09);
  color: #fff;
  box-shadow: 0 10px 24px rgba(34,5,61,.07);
  backdrop-filter: blur(4px);
  box-sizing: border-box;
}

.sst-metric span {
  color: rgba(255,255,255,.72);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.sst-metric strong {
  color: #fff;
  font-size: clamp(18px, 2.4vw, 25px);
  font-weight: 600;
  line-height: 1.15;
  white-space: nowrap;
}

.sst-client {
  margin-top: 8px;
  color: rgba(255,255,255,.72);
  font-size: 12px;
  text-align: center;
}

.sst-error,
.sst-result-summary {
  width: 100%;
  margin-top: 16px;
  padding: 18px;
  border-radius: 18px;
  box-sizing: border-box;
  text-align: center;
}

.sst-error {
  border: 1px solid #ffcaca;
  background: rgba(255,240,240,.96);
  color: #9c1d1d;
  font-weight: 600;
}

.sst-result-summary {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(244,239,254,.97);
  color: var(--sst-primary);
}

.sst-result-summary strong {
  font-size: clamp(21px, 2.5vw, 28px);
  font-weight: 650;
}

.sst-result-summary span {
  color: var(--sst-text);
  font-size: 16px;
  font-weight: 400;
}

.sst-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: 3px;
  padding: 0 19px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--sst-primary), var(--sst-secondary));
  color: #fff;
  text-decoration: none;
  font-weight: 650;
}

.sst-disclaimer,
.sst-cloudflare-notice {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  line-height: 1.55;
}

.sst-disclaimer {
  margin-top: 12px;
  margin-bottom: 0;
  color: rgba(255,255,255,.68);
  font-size: 11px;
}

.sst-cloudflare-notice {
  margin-top: 5px;
  margin-bottom: 0;
  color: rgba(255,255,255,.54);
  font-size: 10px;
}

@keyframes sstPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(.96); }
}

@media (max-width: 720px) {
  .sst-wrap {
    max-width: 610px;
  }

  .sst-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .sst-wrap {
    margin-top: 6px;
  }

  .sst-stage {
    gap: 13px;
  }

  .sst-runner {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 10px;
  }

  .sst-go-button {
    width: 92px;
    height: 92px;
    font-size: 22px;
  }

  .sst-live-panel {
    min-height: 92px;
    padding: 13px 15px;
    border-radius: 16px;
  }

  .sst-phase {
    font-size: 12px;
  }

  .sst-live-number strong {
    font-size: 34px;
  }

  .sst-live-number span {
    font-size: 13px;
  }

  .sst-metrics {
    gap: 9px;
  }

  .sst-metric {
    min-height: 74px;
    padding: 11px 8px;
    border-radius: 14px;
  }

  .sst-metric strong {
    font-size: 19px;
  }

  .sst-progress-text {
    font-size: 10.5px;
  }
}
