* {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    :root {
      --tt-black: #010101;
      --tt-pink: #FE2C55;
      --tt-pink-dark: #E6244B;
      --tt-cyan: #25F4EE;
      --tt-cyan-dark: #10D9D3;
      --bg: #ffffff;
      --bg-soft: #f8f9fa;
      --neutral-100: #f5f5f5;
      --neutral-200: #e8e8e8;
      --neutral-300: #d1d1d1;
      --neutral-400: #9a9a9a;
      --neutral-600: #666666;
      --neutral-800: #161823;
      --white: #ffffff;
    }

    body {
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
      background: var(--bg);
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      color: var(--neutral-800);
    }

/* MAIN */
    main {
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 48px 24px;
    }

    .card {
      background: var(--white);
      border-radius: 16px;
      box-shadow: 0 8px 32px rgba(22, 24, 35, 0.08), 0 2px 8px rgba(22, 24, 35, 0.04);
      padding: 48px 40px;
      max-width: 520px;
      width: 100%;
      text-align: center;
      border: 1px solid var(--neutral-200);
      border-top: 4px solid var(--tt-pink);
    }

    .card-badge {
      display: inline-block;
      background: transparent;
      color: var(--tt-pink);
      font-size: 0.72rem;
      font-weight: 700;
      letter-spacing: 2px;
      text-transform: uppercase;
      padding: 5px 16px;
      border-radius: 100px;
      border: 1.5px solid var(--tt-pink);
      margin-bottom: 24px;
    }

    .card h1 {
      font-size: 2rem;
      font-weight: 800;
      color: var(--tt-black);
      margin-bottom: 10px;
      line-height: 1.2;
    }

    .card .subtitle {
      font-size: 0.95rem;
      color: var(--neutral-600);
      margin-bottom: 28px;
      line-height: 1.6;
    }

    .card-disclaimer {
      font-size: 0.75rem;
      color: var(--neutral-600);
      background: var(--neutral-100);
      border-radius: 8px;
      padding: 8px 14px;
      margin-bottom: 28px;
      line-height: 1.5;
    }

    .btn-primary {
      display: inline-block;
      background: var(--tt-pink);
      color: var(--white);
      border: none;
      padding: 16px 48px;
      border-radius: 10px;
      font-size: 1.05rem;
      font-weight: 700;
      cursor: pointer;
      transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
      box-shadow: 0 4px 20px rgba(254, 44, 85, 0.28);
      letter-spacing: 0.3px;
    }

    .btn-primary:hover {
      background: var(--tt-pink-dark);
      transform: translateY(-1px);
      box-shadow: 0 6px 24px rgba(254, 44, 85, 0.4);
    }

    /* FOOTER */
    footer {
      background: var(--white);
      color: var(--neutral-600);
      text-align: center;
      padding: 20px 24px;
      font-size: 0.8rem;
      border-top: 1px solid var(--neutral-200);
    }

    footer a {
      color: var(--neutral-600);
      text-decoration: none;
      transition: color 0.2s;
    }

    footer a:hover { color: var(--tt-pink); }

    footer .footer-links {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 8px;
      margin-bottom: 6px;
      flex-wrap: wrap;
    }

    footer .footer-links span { color: var(--neutral-400); }

    footer .footer-info {
      font-size: 0.75rem;
      color: var(--neutral-400);
      line-height: 1.7;
      margin-top: 6px;
    }

    /* NOVO FLUXO — duas escolhas + 1+1 */
    .overlay {
      display: flex;
      position: fixed;
      inset: 0;
      z-index: 100;
      background:
        linear-gradient(145deg, rgba(37,244,238,.055), transparent 38%),
        linear-gradient(325deg, rgba(254,44,85,.06), transparent 42%),
        var(--white);
      align-items: center;
      justify-content: center;
      padding: 24px;
    }

    .popup {
      width: min(100%, 560px);
    }

    .welcome-step,
    .captcha-step {
      width: 100%;
      animation: sceneIn .35s ease;
    }

    .welcome-step.hidden,
    .captcha-step { display: none; }

    .captcha-step.active { display: block; }

    @keyframes sceneIn {
      from { opacity: 0; transform: translateY(10px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .scene-number {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 34px;
      color: var(--neutral-400);
      font-size: .72rem;
      font-weight: 800;
      letter-spacing: .12em;
      text-transform: uppercase;
    }

    .scene-number::before {
      content: "";
      width: 28px;
      height: 3px;
      border-radius: 999px;
      background: var(--tt-pink);
    }

    .choice-title {
      max-width: 500px;
      font-size: clamp(2.25rem, 7vw, 3.65rem);
      line-height: .98;
      letter-spacing: -.055em;
      font-weight: 850;
      color: var(--tt-black);
      margin-bottom: 18px;
    }

    .choice-copy {
      max-width: 430px;
      color: var(--neutral-600);
      line-height: 1.65;
      margin-bottom: 34px;
    }

    .choice-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
    }

    .path-choice {
      min-height: 112px;
      border: 1px solid var(--neutral-200);
      border-radius: 20px;
      background: var(--white);
      padding: 18px;
      text-align: left;
      cursor: pointer;
      transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
    }

    .path-choice:hover {
      transform: translateY(-2px);
      border-color: rgba(254,44,85,.45);
      box-shadow: 0 10px 28px rgba(22,24,35,.07);
    }

    .path-icon {
      display: flex;
      width: 34px;
      height: 34px;
      align-items: center;
      justify-content: center;
      border-radius: 11px;
      margin-bottom: 18px;
      font-size: 1rem;
      font-weight: 900;
    }

    .path-choice:first-child .path-icon {
      color: var(--tt-pink);
      background: rgba(254,44,85,.10);
    }

    .path-choice:last-child .path-icon {
      color: #087d79;
      background: rgba(37,244,238,.14);
    }

    .path-name {
      display: block;
      color: var(--tt-black);
      font-weight: 800;
      font-size: 1rem;
      margin-bottom: 4px;
    }

    .path-small {
      color: var(--neutral-400);
      font-size: .77rem;
    }

    /* segunda tela: composição completamente diferente */
    .math-layout {
      width: 100%;
    }

    .math-topline {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 42px;
      color: var(--neutral-400);
      font-size: .74rem;
      font-weight: 750;
    }

    .math-dot {
      width: 9px;
      height: 9px;
      border-radius: 50%;
      background: var(--tt-cyan);
      box-shadow: 0 0 0 6px rgba(37,244,238,.10);
    }

    .math-question {
      display: flex;
      align-items: baseline;
      gap: 13px;
      margin-bottom: 30px;
      white-space: nowrap;
    }

    .math-question span {
      font-size: clamp(4rem, 15vw, 7.4rem);
      line-height: .9;
      font-weight: 900;
      letter-spacing: -.075em;
      color: var(--tt-black);
    }

    .math-question .math-plus {
      color: var(--tt-pink);
      font-size: clamp(2.7rem, 10vw, 4.8rem);
    }

    .math-question .math-equals {
      color: var(--neutral-300);
      font-size: clamp(2.7rem, 10vw, 4.8rem);
    }

    .answer-row {
      display: flex;
      align-items: stretch;
      gap: 10px;
      width: 100%;
    }

    .answer-box {
      flex: 1;
      min-width: 0;
      height: 68px;
      border: 2px solid var(--neutral-200);
      border-radius: 18px;
      background: var(--white);
      padding: 0 20px;
      font-size: 1.55rem;
      font-weight: 850;
      color: var(--tt-black);
      outline: none;
      transition: border-color .18s ease, box-shadow .18s ease;
    }

    .answer-box:focus {
      border-color: var(--tt-pink);
      box-shadow: 0 0 0 4px rgba(254,44,85,.08);
    }

    .answer-go {
      width: 68px;
      height: 68px;
      flex: 0 0 68px;
      border: 0;
      border-radius: 18px;
      background: var(--tt-black);
      color: var(--white);
      cursor: pointer;
      font-size: 1.55rem;
      font-weight: 800;
      transition: transform .18s ease;
    }

    .answer-go:hover { transform: translateX(2px); }

    .answer-hint {
      margin-top: 13px;
      min-height: 22px;
      color: var(--neutral-400);
      font-size: .79rem;
    }

    .answer-hint.error {
      color: var(--tt-pink);
      font-weight: 700;
    }

    /* final curto e original */
    #confirmationScreen {
      display: none;
      position: fixed;
      inset: 0;
      z-index: 101;
      background: var(--tt-black);
      color: var(--white);
      align-items: center;
      justify-content: center;
      padding: 24px;
      overflow: hidden;
    }

    #confirmationScreen.active { display: flex; }

    .confirmation-inner {
      width: min(100%, 560px);
      position: relative;
    }

    .finish-code {
      color: var(--tt-cyan);
      font-size: .73rem;
      font-weight: 850;
      letter-spacing: .12em;
      text-transform: uppercase;
      margin-bottom: 22px;
    }

    .confirmation-title {
      font-size: clamp(2.6rem, 8vw, 4.7rem);
      line-height: .96;
      letter-spacing: -.06em;
      font-weight: 900;
      margin-bottom: 18px;
    }

    .confirmation-subtitle {
      color: rgba(255,255,255,.62);
      max-width: 390px;
      line-height: 1.6;
    }

    .finish-rail {
      margin-top: 38px;
      height: 7px;
      border-radius: 999px;
      background: rgba(255,255,255,.12);
      overflow: hidden;
    }

    .finish-rail::after {
      content: "";
      display: block;
      width: 42%;
      height: 100%;
      border-radius: inherit;
      background: linear-gradient(90deg, var(--tt-cyan), var(--tt-pink));
      animation: rail 1s ease-in-out infinite alternate;
    }

    @keyframes rail {
      from { transform: translateX(-25%); }
      to { transform: translateX(170%); }
    }

    @media (max-width: 520px) {
      .overlay { padding: 22px; align-items: center; }
      .choice-title { font-size: 2.7rem; }
      .choice-grid { gap: 9px; }
      .path-choice { min-height: 108px; padding: 15px; }
      .math-question { gap: 9px; }
      .answer-box { height: 64px; }
      .answer-go { width: 64px; height: 64px; flex-basis: 64px; }
    }


    /* versão simplificada */
    .popup { max-width: 430px; }

    .simple-mark {
      width: 46px;
      height: 46px;
      border-radius: 15px;
      background: rgba(254,44,85,.10);
      color: var(--tt-pink);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.15rem;
      font-weight: 900;
      margin: 0 auto 22px;
    }

    .choice-title {
      text-align: center;
      font-size: clamp(2rem, 7vw, 2.65rem);
      line-height: 1.05;
      letter-spacing: -.04em;
      margin-bottom: 10px;
    }

    .choice-copy {
      text-align: center;
      margin: 0 auto 28px;
      font-size: .94rem;
    }

    .choice-grid {
      grid-template-columns: 1fr;
      gap: 10px;
    }

    .path-choice {
      min-height: 62px;
      border-radius: 16px;
      padding: 0 18px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      text-align: left;
    }

    .path-choice:first-child {
      background: var(--tt-black);
      border-color: var(--tt-black);
    }

    .path-choice:first-child .path-name,
    .path-choice:first-child .choice-arrow { color: var(--white); }

    .path-choice:last-child {
      background: var(--white);
    }

    .path-name {
      margin: 0;
      font-size: .96rem;
    }

    .choice-arrow {
      font-size: 1.25rem;
      color: var(--tt-pink);
      font-weight: 800;
    }

    .math-mark {
      margin-bottom: 15px;
      background: rgba(37,244,238,.13);
      color: #087d79;
    }

    .math-prompt {
      text-align: center;
      color: var(--neutral-600);
      font-size: .9rem;
      margin-bottom: 24px;
    }

    .math-question {
      justify-content: center;
      gap: 10px;
      margin-bottom: 30px;
    }

    .math-question span {
      font-size: clamp(3.4rem, 13vw, 5.3rem);
    }

    .math-question .math-plus,
    .math-question .math-equals {
      font-size: clamp(2.3rem, 9vw, 3.5rem);
    }

    .answer-row {
      max-width: 330px;
      margin: 0 auto;
    }

    .answer-box {
      height: 62px;
      border-radius: 15px;
      text-align: center;
      padding: 0 10px;
    }

    .answer-go {
      height: 62px;
      width: 62px;
      flex-basis: 62px;
      border-radius: 15px;
      background: var(--tt-pink);
    }

    .answer-hint {
      text-align: center;
    }


    /* tela final clara e simples */
    #confirmationScreen {
      background:
        radial-gradient(circle at 50% 38%, rgba(37,244,238,.08), transparent 30%),
        var(--white);
      color: var(--tt-black);
      text-align: center;
    }

    .confirmation-inner {
      max-width: 430px;
      margin: 0 auto;
    }

    .finish-code {
      width: 58px;
      height: 58px;
      margin: 0 auto 22px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(254,44,85,.10);
      color: var(--tt-pink);
      font-size: 1.45rem;
      font-weight: 900;
      letter-spacing: 0;
      text-transform: none;
    }

    .confirmation-title {
      color: var(--tt-black);
      font-size: clamp(2rem, 7vw, 2.75rem);
      line-height: 1.05;
      letter-spacing: -.04em;
      margin-bottom: 10px;
    }

    .confirmation-subtitle {
      color: var(--neutral-600);
      margin: 0 auto;
      font-size: .94rem;
    }

    .finish-rail {
      width: 170px;
      height: 4px;
      margin: 28px auto 0;
      background: var(--neutral-200);
    }

    .finish-rail::after {
      background: var(--tt-pink);
    }


    .single-go {
      width: 100%;
      height: 64px;
      border: 0;
      border-radius: 17px;
      background: var(--tt-black);
      color: var(--white);
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 11px;
      font-size: 1.03rem;
      font-weight: 850;
      cursor: pointer;
      transition: transform .16s ease, opacity .16s ease;
    }

    .single-go:hover { transform: translateY(-1px); }
    .single-go:active { transform: scale(.985); }
    .single-go span { color: var(--tt-cyan); font-size: 1.25rem; }

    .number-final { text-align: center; }

    .number-runner {
      width: min(390px, 88vw);
      height: 74px;
      margin: 30px auto 0;
      overflow: hidden;
      position: relative;
      border-top: 1px solid var(--neutral-200);
      border-bottom: 1px solid var(--neutral-200);
      -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
      mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
    }

    .number-track {
      position: absolute;
      top: 0;
      left: 0;
      height: 100%;
      display: flex;
      align-items: center;
      gap: 25px;
      width: max-content;
      animation: numbersRun 1.25s linear infinite;
    }

    .number-track span {
      display: inline-flex;
      width: 32px;
      justify-content: center;
      color: var(--tt-black);
      font-size: 2rem;
      line-height: 1;
      font-weight: 900;
      letter-spacing: -.04em;
    }

    .number-track span:nth-child(3n) { color: var(--tt-pink); }
    .number-track span:nth-child(4n) { color: #12a9a3; }

    @keyframes numbersRun {
      from { transform: translateX(0); }
      to { transform: translateX(-570px); }
    }


    .math-question-title {
      color: var(--tt-black);
      font-size: 1.15rem;
      font-weight: 800;
      margin-bottom: 28px;
    }

    .compact-equation {
      margin-top: 0;
    }

    /* POLICY MODALS */
    .policy-overlay {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(22, 24, 35, 0.55);
      backdrop-filter: blur(4px);
      z-index: 200;
      align-items: center;
      justify-content: center;
      padding: 24px;
    }

    .policy-overlay.active { display: flex; }

    .policy-modal {
      background: var(--white);
      border-radius: 14px;
      max-width: 560px;
      width: 100%;
      max-height: 80vh;
      overflow-y: auto;
      box-shadow: 0 20px 60px rgba(0,0,0,0.2);
      animation: slideUp 0.25s ease;
    }

    .policy-header {
      padding: 24px 28px 16px;
      border-bottom: 1px solid var(--neutral-200);
      display: flex;
      align-items: center;
      justify-content: space-between;
      position: sticky;
      top: 0;
      background: var(--white);
      z-index: 1;
    }

    .policy-header h3 {
      font-size: 1.1rem;
      font-weight: 700;
      color: var(--tt-black);
    }

    .policy-close {
      background: none;
      border: none;
      cursor: pointer;
      color: var(--neutral-400);
      padding: 4px;
      border-radius: 6px;
      transition: color 0.2s;
    }

    .policy-close:hover { color: var(--neutral-800); }

    .policy-body {
      padding: 20px 28px 28px;
      font-size: 0.88rem;
      color: var(--neutral-600);
      line-height: 1.8;
    }

    .policy-body h4 {
      color: var(--tt-black);
      font-weight: 600;
      margin: 16px 0 6px;
    }

    #mainContent {
      display: flex;
      flex-direction: column;
      min-height: 100vh;
    }