.spt-test {
  --spt-border: #d7dde5;
  --spt-text: #172033;
  --spt-muted: #5f6b7a;
  --spt-accent: #0f766e;
  --spt-accent-dark: #115e59;
  color: var(--spt-text);
  max-width: 920px;
  margin: 0 auto;
}

.spt-intro,
.spt-runner,
.spt-done,
.spt-empty {
  border: 1px solid var(--spt-border);
  border-radius: 8px;
  padding: 24px;
  background: #fff;
}

.spt-field {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.spt-intro-header {
  margin: 0 0 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--spt-border);
}

.spt-intro-kicker {
  margin: 0 0 6px;
  color: var(--spt-accent);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.spt-intro-header h2 {
  margin: 0 0 10px;
  font-size: 26px;
  line-height: 1.2;
}

.spt-intro-header p:not(.spt-intro-kicker) {
  max-width: 720px;
  margin: 0 0 8px;
  color: var(--spt-muted);
  line-height: 1.55;
}

.spt-intro-header p:last-child {
  margin-bottom: 0;
}

.spt-field label,
.spt-field span,
.spt-consent {
  font-weight: 650;
}

.spt-field input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--spt-border);
  border-radius: 6px;
  padding: 8px 10px;
  font: inherit;
}

.spt-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0;
  color: var(--spt-muted);
}

.spt-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  background: var(--spt-accent);
  color: #fff;
  padding: 10px 18px;
  font-weight: 700;
  cursor: pointer;
}

.spt-button:hover,
.spt-button:focus {
  background: var(--spt-accent-dark);
  color: #fff;
}

.spt-button:disabled {
  cursor: not-allowed;
  opacity: .5;
}

.spt-intro-note {
  max-width: 720px;
  margin: 16px 0 0;
  color: var(--spt-muted);
  font-size: 14px;
  line-height: 1.5;
}

.spt-button-secondary {
  background: #e8edf2;
  color: var(--spt-text);
}

.spt-button-secondary:hover,
.spt-button-secondary:focus {
  background: #d7dde5;
  color: var(--spt-text);
}

.spt-progress {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}

.spt-progress-text {
  color: var(--spt-muted);
  font-weight: 700;
}

.spt-progress-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8edf2;
}

.spt-progress-track span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--spt-accent);
  transition: width .2s ease;
}

.spt-question {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.25;
}

.spt-hint {
  margin: 0 0 16px;
  color: var(--spt-muted);
}

.spt-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.spt-option {
  position: relative;
  border: 1px solid var(--spt-border);
  border-radius: 8px;
  padding: 0;
  background: #fff;
  cursor: grab;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .06);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.spt-option.is-dragging {
  opacity: .28;
  z-index: 5;
  outline: 2px dashed var(--spt-accent);
  outline-offset: -6px;
}

.spt-drag-ghost {
  position: fixed !important;
  z-index: 999999 !important;
  margin: 0 !important;
  pointer-events: none !important;
  opacity: .92 !important;
  cursor: grabbing;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .24) !important;
  transform-origin: top left;
}

.spt-option:active {
  cursor: grabbing;
}

.spt-rank {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(224, 242, 241, .95);
  color: var(--spt-accent-dark);
  font-size: 20px;
  font-weight: 900;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .16);
}

.spt-sport-label {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 1;
  max-width: calc(100% - 24px);
  border-radius: 6px;
  background: rgba(15, 23, 42, .82);
  color: #fff;
  padding: 7px 10px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
  box-shadow: 0 2px 10px rgba(15, 23, 42, .2);
}

.spt-option img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 0;
  object-fit: cover;
  background: #eef2f6;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

body.spt-is-dragging {
  overscroll-behavior: none;
}

.spt-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
}

.spt-error {
  margin-top: 14px;
  border-left: 4px solid #dc2626;
  background: #fef2f2;
  color: #991b1b;
  padding: 10px 12px;
}

.spt-done {
  border-color: #9bd4c7;
  background: #effaf7;
}

.spt-done-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.spt-done-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: var(--spt-accent);
  color: #fff;
  font-size: 24px;
  font-weight: 900;
}

.spt-done h3,
.spt-done h4,
.spt-done h5,
.spt-done p {
  margin-top: 0;
}

.spt-done h3 {
  margin-bottom: 8px;
  font-size: 25px;
  line-height: 1.2;
}

.spt-done h4 {
  margin-bottom: 8px;
  font-size: 18px;
}

.spt-done h5 {
  margin-bottom: 8px;
  font-size: 15px;
}

.spt-done p {
  color: var(--spt-muted);
  line-height: 1.55;
}

.spt-done-panel {
  margin: 22px 0;
  border: 1px solid #c8e5dd;
  border-radius: 8px;
  background: #fff;
  padding: 18px;
}

.spt-payment-methods {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.spt-payment-method {
  border: 1px solid var(--spt-border);
  border-radius: 8px;
  padding: 14px;
  background: #f8fafc;
}

.spt-payment-method ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--spt-muted);
  font-size: 14px;
  line-height: 1.4;
}

.spt-payment-amount,
.spt-payment-reference {
  margin-bottom: 6px;
  color: var(--spt-text) !important;
  font-weight: 750;
}

.spt-done-note {
  margin-bottom: 0;
  font-size: 14px;
}

.spt-done-review {
  color: var(--spt-text) !important;
}

.spt-order-confirmation {
  --spt-border: #d7dde5;
  --spt-text: #172033;
  --spt-muted: #5f6b7a;
  --spt-accent: #0f766e;
  max-width: 920px;
  margin: 34px 0;
  border: 1px solid var(--spt-border);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  color: var(--spt-text);
}

.spt-order-confirmation-header,
.spt-order-confirmation-body,
.spt-order-confirmation-note {
  padding: 24px;
}

.spt-order-confirmation-header {
  border-bottom: 1px solid var(--spt-border);
}

.spt-order-confirmation-eyebrow {
  margin: 0 0 6px;
  color: var(--spt-accent);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.spt-order-confirmation h2,
.spt-order-confirmation h3,
.spt-order-confirmation h4,
.spt-order-confirmation p {
  margin-top: 0;
}

.spt-order-confirmation h2 {
  margin-bottom: 8px;
  font-size: 26px;
  line-height: 1.2;
}

.spt-order-confirmation h3 {
  margin-bottom: 16px;
  font-size: 18px;
}

.spt-order-confirmation h4 {
  margin-bottom: 4px;
  font-size: 16px;
}

.spt-order-confirmation p {
  color: var(--spt-muted);
  line-height: 1.55;
}

.spt-order-confirmation-header p:last-child,
.spt-order-confirmation-note p:last-child {
  margin-bottom: 0;
}

.spt-order-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.spt-order-steps li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
}

.spt-order-steps li > span {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--spt-accent) !important;
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
}

.spt-order-steps p {
  margin-bottom: 0;
  font-size: 14px;
}

.spt-order-confirmation-note {
  border-top: 1px solid #c8e5dd;
  background: #effaf7;
}

.spt-order-confirmation-note h3 {
  margin-bottom: 6px;
  font-size: 16px;
}

@media (max-width: 720px) {
  .spt-intro,
  .spt-runner,
  .spt-done,
  .spt-empty {
    padding: 16px;
  }

  .spt-options {
    gap: 12px;
  }

  .spt-rank {
    width: 36px;
    height: 36px;
    font-size: 17px;
  }

  .spt-sport-label {
    right: 10px;
    bottom: 10px;
    font-size: 13px;
    padding: 6px 8px;
  }

  .spt-done-header {
    gap: 12px;
  }

  .spt-payment-methods {
    grid-template-columns: 1fr;
  }

  .spt-order-confirmation-header,
  .spt-order-confirmation-body,
  .spt-order-confirmation-note {
    padding: 18px;
  }

  .spt-order-steps {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
