.opo3-test {
  --opo3-blue: #2f6fec;
  --opo3-blue-dark: #1e4fb0;
  --opo3-ink: #0f172a;
  --opo3-muted: #64748b;
  --opo3-border: #dbe3ef;
  --opo3-surface: #f8fafc;
  box-sizing: border-box;
  width: 100%;
  max-width: 760px;
  margin: 28px auto;
  color: var(--opo3-ink);
  font-family: inherit;
}

.opo3-test *,
.opo3-test *::before,
.opo3-test *::after {
  box-sizing: border-box;
}

.opo3-test .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.opo3-test__screen,
.opo3-test--unavailable {
  padding: clamp(22px, 5vw, 46px);
  border: 1px solid var(--opo3-border);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.opo3-test__intro {
  min-height: 280px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 28px;
  text-align: center;
}

.opo3-test__title,
.opo3-test__cta-title {
  margin: 0;
  color: var(--opo3-ink);
  font-size: clamp(30px, 6vw, 48px);
  line-height: 1.08;
}

.opo3-test__primary,
.opo3-test__secondary,
.opo3-test__store {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 12px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.opo3-test__primary {
  border: 1px solid var(--opo3-blue);
  background: var(--opo3-blue);
  color: #fff;
  box-shadow: 0 8px 20px rgba(47, 111, 236, 0.25);
}

.opo3-test__primary:hover,
.opo3-test__primary:focus-visible {
  background: var(--opo3-blue-dark);
  transform: translateY(-1px);
}

.opo3-test__primary:disabled {
  border-color: #cbd5e1;
  background: #cbd5e1;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.opo3-test__question-header {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.opo3-test__progress {
  color: var(--opo3-muted);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.opo3-test__tag {
  padding: 5px 10px;
  border-radius: 999px;
  background: #e5efff;
  color: var(--opo3-blue-dark);
  font-size: 13px;
  font-weight: 700;
}

.opo3-test__prompt {
  margin: 0 0 24px;
  font-size: clamp(22px, 4vw, 30px);
  line-height: 1.25;
}

.opo3-test__options {
  display: grid;
  gap: 12px;
  margin: 0 0 24px;
  padding: 0;
  border: 0;
}

.opo3-test__option {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: center;
  padding: 15px;
  border: 1px solid var(--opo3-border);
  border-radius: 13px;
  background: #fff;
  cursor: pointer;
}

.opo3-test__option:hover,
.opo3-test__option:has(input:checked) {
  border-color: var(--opo3-blue);
  background: #f3f8ff;
}

.opo3-test__option:has(input:focus-visible),
.opo3-test__primary:focus-visible,
.opo3-test__secondary:focus-visible,
.opo3-test__store:focus-visible {
  outline: 3px solid #f59e0b;
  outline-offset: 3px;
}

.opo3-test__option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.opo3-test__option-key {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--opo3-border);
  border-radius: 9px;
  font-weight: 800;
}

.opo3-test__option:has(input:checked) .opo3-test__option-key {
  border-color: var(--opo3-blue);
  background: var(--opo3-blue);
  color: #fff;
}

.opo3-test__cta {
  margin: calc(clamp(22px, 5vw, 46px) * -1) calc(clamp(22px, 5vw, 46px) * -1) 32px;
  padding: clamp(24px, 5vw, 40px);
  border-radius: 22px 22px 0 0;
  background: linear-gradient(135deg, #102a61, #2f6fec);
  color: #fff;
  text-align: center;
}

.opo3-test__cta-title {
  color: #fff;
  font-size: clamp(24px, 5vw, 36px);
}

.opo3-test__stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 22px;
}

.opo3-test__store {
  min-width: 205px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: #050505;
  color: #fff;
}

.opo3-test__store:hover,
.opo3-test__store:focus-visible {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.opo3-test__score {
  display: grid;
  justify-items: center;
  margin-bottom: 30px;
}

.opo3-test__score-percent {
  font-size: clamp(44px, 10vw, 72px);
  line-height: 1;
}

.opo3-test__score-copy {
  margin-top: 8px;
  color: var(--opo3-muted);
}

.opo3-test__review {
  display: grid;
  gap: 16px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.opo3-test__review-item {
  padding: 18px;
  border-left: 4px solid #b91c1c;
  border-radius: 10px;
  background: var(--opo3-surface);
}

.opo3-test__review-item.is-correct {
  border-left-color: #15803d;
}

.opo3-test__review-prompt {
  margin: 0 0 12px;
  font-size: 18px;
}

.opo3-test__review-item p {
  margin: 7px 0 0;
}

.opo3-test__review-correct {
  color: #15803d;
  font-weight: 700;
}

.opo3-test__review-explanation {
  color: #334155;
}

.opo3-test__secondary {
  border: 1px solid var(--opo3-blue);
  background: #fff;
  color: var(--opo3-blue-dark);
}

.opo3-test-editor__preview {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 16px;
  padding: 14px;
  border-radius: 10px;
  background: #f3f8ff;
}

.opo3-test-editor__preview span {
  color: #64748b;
}

@media (max-width: 600px) {
  .opo3-test__screen {
    padding: 20px;
    border-radius: 16px;
  }

  .opo3-test__cta {
    margin: -20px -20px 28px;
    border-radius: 16px 16px 0 0;
  }

  .opo3-test__question-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .opo3-test__primary,
  .opo3-test__secondary,
  .opo3-test__store {
    width: 100%;
  }
}
