
    :root{
      color-scheme:light;
      --ink:#3b1624;
      --muted:#9a7784;
      --accent:#df5b84;
      --accent-strong:#c83f69;
      --accent-soft:#fde8ef;
      --accent-pale:#fff7f9;
      --line:#f1d4de;
      --paper:#fffdfd;
      --shadow:0 18px 60px rgba(115,45,70,.12);
    }
    *{box-sizing:border-box}
    html{min-width:320px;background:#f8e9ef}
    body{
      min-width:320px;
      min-height:100vh;
      min-height:100dvh;
      margin:0;
      color:var(--ink);
      font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei","Helvetica Neue",Arial,sans-serif;
      background:#f8e9ef;
    }
    button{font:inherit}
    .app{
      width:100%;
      max-width:430px;
      min-height:100vh;
      min-height:100dvh;
      margin:0 auto;
      padding:max(10px,env(safe-area-inset-top)) 18px max(16px,env(safe-area-inset-bottom));
      position:relative;
      background:linear-gradient(180deg,#fffdfd 0%,#fff9fb 72%,#fff9fb 100%);
    }
    .topbar{
      height:44px;
      display:flex;
      align-items:center;
      justify-content:space-between;
      margin-bottom:0;
    }
    .back{
      width:44px;
      height:44px;
      padding:0;
      border:0;
      color:var(--ink);
      background:transparent;
      cursor:pointer;
      display:grid;
      place-items:center;
      margin-left:-10px;
      transition:transform 160ms ease;
    }
    .back::before{
      content:"";
      width:13px;
      height:13px;
      border-left:1.5px solid currentColor;
      border-bottom:1.5px solid currentColor;
      transform:rotate(45deg);
    }
    .back[hidden]{display:grid;visibility:hidden}
    .back:active{transform:scale(.92)}
    .progress-dots{
      width:58px;
      height:40px;
      display:flex;
      align-items:center;
      justify-content:flex-end;
      gap:8px;
    }
    .progress-dots span{
      width:7px;
      height:7px;
      border-radius:50%;
      background:#eddde3;
      position:relative;
      transition:background-color 180ms ease;
    }
    .progress-dots span.active{background:var(--accent)}
    .progress-dots span.current::after{
      content:none;
    }
    .step{display:none;min-height:calc(100dvh - 66px)}
    .step.active{display:flex;flex-direction:column;animation:enter 240ms ease both}
    .hero{text-align:center;margin:21px 4px 37px}
    .hero.compact{margin:18px 4px 47px}
    .hero-icon{display:block;width:48px;height:42px;object-fit:contain;margin:0 auto 11px}
    .gender-glyph{
      height:42px;
      margin:0 auto 7px;
      color:var(--accent);
      font-family:Georgia,"Times New Roman",serif;
      font-size:39px;
      line-height:1;
      font-weight:400;
    }
    h1{margin:0;font-size:28px;line-height:1.2;letter-spacing:0;font-weight:680}
    .description{margin:8px 0 0;color:var(--muted);font-size:14px;line-height:1.5;letter-spacing:0}
    #genderTitle{font-size:24px}
    .gender-options{width:288px;max-width:100%;margin:0 auto;display:grid;gap:19px}
    .gender-option{
      width:100%;
      aspect-ratio:1736 / 974;
      padding:0;
      border:0;
      border-radius:8px;
      background:transparent;
      cursor:pointer;
      overflow:hidden;
      display:block;
      position:relative;
      transition:filter 160ms ease,box-shadow 160ms ease;
    }
    .gender-option:hover{filter:brightness(.985)}
    .gender-option[aria-pressed="true"]{
      box-shadow:0 0 0 2px var(--accent);
    }
    .gender-card-art{
      display:block;
      width:100%;
      height:auto;
      object-fit:contain;
      pointer-events:none;
    }
    .age-grid{width:300px;max-width:100%;margin:0 auto;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px 7px}
    .age-option{
      min-width:0;
      height:52px;
      padding:6px 2px;
      border:1px solid var(--line);
      border-radius:8px;
      color:var(--ink);
      background:rgba(255,255,255,.82);
      cursor:pointer;
      font-size:14px;
      font-weight:500;
      transition:border-color 150ms ease,color 150ms ease,background-color 150ms ease,transform 150ms ease;
    }
    .age-option:hover{transform:translateY(-1px)}
    .age-option[aria-pressed="true"]{border-color:var(--accent);color:#fff;background:var(--accent)}
    .split-hero{
      min-height:100px;
      display:grid;
      grid-template-columns:minmax(0,1fr) 90px;
      align-items:center;
      gap:8px;
      margin:0 2px 16px;
    }
    .split-copy h1{font-size:22px;line-height:1.3}
    .split-copy .description{margin-top:7px;font-size:13px;line-height:1.55}
    .section-art{
      width:100%;
      height:100px;
      object-fit:contain;
      mix-blend-mode:multiply;
    }
    .choice-list{margin:0 2px;display:grid;gap:10px}
    .profile-option{
      width:100%;
      min-height:58px;
      padding:12px 50px 12px 16px;
      border:1px solid var(--line);
      border-radius:8px;
      color:var(--ink);
      background:rgba(255,255,255,.84);
      cursor:pointer;
      position:relative;
      text-align:left;
      font-size:15px;
      font-weight:500;
      transition:border-color 150ms ease,background-color 150ms ease,transform 150ms ease;
    }
    .profile-option:hover{transform:translateY(-1px)}
    .profile-option::before{
      content:"";
      position:absolute;
      right:16px;
      top:50%;
      width:22px;
      height:22px;
      border:1.5px solid #e7c9d4;
      border-radius:50%;
      transform:translateY(-50%);
      background:#fff;
    }
    .profile-option[aria-pressed="true"]{border-color:var(--accent);background:var(--accent-soft)}
    .profile-option[aria-pressed="true"]::before{border-color:var(--accent);background:var(--accent)}
    .profile-option[aria-pressed="true"]::after{
      content:"";
      position:absolute;
      right:22px;
      top:50%;
      width:9px;
      height:5px;
      border-left:2px solid #fff;
      border-bottom:2px solid #fff;
      transform:translateY(-68%) rotate(-45deg);
    }
    .privacy-note{
      margin:auto 0 19px;
      padding-top:22px;
      color:#b18f9b;
      text-align:center;
      font-size:11px;
    }
    .privacy-note::before{content:"✓";display:inline-grid;place-items:center;width:17px;height:17px;margin-right:6px;border:1px solid currentColor;border-radius:50%;font-size:11px}
    #educationStep .split-hero{min-height:90px;margin:17px 4px 26px}
    #educationStep .section-art{height:90px}
    #educationStep .choice-list{margin:0 4px;gap:8px}
    #marriageStep .split-hero{min-height:100px;margin:0 1px 16px}
    #marriageStep .choice-list{margin:0 1px;gap:15px}
    #marriageStep .profile-option{min-height:51px}
    #goalStep .split-hero{min-height:120px;margin:23px 3px 23px}
    #goalStep .section-art{height:120px}
    #goalStep .choice-list{margin:0 3px;gap:16px}
    #goalStep .profile-option{min-height:61px}
    .result-hero{text-align:center;margin:8px 0 14px}
    .result-art{display:block;width:190px;height:105px;margin:0 auto 10px;object-fit:contain;mix-blend-mode:multiply}
    .result-hero h1{font-size:24px;line-height:1.3}
    .result-hero .description{margin-top:7px;font-size:13px;line-height:1.5}
    .selection-brief{
      margin:0 8px 13px;
      color:#875e6d;
      font-size:13px;
      line-height:1.6;
      text-align:center;
    }
    .lead-form{margin:0 13px;display:grid;gap:9px}
    .form-intro{margin:0 0 2px;color:var(--ink);font-size:14px;line-height:1.5;text-align:center;font-weight:600}
    .field{display:grid;gap:5px}
    .field-label{color:#6f4857;font-size:12px;line-height:1.4;font-weight:600}
    .field input{
      width:100%;
      height:48px;
      padding:0 14px;
      border:1px solid var(--line);
      border-radius:8px;
      outline:0;
      color:var(--ink);
      background:rgba(255,255,255,.9);
      font:inherit;
      font-size:16px;
      transition:border-color 150ms ease,box-shadow 150ms ease,background-color 150ms ease;
    }
    .field input::placeholder{color:#c1a5af}
    .field input:focus{border-color:var(--accent);background:#fff;box-shadow:0 0 0 3px rgba(223,91,132,.12)}
    .field input[aria-invalid="true"]{border-color:#c83f69}
    .field input:disabled{color:#7d5d69;background:#fff7f9;opacity:1}
    .form-message{min-height:17px;margin:0;color:#b33b61;font-size:11px;line-height:17px;text-align:left}
    .form-message.success{color:#a83259;text-align:center}
    .primary{
      width:100%;
      min-height:46px;
      border-radius:8px;
      cursor:pointer;
      font-size:15px;
      font-weight:700;
      transition:transform 150ms ease,box-shadow 150ms ease;
    }
    .primary{border:1px solid var(--accent-strong);color:#fff;background:var(--accent-strong);box-shadow:0 10px 24px rgba(166,48,86,.2)}
    .primary:disabled{cursor:default;box-shadow:none;opacity:.78}
    .primary:active{transform:scale(.985)}
    .form-privacy{margin:0;color:#aa8c97;text-align:center;font-size:10px;line-height:1.5}
    .consent{display:flex;align-items:flex-start;gap:8px;min-height:44px;padding:9px 0;color:#875e6d;font-size:12px;line-height:1.65}
    .consent input{flex:0 0 18px;width:18px;height:18px;margin:1px 0 0;accent-color:var(--accent-strong)}
    .consent a{color:var(--accent-strong);text-underline-offset:3px}
    .back:disabled{opacity:.4;cursor:wait}
    .toast{
      position:fixed;
      z-index:10;
      left:50%;
      bottom:calc(22px + env(safe-area-inset-bottom));
      width:calc(100% - 48px);
      max-width:382px;
      padding:13px 16px;
      border-radius:8px;
      color:#fff;
      background:rgba(74,21,42,.95);
      text-align:center;
      font-size:14px;
      line-height:1.5;
      box-shadow:var(--shadow);
      transform:translate(-50%,24px);
      opacity:0;
      pointer-events:none;
      transition:opacity 180ms ease,transform 180ms ease;
    }
    .toast.show{opacity:1;transform:translate(-50%,0)}
    h1[tabindex="-1"]:focus{outline:none}
    button:focus-visible{outline:3px solid rgba(223,91,132,.38);outline-offset:3px}
    @keyframes enter{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
    @media(max-width:350px){
      .app{padding-left:14px;padding-right:14px}
      .hero{margin-left:0;margin-right:0}
      h1{font-size:26px}
      .gender-options{width:284px}
      .age-grid{gap:7px}
      .age-grid{width:292px}
      .age-option{font-size:13px}
      .split-copy h1{font-size:21px}
      .result-hero{margin-top:4px;margin-bottom:8px}
      .result-art{width:168px;height:88px;margin-bottom:6px}
      .result-hero h1{font-size:23px}
      .result-hero .description{margin-top:4px;font-size:12px}
      .selection-brief{margin-bottom:8px;font-size:11px}
      .lead-form{margin:0 6px;gap:6px}
      .form-intro{font-size:13px}
      .field{gap:4px}
      .field input{height:44px;font-size:16px}
      .primary{min-height:44px;font-size:14px}
    }
    @media(min-width:431px){
      body{padding:18px 0}
      .app{min-height:calc(100vh - 36px);min-height:calc(100dvh - 36px);border:1px solid rgba(189,92,124,.16);border-radius:8px;box-shadow:0 22px 70px rgba(102,38,63,.14)}
      .step{min-height:calc(100dvh - 102px)}
    }
    @media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
    .app.is-submitted{padding:0;background:#fdf6f6}
    .app.is-submitted .topbar{display:none}
    .submitted-page{width:100%;max-width:360px;min-height:100dvh;margin:0 auto;padding:40px 0 max(28px,env(safe-area-inset-bottom));text-align:center;display:flex;flex-direction:column;align-items:center;animation:enter 240ms ease both}
    #submittedStep[hidden],#receiptDetails[hidden]{display:none}
    .submitted-art{display:block;width:100%;height:auto;aspect-ratio:941 / 548;object-fit:contain}
    .submitted-check{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;margin-top:12px;border:2px solid #efa1b3;border-radius:50%;color:#d9577d;background:#fff0f4}
    .submitted-check svg{width:28px;height:28px;stroke-width:2.2}
    .submitted-page h1{width:calc(100% - 40px);margin:15px 0 0;color:#681429;font-size:32px;font-weight:680;line-height:40px}
    .submitted-promise{margin:11px 16px 0;color:#681429;font-size:17px;font-weight:600;line-height:26px}
    .submitted-support{margin:9px 16px 0;color:#805967;font-size:13px;line-height:20px}
    .submitted-reminder{margin:3px 16px 0;color:#805967;font-size:13px;line-height:20px}
    .submitted-contact{width:calc(100% - 102px);min-height:44px;margin:20px 0 0;padding:8px 7px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:10px;color:#875064;font-size:14px;line-height:22px}
    .submitted-contact strong{color:#875064;font-size:16px;font-weight:400;white-space:nowrap}
    .submitted-action{width:calc(100% - 102px);min-height:44px;margin-top:20px;font-size:16px;font-weight:600;line-height:22px;padding:10px 8px;background:var(--accent-strong);border-color:var(--accent-strong);box-shadow:0 8px 18px rgba(200,63,105,.13)}
    .receipt-details{width:calc(100% - 56px);margin:18px 0 0;text-align:left;animation:enter 180ms ease both}
    .receipt-details dl{margin:0}
    .receipt-row{display:grid;grid-template-columns:76px minmax(0,1fr);gap:12px;padding:12px 0;border-bottom:1px solid var(--line);font-size:14px;line-height:1.6}
    .receipt-row dt{color:#805967}
    .receipt-row dd{margin:0;color:var(--ink);text-align:right;overflow-wrap:anywhere}
    .submitted-footer{width:calc(100% - 32px);margin:16px 0 0;color:#805967;font-size:11px;line-height:18px}
    @media(min-width:431px){.submitted-page{min-height:calc(100dvh - 38px)}}
  