:root {
        --pink: #d63384;
        --pink-dark: #b02a6d;
        --quiz-bg: #0b1220;
        --quiz-card: #101b2b;
        --quiz-line: #1d2c42;
        --quiz-muted: #9fb0c7;
      }

      * {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
      }

      html,
      body {
        min-height: 100%;
        overflow-x: hidden;
      }

      body {
        min-height: 100vh;
        color: #fff;
        font-family:
          "Segoe UI",
          system-ui,
          -apple-system,
          Arial,
          sans-serif;
        background: var(--quiz-bg);
        -webkit-font-smoothing: antialiased;
      }


      [hidden] {
        display: none !important;
      }

      .screen {
        min-height: 100vh;
      }

      .card-wrap {
        max-width: 640px;
        margin: 8px auto 30px;
        padding: 0 14px;
      }

      .card {
        position: relative;
        overflow: hidden;
        padding: 34px 30px 40px;
        background: var(--quiz-card);
        border: 1px solid var(--quiz-line);
        border-radius: 14px;
        box-shadow: 0 8px 30px rgb(0 0 0 / 45%);
      }

      .card h1 {
        margin-bottom: 26px;
        color: #fff;
        font-size: 32px;
        font-weight: 700;
        letter-spacing: -0.3px;
        line-height: 1.45;
        text-align: center;
      }

      .progress {
        overflow: hidden;
        height: 12px;
        margin-bottom: 26px;
        background: #f0f0f0;
        border-radius: 99px;
      }

      .progress-fill {
        height: 100%;
        width: 15%;
        background: var(--pink);
        border-radius: 99px;
        transition: width 0.5s ease;
      }

      .q,
      .loading-screen,
      .result {
        display: none;
        animation: fade-up 0.35s ease;
      }

      .q.active,
      .loading-screen.active,
      .result.active {
        display: block;
      }

      @keyframes fade-up {
        from {
          opacity: 0;
          transform: translateY(12px);
        }
        to {
          opacity: 1;
          transform: none;
        }
      }

      .q h3 {
        margin-bottom: 22px;
        color: #fff;
        font-size: 21px;
        font-weight: 500;
        line-height: 1.4;
        text-align: center;
      }

      .opts {
        display: flex;
        flex-direction: column;
        gap: 10px;
      }

      .opt {
        display: block;
        width: 100%;
        padding: 15px 20px;
        color: #fff;
        font-size: 15px;
        font-weight: 700;
        line-height: 1.35;
        text-align: center;
        background: var(--pink);
        border: 0;
        border-radius: 6px;
        box-shadow: 0 2px 6px rgb(0 0 0 / 35%);
        cursor: pointer;
        transition:
          background 0.15s,
          transform 0.1s;
        user-select: none;
      }

      .opt:hover,
      .opt.selected {
        background: var(--pink-dark);
      }

      .opt:active {
        transform: scale(0.98);
      }

      .loading-screen {
        padding: 32px 0;
        text-align: center;
      }

      .spinner {
        width: 54px;
        height: 54px;
        margin: 0 auto 22px;
        border: 6px solid var(--quiz-line);
        border-top-color: var(--pink);
        border-radius: 50%;
        animation: spin 0.8s linear infinite;
      }

      @keyframes spin {
        to {
          transform: rotate(360deg);
        }
      }

      .loading-screen h3 {
        margin-bottom: 6px;
        color: #fff;
        font-size: 21px;
        font-weight: 600;
        line-height: 1.35;
      }

      .loading-screen p,
      .result p,
      .cta-sub {
        color: var(--quiz-muted);
      }

      .loading-screen p {
        font-size: 16px;
      }

      .result {
        padding: 20px 0;
        text-align: center;
      }

      .qualify-badge {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 20px;
        padding: 11px 26px;
        color: #2ecc71;
        font-size: 16px;
        font-weight: 800;
        letter-spacing: 1px;
        text-transform: uppercase;
        background: rgb(39 174 96 / 12%);
        border: 2px solid #27ae60;
        border-radius: 99px;
      }

      .qualify-badge .check {
        font-size: 22px;
      }

      .result h2 {
        margin-bottom: 14px;
        color: #fff;
        font-size: 26px;
        line-height: 1.35;
      }

      .result p {
        margin-bottom: 20px;
        font-size: 18px;
        line-height: 1.65;
      }

      .result .emp {
        color: #fff;
        font-weight: 700;
      }

      .cta {
        display: block;
        width: 100%;
        margin: 20px 0 14px;
        padding: 20px 24px;
        color: #fff;
        font-size: 20px;
        font-weight: 800;
        line-height: 1.25;
        text-align: center;
        text-decoration: none;
        background: var(--pink);
        border: 0;
        border-radius: 6px;
        box-shadow: 0 3px 10px rgb(0 0 0 / 40%);
        cursor: pointer;
      }

      .cta:hover {
        background: var(--pink-dark);
      }
      .cta-sub {
        margin: 0 0 4px;
        font-size: 15px;
        text-align: center;
      }

      .quiz-footer {
        max-width: 760px;
        margin: 10px auto 40px;
        padding: 0 18px;
        text-align: center;
      }

      .quiz-footer__links {
        margin-bottom: 14px;
        color: var(--quiz-muted);
        font-size: 15px;
      }

      .quiz-footer__links button {
        margin: 0 8px;
        color: #6a9fd8;
      }

      .quiz-footer__disclosure {
        color: #5c6d85;
        font-size: 13px;
        line-height: 1.75;
        text-align: left;
      }

      .legal-link {
        display: inline;
        padding: 0;
        font: inherit;
        background: none;
        border: 0;
        cursor: pointer;
        text-decoration: underline;
      }

      .legal-link:hover,
      .legal-link:focus-visible {
        text-decoration-thickness: 2px;
      }

      .legal-link:focus-visible,
      .legal-modal__close:focus-visible {
        outline: 2px solid currentColor;
        outline-offset: 3px;
      }

      body.modal-open {
        overflow: hidden;
      }

      .legal-modal {
        position: fixed;
        z-index: 1000;
        inset: 0;
        display: grid;
        padding: 20px;
        place-items: center;
        color: #17221b;
        background: rgb(5 10 18 / 72%);
      }

      .legal-modal__dialog {
        position: relative;
        width: min(100%, 760px);
        max-height: min(86vh, 820px);
        overflow-y: auto;
        padding: 38px clamp(22px, 5vw, 48px) 42px;
        background: #fff;
        border-radius: 14px;
        box-shadow: 0 24px 80px rgb(0 0 0 / 38%);
      }

      .legal-modal__close {
        position: absolute;
        top: 14px;
        right: 16px;
        width: 36px;
        height: 36px;
        color: #4b5563;
        font-size: 28px;
        line-height: 1;
        background: transparent;
        border: 0;
        border-radius: 50%;
        cursor: pointer;
      }

      .legal-modal__close:hover {
        color: #111827;
        background: #f3f4f6;
      }

      .legal-modal h2 {
        padding-right: 30px;
        font-size: clamp(1.55rem, 4vw, 2rem);
        line-height: 1.2;
      }

      .legal-modal__updated {
        margin: 8px 0 26px;
        color: #6b7280;
        font-size: 13px;
      }

      .legal-modal__content h3 {
        margin: 24px 0 8px;
        font-size: 1.05rem;
        line-height: 1.35;
      }

      .legal-modal__content p,
      .legal-modal__content li {
        color: #4b5563;
        font-size: 14px;
        line-height: 1.65;
      }

      .legal-modal__content p + p {
        margin-top: 10px;
      }

      .legal-modal__content ul {
        margin: 8px 0 0 20px;
      }

      @media (max-width: 500px) {
        .card {
          padding: 28px 18px 32px;
        }
        .card h1 {
          font-size: 25px;
        }
        .q h3 {
          font-size: 20px;
        }
        .opt {
          padding: 14px;
        }
        .cta {
          padding: 18px 16px;
          font-size: 18px;
        }
        .result h2 {
          font-size: 23px;
        }
        .result p {
          font-size: 17px;
        }
        .legal-modal {
          padding: 10px;
        }
        .legal-modal__dialog {
          max-height: 92vh;
          padding-top: 44px;
        }
      }

      @media (prefers-reduced-motion: reduce) {
        *,
        *::before,
        *::after {
          scroll-behavior: auto !important;
          transition: none !important;
        }
      }
    
.opt:focus-visible, .cta:focus-visible { outline: 3px solid white; outline-offset: 4px; }
.q h3:focus, .result h2:focus { outline: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; } }
