/* Start-B quiz overlay — same tokens as start-b.css */

.start-b-quiz-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  max-width: 320px;
  margin: 0;
  padding: 0.7rem 1.1rem;
  border: 1.5px solid var(--sb-primary, #1f3c88);
  border-radius: 12px;
  background: transparent;
  color: var(--sb-primary, #1f3c88);
  font-family: var(--sb-font, "Exo 2", system-ui, sans-serif);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

.start-b-screen2-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  padding: 1rem 0 0.35rem;
}

.start-b-full-portfolio-status {
  margin: 0;
  max-width: 320px;
  text-align: center;
  font-size: 0.85rem;
  color: #b42318;
}

.start-b-fp-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.start-b-fp-modal.d-none {
  display: none;
}

.start-b-fp-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(15, 23, 42, 0.45);
  cursor: pointer;
}

.start-b-fp-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 22rem);
  padding: 1.35rem 1.2rem 1.2rem;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.28);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.start-b-fp-modal-title {
  margin: 0;
  font-family: "Tektur", var(--sb-font, "Exo 2", system-ui, sans-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--sb-primary, #1f3c88);
}

.start-b-fp-modal-body {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--sb-text, #212529);
}

.start-b-quiz-cta:hover,
.start-b-quiz-cta:focus-visible {
  background: var(--sb-primary-soft, rgba(31, 60, 136, 0.1));
}

.start-b-quiz-cta:active {
  transform: scale(0.98);
}

#start-b-quiz {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  height: 100svh;
  max-height: 100svh;
  background: var(--sb-bg, #f8f9fa);
  color: var(--sb-text, #212529);
  font-family: var(--sb-font, "Exo 2", system-ui, sans-serif);
  overflow: hidden;
}

#start-b-quiz.d-none {
  display: none !important;
}

.start-b-quiz-header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  padding-top: max(0.75rem, env(safe-area-inset-top, 0px));
}

.start-b-quiz-close {
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 12px;
  background: var(--sb-primary-soft, rgba(31, 60, 136, 0.1));
  color: var(--sb-primary, #1f3c88);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.start-b-quiz-progress {
  flex: 1 1 auto;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sb-muted, #6c757d);
  letter-spacing: 0.02em;
}

.start-b-quiz-progress-dots {
  display: inline-flex;
  gap: 0.35rem;
  vertical-align: middle;
  margin-right: 0.45rem;
}

.start-b-quiz-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: rgba(31, 60, 136, 0.22);
}

.start-b-quiz-dot.is-on {
  background: var(--sb-primary, #1f3c88);
}

.start-b-quiz-spacer {
  width: 2.5rem;
  height: 2.5rem;
}

.start-b-quiz-stage {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  padding: 0.5rem 1.25rem 1.5rem;
  padding-bottom: max(1.5rem, env(safe-area-inset-bottom, 0px));
  min-height: 0;
}

.start-b-quiz-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  text-align: center;
  min-height: 0;
}

.start-b-quiz-step.d-none {
  display: none !important;
}

.start-b-quiz-emoji {
  font-size: 3rem;
  line-height: 1;
}

.start-b-quiz-phrase,
.start-b-quiz-question,
.start-b-quiz-result-title {
  margin: 0;
  font-family: var(--sb-display, Tektur, "Exo 2", sans-serif);
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1.3;
  color: var(--sb-text, #212529);
}

.start-b-quiz-result-body,
.start-b-quiz-lead-hint,
.start-b-quiz-qr-hint {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--sb-muted, #6c757d);
}

.start-b-quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: 100%;
  margin-top: 0.35rem;
}

.start-b-quiz-option {
  width: 100%;
  min-height: 52px;
  padding: 0.75rem 1rem;
  border: 1.5px solid rgba(31, 60, 136, 0.35);
  border-radius: 12px;
  background: #fff;
  color: var(--sb-text, #212529);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.12s ease;
}

.start-b-quiz-option:hover,
.start-b-quiz-option:focus-visible {
  border-color: var(--sb-primary, #1f3c88);
  background: var(--sb-primary-soft, rgba(31, 60, 136, 0.1));
}

.start-b-quiz-option:active {
  transform: scale(0.98);
}

.start-b-quiz-option.is-selected {
  background: var(--sb-primary, #1f3c88);
  border-color: var(--sb-primary, #1f3c88);
  color: #fff;
}

.start-b-quiz-option:disabled {
  cursor: default;
  opacity: 1;
}

.start-b-quiz-feda-flash {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%) scale(0.85);
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: #198754;
  color: #fff;
  font-family: var(--sb-display, Tektur, sans-serif);
  font-weight: 700;
  font-size: 1.05rem;
  opacity: 0;
  pointer-events: none;
  z-index: 5;
}

.start-b-quiz-feda-flash.is-on {
  animation: start-b-quiz-feda-pop 0.7s ease forwards;
}

@keyframes start-b-quiz-feda-pop {
  0% {
    opacity: 0;
    transform: translate(-50%, -40%) scale(0.7);
  }
  25% {
    opacity: 1;
    transform: translate(-50%, -55%) scale(1.05);
  }
  70% {
    opacity: 1;
    transform: translate(-50%, -60%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -70%) scale(0.95);
  }
}

.start-b-quiz-primary,
.start-b-quiz-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 320px;
  min-height: 48px;
  padding: 0.75rem 1.1rem;
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: 0;
}

.start-b-quiz-primary {
  background: var(--sb-primary, #1f3c88);
  color: #fff;
}

.start-b-quiz-primary:hover,
.start-b-quiz-primary:focus-visible {
  background: var(--sb-primary-hover, #18306e);
}

.start-b-quiz-primary:disabled {
  opacity: 0.55;
  cursor: wait;
}

.start-b-quiz-secondary {
  background: transparent;
  border: 1.5px solid var(--sb-primary, #1f3c88);
  color: var(--sb-primary, #1f3c88);
}

.start-b-quiz-field {
  width: 100%;
  max-width: 320px;
  text-align: left;
}

.start-b-quiz-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sb-muted, #6c757d);
}

.start-b-quiz-field input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid rgba(31, 60, 136, 0.28);
  border-radius: 12px;
  background: #fff;
  font-family: inherit;
  font-size: 1rem;
  color: var(--sb-text, #212529);
}

.start-b-quiz-check {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  width: 100%;
  max-width: 320px;
  text-align: left;
  font-size: 0.9rem;
  color: var(--sb-text, #212529);
  cursor: pointer;
}

.start-b-quiz-check input {
  margin-top: 0.2rem;
  flex: 0 0 auto;
}

.start-b-quiz-error {
  margin: 0;
  font-size: 0.85rem;
  color: #b02a37;
}

.start-b-quiz-qr-box {
  width: 168px;
  height: 168px;
  border-radius: 16px;
  border: 1.5px dashed rgba(31, 60, 136, 0.35);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.35rem;
  color: var(--sb-primary, #1f3c88);
  font-weight: 600;
  font-size: 0.9rem;
}

.start-b-quiz-qr-box i {
  font-size: 2.4rem;
}

.start-b-quiz-row {
  display: flex;
  gap: 0.65rem;
  width: 100%;
  max-width: 320px;
}

.start-b-quiz-row .start-b-quiz-primary,
.start-b-quiz-row .start-b-quiz-secondary {
  flex: 1 1 0;
  max-width: none;
  min-width: 0;
  font-size: 0.92rem;
  padding: 0.65rem 0.5rem;
}

.start-b-quiz-stage--question {
  position: relative;
}

@media (prefers-reduced-motion: reduce) {
  .start-b-quiz-option,
  .start-b-quiz-cta,
  .start-b-quiz-primary {
    transition: none;
  }

  .start-b-quiz-option:active,
  .start-b-quiz-cta:active {
    transform: none;
  }

  .start-b-quiz-feda-flash.is-on {
    animation: none;
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}
